sqllogictest
Artifact Content
Not logged in

Artifact b97cf02f85f5d13845fdafb2ec85aed6e72061e1:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + + 88 + + + 25 AS col2
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1
SELECT + 62 DIV + SUM( - 80 ) * + + 23 + + 38 + CAST( + 31 AS SIGNED ) * + COUNT( DISTINCT - 54 ) * + ( + 88 + - CAST( 95 - COUNT( * ) * 18 AS SIGNED ) )
----
379

skipif mysql # not compatible
query I rowsort label-1
SELECT + 62 / + SUM ( - 80 ) * + + 23 + + 38 + CAST ( + 31 AS INTEGER ) * + COUNT ( DISTINCT - 54 ) * + ( + 88 + - CAST ( 95 - COUNT ( * ) * 18 AS INTEGER ) )
----
379

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

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

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

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

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

query I rowsort
SELECT + + 44 * + 94
----
4136

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

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

query I rowsort
SELECT + 93 * 55 AS col0
----
5115

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

onlyif mysql # DIV for integer division: 
query II rowsort label-9
SELECT 94 AS col1, + 23 DIV - - 85 col0
----
94
0

skipif mysql # not compatible
query II rowsort label-9
SELECT 94 AS col1, + 23 / - - 85 col0
----
94
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT ALL CASE + 81 WHEN ( COUNT( * ) ) * 6 THEN 86 + - ( + - 89 ) ELSE + + 93 END * 68 + 85 AS col1
----
6409

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL CASE + 81 WHEN ( COUNT ( * ) ) * 6 THEN 86 + - ( + - 89 ) ELSE + + 93 END * 68 + 85 AS col1
----
6409

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

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

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

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

query I rowsort
SELECT - ( - - NULLIF ( - + 42, + 58 ) ) AS col1
----
42

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

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

query I rowsort
SELECT ALL 49
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-18
SELECT ALL 21 + 88, 20 * + MIN( - 31 ) AS col1
----
109
-620

skipif mysql # not compatible
query II rowsort label-18
SELECT ALL 21 + 88, 20 * + MIN ( - 31 ) AS col1
----
109
-620

query I rowsort
SELECT 96
----
96

query I rowsort
SELECT 67
----
67

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-24
SELECT - ( - CAST ( + - SUM ( DISTINCT - - 53 ) AS INTEGER ) )
----
-53

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

query I rowsort
SELECT - 85 * + + 18
----
-1530

query I rowsort
SELECT ALL 91 + + 88 * + 67
----
5987

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

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

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

query I rowsort
SELECT 96 col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-31
SELECT + 50 DIV + + 49
----
1

skipif mysql # not compatible
query I rowsort label-31
SELECT + 50 / + + 49
----
1

query I rowsort
SELECT - 80
----
-80

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

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

query I rowsort
SELECT - 19 * - + 10
----
190

query I rowsort
SELECT 91
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-36
SELECT - 37 + 37 * + ( + - MIN( ALL 36 ) ), ( - + NULLIF ( 19, + - 8 + 46 ) ) * - 79 AS col0
----
-1369
1501

skipif mysql # not compatible
query II rowsort label-36
SELECT - 37 + 37 * + ( + - MIN ( ALL 36 ) ), ( - + NULLIF ( 19, + - 8 + 46 ) ) * - 79 AS col0
----
-1369
1501

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

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

query I rowsort
SELECT + 74
----
74

query I rowsort
SELECT 92 AS col1
----
92

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

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

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

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

query I rowsort
SELECT + 57
----
57

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

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

query II rowsort
SELECT - 32 * - 36 AS col0, 79 - 32 + - ( - 44 ) AS col2
----
1152
91

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-49
SELECT - CASE + 13 WHEN + + COUNT( 15 ) THEN - + COUNT( + 55 ) DIV - 22 + + 48 WHEN - 17 + - 64 THEN COUNT( * ) ELSE 96 END
----
-96

skipif mysql # not compatible
query I rowsort label-49
SELECT - CASE + 13 WHEN + + COUNT ( 15 ) THEN - + COUNT ( + 55 ) / - 22 + + 48 WHEN - 17 + - 64 THEN COUNT ( * ) ELSE 96 END
----
-96

query I rowsort
SELECT 72 col1
----
72

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

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

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

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

query I rowsort
SELECT + 99 * - 37 AS col0
----
-3663

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

skipif mysql # not compatible
query I rowsort label-55
SELECT SUM ( ALL - 44 ) * + + 94 AS col2
----
-4136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-56
SELECT + 1 * + ( CAST( - + 83 AS SIGNED ) ) - + 65 AS col0
----
-148

skipif mysql # not compatible
query I rowsort label-56
SELECT + 1 * + ( CAST ( - + 83 AS INTEGER ) ) - + 65 AS col0
----
-148

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

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

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

query I rowsort
SELECT - - 38 * - 87 * - 88 - 80 - + 39 AS col2
----
290809

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

onlyif mysql # aggregate syntax: 
query II rowsort label-61
SELECT ALL 65 + + - 35, - MIN( ALL ( - 77 ) ) AS col2
----
30
77

skipif mysql # not compatible
query II rowsort label-61
SELECT ALL 65 + + - 35, - MIN ( ALL ( - 77 ) ) AS col2
----
30
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-62
SELECT ALL COUNT( ALL + + 19 ) + + CASE + 13 WHEN CAST( NULL AS SIGNED ) THEN + - 67 + + 10 WHEN - 25 / + 50 THEN 13 WHEN 17 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL COUNT ( ALL + + 19 ) + + CASE + 13 WHEN CAST ( NULL AS INTEGER ) THEN + - 67 + + 10 WHEN - 25 / + 50 THEN 13 WHEN 17 THEN NULL ELSE NULL END
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-64
SELECT ALL + 18 * + - CAST( 31 AS SIGNED ) AS col0, 67 AS col0
----
-558
67

skipif mysql # not compatible
query II rowsort label-64
SELECT ALL + 18 * + - CAST ( 31 AS INTEGER ) AS col0, 67 AS col0
----
-558
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-65
SELECT DISTINCT COUNT( DISTINCT - CASE CAST( NULL AS SIGNED ) WHEN - - 52 THEN + 67 * 38 * - + 29 END ) + - 21 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-65
SELECT DISTINCT COUNT ( DISTINCT - CASE CAST ( NULL AS INTEGER ) WHEN - - 52 THEN + 67 * 38 * - + 29 END ) + - 21 AS col2
----
-21

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

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

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

query I rowsort
SELECT 56 + - + ( - 55 ) AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT 27 * + 23 - + MIN( ALL - - 64 ) * + + 64 + + 11
----
-3464

skipif mysql # not compatible
query I rowsort label-69
SELECT 27 * + 23 - + MIN ( ALL - - 64 ) * + + 64 + + 11
----
-3464

onlyif mysql # DIV for integer division: 
query II rowsort label-70
SELECT ALL 15 + + + 78 DIV + 73 AS col1, 16 AS col0
----
16
16

skipif mysql # not compatible
query II rowsort label-70
SELECT ALL 15 + + + 78 / + 73 AS col1, 16 AS col0
----
16
16

query I rowsort
SELECT 44
----
44

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

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

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

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

query I rowsort
SELECT ALL 59
----
59

query I rowsort
SELECT ALL 68 + + 90 AS col1
----
158

query I rowsort
SELECT - 15 AS col1
----
-15

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

query I rowsort
SELECT 74 col1
----
74

query I rowsort
SELECT ALL 70
----
70

query I rowsort
SELECT ALL 38 - + 97 col0
----
-59

query I rowsort
SELECT 6 * - 5 AS col1
----
-30

query I rowsort
SELECT ALL 49 * + ( + - 56 )
----
-2744

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT ALL - COALESCE ( + 14, - - 48 ) * + COUNT( * ) + + 15 + 35 * + 70 + + - 93 * + COUNT( * )
----
2358

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL - COALESCE ( + 14, - - 48 ) * + COUNT ( * ) + + 15 + 35 * + 70 + + - 93 * + COUNT ( * )
----
2358

query I rowsort
SELECT 55 AS col1
----
55

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-91
SELECT ALL 2 * + 3 * + + CAST( NULL AS SIGNED ) * 35
----
NULL

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL 2 * + 3 * + + CAST ( NULL AS INTEGER ) * 35
----
NULL

query I rowsort
SELECT - 36
----
-36

query I rowsort
SELECT - - 42 AS col2
----
42

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

query I rowsort
SELECT DISTINCT NULLIF ( 54, + 62 * 69 )
----
54

query I rowsort
SELECT ALL 50 * 36 AS col2
----
1800

query I rowsort
SELECT + 90 + 96
----
186

query II rowsort
SELECT 25 AS col1, 39
----
25
39

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

query I rowsort
SELECT + + 65
----
65

query I rowsort
SELECT ALL - + 73
----
-73

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

onlyif mysql # DIV for integer division: 
query I rowsort label-103
SELECT DISTINCT 95 DIV - 40 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT 95 / - 40 AS col2
----
-2

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

query I rowsort
SELECT ALL + - 95 * 47
----
-4465

onlyif mysql # aggregate syntax: 
query III rowsort label-106
SELECT COUNT( * ) col0, 97 * - 81, + + 3 * - 28 * - + COUNT( * ) AS col1
----
1
-7857
84

skipif mysql # not compatible
query III rowsort label-106
SELECT COUNT ( * ) col0, 97 * - 81, + + 3 * - 28 * - + COUNT ( * ) AS col1
----
1
-7857
84

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-108
SELECT 21 + + 73 - + + 71 DIV + 62 + - 71 DIV + 32 + + 75 + + 43 + - 12 - 54 * 23 * 69 AS col2
----
-85501

skipif mysql # not compatible
query I rowsort label-108
SELECT 21 + + 73 - + + 71 / + 62 + - 71 / + 32 + + 75 + + 43 + - 12 - 54 * 23 * 69 AS col2
----
-85501

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT 80 * - SUM( 77 ) - + 97
----
-6257

skipif mysql # not compatible
query I rowsort label-109
SELECT 80 * - SUM ( 77 ) - + 97
----
-6257

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT ALL - - 82 + + 82 + + 43 / CASE - + 75 WHEN - SUM( ALL 52 ) THEN - 70 + - 50 - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL - - 82 + + 82 + + 43 / CASE - + 75 WHEN - SUM ( ALL 52 ) THEN - 70 + - 50 - - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT - NULLIF ( - 95, - 0 ) + + COUNT( + ( + - 23 ) ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-111
SELECT - NULLIF ( - 95, - 0 ) + + COUNT ( + ( + - 23 ) ) AS col0
----
96

query I rowsort
SELECT ALL + 6 + + 77 AS col1
----
83

query I rowsort
SELECT ALL - - 80
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-114
SELECT + 86 * - 51 * - + 48 + 6 + - COUNT( * ) AS col2, + CAST( NULL AS SIGNED ) + - 60 + 83
----
210533
NULL

skipif mysql # not compatible
query II rowsort label-114
SELECT + 86 * - 51 * - + 48 + 6 + - COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) + - 60 + 83
----
210533
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-115
SELECT ALL + 25 + + 84 * - 63 - - 35 * - 20, + SUM( - 88 ) col2
----
-5967
-88

skipif mysql # not compatible
query II rowsort label-115
SELECT ALL + 25 + + 84 * - 63 - - 35 * - 20, + SUM ( - 88 ) col2
----
-5967
-88

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

query I rowsort
SELECT CASE + 7 WHEN 61 + + 67 THEN + 35 + + 11 END * + - 98 + 1 * 90
----
NULL

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

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

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

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

query I rowsort
SELECT ALL + 32 + + 8
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-122
SELECT 56 DIV COUNT( * ) * + 75
----
4200

skipif mysql # not compatible
query I rowsort label-122
SELECT 56 / COUNT ( * ) * + 75
----
4200

query I rowsort
SELECT 91 + + 14 AS col2
----
105

query II rowsort
SELECT ALL - 59 + ( 91 ) + + 16 AS col2, - 22 AS col0
----
48
-22

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

query I rowsort
SELECT 16 col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT - 17 * - - SUM( ALL - 19 ) + ( - 49 )
----
274

skipif mysql # not compatible
query I rowsort label-127
SELECT - 17 * - - SUM ( ALL - 19 ) + ( - 49 )
----
274

query I rowsort
SELECT + 2
----
2

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-130
SELECT 81 * + 58 AS col2, - COALESCE ( + 60, + 86 ) DIV 63
----
4698
0

skipif mysql # not compatible
query II rowsort label-130
SELECT 81 * + 58 AS col2, - COALESCE ( + 60, + 86 ) / 63
----
4698
0

onlyif mysql # DIV for integer division: 
query I rowsort label-131
SELECT ALL + 60 DIV - - 94
----
0

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL + 60 / - - 94
----
0

query I rowsort
SELECT DISTINCT 8
----
8

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

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

query I rowsort
SELECT - 13 AS col2
----
-13

query I rowsort
SELECT ALL + 33 * - + 99 AS col1
----
-3267

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT COUNT( * ) * 63 * 17 AS col1
----
1071

skipif mysql # not compatible
query I rowsort label-137
SELECT COUNT ( * ) * 63 * 17 AS col1
----
1071

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT 81 - - MIN( + + 35 )
----
116

skipif mysql # not compatible
query I rowsort label-138
SELECT 81 - - MIN ( + + 35 )
----
116

query I rowsort
SELECT 16 * + 29 AS col2
----
464

query I rowsort
SELECT ALL - 61 * 54 * - 11 AS col2
----
36234

query II rowsort
SELECT 29, 2 AS col2
----
29
2

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

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

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

query I rowsort
SELECT ( + 39 ) + - + 42
----
-3

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

query I rowsort
SELECT 6 * + 9
----
54

query I rowsort
SELECT 41 * + 99 AS col0
----
4059

query II rowsort
SELECT ALL 35 AS col1, + 67 * - 39 AS col1
----
35
-2613

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

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT SUM( ALL + 22 ) - + 12 + + 79
----
89

skipif mysql # not compatible
query I rowsort label-151
SELECT SUM ( ALL + 22 ) - + 12 + + 79
----
89

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

query II rowsort
SELECT DISTINCT 14, + 92 col0
----
14
92

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

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

query II rowsort
SELECT ALL - 77 AS col2, 50
----
-77
50

query I rowsort
SELECT + 10 + - 55
----
-45

query I rowsort
SELECT ALL ( + + 77 ) * 20 - 85
----
1455

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT + 54 * + 53 * + + SUM( 62 ) col1
----
177444

skipif mysql # not compatible
query I rowsort label-158
SELECT + 54 * + 53 * + + SUM ( 62 ) col1
----
177444

query I rowsort
SELECT + 23 + - - 27 AS col1
----
50

query II rowsort
SELECT ALL - 16 AS col1, - 74 AS col2
----
-16
-74

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

skipif mysql # not compatible
query II rowsort label-161
SELECT + + 59 AS col0, - COUNT ( * ) / + 17 AS col2
----
59
0

query I rowsort
SELECT ALL 30 * - - 91 + + 4 col1
----
2734

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-166
SELECT ALL - 87 * 88 + - 34 DIV ( CAST( - ( + 19 ) AS SIGNED ) ) DIV + COUNT( * ) + - COALESCE ( - + 69, - 20, 0 * 95 ) + - ( 29 ) col0
----
-7615

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL - 87 * 88 + - 34 / ( CAST ( - ( + 19 ) AS INTEGER ) ) / + COUNT ( * ) + - COALESCE ( - + 69, - 20, 0 * 95 ) + - ( 29 ) col0
----
-7615

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT + - COUNT( * ) * - 54 * + 89
----
4806

skipif mysql # not compatible
query I rowsort label-167
SELECT + - COUNT ( * ) * - 54 * + 89
----
4806

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

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

query I rowsort
SELECT DISTINCT - - 85 * 40 - - 23 + + 1 * - 68
----
3355

onlyif mysql # aggregate syntax: 
query II rowsort label-170
SELECT ALL - 8 * + 75 + - + SUM( ALL + 11 ) col0, - 19 AS col2
----
-611
-19

skipif mysql # not compatible
query II rowsort label-170
SELECT ALL - 8 * + 75 + - + SUM ( ALL + 11 ) col0, - 19 AS col2
----
-611
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT + 70 + - - MIN( 53 ) AS col2
----
123

skipif mysql # not compatible
query I rowsort label-171
SELECT + 70 + - - MIN ( 53 ) AS col2
----
123

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-172
SELECT ALL + - 9 AS col2, 43 * - + ( CAST( NULL AS DECIMAL ) ) AS col0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-172
SELECT ALL + - 9 AS col2, 43 * - + ( CAST ( NULL AS REAL ) ) AS col0
----
-9
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-174
SELECT - CAST( NULL AS SIGNED ) / + 90 AS col1, + 28 * - 79
----
NULL
-2212

skipif mysql # not compatible
query II rowsort label-174
SELECT - CAST ( NULL AS INTEGER ) / + 90 AS col1, + 28 * - 79
----
NULL
-2212

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

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

query I rowsort
SELECT NULLIF ( + + 37, - - 92 )
----
37

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

skipif mysql # not compatible
query I rowsort label-177
SELECT NULLIF ( + COUNT ( * ), - + 19 )
----
1

query I rowsort
SELECT + 97
----
97

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

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

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

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

query I rowsort
SELECT + 8
----
8

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

query I rowsort
SELECT - 3 * + ( - + 97 )
----
291

query I rowsort
SELECT + NULLIF ( + + 12, - 10 ) + 0 * - 8 AS col0
----
12

query II rowsort
SELECT - 31 * - - COALESCE ( + ( + + 36 ), - ( + 12 ) ) - - + 20 * - - 59 AS col2, - 1 * - 52
----
64
52

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

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

query I rowsort
SELECT - 97 - 20 + + - 98 AS col0
----
-215

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-191
SELECT ALL + COALESCE ( - 47, - ( - 82 ) * - 67 * - COUNT( - - 76 ) + - 59 + - 47 / + 83 * 30 ) / - + AVG ( ALL - CAST( NULL AS DECIMAL ) ) * - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-191
SELECT ALL + COALESCE ( - 47, - ( - 82 ) * - 67 * - COUNT ( - - 76 ) + - 59 + - 47 / + 83 * 30 ) / - + AVG ( ALL - CAST ( NULL AS REAL ) ) * - 40 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT + MAX( ALL - 51 ) * - 91 + + + 52 AS col2
----
4693

skipif mysql # not compatible
query I rowsort label-193
SELECT + MAX ( ALL - 51 ) * - 91 + + + 52 AS col2
----
4693

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

query II rowsort
SELECT ALL ( - 16 ), + ( - 93 ) AS col1
----
-16
-93

query I rowsort
SELECT - 34
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT DISTINCT COALESCE ( - 24, SUM( ALL - + 91 ) ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-197
SELECT DISTINCT COALESCE ( - 24, SUM ( ALL - + 91 ) ) AS col2
----
-24

query I rowsort
SELECT ALL 2 * - 68 + - 13 + 93 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-199
SELECT - COUNT( * ) + + + 98, 47 AS col0
----
97
47

skipif mysql # not compatible
query II rowsort label-199
SELECT - COUNT ( * ) + + + 98, 47 AS col0
----
97
47

query I rowsort
SELECT + 99 + - - 91 AS col2
----
190

query I rowsort
SELECT ALL 37
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT - - COUNT( * ) + + 5 * - 12 + - 82 * 99 * + 61 AS col0
----
-495257

skipif mysql # not compatible
query I rowsort label-202
SELECT - - COUNT ( * ) + + 5 * - 12 + - 82 * 99 * + 61 AS col0
----
-495257

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

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

query I rowsort
SELECT ALL - 50 + 13 * + 78
----
964

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-205
SELECT ALL - MAX( - 84 ) + + + CAST( NULL AS DECIMAL ) AS col0, 10
----
NULL
10

skipif mysql # not compatible
query II rowsort label-205
SELECT ALL - MAX ( - 84 ) + + + CAST ( NULL AS REAL ) AS col0, 10
----
NULL
10

onlyif mysql # aggregate syntax: 
query II rowsort label-206
SELECT - - SUM( ALL - - 12 ) col2, 61 AS col0
----
12
61

skipif mysql # not compatible
query II rowsort label-206
SELECT - - SUM ( ALL - - 12 ) col2, 61 AS col0
----
12
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-207
SELECT + CASE - ( + AVG ( ALL + + 85 ) ) WHEN + + COALESCE ( - ( + COUNT( * ) ), - 44 ) * - CAST( - - 62 AS SIGNED ) + 52 THEN + 72 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-207
SELECT + CASE - ( + AVG ( ALL + + 85 ) ) WHEN + + COALESCE ( - ( + COUNT ( * ) ), - 44 ) * - CAST ( - - 62 AS INTEGER ) + 52 THEN + 72 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT - 74 + + - 60 + + 70 + + COUNT( * ) + COUNT( * ) * - + 92 * - 82
----
7481

skipif mysql # not compatible
query I rowsort label-208
SELECT - 74 + + - 60 + + 70 + + COUNT ( * ) + COUNT ( * ) * - + 92 * - 82
----
7481

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

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

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

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

query I rowsort
SELECT - 83 AS col0
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-213
SELECT ALL - 46 DIV 4 * - 39 - - - COUNT( * ) + + - 72 AS col1
----
356

skipif mysql # not compatible
query I rowsort label-213
SELECT ALL - 46 / 4 * - 39 - - - COUNT ( * ) + + - 72 AS col1
----
356

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

query I rowsort
SELECT + + 28 + + 79 col1
----
107

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-219
SELECT 54 * 94 * + - 64 + 0 + - - MIN( + 77 ) + - 32 AS col2, + 56 AS col1
----
-324819
56

skipif mysql # not compatible
query II rowsort label-219
SELECT 54 * 94 * + - 64 + 0 + - - MIN ( + 77 ) + - 32 AS col2, + 56 AS col1
----
-324819
56

query I rowsort
SELECT + 56
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-221
SELECT - ( 34 ) DIV 6 DIV 35 - - COUNT( * ) + + - 75
----
-74

skipif mysql # not compatible
query I rowsort label-221
SELECT - ( 34 ) / 6 / 35 - - COUNT ( * ) + + - 75
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-222
SELECT ALL MAX( DISTINCT 62 ) * + 16 * + CAST( + 31 AS SIGNED ) - 73
----
30679

skipif mysql # not compatible
query I rowsort label-222
SELECT ALL MAX ( DISTINCT 62 ) * + 16 * + CAST ( + 31 AS INTEGER ) - 73
----
30679

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-224
SELECT DISTINCT + 52 AS col1, + 26 * - - COALESCE ( 9, 69 * + COUNT( * ) ) AS col0
----
52
234

skipif mysql # not compatible
query II rowsort label-224
SELECT DISTINCT + 52 AS col1, + 26 * - - COALESCE ( 9, 69 * + COUNT ( * ) ) AS col0
----
52
234

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT + COUNT( * ) * - 52 + 64 * - - 43 * - 85 * - ( - - 5 ) AS col2
----
1169548

skipif mysql # not compatible
query I rowsort label-226
SELECT + COUNT ( * ) * - 52 + 64 * - - 43 * - 85 * - ( - - 5 ) AS col2
----
1169548

query II rowsort
SELECT ALL + 26 AS col0, + ( 13 ) - + 49
----
26
-36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT + 44 * + COALESCE ( + 34, - COALESCE ( + - MAX( ALL + 4 ), 86, + - 4 ) )
----
1496

skipif mysql # not compatible
query I rowsort label-230
SELECT + 44 * + COALESCE ( + 34, - COALESCE ( + - MAX ( ALL + 4 ), 86, + - 4 ) )
----
1496

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-232
SELECT + ( COALESCE ( 96, + CAST( NULL AS SIGNED ) + ( - 52 ) ) ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-232
SELECT + ( COALESCE ( 96, + CAST ( NULL AS INTEGER ) + ( - 52 ) ) ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT + 21 + COUNT( * ) + - 3 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-233
SELECT + 21 + COUNT ( * ) + - 3 AS col2
----
19

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

query I rowsort
SELECT - 14 * - 13 * + - 65 * - 47 AS col2
----
556010

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT DISTINCT + MAX( 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT + MAX ( 11 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT ALL 79 * + + NULLIF ( - 39, + COUNT( * ) + - 59 ) * - + 89
----
274209

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL 79 * + + NULLIF ( - 39, + COUNT ( * ) + - 59 ) * - + 89
----
274209

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

query I rowsort
SELECT ALL + ( 33 ) * - 8 * + 61 AS col2
----
-16104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-240
SELECT CAST( NULL AS SIGNED ) + NULLIF ( + 58, + + 86 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-240
SELECT CAST ( NULL AS INTEGER ) + NULLIF ( + 58, + + 86 ) AS col1
----
NULL

query II rowsort
SELECT ALL 30 AS col0, ( + NULLIF ( 70, + + ( 68 ) * - 42 + + + 10 + + 23 ) ) AS col1
----
30
70

query II rowsort
SELECT - 32, + 18 + + 0 * - 56 AS col2
----
-32
18

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT 35 * - CASE + 14 WHEN 73 * 91 * + 28 - - - 37 THEN NULL WHEN 25 + 18 / + MAX( DISTINCT - + 8 ) + + ( - + 13 ) + 66 THEN 71 ELSE NULL END / 47 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-243
SELECT 35 * - CASE + 14 WHEN 73 * 91 * + 28 - - - 37 THEN NULL WHEN 25 + 18 / + MAX ( DISTINCT - + 8 ) + + ( - + 13 ) + 66 THEN 71 ELSE NULL END / 47 col2
----
NULL

query I rowsort
SELECT ALL - 45 * + 60 AS col2
----
-2700

query I rowsort
SELECT + 9 * 26 AS col0
----
234

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

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

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

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

query I rowsort
SELECT 81
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-249
SELECT - 6 + - + 97 * - 29 + 42 + 63 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-249
SELECT - 6 + - + 97 * - 29 + 42 + 63 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT ALL + + ( + COUNT( ALL - 18 ) ) + + 53
----
54

skipif mysql # not compatible
query I rowsort label-250
SELECT ALL + + ( + COUNT ( ALL - 18 ) ) + + 53
----
54

query II rowsort
SELECT ALL + + 88 + - - 17 + - + 20 AS col2, - 71
----
85
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT CASE 52 WHEN 87 * 41 * - COUNT( * ) * + - 72 THEN - 77 WHEN + - 99 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-252
SELECT CASE 52 WHEN 87 * 41 * - COUNT ( * ) * + - 72 THEN - 77 WHEN + - 99 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 89 - + 11 col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-254
SELECT ALL - + 75 * + COALESCE ( + 54, + - 26 + - CASE - 2 WHEN + + 54 THEN - COUNT( * ) END + - - NULLIF ( + 87, + 96 / - ( + CAST( NULL AS SIGNED ) ) * MAX( - 99 + 68 ) - - 86 + 65 ), 17 + - 40 )
----
-4050

skipif mysql # not compatible
query I rowsort label-254
SELECT ALL - + 75 * + COALESCE ( + 54, + - 26 + - CASE - 2 WHEN + + 54 THEN - COUNT ( * ) END + - - NULLIF ( + 87, + 96 / - ( + CAST ( NULL AS INTEGER ) ) * MAX ( - 99 + 68 ) - - 86 + 65 ), 17 + - 40 )
----
-4050

query I rowsort
SELECT ALL - 18 + - 0 * 12 AS col0
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-256
SELECT ALL + COUNT( - - 25 ) + + - 90 AS col0, 63 DIV - 58 + + 75 AS col0
----
-89
74

skipif mysql # not compatible
query II rowsort label-256
SELECT ALL + COUNT ( - - 25 ) + + - 90 AS col0, 63 / - 58 + + 75 AS col0
----
-89
74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT - 99 * + - COALESCE ( + 13, + MIN( DISTINCT 59 ), 78 + + + 65 ) - + 6 + 23 AS col2
----
1304

skipif mysql # not compatible
query I rowsort label-258
SELECT - 99 * + - COALESCE ( + 13, + MIN ( DISTINCT 59 ), 78 + + + 65 ) - + 6 + 23 AS col2
----
1304

onlyif mysql # aggregate syntax: 
query II rowsort label-259
SELECT ALL - COUNT( + 42 ) * 99 * - MAX( - ( 83 ) ) + - COUNT( ALL - 54 ), 4 AS col0
----
-8218
4

skipif mysql # not compatible
query II rowsort label-259
SELECT ALL - COUNT ( + 42 ) * 99 * - MAX ( - ( 83 ) ) + - COUNT ( ALL - 54 ), 4 AS col0
----
-8218
4

query II rowsort
SELECT 74, 62 + + 62 AS col2
----
74
124

onlyif mysql # aggregate syntax: 
query II rowsort label-261
SELECT + 40 AS col0, COUNT( DISTINCT - 59 ) AS col2
----
40
1

skipif mysql # not compatible
query II rowsort label-261
SELECT + 40 AS col0, COUNT ( DISTINCT - 59 ) AS col2
----
40
1

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

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

query I rowsort
SELECT - 73 AS col2
----
-73

query I rowsort
SELECT ALL + - ( + - 88 ) - - CASE + - ( - 41 ) WHEN + + 21 THEN + 90 END
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-267
SELECT - 74 DIV + + 66 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-267
SELECT - 74 / + + 66 AS col0
----
-1

query I rowsort
SELECT ALL + + 4 * 88 AS col0
----
352

query I rowsort
SELECT DISTINCT - 13
----
-13

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

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

query I rowsort
SELECT 46
----
46

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

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

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

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

query I rowsort
SELECT + 95
----
95

query I rowsort
SELECT 59 AS col1
----
59

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

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

query I rowsort
SELECT + 53
----
53

query I rowsort
SELECT 75
----
75

query II rowsort
SELECT ALL 3 * 87 AS col0, - 34 AS col1
----
261
-34

query I rowsort
SELECT 45
----
45

query I rowsort
SELECT + 61
----
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT - 22 * + MIN( DISTINCT - + 96 ) - + ( + ( - + 37 ) )
----
2149

skipif mysql # not compatible
query I rowsort label-285
SELECT - 22 * + MIN ( DISTINCT - + 96 ) - + ( + ( - + 37 ) )
----
2149

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

query I rowsort
SELECT DISTINCT + 57 + + + NULLIF ( + 32, - 18 ) * - 28
----
-839

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT NULLIF ( - + 55, - NULLIF ( + COUNT( * ), + - 62 ) * + - 21 + ( 49 ) ) + + ( 82 ) - - 88 + + 2 + - 81
----
36

skipif mysql # not compatible
query I rowsort label-290
SELECT NULLIF ( - + 55, - NULLIF ( + COUNT ( * ), + - 62 ) * + - 21 + ( 49 ) ) + + ( 82 ) - - 88 + + 2 + - 81
----
36

query I rowsort
SELECT DISTINCT - 64
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-292
SELECT ALL 25 + - 11 - - - 6 DIV + NULLIF ( + COUNT( * ), - 98 ) + + - 8 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-292
SELECT ALL 25 + - 11 - - - 6 / + NULLIF ( + COUNT ( * ), - 98 ) + + - 8 AS col0
----
0

query I rowsort
SELECT 83
----
83

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

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT NULLIF ( + CASE - NULLIF ( + + 47, + COUNT( * ) ) WHEN - 89 THEN + COUNT( * ) / + ( + 68 ) + - 82 END, + ( ( 45 ) ) + + 0 / 17 ) + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-295
SELECT NULLIF ( + CASE - NULLIF ( + + 47, + COUNT ( * ) ) WHEN - 89 THEN + COUNT ( * ) / + ( + 68 ) + - 82 END, + ( ( 45 ) ) + + 0 / 17 ) + - 75
----
NULL

query I rowsort
SELECT 9 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT ( + NULLIF ( 12, 25 ) ) + + - COUNT( ALL - + 66 )
----
11

skipif mysql # not compatible
query I rowsort label-297
SELECT ( + NULLIF ( 12, 25 ) ) + + - COUNT ( ALL - + 66 )
----
11

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

query I rowsort
SELECT ALL 50 + + 56
----
106

query I rowsort
SELECT 15
----
15

query I rowsort
SELECT - 22
----
-22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT ALL MIN( 87 ) + - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL MIN ( 87 ) + - COUNT ( * )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-304
SELECT 11 + + NULLIF ( + 33, + - ( - - MIN( DISTINCT 1 ) ) + NULLIF ( - COUNT( * ), - CAST( + - 25 AS SIGNED ) ) * - NULLIF ( + + 1, + + 73 * - - 15 + + 90 ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-304
SELECT 11 + + NULLIF ( + 33, + - ( - - MIN ( DISTINCT 1 ) ) + NULLIF ( - COUNT ( * ), - CAST ( + - 25 AS INTEGER ) ) * - NULLIF ( + + 1, + + 73 * - - 15 + + 90 ) ) AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-305
SELECT ALL CAST( + 89 AS SIGNED ) * + 47
----
4183

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL CAST ( + 89 AS INTEGER ) * + 47
----
4183

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-307
SELECT 3 + - CAST( + 94 AS SIGNED ) * - COUNT( * ) AS col0, 24, - ( + 53 ) + + 89 * - 81 + - 79 AS col0
----
97
24
-7341

skipif mysql # not compatible
query III rowsort label-307
SELECT 3 + - CAST ( + 94 AS INTEGER ) * - COUNT ( * ) AS col0, 24, - ( + 53 ) + + 89 * - 81 + - 79 AS col0
----
97
24
-7341

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

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL COUNT ( * ) - + COUNT ( * ) * - MIN ( 67 ) AS col2
----
68

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-311
SELECT ALL + 9 - 13 + - 14 DIV + - 10
----
-3

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL + 9 - 13 + - 14 / + - 10
----
-3

query I rowsort
SELECT ALL 57
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT - COALESCE ( + 32, ( - + 11 ) ) + 69 * + COUNT( * ) + 53 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-313
SELECT - COALESCE ( + 32, ( - + 11 ) ) + 69 * + COUNT ( * ) + 53 AS col0
----
90

query I rowsort
SELECT - 79
----
-79

query II rowsort
SELECT + 97 + + 9 AS col1, 61 + + - 78
----
106
-17

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

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

query I rowsort
SELECT ALL 40
----
40

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

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

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

query I rowsort
SELECT 90 + + 57
----
147

query I rowsort
SELECT - 63 * + 60 AS col2
----
-3780

query I rowsort
SELECT ALL - 57 * + 30 * 14 + - 16 + - 62
----
-24018

query I rowsort
SELECT + 72 + 80 + 29
----
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-326
SELECT ALL - CASE - 52 WHEN 82 THEN NULL WHEN ( - SUM( ALL - 14 ) ) THEN + CAST( + 72 AS SIGNED ) * - - SUM( DISTINCT 50 ) * - + 13 + 69 + - 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-326
SELECT ALL - CASE - 52 WHEN 82 THEN NULL WHEN ( - SUM ( ALL - 14 ) ) THEN + CAST ( + 72 AS INTEGER ) * - - SUM ( DISTINCT 50 ) * - + 13 + 69 + - 88 END
----
NULL

query I rowsort
SELECT ALL 91
----
91

query II rowsort
SELECT 91 + - + 78 - + + 17, + 62 * NULLIF ( 62, - 18 / 94 ) * - 15 AS col2
----
-4
-57660

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT DISTINCT - COALESCE ( - - NULLIF ( 46, + COUNT( * ) ), - - 41, - 38 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-330
SELECT DISTINCT - COALESCE ( - - NULLIF ( 46, + COUNT ( * ) ), - - 41, - 38 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT ALL - MAX( DISTINCT 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL - MAX ( DISTINCT 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT COALESCE ( - + SUM( ALL + 6 ), + 58 )
----
-6

skipif mysql # not compatible
query I rowsort label-332
SELECT COALESCE ( - + SUM ( ALL + 6 ), + 58 )
----
-6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT COUNT( * ) + - 52 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-334
SELECT COUNT ( * ) + - 52 AS col0
----
-51

query I rowsort
SELECT + 48
----
48

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-337
SELECT - 19 * + COUNT( * ) + + 98 + + CASE 63 WHEN 57 THEN + 81 ELSE NULL END + + 84 AS col1, - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-337
SELECT - 19 * + COUNT ( * ) + + 98 + + CASE 63 WHEN 57 THEN + 81 ELSE NULL END + + 84 AS col1, - COUNT ( * ) AS col1
----
NULL
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-339
SELECT 0 * + - 69 * 57 DIV - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-339
SELECT 0 * + - 69 * 57 / - 66 AS col0
----
0

query I rowsort
SELECT + 59
----
59

query I rowsort
SELECT ALL + 99 * - - 76 + 19 + + 89 AS col1
----
7632

query I rowsort
SELECT - 38 * 3
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-343
SELECT ALL - ( + 73 ) * 6 + - COUNT( * ) * - - 97 + - ( - + COUNT( - + 65 ) ) + + 41 DIV - 31
----
-535

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL - ( + 73 ) * 6 + - COUNT ( * ) * - - 97 + - ( - + COUNT ( - + 65 ) ) + + 41 / - 31
----
-535

query I rowsort
SELECT + 19
----
19

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT MAX( 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-347
SELECT MAX ( 6 ) AS col2
----
6

query I rowsort
SELECT - 2 * + ( - 36 ) * + 86 * + 15 + + 1 AS col0
----
92881

query I rowsort
SELECT + 8 + - - 89 AS col0
----
97

query I rowsort
SELECT + 30
----
30

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

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

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

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

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

query I rowsort
SELECT + ( - 60 ) * 22 + + 22 + + 22 AS col0
----
-1276

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT - 18 * - 62 * CASE + - 63 WHEN 74 THEN - - 38 WHEN + - CASE - - 18 WHEN 86 THEN 59 / - COUNT( * ) * ( + + 81 ) ELSE + 75 / - COUNT( * ) END THEN NULL ELSE 89 END + + 21
----
99345

skipif mysql # not compatible
query I rowsort label-355
SELECT - 18 * - 62 * CASE + - 63 WHEN 74 THEN - - 38 WHEN + - CASE - - 18 WHEN 86 THEN 59 / - COUNT ( * ) * ( + + 81 ) ELSE + 75 / - COUNT ( * ) END THEN NULL ELSE 89 END + + 21
----
99345

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

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

query I rowsort
SELECT - 67
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-358
SELECT ALL + + 4 + + + COALESCE ( 44, 39 * 56 ) + 51 + + 33 - - 68 DIV 76 - 37 col1
----
95

skipif mysql # not compatible
query I rowsort label-358
SELECT ALL + + 4 + + + COALESCE ( 44, 39 * 56 ) + 51 + + 33 - - 68 / 76 - 37 col1
----
95

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

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

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

query I rowsort
SELECT + + 7 * + 61 AS col1
----
427

query I rowsort
SELECT ALL 62
----
62

query I rowsort
SELECT - + 38 - + 54
----
-92

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

query I rowsort
SELECT 29
----
29

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

query I rowsort
SELECT + ( 31 ) * + - 69 * + 83
----
-177537

query I rowsort
SELECT + 90 + 10
----
100

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

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT ALL 64 - - COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL 64 - - COUNT ( * ) AS col0
----
65

query I rowsort
SELECT - - 28
----
28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT + - 80 * - 15 + - COUNT( * ) AS col2
----
1199

skipif mysql # not compatible
query I rowsort label-373
SELECT + - 80 * - 15 + - COUNT ( * ) AS col2
----
1199

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-374
SELECT DISTINCT - 75 DIV - - COUNT( * ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-374
SELECT DISTINCT - 75 / - - COUNT ( * ) AS col1
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-375
SELECT ALL COUNT( * ) AS col1, 56 / - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-375
SELECT ALL COUNT ( * ) AS col1, 56 / - CAST ( NULL AS INTEGER )
----
1
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT ALL MIN( - 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL MIN ( - 93 )
----
-93

query II rowsort
SELECT - 9 AS col0, - 85
----
-9
-85

query I rowsort
SELECT ALL 20
----
20

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

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

query I rowsort
SELECT - 40
----
-40

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-385
SELECT ALL COUNT( * ) col0, + 93 * - 1 + + 18 + COUNT( * ) + + 54 AS col2
----
1
-20

skipif mysql # not compatible
query II rowsort label-385
SELECT ALL COUNT ( * ) col0, + 93 * - 1 + + 18 + COUNT ( * ) + + 54 AS col2
----
1
-20

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

query I rowsort
SELECT + 86 * - 74 * + 2 AS col1
----
-12728

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-390
SELECT ALL + MIN( DISTINCT 91 ) DIV 94 + 77 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL + MIN ( DISTINCT 91 ) / 94 + 77 AS col0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-391
SELECT - 38 DIV 25
----
-1

skipif mysql # not compatible
query I rowsort label-391
SELECT - 38 / 25
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-392
SELECT ALL + 38 DIV 80 + + 37 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL + 38 / 80 + + 37 AS col1
----
37

query I rowsort
SELECT + 14
----
14

query I rowsort
SELECT + 17
----
17

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

onlyif mysql # aggregate syntax: 
query II rowsort label-396
SELECT - COUNT( * ) * - + 4 AS col1, 76 * COUNT( * )
----
4
76

skipif mysql # not compatible
query II rowsort label-396
SELECT - COUNT ( * ) * - + 4 AS col1, 76 * COUNT ( * )
----
4
76

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT - 20 * COUNT( DISTINCT + NULLIF ( 49, + 84 ) ) * MIN( ALL - 7 )
----
140

skipif mysql # not compatible
query I rowsort label-397
SELECT - 20 * COUNT ( DISTINCT + NULLIF ( 49, + 84 ) ) * MIN ( ALL - 7 )
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-398
SELECT - 84 * + COALESCE ( SUM( + - 55 ), + 75 * + 11 ), + 41 * - + 36 AS col1
----
4620
-1476

skipif mysql # not compatible
query II rowsort label-398
SELECT - 84 * + COALESCE ( SUM ( + - 55 ), + 75 * + 11 ), + 41 * - + 36 AS col1
----
4620
-1476

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

query II rowsort
SELECT DISTINCT + 2, + 71 col2
----
2
71

query I rowsort
SELECT - - 28 + + ( + 97 ) AS col2
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-402
SELECT DISTINCT + COUNT( ALL + 58 ) AS col2, - 56 * - 15 * - 84 col1
----
1
-70560

skipif mysql # not compatible
query II rowsort label-402
SELECT DISTINCT + COUNT ( ALL + 58 ) AS col2, - 56 * - 15 * - 84 col1
----
1
-70560

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT - + 53 + + SUM( - - 45 )
----
-8

skipif mysql # not compatible
query I rowsort label-403
SELECT - + 53 + + SUM ( - - 45 )
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-404
SELECT ALL AVG ( ALL CAST( NULL AS DECIMAL ) ) * + - 85 - + 3 AS col1, + 20 AS col0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-404
SELECT ALL AVG ( ALL CAST ( NULL AS REAL ) ) * + - 85 - + 3 AS col1, + 20 AS col0
----
NULL
20

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

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

query III rowsort
SELECT ALL + 30, - 31 AS col2, - 80 col2
----
30
-31
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-408
SELECT - 52 * + 97 * - 39 * + CAST( NULL AS DECIMAL ) * + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-408
SELECT - 52 * + 97 * - 39 * + CAST ( NULL AS REAL ) * + 7 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-409
SELECT - 96 + CAST( + 31 AS SIGNED ) DIV + 65
----
-96

skipif mysql # not compatible
query I rowsort label-409
SELECT - 96 + CAST ( + 31 AS INTEGER ) / + 65
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT COUNT( - 63 ) * - 58 - ( - 13 ) col0
----
-45

skipif mysql # not compatible
query I rowsort label-410
SELECT COUNT ( - 63 ) * - 58 - ( - 13 ) col0
----
-45

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

query I rowsort
SELECT - 41 col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-413
SELECT + 79 + ( + + 25 ) + + NULLIF ( + 1, 69 + + 15 * CAST( - 17 AS SIGNED ) * 12 - + - 13 ) AS col1
----
105

skipif mysql # not compatible
query I rowsort label-413
SELECT + 79 + ( + + 25 ) + + NULLIF ( + 1, 69 + + 15 * CAST ( - 17 AS INTEGER ) * 12 - + - 13 ) AS col1
----
105

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

query I rowsort
SELECT - - 74
----
74

query I rowsort
SELECT ALL + - 97 * 43 AS col2
----
-4171

query II rowsort
SELECT DISTINCT + 48, 10 AS col1
----
48
10

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

skipif mysql # not compatible
query I rowsort label-418
SELECT + - 76 + + CAST ( - + ( 57 ) AS INTEGER ) AS col1
----
-133

query II rowsort
SELECT ALL 53, 52 AS col0
----
53
52

query I rowsort
SELECT 24 AS col1
----
24

query I rowsort
SELECT ALL 76
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-422
SELECT ALL + - COUNT( * ) + 1 + + - CAST( - - CASE + 72 WHEN - 90 * - 35 * 61 * + + CAST( - 72 AS SIGNED ) + + NULLIF ( + + 18, - NULLIF ( - ( 56 ), - COUNT( * ) + + 93 ) / COUNT( * ) ) + + 58 * - 16 THEN NULL WHEN + 0 * 49 - 70 THEN - 16 WHEN 0 + - 39 * + 95 THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-422
SELECT ALL + - COUNT ( * ) + 1 + + - CAST ( - - CASE + 72 WHEN - 90 * - 35 * 61 * + + CAST ( - 72 AS INTEGER ) + + NULLIF ( + + 18, - NULLIF ( - ( 56 ), - COUNT ( * ) + + 93 ) / COUNT ( * ) ) + + 58 * - 16 THEN NULL WHEN + 0 * 49 - 70 THEN - 16 WHEN 0 + - 39 * + 95 THEN NULL END AS INTEGER )
----
NULL

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

query I rowsort
SELECT + 22 * 33 * + - 32 * + + 66 AS col1
----
-1533312

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT DISTINCT COALESCE ( + 78, + COUNT( * ) ) + + 92 * - + 79
----
-7190

skipif mysql # not compatible
query I rowsort label-425
SELECT DISTINCT COALESCE ( + 78, + COUNT ( * ) ) + + 92 * - + 79
----
-7190

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

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT - SUM( DISTINCT + 89 ) * 86
----
-7654

skipif mysql # not compatible
query I rowsort label-427
SELECT - SUM ( DISTINCT + 89 ) * 86
----
-7654

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

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

query I rowsort
SELECT 56 AS col0
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-430
SELECT + SUM( ALL - 52 ) / CASE + + 43 WHEN - 99 THEN NULL WHEN - - 71 + - ( - 2 ) THEN - ( + - 48 ) END AS col0, + 51 AS col2
----
NULL
51

skipif mysql # not compatible
query II rowsort label-430
SELECT + SUM ( ALL - 52 ) / CASE + + 43 WHEN - 99 THEN NULL WHEN - - 71 + - ( - 2 ) THEN - ( + - 48 ) END AS col0, + 51 AS col2
----
NULL
51

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT + 86 + - CASE + 30 WHEN - 19 * - COALESCE ( 19, - 54 + 99 + COUNT( * ) + - - ( - 16 ) * + 13 ) * + 99 THEN + 12 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-431
SELECT + 86 + - CASE + 30 WHEN - 19 * - COALESCE ( 19, - 54 + 99 + COUNT ( * ) + - - ( - 16 ) * + 13 ) * + 99 THEN + 12 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT COUNT( * ) + CASE - - 47 WHEN - + 39 + + - 6 THEN NULL WHEN 93 THEN - - 77 / + 16 * - - 95 * - 69 * - 90 / 45 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-432
SELECT COUNT ( * ) + CASE - - 47 WHEN - + 39 + + - 6 THEN NULL WHEN 93 THEN - - 77 / + 16 * - - 95 * - 69 * - 90 / 45 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 53 col1
----
53

query I rowsort
SELECT ALL 50 + - 83
----
-33

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-438
SELECT COUNT ( * ) * 70
----
70

query I rowsort
SELECT NULLIF ( - 83, + 72 ) + + + 36 * 67 + - COALESCE ( + 47, + 67 ) * 22 * + 61
----
-60745

query I rowsort
SELECT + 12
----
12

query II rowsort
SELECT 44 * - 95 + + 28 - ( - 83 ) col0, - 83 AS col1
----
-4069
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-442
SELECT ALL 14 + - ( - SUM( + 7 ) ) - - NULLIF ( + 68, + + 38 / + - 5 + + ( - 43 ) ) + + NULLIF ( + COUNT( * ), - COUNT( * ) + 54 ) * + 12 AS col1, 25 * - ( - 57 ) AS col1
----
101
1425

skipif mysql # not compatible
query II rowsort label-442
SELECT ALL 14 + - ( - SUM ( + 7 ) ) - - NULLIF ( + 68, + + 38 / + - 5 + + ( - 43 ) ) + + NULLIF ( + COUNT ( * ), - COUNT ( * ) + 54 ) * + 12 AS col1, 25 * - ( - 57 ) AS col1
----
101
1425

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT + ( 48 ) * + 11 * 96 + - - COALESCE ( - COUNT( * ), + + ( + ( + COUNT( ALL 67 ) ) ) - - ( NULLIF ( + 79, - 39 ) ) ) * + + ( + COUNT( * ) )
----
50687

skipif mysql # not compatible
query I rowsort label-445
SELECT + ( 48 ) * + 11 * 96 + - - COALESCE ( - COUNT ( * ), + + ( + ( + COUNT ( ALL 67 ) ) ) - - ( NULLIF ( + 79, - 39 ) ) ) * + + ( + COUNT ( * ) )
----
50687

query I rowsort
SELECT COALESCE ( 77, + + 85, + 2 ) * 44
----
3388

query I rowsort
SELECT 80
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-448
SELECT 70 + - - 93 AS col1, + NULLIF ( + - ( - 26 ), - + CASE 83 WHEN + + 89 + + CAST( NULL AS SIGNED ) THEN + + 90 END ) * - 50 AS col0
----
163
-1300

skipif mysql # not compatible
query II rowsort label-448
SELECT 70 + - - 93 AS col1, + NULLIF ( + - ( - 26 ), - + CASE 83 WHEN + + 89 + + CAST ( NULL AS INTEGER ) THEN + + 90 END ) * - 50 AS col0
----
163
-1300

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

query I rowsort
SELECT 85
----
85

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT ALL - + COUNT( * ) - - 95 * - + MAX( + 81 ) AS col0
----
-7696

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL - + COUNT ( * ) - - 95 * - + MAX ( + 81 ) AS col0
----
-7696

query I rowsort
SELECT + 63
----
63

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

query I rowsort
SELECT DISTINCT - - 1
----
1

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

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

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

query I rowsort
SELECT + 86
----
86

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

skipif mysql # not compatible
query I rowsort label-462
SELECT AVG ( + CAST ( NULL AS REAL ) ) / + 2
----
NULL

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

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

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

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

query I rowsort
SELECT 58 * - 5 + - + 9
----
-299

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

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

query I rowsort
SELECT - 20
----
-20

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

skipif mysql # not compatible
query I rowsort label-468
SELECT ALL - 25 + + + 40 * COUNT ( * ) AS col0
----
15

query I rowsort
SELECT 37 + - - 68
----
105

query I rowsort
SELECT 57 col0
----
57

query I rowsort
SELECT - 93 AS col1
----
-93

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

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

query I rowsort
SELECT 63
----
63

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-475
SELECT 58 + + 20 col1, COALESCE ( + - 99, - - COUNT( * ) + 85 + 82 DIV - 65 ) - - 13
----
78
-86

skipif mysql # not compatible
query II rowsort label-475
SELECT 58 + + 20 col1, COALESCE ( + - 99, - - COUNT ( * ) + 85 + 82 / - 65 ) - - 13
----
78
-86

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

query II rowsort
SELECT - 35, + 40 * + 79 AS col1
----
-35
3160

query II rowsort
SELECT - 36, + 78 AS col0
----
-36
78

query II rowsort
SELECT - 38, + 59 * + 69 + + 65 AS col0
----
-38
4136

onlyif mysql # aggregate syntax: 
query II rowsort label-480
SELECT DISTINCT - COUNT( * ) + - ( + COUNT( * ) ) AS col2, 54
----
-2
54

skipif mysql # not compatible
query II rowsort label-480
SELECT DISTINCT - COUNT ( * ) + - ( + COUNT ( * ) ) AS col2, 54
----
-2
54

query I rowsort
SELECT ALL + 84 * + 79
----
6636

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-483
SELECT 19 - 83 + - 89 * + ( 27 ) * + 7 * - COUNT( * ) + + 68 AS col2, COUNT( * ) * + 18 * + 17 + COUNT( * )
----
16825
307

skipif mysql # not compatible
query II rowsort label-483
SELECT 19 - 83 + - 89 * + ( 27 ) * + 7 * - COUNT ( * ) + + 68 AS col2, COUNT ( * ) * + 18 * + 17 + COUNT ( * )
----
16825
307

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

query I rowsort
SELECT 47
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-486
SELECT ALL 0 AS col1, + COUNT( * ) - + 37 AS col2
----
0
-36

skipif mysql # not compatible
query II rowsort label-486
SELECT ALL 0 AS col1, + COUNT ( * ) - + 37 AS col2
----
0
-36

query II rowsort
SELECT DISTINCT 52, - 87 AS col1
----
52
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-488
SELECT 6 DIV 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-488
SELECT 6 / 16 AS col1
----
0

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

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

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

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

query I rowsort
SELECT - 59 AS col2
----
-59

query II rowsort
SELECT - 12, 93 * + 49 AS col2
----
-12
4557

onlyif mysql # DIV for integer division: 
query I rowsort label-493
SELECT 31 - 45 DIV - + ( + 70 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-493
SELECT 31 - 45 / - + ( + 70 ) AS col1
----
31

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

query I rowsort
SELECT + 70
----
70

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

skipif mysql # not compatible
query I rowsort label-496
SELECT ALL - COUNT ( * ) / COUNT ( * ) * 74 AS col2
----
-74

query I rowsort
SELECT ALL 60 * + - 61 AS col0
----
-3660

query I rowsort
SELECT ALL 19 * 34 AS col1
----
646

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

skipif mysql # not compatible
query I rowsort label-499
SELECT SUM ( ALL - 63 )
----
-63

query I rowsort
SELECT ALL - 95
----
-95

query I rowsort
SELECT + 36
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-502
SELECT - 1 DIV - + 24 * - ( - 60 ) + MIN( ALL 88 ) + + - 28 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-502
SELECT - 1 / - + 24 * - ( - 60 ) + MIN ( ALL 88 ) + + - 28 AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-503
SELECT + 93 * 14 * 34 - - + CAST( - 27 AS SIGNED ) * - 26 * + 64 - 15
----
89181

skipif mysql # not compatible
query I rowsort label-503
SELECT + 93 * 14 * 34 - - + CAST ( - 27 AS INTEGER ) * - 26 * + 64 - 15
----
89181

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-505
SELECT + 64 + - + CASE + ( + CAST( 63 AS SIGNED ) ) WHEN + ( NULLIF ( + - 49, + 58 + ( - 4 ) * + - 79 - - - 26 + - MIN( + 56 ) * 30 ) ) + 75 / + 37 * - 54 THEN NULL WHEN 38 THEN NULLIF ( 75, AVG ( 47 ) ) ELSE - 43 END AS col0
----
107

skipif mysql # not compatible
query I rowsort label-505
SELECT + 64 + - + CASE + ( + CAST ( 63 AS INTEGER ) ) WHEN + ( NULLIF ( + - 49, + 58 + ( - 4 ) * + - 79 - - - 26 + - MIN ( + 56 ) * 30 ) ) + 75 / + 37 * - 54 THEN NULL WHEN 38 THEN NULLIF ( 75, AVG ( 47 ) ) ELSE - 43 END AS col0
----
107

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

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT - MAX( ALL - - 75 ) * + + 91 + + 94
----
-6731

skipif mysql # not compatible
query I rowsort label-507
SELECT - MAX ( ALL - - 75 ) * + + 91 + + 94
----
-6731

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-508
SELECT - ( - + 2 ) * 83 / CAST( NULL AS DECIMAL ) + - + ( - + AVG ( - 80 ) ) + - - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-508
SELECT - ( - + 2 ) * 83 / CAST ( NULL AS REAL ) + - + ( - + AVG ( - 80 ) ) + - - 83
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-512
SELECT 84 * + 47 - - 74 + 43 DIV - 96 + - + COUNT( * ) * + - COUNT( * ) + + - 90 * + 60
----
-1377

skipif mysql # not compatible
query I rowsort label-512
SELECT 84 * + 47 - - 74 + 43 / - 96 + - + COUNT ( * ) * + - COUNT ( * ) + + - 90 * + 60
----
-1377

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

query I rowsort
SELECT ALL - - 74
----
74

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

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

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

query I rowsort
SELECT 78 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT + COUNT( * ) * + 82 * - - 68 + - 49 * 58
----
2734

skipif mysql # not compatible
query I rowsort label-519
SELECT + COUNT ( * ) * + 82 * - - 68 + - 49 * 58
----
2734

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT + NULLIF ( - MIN( ALL - 64 ), + - 41 * - AVG ( - COALESCE ( - + ( 45 ), - + 84 ) ) ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-520
SELECT + NULLIF ( - MIN ( ALL - 64 ), + - 41 * - AVG ( - COALESCE ( - + ( 45 ), - + 84 ) ) ) AS col2
----
64

query I rowsort
SELECT + 49
----
49

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

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

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

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

query I rowsort
SELECT 34 col2
----
34

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

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

query I rowsort
SELECT - 45 + - 33 AS col1
----
-78

query II rowsort
SELECT ALL 51 * - 6 AS col2, + 56 * + 77
----
-306
4312

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

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

query I rowsort
SELECT - 21 + - 86
----
-107

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

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

query I rowsort
SELECT ALL - 25 - 39 AS col1
----
-64

query I rowsort
SELECT 24
----
24

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

query I rowsort
SELECT + 86 * + 85 AS col2
----
7310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-537
SELECT - 91 * + + CAST( + + 39 AS SIGNED ) * CASE + COUNT( * ) WHEN CAST( + ( + AVG ( ALL - 96 ) ) AS SIGNED ) THEN - + 69 ELSE ( 7 ) END AS col2
----
-24843

skipif mysql # not compatible
query I rowsort label-537
SELECT - 91 * + + CAST ( + + 39 AS INTEGER ) * CASE + COUNT ( * ) WHEN CAST ( + ( + AVG ( ALL - 96 ) ) AS INTEGER ) THEN - + 69 ELSE ( 7 ) END AS col2
----
-24843

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-539
SELECT - 3 + + COUNT( ALL - + COALESCE ( 64, COALESCE ( CAST( 70 AS DECIMAL ), - + 77, + 6 + 47 + 72 ) / + 88 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-539
SELECT - 3 + + COUNT ( ALL - + COALESCE ( 64, COALESCE ( CAST ( 70 AS REAL ), - + 77, + 6 + 47 + 72 ) / + 88 ) )
----
-2

query I rowsort
SELECT 38
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT - MAX( ALL + + ( + 83 ) ) + - 74 AS col0
----
-157

skipif mysql # not compatible
query I rowsort label-541
SELECT - MAX ( ALL + + ( + 83 ) ) + - 74 AS col0
----
-157

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

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

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

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

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

query I rowsort
SELECT ALL 21
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-546
SELECT - 25 + - + SUM( + + 23 ) + + 84 * + 78 AS col2, + 67 AS col1
----
6504
67

skipif mysql # not compatible
query II rowsort label-546
SELECT - 25 + - + SUM ( + + 23 ) + + 84 * + 78 AS col2, + 67 AS col1
----
6504
67

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

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

query I rowsort
SELECT 48 AS col2
----
48

query I rowsort
SELECT + 79
----
79

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

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

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

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

query I rowsort
SELECT - 48 * + 95 AS col0
----
-4560

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

query I rowsort
SELECT ALL + 59
----
59

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-557
SELECT - + COUNT ( * ) * - 81 + - 92 AS col1
----
-11

query I rowsort
SELECT + - 26
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-559
SELECT + + 64 / - + CAST( NULL AS SIGNED ) + - + 56 - - - 54 * + AVG ( + CAST( 40 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-559
SELECT + + 64 / - + CAST ( NULL AS INTEGER ) + - + 56 - - - 54 * + AVG ( + CAST ( 40 AS INTEGER ) )
----
NULL

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

query II rowsort
SELECT + - 89 * + 48 AS col0, 7 * + 68 + 75 col0
----
-4272
551

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT NULLIF ( + - 4, + 27 - - MAX( DISTINCT + 82 ) * - MAX( 44 ) + + 87 + + + NULLIF ( MAX( 94 ), + 97 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-565
SELECT NULLIF ( + - 4, + 27 - - MAX ( DISTINCT + 82 ) * - MAX ( 44 ) + + 87 + + + NULLIF ( MAX ( 94 ), + 97 ) )
----
-4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT DISTINCT - NULLIF ( - 55, - + 87 ) * + COUNT( * ) + - 66 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-567
SELECT DISTINCT - NULLIF ( - 55, - + 87 ) * + COUNT ( * ) + - 66 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT ALL + 73 * - 41 + - COUNT( * ) col0
----
-2994

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL + 73 * - 41 + - COUNT ( * ) col0
----
-2994

query I rowsort
SELECT 49
----
49

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

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

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

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

query I rowsort
SELECT + + 21 + + 75
----
96

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-577
SELECT DISTINCT 38 AS col1, 19 DIV - 30 * CAST( - 85 AS SIGNED )
----
38
0

skipif mysql # not compatible
query II rowsort label-577
SELECT DISTINCT 38 AS col1, 19 / - 30 * CAST ( - 85 AS INTEGER )
----
38
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-578
SELECT + 86 + - ( - 34 ) DIV + + NULLIF ( - + 92, - - 89 * - ( - ( - 70 ) ) + + + 36 ) + - + ( - + COUNT( * ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-578
SELECT + 86 + - ( - 34 ) / + + NULLIF ( - + 92, - - 89 * - ( - ( - 70 ) ) + + + 36 ) + - + ( - + COUNT ( * ) ) AS col2
----
87

query I rowsort
SELECT - 92 * - 95 * + 69
----
603060

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT ALL MAX( - - 51 ) * - MAX( DISTINCT + 29 ) AS col2
----
-1479

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL MAX ( - - 51 ) * - MAX ( DISTINCT + 29 ) AS col2
----
-1479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-581
SELECT - 9 + - + 58 + + COUNT( - - 30 ) * + CAST( 79 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-581
SELECT - 9 + - + 58 + + COUNT ( - - 30 ) * + CAST ( 79 AS INTEGER )
----
12

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

query I rowsort
SELECT - 85 + - - 40 * + 74 + + 90 + + 58 * + - 59
----
-457

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-585
SELECT + 56 DIV - CAST( + + MIN( - 28 ) AS SIGNED ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-585
SELECT + 56 / - CAST ( + + MIN ( - 28 ) AS INTEGER ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT ALL MAX( DISTINCT - 78 ) * - - 70 + + 82
----
-5378

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL MAX ( DISTINCT - 78 ) * - - 70 + + 82
----
-5378

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

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT + 32 - + COUNT( DISTINCT - + 95 ) * - + 14 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-588
SELECT + 32 - + COUNT ( DISTINCT - + 95 ) * - + 14 AS col1
----
46

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

query I rowsort
SELECT 1
----
1

query I rowsort
SELECT ALL 55 * 56
----
3080

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

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

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

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

query I rowsort
SELECT 88
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-595
SELECT - 23 AS col1, + ( 15 ) * - 19 - - MAX( DISTINCT + 42 )
----
-23
-243

skipif mysql # not compatible
query II rowsort label-595
SELECT - 23 AS col1, + ( 15 ) * - 19 - - MAX ( DISTINCT + 42 )
----
-23
-243

query I rowsort
SELECT 25 col2
----
25

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

query I rowsort
SELECT 31 col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-599
SELECT - COUNT( * ) * + NULLIF ( - 44, CAST( NULL AS SIGNED ) + - 75 + + - ( - + 53 ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-599
SELECT - COUNT ( * ) * + NULLIF ( - 44, CAST ( NULL AS INTEGER ) + - 75 + + - ( - + 53 ) ) AS col1
----
44

query I rowsort
SELECT - + 28 * - 60
----
1680

query II rowsort
SELECT ALL - - 30 + - + 51 + + - ( + + 32 ) * + - 20, + 78 AS col1
----
619
78

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

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

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

skipif mysql # not compatible
query I rowsort label-603
SELECT - COALESCE ( - 33, COUNT ( * ), + 44 ) AS col0
----
33

query I rowsort
SELECT DISTINCT + 5
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-605
SELECT ALL 55 DIV 50 + - + 41 * + 11
----
-450

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL 55 / 50 + - + 41 * + 11
----
-450

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

query I rowsort
SELECT 33 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT - 49 + - MIN( - + 68 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-608
SELECT - 49 + - MIN ( - + 68 ) AS col0
----
19

query I rowsort
SELECT - - 91 * - 6 - + 25 - + 11 AS col1
----
-582

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-611
SELECT + MIN( DISTINCT 7 ) * - NULLIF ( ( 2 ), + 72 + + - NULLIF ( + - 51, + 26 ) * - - NULLIF ( + - 36, - 92 ) ) * + CAST( NULL AS SIGNED ) + + 36 + - 4 / - - 70 + 77 * - SUM( DISTINCT - 10 ) + + COUNT( * ) * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-611
SELECT + MIN ( DISTINCT 7 ) * - NULLIF ( ( 2 ), + 72 + + - NULLIF ( + - 51, + 26 ) * - - NULLIF ( + - 36, - 92 ) ) * + CAST ( NULL AS INTEGER ) + + 36 + - 4 / - - 70 + 77 * - SUM ( DISTINCT - 10 ) + + COUNT ( * ) * + 51
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT DISTINCT + 19 - - COUNT( * ) + - 83
----
-63

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT + 19 - - COUNT ( * ) + - 83
----
-63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT ALL + - ( - 86 ) - - MAX( ALL + CASE + 23 WHEN - 47 - 23 THEN NULL WHEN - 39 THEN 47 END ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL + - ( - 86 ) - - MAX ( ALL + CASE + 23 WHEN - 47 - 23 THEN NULL WHEN - 39 THEN 47 END ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 10 - 53 + - 58 AS col1
----
-101

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

query I rowsort
SELECT - 38 * + + 34 * + + 28 + + - COALESCE ( + + 1, - 69 )
----
-36177

query I rowsort
SELECT + 89
----
89

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-622
SELECT CAST( + 46 AS SIGNED ) + + + ( + 54 ) AS col0, - 80 col1
----
100
-80

skipif mysql # not compatible
query II rowsort label-622
SELECT CAST ( + 46 AS INTEGER ) + + + ( + 54 ) AS col0, - 80 col1
----
100
-80

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

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

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

query I rowsort
SELECT DISTINCT + 35 * - 22 AS col2
----
-770

query I rowsort
SELECT DISTINCT 2 col0
----
2

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

query II rowsort
SELECT ALL 8 AS col0, - 19 AS col2
----
8
-19

query I rowsort
SELECT 79
----
79

query I rowsort
SELECT ALL 12
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-632
SELECT ALL 8 DIV - + 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-632
SELECT ALL 8 / - + 73 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-634
SELECT ( + - COUNT( * ) ) - ( - - SUM( ALL + 2 ) ) DIV - NULLIF ( + 44, 35 ) * + 26 AS col0, 81 AS col1
----
-1
81

skipif mysql # not compatible
query II rowsort label-634
SELECT ( + - COUNT ( * ) ) - ( - - SUM ( ALL + 2 ) ) / - NULLIF ( + 44, 35 ) * + 26 AS col0, 81 AS col1
----
-1
81

query II rowsort
SELECT - 19 col1, 83 * 68
----
-19
5644

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-637
SELECT CASE - 22 WHEN 59 * - - COALESCE ( + 80, 37 ) THEN + 31 WHEN - ( - 37 ) THEN NULL END / + 60 / - COALESCE ( - 38, - 57 + CAST( + 24 AS SIGNED ), 96 * - + 4 ) * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-637
SELECT CASE - 22 WHEN 59 * - - COALESCE ( + 80, 37 ) THEN + 31 WHEN - ( - 37 ) THEN NULL END / + 60 / - COALESCE ( - 38, - 57 + CAST ( + 24 AS INTEGER ), 96 * - + 4 ) * - 44
----
NULL

query I rowsort
SELECT ( 71 ) + - 43
----
28

query II rowsort
SELECT - 29 AS col2, - 22
----
-29
-22

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

onlyif mysql # aggregate syntax: 
query III rowsort label-641
SELECT DISTINCT - 24 + + 3 + + 24 * - + 68 * - 11 * - COUNT( * ) AS col2, 82, + 77 col1
----
-17973
82
77

skipif mysql # not compatible
query III rowsort label-641
SELECT DISTINCT - 24 + + 3 + + 24 * - + 68 * - 11 * - COUNT ( * ) AS col2, 82, + 77 col1
----
-17973
82
77

onlyif mysql # aggregate syntax: 
query II rowsort label-642
SELECT ALL 49 AS col0, + SUM( DISTINCT - 24 ) * 22 - 75 AS col1
----
49
-603

skipif mysql # not compatible
query II rowsort label-642
SELECT ALL 49 AS col0, + SUM ( DISTINCT - 24 ) * 22 - 75 AS col1
----
49
-603

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT ALL - 11 + 74 + COUNT( * ) - + 69
----
-5

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL - 11 + 74 + COUNT ( * ) - + 69
----
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT + NULLIF ( - COALESCE ( + 34, + - 8 * + COUNT( * ) + - - 8 ), + 49 ) + - ( - + ( + 50 ) ) + + COUNT( * ) - + - 61 * - 73 - + - 3 + + - 99 * + 99 + + SUM( DISTINCT + 77 ) AS col0
----
-14157

skipif mysql # not compatible
query I rowsort label-648
SELECT + NULLIF ( - COALESCE ( + 34, + - 8 * + COUNT ( * ) + - - 8 ), + 49 ) + - ( - + ( + 50 ) ) + + COUNT ( * ) - + - 61 * - 73 - + - 3 + + - 99 * + 99 + + SUM ( DISTINCT + 77 ) AS col0
----
-14157

query I rowsort
SELECT + - 58
----
-58

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-651
SELECT + CASE + COUNT( * ) WHEN + COALESCE ( + MAX( DISTINCT - 17 ), 72 - + - 86 + + ( - CASE WHEN ( + CASE - 8 WHEN - 7 THEN NULL WHEN - 70 * + 18 THEN NULL ELSE 82 * + ( - - MIN( + 47 ) ) + - SUM( DISTINCT 97 ) END ) BETWEEN - 13 * + 57 AND - COUNT( * ) * - 74 THEN 89 WHEN NOT - 12 >= NULL THEN NULL ELSE NULL END ) * - 27, 40 / 27 - + 34 ) THEN 89 WHEN - COUNT( + 4 ) - CASE 90 WHEN ( - COUNT( * ) ) - SUM( - 77 ) * + COALESCE ( - SUM( 60 ), - 22 * - 33 ) THEN NULL WHEN COALESCE ( 19, - 94 + + 73, CAST( - NULLIF ( - 7, 87 ) AS SIGNED ) + - 52 * + 11 ) + + 59 * + 54 THEN COALESCE ( - NULLIF ( 15, + 9 ), + CASE - 2 WHEN - 67 + 26 THEN ( 2 ) END, 12 * 78 ) / - 76 ELSE NULL END THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-651
SELECT + CASE + COUNT ( * ) WHEN + COALESCE ( + MAX ( DISTINCT - 17 ), 72 - + - 86 + + ( - CASE WHEN ( + CASE - 8 WHEN - 7 THEN NULL WHEN - 70 * + 18 THEN NULL ELSE 82 * + ( - - MIN ( + 47 ) ) + - SUM ( DISTINCT 97 ) END ) BETWEEN - 13 * + 57 AND - COUNT ( * ) * - 74 THEN 89 WHEN NOT - 12 >= NULL THEN NULL ELSE NULL END ) * - 27, 40 / 27 - + 34 ) THEN 89 WHEN - COUNT ( + 4 ) - CASE 90 WHEN ( - COUNT ( * ) ) - SUM ( - 77 ) * + COALESCE ( - SUM ( 60 ), - 22 * - 33 ) THEN NULL WHEN COALESCE ( 19, - 94 + + 73, CAST ( - NULLIF ( - 7, 87 ) AS INTEGER ) + - 52 * + 11 ) + + 59 * + 54 THEN COALESCE ( - NULLIF ( 15, + 9 ), + CASE - 2 WHEN - 67 + 26 THEN ( 2 ) END, 12 * 78 ) / - 76 ELSE NULL END THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-652
SELECT - 31 DIV CASE COUNT( * ) WHEN 44 + - ( + - ( - 99 ) ) THEN NULL WHEN - - 9 + 51 THEN + 87 ELSE - + 40 END * + 77 + - 17 + - - COUNT( * ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-652
SELECT - 31 / CASE COUNT ( * ) WHEN 44 + - ( + - ( - 99 ) ) THEN NULL WHEN - - 9 + 51 THEN + 87 ELSE - + 40 END * + 77 + - 17 + - - COUNT ( * ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT DISTINCT + 17 * - - COUNT( * ) * + - 6 AS col1
----
-102

skipif mysql # not compatible
query I rowsort label-653
SELECT DISTINCT + 17 * - - COUNT ( * ) * + - 6 AS col1
----
-102

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

query I rowsort
SELECT ALL - + NULLIF ( 56, + 89 )
----
-56

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

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

query I rowsort
SELECT + 18
----
18

query I rowsort
SELECT DISTINCT + ( 4 ) * + 65 + + + 10 AS col2
----
270

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

query I rowsort
SELECT ALL + + 35 - 51 * - 44 - 58 AS col0
----
2221

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-663
SELECT ALL - - 93 AS col2, CAST( + 61 AS SIGNED ) * + - 91 + 35 * - 64 AS col2
----
93
-7791

skipif mysql # not compatible
query II rowsort label-663
SELECT ALL - - 93 AS col2, CAST ( + 61 AS INTEGER ) * + - 91 + 35 * - 64 AS col2
----
93
-7791

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

query I rowsort
SELECT 40
----
40

query I rowsort
SELECT 10
----
10

query I rowsort
SELECT + 84
----
84

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-669
SELECT ALL + ( - + CASE - - ( + - NULLIF ( + 42, + 34 ) ) WHEN - + 85 THEN 25 / 86 * + ( 10 ) WHEN 95 - - + CAST( NULL AS DECIMAL ) * + 29 + - 64 THEN NULL END ) - + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL + ( - + CASE - - ( + - NULLIF ( + 42, + 34 ) ) WHEN - + 85 THEN 25 / 86 * + ( 10 ) WHEN 95 - - + CAST ( NULL AS REAL ) * + 29 + - 64 THEN NULL END ) - + 50
----
NULL

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

query I rowsort
SELECT 26
----
26

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-674
SELECT MIN( + 33 ) * + - CASE - COUNT( * ) WHEN + 56 THEN + 44 * + - 49 WHEN + 79 * - - 7 + 27 THEN - 49 ELSE 4 END * 6 AS col0, + 41 AS col0
----
-792
41

skipif mysql # not compatible
query II rowsort label-674
SELECT MIN ( + 33 ) * + - CASE - COUNT ( * ) WHEN + 56 THEN + 44 * + - 49 WHEN + 79 * - - 7 + 27 THEN - 49 ELSE 4 END * 6 AS col0, + 41 AS col0
----
-792
41

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

onlyif mysql # DIV for integer division: 
query I rowsort label-676
SELECT DISTINCT - ( - - ( - 28 ) ) DIV 46 * + COALESCE ( + 14, - - 72 * - ( - 9 ) )
----
0

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT - ( - - ( - 28 ) ) / 46 * + COALESCE ( + 14, - - 72 * - ( - 9 ) )
----
0

query II rowsort
SELECT 34 + - 3 col1, 94 + - 58
----
31
36

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

query I rowsort
SELECT ALL - 58 * + 63 AS col2
----
-3654

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

skipif mysql # not compatible
query I rowsort label-680
SELECT 40 / ( + 88 ) / COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-681
SELECT 44 + - 33 - + 11 + - 59 * + - 25 * - 43 * - CAST( - 68 AS SIGNED )
----
-4312900

skipif mysql # not compatible
query I rowsort label-681
SELECT 44 + - 33 - + 11 + - 59 * + - 25 * - 43 * - CAST ( - 68 AS INTEGER )
----
-4312900

query I rowsort
SELECT 64 col0
----
64

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-684
SELECT CASE COUNT( * ) WHEN - + 40 * - CAST( - + COUNT( - 94 ) AS DECIMAL ) THEN NULL WHEN - + COUNT( DISTINCT + 14 ) - COUNT( * ) THEN - 13 * + 24 ELSE - + COUNT( * ) END + + - 3 - COUNT( * ) * 28 * - - 57 / + CASE 38 WHEN + 86 * 77 + - 54 THEN NULL WHEN + - 35 + + 66 * + 90 THEN 69 + 54 WHEN + 32 THEN - NULLIF ( CAST( 96 AS SIGNED ), 22 * + 17 ) * - 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-684
SELECT CASE COUNT ( * ) WHEN - + 40 * - CAST ( - + COUNT ( - 94 ) AS REAL ) THEN NULL WHEN - + COUNT ( DISTINCT + 14 ) - COUNT ( * ) THEN - 13 * + 24 ELSE - + COUNT ( * ) END + + - 3 - COUNT ( * ) * 28 * - - 57 / + CASE 38 WHEN + 86 * 77 + - 54 THEN NULL WHEN + - 35 + + 66 * + 90 THEN 69 + 54 WHEN + 32 THEN - NULLIF ( CAST ( 96 AS INTEGER ), 22 * + 17 ) * - 69 END
----
NULL

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

query I rowsort
SELECT ALL 18
----
18

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

query I rowsort
SELECT 78
----
78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT ALL MIN( + NULLIF ( 31, - + 36 ) ) + ( 62 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL MIN ( + NULLIF ( 31, - + 36 ) ) + ( 62 ) AS col0
----
93

query I rowsort
SELECT - 16
----
-16

query I rowsort
SELECT - - 93 col1
----
93

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

query I rowsort
SELECT - COALESCE ( + 88, - 41 )
----
-88

query I rowsort
SELECT - 50
----
-50

query I rowsort
SELECT + 91 * - 37
----
-3367

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-697
SELECT NULLIF ( CAST( NULL AS DECIMAL ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-697
SELECT NULLIF ( CAST ( NULL AS REAL ), COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-698
SELECT ALL NULLIF ( + 53, COUNT( * ) + - COALESCE ( - + 85, + CAST( NULL AS SIGNED ) + COUNT( * ) + + 44 + ( + + 46 ) * - - 82 ) - + 71 * NULLIF ( - 70, - NULLIF ( + SUM( ALL + + 20 ), 26 ) ) + + + 80 + - COUNT( * ) * 92 * - 94 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL NULLIF ( + 53, COUNT ( * ) + - COALESCE ( - + 85, + CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 44 + ( + + 46 ) * - - 82 ) - + 71 * NULLIF ( - 70, - NULLIF ( + SUM ( ALL + + 20 ), 26 ) ) + + + 80 + - COUNT ( * ) * 92 * - 94 ) AS col1
----
53

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

skipif mysql # not compatible
query I rowsort label-699
SELECT - - MIN ( + 94 )
----
94

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-701
SELECT + 53 - 1 DIV - + COALESCE ( 45, 5, + COUNT( * ) ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-701
SELECT + 53 - 1 / - + COALESCE ( 45, 5, + COUNT ( * ) ) AS col1
----
53

query I rowsort
SELECT + 58 * 15
----
870

query I rowsort
SELECT ALL + - 97
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-704
SELECT COUNT( * ) / - CAST( NULL AS SIGNED ) - 31 + - 95 + + + 72 * + 67 * + + 96 * + 88 + 89 * - 9 * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-704
SELECT COUNT ( * ) / - CAST ( NULL AS INTEGER ) - 31 + - 95 + + + 72 * + 67 * + + 96 * + 88 + 89 * - 9 * + 86
----
NULL

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

query I rowsort
SELECT 43 col1
----
43

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

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

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

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

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

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

query I rowsort
SELECT - + 9 - + - 46
----
37

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

query II rowsort
SELECT + 31 col1, + 88 + + 59 * + - 98 AS col2
----
31
-5694

query I rowsort
SELECT ALL + 89 * + 37
----
3293

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-717
SELECT DISTINCT CAST( - 25 AS SIGNED ) * + 37, ( - 82 ) + + - 50 - + 54 - - 74 DIV + MIN( - 54 ) AS col2
----
-925
-187

skipif mysql # not compatible
query II rowsort label-717
SELECT DISTINCT CAST ( - 25 AS INTEGER ) * + 37, ( - 82 ) + + - 50 - + 54 - - 74 / + MIN ( - 54 ) AS col2
----
-925
-187

onlyif mysql # DIV for integer division: 
query II rowsort label-718
SELECT - NULLIF ( 62, COALESCE ( + - 33, 2 ) ) + 65, 55 DIV 49 AS col0
----
3
1

skipif mysql # not compatible
query II rowsort label-718
SELECT - NULLIF ( 62, COALESCE ( + - 33, 2 ) ) + 65, 55 / 49 AS col0
----
3
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-720
SELECT ALL - CAST( 91 AS SIGNED ) * + 54 + + 28 + - - 11 + 48 col1
----
-4827

skipif mysql # not compatible
query I rowsort label-720
SELECT ALL - CAST ( 91 AS INTEGER ) * + 54 + + 28 + - - 11 + 48 col1
----
-4827

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

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

query I rowsort
SELECT - 10 * 83 + - 97 AS col1
----
-927

query I rowsort
SELECT ( 23 ) * + - 11 + + 53 col1
----
-200

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

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT - 96 * - COUNT( * ) * + 65 col2
----
6240

skipif mysql # not compatible
query I rowsort label-725
SELECT - 96 * - COUNT ( * ) * + 65 col2
----
6240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-726
SELECT ALL + COALESCE ( 7, - - CAST( NULL AS SIGNED ), - 96 )
----
7

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL + COALESCE ( 7, - - CAST ( NULL AS INTEGER ), - 96 )
----
7

query I rowsort
SELECT DISTINCT NULLIF ( - 94, + 22 + - 35 ) AS col2
----
-94

query I rowsort
SELECT + 31 + - - 47 + 99 AS col1
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-729
SELECT ALL - 27 DIV - + 29 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL - 27 / - + 29 AS col1
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-731
SELECT DISTINCT - 46 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-731
SELECT DISTINCT - 46 / + 50
----
0

query I rowsort
SELECT ALL 7 * - 34 * - 52 AS col1
----
12376

query I rowsort
SELECT 41
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-734
SELECT ALL - 75 DIV 11 + + 56 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL - 75 / 11 + + 56 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT - 88 + + MIN( + 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-735
SELECT - 88 + + MIN ( + 44 ) AS col2
----
-44

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

query I rowsort
SELECT + 71 - 9 + + + 42
----
104

query I rowsort
SELECT DISTINCT + 83 - 49 AS col2
----
34

query I rowsort
SELECT - + 95
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-740
SELECT ALL CAST( + - ( - NULLIF ( - - 57, - 7 ) ) AS SIGNED ) * + NULLIF ( 87, + 46 * + COUNT( * ) ) * - - CAST( NULL AS SIGNED ) * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL CAST ( + - ( - NULLIF ( - - 57, - 7 ) ) AS INTEGER ) * + NULLIF ( 87, + 46 * + COUNT ( * ) ) * - - CAST ( NULL AS INTEGER ) * + 67
----
NULL

query I rowsort
SELECT + 96
----
96

query II rowsort
SELECT - + 85 AS col0, 65 AS col0
----
-85
65

query I rowsort
SELECT DISTINCT 24
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT DISTINCT + 23 * COUNT( + - 95 ) * - ( - 33 ) AS col1
----
759

skipif mysql # not compatible
query I rowsort label-744
SELECT DISTINCT + 23 * COUNT ( + - 95 ) * - ( - 33 ) AS col1
----
759

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT ALL SUM( DISTINCT + 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL SUM ( DISTINCT + 62 ) AS col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-746
SELECT - + 54 + - - SUM( ALL + 45 ) + + 46 * - + 53 * - 57 * 68 + - CAST( NULL AS SIGNED ) * + 34 * - CASE - 96 WHEN - 24 + + 25 THEN + 53 * - + COUNT( * ) WHEN + ( CAST( NULL AS SIGNED ) ) * + 51 THEN NULL ELSE NULL END * 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-746
SELECT - + 54 + - - SUM ( ALL + 45 ) + + 46 * - + 53 * - 57 * 68 + - CAST ( NULL AS INTEGER ) * + 34 * - CASE - 96 WHEN - 24 + + 25 THEN + 53 * - + COUNT ( * ) WHEN + ( CAST ( NULL AS INTEGER ) ) * + 51 THEN NULL ELSE NULL END * 21 AS col1
----
NULL

query I rowsort
SELECT ALL + + 39 - - ( 79 ) col1
----
118

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

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

query I rowsort
SELECT DISTINCT + 92
----
92

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-751
SELECT ALL - CASE + + COUNT( * ) WHEN + + 90 THEN + + 73 + CASE - - 31 WHEN - + 2 THEN NULL WHEN - + ( + CAST( - 47 AS SIGNED ) ) THEN - 76 * - 77 / + 8 + + - 35 WHEN + 97 + 64 + + + 8 / + - 60 + + 95 * + 64 / + COUNT( * ) + - COALESCE ( + 51, - 61 ) THEN NULL WHEN 77 THEN 77 + - 92 END WHEN COALESCE ( + 40, - 3 ) THEN MAX( DISTINCT - NULLIF ( + 15, 47 / 88 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL - CASE + + COUNT ( * ) WHEN + + 90 THEN + + 73 + CASE - - 31 WHEN - + 2 THEN NULL WHEN - + ( + CAST ( - 47 AS INTEGER ) ) THEN - 76 * - 77 / + 8 + + - 35 WHEN + 97 + 64 + + + 8 / + - 60 + + 95 * + 64 / + COUNT ( * ) + - COALESCE ( + 51, - 61 ) THEN NULL WHEN 77 THEN 77 + - 92 END WHEN COALESCE ( + 40, - 3 ) THEN MAX ( DISTINCT - NULLIF ( + 15, 47 / 88 ) ) END AS col1
----
NULL

query II rowsort
SELECT 76 AS col0, + 73
----
76
73

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-756
SELECT ALL 70 DIV - 45 col2
----
-1

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL 70 / - 45 col2
----
-1

query I rowsort
SELECT + 72 * - - 38 + + 12 AS col0
----
2748

onlyif mysql # aggregate syntax: 
query II rowsort label-758
SELECT + + 20 AS col2, COALESCE ( 93, + COALESCE ( + MIN( ALL + 92 ), + 50 ), SUM( - + 61 ) + 28 + + COUNT( * ) )
----
20
93

skipif mysql # not compatible
query II rowsort label-758
SELECT + + 20 AS col2, COALESCE ( 93, + COALESCE ( + MIN ( ALL + 92 ), + 50 ), SUM ( - + 61 ) + 28 + + COUNT ( * ) )
----
20
93

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT + 58 * + + MIN( - 57 ) * - - 43 AS col2
----
-142158

skipif mysql # not compatible
query I rowsort label-759
SELECT + 58 * + + MIN ( - 57 ) * - - 43 AS col2
----
-142158

query I rowsort
SELECT DISTINCT + 95
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-761
SELECT ALL 51 DIV 64 DIV + 19 + + 68
----
68

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL 51 / 64 / + 19 + + 68
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-762
SELECT DISTINCT + 82 DIV + + COALESCE ( 27, + MIN( - 38 ) * - - 22 - - COALESCE ( + 11, + 95 - + 29 ) - 52 - - - ( - 33 ) ) + + 89 + 84 * 95
----
8072

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT + 82 / + + COALESCE ( 27, + MIN ( - 38 ) * - - 22 - - COALESCE ( + 11, + 95 - + 29 ) - 52 - - - ( - 33 ) ) + + 89 + 84 * 95
----
8072

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-765
SELECT DISTINCT - 32 / COUNT( * ) + + 50 - 80 * CASE + 86 WHEN 38 THEN CAST( + 67 AS SIGNED ) WHEN - 14 THEN - 86 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-765
SELECT DISTINCT - 32 / COUNT ( * ) + + 50 - 80 * CASE + 86 WHEN 38 THEN CAST ( + 67 AS INTEGER ) WHEN - 14 THEN - 86 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-766
SELECT + SUM( + 38 ) - - 88 * + CAST( NULL AS SIGNED ) + 41
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT COUNT( * ) * 37 - + 22 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-768
SELECT COUNT ( * ) * 37 - + 22 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT - SUM( + - 55 ) * 90 AS col2
----
4950

skipif mysql # not compatible
query I rowsort label-769
SELECT - SUM ( + - 55 ) * 90 AS col2
----
4950

onlyif mysql # DIV for integer division: 
query I rowsort label-770
SELECT ALL 85 DIV 51 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL 85 / 51 AS col2
----
1

query II rowsort
SELECT + ( - 26 ) AS col0, 10 AS col0
----
-26
10

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

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

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

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

query I rowsort
SELECT + 19 - - 83 AS col1
----
102

query I rowsort
SELECT ALL + 14
----
14

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

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

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

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

query I rowsort
SELECT - 89 * - 61 AS col0
----
5429

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-781
SELECT CASE - 51 WHEN + - CAST( 64 AS SIGNED ) + + + 15 THEN NULL WHEN + + 75 + + CAST( + 9 AS SIGNED ) THEN NULL WHEN + - 42 * 49 THEN - + 50 + + - ( - - 18 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-781
SELECT CASE - 51 WHEN + - CAST ( 64 AS INTEGER ) + + + 15 THEN NULL WHEN + + 75 + + CAST ( + 9 AS INTEGER ) THEN NULL WHEN + - 42 * 49 THEN - + 50 + + - ( - - 18 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-782
SELECT + 87 * + MIN( ALL - 58 ) * + COUNT( * ) * - 88 + + 63 - - MAX( DISTINCT - 63 ) - + 13 - + + 25 DIV 71 * 80 * + 71 + + ( 42 ) col2
----
444077

skipif mysql # not compatible
query I rowsort label-782
SELECT + 87 * + MIN ( ALL - 58 ) * + COUNT ( * ) * - 88 + + 63 - - MAX ( DISTINCT - 63 ) - + 13 - + + 25 / 71 * 80 * + 71 + + ( 42 ) col2
----
444077

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

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

query I rowsort
SELECT + 69 + + + 38 + + - 92
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-786
SELECT 23 - COALESCE ( - - ( + - 52 ), - CAST( NULL AS SIGNED ), - 14 ) * - - 72
----
3767

skipif mysql # not compatible
query I rowsort label-786
SELECT 23 - COALESCE ( - - ( + - 52 ), - CAST ( NULL AS INTEGER ), - 14 ) * - - 72
----
3767

query I rowsort
SELECT - 13 * - + 24 AS col0
----
312

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-789
SELECT ALL + CASE - COUNT( - COALESCE ( 70, - 69, 97 ) ) WHEN 4 - - ( 24 ) THEN NULL WHEN COUNT( ALL + 70 ) + + - 58 THEN - + CAST( NULL AS SIGNED ) * - + 47 END AS col1, 94 + - 90 col1
----
NULL
4

skipif mysql # not compatible
query II rowsort label-789
SELECT ALL + CASE - COUNT ( - COALESCE ( 70, - 69, 97 ) ) WHEN 4 - - ( 24 ) THEN NULL WHEN COUNT ( ALL + 70 ) + + - 58 THEN - + CAST ( NULL AS INTEGER ) * - + 47 END AS col1, 94 + - 90 col1
----
NULL
4

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

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

query I rowsort
SELECT CASE + 26 WHEN + 69 - + 38 THEN + + NULLIF ( - 60, + 17 ) WHEN ( - 72 ) THEN - - 11 * + - 47 END
----
NULL

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

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

query I rowsort
SELECT ALL 63
----
63

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

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

query I rowsort
SELECT ALL 47
----
47

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

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

query I rowsort
SELECT 12 + 39 AS col0
----
51

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

query I rowsort
SELECT ALL - 78 * - 59 * + 96
----
441792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-802
SELECT - COUNT( * ) * - - 87 * + 68 / 25 + NULLIF ( 91, - 2 ) * CASE + - MIN( + 63 ) WHEN - 45 * + 79 - - 78 THEN - 30 WHEN 89 - - - 35 THEN + CAST( NULL AS SIGNED ) ELSE NULL END col0, - 3 AS col0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-802
SELECT - COUNT ( * ) * - - 87 * + 68 / 25 + NULLIF ( 91, - 2 ) * CASE + - MIN ( + 63 ) WHEN - 45 * + 79 - - 78 THEN - 30 WHEN 89 - - - 35 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END col0, - 3 AS col0
----
NULL
-3

query I rowsort
SELECT CASE WHEN ( NULL ) IS NULL THEN - 94 WHEN NOT NULL IS NULL THEN + 75 END
----
-94

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-805
SELECT ALL + CAST( - SUM( 29 ) AS SIGNED ) + - + 7
----
-36

skipif mysql # not compatible
query I rowsort label-805
SELECT ALL + CAST ( - SUM ( 29 ) AS INTEGER ) + - + 7
----
-36

query I rowsort
SELECT + 51 - 39 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT ALL + CASE 18 WHEN 18 * - ( 85 ) * COUNT( NULLIF ( + - 90, COALESCE ( - 97, + 26 * - - 66 / 93 * + - 91 ) ) ) * - COUNT( - 42 ) THEN + MIN( DISTINCT - 20 ) * 68 * 28 + 69 + + + ( + 34 ) / + + 36 WHEN 41 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-807
SELECT ALL + CASE 18 WHEN 18 * - ( 85 ) * COUNT ( NULLIF ( + - 90, COALESCE ( - 97, + 26 * - - 66 / 93 * + - 91 ) ) ) * - COUNT ( - 42 ) THEN + MIN ( DISTINCT - 20 ) * 68 * 28 + 69 + + + ( + 34 ) / + + 36 WHEN 41 THEN NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT ALL - + 57 * SUM( - ( - + 12 ) ) * - 98 AS col0
----
67032

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL - + 57 * SUM ( - ( - + 12 ) ) * - 98 AS col0
----
67032

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

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT DISTINCT - CASE - COUNT( * ) WHEN + 50 THEN NULL ELSE + COUNT( * ) END + + - 25 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT - CASE - COUNT ( * ) WHEN + 50 THEN NULL ELSE + COUNT ( * ) END + + - 25 AS col0
----
-26

query I rowsort
SELECT ALL + 35 + - 24 AS col0
----
11

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT COUNT( * ) + - 34 * + 21 col1
----
-713

skipif mysql # not compatible
query I rowsort label-816
SELECT COUNT ( * ) + - 34 * + 21 col1
----
-713

query II rowsort
SELECT ALL - 15 col2, + 46 + - ( + - 98 ) * + - 27 - - 19 * 58 AS col0
----
-15
-1498

query I rowsort
SELECT 42 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT 8 * - COUNT( * ) * - 47 + - - 75
----
451

skipif mysql # not compatible
query I rowsort label-819
SELECT 8 * - COUNT ( * ) * - 47 + - - 75
----
451

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT MIN( DISTINCT + 24 ) - + + 55 * + 12
----
-636

skipif mysql # not compatible
query I rowsort label-820
SELECT MIN ( DISTINCT + 24 ) - + + 55 * + 12
----
-636

query I rowsort
SELECT 60 * - + 81 * - - 31
----
-150660

onlyif mysql # aggregate syntax: 
query II rowsort label-822
SELECT 85 col1, + CASE 29 WHEN + 10 THEN + 71 + + - 17 + - 26 - - 52 + COUNT( * ) / 90 - + ( - 8 ) WHEN - - 85 * - 47 THEN NULL END
----
85
NULL

skipif mysql # not compatible
query II rowsort label-822
SELECT 85 col1, + CASE 29 WHEN + 10 THEN + 71 + + - 17 + - 26 - - 52 + COUNT ( * ) / 90 - + ( - 8 ) WHEN - - 85 * - 47 THEN NULL END
----
85
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-823
SELECT COUNT( * ) * - + 34 + MAX( DISTINCT - + 98 ) + - CASE + 29 WHEN + 33 / ( - - 5 ) * 57 / + 46 * 41 THEN + + 59 WHEN + + 33 * + + 55 * + 87 + + + 43 / CAST( NULL AS SIGNED ) THEN NULL END + + 83 * + + 6 * + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-823
SELECT COUNT ( * ) * - + 34 + MAX ( DISTINCT - + 98 ) + - CASE + 29 WHEN + 33 / ( - - 5 ) * 57 / + 46 * 41 THEN + + 59 WHEN + + 33 * + + 55 * + 87 + + + 43 / CAST ( NULL AS INTEGER ) THEN NULL END + + 83 * + + 6 * + 42
----
NULL

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

query II rowsort
SELECT DISTINCT + 45 * - - 18 * + 89 AS col1, 53 * - 62 * + + ( + 79 ) AS col0
----
72090
-259594

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-828
SELECT DISTINCT 43 * 25 * + - 20 * - - 92 * - CASE - 53 WHEN - 76 THEN NULL WHEN - - 91 THEN NULL WHEN 0 * - 44 * + 5 * + 42 - + COALESCE ( + - 58, + 81 ) THEN - CASE - 57 WHEN 88 DIV 34 THEN - - 19 DIV + COUNT( * ) * - 1 ELSE NULL END ELSE COALESCE ( + + 38, + 95 + + 22 ) END
----
75164000

skipif mysql # not compatible
query I rowsort label-828
SELECT DISTINCT 43 * 25 * + - 20 * - - 92 * - CASE - 53 WHEN - 76 THEN NULL WHEN - - 91 THEN NULL WHEN 0 * - 44 * + 5 * + 42 - + COALESCE ( + - 58, + 81 ) THEN - CASE - 57 WHEN 88 / 34 THEN - - 19 / + COUNT ( * ) * - 1 ELSE NULL END ELSE COALESCE ( + + 38, + 95 + + 22 ) END
----
75164000

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT ALL 2 - 76 + - MAX( 56 ) + + + 40 * 20 col2
----
670

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL 2 - 76 + - MAX ( 56 ) + + + 40 * 20 col2
----
670

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-831
SELECT COUNT( ALL 67 ) DIV - - 79 col1
----
0

skipif mysql # not compatible
query I rowsort label-831
SELECT COUNT ( ALL 67 ) / - - 79 col1
----
0

query II rowsort
SELECT ( - ( 44 ) ) * - 99 - + 5 col2, 58 * 32 * 5
----
4351
9280

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

query I rowsort
SELECT 61
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT 73 * 45 * + COUNT( * ) * - 44 + 4
----
-144536

skipif mysql # not compatible
query I rowsort label-835
SELECT 73 * 45 * + COUNT ( * ) * - 44 + 4
----
-144536

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

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

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

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

query I rowsort
SELECT - 8 AS col0
----
-8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT - 81 * + - 48 + - SUM( ALL - + 49 ) + + 59
----
3996

skipif mysql # not compatible
query I rowsort label-841
SELECT - 81 * + - 48 + - SUM ( ALL - + 49 ) + + 59
----
3996

query I rowsort
SELECT ALL 53
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT ALL COUNT( * ) * - 48 * ( ( - - CASE + 98 WHEN - 42 THEN NULL WHEN + 47 THEN + 37 ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL COUNT ( * ) * - 48 * ( ( - - CASE + 98 WHEN - 42 THEN NULL WHEN + 47 THEN + 37 ELSE NULL END ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT + 86 + - COUNT( * ) * + + 57 * + COUNT( * ) * COUNT( * ) col2
----
29

skipif mysql # not compatible
query I rowsort label-844
SELECT + 86 + - COUNT ( * ) * + + 57 * + COUNT ( * ) * COUNT ( * ) col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-845
SELECT 50 - - 73 DIV ( - 23 ) DIV - 53 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-845
SELECT 50 - - 73 / ( - 23 ) / - 53 AS col2
----
50

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-847
SELECT + 69 + - 38 * + - CAST( ( 55 ) AS SIGNED ) * - 26 + - + 91 + - 19 - MIN( DISTINCT + + 9 ), 85 + ( + 7 ) AS col1
----
-54390
92

skipif mysql # not compatible
query II rowsort label-847
SELECT + 69 + - 38 * + - CAST ( ( 55 ) AS INTEGER ) * - 26 + - + 91 + - 19 - MIN ( DISTINCT + + 9 ), 85 + ( + 7 ) AS col1
----
-54390
92

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

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

query I rowsort
SELECT ALL + 83
----
83

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

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

query I rowsort
SELECT ALL - + 97 + - 20 AS col2
----
-117

query I rowsort
SELECT - 36 + - + 27
----
-63

query I rowsort
SELECT DISTINCT - 47
----
-47

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

query I rowsort
SELECT DISTINCT - 88 + - - 61
----
-27

query I rowsort
SELECT ALL 88 col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-857
SELECT 96 + CASE 11 WHEN MIN( DISTINCT 66 ) * ( 48 ) * - - 19 + + COALESCE ( - + NULLIF ( - MAX( ALL 75 ), + 90 ), + + 54 ) THEN - 88 * + CAST( NULL AS SIGNED ) + + 98 WHEN ( 23 ) * CAST( + - 87 AS SIGNED ) THEN NULL END * COUNT( * ) * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-857
SELECT 96 + CASE 11 WHEN MIN ( DISTINCT 66 ) * ( 48 ) * - - 19 + + COALESCE ( - + NULLIF ( - MAX ( ALL 75 ), + 90 ), + + 54 ) THEN - 88 * + CAST ( NULL AS INTEGER ) + + 98 WHEN ( 23 ) * CAST ( + - 87 AS INTEGER ) THEN NULL END * COUNT ( * ) * 91
----
NULL

query I rowsort
SELECT ALL - 55 + 41 AS col0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-859
SELECT DISTINCT + 97 DIV + 14 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-859
SELECT DISTINCT + 97 / + 14 AS col2
----
6

query I rowsort
SELECT 28 col2
----
28

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

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

query I rowsort
SELECT ALL + 31 * + 45 * - 92 AS col2
----
-128340

query I rowsort
SELECT 44 * - 18 AS col2
----
-792

query I rowsort
SELECT ALL + 13 * + - 82
----
-1066

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT ALL 98 * + COUNT( * ) - - - 26
----
72

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL 98 * + COUNT ( * ) - - - 26
----
72

query I rowsort
SELECT ALL - 68 * ( + 13 )
----
-884

query I rowsort
SELECT ALL - 8
----
-8

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-872
SELECT ALL - 50, - COALESCE ( + + 75, 63 + 78 + 20 * + 11 - + 96 DIV 20 * 31 + 30 DIV - 94 * + NULLIF ( - - 72, SUM( DISTINCT - 29 ) ) ) AS col2
----
-50
-75

skipif mysql # not compatible
query II rowsort label-872
SELECT ALL - 50, - COALESCE ( + + 75, 63 + 78 + 20 * + 11 - + 96 / 20 * 31 + 30 / - 94 * + NULLIF ( - - 72, SUM ( DISTINCT - 29 ) ) ) AS col2
----
-50
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-873
SELECT COUNT( * ) * - + 91 + 83 / - CAST( NULL AS SIGNED ) / + MAX( 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-873
SELECT COUNT ( * ) * - + 91 + 83 / - CAST ( NULL AS INTEGER ) / + MAX ( 74 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL 35 * - + 40 - COUNT ( * ) AS col0
----
-1401

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-875
SELECT DISTINCT - 27 AS col2, - CAST( NULL AS DECIMAL )
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-875
SELECT DISTINCT - 27 AS col2, - CAST ( NULL AS REAL )
----
-27
NULL

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

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

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

query I rowsort
SELECT + 84 + - 50 AS col1
----
34

query II rowsort
SELECT + 25 AS col0, - 80
----
25
-80

query II rowsort
SELECT ALL + 29 AS col2, 98
----
29
98

onlyif mysql # DIV for integer division: 
query I rowsort label-881
SELECT ALL + 52 DIV - ( ( - 27 ) )
----
1

skipif mysql # not compatible
query I rowsort label-881
SELECT ALL + 52 / - ( ( - 27 ) )
----
1

query II rowsort
SELECT DISTINCT + + 69 AS col1, - 87 AS col2
----
69
-87

query I rowsort
SELECT DISTINCT + + 20 * + 73
----
1460

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

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

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

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

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

query I rowsort
SELECT - + 80 * - 93
----
7440

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT - + 22 + - - 88 * - - 13 + - - 39 * COUNT( * ) AS col1
----
1161

skipif mysql # not compatible
query I rowsort label-888
SELECT - + 22 + - - 88 * - - 13 + - - 39 * COUNT ( * ) AS col1
----
1161

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

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

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

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

query II rowsort
SELECT NULLIF ( + + 37, - - 89 ) * ( - 42 ) + + - 21 AS col2, - 40 AS col2
----
-1575
-40

query I rowsort
SELECT + - 42 - - 70
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-894
SELECT + MAX( ALL + CAST( + COALESCE ( + - 9, + 14 ) AS SIGNED ) ) DIV 11
----
0

skipif mysql # not compatible
query I rowsort label-894
SELECT + MAX ( ALL + CAST ( + COALESCE ( + - 9, + 14 ) AS INTEGER ) ) / 11
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-895
SELECT ALL CAST( NULL AS SIGNED ) + - + 66 * + + 88 * + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-895
SELECT ALL CAST ( NULL AS INTEGER ) + - + 66 * + + 88 * + - 3
----
NULL

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

query I rowsort
SELECT ALL 81 + + + 15 * + 89 - - 9 AS col0
----
1425

query I rowsort
SELECT - - 72
----
72

query III rowsort
SELECT 8 AS col2, 97, - + COALESCE ( 61, + 61 ) - + 24 * - 75 AS col2
----
8
97
1739

onlyif mysql # aggregate syntax: 
query II rowsort label-900
SELECT ALL 83, 78 * - 47 * 48 * - MAX( 81 ) - 55 AS col0
----
83
14253353

skipif mysql # not compatible
query II rowsort label-900
SELECT ALL 83, 78 * - 47 * 48 * - MAX ( 81 ) - 55 AS col0
----
83
14253353

query I rowsort
SELECT DISTINCT 21 + + 99 + + + 61 AS col2
----
181

query I rowsort
SELECT DISTINCT 26 * - 59 AS col1
----
-1534

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-903
SELECT - COUNT( * ), 52 DIV 68 AS col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-903
SELECT - COUNT ( * ), 52 / 68 AS col2
----
-1
0

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

query I rowsort
SELECT ALL 68 * 51
----
3468

query II rowsort
SELECT - ( - - 5 ) * 59 AS col2, 14 * - 86 + + COALESCE ( + 92, - 55 - 38 + 76 * + + 20 )
----
-295
-1112

onlyif mysql # aggregate syntax: 
query II rowsort label-907
SELECT - ( - 85 ), - MAX( DISTINCT - + 5 ) AS col2
----
85
5

skipif mysql # not compatible
query II rowsort label-907
SELECT - ( - 85 ), - MAX ( DISTINCT - + 5 ) AS col2
----
85
5

query I rowsort
SELECT 19
----
19

query I rowsort
SELECT ALL - 72 - + + 41 + + 13
----
-100

query I rowsort
SELECT 89
----
89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT + ( + COUNT( * ) ) - - 71 AS col0
----
72

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

query I rowsort
SELECT DISTINCT 95
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-914
SELECT ALL 56 DIV + 92 - - CASE 5 WHEN + - 88 DIV - 93 THEN NULL ELSE + 62 END AS col1
----
62

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL 56 / + 92 - - CASE 5 WHEN + - 88 / - 93 THEN NULL ELSE + 62 END AS col1
----
62

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

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

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

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

query I rowsort
SELECT - 61 + 13 * + 98 AS col1
----
1213

onlyif mysql # DIV for integer division: 
query I rowsort label-919
SELECT 10 DIV - + 51 - + 22
----
-22

skipif mysql # not compatible
query I rowsort label-919
SELECT 10 / - + 51 - + 22
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT ALL + COUNT( * ) * + 10 * - 79
----
-790

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL + COUNT ( * ) * + 10 * - 79
----
-790

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-923
SELECT 10 * - COUNT( * ) DIV + NULLIF ( - 97, 47 * + 31 + 0 - + + 38 * 64 ) + 7 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-923
SELECT 10 * - COUNT ( * ) / + NULLIF ( - 97, 47 * + 31 + 0 - + + 38 * 64 ) + 7 AS col1
----
7

query I rowsort
SELECT ALL + 74
----
74

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

query I rowsort
SELECT - + 95 * 30
----
-2850

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

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

query II rowsort
SELECT ALL + CASE + + 5 WHEN - 32 THEN - ( + + 98 ) ELSE NULL END col2, + 72
----
NULL
72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT ALL - - 21 * - ( - 11 ) + - 43 * 46 - 32 + MIN( DISTINCT + - 17 ) - + MIN( ALL + 19 ) - + 83 AS col1
----
-1898

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL - - 21 * - ( - 11 ) + - 43 * 46 - 32 + MIN ( DISTINCT + - 17 ) - + MIN ( ALL + 19 ) - + 83 AS col1
----
-1898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-931
SELECT + - NULLIF ( ( 6 ), ( + - 19 ) * + 5 - - 14 + 26 * - 29 + + + 44 + + 58 * - COUNT( * ) * + + 26 * + SUM( - - 25 ) * + 72 * - 18 * - + ( - + 74 ) / 25 + + + ( 68 ) + + 65 * CAST( AVG ( - 40 ) AS SIGNED ) )
----
-6

skipif mysql # not compatible
query I rowsort label-931
SELECT + - NULLIF ( ( 6 ), ( + - 19 ) * + 5 - - 14 + 26 * - 29 + + + 44 + + 58 * - COUNT ( * ) * + + 26 * + SUM ( - - 25 ) * + 72 * - 18 * - + ( - + 74 ) / 25 + + + ( 68 ) + + 65 * CAST ( AVG ( - 40 ) AS INTEGER ) )
----
-6

query I rowsort
SELECT - 9 * - 41 + + 45
----
414

onlyif mysql # aggregate syntax: 
query II rowsort label-933
SELECT DISTINCT - 25 * - 15 * 91 * - 42 + - 24 * - COUNT( DISTINCT - 35 ) AS col2, MAX( 69 ) AS col2
----
-1433226
69

skipif mysql # not compatible
query II rowsort label-933
SELECT DISTINCT - 25 * - 15 * 91 * - 42 + - 24 * - COUNT ( DISTINCT - 35 ) AS col2, MAX ( 69 ) AS col2
----
-1433226
69

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

query I rowsort
SELECT 29 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT DISTINCT - - 36 * + 56 + - + 98 * + MIN( ( + 33 ) ) + + - 81
----
-1299

skipif mysql # not compatible
query I rowsort label-936
SELECT DISTINCT - - 36 * + 56 + - + 98 * + MIN ( ( + 33 ) ) + + - 81
----
-1299

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

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT + + 94 + - COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-938
SELECT + + 94 + - COUNT ( * ) AS col2
----
93

query II rowsort
SELECT ALL - - 50 * - + 95, + 61 - - - 33 AS col0
----
-4750
28

query I rowsort
SELECT ALL 17 * + 96 + + 91 AS col0
----
1723

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT - CASE - - 19 WHEN 76 THEN NULL WHEN - + COUNT( * ) - + + 70 / 44 THEN 49 * + ( + + 82 ) / + 20 + - 67 WHEN - 55 THEN NULL END + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-944
SELECT - CASE - - 19 WHEN 76 THEN NULL WHEN - + COUNT ( * ) - + + 70 / 44 THEN 49 * + ( + + 82 ) / + 20 + - 67 WHEN - 55 THEN NULL END + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 54 + + + 86 AS col2
----
140

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

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

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

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

query II rowsort
SELECT + 67 + + 47 AS col0, 74 AS col1
----
114
74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT + ( + CASE 73 WHEN COUNT( * ) THEN - + 68 WHEN + - 68 THEN 49 + + 61 + - 80 WHEN - + 82 THEN NULL WHEN - - 89 THEN NULL END ) + - 74 + COALESCE ( 88, - + COALESCE ( AVG ( DISTINCT - 14 ), + + 92 + + 45, + + MIN( - 3 ) ), + AVG ( 13 ) + 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-951
SELECT + ( + CASE 73 WHEN COUNT ( * ) THEN - + 68 WHEN + - 68 THEN 49 + + 61 + - 80 WHEN - + 82 THEN NULL WHEN - - 89 THEN NULL END ) + - 74 + COALESCE ( 88, - + COALESCE ( AVG ( DISTINCT - 14 ), + + 92 + + 45, + + MIN ( - 3 ) ), + AVG ( 13 ) + 1 )
----
NULL

query II rowsort
SELECT ALL 62 - - ( 92 ) AS col2, 39 AS col1
----
154
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-953
SELECT + CASE - AVG ( ALL + + 97 ) WHEN + CAST( + COUNT( - 47 ) AS SIGNED ) THEN 97 * + MIN( CAST( NULL AS SIGNED ) ) / 97 + + SUM( NULLIF ( + + 16, + - 33 / 82 ) ) END + + + 84, MAX( + + 17 ) col0
----
NULL
17

skipif mysql # not compatible
query II rowsort label-953
SELECT + CASE - AVG ( ALL + + 97 ) WHEN + CAST ( + COUNT ( - 47 ) AS INTEGER ) THEN 97 * + MIN ( CAST ( NULL AS INTEGER ) ) / 97 + + SUM ( NULLIF ( + + 16, + - 33 / 82 ) ) END + + + 84, MAX ( + + 17 ) col0
----
NULL
17

query I rowsort
SELECT DISTINCT 82
----
82

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

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

query I rowsort
SELECT ALL 90
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-957
SELECT ALL 42, 84 * + MIN( - + 64 ) AS col2
----
42
-5376

skipif mysql # not compatible
query II rowsort label-957
SELECT ALL 42, 84 * + MIN ( - + 64 ) AS col2
----
42
-5376

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT ALL COALESCE ( 28, + MAX( DISTINCT - 37 ) )
----
28

skipif mysql # not compatible
query I rowsort label-958
SELECT ALL COALESCE ( 28, + MAX ( DISTINCT - 37 ) )
----
28

query I rowsort
SELECT DISTINCT 48
----
48

query I rowsort
SELECT 4 + 33 + - ( + 84 ) * - 57
----
4825

query I rowsort
SELECT ALL 54
----
54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT - NULLIF ( - COUNT( * ), 37 ) * 56 + COUNT( * ) * - - 28
----
84

skipif mysql # not compatible
query I rowsort label-963
SELECT - NULLIF ( - COUNT ( * ), 37 ) * 56 + COUNT ( * ) * - - 28
----
84

query II rowsort
SELECT ALL - 49 AS col0, + 98 * - 95 * + 98 + + - 27 + + + ( + 89 ) * - + 72 col0
----
-49
-918815

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

query I rowsort
SELECT 88 * 72
----
6336

onlyif mysql # DIV for integer division: 
query I rowsort label-967
SELECT 14 DIV - 8 + - + 77
----
-78

skipif mysql # not compatible
query I rowsort label-967
SELECT 14 / - 8 + - + 77
----
-78

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

onlyif mysql # aggregate syntax: 
query II rowsort label-969
SELECT ALL 60 * + COUNT( - 89 ) col1, + 95
----
60
95

skipif mysql # not compatible
query II rowsort label-969
SELECT ALL 60 * + COUNT ( - 89 ) col1, + 95
----
60
95

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT DISTINCT 78 * - COUNT( + 45 )
----
-78

skipif mysql # not compatible
query I rowsort label-970
SELECT DISTINCT 78 * - COUNT ( + 45 )
----
-78

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-973
SELECT 19 DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-973
SELECT 19 / - 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT - 30 - + + 79 + + - 55 * COUNT( DISTINCT + 99 ) - + - COUNT( * ) * - 16 * - 73 * + - 39
----
-45716

skipif mysql # not compatible
query I rowsort label-974
SELECT - 30 - + + 79 + + - 55 * COUNT ( DISTINCT + 99 ) - + - COUNT ( * ) * - 16 * - 73 * + - 39
----
-45716

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

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

query I rowsort
SELECT ALL - - ( 0 ) + ( + 66 ) * - 3 AS col2
----
-198

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT - 7 * + 71 + CASE + COUNT( * ) WHEN - - 87 * - 24 + ( 31 ) - + 36 THEN NULL WHEN + 40 THEN + 86 ELSE NULL END + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-980
SELECT - 7 * + 71 + CASE + COUNT ( * ) WHEN - - 87 * - 24 + ( 31 ) - + 36 THEN NULL WHEN + 40 THEN + 86 ELSE NULL END + - 86
----
NULL

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

skipif mysql # not compatible
query II rowsort label-981
SELECT 25 AS col0, - COUNT ( * ) + + + COUNT ( * )
----
25
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-984
SELECT - 40 DIV - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-984
SELECT - 40 / - 91 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-985
SELECT + 79 * + 41 - - COUNT( * ) * COUNT( * ), - 47 col2
----
3240
-47

skipif mysql # not compatible
query II rowsort label-985
SELECT + 79 * + 41 - - COUNT ( * ) * COUNT ( * ), - 47 col2
----
3240
-47

query I rowsort
SELECT ALL - 9 * - 47
----
423

query I rowsort
SELECT ALL - + 78 + + 99 AS col2
----
21

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

query I rowsort
SELECT 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-990
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 80 + - AVG ( DISTINCT 20 ) * - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 80 + - AVG ( DISTINCT 20 ) * - 15
----
NULL

query I rowsort
SELECT 4 * + 12
----
48

query I rowsort
SELECT + + 48
----
48

query II rowsort
SELECT ALL - 92 col0, + 32 * + 79
----
-92
2528

query I rowsort
SELECT 37
----
37

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

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

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

query II rowsort
SELECT - - 25 col2, - 13 + - 56 col0
----
25
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-998
SELECT DISTINCT + 76 - - + CAST( NULL AS SIGNED ) * 68, + 69 * + 45 AS col2
----
NULL
3105

skipif mysql # not compatible
query II rowsort label-998
SELECT DISTINCT + 76 - - + CAST ( NULL AS INTEGER ) * 68, + 69 * + 45 AS col2
----
NULL
3105

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

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

query II rowsort
SELECT + 51 AS col0, + 65 AS col0
----
51
65

query I rowsort
SELECT ALL 79
----
79

query II rowsort
SELECT - 90 AS col0, NULLIF ( + - 66, + NULLIF ( - 44, 54 / - 81 * + + 62 - + + 13 + ( - - 22 ) ) ) AS col2
----
-90
-66

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

query I rowsort
SELECT ALL 77
----
77

query I rowsort
SELECT - 78 AS col2
----
-78

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

query II rowsort
SELECT ALL 15 * + 76, + 71 AS col1
----
1140
71

query I rowsort
SELECT DISTINCT 83
----
83

query I rowsort
SELECT ALL 85
----
85

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

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

query I rowsort
SELECT ALL - 82 * COALESCE ( - 3, + + 74 + + + 68 * - 24 ) AS col1
----
246

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT SUM( ALL 13 ) + + 8 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-1015
SELECT SUM ( ALL 13 ) + + 8 AS col2
----
21

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

query I rowsort
SELECT ALL 0
----
0

query I rowsort
SELECT 85 * + - 92 AS col0
----
-7820

query I rowsort
SELECT 88 + 93 AS col2
----
181

query I rowsort
SELECT NULLIF ( - 36, 88 + - 75 ) * - + 63
----
2268

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1022
SELECT 97 * - SUM( ALL - CAST( NULL AS SIGNED ) ) * - + 87
----
NULL

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

query I rowsort
SELECT ALL - 19 + + + 3 * + - 5 AS col2
----
-34

query I rowsort
SELECT 4 - + 73 + - - 11
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT NULLIF ( - COUNT( * ), - COALESCE ( 70, - 48 ) ) + 3 + - 2 - + 37
----
-37

skipif mysql # not compatible
query I rowsort label-1025
SELECT NULLIF ( - COUNT ( * ), - COALESCE ( 70, - 48 ) ) + 3 + - 2 - + 37
----
-37

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

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

query I rowsort
SELECT DISTINCT - 52 col1
----
-52

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

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

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

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

query I rowsort
SELECT ALL 7 * + + 66 * 37 AS col1
----
17094

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT COUNT( * ) + - 18 * 46
----
-827

skipif mysql # not compatible
query I rowsort label-1031
SELECT COUNT ( * ) + - 18 * 46
----
-827

onlyif mysql # aggregate syntax: 
query II rowsort label-1032
SELECT - + 45 * - 20 * - + 99 - 92, + ( + COUNT( * ) ) col2
----
-89192
1

skipif mysql # not compatible
query II rowsort label-1032
SELECT - + 45 * - 20 * - + 99 - 92, + ( + COUNT ( * ) ) col2
----
-89192
1

query II rowsort
SELECT + + ( - - 35 ), + 59 col1
----
35
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1034
SELECT 71 + + 16 + - - 49 / - COUNT( * ) * - 43 * - + CASE 35 WHEN + SUM( ALL 6 ) THEN NULL ELSE 70 * - - 72 + - CAST( NULL AS SIGNED ) * - 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1034
SELECT 71 + + 16 + - - 49 / - COUNT ( * ) * - 43 * - + CASE 35 WHEN + SUM ( ALL 6 ) THEN NULL ELSE 70 * - - 72 + - CAST ( NULL AS INTEGER ) * - 26 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1035
SELECT 29 DIV - 73 * - COUNT( * ) - + - 72 AS col2, NULLIF ( - 91, + 59 + + + COUNT( * ) ) AS col2
----
72
-91

skipif mysql # not compatible
query II rowsort label-1035
SELECT 29 / - 73 * - COUNT ( * ) - + - 72 AS col2, NULLIF ( - 91, + 59 + + + COUNT ( * ) ) AS col2
----
72
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT - COUNT( DISTINCT + 0 ) * 27 * - NULLIF ( + 3, 80 + - + COALESCE ( + - 42, - 46 + - + 62 + + 29 * + 84 * + 63, - - COUNT( * ) * - CASE 99 WHEN + - 53 THEN - 56 ELSE - - 73 * 64 * + 16 END ) + + + 44 * 2 + - + MAX( DISTINCT - 48 ) ) + + ( 77 ) + + 6 * 56 + COUNT( * ) * + 85
----
579

skipif mysql # not compatible
query I rowsort label-1037
SELECT - COUNT ( DISTINCT + 0 ) * 27 * - NULLIF ( + 3, 80 + - + COALESCE ( + - 42, - 46 + - + 62 + + 29 * + 84 * + 63, - - COUNT ( * ) * - CASE 99 WHEN + - 53 THEN - 56 ELSE - - 73 * 64 * + 16 END ) + + + 44 * 2 + - + MAX ( DISTINCT - 48 ) ) + + ( 77 ) + + 6 * 56 + COUNT ( * ) * + 85
----
579

onlyif mysql # aggregate syntax: 
query II rowsort label-1038
SELECT + MIN( ALL + 96 ), - 67 AS col1
----
96
-67

skipif mysql # not compatible
query II rowsort label-1038
SELECT + MIN ( ALL + 96 ), - 67 AS col1
----
96
-67

query I rowsort
SELECT ALL - - 3
----
3

query I rowsort
SELECT ALL 47 * + + 18
----
846

query I rowsort
SELECT + 73
----
73

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

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

query I rowsort
SELECT - NULLIF ( + 91, + + 93 ) * - + 53 AS col0
----
4823

query I rowsort
SELECT 33
----
33

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1047
SELECT COUNT( * ) * - - ( - + 57 ) + 18 DIV + 66 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-1047
SELECT COUNT ( * ) * - - ( - + 57 ) + 18 / + 66 AS col2
----
-57

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

query I rowsort
SELECT ALL + + 83 * - 77 * + 67
----
-428197

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

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

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

query I rowsort
SELECT + 93 * + 45
----
4185

query I rowsort
SELECT ALL - - 70 * + + ( - 86 ) AS col0
----
-6020

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

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

query I rowsort
SELECT 79 + - 57
----
22

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

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

query I rowsort
SELECT DISTINCT 80
----
80

query I rowsort
SELECT 29 col2
----
29

query II rowsort
SELECT - CASE WHEN 95 IS NULL THEN NULL ELSE 96 + + 14 + 1 END AS col0, - 29 col0
----
-111
-29

query I rowsort
SELECT - 91 + - 49 * 24 * - + 41 AS col2
----
48125

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT DISTINCT MIN( ALL + + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-1061
SELECT DISTINCT MIN ( ALL + + 40 )
----
40

query I rowsort
SELECT - 67 + 66 + - 1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT ALL MIN( - 30 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-1063
SELECT ALL MIN ( - 30 ) AS col1
----
-30

query I rowsort
SELECT 16 AS col2
----
16

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

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

query I rowsort
SELECT DISTINCT - 96 + + 94 * - 71 AS col1
----
-6770

query I rowsort
SELECT - 51 AS col2
----
-51

query I rowsort
SELECT - 31 + - 66
----
-97

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

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

query I rowsort
SELECT - 8 + - 37 + - + 16
----
-61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT ALL + CASE COUNT( * ) WHEN 88 + COUNT( * ) THEN NULL WHEN + - 17 THEN + ( - COUNT( * ) ) ELSE NULL END + + + 10 + 2 - - + 64 * + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-1072
SELECT ALL + CASE COUNT ( * ) WHEN 88 + COUNT ( * ) THEN NULL WHEN + - 17 THEN + ( - COUNT ( * ) ) ELSE NULL END + + + 10 + 2 - - + 64 * + 17
----
NULL

query I rowsort
SELECT 53
----
53

query I rowsort
SELECT - 19
----
-19

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1076
SELECT - 48 DIV + 28
----
-1

skipif mysql # not compatible
query I rowsort label-1076
SELECT - 48 / + 28
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1077
SELECT ALL + + 91 * + 71 * - 0 * + ( ( COUNT( * ) ) ) * + 41 * + - COUNT( * ) * - + CASE 78 WHEN 87 THEN NULL WHEN 65 THEN NULL ELSE - 46 END + - 0 * 68 DIV + COUNT( * ) + - COALESCE ( CAST( + + ( MIN( ALL ( 57 ) ) ) AS SIGNED ), - 5 DIV + 2 )
----
-57

skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL + + 91 * + 71 * - 0 * + ( ( COUNT ( * ) ) ) * + 41 * + - COUNT ( * ) * - + CASE 78 WHEN 87 THEN NULL WHEN 65 THEN NULL ELSE - 46 END + - 0 * 68 / + COUNT ( * ) + - COALESCE ( CAST ( + + ( MIN ( ALL ( 57 ) ) ) AS INTEGER ), - 5 / + 2 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT - ( 21 ) * + COUNT( * ) * 58 AS col1
----
-1218

skipif mysql # not compatible
query I rowsort label-1078
SELECT - ( 21 ) * + COUNT ( * ) * 58 AS col1
----
-1218

query I rowsort
SELECT 74
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1080
SELECT DISTINCT + 41 * SUM( DISTINCT - - COALESCE ( + 4, 77 + - 34 ) ) / - + 93 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1080
SELECT DISTINCT + 41 * SUM ( DISTINCT - - COALESCE ( + 4, 77 + - 34 ) ) / - + 93 + - + CAST ( NULL AS INTEGER )
----
NULL

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

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

skipif mysql # not compatible
query II rowsort label-1082
SELECT + ( + COUNT ( * ) ) / + 5 AS col2, 73
----
0
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1083
SELECT ALL + 92 / CAST( NULL AS SIGNED ) * + + 95 * 83 - - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL + 92 / CAST ( NULL AS INTEGER ) * + + 95 * 83 - - 40 AS col2
----
NULL

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

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

query I rowsort
SELECT - - 37 - + - 13
----
50

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

query I rowsort
SELECT ALL 72 * + - 10 + - 49
----
-769

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

skipif mysql # not compatible
query I rowsort label-1089
SELECT - - COUNT ( * ) * + + 0 - + COUNT ( * ) + 66 / - 1 AS col2
----
-67

query I rowsort
SELECT + + 57 * 74
----
4218

query I rowsort
SELECT ALL + ( - + 58 ) * - + 68 - + 31 AS col0
----
3913

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

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

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

query I rowsort
SELECT + 34 + - 35
----
-1

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

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

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

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

query II rowsort
SELECT + 36, 15 AS col2
----
36
15

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

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

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

query I rowsort
SELECT + 72 * 89 - + 11 * + 87 - - + 25 + + - 56 + + 60 + - 82 * 96
----
-2392

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

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

query I rowsort
SELECT + - 30 * + ( + 19 ) AS col2
----
-570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1105
SELECT + CASE + 32 WHEN + 75 * - CAST( NULL AS SIGNED ) + - 66 DIV + 58 THEN - 86 + - 38 DIV - 71 WHEN - - 53 THEN + 14 ELSE NULL END AS col0, 73 DIV - - COUNT( * ) AS col0
----
NULL
73

skipif mysql # not compatible
query II rowsort label-1105
SELECT + CASE + 32 WHEN + 75 * - CAST ( NULL AS INTEGER ) + - 66 / + 58 THEN - 86 + - 38 / - 71 WHEN - - 53 THEN + 14 ELSE NULL END AS col0, 73 / - - COUNT ( * ) AS col0
----
NULL
73

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

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

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

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

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

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

query II rowsort
SELECT - 32, + 10 AS col1
----
-32
10

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1111
SELECT ALL MIN( ALL + + 79 ) DIV 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL MIN ( ALL + + 79 ) / 91 AS col1
----
0

query I rowsort
SELECT - 68 * - COALESCE ( - - 10, + + 4 + + ( 18 ) * + 14, 99, + 46 - - + 62 + 22 * - 87 ) AS col1
----
680

query I rowsort
SELECT - 26 - + 14
----
-40

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

skipif mysql # not compatible
query I rowsort label-1114
SELECT + COUNT ( * ) * - + 43 / 41 * 28
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT ALL - MAX( + 82 ) + CASE - ( 18 ) WHEN - 26 THEN 69 WHEN COALESCE ( - 22, + 93 ) + - COUNT( * ) THEN + ( - 63 ) ELSE + + 77 END + + 1 * - 14 * + 77
----
-1083

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL - MAX ( + 82 ) + CASE - ( 18 ) WHEN - 26 THEN 69 WHEN COALESCE ( - 22, + 93 ) + - COUNT ( * ) THEN + ( - 63 ) ELSE + + 77 END + + 1 * - 14 * + 77
----
-1083

query I rowsort
SELECT DISTINCT 44
----
44

query I rowsort
SELECT ALL + 19 + - + 11 AS col2
----
8

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1119
SELECT ALL - COALESCE ( - - 15, 52 + + 57, + 81 DIV + COUNT( + - 72 ) * 10 + 5 + + 20 - + CAST( NULL AS SIGNED ) ) + - - MIN( ALL + 81 ) * - - 37
----
2982

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL - COALESCE ( - - 15, 52 + + 57, + 81 / + COUNT ( + - 72 ) * 10 + 5 + + 20 - + CAST ( NULL AS INTEGER ) ) + - - MIN ( ALL + 81 ) * - - 37
----
2982

query I rowsort
SELECT 20
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT + 72 + + 64 + COUNT( * ) + - - 36 * - 59
----
-1987

skipif mysql # not compatible
query I rowsort label-1121
SELECT + 72 + + 64 + COUNT ( * ) + - - 36 * - 59
----
-1987

query I rowsort
SELECT 6
----
6

query II rowsort
SELECT - 24 + + 33 col0, ( - 77 )
----
9
-77

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

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

query I rowsort
SELECT - 42 + 1
----
-41

query I rowsort
SELECT 7
----
7

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

query I rowsort
SELECT - 46 + - 29 AS col0
----
-75

query I rowsort
SELECT ALL CASE 57 WHEN - 5 THEN - 39 END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1131
SELECT ALL - ( CAST( - + 39 AS SIGNED ) ) * - + 62 * 41 AS col0
----
-99138

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL - ( CAST ( - + 39 AS INTEGER ) ) * - + 62 * 41 AS col0
----
-99138

query I rowsort
SELECT - - 35 * - 40 AS col0
----
-1400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1133
SELECT DISTINCT + 30 * + - ( CAST( NULL AS SIGNED ) ) * - 95 - + 80 + + + 10 - + - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1133
SELECT DISTINCT + 30 * + - ( CAST ( NULL AS INTEGER ) ) * - 95 - + 80 + + + 10 - + - 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1134
SELECT ALL + + COUNT( * ) AS col2, - MIN( ALL + 51 ) + 58 AS col2
----
1
7

skipif mysql # not compatible
query II rowsort label-1134
SELECT ALL + + COUNT ( * ) AS col2, - MIN ( ALL + 51 ) + 58 AS col2
----
1
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1135
SELECT - 96 DIV + - ( - 35 ) + 55 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-1135
SELECT - 96 / + - ( - 35 ) + 55 AS col1
----
53

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

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

query I rowsort
SELECT - - 91 + + + 26
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1138
SELECT + CAST( NULL AS SIGNED ) * 34 * - CASE 96 WHEN - COUNT( * ) - - - NULLIF ( 79, 87 ) + + 21 - - 4 THEN + AVG ( - + 53 ) * - 24 + + CAST( NULL AS SIGNED ) END - 47 * - 25 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1138
SELECT + CAST ( NULL AS INTEGER ) * 34 * - CASE 96 WHEN - COUNT ( * ) - - - NULLIF ( 79, 87 ) + + 21 - - 4 THEN + AVG ( - + 53 ) * - 24 + + CAST ( NULL AS INTEGER ) END - 47 * - 25 col0
----
NULL

query II rowsort
SELECT ALL + - 65 AS col1, 44 col0
----
-65
44

query I rowsort
SELECT - 20 * + - 5 + 36 * + 39 + + CASE 36 WHEN + 27 THEN 74 + + 17 + + 98 + + ( + 3 ) * + 3 * - 62 * - + 39 END
----
NULL

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL 92 / COUNT ( * ) col0
----
92

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

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

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

query I rowsort
SELECT ALL + 69
----
69

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

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

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

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

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

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

query II rowsort
SELECT ALL - + 72 AS col1, + 13 AS col2
----
-72
13

query I rowsort
SELECT + 43
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-1154
SELECT DISTINCT SUM( + + 3 ) * + 56 AS col1, 86 AS col2
----
168
86

skipif mysql # not compatible
query II rowsort label-1154
SELECT DISTINCT SUM ( + + 3 ) * + 56 AS col1, 86 AS col2
----
168
86

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT ALL CASE 25 WHEN + 62 * 52 * + 93 THEN 1 * - + SUM( ALL + 41 ) * + 48 - + - ( 5 ) ELSE NULL END + - - 70 * 56 + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL CASE 25 WHEN + 62 * 52 * + 93 THEN 1 * - + SUM ( ALL + 41 ) * + 48 - + - ( 5 ) ELSE NULL END + - - 70 * 56 + - 76
----
NULL

query I rowsort
SELECT ALL 9 + 94 AS col2
----
103

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

query II rowsort
SELECT 4 + - + 72 AS col1, - 63
----
-68
-63

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

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

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

query I rowsort
SELECT 54 col1
----
54

query I rowsort
SELECT 92
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1167
SELECT 3 DIV + - 81
----
0

skipif mysql # not compatible
query I rowsort label-1167
SELECT 3 / + - 81
----
0

query I rowsort
SELECT 39 + + 70 * - 0 AS col0
----
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT 48 + 83 * + ( - NULLIF ( NULLIF ( - - 33, - + 62 * + 25 * 17 + + ( + 35 ) ), - 32 * + COUNT( * ) ) ) col0
----
-2691

skipif mysql # not compatible
query I rowsort label-1171
SELECT 48 + 83 * + ( - NULLIF ( NULLIF ( - - 33, - + 62 * + 25 * 17 + + ( + 35 ) ), - 32 * + COUNT ( * ) ) ) col0
----
-2691

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT ALL 36 - 80 * - 54 + - COUNT( * ) AS col0
----
4355

skipif mysql # not compatible
query I rowsort label-1174
SELECT ALL 36 - 80 * - 54 + - COUNT ( * ) AS col0
----
4355

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1175
SELECT 29 DIV 54, 7 DIV - SUM( ALL + 21 ) AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-1175
SELECT 29 / 54, 7 / - SUM ( ALL + 21 ) AS col2
----
0
0

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

query I rowsort
SELECT 92 AS col2
----
92

query I rowsort
SELECT ALL - 92 * + + ( + 90 ) AS col1
----
-8280

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

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

query I rowsort
SELECT ALL + 76 * + 66 * + + 76 AS col0
----
381216

query I rowsort
SELECT - 91 AS col1
----
-91

query I rowsort
SELECT + COALESCE ( - 49, - 66 * + 24 ) AS col2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-1183
SELECT ALL - 1 * + 73 DIV - + 94
----
0

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL - 1 * + 73 / - + 94
----
0

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

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

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

query I rowsort
SELECT - - 25
----
25

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

query I rowsort
SELECT ALL + 12
----
12

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

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

query I rowsort
SELECT + 33 * 30 * ( + + 96 ) AS col1
----
95040

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT NULLIF ( - NULLIF ( - - MAX( ALL - - 69 ), + SUM( - - 13 ) / - COUNT( DISTINCT - ( 55 ) ) ), - - 16 * 37 * COUNT( 44 ) ) * + - 74
----
5106

skipif mysql # not compatible
query I rowsort label-1192
SELECT NULLIF ( - NULLIF ( - - MAX ( ALL - - 69 ), + SUM ( - - 13 ) / - COUNT ( DISTINCT - ( 55 ) ) ), - - 16 * 37 * COUNT ( 44 ) ) * + - 74
----
5106

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

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

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

query I rowsort
SELECT ALL - + 16
----
-16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT 25 + ( - ( 90 ) ) * - 80 * + - NULLIF ( - ( - COUNT( * ) ), - 11 + 10 )
----
-7175

skipif mysql # not compatible
query I rowsort label-1198
SELECT 25 + ( - ( 90 ) ) * - 80 * + - NULLIF ( - ( - COUNT ( * ) ), - 11 + 10 )
----
-7175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1199
SELECT DISTINCT - 57 + - COUNT( * ) * - - CAST( - 71 AS SIGNED ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-1199
SELECT DISTINCT - 57 + - COUNT ( * ) * - - CAST ( - 71 AS INTEGER ) AS col2
----
14

query I rowsort
SELECT ALL - 84
----
-84

query I rowsort
SELECT + + 71 col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT 74 - + 53 + - NULLIF ( 98, + COUNT( ALL - - 9 ) / + 57 + + 19 / COUNT( ALL 72 ) - + - 87 + 68 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-1202
SELECT 74 - + 53 + - NULLIF ( 98, + COUNT ( ALL - - 9 ) / + 57 + + 19 / COUNT ( ALL 72 ) - + - 87 + 68 ) AS col2
----
-77

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1204
SELECT ALL - COUNT( * ) * + + SUM( + + 85 ), + 86 AS col1
----
-85
86

skipif mysql # not compatible
query II rowsort label-1204
SELECT ALL - COUNT ( * ) * + + SUM ( + + 85 ), + 86 AS col1
----
-85
86

query I rowsort
SELECT 4 * 21 col2
----
84

query I rowsort
SELECT ALL - - 79
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT DISTINCT + SUM( ALL - 57 ) + + 62 * 97 AS col1
----
5957

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT + SUM ( ALL - 57 ) + + 62 * 97 AS col1
----
5957

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

query I rowsort
SELECT ALL + 64 + - ( - 19 )
----
83

query II rowsort
SELECT 32 AS col0, 45 AS col0
----
32
45

query I rowsort
SELECT ALL - NULLIF ( + - 68, + 27 ) AS col2
----
68

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

skipif mysql # not compatible
query I rowsort label-1213
SELECT DISTINCT - COUNT ( * ) + + 97 AS col1
----
96

query I rowsort
SELECT 7 - + 19 * 41
----
-772

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1216
SELECT ALL + COUNT( DISTINCT - 96 ) + + CAST( NULL AS SIGNED ) * - 91 * 50 + - + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL + COUNT ( DISTINCT - 96 ) + + CAST ( NULL AS INTEGER ) * - 91 * 50 + - + 36
----
NULL

query II rowsort
SELECT + 94, 75 col1
----
94
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1218
SELECT 94 * - CAST( - MIN( 69 ) AS SIGNED )
----
6486

skipif mysql # not compatible
query I rowsort label-1218
SELECT 94 * - CAST ( - MIN ( 69 ) AS INTEGER )
----
6486

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

query I rowsort
SELECT 42 * 93
----
3906

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT ALL 43 * - SUM( DISTINCT - 80 )
----
3440

skipif mysql # not compatible
query I rowsort label-1221
SELECT ALL 43 * - SUM ( DISTINCT - 80 )
----
3440

query I rowsort
SELECT 39
----
39

query I rowsort
SELECT ALL 60 - - + ( - + 8 ) AS col1
----
52

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

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

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

skipif mysql # not compatible
query II rowsort label-1226
SELECT COUNT ( * ) - - MIN ( + 26 ) AS col1, CAST ( NULL AS INTEGER ) - + 44
----
27
NULL

query I rowsort
SELECT 32 * 64 col2
----
2048

query I rowsort
SELECT ALL - 30 * - 7 AS col0
----
210

query I rowsort
SELECT DISTINCT 18
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1230
SELECT DISTINCT 42 * - MAX( CAST( - - 25 AS SIGNED ) ) * - 85 AS col0
----
89250

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT 42 * - MAX ( CAST ( - - 25 AS INTEGER ) ) * - 85 AS col0
----
89250

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1232
SELECT + 72 * ( + 75 ), + SUM( ALL 35 ) AS col0
----
5400
35

skipif mysql # not compatible
query II rowsort label-1232
SELECT + 72 * ( + 75 ), + SUM ( ALL 35 ) AS col0
----
5400
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT - MAX( - + 81 ) + - 20 * 62 col2
----
-1159

skipif mysql # not compatible
query I rowsort label-1233
SELECT - MAX ( - + 81 ) + - 20 * 62 col2
----
-1159

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

query I rowsort
SELECT ALL - 50
----
-50

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

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

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

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

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

query I rowsort
SELECT ALL - 64 * 67 col2
----
-4288

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1241
SELECT DISTINCT - 53 DIV 40 DIV SUM( DISTINCT 82 ) DIV - + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1241
SELECT DISTINCT - 53 / 40 / SUM ( DISTINCT 82 ) / - + 78 AS col1
----
0

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

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

query I rowsort
SELECT + 30 + - + 54 AS col2
----
-24

query I rowsort
SELECT DISTINCT 70 * - - ( - + ( - 84 ) ) * 22 * - - ( + - 73 ) + - - 1 AS col0
----
-9443279

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1245
SELECT ALL 43 col0, + 27 * 52 * - + COALESCE ( 80, - CAST( NULL AS SIGNED ) + - 93 - + - ( + 21 ) ) AS col2
----
43
-112320

skipif mysql # not compatible
query II rowsort label-1245
SELECT ALL 43 col0, + 27 * 52 * - + COALESCE ( 80, - CAST ( NULL AS INTEGER ) + - 93 - + - ( + 21 ) ) AS col2
----
43
-112320

query I rowsort
SELECT 9 + + 63
----
72

query I rowsort
SELECT ALL NULLIF ( + 66, - 19 * - 7 * + 44 * + ( - + 7 ) + + 68 ) + 89
----
155

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

query II rowsort
SELECT + 54 AS col1, 63 AS col0
----
54
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1250
SELECT + CAST( NULL AS SIGNED ) * MIN( DISTINCT + + ( - 44 ) ) - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-1250
SELECT + CAST ( NULL AS INTEGER ) * MIN ( DISTINCT + + ( - 44 ) ) - 49
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1251
SELECT MIN( DISTINCT - 3 ) DIV + 65 * - - 93 + + - ( - 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-1251
SELECT MIN ( DISTINCT - 3 ) / + 65 * - - 93 + + - ( - 64 ) AS col0
----
64

query I rowsort
SELECT + 27
----
27

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

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

query I rowsort
SELECT - + 93 + - 11 * - NULLIF ( - 49, + 79 ) * + + 3 col0
----
-1710

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT ALL - 16 * + - 2 * - COUNT( * ) + + 86
----
54

skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL - 16 * + - 2 * - COUNT ( * ) + + 86
----
54

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

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

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL - 24 * 77 / + COUNT ( * ) AS col1
----
-1848

query I rowsort
SELECT DISTINCT 40 * + 78 + - 47 + - 74
----
2999

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

query I rowsort
SELECT + 83
----
83

query I rowsort
SELECT DISTINCT + CASE 65 WHEN - 92 + + + ( - 68 ) THEN ( + 7 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT + COUNT( DISTINCT - 75 ) + + MIN( 28 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-1263
SELECT + COUNT ( DISTINCT - 75 ) + + MIN ( 28 ) AS col2
----
29

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

query I rowsort
SELECT - 71 * 11 + 1 AS col1
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT - COUNT( ALL - 38 ) - + - 30 - + + 66 * COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-1266
SELECT - COUNT ( ALL - 38 ) - + - 30 - + + 66 * COUNT ( * )
----
-37

query I rowsort
SELECT - 49 + + + 76 * - + 11 AS col2
----
-885

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT ALL + SUM( ALL 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL + SUM ( ALL 56 ) AS col1
----
56

query I rowsort
SELECT ALL + 87
----
87

query II rowsort
SELECT ALL - 61 * - + 42, 3 AS col1
----
2562
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT - 43 + + - 13 - + 64 * - COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-1271
SELECT - 43 + + - 13 - + 64 * - COUNT ( * ) AS col2
----
8

onlyif mysql # DIV for integer division: 
query II rowsort label-1272
SELECT - 1 DIV 6, NULLIF ( 35, - 77 DIV - ( + 33 ) * + - 76 ) AS col2
----
0
35

skipif mysql # not compatible
query II rowsort label-1272
SELECT - 1 / 6, NULLIF ( 35, - 77 / - ( + 33 ) * + - 76 ) AS col2
----
0
35

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

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL + 61 / + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT - 19 + + COUNT( - 25 ) + - 64
----
-82

skipif mysql # not compatible
query I rowsort label-1274
SELECT - 19 + + COUNT ( - 25 ) + - 64
----
-82

query I rowsort
SELECT ALL 13
----
13

query I rowsort
SELECT ALL 16
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT - COUNT( - 0 ) + NULLIF ( - MAX( ALL 99 ), + 72 )
----
-100

skipif mysql # not compatible
query I rowsort label-1277
SELECT - COUNT ( - 0 ) + NULLIF ( - MAX ( ALL 99 ), + 72 )
----
-100

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1280
SELECT ALL + NULLIF ( MIN( DISTINCT 15 ), + 2 ) AS col1, 16 AS col0
----
15
16

skipif mysql # not compatible
query II rowsort label-1280
SELECT ALL + NULLIF ( MIN ( DISTINCT 15 ), + 2 ) AS col1, 16 AS col0
----
15
16

query II rowsort
SELECT - + ( + - 5 ) col1, 29
----
5
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT + - 73 + - 42 * + - 68 + + - COUNT( - ( + 34 ) )
----
2782

skipif mysql # not compatible
query I rowsort label-1282
SELECT + - 73 + - 42 * + - 68 + + - COUNT ( - ( + 34 ) )
----
2782

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT MIN( - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-1283
SELECT MIN ( - 92 )
----
-92

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

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

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

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

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

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

query I rowsort
SELECT ALL ( - 83 ) + + 79 AS col0
----
-4

query I rowsort
SELECT + 42 * - + 55
----
-2310

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ALL - 8 + - SUM( DISTINCT + - 93 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL - 8 + - SUM ( DISTINCT + - 93 ) AS col0
----
85

query I rowsort
SELECT + + 97 * - 3 col2
----
-291

query I rowsort
SELECT - + 88
----
-88

query I rowsort
SELECT - 0
----
0

query I rowsort
SELECT - 11
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1301
SELECT ALL - NULLIF ( 59, 39 ) + - 1 AS col0, COUNT( * ) * NULLIF ( + + 20, + + CAST( + + 82 AS SIGNED ) * 84 * ( 76 ) ) AS col1, + CASE - 51 WHEN - ( + + 72 ) THEN - - 6 ELSE NULL END + 43
----
-60
20
NULL

skipif mysql # not compatible
query III rowsort label-1301
SELECT ALL - NULLIF ( 59, 39 ) + - 1 AS col0, COUNT ( * ) * NULLIF ( + + 20, + + CAST ( + + 82 AS INTEGER ) * 84 * ( 76 ) ) AS col1, + CASE - 51 WHEN - ( + + 72 ) THEN - - 6 ELSE NULL END + 43
----
-60
20
NULL

query I rowsort
SELECT + 33
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1303
SELECT ALL - 0 DIV - 98 + + 41 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL - 0 / - 98 + + 41 AS col1
----
41

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1305
SELECT ALL + + 89 DIV ( - 18 ) + 98 + - COUNT( * ) - - - ( 37 ) + + + 88
----
144

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL + + 89 / ( - 18 ) + 98 + - COUNT ( * ) - - - ( 37 ) + + + 88
----
144

query I rowsort
SELECT + 92 * - ( - - 46 ) AS col1
----
-4232

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

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

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

query I rowsort
SELECT + 85 * - 78 AS col2
----
-6630

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

query II rowsort
SELECT ALL + 68 AS col2, - ( + 18 ) * - 26 * + - 51 * - 95
----
68
2267460

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1313
SELECT - 67 * 97 + 67 + ( 49 ) / ( + CAST( NULL AS SIGNED ) ) / - 9 * - - ( - 35 ) * + - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1313
SELECT - 67 * 97 + 67 + ( 49 ) / ( + CAST ( NULL AS INTEGER ) ) / - 9 * - - ( - 35 ) * + - 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT - COUNT( * ) - - 90 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-1314
SELECT - COUNT ( * ) - - 90 AS col0
----
89

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

query I rowsort
SELECT + 26 * - 24 AS col0
----
-624

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1324
SELECT - 95 * + 51 * - 46 col2, 53 - - MAX( - + 49 ) * - ( + - 58 ) * + 96 + + ( COUNT( - 73 ) )
----
222870
-272778

skipif mysql # not compatible
query II rowsort label-1324
SELECT - 95 * + 51 * - 46 col2, 53 - - MAX ( - + 49 ) * - ( + - 58 ) * + 96 + + ( COUNT ( - 73 ) )
----
222870
-272778

query I rowsort
SELECT DISTINCT + 57 * - + ( 59 ) AS col2
----
-3363

onlyif mysql # aggregate syntax: 
query II rowsort label-1326
SELECT CASE + 43 WHEN 68 THEN + 60 WHEN 49 THEN NULL WHEN + + 49 THEN - COUNT( * ) ELSE - 2 END col1, + 47 AS col1
----
-2
47

skipif mysql # not compatible
query II rowsort label-1326
SELECT CASE + 43 WHEN 68 THEN + 60 WHEN 49 THEN NULL WHEN + + 49 THEN - COUNT ( * ) ELSE - 2 END col1, + 47 AS col1
----
-2
47

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT - NULLIF ( + 79, - - 91 ) DIV 56
----
-1

skipif mysql # not compatible
query I rowsort label-1328
SELECT - NULLIF ( + 79, - - 91 ) / 56
----
-1

query I rowsort
SELECT ALL + 67 * - 33 AS col2
----
-2211

query I rowsort
SELECT + 60 * 78 AS col1
----
4680

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

query I rowsort
SELECT DISTINCT + 58 * 12
----
696

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1335
SELECT - 90 DIV + - CAST( ( 66 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1335
SELECT - 90 / + - CAST ( ( 66 ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1336
SELECT DISTINCT + + 3 * + COUNT( + 66 ) + - + MIN( + 13 ), - MAX( ALL 3 ) + 45 + + 13 + + ( 5 ) * + COUNT( * ) AS col0
----
-10
60

skipif mysql # not compatible
query II rowsort label-1336
SELECT DISTINCT + + 3 * + COUNT ( + 66 ) + - + MIN ( + 13 ), - MAX ( ALL 3 ) + 45 + + 13 + + ( 5 ) * + COUNT ( * ) AS col0
----
-10
60

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

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

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

query I rowsort
SELECT + 65 + 0 + + 51 * - 7 * - COALESCE ( - - 69, - + 22 ) AS col0
----
24698

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1342
SELECT DISTINCT + 70 DIV + ( + 10 )
----
7

skipif mysql # not compatible
query I rowsort label-1342
SELECT DISTINCT + 70 / + ( + 10 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT ALL - 12 + - 72 * + + 11 * COUNT( * ) * 57 AS col0
----
-45156

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL - 12 + - 72 * + + 11 * COUNT ( * ) * 57 AS col0
----
-45156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1344
SELECT CASE 64 WHEN + - 38 * + 54 * CAST( NULL AS SIGNED ) THEN - COUNT( * ) END + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1344
SELECT CASE 64 WHEN + - 38 * + 54 * CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) END + + CAST ( NULL AS INTEGER )
----
NULL

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

query I rowsort
SELECT 69 - + + 94
----
-25

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

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

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

query I rowsort
SELECT - 76 * + 97 AS col2
----
-7372

query I rowsort
SELECT 18 + + COALESCE ( 25, + 55 * + 51 + - 69, 82, - 1 ) col1
----
43

query I rowsort
SELECT ALL 17 col2
----
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT ALL MAX( DISTINCT + - 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-1353
SELECT ALL MAX ( DISTINCT + - 6 ) AS col2
----
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT ALL + 85 - 88 * + - 35 - + COUNT( * )
----
3164

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL + 85 - 88 * + - 35 - + COUNT ( * )
----
3164

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1361
SELECT 97 DIV + 81 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1361
SELECT 97 / + 81 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT COALESCE ( 4, 61, + + 6 ) * - ( - MAX( DISTINCT 63 ) ) + - + 80 * - - MIN( ALL + 84 ) + 0 AS col1
----
-6468

skipif mysql # not compatible
query I rowsort label-1362
SELECT COALESCE ( 4, 61, + + 6 ) * - ( - MAX ( DISTINCT 63 ) ) + - + 80 * - - MIN ( ALL + 84 ) + 0 AS col1
----
-6468

query I rowsort
SELECT 42
----
42

query I rowsort
SELECT ALL - 77
----
-77

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1366
SELECT DISTINCT + COUNT( DISTINCT + - 76 ) DIV 42 - - CAST( ( + COUNT( * ) ) AS SIGNED ) - - 92 + 29
----
122

skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT + COUNT ( DISTINCT + - 76 ) / 42 - - CAST ( ( + COUNT ( * ) ) AS INTEGER ) - - 92 + 29
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-1367
SELECT ALL 14 * + 1 DIV + 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL 14 * + 1 / + 78 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1368
SELECT DISTINCT 31 * - - CASE - 57 WHEN 63 THEN NULL WHEN ( AVG ( + 88 ) ) THEN NULL WHEN + + 57 THEN - CAST( ( - 75 ) AS SIGNED ) + + + MAX( 9 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1368
SELECT DISTINCT 31 * - - CASE - 57 WHEN 63 THEN NULL WHEN ( AVG ( + 88 ) ) THEN NULL WHEN + + 57 THEN - CAST ( ( - 75 ) AS INTEGER ) + + + MAX ( 9 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 80
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-1370
SELECT 80 AS col1, 67 * COUNT( + 42 ) AS col0
----
80
67

skipif mysql # not compatible
query II rowsort label-1370
SELECT 80 AS col1, 67 * COUNT ( + 42 ) AS col0
----
80
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT COUNT( * ) + - + 74 * - COUNT( * ) * - 22 AS col2
----
-1627

skipif mysql # not compatible
query I rowsort label-1371
SELECT COUNT ( * ) + - + 74 * - COUNT ( * ) * - 22 AS col2
----
-1627

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

query I rowsort
SELECT 99 * 55 + + 56
----
5501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1374
SELECT 73 - - CASE - + 99 WHEN - 74 * - NULLIF ( CASE + - 42 WHEN - + 62 + + + NULLIF ( + 32, + + COUNT( * ) * + CAST( NULL AS SIGNED ) * - 93 ) THEN - 13 - AVG ( 44 ) WHEN ( + 14 ) * - + CAST( 74 AS SIGNED ) + + COUNT( * ) DIV - MAX( 78 ) DIV + - CASE - NULLIF ( + + 89, - 80 ) WHEN COUNT( * ) THEN - 33 ELSE NULL END - + COUNT( * ) THEN 21 ELSE 13 + ( 12 ) END, - + 99 ) THEN - ( + COUNT( * ) ) DIV - 98 - 68 WHEN ( ( + 45 ) ) * + 24 THEN NULL ELSE - ( 28 ) END * 15 AS col2
----
-347

skipif mysql # not compatible
query I rowsort label-1374
SELECT 73 - - CASE - + 99 WHEN - 74 * - NULLIF ( CASE + - 42 WHEN - + 62 + + + NULLIF ( + 32, + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - 93 ) THEN - 13 - AVG ( 44 ) WHEN ( + 14 ) * - + CAST ( 74 AS INTEGER ) + + COUNT ( * ) / - MAX ( 78 ) / + - CASE - NULLIF ( + + 89, - 80 ) WHEN COUNT ( * ) THEN - 33 ELSE NULL END - + COUNT ( * ) THEN 21 ELSE 13 + ( 12 ) END, - + 99 ) THEN - ( + COUNT ( * ) ) / - 98 - 68 WHEN ( ( + 45 ) ) * + 24 THEN NULL ELSE - ( 28 ) END * 15 AS col2
----
-347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1375
SELECT DISTINCT - 9 AS col0, + CAST( 23 AS SIGNED ) + + 69 + + COUNT( * ) + - 80 AS col0
----
-9
13

skipif mysql # not compatible
query II rowsort label-1375
SELECT DISTINCT - 9 AS col0, + CAST ( 23 AS INTEGER ) + + 69 + + COUNT ( * ) + - 80 AS col0
----
-9
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT 83 * 26 * - - COUNT( * )
----
2158

skipif mysql # not compatible
query I rowsort label-1376
SELECT 83 * 26 * - - COUNT ( * )
----
2158

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

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

query I rowsort
SELECT + 83 + + 57 + + + 54 + NULLIF ( + 25, + 61 )
----
219

query I rowsort
SELECT + ( - - 89 ) + - + COALESCE ( + 22, 75 ) + + + 15 + - 51
----
31

query I rowsort
SELECT DISTINCT + 85 * 96 + 59 * + 69
----
12231

query II rowsort
SELECT DISTINCT 33, + 66 AS col0
----
33
66

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

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

query III rowsort
SELECT ALL 93 + 47 AS col0, - 97 * - + 53 col1, - 78 * + 68 + + 3
----
140
5141
-5301

query I rowsort
SELECT 48 * - 55
----
-2640

query I rowsort
SELECT - 33 + + 46
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-1388
SELECT - 61 AS col1, - COUNT( * ) + + - 98
----
-61
-99

skipif mysql # not compatible
query II rowsort label-1388
SELECT - 61 AS col1, - COUNT ( * ) + + - 98
----
-61
-99

query I rowsort
SELECT 38 + - 85
----
-47

query I rowsort
SELECT ALL + 91 * - 35 * - ( + + 12 ) + - 1 AS col2
----
38219

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT + SUM( - 54 ) * - 67 AS col1
----
3618

skipif mysql # not compatible
query I rowsort label-1391
SELECT + SUM ( - 54 ) * - 67 AS col1
----
3618

query II rowsort
SELECT + 62 AS col2, 95 AS col2
----
62
95

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

query I rowsort
SELECT - 95
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-1395
SELECT ALL - 25 DIV - 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL - 25 / - 56 AS col1
----
0

query I rowsort
SELECT DISTINCT 90
----
90

query I rowsort
SELECT 97 - - + 0
----
97

query I rowsort
SELECT - + 40
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1399
SELECT 33 DIV - + 44 * - 8
----
0

skipif mysql # not compatible
query I rowsort label-1399
SELECT 33 / - + 44 * - 8
----
0

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1403
SELECT DISTINCT + CAST( 60 AS SIGNED ) * + + 52 AS col0
----
3120

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT + CAST ( 60 AS INTEGER ) * + + 52 AS col0
----
3120

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

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

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

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

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

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

query I rowsort
SELECT + 42
----
42

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1409
SELECT 57 DIV - + 95 AS col2, + CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1409
SELECT 57 / - + 95 AS col2, + CAST ( NULL AS INTEGER )
----
0
NULL

query I rowsort
SELECT 28 * - 22
----
-616

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

skipif mysql # not compatible
query I rowsort label-1411
SELECT MIN ( ALL + + 61 ) col2
----
61

query I rowsort
SELECT + 11
----
11

query II rowsort
SELECT 83 + - - 16, 49 + 96 AS col0
----
99
145

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

query I rowsort
SELECT ALL 89 * - ( - - 53 ) + - 11 * - 13
----
-4574

query I rowsort
SELECT 66 * + 26
----
1716

onlyif mysql # DIV for integer division: 
query I rowsort label-1417
SELECT ALL - 40 DIV - 64 * - + 51 * 19
----
0

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL - 40 / - 64 * - + 51 * 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT ALL COUNT( * ) * - - 47 * 23 AS col0
----
1081

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL COUNT ( * ) * - - 47 * 23 AS col0
----
1081

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1420
SELECT ALL 64 + + 65 * - 64 - + MIN( DISTINCT - 71 ) * - 52 * 80 AS col0, - COUNT( * ) + + - 48
----
-299456
-49

skipif mysql # not compatible
query II rowsort label-1420
SELECT ALL 64 + + 65 * - 64 - + MIN ( DISTINCT - 71 ) * - 52 * 80 AS col0, - COUNT ( * ) + + - 48
----
-299456
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT + - COUNT( * ) * + 72 * 17 - + 47 col0
----
-1271

skipif mysql # not compatible
query I rowsort label-1421
SELECT + - COUNT ( * ) * + 72 * 17 - + 47 col0
----
-1271

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

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

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

query I rowsort
SELECT - 47 - - + 36 * - + 63 AS col1
----
-2315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1425
SELECT + + 59 DIV + + ( - COUNT( * ) ) + + + 15 - - - 94 - ( 78 ) AS col1
----
-216

skipif mysql # not compatible
query I rowsort label-1425
SELECT + + 59 / + + ( - COUNT ( * ) ) + + + 15 - - - 94 - ( 78 ) AS col1
----
-216

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT + CASE + 21 WHEN + + 55 THEN + 94 * 71 + - 93 WHEN + 10 - - 50 + - - NULLIF ( 38, - - 79 + COUNT( * ) ) THEN NULL ELSE NULL END - - + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-1431
SELECT + CASE + 21 WHEN + + 55 THEN + 94 * 71 + - 93 WHEN + 10 - - 50 + - - NULLIF ( 38, - - 79 + COUNT ( * ) ) THEN NULL ELSE NULL END - - + 10
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1434
SELECT + 11 - 76 AS col2, + COUNT( * )
----
-65
1

skipif mysql # not compatible
query II rowsort label-1434
SELECT + 11 - 76 AS col2, + COUNT ( * )
----
-65
1

query I rowsort
SELECT ALL 24
----
24

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

query I rowsort
SELECT + CASE 23 WHEN + 36 * 5 / + 14 THEN 31 ELSE NULL END + 58
----
NULL

query I rowsort
SELECT - 33 * - + ( 13 )
----
429

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

query I rowsort
SELECT + 77 + - - 77 + - 15 + 25
----
164

query I rowsort
SELECT - - 83 - 2
----
81

query I rowsort
SELECT - + 8 - + 11
----
-19

query I rowsort
SELECT + 50 * - 56 AS col0
----
-2800

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT + 9 + + COUNT( * ) * + 32 + - 98
----
-57

skipif mysql # not compatible
query I rowsort label-1444
SELECT + 9 + + COUNT ( * ) * + 32 + - 98
----
-57

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1446
SELECT DISTINCT 74 * - - 10 * COUNT( * ) * + COALESCE ( - - COUNT( * ), - 16 * + CAST( + + 23 AS SIGNED ), + - COUNT( * ) + + MAX( DISTINCT - 3 ) * 81 + + ( + 51 ) )
----
740

skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT 74 * - - 10 * COUNT ( * ) * + COALESCE ( - - COUNT ( * ), - 16 * + CAST ( + + 23 AS INTEGER ), + - COUNT ( * ) + + MAX ( DISTINCT - 3 ) * 81 + + ( + 51 ) )
----
740

query I rowsort
SELECT ALL COALESCE ( + - 46, - + 80 ) AS col1
----
-46

query I rowsort
SELECT - 3 + + 5
----
2

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1451
SELECT - MIN( + 3 ) + - - 15 * - + 69 + + COUNT( * ) DIV - SUM( - 92 )
----
-1038

skipif mysql # not compatible
query I rowsort label-1451
SELECT - MIN ( + 3 ) + - - 15 * - + 69 + + COUNT ( * ) / - SUM ( - 92 )
----
-1038

query I rowsort
SELECT DISTINCT + 98 + - 34
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT ALL - NULLIF ( COALESCE ( + - 68, + 82 * - + 22, - + 65, 88 ), + - 45 ) + - ( 46 ) + - COUNT( * ) - 84
----
-63

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL - NULLIF ( COALESCE ( + - 68, + 82 * - + 22, - + 65, 88 ), + - 45 ) + - ( 46 ) + - COUNT ( * ) - 84
----
-63

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1456
SELECT + ( - - SUM( + - CAST( NULL AS SIGNED ) ) ), 46 col2
----
NULL
46

skipif mysql # not compatible
query II rowsort label-1456
SELECT + ( - - SUM ( + - CAST ( NULL AS INTEGER ) ) ), 46 col2
----
NULL
46

query II rowsort
SELECT + 98 AS col1, 53 * + 12 AS col2
----
98
636

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1460
SELECT - 19 DIV - + 30
----
0

skipif mysql # not compatible
query I rowsort label-1460
SELECT - 19 / - + 30
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1461
SELECT + 60 DIV + COALESCE ( + + 28, - 7 * - + MAX( - COALESCE ( + 11, + 85 ) ) + 82 ) + + 15
----
17

skipif mysql # not compatible
query I rowsort label-1461
SELECT + 60 / + COALESCE ( + + 28, - 7 * - + MAX ( - COALESCE ( + 11, + 85 ) ) + 82 ) + + 15
----
17

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

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

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

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

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

query II rowsort
SELECT + 63 AS col2, - 41 + + + 87 * 59 + 46 - - + 85 + + 47
----
63
5270

query I rowsort
SELECT DISTINCT - 54 * + + 75
----
-4050

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1467
SELECT - 65 * - - ( + ( SUM( DISTINCT + - 27 ) ) ) DIV + COUNT( * ) AS col2, - 79
----
1755
-79

skipif mysql # not compatible
query II rowsort label-1467
SELECT - 65 * - - ( + ( SUM ( DISTINCT + - 27 ) ) ) / + COUNT ( * ) AS col2, - 79
----
1755
-79

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1472
SELECT 35 DIV - 52 - + - ( 42 ) * + 61 AS col1
----
2562

skipif mysql # not compatible
query I rowsort label-1472
SELECT 35 / - 52 - + - ( 42 ) * + 61 AS col1
----
2562

query I rowsort
SELECT - 63 * + 74 - 82 + - + ( - 89 ) AS col1
----
-4655

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT + + 13 + 33 + NULLIF ( + - 95, 88 ) * - - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-1474
SELECT + + 13 + 33 + NULLIF ( + - 95, 88 ) * - - COUNT ( * )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT + COALESCE ( 58, + + MIN( - 72 ), + - 62 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-1475
SELECT + COALESCE ( 58, + + MIN ( - 72 ), + - 62 ) AS col1
----
58

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT - 81 + + - COUNT( * ) * - 31 * + + 50 AS col0
----
1469

skipif mysql # not compatible
query I rowsort label-1478
SELECT - 81 + + - COUNT ( * ) * - 31 * + + 50 AS col0
----
1469

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

query II rowsort
SELECT ALL + 13 col2, 18
----
13
18

query I rowsort
SELECT ALL - 3
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-1482
SELECT + 30, 76 DIV + 19 AS col1
----
30
4

skipif mysql # not compatible
query II rowsort label-1482
SELECT + 30, 76 / + 19 AS col1
----
30
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1483
SELECT + + 12 + 58 * - SUM( DISTINCT 90 ) * - - COUNT( * ) * - 5 - - - CAST( - + 92 AS SIGNED ) AS col1
----
26204

skipif mysql # not compatible
query I rowsort label-1483
SELECT + + 12 + 58 * - SUM ( DISTINCT 90 ) * - - COUNT ( * ) * - 5 - - - CAST ( - + 92 AS INTEGER ) AS col1
----
26204

query I rowsort
SELECT ALL - 6 * - - 23 col2
----
-138

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

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

query I rowsort
SELECT + - 42 * - 67
----
2814

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT + - COUNT( * ) + - 69 * - 32 * - 14 AS col1
----
-30913

skipif mysql # not compatible
query I rowsort label-1487
SELECT + - COUNT ( * ) + - 69 * - 32 * - 14 AS col1
----
-30913

query I rowsort
SELECT - - 57 AS col1
----
57

query I rowsort
SELECT + + ( 24 ) * 36 + + 69
----
933

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1491
SELECT ALL - 2 * + 64 AS col0, 80 * + ( COUNT( * ) )
----
-128
80

skipif mysql # not compatible
query II rowsort label-1491
SELECT ALL - 2 * + 64 AS col0, 80 * + ( COUNT ( * ) )
----
-128
80

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1495
SELECT - CAST( NULLIF ( 41, - 24 * CAST( + + 84 AS SIGNED ) ) AS SIGNED ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1495
SELECT - CAST ( NULLIF ( 41, - 24 * CAST ( + + 84 AS INTEGER ) ) AS INTEGER ) AS col0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1496
SELECT ALL CAST( 49 AS SIGNED ) + NULLIF ( - 88, - 21 * COUNT( * ) ) - + ( NULLIF ( + 28, CASE - - 5 WHEN + 4 * CAST( + 76 AS SIGNED ) THEN - + 29 + - - ( + COALESCE ( + - 62, - COUNT( * ) ) ) * + 70 * + 88 END * - AVG ( + 19 ) * ( ( - + 89 ) ) * 51 ) ) + 2 + + 89 + - COUNT( * ) * + - 85 / CASE - + COUNT( * ) WHEN + 68 THEN + + 99 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL CAST ( 49 AS INTEGER ) + NULLIF ( - 88, - 21 * COUNT ( * ) ) - + ( NULLIF ( + 28, CASE - - 5 WHEN + 4 * CAST ( + 76 AS INTEGER ) THEN - + 29 + - - ( + COALESCE ( + - 62, - COUNT ( * ) ) ) * + 70 * + 88 END * - AVG ( + 19 ) * ( ( - + 89 ) ) * 51 ) ) + 2 + + 89 + - COUNT ( * ) * + - 85 / CASE - + COUNT ( * ) WHEN + 68 THEN + + 99 END AS col2
----
NULL

query I rowsort
SELECT + 32 * - 53 AS col2
----
-1696

query I rowsort
SELECT + 43 - - 34 - - + 64 AS col2
----
141

query I rowsort
SELECT 71
----
71

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1502
SELECT + 96 DIV + 96, + 55 AS col2
----
1
55

skipif mysql # not compatible
query II rowsort label-1502
SELECT + 96 / + 96, + 55 AS col2
----
1
55

query I rowsort
SELECT ALL + 12 + + CASE 30 WHEN 19 + - 26 THEN 83 * - 45 - - 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1504
SELECT + COUNT( * ) * - 98 AS col0, 15 AS col1
----
-98
15

skipif mysql # not compatible
query II rowsort label-1504
SELECT + COUNT ( * ) * - 98 AS col0, 15 AS col1
----
-98
15

query I rowsort
SELECT ALL NULLIF ( - 92, - + 90 ) * 74
----
-6808

onlyif mysql # aggregate syntax: 
query II rowsort label-1506
SELECT ALL - 49 + - 70 AS col2, + SUM( 92 ) AS col1
----
-119
92

skipif mysql # not compatible
query II rowsort label-1506
SELECT ALL - 49 + - 70 AS col2, + SUM ( 92 ) AS col1
----
-119
92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT DISTINCT 13 - ( - + 9 ) - + + 8 * - COALESCE ( - COUNT( * ), COUNT( * ) ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-1508
SELECT DISTINCT 13 - ( - + 9 ) - + + 8 * - COALESCE ( - COUNT ( * ), COUNT ( * ) ) AS col1
----
14

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

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

query I rowsort
SELECT 82
----
82

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1514
SELECT ALL + MAX( ALL + 33 ) DIV + 96 * - + 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL + MAX ( ALL + 33 ) / + 96 * - + 54 AS col2
----
0

query I rowsort
SELECT - 29
----
-29

query I rowsort
SELECT 44 + 34 * - - 3 * - 70 col0
----
-7096

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT + 52 * 53 - + SUM( ALL - 95 ) * + 99 * - NULLIF ( SUM( - + 10 ), - + COUNT( * ) * + COUNT( * ) + 43 ) AS col0
----
96806

skipif mysql # not compatible
query I rowsort label-1517
SELECT + 52 * 53 - + SUM ( ALL - 95 ) * + 99 * - NULLIF ( SUM ( - + 10 ), - + COUNT ( * ) * + COUNT ( * ) + 43 ) AS col0
----
96806

query I rowsort
SELECT ALL - 62 * COALESCE ( 68, + 37 ) AS col2
----
-4216

query I rowsort
SELECT ALL - - 87
----
87

query I rowsort
SELECT + 30 col1
----
30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT DISTINCT - + 68 * 62 + + CASE + ( - COUNT( * ) ) WHEN 14 THEN + - 48 WHEN + ( COUNT( * ) ) * + 39 + - 56 THEN NULL ELSE 23 END + - - 91 + + + 9 * + COUNT( * ) * - + 45
----
-4507

skipif mysql # not compatible
query I rowsort label-1522
SELECT DISTINCT - + 68 * 62 + + CASE + ( - COUNT ( * ) ) WHEN 14 THEN + - 48 WHEN + ( COUNT ( * ) ) * + 39 + - 56 THEN NULL ELSE 23 END + - - 91 + + + 9 * + COUNT ( * ) * - + 45
----
-4507

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT - MAX( DISTINCT + + 32 ) * + 40 + - 20 + - 49 AS col0
----
-1349

skipif mysql # not compatible
query I rowsort label-1523
SELECT - MAX ( DISTINCT + + 32 ) * + 40 + - 20 + - 49 AS col0
----
-1349

query I rowsort
SELECT ALL - 13 * 4
----
-52

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1526
SELECT ALL - 2 * - COUNT( * ) + NULLIF ( + - 85, - 54 * - COUNT( * ) + + 71 ) AS col2, - 83 AS col1
----
-83
-83

skipif mysql # not compatible
query II rowsort label-1526
SELECT ALL - 2 * - COUNT ( * ) + NULLIF ( + - 85, - 54 * - COUNT ( * ) + + 71 ) AS col2, - 83 AS col1
----
-83
-83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT + 31 * + - 86 * - + 34 - - MIN( ALL 25 ) AS col0
----
90669

skipif mysql # not compatible
query I rowsort label-1528
SELECT + 31 * + - 86 * - + 34 - - MIN ( ALL 25 ) AS col0
----
90669

query I rowsort
SELECT + 36 * + + 91
----
3276

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

query I rowsort
SELECT 79 AS col2
----
79

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

skipif mysql # not compatible
query I rowsort label-1532
SELECT - CAST ( + 13 AS INTEGER ) + - + COUNT ( * )
----
-14

query I rowsort
SELECT 16 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT ALL + - 51 + COUNT( - - ( + - 57 ) ) + - 40 * - 74 * - 52 * 19 AS col1
----
-2924530

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL + - 51 + COUNT ( - - ( + - 57 ) ) + - 40 * - 74 * - 52 * 19 AS col1
----
-2924530

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT COUNT( ALL - + 52 ) - + 23 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-1535
SELECT COUNT ( ALL - + 52 ) - + 23 AS col0
----
-22

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

query I rowsort
SELECT DISTINCT 21
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT ALL + ( NULLIF ( 84, - + 93 * 29 * MAX( + 85 ) + ( 67 ) * 32 ) ) + - 99 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL + ( NULLIF ( 84, - + 93 * 29 * MAX ( + 85 ) + ( 67 ) * 32 ) ) + - 99 AS col0
----
-15

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

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

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

query I rowsort
SELECT 22 + - - 32 + + 77 AS col1
----
131

query I rowsort
SELECT 62
----
62

query II rowsort
SELECT DISTINCT 32 col0, 80 col1
----
32
80

onlyif mysql # aggregate syntax: 
query II rowsort label-1544
SELECT COUNT( * ) + ( - 71 ) + + 2 * - 13 AS col0, + 99 + MIN( DISTINCT - 93 ) col2
----
-96
6

skipif mysql # not compatible
query II rowsort label-1544
SELECT COUNT ( * ) + ( - 71 ) + + 2 * - 13 AS col0, + 99 + MIN ( DISTINCT - 93 ) col2
----
-96
6

query I rowsort
SELECT ALL 14 * + + 80
----
1120

query I rowsort
SELECT 41 + 22 + + 7 + + ( - - 84 ) AS col0
----
154

query I rowsort
SELECT ALL 8 + 56 AS col0
----
64

query I rowsort
SELECT - 96 AS col1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1549
SELECT ALL - CAST( ( - 2 ) AS SIGNED ) * - 19 + 35 * 50
----
1712

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL - CAST ( ( - 2 ) AS INTEGER ) * - 19 + 35 * 50
----
1712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1550
SELECT COUNT( DISTINCT + 12 ) + + 82 + + - 22 DIV 15 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-1550
SELECT COUNT ( DISTINCT + 12 ) + + 82 + + - 22 / 15 AS col2
----
82

query I rowsort
SELECT ALL 52
----
52

query I rowsort
SELECT ALL 4
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1553
SELECT 76 + - CAST( - - 49 AS SIGNED ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-1553
SELECT 76 + - CAST ( - - 49 AS INTEGER ) AS col1
----
27

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1555
SELECT COUNT( * ) DIV - 77 + 92 col1
----
92

skipif mysql # not compatible
query I rowsort label-1555
SELECT COUNT ( * ) / - 77 + 92 col1
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1556
SELECT + + COALESCE ( + COUNT( * ), - 82 ) col0, - 5 DIV + 62 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-1556
SELECT + + COALESCE ( + COUNT ( * ), - 82 ) col0, - 5 / + 62 AS col2
----
1
0

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

query I rowsort
SELECT 15 * 97
----
1455

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

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

skipif mysql # not compatible
query I rowsort label-1560
SELECT + SUM ( + 35 )
----
35

query I rowsort
SELECT DISTINCT 15 * - 61
----
-915

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

query II rowsort
SELECT - 95 * - + NULLIF ( + 54, - - 35 ) + - ( + 75 ) * ( - - 20 ) AS col2, + 62 AS col0
----
3630
62

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

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT + ( 2 ) col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT MAX( DISTINCT 99 )
----
99

skipif mysql # not compatible
query I rowsort label-1566
SELECT MAX ( DISTINCT 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT - COUNT( * ) + + - 22 * - 83
----
1825

skipif mysql # not compatible
query I rowsort label-1567
SELECT - COUNT ( * ) + + - 22 * - 83
----
1825

query I rowsort
SELECT + 59 AS col0
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1569
SELECT - 90 DIV - 53 * COUNT( DISTINCT 93 )
----
1

skipif mysql # not compatible
query I rowsort label-1569
SELECT - 90 / - 53 * COUNT ( DISTINCT 93 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT + 3 * + 3 - + 4 + - - COALESCE ( - COUNT( * ), - + CASE 58 WHEN - COALESCE ( - COUNT( * ), + ( + - 51 ) ) THEN + 1 WHEN - - 58 THEN NULL END * + - 3 ) + + 45 * - - 4 + + NULLIF ( + + 40, 11 * ( - 11 ) * + + ( 23 ) + + 39 )
----
224

skipif mysql # not compatible
query I rowsort label-1570
SELECT + 3 * + 3 - + 4 + - - COALESCE ( - COUNT ( * ), - + CASE 58 WHEN - COALESCE ( - COUNT ( * ), + ( + - 51 ) ) THEN + 1 WHEN - - 58 THEN NULL END * + - 3 ) + + 45 * - - 4 + + NULLIF ( + + 40, 11 * ( - 11 ) * + + ( 23 ) + + 39 )
----
224

query I rowsort
SELECT 63 * - 28
----
-1764

onlyif mysql # DIV for integer division: 
query I rowsort label-1572
SELECT + 66 + - 1 + + - 23 DIV - 92 + - 23 * + - 45
----
1100

skipif mysql # not compatible
query I rowsort label-1572
SELECT + 66 + - 1 + + - 23 / - 92 + - 23 * + - 45
----
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT ALL + COUNT( * ) + + 27 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL + COUNT ( * ) + + 27 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT ALL - 65 + - ( COUNT( * ) ) + + 73 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-1574
SELECT ALL - 65 + - ( COUNT ( * ) ) + + 73 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT ALL + SUM( DISTINCT - 46 ) * - 26 AS col1
----
1196

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL + SUM ( DISTINCT - 46 ) * - 26 AS col1
----
1196

query I rowsort
SELECT 51 + - 22 + + 56 * + 54 * - + 70 * + 20 * + 23 AS col0
----
-97372771

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1577
SELECT CAST( NULL AS SIGNED ) * 20 * + + 81 * + COUNT( * ) * - - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1577
SELECT CAST ( NULL AS INTEGER ) * 20 * + + 81 * + COUNT ( * ) * - - 59
----
NULL

query I rowsort
SELECT - 74 col0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1579
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1579
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + 38 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1580
SELECT ALL COUNT( * ) AS col0, - 59 * 5
----
1
-295

skipif mysql # not compatible
query II rowsort label-1580
SELECT ALL COUNT ( * ) AS col0, - 59 * 5
----
1
-295

query I rowsort
SELECT - 28
----
-28

query I rowsort
SELECT 67 + 73 + - - 53
----
193

query II rowsort
SELECT - 80 AS col0, 60 AS col2
----
-80
60

query I rowsort
SELECT - 82
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT ALL + 12 + NULLIF ( + COALESCE ( + + 66, COUNT( * ) - + COUNT( * ) + + 97 ), + 6 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL + 12 + NULLIF ( + COALESCE ( + + 66, COUNT ( * ) - + COUNT ( * ) + + 97 ), + 6 ) AS col2
----
78

query I rowsort
SELECT DISTINCT 86 AS col2
----
86

query I rowsort
SELECT DISTINCT NULLIF ( - 91, 76 * - 3 ) AS col2
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1588
SELECT DISTINCT - MAX( - 86 ) - + + CASE + 72 WHEN + 17 * 70 * 23 + - - 36 + 98 + - 22 - - ( COUNT( * ) ) + + CAST( - - 67 AS SIGNED ) * + 22 * + - 82 / 94 THEN - 75 END + + 9 / - + 57 * - 53, 93 AS col2
----
NULL
93

skipif mysql # not compatible
query II rowsort label-1588
SELECT DISTINCT - MAX ( - 86 ) - + + CASE + 72 WHEN + 17 * 70 * 23 + - - 36 + 98 + - 22 - - ( COUNT ( * ) ) + + CAST ( - - 67 AS INTEGER ) * + 22 * + - 82 / 94 THEN - 75 END + + 9 / - + 57 * - 53, 93 AS col2
----
NULL
93

query I rowsort
SELECT ALL 48
----
48

query I rowsort
SELECT - 49 col2
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1591
SELECT ALL + 49 - + + COUNT( * ) DIV + MIN( + 6 ) AS col1, 48 AS col0
----
49
48

skipif mysql # not compatible
query II rowsort label-1591
SELECT ALL + 49 - + + COUNT ( * ) / + MIN ( + 6 ) AS col1, 48 AS col0
----
49
48

query I rowsort
SELECT + 60 * - 69
----
-4140

query I rowsort
SELECT ALL - 77 * COALESCE ( - + 98, - + 91 )
----
7546

query II rowsort
SELECT ALL + 22 * - 47 AS col0, - 6 AS col0
----
-1034
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT - COUNT( * ) - + 90
----
-91

skipif mysql # not compatible
query I rowsort label-1595
SELECT - COUNT ( * ) - + 90
----
-91

query I rowsort
SELECT + 36 * - - ( + ( + ( 10 ) ) )
----
360

query I rowsort
SELECT 34 AS col2
----
34

query I rowsort
SELECT - 6 + + 43 AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1599
SELECT DISTINCT + 32 * ( + 39 ) * - 95 + - CAST( NULL AS SIGNED ) * 97 * COUNT( * ) * - 21 * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-1599
SELECT DISTINCT + 32 * ( + 39 ) * - 95 + - CAST ( NULL AS INTEGER ) * 97 * COUNT ( * ) * - 21 * + 7
----
NULL

query I rowsort
SELECT DISTINCT + 4
----
4

query II rowsort
SELECT ALL + 63 AS col1, 19 AS col1
----
63
19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1602
SELECT - 93 DIV + 50 - - - CAST( + ( + 72 ) AS SIGNED )
----
-73

skipif mysql # not compatible
query I rowsort label-1602
SELECT - 93 / + 50 - - - CAST ( + ( + 72 ) AS INTEGER )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT ALL + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL + + COUNT ( * )
----
1

query I rowsort
SELECT - 91 * + - 8 * + 92 * + 6 AS col1
----
401856

query I rowsort
SELECT - 15 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-1606
SELECT + 26 AS col2, - COUNT( * ) * + 12 * + 37 * 26 * + COUNT( * ) AS col0
----
26
-11544

skipif mysql # not compatible
query II rowsort label-1606
SELECT + 26 AS col2, - COUNT ( * ) * + 12 * + 37 * 26 * + COUNT ( * ) AS col0
----
26
-11544

query I rowsort
SELECT ALL + 28 * 73 + 23 AS col2
----
2067

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1608
SELECT + COUNT ( * ) AS col1
----
1

query II rowsort
SELECT 33 AS col1, ( + - 38 )
----
33
-38

query I rowsort
SELECT + + 30 * + ( + 26 ) col0
----
780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1611
SELECT + - CAST( NULL AS SIGNED ) + - 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1611
SELECT + - CAST ( NULL AS INTEGER ) + - 77 AS col0
----
NULL

query I rowsort
SELECT ALL + + 71 AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1613
SELECT CAST( - 6 AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-1613
SELECT CAST ( - 6 AS INTEGER )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT DISTINCT - COUNT( * ) * - 32 + 7 + + - 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT - COUNT ( * ) * - 32 + 7 + + - 39 AS col1
----
0

query I rowsort
SELECT + + 3
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1616
SELECT + + 47 AS col1, CAST( NULL AS SIGNED )
----
47
NULL

skipif mysql # not compatible
query II rowsort label-1616
SELECT + + 47 AS col1, CAST ( NULL AS INTEGER )
----
47
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1617
SELECT - 84 * COUNT( * ) - COUNT( DISTINCT + 69 ) - 91 + COUNT( * ) DIV 13 + 24 + - 29 DIV 78
----
-152

skipif mysql # not compatible
query I rowsort label-1617
SELECT - 84 * COUNT ( * ) - COUNT ( DISTINCT + 69 ) - 91 + COUNT ( * ) / 13 + 24 + - 29 / 78
----
-152

query I rowsort
SELECT + 69 AS col0
----
69

query I rowsort
SELECT ALL + 96
----
96

query I rowsort
SELECT + 44 + 16 + + + ( + 98 )
----
158

query I rowsort
SELECT + 72 AS col1
----
72

query I rowsort
SELECT - 9 * - CASE - 75 WHEN + - 54 THEN 50 * + - 93 * - 71 ELSE NULL END
----
NULL

query I rowsort
SELECT + 20 + - - 90 AS col1
----
110

onlyif mysql # DIV for integer division: 
query II rowsort label-1624
SELECT - 26 DIV 60 AS col1, + 47 + + 38
----
0
85

skipif mysql # not compatible
query II rowsort label-1624
SELECT - 26 / 60 AS col1, + 47 + + 38
----
0
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT ALL 82 * - COUNT( * ) - - ( + 80 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1625
SELECT ALL 82 * - COUNT ( * ) - - ( + 80 ) AS col2
----
-2

query I rowsort
SELECT + 38 * - 30 * - 78
----
88920

onlyif mysql # DIV for integer division: 
query I rowsort label-1627
SELECT DISTINCT 44 DIV 27 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT 44 / 27 AS col1
----
1

query I rowsort
SELECT ALL 81 AS col2
----
81

query I rowsort
SELECT ALL NULLIF ( - 36, 47 - 81 )
----
-36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1630
SELECT ( - 74 ) * + CAST( NULL AS DECIMAL ) - + 59 - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1630
SELECT ( - 74 ) * + CAST ( NULL AS REAL ) - + 59 - 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT + CASE ( + 19 ) WHEN - + 94 + + - 12 THEN AVG ( + 44 ) + + 47 * 94 END * 6 * - 30 * - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1631
SELECT + CASE ( + 19 ) WHEN - + 94 + + - 12 THEN AVG ( + 44 ) + + 47 * 94 END * 6 * - 30 * - COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1632
SELECT - CAST( + + 85 AS SIGNED ) * + + NULLIF ( - CASE + 39 WHEN + + 21 THEN NULL WHEN - COUNT( * ) THEN - - 87 / + 68 END, + - 50 + 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1632
SELECT - CAST ( + + 85 AS INTEGER ) * + + NULLIF ( - CASE + 39 WHEN + + 21 THEN NULL WHEN - COUNT ( * ) THEN - - 87 / + 68 END, + - 50 + 60 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1633
SELECT DISTINCT + 8 * + NULLIF ( - - 24, + 8 ) DIV - COUNT( * ), 2 + + 81 * MIN( - 27 ) - 29 AS col1
----
-192
-2214

skipif mysql # not compatible
query II rowsort label-1633
SELECT DISTINCT + 8 * + NULLIF ( - - 24, + 8 ) / - COUNT ( * ), 2 + + 81 * MIN ( - 27 ) - 29 AS col1
----
-192
-2214

query I rowsort
SELECT ALL - 91 * 16
----
-1456

onlyif mysql # DIV for integer division: 
query I rowsort label-1635
SELECT + 31 + + + ( 61 ) + - 70 - 77 DIV - ( 15 ) col1
----
27

skipif mysql # not compatible
query I rowsort label-1635
SELECT + 31 + + + ( 61 ) + - 70 - 77 / - ( 15 ) col1
----
27

query I rowsort
SELECT - 48 * 89 col1
----
-4272

onlyif mysql # aggregate syntax: 
query II rowsort label-1637
SELECT ALL ( - 47 ) col1, + COUNT( * )
----
-47
1

skipif mysql # not compatible
query II rowsort label-1637
SELECT ALL ( - 47 ) col1, + COUNT ( * )
----
-47
1

query I rowsort
SELECT 11 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT DISTINCT COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1639
SELECT DISTINCT COUNT ( * ) col2
----
1

query I rowsort
SELECT ALL - 88 AS col1
----
-88

query I rowsort
SELECT - - 77 AS col2
----
77

onlyif mysql # DIV for integer division: 
query II rowsort label-1642
SELECT - 45 DIV - 97, + 67 * - + 46 AS col1
----
0
-3082

skipif mysql # not compatible
query II rowsort label-1642
SELECT - 45 / - 97, + 67 * - + 46 AS col1
----
0
-3082

query I rowsort
SELECT ALL - 14 + + 56 AS col0
----
42

query I rowsort
SELECT - 71
----
-71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1645
SELECT + + 17 DIV - COALESCE ( - - 15, + - ( + - 92 ) ) + 38 + - CAST( ( - + 38 ) AS SIGNED ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-1645
SELECT + + 17 / - COALESCE ( - - 15, + - ( + - 92 ) ) + 38 + - CAST ( ( - + 38 ) AS INTEGER ) AS col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1646
SELECT - + 59 + MAX( NULLIF ( - - 23, 87 + + 10 / + - CAST( NULL AS DECIMAL ) ) ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-1646
SELECT - + 59 + MAX ( NULLIF ( - - 23, 87 + + 10 / + - CAST ( NULL AS REAL ) ) ) AS col0
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1647
SELECT + + MAX( ALL 93 ) DIV - COUNT( * ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-1647
SELECT + + MAX ( ALL 93 ) / - COUNT ( * ) AS col2
----
-93

query I rowsort
SELECT ALL + + 56 AS col1
----
56

query I rowsort
SELECT DISTINCT + 18 AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1650
SELECT DISTINCT + 9 DIV - 25 + - + CAST( + 40 AS SIGNED ) + + + 34 * - ( 82 )
----
-2828

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT + 9 / - 25 + - + CAST ( + 40 AS INTEGER ) + + + 34 * - ( 82 )
----
-2828

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT - + COUNT( * ) * + + ( - 25 )
----
25

skipif mysql # not compatible
query I rowsort label-1651
SELECT - + COUNT ( * ) * + + ( - 25 )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-1652
SELECT DISTINCT - 66 DIV - 67 + 74 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT - 66 / - 67 + 74 AS col1
----
74

query I rowsort
SELECT ALL + - 22
----
-22

query I rowsort
SELECT + + 72
----
72

query I rowsort
SELECT ALL + + 45
----
45

query I rowsort
SELECT - - 32 + 31 * 8 + + 78 AS col1
----
358

query I rowsort
SELECT - 19 * + + CASE + 6 WHEN 69 THEN + 50 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-1658
SELECT - COUNT ( * ) col2
----
-1

query I rowsort
SELECT - 56 * + - 99 * 41 + + 90 * + 56 AS col0
----
232344

query I rowsort
SELECT ( - + 31 ) AS col1
----
-31

query I rowsort
SELECT + 97 * - 49 * + 89 + + 42 AS col1
----
-422975

query I rowsort
SELECT ALL 91 * + - 37 AS col1
----
-3367

query I rowsort
SELECT ( + + 83 )
----
83

query I rowsort
SELECT + 78 col2
----
78

query I rowsort
SELECT ( - 86 ) + 95
----
9

query I rowsort
SELECT ALL 96 - + + 47
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1667
SELECT ALL 55 * - - CAST( 5 AS SIGNED ) AS col2, 15 + 53
----
275
68

skipif mysql # not compatible
query II rowsort label-1667
SELECT ALL 55 * - - CAST ( 5 AS INTEGER ) AS col2, 15 + 53
----
275
68

query I rowsort
SELECT 54 AS col2
----
54

query I rowsort
SELECT 89 AS col1
----
89

query I rowsort
SELECT - 47 AS col2
----
-47

query I rowsort
SELECT 2 + - 88 col0
----
-86

query II rowsort
SELECT - 1 AS col2, 6 AS col2
----
-1
6

query I rowsort
SELECT 11 + + - 49 AS col0
----
-38

query I rowsort
SELECT 82 * + ( - - 62 )
----
5084

query I rowsort
SELECT 89 AS col2
----
89

query I rowsort
SELECT ALL - CASE + 99 WHEN - + 90 THEN - 34 / + 69 * + 79 * - + 96 + - + 87 WHEN - - 54 * - 20 * + 37 + + 91 THEN NULL ELSE NULL END + 66 - - - 11 + - 12 AS col1
----
NULL

query I rowsort
SELECT 97
----
97

query II rowsort
SELECT ALL 14, 99 + - - 57 AS col1
----
14
156

query I rowsort
SELECT DISTINCT 66
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT + CASE - + MAX( ALL 83 ) WHEN 37 THEN - - 96 - + + 42 WHEN - + 69 THEN - 29 ELSE 63 END
----
63

skipif mysql # not compatible
query I rowsort label-1680
SELECT + CASE - + MAX ( ALL 83 ) WHEN 37 THEN - - 96 - + + 42 WHEN - + 69 THEN - 29 ELSE 63 END
----
63

query I rowsort
SELECT - + ( + 33 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT DISTINCT + COUNT( * ) + + 90 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-1682
SELECT DISTINCT + COUNT ( * ) + + 90 AS col0
----
91

query I rowsort
SELECT ALL - 85 + 88
----
3

query I rowsort
SELECT 92 - - + ( - - ( - + 19 ) ) * ( 89 ) col2
----
-1599

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1685
SELECT - CAST( NULL AS SIGNED ) AS col2, ( 51 ) * + 31 AS col2
----
NULL
1581

skipif mysql # not compatible
query II rowsort label-1685
SELECT - CAST ( NULL AS INTEGER ) AS col2, ( 51 ) * + 31 AS col2
----
NULL
1581

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1686
SELECT 23 * + - 28 + + - CAST( NULL AS SIGNED ) * - - 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1686
SELECT 23 * + - 28 + + - CAST ( NULL AS INTEGER ) * - - 13 AS col0
----
NULL

query I rowsort
SELECT 88 AS col2
----
88

query I rowsort
SELECT ALL 99
----
99

query II rowsort
SELECT - 10 col2, 69 AS col0
----
-10
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1690
SELECT 13 + + COALESCE ( + - CASE 33 WHEN + 25 * 0 + + + 44 THEN - 30 * - 68 END, + 50 DIV - - 12 - COUNT( * ) ) * - + 32 AS col0, + 21 + - COUNT( * )
----
-83
20

skipif mysql # not compatible
query II rowsort label-1690
SELECT 13 + + COALESCE ( + - CASE 33 WHEN + 25 * 0 + + + 44 THEN - 30 * - 68 END, + 50 / - - 12 - COUNT ( * ) ) * - + 32 AS col0, + 21 + - COUNT ( * )
----
-83
20

query I rowsort
SELECT ALL - 24 + + - 39
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1692
SELECT ALL - - 92 + + + 80 + CASE + ( + - NULLIF ( - 21, - - 17 ) ) WHEN - - 10 + - 89 + 11 DIV 13 * + 97 * - - ( 11 ) THEN 93 + - 13 ELSE - COUNT( * ) DIV 99 DIV 83 END
----
172

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL - - 92 + + + 80 + CASE + ( + - NULLIF ( - 21, - - 17 ) ) WHEN - - 10 + - 89 + 11 / 13 * + 97 * - - ( 11 ) THEN 93 + - 13 ELSE - COUNT ( * ) / 99 / 83 END
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1693
SELECT DISTINCT - CAST( + + NULLIF ( ( 66 ), - 87 + + COUNT( * ) * + COUNT( * ) ) AS SIGNED ) + - ( CAST( NULL AS SIGNED ) ) AS col0, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1693
SELECT DISTINCT - CAST ( + + NULLIF ( ( 66 ), - 87 + + COUNT ( * ) * + COUNT ( * ) ) AS INTEGER ) + - ( CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT - 34 * + NULLIF ( - - 36, - 70 * 73 ) * + - COUNT( * ) * - + 80 - + ( + + 6 ) + + 52
----
-97874

skipif mysql # not compatible
query I rowsort label-1694
SELECT - 34 * + NULLIF ( - - 36, - 70 * 73 ) * + - COUNT ( * ) * - + 80 - + ( + + 6 ) + + 52
----
-97874

query I rowsort
SELECT DISTINCT - - ( ( + - 58 ) )
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1696
SELECT - + COUNT( * ) DIV - - COUNT( * ) - 12 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-1696
SELECT - + COUNT ( * ) / - - COUNT ( * ) - 12 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT + + MIN( ALL - 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-1697
SELECT + + MIN ( ALL - 91 ) AS col1
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1698
SELECT CAST( NULL AS DECIMAL ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1698
SELECT CAST ( NULL AS REAL ) * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1699
SELECT 61 DIV + 47 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1699
SELECT 61 / + 47 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT DISTINCT + 76 - - NULLIF ( + 64, - + AVG ( ALL + 57 ) ) + + - COUNT( * ) + + + COALESCE ( 73, + + COUNT( * ) )
----
212

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT + 76 - - NULLIF ( + 64, - + AVG ( ALL + 57 ) ) + + - COUNT ( * ) + + + COALESCE ( 73, + + COUNT ( * ) )
----
212

query I rowsort
SELECT ALL - - 38 * - + 26
----
-988

query II rowsort
SELECT 51 * - 17 col2, - ( + 60 ) AS col1
----
-867
-60

query I rowsort
SELECT ALL - ( + 14 ) AS col2
----
-14

query I rowsort
SELECT + 71 AS col1
----
71

query I rowsort
SELECT DISTINCT - 34
----
-34

query I rowsort
SELECT 45 AS col2
----
45

query I rowsort
SELECT DISTINCT - 9
----
-9

query I rowsort
SELECT 50 * 82 AS col1
----
4100

query I rowsort
SELECT 86 * + 88
----
7568

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT COUNT( - 94 ) * COUNT( * ) + + 58 * + 9 * 7 + + + 9
----
3664

skipif mysql # not compatible
query I rowsort label-1710
SELECT COUNT ( - 94 ) * COUNT ( * ) + + 58 * + 9 * 7 + + + 9
----
3664

query I rowsort
SELECT + 37 AS col0
----
37

query I rowsort
SELECT + 88 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT MAX( ALL - 70 ) + + 91 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1713
SELECT MAX ( ALL - 70 ) + + 91 AS col1
----
21

query I rowsort
SELECT + 91
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1715
SELECT ALL 2 * + + 9 * ( - 96 ) * 45 * + ( + NULLIF ( + 39, COUNT( * ) * 62 + - 71 ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL 2 * + + 9 * ( - 96 ) * 45 * + ( + NULLIF ( + 39, COUNT ( * ) * 62 + - 71 ) ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT ALL - 91 + - COUNT( * ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL - 91 + - COUNT ( * ) AS col1
----
-92

query I rowsort
SELECT DISTINCT 97
----
97

query I rowsort
SELECT - 99 col0
----
-99

query I rowsort
SELECT ALL 95 + + 73 * - 62
----
-4431

query I rowsort
SELECT 92 - - 9
----
101

query I rowsort
SELECT ALL 59 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT ALL COUNT( * ) + - 64
----
-63

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL COUNT ( * ) + - 64
----
-63

query I rowsort
SELECT - 94
----
-94

query II rowsort
SELECT 7 + + 28 AS col0, + 86
----
35
86

query I rowsort
SELECT - 41 - 57 col0
----
-98

query I rowsort
SELECT ALL 55 AS col1
----
55

query I rowsort
SELECT 40 AS col0
----
40

query I rowsort
SELECT DISTINCT + 12 AS col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1729
SELECT DISTINCT - 31 * + + 99 * - ( + COUNT( * ) ) AS col1, CASE + 62 WHEN 27 * - CAST( + 68 AS SIGNED ) * - 41 THEN + AVG ( - 92 ) / + 64 WHEN - COUNT( * ) + - + AVG ( DISTINCT - - 4 ) * - MAX( 3 ) THEN NULL END * - COUNT( * )
----
3069
NULL

skipif mysql # not compatible
query II rowsort label-1729
SELECT DISTINCT - 31 * + + 99 * - ( + COUNT ( * ) ) AS col1, CASE + 62 WHEN 27 * - CAST ( + 68 AS INTEGER ) * - 41 THEN + AVG ( - 92 ) / + 64 WHEN - COUNT ( * ) + - + AVG ( DISTINCT - - 4 ) * - MAX ( 3 ) THEN NULL END * - COUNT ( * )
----
3069
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT ALL COALESCE ( COUNT( * ), - + COALESCE ( 94, ( - - 36 ) * + - ( 18 ) ) ) + 93 - - 15 + 18 * - COUNT( + + 88 ) - - ( - 17 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL COALESCE ( COUNT ( * ), - + COALESCE ( 94, ( - - 36 ) * + - ( 18 ) ) ) + 93 - - 15 + 18 * - COUNT ( + + 88 ) - - ( - 17 ) AS col0
----
74

query II rowsort
SELECT 76 + + - 94, 67 AS col0
----
-18
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT ALL + SUM( DISTINCT + + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL + SUM ( DISTINCT + + 81 )
----
81

query I rowsort
SELECT DISTINCT + 50
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-1734
SELECT + 74 * - 47 + 35 - - 61 + + + COUNT( * ) AS col2, 1 * - ( - 55 ) AS col0
----
-3381
55

skipif mysql # not compatible
query II rowsort label-1734
SELECT + 74 * - 47 + 35 - - 61 + + + COUNT ( * ) AS col2, 1 * - ( - 55 ) AS col0
----
-3381
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT ALL NULLIF ( + COUNT( * ), + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL NULLIF ( + COUNT ( * ), + - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1736
SELECT - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT 2 AS col1
----
2

query II rowsort
SELECT 45 * + 91, 39 AS col2
----
4095
39

query I rowsort
SELECT ALL - - 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT - 10 + + 58 * COUNT( * ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-1740
SELECT - 10 + + 58 * COUNT ( * ) AS col0
----
48

query I rowsort
SELECT ALL - ( - + 50 ) * + - 7 * - + 19 AS col0
----
6650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1742
SELECT ALL + - CASE 69 WHEN - + MIN( - 95 ) THEN NULL ELSE CAST( + 35 AS SIGNED ) END
----
-35

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL + - CASE 69 WHEN - + MIN ( - 95 ) THEN NULL ELSE CAST ( + 35 AS INTEGER ) END
----
-35

query II rowsort
SELECT DISTINCT + 19 * - 59, + 80 AS col0
----
-1121
80

query I rowsort
SELECT ALL + ( NULLIF ( 95, - - AVG ( + 7 ) + - 84 + - 48 * + - 80 ) )
----
95

query I rowsort
SELECT ALL + - 67 AS col1
----
-67

query I rowsort
SELECT - - 91 * 11
----
1001

query I rowsort
SELECT ALL + + 7 AS col0
----
7

query I rowsort
SELECT NULLIF ( + - 20, - 50 ) col0
----
-20

query II rowsort
SELECT ALL + 41 col2, - 43 AS col0
----
41
-43

query I rowsort
SELECT ALL + 12 AS col0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1751
SELECT + COUNT( * ) DIV 21
----
0

skipif mysql # not compatible
query I rowsort label-1751
SELECT + COUNT ( * ) / 21
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT - ( - - COUNT( * ) ) + 9 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-1752
SELECT - ( - - COUNT ( * ) ) + 9 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT SUM( DISTINCT - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-1753
SELECT SUM ( DISTINCT - 68 )
----
-68

query I rowsort
SELECT + 31 AS col2
----
31

query I rowsort
SELECT + 32 AS col0
----
32

query I rowsort
SELECT + 34 AS col0
----
34

query I rowsort
SELECT ALL + 32 * CASE WHEN NOT NULL IS NOT NULL THEN 2 END * 82
----
5248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1758
SELECT - ( 33 ) DIV 10 * - ( + + 29 ) * + SUM( DISTINCT + - 10 ) AS col1
----
-870

skipif mysql # not compatible
query I rowsort label-1758
SELECT - ( 33 ) / 10 * - ( + + 29 ) * + SUM ( DISTINCT + - 10 ) AS col1
----
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT ALL 50 * + + MIN( ALL + ( + - 84 ) ) + 8
----
-4192

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL 50 * + + MIN ( ALL + ( + - 84 ) ) + 8
----
-4192

query I rowsort
SELECT DISTINCT + 14 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT DISTINCT + 50 * - - NULLIF ( - - 59, COUNT( * ) ) * + + 66 + - + 13 * - + 54
----
195402

skipif mysql # not compatible
query I rowsort label-1761
SELECT DISTINCT + 50 * - - NULLIF ( - - 59, COUNT ( * ) ) * + + 66 + - + 13 * - + 54
----
195402

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT ALL + SUM( DISTINCT 24 ) * 25 + 82 + + COUNT( * ) * - 88
----
594

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL + SUM ( DISTINCT 24 ) * 25 + 82 + + COUNT ( * ) * - 88
----
594

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT - COUNT( * ) + - 55 + - 21
----
-77

skipif mysql # not compatible
query I rowsort label-1763
SELECT - COUNT ( * ) + - 55 + - 21
----
-77

query I rowsort
SELECT ALL - 87 * + NULLIF ( - - 86, 13 ) AS col2
----
-7482

onlyif mysql # DIV for integer division: 
query II rowsort label-1765
SELECT ALL 62 * + + 43 + - 9 AS col0, 9 + + 30 + - - 41 + + 92 + + 41 * + 1 DIV - 68 AS col2
----
2657
172

skipif mysql # not compatible
query II rowsort label-1765
SELECT ALL 62 * + + 43 + - 9 AS col0, 9 + + 30 + - - 41 + + 92 + + 41 * + 1 / - 68 AS col2
----
2657
172

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT - 78 + + + 53 * + CASE - + 16 WHEN + COUNT( * ) THEN - 59 WHEN - ( - 91 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1766
SELECT - 78 + + + 53 * + CASE - + 16 WHEN + COUNT ( * ) THEN - 59 WHEN - ( - 91 ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 72 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT ALL COUNT( * ) + + + 79 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL COUNT ( * ) + + + 79 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT - 54 * + COUNT( * ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-1769
SELECT - 54 * + COUNT ( * ) AS col2
----
-54

query I rowsort
SELECT ALL + 60 + - 1 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1771
SELECT COUNT ( * ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1772
SELECT DISTINCT + COALESCE ( - 86, - 15 ) + - 56 + - - ( - 18 ) + + 38 + + + COUNT( * ) * CAST( COUNT( * ) AS SIGNED ) + - + 76 + + - 53 + + CAST( NULL AS SIGNED ) / + 22 * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT + COALESCE ( - 86, - 15 ) + - 56 + - - ( - 18 ) + + 38 + + + COUNT ( * ) * CAST ( COUNT ( * ) AS INTEGER ) + - + 76 + + - 53 + + CAST ( NULL AS INTEGER ) / + 22 * 69
----
NULL

query I rowsort
SELECT ALL ( - 69 ) AS col2
----
-69

query I rowsort
SELECT + 25 + - + 15
----
10

query I rowsort
SELECT ALL + 78 col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT DISTINCT - 35 + - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-1776
SELECT DISTINCT - 35 + - COUNT ( * )
----
-36

query I rowsort
SELECT DISTINCT - 81
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1778
SELECT ALL CAST( 49 AS SIGNED ) col1
----
49

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL CAST ( 49 AS INTEGER ) col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT ALL + SUM( + 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL + SUM ( + 66 ) AS col1
----
66

query I rowsort
SELECT DISTINCT + + NULLIF ( 5, 11 ) - + 47
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1781
SELECT + 14 + + 7 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1781
SELECT + 14 + + 7 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 19 AS col2
----
19

query I rowsort
SELECT - ( - 95 ) AS col0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1784
SELECT + 55 DIV + 41 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1784
SELECT + 55 / + 41 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1785
SELECT + + 70 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1785
SELECT + + 70 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 99 + + - 87
----
12

query I rowsort
SELECT ALL - 60 AS col0
----
-60

query I rowsort
SELECT DISTINCT 25 AS col0
----
25

query I rowsort
SELECT ALL 41 col1
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1790
SELECT + + 20 DIV - - SUM( DISTINCT - 96 )
----
0

skipif mysql # not compatible
query I rowsort label-1790
SELECT + + 20 / - - SUM ( DISTINCT - 96 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1791
SELECT ALL + COUNT( * ) DIV - - 53
----
0

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL + COUNT ( * ) / - - 53
----
0

query I rowsort
SELECT DISTINCT + 52 AS col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-1793
SELECT DISTINCT 0 DIV - 16
----
0

skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT 0 / - 16
----
0

query I rowsort
SELECT ALL + 12 AS col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1795
SELECT + CAST( NULL AS SIGNED ) AS col0, - CASE + + 16 WHEN + 26 / AVG ( DISTINCT - + 10 ) + - + ( ( COUNT( * ) ) ) THEN NULL WHEN - 22 THEN NULL ELSE + 23 END * + 70
----
NULL
-1610

skipif mysql # not compatible
query II rowsort label-1795
SELECT + CAST ( NULL AS INTEGER ) AS col0, - CASE + + 16 WHEN + 26 / AVG ( DISTINCT - + 10 ) + - + ( ( COUNT ( * ) ) ) THEN NULL WHEN - 22 THEN NULL ELSE + 23 END * + 70
----
NULL
-1610

query I rowsort
SELECT + COALESCE ( - 60, 42 + 51 + - 88 )
----
-60

query I rowsort
SELECT ( - 69 )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1798
SELECT + NULLIF ( + 82, + CAST( NULL AS SIGNED ) * + CASE - 34 WHEN COALESCE ( - 33, + - 42, - - COUNT( * ) DIV + + 13, + + CASE + 20 WHEN - 88 * + 96 DIV + 50 THEN - - COALESCE ( - - 43, + 89, - 75 + + - 82 ) WHEN + ( - 20 ) THEN - + NULLIF ( - + 25, - AVG ( + 20 ) * 46 ) ELSE NULL END ) * + + NULLIF ( 28, - - 61 ) + ( COUNT( * ) ) + - 59 * + - 20 + - 30 + + 32 + + 46 THEN NULL ELSE - 75 END + - 54 ) * - NULLIF ( - COALESCE ( - - 29, - 71 DIV 46 ), + ( + COUNT( * ) ) DIV ( - COALESCE ( - ( NULLIF ( 93, 90 ) ), COUNT( * ) ) * + 1 ) ) AS col1
----
2378

skipif mysql # not compatible
query I rowsort label-1798
SELECT + NULLIF ( + 82, + CAST ( NULL AS INTEGER ) * + CASE - 34 WHEN COALESCE ( - 33, + - 42, - - COUNT ( * ) / + + 13, + + CASE + 20 WHEN - 88 * + 96 / + 50 THEN - - COALESCE ( - - 43, + 89, - 75 + + - 82 ) WHEN + ( - 20 ) THEN - + NULLIF ( - + 25, - AVG ( + 20 ) * 46 ) ELSE NULL END ) * + + NULLIF ( 28, - - 61 ) + ( COUNT ( * ) ) + - 59 * + - 20 + - 30 + + 32 + + 46 THEN NULL ELSE - 75 END + - 54 ) * - NULLIF ( - COALESCE ( - - 29, - 71 / 46 ), + ( + COUNT ( * ) ) / ( - COALESCE ( - ( NULLIF ( 93, 90 ) ), COUNT ( * ) ) * + 1 ) ) AS col1
----
2378

query I rowsort
SELECT ( - 55 ) AS col0
----
-55

query I rowsort
SELECT + ( - 57 ) col1
----
-57

query I rowsort
SELECT DISTINCT + 18
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1802
SELECT + CAST( NULL AS SIGNED ) * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1802
SELECT + CAST ( NULL AS INTEGER ) * 90
----
NULL

query I rowsort
SELECT ( - - 62 )
----
62

query I rowsort
SELECT ALL + 30 AS col1
----
30

query I rowsort
SELECT DISTINCT 58 * - 14 + - - NULLIF ( NULLIF ( 78, - AVG ( - 22 ) + + ( - - 14 ) ), + - 10 ) AS col2
----
-734

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1806
SELECT ALL CAST( NULL AS DECIMAL ) * - ( - 7 ) + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL CAST ( NULL AS REAL ) * - ( - 7 ) + 19 AS col0
----
NULL

query I rowsort
SELECT + 8 * + 16 + - 71
----
57

query I rowsort
SELECT ALL 33 * + 57 * - 81 + + 75 AS col2
----
-152286

query I rowsort
SELECT CASE - 68 WHEN 0 * + + ( - 41 ) + + 91 THEN + 90 * + 6 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1810
SELECT ALL - 1 * + 13 DIV - + 77
----
0

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL - 1 * + 13 / - + 77
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1811
SELECT - 24 DIV + 25
----
0

skipif mysql # not compatible
query I rowsort label-1811
SELECT - 24 / + 25
----
0

query I rowsort
SELECT - 94 + + + ( - - 50 )
----
-44

query I rowsort
SELECT DISTINCT 40 AS col2
----
40

query I rowsort
SELECT ALL - + 19 * + 12 AS col2
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT + 2 * - - 62 / + - 49 + + COUNT( * ) + - - 69 + 68 + + CASE - 12 WHEN + ( ( + 89 ) ) THEN - 16 * COUNT( * ) / - + COUNT( * ) - - + COUNT( * ) + - 45 * 13 - 71 + - COALESCE ( - 12, - - 17 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1815
SELECT + 2 * - - 62 / + - 49 + + COUNT ( * ) + - - 69 + 68 + + CASE - 12 WHEN + ( ( + 89 ) ) THEN - 16 * COUNT ( * ) / - + COUNT ( * ) - - + COUNT ( * ) + - 45 * 13 - 71 + - COALESCE ( - 12, - - 17 ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 1 AS col2
----
1

query I rowsort
SELECT - - 47
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT + COALESCE ( - 20, ( COUNT( * ) ), + 6 )
----
-20

skipif mysql # not compatible
query I rowsort label-1818
SELECT + COALESCE ( - 20, ( COUNT ( * ) ), + 6 )
----
-20

query I rowsort
SELECT - 17 + - - 95 col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT - + CASE + 15 WHEN - 65 THEN - 67 ELSE NULL END + + + 62 * COUNT( * ) + 20 + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-1820
SELECT - + CASE + 15 WHEN - 65 THEN - 67 ELSE NULL END + + + 62 * COUNT ( * ) + 20 + + 14
----
NULL

query I rowsort
SELECT ALL ( + 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT - - 16 + + COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-1822
SELECT - - 16 + + COUNT ( * ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT + - COUNT( * ) - + ( + - COUNT( * ) ) - 49
----
-49

skipif mysql # not compatible
query I rowsort label-1823
SELECT + - COUNT ( * ) - + ( + - COUNT ( * ) ) - 49
----
-49

query II rowsort
SELECT 94, - 86 + + 4 AS col0
----
94
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT - - COUNT( - ( 12 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1825
SELECT - - COUNT ( - ( 12 ) )
----
1

query I rowsort
SELECT ALL + 30 * + 36 * + 33
----
35640

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1827
SELECT 16 * - CAST( NULL AS SIGNED ), 53 col0
----
NULL
53

skipif mysql # not compatible
query II rowsort label-1827
SELECT 16 * - CAST ( NULL AS INTEGER ), 53 col0
----
NULL
53

query II rowsort
SELECT ALL 97 AS col0, - COALESCE ( + 11, - 81 ) + - + 53 + - - 28
----
97
-36

query I rowsort
SELECT ALL - 75 AS col1
----
-75

query I rowsort
SELECT - + 62
----
-62

query I rowsort
SELECT ALL + 49
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1832
SELECT DISTINCT - COALESCE ( 18, + NULLIF ( - 92, - 65 * NULLIF ( - 32, - 70 ) ) * + + 99 - ( + 44 ) + - MAX( 27 ) DIV + 44 ), - COUNT( * ) AS col2
----
-18
-1

skipif mysql # not compatible
query II rowsort label-1832
SELECT DISTINCT - COALESCE ( 18, + NULLIF ( - 92, - 65 * NULLIF ( - 32, - 70 ) ) * + + 99 - ( + 44 ) + - MAX ( 27 ) / + 44 ), - COUNT ( * ) AS col2
----
-18
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1833
SELECT ALL - + ( + CAST( + 36 AS SIGNED ) ) * 25
----
-900

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL - + ( + CAST ( + 36 AS INTEGER ) ) * 25
----
-900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1834
SELECT 95 DIV + + 55 * - ( + COUNT( + + 66 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1834
SELECT 95 / + + 55 * - ( + COUNT ( + + 66 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT 54 + - COUNT( * ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-1835
SELECT 54 + - COUNT ( * ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-1836
SELECT ALL 48 AS col1, - COUNT( * ) * - 23 + 39
----
48
62

skipif mysql # not compatible
query II rowsort label-1836
SELECT ALL 48 AS col1, - COUNT ( * ) * - 23 + 39
----
48
62

query II rowsort
SELECT - 70 AS col1, + 36 + - - 43 AS col1
----
-70
79

query I rowsort
SELECT - 18 AS col1
----
-18

query I rowsort
SELECT - 19 AS col1
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1840
SELECT 95 DIV - 20 + - + 14 + - + 20 * - - 70 AS col0, 3 + COUNT( * ) + 33 col2
----
-1418
37

skipif mysql # not compatible
query II rowsort label-1840
SELECT 95 / - 20 + - + 14 + - + 20 * - - 70 AS col0, 3 + COUNT ( * ) + 33 col2
----
-1418
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1841
SELECT 2 * 44 * - + CAST( - 86 AS SIGNED )
----
7568

skipif mysql # not compatible
query I rowsort label-1841
SELECT 2 * 44 * - + CAST ( - 86 AS INTEGER )
----
7568

query I rowsort
SELECT DISTINCT - 8 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT ALL COUNT( * ) + 65 col0
----
66

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL COUNT ( * ) + 65 col0
----
66

query I rowsort
SELECT 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT DISTINCT + 77 + + + 57 * - - 21 * COUNT( * ) * - 97
----
-116032

skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT + 77 + + + 57 * - - 21 * COUNT ( * ) * - 97
----
-116032

query I rowsort
SELECT + 85 AS col0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-1847
SELECT ALL - SUM( - 73 ) AS col1, - ( 0 )
----
73
0

skipif mysql # not compatible
query II rowsort label-1847
SELECT ALL - SUM ( - 73 ) AS col1, - ( 0 )
----
73
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1848
SELECT - CAST( NULL AS SIGNED ) * + ( + 10 ) + - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1848
SELECT - CAST ( NULL AS INTEGER ) * + ( + 10 ) + - 46 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL MIN( ALL + 50 ) + - 3 * - 43
----
179

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL MIN ( ALL + 50 ) + - 3 * - 43
----
179

onlyif mysql # DIV for integer division: 
query I rowsort label-1850
SELECT ALL 43 DIV + 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL 43 / + 59 AS col1
----
0

query I rowsort
SELECT 52
----
52

query I rowsort
SELECT + 95 AS col1
----
95

query I rowsort
SELECT + 51
----
51

query I rowsort
SELECT ALL - 65
----
-65

query I rowsort
SELECT DISTINCT 71 - - NULLIF ( + - 68, - 48 ) + + 99
----
102

query I rowsort
SELECT DISTINCT - 43
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1857
SELECT 17 * - 57 DIV + COUNT( * ) col0
----
-969

skipif mysql # not compatible
query I rowsort label-1857
SELECT 17 * - 57 / + COUNT ( * ) col0
----
-969

onlyif mysql # aggregate syntax: 
query II rowsort label-1858
SELECT DISTINCT 18 * COUNT( * ), 0 * 83 + + 78 AS col0
----
18
78

skipif mysql # not compatible
query II rowsort label-1858
SELECT DISTINCT 18 * COUNT ( * ), 0 * 83 + + 78 AS col0
----
18
78

query I rowsort
SELECT ALL - 55 AS col0
----
-55

query II rowsort
SELECT DISTINCT 35 * 12, - 9 AS col2
----
420
-9

query I rowsort
SELECT 51 * + - 45 * + 33
----
-75735

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT ALL - - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL - - COUNT ( * ) col2
----
1

query I rowsort
SELECT DISTINCT - 41
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-1864
SELECT + 27 - + + 40 DIV - 88 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1864
SELECT + 27 - + + 40 / - 88 AS col2
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-1865
SELECT - + ( COUNT( * ) ) AS col1, + 8 AS col2
----
-1
8

skipif mysql # not compatible
query II rowsort label-1865
SELECT - + ( COUNT ( * ) ) AS col1, + 8 AS col2
----
-1
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1866
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1866
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - 8 AS col2
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-1868
SELECT + 10 DIV + 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1868
SELECT + 10 / + 20 AS col1
----
0

query I rowsort
SELECT - ( - 18 ) AS col1
----
18

query I rowsort
SELECT DISTINCT 3 AS col1
----
3

query I rowsort
SELECT + 42 AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1872
SELECT ALL COUNT( CAST( + + 88 AS SIGNED ) ) + + 27 * - 36 * + + 77 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL COUNT ( CAST ( + + 88 AS INTEGER ) ) + + 27 * - 36 * + + 77 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 18
----
18

query I rowsort
SELECT ALL + 9 + + 83 AS col0
----
92

query I rowsort
SELECT ALL - 20 col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT - + MIN( DISTINCT - 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1876
SELECT - + MIN ( DISTINCT - 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1877
SELECT + 12 DIV + NULLIF ( - 80, - MAX( NULLIF ( 90, + + 42 ) ) + - + 9 DIV 84 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1877
SELECT + 12 / + NULLIF ( - 80, - MAX ( NULLIF ( 90, + + 42 ) ) + - + 9 / 84 ) col0
----
0

query I rowsort
SELECT - 93
----
-93

query I rowsort
SELECT DISTINCT - 82 AS col2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1880
SELECT + MIN( + - 50 ) + - ( - - CAST( 23 AS SIGNED ) ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-1880
SELECT + MIN ( + - 50 ) + - ( - - CAST ( 23 AS INTEGER ) ) AS col2
----
-73

query I rowsort
SELECT - 99 AS col2
----
-99

query I rowsort
SELECT 70 + - + 61
----
9

query I rowsort
SELECT 51
----
51

query I rowsort
SELECT DISTINCT 69
----
69

query I rowsort
SELECT 30 col1
----
30

query I rowsort
SELECT ALL 75
----
75

query I rowsort
SELECT DISTINCT - 45 + - 52 AS col2
----
-97

query I rowsort
SELECT ALL 73 * - 1
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-1889
SELECT 1 DIV + - 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1889
SELECT 1 / + - 68 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1890
SELECT DISTINCT 82 * + + 63 * - 59 + 57 DIV 10 AS col1
----
-304789

skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT 82 * + + 63 * - 59 + 57 / 10 AS col1
----
-304789

query I rowsort
SELECT ALL - ( - 9 ) AS col0
----
9

query I rowsort
SELECT + 85 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT COUNT( - 48 )
----
1

skipif mysql # not compatible
query I rowsort label-1893
SELECT COUNT ( - 48 )
----
1

query I rowsort
SELECT 85 * - 42
----
-3570

query I rowsort
SELECT + 40
----
40

query I rowsort
SELECT ALL - 1 * + 57 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-1897
SELECT COUNT( * ), 11 AS col1
----
1
11

skipif mysql # not compatible
query II rowsort label-1897
SELECT COUNT ( * ), 11 AS col1
----
1
11

query I rowsort
SELECT + 75 * 82 + + 44 AS col0
----
6194

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT COUNT( + 68 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1899
SELECT COUNT ( + 68 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1900
SELECT COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT + MAX( 41 )
----
41

skipif mysql # not compatible
query I rowsort label-1901
SELECT + MAX ( 41 )
----
41

query I rowsort
SELECT - 56 * + 83 - + 59
----
-4707

query I rowsort
SELECT ALL - 55 AS col2
----
-55

query I rowsort
SELECT ALL - 62 AS col0
----
-62

query I rowsort
SELECT ALL 59 * 92 col1
----
5428

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT SUM( - 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-1906
SELECT SUM ( - 69 )
----
-69

query I rowsort
SELECT 27 * - - 69 AS col2
----
1863

query I rowsort
SELECT DISTINCT 50 * 27 AS col2
----
1350

query I rowsort
SELECT 30 + + 41 AS col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1910
SELECT + + 76 * - - 25 * COUNT( - NULLIF ( + - 38, + 30 + 66 ) ) - - CAST( NULL AS SIGNED ) - + 64 - + + COUNT( * ) / - ( - - COUNT( DISTINCT + 63 ) ) * - + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-1910
SELECT + + 76 * - - 25 * COUNT ( - NULLIF ( + - 38, + 30 + 66 ) ) - - CAST ( NULL AS INTEGER ) - + 64 - + + COUNT ( * ) / - ( - - COUNT ( DISTINCT + 63 ) ) * - + 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1911
SELECT CAST( + ( - CASE - 3 WHEN - - 23 THEN + + CASE ( + - 51 ) WHEN 69 / 72 * COALESCE ( + 30, + 7, CAST( NULL AS DECIMAL ) ) THEN - 91 * - 96 WHEN + - 9 THEN + ( 11 ) WHEN - + 52 THEN 76 * + 88 END + ( - 59 ) ELSE NULL END ) AS SIGNED ) * + 9 / 44, + SUM( DISTINCT + 83 ) AS col0
----
NULL
83

skipif mysql # not compatible
query II rowsort label-1911
SELECT CAST ( + ( - CASE - 3 WHEN - - 23 THEN + + CASE ( + - 51 ) WHEN 69 / 72 * COALESCE ( + 30, + 7, CAST ( NULL AS REAL ) ) THEN - 91 * - 96 WHEN + - 9 THEN + ( 11 ) WHEN - + 52 THEN 76 * + 88 END + ( - 59 ) ELSE NULL END ) AS INTEGER ) * + 9 / 44, + SUM ( DISTINCT + 83 ) AS col0
----
NULL
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT + 38 + - NULLIF ( + - 94, - COUNT( * ) ) * + 21 - - 64 - - 71
----
2147

skipif mysql # not compatible
query I rowsort label-1912
SELECT + 38 + - NULLIF ( + - 94, - COUNT ( * ) ) * + 21 - - 64 - - 71
----
2147

query I rowsort
SELECT + 25
----
25

query I rowsort
SELECT + 47 * - 70
----
-3290

query I rowsort
SELECT ALL 35 + + 3 AS col2
----
38

query I rowsort
SELECT DISTINCT 39 + 89 + + + 26
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT MAX( - 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-1917
SELECT MAX ( - 41 ) AS col1
----
-41

query I rowsort
SELECT + 32 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT DISTINCT 66 + + 57 + - COUNT( * ) + + + 22 col2
----
144

skipif mysql # not compatible
query I rowsort label-1919
SELECT DISTINCT 66 + + 57 + - COUNT ( * ) + + + 22 col2
----
144

query I rowsort
SELECT - 71 AS col1
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1921
SELECT ALL - ( - 89 ) + + + CAST( + - 92 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL - ( - 89 ) + + + CAST ( + - 92 AS INTEGER )
----
-3

query II rowsort
SELECT - 21, 69 AS col2
----
-21
69

query I rowsort
SELECT - 33 AS col2
----
-33

query I rowsort
SELECT - 55 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT ALL + + 72 * + 18 + + 12 + + COUNT( * )
----
1309

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL + + 72 * + 18 + + 12 + + COUNT ( * )
----
1309

onlyif mysql # aggregate syntax: 
query II rowsort label-1926
SELECT - COUNT( * ), - 27 * 56 AS col2
----
-1
-1512

skipif mysql # not compatible
query II rowsort label-1926
SELECT - COUNT ( * ), - 27 * 56 AS col2
----
-1
-1512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1927
SELECT ALL - 76 DIV + ( - - 64 ), - ( - COUNT( * ) ) + + CASE - 49 WHEN - 8 THEN + + ( + COALESCE ( - 57, + 78, + 48 ) ) * + - CAST( 44 AS SIGNED ) + - + 5 END col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1927
SELECT ALL - 76 / + ( - - 64 ), - ( - COUNT ( * ) ) + + CASE - 49 WHEN - 8 THEN + + ( + COALESCE ( - 57, + 78, + 48 ) ) * + - CAST ( 44 AS INTEGER ) + - + 5 END col1
----
-1
NULL

query I rowsort
SELECT ALL 73 + 11
----
84

query I rowsort
SELECT - ( - - 63 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT ALL COALESCE ( - 61, - + 45 * 69 * + - MIN( - 45 ) ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL COALESCE ( - 61, - + 45 * 69 * + - MIN ( - 45 ) ) AS col1
----
-61

query I rowsort
SELECT DISTINCT 8 + - 21
----
-13

query I rowsort
SELECT - 75
----
-75

query I rowsort
SELECT ALL - 41 * + 73 * - 73 * ( + + 93 )
----
20319477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1934
SELECT DISTINCT MIN( - + 1 ) col2, + COUNT( * ) / - 90 + - 52 + + ( CAST( NULL AS SIGNED ) ) - + ( + 78 )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1934
SELECT DISTINCT MIN ( - + 1 ) col2, + COUNT ( * ) / - 90 + - 52 + + ( CAST ( NULL AS INTEGER ) ) - + ( + 78 )
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT + ( + + 23 ) * - COUNT( * ) * + 43 AS col0
----
-989

skipif mysql # not compatible
query I rowsort label-1935
SELECT + ( + + 23 ) * - COUNT ( * ) * + 43 AS col0
----
-989

query I rowsort
SELECT 29 AS col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1937
SELECT ALL MIN( + - CASE + 15 WHEN - 18 THEN + CAST( NULL AS SIGNED ) WHEN - 14 - 41 THEN NULL END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL MIN ( + - CASE + 15 WHEN - 18 THEN + CAST ( NULL AS INTEGER ) WHEN - 14 - 41 THEN NULL END ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1938
SELECT - COUNT( * ) * - + 83 DIV - CAST( - + 85 AS SIGNED ) col2, 72
----
0
72

skipif mysql # not compatible
query II rowsort label-1938
SELECT - COUNT ( * ) * - + 83 / - CAST ( - + 85 AS INTEGER ) col2, 72
----
0
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT - 7 * COUNT( * ) * + 2 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-1939
SELECT - 7 * COUNT ( * ) * + 2 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT - 19 + + 74 + - COUNT( * ) * 76 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-1940
SELECT - 19 + + 74 + - COUNT ( * ) * 76 AS col1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1941
SELECT ALL + CAST( 79 AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL + CAST ( 79 AS INTEGER )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT ( + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1942
SELECT ( + COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT ALL + NULLIF ( + - MAX( DISTINCT - 96 ), + 47 * - 88 + - - 18 * + 63 + - + 7 * + + 71 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL + NULLIF ( + - MAX ( DISTINCT - 96 ), + 47 * - 88 + - - 18 * + 63 + - + 7 * + + 71 ) AS col1
----
96

query I rowsort
SELECT DISTINCT + 49 AS col2
----
49

query I rowsort
SELECT - 71 * 35
----
-2485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1946
SELECT ALL + CAST( + 4 AS SIGNED ) * - + 97 * - 27 + 27 AS col1
----
10503

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL + CAST ( + 4 AS INTEGER ) * - + 97 * - 27 + 27 AS col1
----
10503

query I rowsort
SELECT ALL + 65 AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1948
SELECT 70 * + 72 * 61 * - CAST( NULL AS SIGNED ) + + + 29 - - + COUNT( * ) * 13 * - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-1948
SELECT 70 * + 72 * 61 * - CAST ( NULL AS INTEGER ) + + + 29 - - + COUNT ( * ) * 13 * - 41
----
NULL

query I rowsort
SELECT ALL + 79 * - 33
----
-2607

query I rowsort
SELECT - 35 * - 43 AS col1
----
1505

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT - 41 + COUNT( * ) + + 51 * - 89
----
-4579

skipif mysql # not compatible
query I rowsort label-1951
SELECT - 41 + COUNT ( * ) + + 51 * - 89
----
-4579

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1952
SELECT + CAST( 50 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-1952
SELECT + CAST ( 50 AS INTEGER )
----
50

query I rowsort
SELECT - 97
----
-97

query I rowsort
SELECT ALL + 55
----
55

query I rowsort
SELECT DISTINCT + + 44
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT DISTINCT + + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1956
SELECT DISTINCT + + COUNT ( * ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT - COUNT( * ) * 13 * - - 59 AS col0
----
-767

skipif mysql # not compatible
query I rowsort label-1957
SELECT - COUNT ( * ) * 13 * - - 59 AS col0
----
-767

query II rowsort
SELECT ALL + ( + + 82 ), 83 AS col1
----
82
83

query I rowsort
SELECT ALL + - 66
----
-66

query I rowsort
SELECT ALL + 8 * - 82 + - 83 * - 17
----
755

query I rowsort
SELECT DISTINCT + - 10 AS col0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-1962
SELECT - + 53 DIV + 67 * - 74 + - 98 + + 40 * - - ( - - 36 ) - + 24 * 88 * - - 31 + - 63
----
-64193

skipif mysql # not compatible
query I rowsort label-1962
SELECT - + 53 / + 67 * - 74 + - 98 + + 40 * - - ( - - 36 ) - + 24 * 88 * - - 31 + - 63
----
-64193

query I rowsort
SELECT ALL + 11
----
11

query I rowsort
SELECT ALL + + 32 AS col2
----
32

query II rowsort
SELECT + - COALESCE ( - - 35, - 89 * + + 34 + + + 57 ), 87 * - 37 AS col0
----
-35
-3219

query I rowsort
SELECT + - 1
----
-1

query I rowsort
SELECT 87 AS col2
----
87

query I rowsort
SELECT - 25 - - NULLIF ( - 49, 67 )
----
-74

query I rowsort
SELECT - 38 col0
----
-38

query I rowsort
SELECT - 55
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1971
SELECT - CAST( NULL AS SIGNED ) * - + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-1971
SELECT - CAST ( NULL AS INTEGER ) * - + 35
----
NULL

query I rowsort
SELECT - - 39 AS col1
----
39

query I rowsort
SELECT - 61 AS col0
----
-61

query I rowsort
SELECT DISTINCT 72
----
72

query I rowsort
SELECT ALL + - 53 + - + 37 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT ALL 56 - - 60 + COUNT( * ) + - 70 * - + 57 * - - 22 * - 36 - 29 * 80 AS col1
----
-3162283

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL 56 - - 60 + COUNT ( * ) + - 70 * - + 57 * - - 22 * - 36 - 29 * 80 AS col1
----
-3162283

query I rowsort
SELECT DISTINCT 68
----
68

query I rowsort
SELECT + 38 * + 27
----
1026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1979
SELECT + COALESCE ( MAX( ALL + 19 ), + 75 ) * - CAST( 51 AS SIGNED )
----
-969

skipif mysql # not compatible
query I rowsort label-1979
SELECT + COALESCE ( MAX ( ALL + 19 ), + 75 ) * - CAST ( 51 AS INTEGER )
----
-969

query I rowsort
SELECT ALL 74
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT ALL 20 - + + COUNT( * ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL 20 - + + COUNT ( * ) AS col2
----
19

query I rowsort
SELECT 68
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1983
SELECT + CAST( NULL AS SIGNED ) + - - 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1983
SELECT + CAST ( NULL AS INTEGER ) + - - 36 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT - 8 * MAX( ALL - 4 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-1984
SELECT - 8 * MAX ( ALL - 4 ) AS col2
----
32

query I rowsort
SELECT + 19 * 56 AS col0
----
1064

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT - COUNT( * ) + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1986
SELECT - COUNT ( * ) + + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT DISTINCT + MAX( + 14 ) * + 5 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT + MAX ( + 14 ) * + 5 AS col0
----
70

query I rowsort
SELECT DISTINCT 42 AS col0
----
42

query I rowsort
SELECT ALL ( + 40 )
----
40

query I rowsort
SELECT DISTINCT ( - 49 ) * 74 AS col2
----
-3626

query I rowsort
SELECT DISTINCT 12 * + 52
----
624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1992
SELECT - 42 * - CAST( NULL AS SIGNED ) * + + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1992
SELECT - 42 * - CAST ( NULL AS INTEGER ) * + + 23 AS col0
----
NULL

query I rowsort
SELECT ALL + 81
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1994
SELECT 2 DIV - 32 * - 53 - + - 60 col0
----
60

skipif mysql # not compatible
query I rowsort label-1994
SELECT 2 / - 32 * - 53 - + - 60 col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT - COUNT( * ) * 69 * + 23 * - + 69
----
109503

skipif mysql # not compatible
query I rowsort label-1995
SELECT - COUNT ( * ) * 69 * + 23 * - + 69
----
109503

query I rowsort
SELECT + 62 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT DISTINCT - MIN( DISTINCT 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT - MIN ( DISTINCT 82 )
----
-82

query I rowsort
SELECT ALL - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT ALL 11 + COALESCE ( - 0 - - COALESCE ( + 20 + + 57 * - 23, - 60 * - COUNT( * ) + 79 * 5 ), + 4 )
----
-1280

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL 11 + COALESCE ( - 0 - - COALESCE ( + 20 + + 57 * - 23, - 60 * - COUNT ( * ) + 79 * 5 ), + 4 )
----
-1280

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT ALL - COALESCE ( + 68, COUNT( - NULLIF ( ( - 50 ), 60 + - 1 ) ), - 92 * 8, 11 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL - COALESCE ( + 68, COUNT ( - NULLIF ( ( - 50 ), 60 + - 1 ) ), - 92 * 8, 11 ) AS col0
----
-68

query I rowsort
SELECT DISTINCT 46 + 94
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2002
SELECT ALL - 76 + + ( - CASE + AVG ( DISTINCT - ( + 57 ) ) WHEN + 64 + + 59 * - 47 THEN 37 * - 0 ELSE NULL END + CAST( NULL AS SIGNED ) * - 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL - 76 + + ( - CASE + AVG ( DISTINCT - ( + 57 ) ) WHEN + 64 + + 59 * - 47 THEN 37 * - 0 ELSE NULL END + CAST ( NULL AS INTEGER ) * - 28 )
----
NULL

query I rowsort
SELECT ALL - 96 AS col2
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2004
SELECT ALL - CASE 10 WHEN + 21 * - 34 THEN 61 WHEN - 5 THEN CASE WHEN NOT NULL BETWEEN NULL AND + CAST( NULL AS SIGNED ) THEN + MIN( ALL - 6 ) * - ( COUNT( * ) - + CASE 96 WHEN 54 THEN 37 * 15 + COUNT( * ) END ) ELSE 23 * 88 END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL - CASE 10 WHEN + 21 * - 34 THEN 61 WHEN - 5 THEN CASE WHEN NOT NULL BETWEEN NULL AND + CAST ( NULL AS INTEGER ) THEN + MIN ( ALL - 6 ) * - ( COUNT ( * ) - + CASE 96 WHEN 54 THEN 37 * 15 + COUNT ( * ) END ) ELSE 23 * 88 END END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 94 + 43
----
-51

query I rowsort
SELECT 0 AS col0
----
0

query I rowsort
SELECT + 35
----
35

query I rowsort
SELECT + 36 AS col0
----
36

query I rowsort
SELECT ALL - 76 + - 60 AS col1
----
-136

query I rowsort
SELECT 40 * + 5 + + 84 col2
----
284

query I rowsort
SELECT 43
----
43

query I rowsort
SELECT 60 + - 31 col2
----
29

query I rowsort
SELECT + 71 * 25 - 59 * + 76
----
-2709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2014
SELECT ALL - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 70 + + 56
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2016
SELECT ALL - 77 + - 59 DIV ( 40 + + MIN( - 65 ) )
----
-75

skipif mysql # not compatible
query I rowsort label-2016
SELECT ALL - 77 + - 59 / ( 40 + + MIN ( - 65 ) )
----
-75

query I rowsort
SELECT 30 AS col0
----
30

query I rowsort
SELECT ALL - 15 AS col1
----
-15

query I rowsort
SELECT DISTINCT + 59 - 50 col2
----
9

query I rowsort
SELECT ALL 6
----
6

query I rowsort
SELECT ALL 58 AS col0
----
58

query I rowsort
SELECT ALL 60
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2023
SELECT DISTINCT - 86 DIV - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-2023
SELECT DISTINCT - 86 / - COUNT ( * )
----
86

query I rowsort
SELECT DISTINCT 63
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT 76 * - MAX( - 80 * + 16 )
----
97280

skipif mysql # not compatible
query I rowsort label-2025
SELECT 76 * - MAX ( - 80 * + 16 )
----
97280

query I rowsort
SELECT 11 * - 8 col0
----
-88

query I rowsort
SELECT ALL 69 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT 85 * COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-2028
SELECT 85 * COUNT ( * )
----
85

query I rowsort
SELECT NULLIF ( 99, - 17 - 8 * 38 ) * + COALESCE ( - 31 + 60, - 76 ) col1
----
2871

query I rowsort
SELECT ALL 26 AS col2
----
26

query I rowsort
SELECT 48 AS col1
----
48

query I rowsort
SELECT ALL 80
----
80

query I rowsort
SELECT DISTINCT 84 AS col0
----
84

query I rowsort
SELECT DISTINCT + 97 * - 41 AS col0
----
-3977

query I rowsort
SELECT ALL 37 AS col0
----
37

query I rowsort
SELECT ALL 90 AS col0
----
90

query I rowsort
SELECT DISTINCT 41 AS col2
----
41

query I rowsort
SELECT ( - 0 ) * ( 37 )
----
0

query I rowsort
SELECT DISTINCT 95 col1
----
95

query I rowsort
SELECT 48
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT ALL COUNT( * ) + - 20
----
-19

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL COUNT ( * ) + - 20
----
-19

query I rowsort
SELECT ALL 1 AS col1
----
1

query I rowsort
SELECT DISTINCT 52 col0
----
52

query I rowsort
SELECT 26 + - 36
----
-10

query I rowsort
SELECT 64 AS col1
----
64

query I rowsort
SELECT - 57 AS col2
----
-57

query I rowsort
SELECT ALL 58
----
58

query I rowsort
SELECT ALL NULLIF ( 78, 26 ) + + ( 20 )
----
98

query I rowsort
SELECT ( 14 ) AS col0
----
14

query I rowsort
SELECT ALL 44 + 50
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2051
SELECT DISTINCT 83 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT 83 / - 84
----
0

query I rowsort
SELECT + 36 * - 62 + + 50 * + 35 AS col0
----
-482

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT - 31 * COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-2053
SELECT - 31 * COUNT ( * )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2054
SELECT DISTINCT + 73 + + COALESCE ( - 10, - NULLIF ( 52, CAST( NULL AS SIGNED ) * - CASE COUNT( ALL 21 ) WHEN + 98 THEN COALESCE ( NULLIF ( + ( + COALESCE ( COUNT( * ), - 34 ) ), ( COUNT( * ) ) ), COALESCE ( 40, 43, + MAX( ALL - 18 ) + 45 * + 24 ), 54 + MAX( + 51 + 40 ) ) + - 63 * - 70 END ) + + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-2054
SELECT DISTINCT + 73 + + COALESCE ( - 10, - NULLIF ( 52, CAST ( NULL AS INTEGER ) * - CASE COUNT ( ALL 21 ) WHEN + 98 THEN COALESCE ( NULLIF ( + ( + COALESCE ( COUNT ( * ), - 34 ) ), ( COUNT ( * ) ) ), COALESCE ( 40, 43, + MAX ( ALL - 18 ) + 45 * + 24 ), 54 + MAX ( + 51 + 40 ) ) + - 63 * - 70 END ) + + 63 )
----
63

query I rowsort
SELECT ALL + 15 + + 12
----
27

query I rowsort
SELECT + 54 + - 67
----
-13

query I rowsort
SELECT - 39 AS col1
----
-39

query I rowsort
SELECT + ( + 69 )
----
69

query I rowsort
SELECT DISTINCT - 71
----
-71

query I rowsort
SELECT 74 + - 83 * 82 AS col1
----
-6732

query I rowsort
SELECT ALL - - 46
----
46

query I rowsort
SELECT ALL - 33 col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT + + MAX( DISTINCT + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-2063
SELECT + + MAX ( DISTINCT + 79 )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2064
SELECT ALL 90 - CAST( - 68 AS SIGNED ) * 31 col1
----
2198

skipif mysql # not compatible
query I rowsort label-2064
SELECT ALL 90 - CAST ( - 68 AS INTEGER ) * 31 col1
----
2198

query I rowsort
SELECT DISTINCT - + 95
----
-95

query I rowsort
SELECT + 90
----
90

query I rowsort
SELECT ALL - 99 - - 93 AS col0
----
-6

query I rowsort
SELECT + 23 AS col1
----
23

query I rowsort
SELECT + 40 AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2070
SELECT COUNT( * ) * - COUNT( + CASE - ( 26 ) WHEN ( - 70 ) / COALESCE ( 67, - ( - COALESCE ( 23, 97 ) ) ) THEN + 12 + 72 WHEN - 49 * + 79 THEN + 42 ELSE + CAST( 57 AS DECIMAL ) END ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2070
SELECT COUNT ( * ) * - COUNT ( + CASE - ( 26 ) WHEN ( - 70 ) / COALESCE ( 67, - ( - COALESCE ( 23, 97 ) ) ) THEN + 12 + 72 WHEN - 49 * + 79 THEN + 42 ELSE + CAST ( 57 AS REAL ) END ) AS col1
----
-1

query I rowsort
SELECT ALL - + 52 * 88 AS col1
----
-4576

query I rowsort
SELECT - 13
----
-13

query I rowsort
SELECT + 46
----
46

query I rowsort
SELECT 53 col2
----
53

query I rowsort
SELECT 85 - + 58 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT 21 * + COUNT( * ) col1
----
21

skipif mysql # not compatible
query I rowsort label-2076
SELECT 21 * + COUNT ( * ) col1
----
21

query I rowsort
SELECT ALL - 73 * - 18 AS col1
----
1314

query I rowsort
SELECT 95 - - 43
----
138

query I rowsort
SELECT 45 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT ALL SUM( + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL SUM ( + 34 )
----
34

query I rowsort
SELECT - 23
----
-23

query I rowsort
SELECT DISTINCT 75
----
75

query I rowsort
SELECT 26 AS col1
----
26

query I rowsort
SELECT 31 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT ALL MIN( ALL + + 23 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL MIN ( ALL + + 23 ) AS col0
----
23

query I rowsort
SELECT ALL - 56 + 97 col1
----
41

query I rowsort
SELECT ALL 60 * 83 AS col0
----
4980

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT 36 * + MIN( DISTINCT + ( 7 ) )
----
252

skipif mysql # not compatible
query I rowsort label-2088
SELECT 36 * + MIN ( DISTINCT + ( 7 ) )
----
252

query I rowsort
SELECT DISTINCT - COALESCE ( + 61, + 37 ) + - 79 * 81
----
-6460

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT ALL SUM( - - 10 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL SUM ( - - 10 ) AS col1
----
10

query I rowsort
SELECT 17 AS col1
----
17

query I rowsort
SELECT NULLIF ( + - 68, 40 * + 85 + - 56 ) * + 44 col2
----
-2992

query I rowsort
SELECT 49 * 3
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2094
SELECT ALL - 20 + - ( COALESCE ( 48, 4, + COALESCE ( 73, + 1 * NULLIF ( + COUNT( * ) * 98, 27 * 16 ) + - CASE NULLIF ( COUNT( * ), COUNT( * ) * MAX( DISTINCT 66 ) ) WHEN 68 + + 14 / 81 THEN - 74 * 21 WHEN - 19 * 35 + + 22 THEN NULL END, 51 ) + + CAST( NULL AS SIGNED ) * + 91 ) ) - MIN( DISTINCT - 24 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL - 20 + - ( COALESCE ( 48, 4, + COALESCE ( 73, + 1 * NULLIF ( + COUNT ( * ) * 98, 27 * 16 ) + - CASE NULLIF ( COUNT ( * ), COUNT ( * ) * MAX ( DISTINCT 66 ) ) WHEN 68 + + 14 / 81 THEN - 74 * 21 WHEN - 19 * 35 + + 22 THEN NULL END, 51 ) + + CAST ( NULL AS INTEGER ) * + 91 ) ) - MIN ( DISTINCT - 24 ) AS col1
----
-44

query I rowsort
SELECT 25
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2096
SELECT - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT ALL - 11 + + COUNT( * ) + - 19
----
-29

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL - 11 + + COUNT ( * ) + - 19
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT - 30 DIV - + 34 * + 15 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2098
SELECT - 30 / - + 34 * + 15 AS col0
----
0

query I rowsort
SELECT - 89 + + 56
----
-33

query I rowsort
SELECT 69
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ALL - 75 + - + COUNT( * ) - + 5 * - 4 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL - 75 + - + COUNT ( * ) - + 5 * - 4 AS col1
----
-56

query I rowsort
SELECT DISTINCT 18 + - 59
----
-41

query I rowsort
SELECT - 57
----
-57

query I rowsort
SELECT ALL 94 + 5 * 46
----
324

query I rowsort
SELECT ALL 53 + + 62 AS col0
----
115

query I rowsort
SELECT 55
----
55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2107
SELECT DISTINCT + - ( - NULLIF ( - CAST( NULL AS DECIMAL ), + 47 ) ) + MAX( 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT + - ( - NULLIF ( - CAST ( NULL AS REAL ), + 47 ) ) + MAX ( 80 )
----
NULL

query I rowsort
SELECT - 89 AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT ALL COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2109
SELECT ALL COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + 22
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT ALL + COUNT( ALL + 65 )
----
1

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL + COUNT ( ALL + 65 )
----
1

query I rowsort
SELECT 69 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT + SUM( + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-2113
SELECT + SUM ( + 78 )
----
78

query I rowsort
SELECT + 12 AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2115
SELECT + + COUNT( * ) * - CASE + CASE COUNT( * ) WHEN 73 + 90 THEN NULL WHEN COUNT( 17 ) THEN - 90 + - 80 WHEN 7 THEN NULL END WHEN COUNT( * ) THEN + 0 WHEN CASE + 78 WHEN 55 THEN NULL WHEN 18 THEN - 25 - + 50 / CAST( NULL AS SIGNED ) END THEN NULL ELSE + 14 * - 73 END
----
1022

skipif mysql # not compatible
query I rowsort label-2115
SELECT + + COUNT ( * ) * - CASE + CASE COUNT ( * ) WHEN 73 + 90 THEN NULL WHEN COUNT ( 17 ) THEN - 90 + - 80 WHEN 7 THEN NULL END WHEN COUNT ( * ) THEN + 0 WHEN CASE + 78 WHEN 55 THEN NULL WHEN 18 THEN - 25 - + 50 / CAST ( NULL AS INTEGER ) END THEN NULL ELSE + 14 * - 73 END
----
1022

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2116
SELECT ALL 35 DIV CAST( + COUNT( * ) AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL 35 / CAST ( + COUNT ( * ) AS INTEGER )
----
35

query I rowsort
SELECT + - 45
----
-45

query I rowsort
SELECT ALL + 89 AS col0
----
89

query I rowsort
SELECT ALL 13 * + + 73 * 8 - + 88
----
7504

query I rowsort
SELECT DISTINCT + 19 col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT ALL + MIN( + 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL + MIN ( + 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT + 17 * + 19 + + 43 - NULLIF ( + COUNT( * ), 67 / COUNT( * ) ) AS col1
----
365

skipif mysql # not compatible
query I rowsort label-2122
SELECT + 17 * + 19 + + 43 - NULLIF ( + COUNT ( * ), 67 / COUNT ( * ) ) AS col1
----
365

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT DISTINCT + ( - - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-2123
SELECT DISTINCT + ( - - COUNT ( * ) )
----
1

query I rowsort
SELECT ALL 1 * - + 5 AS col0
----
-5

query I rowsort
SELECT DISTINCT + 96
----
96

query I rowsort
SELECT + ( ( + 68 ) ) * - 44 + 37 AS col2
----
-2955

query I rowsort
SELECT 75 AS col2
----
75

query I rowsort
SELECT ALL + 68 * 45 AS col0
----
3060

query I rowsort
SELECT + - 62 * 87 + 98
----
-5296

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT - - MIN( DISTINCT 68 ) * - 41
----
-2788

skipif mysql # not compatible
query I rowsort label-2130
SELECT - - MIN ( DISTINCT 68 ) * - 41
----
-2788

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2131
SELECT - ( + 5 ) DIV + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-2131
SELECT - ( + 5 ) / + COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT + - ( + - COUNT( 14 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2132
SELECT + - ( + - COUNT ( 14 ) )
----
1

query I rowsort
SELECT + 21 + + 53 col0
----
74

query I rowsort
SELECT 14 * 72 - + 68 + - 61
----
879

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT ALL + SUM( - + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL + SUM ( - + 50 )
----
-50

query I rowsort
SELECT + 79 + - - 12 AS col1
----
91

query I rowsort
SELECT ALL + 40 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT ALL + COUNT( - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL + COUNT ( - 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT SUM( 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-2139
SELECT SUM ( 95 ) AS col2
----
95

query I rowsort
SELECT DISTINCT + 46
----
46

query II rowsort
SELECT ALL + 85 AS col0, 30 col2
----
85
30

query I rowsort
SELECT + 24
----
24

query I rowsort
SELECT ALL + 56 col1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2144
SELECT DISTINCT + AVG ( ALL ( + CAST( NULL AS SIGNED ) ) ) * + 97 + - 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2144
SELECT DISTINCT + AVG ( ALL ( + CAST ( NULL AS INTEGER ) ) ) * + 97 + - 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT DISTINCT + 81 * - - 27 * + 64 + + COUNT( * )
----
139969

skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT + 81 * - - 27 * + 64 + + COUNT ( * )
----
139969

query I rowsort
SELECT ALL ( 40 )
----
40

query I rowsort
SELECT + 19 * 39 AS col1
----
741

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT - 25 + + 72 + + COUNT( * ) * + 78 AS col1
----
125

skipif mysql # not compatible
query I rowsort label-2148
SELECT - 25 + + 72 + + COUNT ( * ) * + 78 AS col1
----
125

query I rowsort
SELECT ALL - 52 + + + 1 * + 84 AS col2
----
32

query I rowsort
SELECT - ( + 54 )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2151
SELECT - NULLIF ( - - COALESCE ( - COUNT( * ), 54 ), - 42 - + 53 * 18 ) + CAST( + SUM( DISTINCT + 15 ) + + 71 AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-2151
SELECT - NULLIF ( - - COALESCE ( - COUNT ( * ), 54 ), - 42 - + 53 * 18 ) + CAST ( + SUM ( DISTINCT + 15 ) + + 71 AS INTEGER )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2152
SELECT - CAST( 7 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-2152
SELECT - CAST ( 7 AS INTEGER )
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-2153
SELECT - 30 + - 27 + - + 56 DIV + 98 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-2153
SELECT - 30 + - 27 + - + 56 / + 98 AS col0
----
-57

query I rowsort
SELECT - 89 * - - 96 AS col0
----
-8544

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2155
SELECT - COUNT ( * ) col0
----
-1

query I rowsort
SELECT 8
----
8

query I rowsort
SELECT 11 AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2158
SELECT ALL CAST( + 15 AS SIGNED ) + - + 25 - - 80 * + 26
----
2070

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL CAST ( + 15 AS INTEGER ) + - + 25 - - 80 * + 26
----
2070

query I rowsort
SELECT ALL ( 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT - MIN( ALL + 39 ) + - + CASE WHEN NOT ( COUNT( DISTINCT 43 ) ) IS NULL THEN NULL ELSE COUNT( * ) END + - 39 * + ( 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2160
SELECT - MIN ( ALL + 39 ) + - + CASE WHEN NOT ( COUNT ( DISTINCT 43 ) ) IS NULL THEN NULL ELSE COUNT ( * ) END + - 39 * + ( 7 )
----
NULL

query I rowsort
SELECT 3
----
3

query I rowsort
SELECT - ( - 57 ) + - 27 * + 79 AS col0
----
-2076

query I rowsort
SELECT ALL - - ( 43 ) - 82 AS col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2164
SELECT ALL + COUNT( * ) DIV + 38 + COALESCE ( - 48, - 8 ) + - 88
----
-136

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL + COUNT ( * ) / + 38 + COALESCE ( - 48, - 8 ) + - 88
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT - - COALESCE ( + 40, + 95 - 28 * 55 ) * COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-2165
SELECT - - COALESCE ( + 40, + 95 - 28 * 55 ) * COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT - 62 + + ( + SUM( 37 ) ) + 72 * COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-2166
SELECT - 62 + + ( + SUM ( 37 ) ) + 72 * COUNT ( * ) AS col0
----
47

query I rowsort
SELECT - + 37 AS col0
----
-37

query I rowsort
SELECT - 79 AS col2
----
-79

query I rowsort
SELECT - 75 + - 67 AS col0
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT + - 12 - - - COUNT( * ) * - 41 * 30 col0
----
1218

skipif mysql # not compatible
query I rowsort label-2170
SELECT + - 12 - - - COUNT ( * ) * - 41 * 30 col0
----
1218

query I rowsort
SELECT - 89 * 68 AS col2
----
-6052

query I rowsort
SELECT ALL 33 * - 20 AS col0
----
-660

query I rowsort
SELECT ALL - 63 * + + 17
----
-1071

query I rowsort
SELECT - - 52 + + 65 * + + 76
----
4992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2175
SELECT + CASE - 53 WHEN ( + 15 ) * CAST( 59 AS SIGNED ) THEN CAST( NULL AS SIGNED ) WHEN COALESCE ( COUNT( * ), + NULLIF ( 44, - CASE 23 WHEN 71 - ( ( + ( - SUM( - 7 ) ) ) - - 41 ) * + 36 THEN 4 + + 97 WHEN + 63 - - 30 * + 53 THEN NULL END + 60 * 88 ) + + 85, 43 * 8 + 64 * NULLIF ( MAX( ALL - 15 ), - COUNT( * ) ) ) THEN NULL WHEN + 75 * - 72 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2175
SELECT + CASE - 53 WHEN ( + 15 ) * CAST ( 59 AS INTEGER ) THEN CAST ( NULL AS INTEGER ) WHEN COALESCE ( COUNT ( * ), + NULLIF ( 44, - CASE 23 WHEN 71 - ( ( + ( - SUM ( - 7 ) ) ) - - 41 ) * + 36 THEN 4 + + 97 WHEN + 63 - - 30 * + 53 THEN NULL END + 60 * 88 ) + + 85, 43 * 8 + 64 * NULLIF ( MAX ( ALL - 15 ), - COUNT ( * ) ) ) THEN NULL WHEN + 75 * - 72 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT ALL + + COUNT( 98 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL + + COUNT ( 98 ) AS col0
----
1

query I rowsort
SELECT ALL + ( 85 )
----
85

query I rowsort
SELECT + 89 * + 23 * 43 + - 49 * 58 + 99 AS col1
----
85278

query I rowsort
SELECT ALL + 80 col2
----
80

query I rowsort
SELECT - - 8 * - 12 * + 2
----
-192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2181
SELECT COUNT( * ) DIV 52 * - COUNT( * ) + + 97 * 42 AS col0
----
4074

skipif mysql # not compatible
query I rowsort label-2181
SELECT COUNT ( * ) / 52 * - COUNT ( * ) + + 97 * 42 AS col0
----
4074

query I rowsort
SELECT ALL + - 8 col2
----
-8

query I rowsort
SELECT + 58 col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT + 52 + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-2184
SELECT + 52 + COUNT ( * )
----
53

query I rowsort
SELECT - 8
----
-8

query I rowsort
SELECT DISTINCT + 3
----
3

query I rowsort
SELECT ALL + - 35
----
-35

query I rowsort
SELECT DISTINCT + ( + 74 ) AS col2
----
74

query I rowsort
SELECT NULLIF ( + 2, 35 + 57 )
----
2

query I rowsort
SELECT ALL + 75 col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2191
SELECT + 55 * + CAST( COUNT( * ) AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-2191
SELECT + 55 * + CAST ( COUNT ( * ) AS INTEGER )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL SUM( ALL 92 ) * CASE - MIN( DISTINCT 87 ) WHEN - 61 THEN SUM( ALL + 73 ) ELSE NULL END * COUNT( ALL + 19 * - 48 ) + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL SUM ( ALL 92 ) * CASE - MIN ( DISTINCT 87 ) WHEN - 61 THEN SUM ( ALL + 73 ) ELSE NULL END * COUNT ( ALL + 19 * - 48 ) + 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2193
SELECT DISTINCT + 15 * + 55 + + CAST( + NULLIF ( + NULLIF ( - COUNT( 32 ), + ( - 63 ) + ( - 41 + + 71 * + ( - 38 + + 71 ) ) ), - 8 / 33 + SUM( 20 + + 81 ) * ( 36 ) ) AS SIGNED )
----
824

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT + 15 * + 55 + + CAST ( + NULLIF ( + NULLIF ( - COUNT ( 32 ), + ( - 63 ) + ( - 41 + + 71 * + ( - 38 + + 71 ) ) ), - 8 / 33 + SUM ( 20 + + 81 ) * ( 36 ) ) AS INTEGER )
----
824

query I rowsort
SELECT + NULLIF ( + 91, + + 39 ) AS col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2195
SELECT + 19 DIV + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-2195
SELECT + 19 / + COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT + COUNT( * ) * - 1 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2196
SELECT + COUNT ( * ) * - 1 AS col0
----
-1

query I rowsort
SELECT ALL - 4 * ( - 50 ) + 53 * - 86
----
-4358

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT CASE 4 WHEN + COUNT( * ) THEN NULL WHEN + 5 THEN - 63 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2198
SELECT CASE 4 WHEN + COUNT ( * ) THEN NULL WHEN + 5 THEN - 63 * + COUNT ( * ) END
----
NULL

query I rowsort
SELECT 20 - 39
----
-19

query I rowsort
SELECT 99
----
99

query I rowsort
SELECT ALL 35 AS col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2202
SELECT ALL CAST( + + 53 AS SIGNED ) + - + CASE 41 WHEN 86 * 11 + + 38 THEN + 26 END + 57 * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL CAST ( + + 53 AS INTEGER ) + - + CASE 41 WHEN 86 * 11 + + 38 THEN + 26 END + 57 * 67
----
NULL

query I rowsort
SELECT 65 * - - 11
----
715

query I rowsort
SELECT DISTINCT 54 * - + 11
----
-594

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT COUNT( * ) * + + 47 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-2205
SELECT COUNT ( * ) * + + 47 AS col0
----
47

query I rowsort
SELECT ALL 43
----
43

query I rowsort
SELECT ALL 45 AS col2
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2208
SELECT ALL CAST( NULL AS DECIMAL ) + ( + 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL CAST ( NULL AS REAL ) + ( + 31 )
----
NULL

query I rowsort
SELECT 94 AS col0
----
94

query I rowsort
SELECT ALL 1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2211
SELECT ALL + 94 - 0 DIV 19
----
94

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL + 94 - 0 / 19
----
94

query I rowsort
SELECT 64 - - - 21 AS col0
----
43

query I rowsort
SELECT 7 AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2214
SELECT 74 - + - 84 - - + 13 + 12 DIV + NULLIF ( 8 * - 58 + 18, - 67 ) col0
----
171

skipif mysql # not compatible
query I rowsort label-2214
SELECT 74 - + - 84 - - + 13 + 12 / + NULLIF ( 8 * - 58 + 18, - 67 ) col0
----
171

query I rowsort
SELECT DISTINCT 76 * + 29
----
2204

query I rowsort
SELECT ALL 95
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2217
SELECT - 51 * + - 36 + - + CAST( + - COUNT( * ) AS SIGNED ) + 62
----
1899

skipif mysql # not compatible
query I rowsort label-2217
SELECT - 51 * + - 36 + - + CAST ( + - COUNT ( * ) AS INTEGER ) + 62
----
1899

onlyif mysql # DIV for integer division: 
query I rowsort label-2218
SELECT 49 * 68 DIV - + 29 AS col1
----
-114

skipif mysql # not compatible
query I rowsort label-2218
SELECT 49 * 68 / - + 29 AS col1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT - MAX( ALL 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-2219
SELECT - MAX ( ALL 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT - COUNT( ALL - - ( - + 38 ) ) + + - 70 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-2220
SELECT - COUNT ( ALL - - ( - + 38 ) ) + + - 70 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT DISTINCT 38 * - MAX( + + 45 ) AS col1
----
-1710

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT 38 * - MAX ( + + 45 ) AS col1
----
-1710

query I rowsort
SELECT DISTINCT 30 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT COALESCE ( + 25, - 39 + 7 ) * COUNT( ALL - 73 - + 82 * 1 )
----
25

skipif mysql # not compatible
query I rowsort label-2223
SELECT COALESCE ( + 25, - 39 + 7 ) * COUNT ( ALL - 73 - + 82 * 1 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2224
SELECT ALL + MIN( - 17 ) * 1 * CAST( + COUNT( * ) AS SIGNED ) + 99 col1
----
82

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL + MIN ( - 17 ) * 1 * CAST ( + COUNT ( * ) AS INTEGER ) + 99 col1
----
82

query I rowsort
SELECT DISTINCT 85 AS col2
----
85

query I rowsort
SELECT - COALESCE ( + 34, + ( + - 39 ), - 4 ) AS col0
----
-34

query I rowsort
SELECT ALL + 62
----
62

query I rowsort
SELECT + 41
----
41

query I rowsort
SELECT DISTINCT - 49 AS col0
----
-49

query I rowsort
SELECT ALL 69 AS col2
----
69

query I rowsort
SELECT 8 * - - 71 AS col1
----
568

query I rowsort
SELECT + 45 * - 58 - - 62 - - - 21
----
-2569

query I rowsort
SELECT - 67 * + - 78 AS col0
----
5226

query I rowsort
SELECT ALL - - 6 AS col0
----
6

query I rowsort
SELECT + 75
----
75

query I rowsort
SELECT ALL + 76 + 28 - + - 95 * + - 41
----
-3791

query I rowsort
SELECT + 89 + - 36 * - 86 AS col2
----
3185

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT + 59 * + - 87 - COUNT( * ) AS col0
----
-5134

skipif mysql # not compatible
query I rowsort label-2238
SELECT + 59 * + - 87 - COUNT ( * ) AS col0
----
-5134

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT ALL + + MAX( ALL + - 15 ) + + 64 + + + ( - COALESCE ( 51, + 87 + 27 * ( - 20 * 35 ) ) ) * 0 * - COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL + + MAX ( ALL + - 15 ) + + 64 + + + ( - COALESCE ( 51, + 87 + 27 * ( - 20 * 35 ) ) ) * 0 * - COUNT ( * ) AS col2
----
49

query I rowsort
SELECT 10 AS col2
----
10

query I rowsort
SELECT DISTINCT - - 81 AS col1
----
81

query I rowsort
SELECT DISTINCT 51 + - NULLIF ( - 77, + 71 )
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2243
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) + - 17 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) + - 17 AS col2
----
-16

query II rowsort
SELECT 42 AS col2, + 27
----
42
27

query I rowsort
SELECT ALL ( - 76 ) + + 70 * - ( + 59 )
----
-4206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2246
SELECT COUNT( * ) - + 72 * 36 - + CAST( COUNT( * ) AS SIGNED ) * - ( 94 * + COUNT( * ) + - 19 ) AS col1
----
-2516

skipif mysql # not compatible
query I rowsort label-2246
SELECT COUNT ( * ) - + 72 * 36 - + CAST ( COUNT ( * ) AS INTEGER ) * - ( 94 * + COUNT ( * ) + - 19 ) AS col1
----
-2516

query I rowsort
SELECT ALL - 68
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT 39 + - ( - - COUNT( * ) )
----
38

skipif mysql # not compatible
query I rowsort label-2248
SELECT 39 + - ( - - COUNT ( * ) )
----
38

query I rowsort
SELECT DISTINCT - ( - 99 ) AS col0
----
99

query I rowsort
SELECT 28 AS col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2251
SELECT NULLIF ( - 57, - 77 ) * - - CASE 4 WHEN AVG ( 92 ) THEN NULL WHEN - 94 * 76 THEN - 31 * CAST( NULL AS SIGNED ) + + 36 * 76 ELSE NULL END + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-2251
SELECT NULLIF ( - 57, - 77 ) * - - CASE 4 WHEN AVG ( 92 ) THEN NULL WHEN - 94 * 76 THEN - 31 * CAST ( NULL AS INTEGER ) + + 36 * 76 ELSE NULL END + + 78
----
NULL

query I rowsort
SELECT ALL + 25 + + 82
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT - 59 * 43 * + 1 + - 64 + - + CASE + 7 WHEN 94 THEN - 70 WHEN - 19 + 81 / + 60 THEN - 98 / + 5 + + COUNT( * ) ELSE NULL END * + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2253
SELECT - 59 * 43 * + 1 + - 64 + - + CASE + 7 WHEN 94 THEN - 70 WHEN - 19 + 81 / + 60 THEN - 98 / + 5 + + COUNT ( * ) ELSE NULL END * + 87 AS col2
----
NULL

query I rowsort
SELECT + 77 AS col2
----
77

query I rowsort
SELECT ALL - 94 AS col1
----
-94

query I rowsort
SELECT 29 + + 76 AS col2
----
105

query I rowsort
SELECT ( + + NULLIF ( - - 42, + 77 ) ) * - 79 - + 60 col0
----
-3378

query I rowsort
SELECT DISTINCT - ( + - 40 )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2259
SELECT COALESCE ( - NULLIF ( + 29, + 86 * CASE 23 WHEN - 16 * 13 THEN CAST( ( 46 ) AS SIGNED ) * + 17 END + - 75 ), - COUNT( * ) ) * ( - 85 ) AS col1
----
2465

skipif mysql # not compatible
query I rowsort label-2259
SELECT COALESCE ( - NULLIF ( + 29, + 86 * CASE 23 WHEN - 16 * 13 THEN CAST ( ( 46 ) AS INTEGER ) * + 17 END + - 75 ), - COUNT ( * ) ) * ( - 85 ) AS col1
----
2465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2260
SELECT ALL - CAST( + 86 AS SIGNED ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL - CAST ( + 86 AS INTEGER ) AS col0
----
-86

query I rowsort
SELECT DISTINCT + 7 - - 87 + - CASE - + 90 WHEN 49 * - 10 THEN - 94 WHEN 72 THEN 2 ELSE NULL END + 26 AS col1
----
NULL

query I rowsort
SELECT ALL 45
----
45

query I rowsort
SELECT ALL 30 * - ( + - 23 ) * + 53
----
36570

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT ( + 23 ) + 77 + + - MAX( 73 ) * ( - COUNT( * ) )
----
173

skipif mysql # not compatible
query I rowsort label-2264
SELECT ( + 23 ) + 77 + + - MAX ( 73 ) * ( - COUNT ( * ) )
----
173

query I rowsort
SELECT ALL 42 * - 3 AS col0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT COUNT( * ) * - 82 * 31
----
-2542

skipif mysql # not compatible
query I rowsort label-2266
SELECT COUNT ( * ) * - 82 * 31
----
-2542

query I rowsort
SELECT - 0 AS col1
----
0

query I rowsort
SELECT - 53
----
-53

query I rowsort
SELECT 84 AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2270
SELECT ALL 35 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL 35 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2271
SELECT 90 DIV 39 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2271
SELECT 90 / 39 AS col0
----
2

query I rowsort
SELECT 5 + + 41 * 75 * - - CASE 17 WHEN + 97 * 76 THEN NULL ELSE 58 END AS col0
----
178355

query I rowsort
SELECT DISTINCT 35 col2
----
35

query I rowsort
SELECT + 13 AS col0
----
13

query I rowsort
SELECT ALL + 41
----
41

query I rowsort
SELECT DISTINCT 41 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT DISTINCT - MIN( 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-2277
SELECT DISTINCT - MIN ( 29 ) AS col2
----
-29

query I rowsort
SELECT DISTINCT + 18 AS col2
----
18

query I rowsort
SELECT ALL 25
----
25

query I rowsort
SELECT DISTINCT + 48 AS col0
----
48

query I rowsort
SELECT - 87
----
-87

query I rowsort
SELECT 53 + 75 * + + 30
----
2303

query I rowsort
SELECT - + 69 AS col2
----
-69

query I rowsort
SELECT + ( 64 ) + - + 2 * - 9
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT 43 + 43 * - 71 + NULLIF ( + - 88, + 84 * COUNT( * ) ) AS col2
----
-3098

skipif mysql # not compatible
query I rowsort label-2285
SELECT 43 + 43 * - 71 + NULLIF ( + - 88, + 84 * COUNT ( * ) ) AS col2
----
-3098

query I rowsort
SELECT DISTINCT 93 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT ALL + 31 * - MIN( - ( - 14 ) ) AS col1
----
-434

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL + 31 * - MIN ( - ( - 14 ) ) AS col1
----
-434

query I rowsort
SELECT - 87 * 17 + - - 93 + 53 + - + 92 - + 29 * - 74 * 43 * + 9
----
829077

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT ALL - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL - + COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT 6 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT ALL COUNT( * ) * 27 + - 31
----
-4

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL COUNT ( * ) * 27 + - 31
----
-4

query I rowsort
SELECT ALL + 66 * - CASE 66 WHEN - 62 THEN - + 6 / + 85 END + + 48 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT 22 + + SUM( - 17 )
----
5

skipif mysql # not compatible
query I rowsort label-2293
SELECT 22 + + SUM ( - 17 )
----
5

query I rowsort
SELECT DISTINCT - + 79
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2295
SELECT ALL - + COUNT( * ) * - CAST( NULL AS SIGNED ) + + + CASE + 42 WHEN 23 - - 29 THEN COUNT( * ) * 36 ELSE + 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + + CASE + 42 WHEN 23 - - 29 THEN COUNT ( * ) * 36 ELSE + 83 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2296
SELECT ALL + + 84 * 34 DIV COALESCE ( + + 34, + 85 ) DIV - 18 + COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL + + 84 * 34 / COALESCE ( + + 34, + 85 ) / - 18 + COUNT ( * ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT CASE + COUNT( - + 34 ) WHEN + 22 / - 69 + + - COUNT( * ) THEN 95 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2297
SELECT CASE + COUNT ( - + 34 ) WHEN + 22 / - 69 + + - COUNT ( * ) THEN 95 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT CASE + + 43 WHEN + 19 + - 0 THEN 87 * + - 34 + + COUNT( - CASE ( - ( NULLIF ( 40, 4 ) ) ) WHEN 95 * + 4 THEN 77 WHEN 95 THEN NULL ELSE NULL END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2298
SELECT CASE + + 43 WHEN + 19 + - 0 THEN 87 * + - 34 + + COUNT ( - CASE ( - ( NULLIF ( 40, 4 ) ) ) WHEN 95 * + 4 THEN 77 WHEN 95 THEN NULL ELSE NULL END ) END
----
NULL

query I rowsort
SELECT + NULLIF ( - - 70, + - ( - ( ( 47 ) ) ) ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT ALL - ( 55 ) * 40 + - + 15 - - 89 * + + COALESCE ( COUNT( * ), + 66 )
----
-2126

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL - ( 55 ) * 40 + - + 15 - - 89 * + + COALESCE ( COUNT ( * ), + 66 )
----
-2126

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT - 20 * COUNT( * ) * - 47
----
940

skipif mysql # not compatible
query I rowsort label-2301
SELECT - 20 * COUNT ( * ) * - 47
----
940

query I rowsort
SELECT + 72 col2
----
72

query II rowsort
SELECT - 90 * + + 67 col0, 36 * + 68 AS col0
----
-6030
2448

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT - CASE 94 WHEN CASE + 8 WHEN + - 1 THEN NULL WHEN - NULLIF ( + ( - 15 ), + 12 * 93 ) THEN NULL ELSE + COUNT( * ) END / 92 THEN NULL WHEN ( 75 ) / 51 THEN + 30 + + 40 ELSE NULL END + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2304
SELECT - CASE 94 WHEN CASE + 8 WHEN + - 1 THEN NULL WHEN - NULLIF ( + ( - 15 ), + 12 * 93 ) THEN NULL ELSE + COUNT ( * ) END / 92 THEN NULL WHEN ( 75 ) / 51 THEN + 30 + + 40 ELSE NULL END + - 42
----
NULL

query I rowsort
SELECT ALL + ( - 3 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT ALL - 66 * + 94 * SUM( DISTINCT - 81 ) col1
----
502524

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL - 66 * + 94 * SUM ( DISTINCT - 81 ) col1
----
502524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2307
SELECT ALL + 89 * + + 71 - - CAST( - 41 AS SIGNED )
----
6278

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL + 89 * + + 71 - - CAST ( - 41 AS INTEGER )
----
6278

query I rowsort
SELECT - 84 * NULLIF ( - 74, + - ( 39 ) + 23 )
----
6216

onlyif mysql # aggregate syntax: 
query II rowsort label-2309
SELECT DISTINCT + COUNT( * ) AS col1, COUNT( DISTINCT 63 )
----
1
1

skipif mysql # not compatible
query II rowsort label-2309
SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( DISTINCT 63 )
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2310
SELECT ALL COALESCE ( - 14, - 43, 75 ) * - 45 + CAST( MIN( ALL CAST( NULL AS SIGNED ) ) AS SIGNED ) - MAX( 74 - 76 * - ( 40 ) ) * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL COALESCE ( - 14, - 43, 75 ) * - 45 + CAST ( MIN ( ALL CAST ( NULL AS INTEGER ) ) AS INTEGER ) - MAX ( 74 - 76 * - ( 40 ) ) * - 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2311
SELECT - CASE - - 71 WHEN - 52 THEN + + CASE - 4 WHEN + 60 * 44 THEN + 27 * 18 + 85 WHEN CAST( 9 AS DECIMAL ) / - COUNT( * ) - 26 THEN NULL ELSE ( CAST( + 45 AS SIGNED ) ) END * 38 WHEN 51 THEN NULL END * - CASE COUNT( * ) WHEN 18 * + 62 THEN + 17 / 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT - CASE - - 71 WHEN - 52 THEN + + CASE - 4 WHEN + 60 * 44 THEN + 27 * 18 + 85 WHEN CAST ( 9 AS REAL ) / - COUNT ( * ) - 26 THEN NULL ELSE ( CAST ( + 45 AS INTEGER ) ) END * 38 WHEN 51 THEN NULL END * - CASE COUNT ( * ) WHEN 18 * + 62 THEN + 17 / 30 END
----
NULL

query I rowsort
SELECT + 41 AS col1
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-2313
SELECT ALL + COUNT( * ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-2313
SELECT ALL + COUNT ( * ), COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT DISTINCT + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT - COALESCE ( + - 35, + - 55, - + NULLIF ( + CASE + 28 WHEN 25 THEN 57 * 1 END, 37 ) ) * 95 AS col2
----
3325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2316
SELECT + CAST( NULL AS SIGNED ) * - + COUNT( * ) * - - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * - - 97 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2317
SELECT ALL + COALESCE ( COUNT( ALL CAST( - 94 AS SIGNED ) ), + 46 - - 53 - + 58 * - 24 DIV - 98 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL + COALESCE ( COUNT ( ALL CAST ( - 94 AS INTEGER ) ), + 46 - - 53 - + 58 * - 24 / - 98 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2318
SELECT - 0 - - 8 DIV - COUNT( * ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-2318
SELECT - 0 - - 8 / - COUNT ( * ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT MIN( ALL - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-2319
SELECT MIN ( ALL - 29 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT COALESCE ( ( + 53 ), + MIN( - - 58 ) * - + SUM( DISTINCT 19 ) + 90 * + 85 ) * + COUNT( * ) - + ( 17 ) col1
----
36

skipif mysql # not compatible
query I rowsort label-2320
SELECT COALESCE ( ( + 53 ), + MIN ( - - 58 ) * - + SUM ( DISTINCT 19 ) + 90 * + 85 ) * + COUNT ( * ) - + ( 17 ) col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2321
SELECT - 94 * CASE + 34 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN + + CAST( - 95 AS SIGNED ) THEN - COUNT( * ) WHEN + 25 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT - 94 * CASE + 34 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN + + CAST ( - 95 AS INTEGER ) THEN - COUNT ( * ) WHEN + 25 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 79
----
-79

query II rowsort
SELECT - + 66 AS col1, 97 col2
----
-66
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT ALL 99 * - - COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL 99 * - - COUNT ( * )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT + + SUM( DISTINCT - - ( - 20 ) ) * 12
----
-240

skipif mysql # not compatible
query I rowsort label-2325
SELECT + + SUM ( DISTINCT - - ( - 20 ) ) * 12
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT - MIN( + 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-2326
SELECT - MIN ( + 8 )
----
-8

query II rowsort
SELECT 84, + 72 + 59 AS col1
----
84
131

query I rowsort
SELECT ALL - 84 + - 92 + - 91 * - 9 AS col1
----
643

query I rowsort
SELECT - 44 * 47 + - 9
----
-2077

query I rowsort
SELECT + + 46 + - - 64
----
110

query I rowsort
SELECT DISTINCT 97 + 86 AS col2
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-2332
SELECT + 71 DIV - 35
----
-2

skipif mysql # not compatible
query I rowsort label-2332
SELECT + 71 / - 35
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT ALL - + 95 + - SUM( 77 ) AS col1
----
-172

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL - + 95 + - SUM ( 77 ) AS col1
----
-172

query I rowsort
SELECT - + 60 AS col0
----
-60

query I rowsort
SELECT ALL - 68 + 29
----
-39

query I rowsort
SELECT DISTINCT + ( + 39 ) AS col2
----
39

query I rowsort
SELECT 77
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT + 12 + - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-2338
SELECT + 12 + - COUNT ( * )
----
11

query I rowsort
SELECT ALL 39 AS col0
----
39

query I rowsort
SELECT - ( - - 38 ) AS col2
----
-38

query I rowsort
SELECT 83 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT ALL + 8 + MIN( ALL - - 98 ) AS col2
----
106

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL + 8 + MIN ( ALL - - 98 ) AS col2
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2343
SELECT CAST( - ( - + 64 ) AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-2343
SELECT CAST ( - ( - + 64 ) AS INTEGER )
----
64

query I rowsort
SELECT ALL + 84
----
84

query I rowsort
SELECT + 64 AS col0
----
64

query I rowsort
SELECT DISTINCT + 91
----
91

query I rowsort
SELECT + 90 + + + 38 + 83
----
211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2348
SELECT ALL - 88 * CAST( NULL AS SIGNED ) col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2348
SELECT ALL - 88 * CAST ( NULL AS INTEGER ) col0, COUNT ( * )
----
NULL
1

query I rowsort
SELECT - ( 21 ) * 51 + - ( + 23 ) AS col1
----
-1094

query I rowsort
SELECT ALL + 74 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT + 43 * COALESCE ( - ( + COUNT( * ) ), + COALESCE ( 12, 63 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-2351
SELECT + 43 * COALESCE ( - ( + COUNT ( * ) ), + COALESCE ( 12, 63 ) )
----
-43

query I rowsort
SELECT ALL + 19 AS col0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2353
SELECT COUNT( * ) DIV - ( SUM( 42 ) ) - + 51 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-2353
SELECT COUNT ( * ) / - ( SUM ( 42 ) ) - + 51 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT ALL + MAX( - 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL + MAX ( - 27 )
----
-27

query II rowsort
SELECT ( 27 ) AS col1, 95 AS col2
----
27
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT + 7 * MAX( DISTINCT - 84 )
----
-588

skipif mysql # not compatible
query I rowsort label-2356
SELECT + 7 * MAX ( DISTINCT - 84 )
----
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT 98 * - ( - ( + COUNT( * ) ) ) + + 18
----
116

skipif mysql # not compatible
query I rowsort label-2357
SELECT 98 * - ( - ( + COUNT ( * ) ) ) + + 18
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-2358
SELECT + 24 DIV + 84 * 65
----
0

skipif mysql # not compatible
query I rowsort label-2358
SELECT + 24 / + 84 * 65
----
0

query I rowsort
SELECT + 93 AS col2
----
93

query I rowsort
SELECT + COALESCE ( 42, - - ( + 61 ), - 8 ) + + + 38
----
80

query I rowsort
SELECT ALL + ( - + 15 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT - COUNT( + 35 ) + + - 71
----
-72

skipif mysql # not compatible
query I rowsort label-2362
SELECT - COUNT ( + 35 ) + + - 71
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2363
SELECT - COUNT( DISTINCT + ( - 24 ) ) DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-2363
SELECT - COUNT ( DISTINCT + ( - 24 ) ) / + 71
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2364
SELECT COUNT( * ) * + 4 + - - 14, ( + + NULLIF ( 69, + ( + 69 ) * + 52 ) ) col0
----
18
69

skipif mysql # not compatible
query II rowsort label-2364
SELECT COUNT ( * ) * + 4 + - - 14, ( + + NULLIF ( 69, + ( + 69 ) * + 52 ) ) col0
----
18
69

query I rowsort
SELECT ALL + 9 AS col0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-2366
SELECT DISTINCT + 45 DIV + 29 AS col1, 91 * + + 41
----
1
3731

skipif mysql # not compatible
query II rowsort label-2366
SELECT DISTINCT + 45 / + 29 AS col1, 91 * + + 41
----
1
3731

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT DISTINCT + NULLIF ( + 43, - 45 + + - 4 + - COALESCE ( 84, - COUNT( * ) ) ) * + 93 + - ( - 57 )
----
4056

skipif mysql # not compatible
query I rowsort label-2367
SELECT DISTINCT + NULLIF ( + 43, - 45 + + - 4 + - COALESCE ( 84, - COUNT ( * ) ) ) * + 93 + - ( - 57 )
----
4056

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT ALL + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT + + 95 * 13 + - 61 + + 32
----
1206

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2370
SELECT ALL + ( COUNT( * ) ) AS col1, CAST( NULL AS DECIMAL )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2370
SELECT ALL + ( COUNT ( * ) ) AS col1, CAST ( NULL AS REAL )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT DISTINCT 85 * - CASE + 83 WHEN + 45 * - + COUNT( * ) + - 76 THEN + - 48 + + COUNT( * ) * + COUNT( * ) WHEN ( 38 ) + + 26 THEN 29 ELSE 92 END + - 38
----
-7858

skipif mysql # not compatible
query I rowsort label-2371
SELECT DISTINCT 85 * - CASE + 83 WHEN + 45 * - + COUNT ( * ) + - 76 THEN + - 48 + + COUNT ( * ) * + COUNT ( * ) WHEN ( 38 ) + + 26 THEN 29 ELSE 92 END + - 38
----
-7858

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT - - 35 + - 61 * - + MIN( DISTINCT - 51 ) + + 27 - - + 73
----
-2976

skipif mysql # not compatible
query I rowsort label-2372
SELECT - - 35 + - 61 * - + MIN ( DISTINCT - 51 ) + + 27 - - + 73
----
-2976

query I rowsort
SELECT - 48
----
-48

query I rowsort
SELECT DISTINCT 35 * + - 63 + - 25 + 39
----
-2191

query I rowsort
SELECT 17
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2376
SELECT ALL + + 14 * - ( COUNT( * ) ) + ( 72 ) - MIN( DISTINCT 10 ) + - CASE 73 WHEN 58 THEN COUNT( * ) * 73 + ( + NULLIF ( CAST( NULL AS SIGNED ), 0 / 88 + 28 ) + 53 ) WHEN + ( 30 ) THEN + SUM( + 94 ) / 75 END * - 54 * - 41 + AVG ( DISTINCT - 3 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL + + 14 * - ( COUNT ( * ) ) + ( 72 ) - MIN ( DISTINCT 10 ) + - CASE 73 WHEN 58 THEN COUNT ( * ) * 73 + ( + NULLIF ( CAST ( NULL AS INTEGER ), 0 / 88 + 28 ) + 53 ) WHEN + ( 30 ) THEN + SUM ( + 94 ) / 75 END * - 54 * - 41 + AVG ( DISTINCT - 3 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT DISTINCT CASE WHEN NOT COUNT( * ) IN ( + 75 ) THEN ( 79 ) WHEN + 9 IS NOT NULL THEN NULL END
----
79

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT CASE WHEN NOT COUNT ( * ) IN ( + 75 ) THEN ( 79 ) WHEN + 9 IS NOT NULL THEN NULL END
----
79

query I rowsort
SELECT ALL - 93 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT - COUNT( * ) + + 15 - - 92 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-2379
SELECT - COUNT ( * ) + + 15 - - 92 AS col0
----
106

query II rowsort
SELECT DISTINCT - + 43 + - 24, 54 AS col0
----
-67
54

query I rowsort
SELECT ALL + 39 col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT - - CASE WHEN - CASE - 1 WHEN 52 / - 9 * - - 46 THEN 64 - - 33 END NOT IN ( 17 + COUNT( * ) ) THEN 12 END + SUM( + 4 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2382
SELECT - - CASE WHEN - CASE - 1 WHEN 52 / - 9 * - - 46 THEN 64 - - 33 END NOT IN ( 17 + COUNT ( * ) ) THEN 12 END + SUM ( + 4 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT DISTINCT + ( + 95 ) + COUNT( * ) col0
----
96

skipif mysql # not compatible
query I rowsort label-2383
SELECT DISTINCT + ( + 95 ) + COUNT ( * ) col0
----
96

query I rowsort
SELECT DISTINCT 77 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT ALL - 98 + COUNT( * ) * + + COUNT( * ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL - 98 + COUNT ( * ) * + + COUNT ( * ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT ALL - 39 + - SUM( 9 ) col0
----
-48

skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL - 39 + - SUM ( 9 ) col0
----
-48

query I rowsort
SELECT DISTINCT 17 * - - 25
----
425

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2388
SELECT DISTINCT - - COUNT( * ) DIV + + 18 + 78, + 69 col0
----
78
69

skipif mysql # not compatible
query II rowsort label-2388
SELECT DISTINCT - - COUNT ( * ) / + + 18 + 78, + 69 col0
----
78
69

query I rowsort
SELECT DISTINCT - 80 AS col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2390
SELECT ALL + CAST( NULL AS SIGNED ) + + 40 - - 83 * - - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL + CAST ( NULL AS INTEGER ) + + 40 - - 83 * - - 13
----
NULL

query I rowsort
SELECT ALL - 79 - + 22 AS col1
----
-101

query I rowsort
SELECT - - 55
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2393
SELECT - CAST( - + 6 AS SIGNED ) + 24 * CAST( - - CAST( ( 28 ) AS SIGNED ) AS SIGNED ) + + 69 * 23 AS col2
----
2265

skipif mysql # not compatible
query I rowsort label-2393
SELECT - CAST ( - + 6 AS INTEGER ) + 24 * CAST ( - - CAST ( ( 28 ) AS INTEGER ) AS INTEGER ) + + 69 * 23 AS col2
----
2265

query I rowsort
SELECT + 28 + + 52
----
80

query I rowsort
SELECT DISTINCT 12 AS col1
----
12

query I rowsort
SELECT ALL 61 col1
----
61

query I rowsort
SELECT - 62
----
-62

query I rowsort
SELECT ALL + ( + + 76 ) * + 37 * - 25
----
-70300

query I rowsort
SELECT ALL 15
----
15

query I rowsort
SELECT 57
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2401
SELECT 45 * + + CAST( - 18 AS SIGNED ), NULLIF ( + MIN( + 95 ), 28 * + + 19 ) AS col0
----
-810
95

skipif mysql # not compatible
query II rowsort label-2401
SELECT 45 * + + CAST ( - 18 AS INTEGER ), NULLIF ( + MIN ( + 95 ), 28 * + + 19 ) AS col0
----
-810
95

query II rowsort
SELECT DISTINCT - 81 AS col1, 25
----
-81
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2403
SELECT ALL 55 DIV 3
----
18

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL 55 / 3
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-2404
SELECT 58 * 68 * + MAX( - + 94 ) AS col0, + ( - - NULLIF ( + + 84, - 65 / + 57 - + 61 ) ) AS col0
----
-370736
84

skipif mysql # not compatible
query II rowsort label-2404
SELECT 58 * 68 * + MAX ( - + 94 ) AS col0, + ( - - NULLIF ( + + 84, - 65 / + 57 - + 61 ) ) AS col0
----
-370736
84

query I rowsort
SELECT ALL - 93
----
-93

query I rowsort
SELECT DISTINCT - 97 AS col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2407
SELECT 35 * - 54 * COALESCE ( - 76, CAST( NULL AS SIGNED ) - - + ( + COUNT( * ) ), 44 )
----
143640

skipif mysql # not compatible
query I rowsort label-2407
SELECT 35 * - 54 * COALESCE ( - 76, CAST ( NULL AS INTEGER ) - - + ( + COUNT ( * ) ), 44 )
----
143640

onlyif mysql # aggregate syntax: 
query II rowsort label-2408
SELECT 52 AS col0, COUNT( * ) AS col1
----
52
1

skipif mysql # not compatible
query II rowsort label-2408
SELECT 52 AS col0, COUNT ( * ) AS col1
----
52
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2409
SELECT + 9 DIV - + ( + - 56 ) + + 31 * 95
----
2945

skipif mysql # not compatible
query I rowsort label-2409
SELECT + 9 / - + ( + - 56 ) + + 31 * 95
----
2945

query I rowsort
SELECT ALL - 9
----
-9

query I rowsort
SELECT 57 AS col2
----
57

query II rowsort
SELECT 48 * - 34 * 91 AS col1, + 42 AS col1
----
-148512
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT COUNT( NULLIF ( + 20, - 56 ) ) * + 28 * - 8 * + + 29
----
-6496

skipif mysql # not compatible
query I rowsort label-2413
SELECT COUNT ( NULLIF ( + 20, - 56 ) ) * + 28 * - 8 * + + 29
----
-6496

onlyif mysql # aggregate syntax: 
query II rowsort label-2414
SELECT + 39 AS col1, COUNT( * ) col2
----
39
1

skipif mysql # not compatible
query II rowsort label-2414
SELECT + 39 AS col1, COUNT ( * ) col2
----
39
1

query I rowsort
SELECT ALL 12 * + - 84
----
-1008

query II rowsort
SELECT ALL - 99 AS col0, 55 + + 70 AS col1
----
-99
125

query I rowsort
SELECT + 96 col2
----
96

query I rowsort
SELECT ALL - 44 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-2419
SELECT 87 col2, COUNT( * )
----
87
1

skipif mysql # not compatible
query II rowsort label-2419
SELECT 87 col2, COUNT ( * )
----
87
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT ALL 76 * - + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL 76 * - + COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL - 68 + + COUNT( * ) col0
----
-67

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL - 68 + + COUNT ( * ) col0
----
-67

query II rowsort
SELECT 95, 27 col2
----
95
27

query I rowsort
SELECT ALL - 60 AS col1
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2424
SELECT - CAST( + + 71 AS SIGNED ) * - - 76
----
-5396

skipif mysql # not compatible
query I rowsort label-2424
SELECT - CAST ( + + 71 AS INTEGER ) * - - 76
----
-5396

query I rowsort
SELECT + 4 AS col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2426
SELECT - 60 DIV 10
----
-6

skipif mysql # not compatible
query I rowsort label-2426
SELECT - 60 / 10
----
-6

query I rowsort
SELECT DISTINCT - 42 + 13 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT ALL COUNT( * ) + - 41
----
-40

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL COUNT ( * ) + - 41
----
-40

query I rowsort
SELECT - 54
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-2430
SELECT 87 DIV - 56
----
-1

skipif mysql # not compatible
query I rowsort label-2430
SELECT 87 / - 56
----
-1

query I rowsort
SELECT - 17 - 23
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2432
SELECT ALL + MAX( ALL + 98 ) DIV 50 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL + MAX ( ALL + 98 ) / 50 AS col1
----
1

query I rowsort
SELECT - NULLIF ( + COALESCE ( - 45, 21 ), + 13 )
----
45

query I rowsort
SELECT ALL + 23 + + 60
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2435
SELECT - + CAST( + - 47 AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-2435
SELECT - + CAST ( + - 47 AS INTEGER )
----
47

query I rowsort
SELECT 67 + + - 74
----
-7

query I rowsort
SELECT 94 AS col1
----
94

query I rowsort
SELECT ALL 11
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT DISTINCT - 41 - + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT - 41 - + COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT - MAX( DISTINCT - - 47 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-2440
SELECT - MAX ( DISTINCT - - 47 ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT ALL SUM( DISTINCT + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL SUM ( DISTINCT + 22 )
----
22

query I rowsort
SELECT ALL - COALESCE ( - + 53, + 86 ) - + 53
----
0

query II rowsort
SELECT - 33 * 71 + + 70 AS col0, + 8 * 97 col2
----
-2273
776

query I rowsort
SELECT - 23 AS col1
----
-23

query I rowsort
SELECT 69 + + + 29
----
98

query I rowsort
SELECT ALL + 44
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2447
SELECT ALL - 59, - ( + CAST( 12 AS SIGNED ) ) AS col0
----
-59
-12

skipif mysql # not compatible
query II rowsort label-2447
SELECT ALL - 59, - ( + CAST ( 12 AS INTEGER ) ) AS col0
----
-59
-12

query I rowsort
SELECT - 60
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-2449
SELECT ALL + 61 DIV 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL + 61 / 74 AS col2
----
0

query I rowsort
SELECT DISTINCT 64 col0
----
64

query I rowsort
SELECT ALL 15 AS col2
----
15

query I rowsort
SELECT - 17 AS col0
----
-17

query I rowsort
SELECT 29 + + 54
----
83

query I rowsort
SELECT 38 + + 39 AS col2
----
77

query I rowsort
SELECT - 26 AS col1
----
-26

query I rowsort
SELECT 45 + + + 89 AS col0
----
134

query I rowsort
SELECT + 83 AS col2
----
83

query I rowsort
SELECT DISTINCT - 25
----
-25

query I rowsort
SELECT ALL - 28 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT ALL - COUNT( DISTINCT + 90 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL - COUNT ( DISTINCT + 90 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + 44 * + - 46 AS col2
----
-2024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2462
SELECT ALL ( + 6 ) * - - CAST( NULL AS SIGNED ) + 34 AS col0, + COUNT( * ) + + 96
----
NULL
97

skipif mysql # not compatible
query II rowsort label-2462
SELECT ALL ( + 6 ) * - - CAST ( NULL AS INTEGER ) + 34 AS col0, + COUNT ( * ) + + 96
----
NULL
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2463
SELECT ALL 98 * - + 34 + + + 34 + - COUNT( * ) + + ( - 94 ) * - 58 + + 21 * + + 38 + + 31 DIV 35 AS col1
----
2951

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL 98 * - + 34 + + + 34 + - COUNT ( * ) + + ( - 94 ) * - 58 + + 21 * + + 38 + + 31 / 35 AS col1
----
2951

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2464
SELECT MAX( ALL 98 ) DIV + + 4 - + COUNT( 31 ) + ( - 15 ) - - + MIN( - + NULLIF ( - 36, 42 ) ) + + 95 * 57 AS col2
----
5459

skipif mysql # not compatible
query I rowsort label-2464
SELECT MAX ( ALL 98 ) / + + 4 - + COUNT ( 31 ) + ( - 15 ) - - + MIN ( - + NULLIF ( - 36, 42 ) ) + + 95 * 57 AS col2
----
5459

query I rowsort
SELECT DISTINCT - 60 AS col0
----
-60

query I rowsort
SELECT + 2 AS col0
----
2

query I rowsort
SELECT 99 + + 46 AS col2
----
145

query I rowsort
SELECT + 57 AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2469
SELECT ALL NULLIF ( + COALESCE ( 80, - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) + + - 56 * + 7 ), 65 ) + + 95
----
175

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL NULLIF ( + COALESCE ( 80, - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) + + - 56 * + 7 ), 65 ) + + 95
----
175

query I rowsort
SELECT 72
----
72

query I rowsort
SELECT DISTINCT - 84
----
-84

query I rowsort
SELECT ALL - + 41
----
-41

query I rowsort
SELECT ALL - 64 * 54 AS col0
----
-3456

query I rowsort
SELECT + 15 + - ( - 98 ) AS col1
----
113

query I rowsort
SELECT ALL - 53 + 11 AS col1
----
-42

query I rowsort
SELECT DISTINCT - + 89 AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT - 21 * + COUNT( * ) + - + 59 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-2477
SELECT - 21 * + COUNT ( * ) + - + 59 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT ALL 68 + - MIN( - 25 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL 68 + - MIN ( - 25 ) AS col2
----
93

query I rowsort
SELECT + - 66
----
-66

query I rowsort
SELECT ALL - - 7 AS col0
----
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2481
SELECT ALL - 3 * ( CASE + 34 WHEN 28 THEN NULL WHEN + CASE - 79 WHEN - 12 THEN 53 / - CAST( + 96 * 8 AS DECIMAL ) WHEN + AVG ( - 19 ) THEN NULL END THEN NULL WHEN + 23 THEN - 2 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL - 3 * ( CASE + 34 WHEN 28 THEN NULL WHEN + CASE - 79 WHEN - 12 THEN 53 / - CAST ( + 96 * 8 AS REAL ) WHEN + AVG ( - 19 ) THEN NULL END THEN NULL WHEN + 23 THEN - 2 END ) AS col0
----
NULL

query I rowsort
SELECT - COALESCE ( 12, - 21 ) * - 37 + - - 51 - - 22 * 76 AS col0
----
2167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2483
SELECT - - COALESCE ( 54, + 94 - - COUNT( * ), CAST( NULL AS SIGNED ) )
----
54

skipif mysql # not compatible
query I rowsort label-2483
SELECT - - COALESCE ( 54, + 94 - - COUNT ( * ), CAST ( NULL AS INTEGER ) )
----
54

query I rowsort
SELECT 65
----
65

query I rowsort
SELECT - 78 + - 12
----
-90

query I rowsort
SELECT + + 31 * ( 50 ) AS col0
----
1550

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT - + COUNT( * ) * 67 + 26 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-2487
SELECT - + COUNT ( * ) * 67 + 26 AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2488
SELECT ALL CASE COUNT( * ) WHEN - ( + CAST( + 67 AS SIGNED ) ) THEN + 12 + + 54 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2488
SELECT ALL CASE COUNT ( * ) WHEN - ( + CAST ( + 67 AS INTEGER ) ) THEN + 12 + + 54 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT + - 57 * + COUNT( * ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-2489
SELECT + - 57 * + COUNT ( * ) AS col2
----
-57

query I rowsort
SELECT - - 81
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT ALL - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL - COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2492
SELECT + 4 * 30 + CAST( 44 AS SIGNED ) AS col1
----
164

skipif mysql # not compatible
query I rowsort label-2492
SELECT + 4 * 30 + CAST ( 44 AS INTEGER ) AS col1
----
164

query I rowsort
SELECT 70 AS col2
----
70

query I rowsort
SELECT DISTINCT 96
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT ALL - 54 * MIN( + - 90 ) * - 23 * - 1 + 51
----
111831

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL - 54 * MIN ( + - 90 ) * - 23 * - 1 + 51
----
111831

query I rowsort
SELECT ALL 59 AS col0
----
59

query I rowsort
SELECT DISTINCT 8 * 93 AS col1
----
744

query I rowsort
SELECT - 12 AS col0
----
-12

query I rowsort
SELECT + 31 * 49 AS col2
----
1519

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT - 37 + + - COUNT( * ) * - COUNT( * ) col0
----
-36

skipif mysql # not compatible
query I rowsort label-2500
SELECT - 37 + + - COUNT ( * ) * - COUNT ( * ) col0
----
-36

query I rowsort
SELECT 20 col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT ALL + 76 * COUNT( DISTINCT - 63 ) col0
----
76

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL + 76 * COUNT ( DISTINCT - 63 ) col0
----
76

query I rowsort
SELECT + 8 * 50 AS col1
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT - NULLIF ( - 39, + - COUNT( * ) / - + 52 ) + - 1 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-2504
SELECT - NULLIF ( - 39, + - COUNT ( * ) / - + 52 ) + - 1 AS col1
----
38

query I rowsort
SELECT - ( + 43 )
----
-43

query I rowsort
SELECT - 7 + + 45 AS col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2507
SELECT - 79 col2, ( - SUM( - CAST( NULL AS SIGNED ) ) )
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-2507
SELECT - 79 col2, ( - SUM ( - CAST ( NULL AS INTEGER ) ) )
----
-79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT ALL CASE - - 16 WHEN - - 80 + + 83 - + 61 THEN + + 6 - COUNT( DISTINCT + 12 ) WHEN 30 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL CASE - - 16 WHEN - - 80 + + 83 - + 61 THEN + + 6 - COUNT ( DISTINCT + 12 ) WHEN 30 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 89 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT ALL 25 * 91 + - COUNT( * )
----
2274

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL 25 * 91 + - COUNT ( * )
----
2274

query I rowsort
SELECT DISTINCT ( 41 ) * 57 + - 51
----
2286

query I rowsort
SELECT ( + 6 ) AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2513
SELECT 4 / + CAST( NULL AS DECIMAL ) + - CAST( 42 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2513
SELECT 4 / + CAST ( NULL AS REAL ) + - CAST ( 42 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT ALL 68 * + MIN( ALL + 23 ) + + 37 AS col0
----
1601

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL 68 * + MIN ( ALL + 23 ) + + 37 AS col0
----
1601

query I rowsort
SELECT ( - 96 ) AS col1
----
-96

query I rowsort
SELECT ( - - 8 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2517
SELECT + 0 DIV 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2517
SELECT + 0 / 92 AS col2
----
0

query I rowsort
SELECT - 11 * + 27 AS col1
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT ALL + COUNT( * ) * - - 77 * - - 76 + + ( CASE 80 WHEN - + 31 + COUNT( * ) THEN COALESCE ( - + 1, COUNT( * ) ) END ) - - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL + COUNT ( * ) * - - 77 * - - 76 + + ( CASE 80 WHEN - + 31 + COUNT ( * ) THEN COALESCE ( - + 1, COUNT ( * ) ) END ) - - 8
----
NULL

query I rowsort
SELECT + 58 AS col2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2521
SELECT + 55 + 22 + - ( + 79 ) + - 64 DIV + 65 * - 19 * COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-2521
SELECT + 55 + 22 + - ( + 79 ) + - 64 / + 65 * - 19 * COUNT ( * )
----
-2

query I rowsort
SELECT ALL + + 30 AS col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2523
SELECT - + ( - + 37 ) / - CAST( NULL AS SIGNED ) / + - NULLIF ( + + 61, - 37 * NULLIF ( + 56, + - 1 * - 24 * 89 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2523
SELECT - + ( - + 37 ) / - CAST ( NULL AS INTEGER ) / + - NULLIF ( + + 61, - 37 * NULLIF ( + 56, + - 1 * - 24 * 89 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT ALL + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL + - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT - 8 * - 58 AS col2
----
464

onlyif mysql # aggregate syntax: 
query II rowsort label-2526
SELECT DISTINCT + + 61 AS col0, + 79 * - 56 + + COUNT( * ) AS col0
----
61
-4423

skipif mysql # not compatible
query II rowsort label-2526
SELECT DISTINCT + + 61 AS col0, + 79 * - 56 + + COUNT ( * ) AS col0
----
61
-4423

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT - - COALESCE ( - - 12, + - 62 * - 20 ) * - 98 * - - ( - COUNT( * ) ) AS col0
----
1176

skipif mysql # not compatible
query I rowsort label-2527
SELECT - - COALESCE ( - - 12, + - 62 * - 20 ) * - 98 * - - ( - COUNT ( * ) ) AS col0
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT - MIN( DISTINCT 95 ) + + + ( + 88 ) + - 37
----
-44

skipif mysql # not compatible
query I rowsort label-2528
SELECT - MIN ( DISTINCT 95 ) + + + ( + 88 ) + - 37
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT ALL - COUNT( * ) * - 19 - + 14
----
5

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL - COUNT ( * ) * - 19 - + 14
----
5

query I rowsort
SELECT - + 35 * + 76 * + - 1
----
2660

onlyif mysql # aggregate syntax: 
query II rowsort label-2531
SELECT + MIN( ALL - ( 34 ) ), - 83 AS col2
----
-34
-83

skipif mysql # not compatible
query II rowsort label-2531
SELECT + MIN ( ALL - ( 34 ) ), - 83 AS col2
----
-34
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2532
SELECT ( + CAST( - + CASE + 87 WHEN - 30 * + 82 THEN - COUNT( * ) / + + 18 END AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2532
SELECT ( + CAST ( - + CASE + 87 WHEN - 30 * + 82 THEN - COUNT ( * ) / + + 18 END AS INTEGER ) )
----
NULL

query I rowsort
SELECT 86
----
86

query I rowsort
SELECT ALL + 48
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2535
SELECT + + 86 - 33 * 42 - + 78 + 28 - - - 27 * + 21 + + 94 + + 98 - - - COALESCE ( - COUNT( ( CAST( ( - 59 ) AS SIGNED ) ) ), COUNT( * ) + 90 DIV 7 ) * 32 * - 53
----
-3421

skipif mysql # not compatible
query I rowsort label-2535
SELECT + + 86 - 33 * 42 - + 78 + 28 - - - 27 * + 21 + + 94 + + 98 - - - COALESCE ( - COUNT ( ( CAST ( ( - 59 ) AS INTEGER ) ) ), COUNT ( * ) + 90 / 7 ) * 32 * - 53
----
-3421

query I rowsort
SELECT DISTINCT + 9 AS col0
----
9

query I rowsort
SELECT ALL - 40 AS col1
----
-40

query II rowsort
SELECT - + 83, 38 AS col2
----
-83
38

onlyif mysql # aggregate syntax: 
query II rowsort label-2539
SELECT ALL - COUNT( * ), + 23 AS col0
----
-1
23

skipif mysql # not compatible
query II rowsort label-2539
SELECT ALL - COUNT ( * ), + 23 AS col0
----
-1
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2540
SELECT ALL CAST( + 33 AS SIGNED ) * + + MIN( DISTINCT 76 ) + - 46 * + 55 + - ( + + COUNT( - - 95 ) ) - - 88 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL CAST ( + 33 AS INTEGER ) * + + MIN ( DISTINCT 76 ) + - 46 * + 55 + - ( + + COUNT ( - - 95 ) ) - - 88 AS col0
----
65

query I rowsort
SELECT ALL - 17 AS col1
----
-17

query I rowsort
SELECT DISTINCT + 98 * + - ( - - 90 ) / - + CASE 6 WHEN + + CASE 63 WHEN + + 26 THEN + 76 ELSE - 14 * - 26 END + + 47 THEN 82 / + 96 + 59 * NULLIF ( + AVG ( 28 ), + 70 ) END * 87 + 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT MIN( ALL - 64 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-2543
SELECT MIN ( ALL - 64 ) AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2544
SELECT + 96 - + + 92 * - 98 - - MAX( DISTINCT - + 21 ) * - 64 + - CAST( - 85 AS SIGNED ) + 95 AS col2
----
10636

skipif mysql # not compatible
query I rowsort label-2544
SELECT + 96 - + + 92 * - 98 - - MAX ( DISTINCT - + 21 ) * - 64 + - CAST ( - 85 AS INTEGER ) + 95 AS col2
----
10636

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2545
SELECT + 8 DIV + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-2545
SELECT + 8 / + COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT + 14 * + - CASE - + 9 WHEN - 78 / 53 * - MAX( 70 ) + 1 THEN - 95 ELSE - 64 END * + 49 AS col2
----
43904

skipif mysql # not compatible
query I rowsort label-2546
SELECT + 14 * + - CASE - + 9 WHEN - 78 / 53 * - MAX ( 70 ) + 1 THEN - 95 ELSE - 64 END * + 49 AS col2
----
43904

query II rowsort
SELECT 68 AS col1, 94
----
68
94

query II rowsort
SELECT - 68 AS col2, 48
----
-68
48

query I rowsort
SELECT 73 AS col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2550
SELECT + 60 + + ( + - 17 ) DIV - COUNT( * ) + 74 + ( - CAST( COUNT( * ) AS SIGNED ) ) * COUNT( * ) + 95
----
245

skipif mysql # not compatible
query I rowsort label-2550
SELECT + 60 + + ( + - 17 ) / - COUNT ( * ) + 74 + ( - CAST ( COUNT ( * ) AS INTEGER ) ) * COUNT ( * ) + 95
----
245

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT ALL CASE AVG ( ( - + 33 ) ) WHEN - + MIN( + 89 ) THEN + COUNT( * ) WHEN - 91 * - 36 + MAX( ALL 23 ) + 60 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL CASE AVG ( ( - + 33 ) ) WHEN - + MIN ( + 89 ) THEN + COUNT ( * ) WHEN - 91 * - 36 + MAX ( ALL 23 ) + 60 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT ALL 60 + CASE + - 4 WHEN - 2 THEN - MIN( ( - 7 ) ) + + 91 + - AVG ( DISTINCT - 75 ) + + 68 + + 64 * - 44 END * - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL 60 + CASE + - 4 WHEN - 2 THEN - MIN ( ( - 7 ) ) + + 91 + - AVG ( DISTINCT - 75 ) + + 68 + + 64 * - 44 END * - 91
----
NULL

query I rowsort
SELECT + ( - + 85 ) - - 5 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-2554
SELECT - COUNT( * ) * - 7 * + - 98 * + - 57, + 25 AS col0
----
39102
25

skipif mysql # not compatible
query II rowsort label-2554
SELECT - COUNT ( * ) * - 7 * + - 98 * + - 57, + 25 AS col0
----
39102
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2555
SELECT ALL 54 + - - MAX( ALL + 42 ) DIV ( 1 )
----
96

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL 54 + - - MAX ( ALL + 42 ) / ( 1 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT + ( + ( - + 45 ) ) + + ( + COALESCE ( + COALESCE ( + - 25, 37, + + 71 * + + 65 ), + - 51 * COUNT( * ), NULLIF ( + 95, 2 * + 30 ) * 28 ) ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-2556
SELECT + ( + ( - + 45 ) ) + + ( + COALESCE ( + COALESCE ( + - 25, 37, + + 71 * + + 65 ), + - 51 * COUNT ( * ), NULLIF ( + 95, 2 * + 30 ) * 28 ) ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT + COUNT( * ) + 72
----
73

skipif mysql # not compatible
query I rowsort label-2557
SELECT + COUNT ( * ) + 72
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2558
SELECT + 99, - CAST( + - COUNT( DISTINCT 17 ) AS SIGNED ) AS col0, - MIN( + + 93 ) AS col1
----
99
1
-93

skipif mysql # not compatible
query III rowsort label-2558
SELECT + 99, - CAST ( + - COUNT ( DISTINCT 17 ) AS INTEGER ) AS col0, - MIN ( + + 93 ) AS col1
----
99
1
-93

query I rowsort
SELECT ALL + 53 AS col1
----
53

query I rowsort
SELECT + 88 + + + 52 + + 83
----
223

query I rowsort
SELECT ALL + 27 AS col0
----
27

query I rowsort
SELECT + 26 * 42 + + 62 col2
----
1154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2563
SELECT + COUNT( * ) DIV + 79 + - ( + MAX( - 95 ) ) + + 58 AS col1
----
153

skipif mysql # not compatible
query I rowsort label-2563
SELECT + COUNT ( * ) / + 79 + - ( + MAX ( - 95 ) ) + + 58 AS col1
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-2564
SELECT ALL + COUNT( * ) AS col2, + 91 AS col2
----
1
91

skipif mysql # not compatible
query II rowsort label-2564
SELECT ALL + COUNT ( * ) AS col2, + 91 AS col2
----
1
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2565
SELECT - - 25 * AVG ( CAST( NULL AS SIGNED ) ) * - COUNT( * ) * - + 63 * + 51 * 74 * - + 26 * - - 70 + + COUNT( * ) * - NULLIF ( 73, + 36 ) * 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2565
SELECT - - 25 * AVG ( CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) * - + 63 * + 51 * 74 * - + 26 * - - 70 + + COUNT ( * ) * - NULLIF ( 73, + 36 ) * 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT DISTINCT - COUNT( * ) * 4 * - - 82
----
-328

skipif mysql # not compatible
query I rowsort label-2566
SELECT DISTINCT - COUNT ( * ) * 4 * - - 82
----
-328

onlyif mysql # aggregate syntax: 
query II rowsort label-2567
SELECT ALL + COUNT( * ) AS col0, + 69 * - + 81
----
1
-5589

skipif mysql # not compatible
query II rowsort label-2567
SELECT ALL + COUNT ( * ) AS col0, + 69 * - + 81
----
1
-5589

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2568
SELECT - - 48 DIV - - 82 + ( COUNT( * ) ) * - 27
----
-27

skipif mysql # not compatible
query I rowsort label-2568
SELECT - - 48 / - - 82 + ( COUNT ( * ) ) * - 27
----
-27

query I rowsort
SELECT ALL - ( + + 90 ) col0
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-2570
SELECT 96 + - COUNT( * ), + 28 AS col1
----
95
28

skipif mysql # not compatible
query II rowsort label-2570
SELECT 96 + - COUNT ( * ), + 28 AS col1
----
95
28

query I rowsort
SELECT 83 * + 40 AS col0
----
3320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2572
SELECT 26 * ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2572
SELECT 26 * ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - + 8 * + 40
----
-320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2574
SELECT - CAST( NULL AS SIGNED ) * - 72 + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2574
SELECT - CAST ( NULL AS INTEGER ) * - 72 + 97 AS col1
----
NULL

query I rowsort
SELECT 25 AS col2
----
25

query I rowsort
SELECT 75 + - + 35
----
40

query I rowsort
SELECT + + 19 AS col1
----
19

query II rowsort
SELECT ALL - + 52, - 49 * 28 AS col1
----
-52
-1372

query I rowsort
SELECT DISTINCT - 24 col1
----
-24

query I rowsort
SELECT - 27 * + - 36 + - 83 + - 86 + 52 - 78 - + - 8 * + 66 * 98 AS col0
----
52521

query I rowsort
SELECT ALL - 60 * - - 85 AS col2
----
-5100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2582
SELECT + CASE + - COUNT( * ) WHEN + 63 / 24 + + ( + - COALESCE ( - 8, 20 * COUNT( 5 ) / + COUNT( * ) ) ) THEN NULL WHEN + 27 + 68 THEN 57 * CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2582
SELECT + CASE + - COUNT ( * ) WHEN + 63 / 24 + + ( + - COALESCE ( - 8, 20 * COUNT ( 5 ) / + COUNT ( * ) ) ) THEN NULL WHEN + 27 + 68 THEN 57 * CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2583
SELECT ALL + ( 74 ) DIV + 16 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL + ( 74 ) / + 16 AS col2
----
4

query I rowsort
SELECT ALL - 1 col2
----
-1

query II rowsort
SELECT ALL - + 19 AS col0, + 50
----
-19
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT COUNT( * ) * + 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2586
SELECT COUNT ( * ) * + 62 AS col0
----
62

onlyif mysql # DIV for integer division: 
query II rowsort label-2587
SELECT + 48 AS col1, + 17 DIV - 83 AS col1
----
48
0

skipif mysql # not compatible
query II rowsort label-2587
SELECT + 48 AS col1, + 17 / - 83 AS col1
----
48
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2588
SELECT CASE WHEN + 19 IN ( 52, - MIN( DISTINCT 48 ) - - 85 * 20 * - 95 - COUNT( * ) * + 82 ) THEN + MIN( + 81 ) - 18 WHEN NOT COUNT( ALL - 85 ) < ( 17 * COUNT( * ) ) THEN + 55 ELSE NULL END + + COUNT( * ) * - CAST( CAST( 58 AS SIGNED ) * 93 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT CASE WHEN + 19 IN ( 52, - MIN ( DISTINCT 48 ) - - 85 * 20 * - 95 - COUNT ( * ) * + 82 ) THEN + MIN ( + 81 ) - 18 WHEN NOT COUNT ( ALL - 85 ) < ( 17 * COUNT ( * ) ) THEN + 55 ELSE NULL END + + COUNT ( * ) * - CAST ( CAST ( 58 AS INTEGER ) * 93 AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 3 + - + 70 AS col1, - 16 col1
----
-67
-16

query I rowsort
SELECT - 10
----
-10

query II rowsort
SELECT DISTINCT 14 * - 62, + 61 AS col0
----
-868
61

query I rowsort
SELECT DISTINCT 17 AS col2
----
17

query I rowsort
SELECT 59
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT DISTINCT + 85 + + COUNT( * ) * + 45
----
130

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT + 85 + + COUNT ( * ) * + 45
----
130

query I rowsort
SELECT - 77 AS col2
----
-77

query I rowsort
SELECT ( 10 ) + + - 20 AS col0
----
-10

query I rowsort
SELECT DISTINCT 54 + + 10
----
64

query I rowsort
SELECT ALL 13 * 57 * + - NULLIF ( + 87, 64 + - - 88 ) AS col1
----
-64467

query I rowsort
SELECT 99 + - 17 AS col2
----
82

query I rowsort
SELECT - 88 AS col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2601
SELECT CAST( NULL AS SIGNED ) + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2601
SELECT CAST ( NULL AS INTEGER ) + 15 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2602
SELECT ALL COUNT( * ) + + 15 AS col2, - 2 DIV - ( + COUNT( ALL + + 8 ) ) + - COUNT( * ) + 32 * ( - - COUNT( * ) ) * 85 * - + 2 AS col1
----
16
-5439

skipif mysql # not compatible
query II rowsort label-2602
SELECT ALL COUNT ( * ) + + 15 AS col2, - 2 / - ( + COUNT ( ALL + + 8 ) ) + - COUNT ( * ) + 32 * ( - - COUNT ( * ) ) * 85 * - + 2 AS col1
----
16
-5439

query I rowsort
SELECT 58 AS col0
----
58

query I rowsort
SELECT 82 * + 49 AS col0
----
4018

query I rowsort
SELECT - 45 AS col1
----
-45

query I rowsort
SELECT 24 + - 78 AS col0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2607
SELECT DISTINCT COUNT( * ) DIV + + 8 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT COUNT ( * ) / + + 8 AS col0
----
0

query I rowsort
SELECT DISTINCT 49
----
49

query I rowsort
SELECT ALL 76 - + 22 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT ALL COUNT( * ) * - 27 col0
----
-27

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL COUNT ( * ) * - 27 col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2611
SELECT ALL 47 / + AVG ( DISTINCT - + 66 ) * + 22 * + CASE - 51 WHEN - 54 THEN NULL WHEN CAST( NULL AS SIGNED ) / SUM( ALL + + 75 ) THEN 69 * + + ( + 42 ) * - 33 + 44 ELSE NULL END * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL 47 / + AVG ( DISTINCT - + 66 ) * + 22 * + CASE - 51 WHEN - 54 THEN NULL WHEN CAST ( NULL AS INTEGER ) / SUM ( ALL + + 75 ) THEN 69 * + + ( + 42 ) * - 33 + 44 ELSE NULL END * 11
----
NULL

query I rowsort
SELECT DISTINCT 5 - - 25 col2
----
30

query I rowsort
SELECT + 13
----
13

query I rowsort
SELECT ALL - 62 col1
----
-62

query I rowsort
SELECT ALL - ( 79 ) * + 80
----
-6320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2616
SELECT NULLIF ( + ( COUNT( * ) ), + CAST( NULL AS SIGNED ) ) * 70 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-2616
SELECT NULLIF ( + ( COUNT ( * ) ), + CAST ( NULL AS INTEGER ) ) * 70 AS col2
----
70

query I rowsort
SELECT + 63 AS col0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2618
SELECT MIN( DISTINCT + 28 ) DIV 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2618
SELECT MIN ( DISTINCT + 28 ) / 98 AS col2
----
0

query I rowsort
SELECT + + 67 AS col1
----
67

query I rowsort
SELECT ALL 1 * 7 * 7
----
49

query I rowsort
SELECT 41 * 31 AS col2
----
1271

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2622
SELECT + + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL - 31
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT DISTINCT - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2625
SELECT ( - 34 ) * - COUNT( * ) DIV - + 59 * + 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2625
SELECT ( - 34 ) * - COUNT ( * ) / - + 59 * + 36 AS col1
----
0

query I rowsort
SELECT 58 AS col2
----
58

query I rowsort
SELECT ALL + ( 68 ) + + 38
----
106

query I rowsort
SELECT DISTINCT - - 85
----
85

query I rowsort
SELECT ALL - 56
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2630
SELECT 0 DIV + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2630
SELECT 0 / + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2631
SELECT - 42 + - 96 DIV + 18 AS col2, SUM( ALL + 79 ) + - - SUM( + 9 ) + - + 98
----
-47
-10

skipif mysql # not compatible
query II rowsort label-2631
SELECT - 42 + - 96 / + 18 AS col2, SUM ( ALL + 79 ) + - - SUM ( + 9 ) + - + 98
----
-47
-10

query I rowsort
SELECT + - 59
----
-59

query I rowsort
SELECT + 54 AS col0
----
54

query I rowsort
SELECT ALL + - 39 + - 53 col0
----
-92

query I rowsort
SELECT + 4
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2636
SELECT 54 DIV 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2636
SELECT 54 / 64 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2637
SELECT COUNT( * ) * 7 + + 52 AS col2, - 68 * - 34
----
59
2312

skipif mysql # not compatible
query II rowsort label-2637
SELECT COUNT ( * ) * 7 + + 52 AS col2, - 68 * - 34
----
59
2312

query I rowsort
SELECT ALL - 29 AS col1
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2639
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) + + COUNT( * ) AS col2, + 35 DIV 14
----
0
2

skipif mysql # not compatible
query II rowsort label-2639
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( * ) AS col2, + 35 / 14
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT ALL MAX( - + 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL MAX ( - + 84 )
----
-84

query I rowsort
SELECT - 66 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT DISTINCT + 99 * - SUM( ALL + 78 ) AS col0
----
-7722

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT + 99 * - SUM ( ALL + 78 ) AS col0
----
-7722

query I rowsort
SELECT ALL 22 AS col0
----
22

query I rowsort
SELECT 89 * + 58
----
5162

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2645
SELECT - 77 AS col0, 32 * + COUNT( DISTINCT - - 86 ) DIV 88
----
-77
0

skipif mysql # not compatible
query II rowsort label-2645
SELECT - 77 AS col0, 32 * + COUNT ( DISTINCT - - 86 ) / 88
----
-77
0

query I rowsort
SELECT 49 AS col0
----
49

query I rowsort
SELECT 79 - - 53
----
132

query I rowsort
SELECT 30 col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2649
SELECT 92 + + NULLIF ( - CASE - + 4 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + ( + - 59 ) * - - NULLIF ( 44, + ( ( 79 ) ) ) * + ( - 28 ) * + 23 - 81 THEN 18 WHEN NULLIF ( 27, 98 - + 6 ) - + 74 THEN - 58 - ( COUNT( * ) ) END, 76 * 7 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2649
SELECT 92 + + NULLIF ( - CASE - + 4 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + ( + - 59 ) * - - NULLIF ( 44, + ( ( 79 ) ) ) * + ( - 28 ) * + 23 - 81 THEN 18 WHEN NULLIF ( 27, 98 - + 6 ) - + 74 THEN - 58 - ( COUNT ( * ) ) END, 76 * 7 ) col1
----
NULL

query I rowsort
SELECT - 43 AS col2
----
-43

query II rowsort
SELECT ALL 97 AS col2, - 15 * 85 + + 39
----
97
-1236

onlyif mysql # aggregate syntax: 
query II rowsort label-2652
SELECT - 98, COUNT( * ) AS col2
----
-98
1

skipif mysql # not compatible
query II rowsort label-2652
SELECT - 98, COUNT ( * ) AS col2
----
-98
1

query I rowsort
SELECT ALL 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2654
SELECT 14 - + CAST( NULL AS SIGNED ) + + + COUNT( * ) * - - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-2654
SELECT 14 - + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * - - 33
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 49, - - 61 * - 16 * + 40 )
----
49

query I rowsort
SELECT ALL 54 AS col0
----
54

query I rowsort
SELECT 65 AS col0
----
65

query I rowsort
SELECT ALL - 46 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT - 32 + - + NULLIF ( + COUNT( * ), - 19 * + 23 )
----
-33

skipif mysql # not compatible
query I rowsort label-2659
SELECT - 32 + - + NULLIF ( + COUNT ( * ), - 19 * + 23 )
----
-33

query I rowsort
SELECT - NULLIF ( 79, - + 50 )
----
-79

query I rowsort
SELECT - 45 * + 62
----
-2790

query I rowsort
SELECT + COALESCE ( + 57, - + 44 ) * 90
----
5130

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT + + COUNT( * ) + - 85
----
-84

skipif mysql # not compatible
query I rowsort label-2663
SELECT + + COUNT ( * ) + - 85
----
-84

query I rowsort
SELECT - ( + 8 )
----
-8

query I rowsort
SELECT + - 73 + - 91
----
-164

query I rowsort
SELECT ALL + + ( + + 14 ) AS col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2667
SELECT ALL + 4 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL + 4 / + 60
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2668
SELECT - + CAST( + NULLIF ( - - 50, + + NULLIF ( CAST( NULL AS SIGNED ), COALESCE ( - + COUNT( * ), - + 20 ) ) ) AS SIGNED ) * - + 22 - + 24 * 35 * + COUNT( * ) + + 68 AS col0
----
328

skipif mysql # not compatible
query I rowsort label-2668
SELECT - + CAST ( + NULLIF ( - - 50, + + NULLIF ( CAST ( NULL AS INTEGER ), COALESCE ( - + COUNT ( * ), - + 20 ) ) ) AS INTEGER ) * - + 22 - + 24 * 35 * + COUNT ( * ) + + 68 AS col0
----
328

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT ALL + + COUNT( + + 69 ) * + 25 + + + COUNT( 97 ) + - COUNT( ALL 1 ) + 96 * + 63 - + 97 + - - 35 + - MAX( 30 )
----
5981

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL + + COUNT ( + + 69 ) * + 25 + + + COUNT ( 97 ) + - COUNT ( ALL 1 ) + 96 * + 63 - + 97 + - - 35 + - MAX ( 30 )
----
5981

query I rowsort
SELECT + 76
----
76

query I rowsort
SELECT ALL + - ( 32 )
----
-32

query I rowsort
SELECT ALL 91 * + 23 + 86
----
2179

query I rowsort
SELECT + 18 + 37
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2674
SELECT + CASE CASE 50 WHEN - 96 THEN NULL WHEN 48 THEN - 56 - 18 + + 12 * - 9 ELSE + 99 + - + 23 END WHEN - 89 * + 44 THEN NULL WHEN 38 - 7 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN ( + SUM( ALL 12 ) ) ELSE MIN( DISTINCT 79 ) + ( 62 ) END * COALESCE ( 5 * 86, + COUNT( * ) * 15, 5 + 10 ) AS col2
----
60630

skipif mysql # not compatible
query I rowsort label-2674
SELECT + CASE CASE 50 WHEN - 96 THEN NULL WHEN 48 THEN - 56 - 18 + + 12 * - 9 ELSE + 99 + - + 23 END WHEN - 89 * + 44 THEN NULL WHEN 38 - 7 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN ( + SUM ( ALL 12 ) ) ELSE MIN ( DISTINCT 79 ) + ( 62 ) END * COALESCE ( 5 * 86, + COUNT ( * ) * 15, 5 + 10 ) AS col2
----
60630

query I rowsort
SELECT + 99
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2676
SELECT - COALESCE ( 59, + 47 + 30 * - 16 * + 66 + CAST( - 48 AS SIGNED ), + 38 )
----
-59

skipif mysql # not compatible
query I rowsort label-2676
SELECT - COALESCE ( 59, + 47 + 30 * - 16 * + 66 + CAST ( - 48 AS INTEGER ), + 38 )
----
-59

query I rowsort
SELECT + - 95 * - + ( + 77 ) + 93 AS col0
----
7408

query I rowsort
SELECT ALL 99 * ( + - 23 ) + - 15 col1
----
-2292

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT + + 97 * + 15 * + COUNT( * )
----
1455

skipif mysql # not compatible
query I rowsort label-2679
SELECT + + 97 * + 15 * + COUNT ( * )
----
1455

query I rowsort
SELECT DISTINCT + + 42
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT + ( + MAX( 81 ) )
----
81

skipif mysql # not compatible
query I rowsort label-2681
SELECT + ( + MAX ( 81 ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT ALL SUM( DISTINCT + + 9 ) * + COUNT( * ) + + + 39
----
48

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL SUM ( DISTINCT + + 9 ) * + COUNT ( * ) + + + 39
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2683
SELECT DISTINCT 41 * ( + 50 ) DIV - - COUNT( * ) + + 18 DIV - 72 + - 73 DIV - 15 AS col1
----
2054

skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT 41 * ( + 50 ) / - - COUNT ( * ) + + 18 / - 72 + - 73 / - 15 AS col1
----
2054

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2684
SELECT ALL 9 * 92 + + 83 + + 30 * SUM( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL 9 * 92 + + 83 + + 30 * SUM ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 19
----
19

query I rowsort
SELECT + 21 AS col1
----
21

query II rowsort
SELECT - 84 + - 19, + 16 AS col1
----
-103
16

query I rowsort
SELECT - 29 col1
----
-29

query I rowsort
SELECT - 30
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT - SUM( + - 2 ) + - 48 + - 18
----
-64

skipif mysql # not compatible
query I rowsort label-2690
SELECT - SUM ( + - 2 ) + - 48 + - 18
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2691
SELECT - CAST( NULL AS SIGNED ) / - - 11, 53 AS col2
----
NULL
53

skipif mysql # not compatible
query II rowsort label-2691
SELECT - CAST ( NULL AS INTEGER ) / - - 11, 53 AS col2
----
NULL
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT ALL + COUNT( DISTINCT + 54 ) * + COUNT( * ) + ( + + 63 ) * 16
----
1009

skipif mysql # not compatible
query I rowsort label-2692
SELECT ALL + COUNT ( DISTINCT + 54 ) * + COUNT ( * ) + ( + + 63 ) * 16
----
1009

onlyif mysql # aggregate syntax: 
query II rowsort label-2693
SELECT ALL - 23 - - COUNT( * ), - 79 AS col2
----
-22
-79

skipif mysql # not compatible
query II rowsort label-2693
SELECT ALL - 23 - - COUNT ( * ), - 79 AS col2
----
-22
-79

query I rowsort
SELECT 21
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT DISTINCT - COUNT( * ) * + 19 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-2695
SELECT DISTINCT - COUNT ( * ) * + 19 AS col2
----
-19

query I rowsort
SELECT - 35 + - - 47 * 3 * - ( + - 83 ) * + 2 AS col1
----
23371

query I rowsort
SELECT 37 AS col0
----
37

query I rowsort
SELECT 8 AS col1
----
8

query I rowsort
SELECT - 11 + - + 29 + - - 81 + + - 81
----
-40

query II rowsort
SELECT ALL ( - 86 ) AS col0, + 63 AS col0
----
-86
63

query I rowsort
SELECT 13 AS col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-2702
SELECT - - 94 DIV 93
----
1

skipif mysql # not compatible
query I rowsort label-2702
SELECT - - 94 / 93
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT + - CASE 19 WHEN 67 * - + 83 THEN + - 39 WHEN + COUNT( * ) THEN 2 END + - 24 / ( + + 23 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2703
SELECT + - CASE 19 WHEN 67 * - + 83 THEN + - 39 WHEN + COUNT ( * ) THEN 2 END + - 24 / ( + + 23 ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2704
SELECT CAST( - - 19 AS SIGNED ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-2704
SELECT CAST ( - - 19 AS INTEGER ) AS col1
----
19

query I rowsort
SELECT 7 AS col2
----
7

query I rowsort
SELECT DISTINCT 70
----
70

query I rowsort
SELECT - - 81 AS col1
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2708
SELECT ALL CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT MAX( - 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-2709
SELECT MAX ( - 37 ) AS col2
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2710
SELECT ALL - + COUNT( * ) DIV + 6 * + + 7 + COUNT( * ) col1, + 78 col0, + COUNT( * ) AS col0
----
1
78
1

skipif mysql # not compatible
query III rowsort label-2710
SELECT ALL - + COUNT ( * ) / + 6 * + + 7 + COUNT ( * ) col1, + 78 col0, + COUNT ( * ) AS col0
----
1
78
1

query I rowsort
SELECT + 71
----
71

query I rowsort
SELECT + 82 AS col1
----
82

query I rowsort
SELECT - - 92 * - + 3 + 69 AS col1
----
-207

query I rowsort
SELECT + - 86 * - - 26
----
-2236

query I rowsort
SELECT + 66
----
66

query I rowsort
SELECT + ( 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT 1 * - COUNT( * ) + + + COUNT( * ) - - 2
----
2

skipif mysql # not compatible
query I rowsort label-2717
SELECT 1 * - COUNT ( * ) + + + COUNT ( * ) - - 2
----
2

query I rowsort
SELECT ALL + 17
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2719
SELECT DISTINCT - 98 / - COUNT( * ) * - AVG ( DISTINCT - 68 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT - 98 / - COUNT ( * ) * - AVG ( DISTINCT - 68 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2720
SELECT + - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT - 6
----
-6

query I rowsort
SELECT DISTINCT + + 70 AS col2
----
70

query I rowsort
SELECT + 31 * + 74
----
2294

query II rowsort
SELECT ALL + 22 AS col0, - 98 AS col2
----
22
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT + CASE + + 14 WHEN + COUNT( * ) * 44 + + 48 + - - ( 19 ) + 92 + - - COALESCE ( + + 43, + COUNT( * ) ) - + 15 + 66 THEN ( - + 98 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2725
SELECT + CASE + + 14 WHEN + COUNT ( * ) * 44 + + 48 + - - ( 19 ) + 92 + - - COALESCE ( + + 43, + COUNT ( * ) ) - + 15 + 66 THEN ( - + 98 ) END AS col2
----
NULL

query I rowsort
SELECT + ( + 41 ) + + 27
----
68

query I rowsort
SELECT DISTINCT + 34
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-2728
SELECT + 96 DIV 43 * - 91 * 84 * 32
----
-489216

skipif mysql # not compatible
query I rowsort label-2728
SELECT + 96 / 43 * - 91 * 84 * 32
----
-489216

query I rowsort
SELECT + 1 * + ( 39 ) * - + 0 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2730
SELECT + ( - 36 ) + - COALESCE ( - 94, - 52 - COALESCE ( + 67, - 68, 44 + - - 36 ), + 35 + + + 35 * - + ( + + CAST( NULL AS SIGNED ) ) ) + 22
----
80

skipif mysql # not compatible
query I rowsort label-2730
SELECT + ( - 36 ) + - COALESCE ( - 94, - 52 - COALESCE ( + 67, - 68, 44 + - - 36 ), + 35 + + + 35 * - + ( + + CAST ( NULL AS INTEGER ) ) ) + 22
----
80

query I rowsort
SELECT - 78 * 59 * + ( + 43 ) AS col1
----
-197886

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT DISTINCT 95 * + CASE - + 42 WHEN 80 * 43 + + 63 + + COUNT( * ) - - 56 THEN + 5 * + COUNT( * ) ELSE NULL END / - CASE COUNT( * ) WHEN + - 4 THEN + + 85 WHEN + 68 * 13 + - 17 THEN 57 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT 95 * + CASE - + 42 WHEN 80 * 43 + + 63 + + COUNT ( * ) - - 56 THEN + 5 * + COUNT ( * ) ELSE NULL END / - CASE COUNT ( * ) WHEN + - 4 THEN + + 85 WHEN + 68 * 13 + - 17 THEN 57 END AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2733
SELECT + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - - 94, + 23 ) AS col2
----
94

query I rowsort
SELECT DISTINCT 34
----
34

query I rowsort
SELECT ALL 38 AS col1
----
38

query I rowsort
SELECT DISTINCT 90 AS col0
----
90

query I rowsort
SELECT DISTINCT 92 col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2739
SELECT CAST( - 98 AS SIGNED ) * + 55 + + 6 - + 70 - - - COUNT( * ) * + 94 AS col0
----
-5548

skipif mysql # not compatible
query I rowsort label-2739
SELECT CAST ( - 98 AS INTEGER ) * + 55 + + 6 - + 70 - - - COUNT ( * ) * + 94 AS col0
----
-5548

query I rowsort
SELECT 33 * + 56
----
1848

query I rowsort
SELECT ALL 98 AS col0
----
98

query I rowsort
SELECT ALL 49 col2
----
49

query II rowsort
SELECT 85 AS col1, NULLIF ( + 94, + NULLIF ( + 20, - 45 ) + + 9 ) * - 54 AS col2
----
85
-5076

query I rowsort
SELECT COALESCE ( - 79, - 6 * - 68 * - + 36 ) - 86
----
-165

query I rowsort
SELECT 93
----
93

query I rowsort
SELECT + 31 AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2747
SELECT ALL - 37 + + - ( + + CASE 18 WHEN SUM( ALL 21 ) / + + 12 + - 36 THEN - 98 * + 91 + + COUNT( * ) * - + 77 - + 76 WHEN 45 THEN NULL WHEN + 96 THEN NULL END ) + COALESCE ( + 74, + NULLIF ( 29, CAST( - MIN( DISTINCT 71 ) AS DECIMAL ) ) + - CASE - COUNT( * ) WHEN + 96 * - COALESCE ( - 58 / + 77, 58 ) THEN - MIN( DISTINCT 39 ) WHEN - 4 THEN 81 / - SUM( ( 61 ) ) WHEN 43 THEN NULL END / COUNT( * ), - 76 / - 31 ) * 66 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL - 37 + + - ( + + CASE 18 WHEN SUM ( ALL 21 ) / + + 12 + - 36 THEN - 98 * + 91 + + COUNT ( * ) * - + 77 - + 76 WHEN 45 THEN NULL WHEN + 96 THEN NULL END ) + COALESCE ( + 74, + NULLIF ( 29, CAST ( - MIN ( DISTINCT 71 ) AS REAL ) ) + - CASE - COUNT ( * ) WHEN + 96 * - COALESCE ( - 58 / + 77, 58 ) THEN - MIN ( DISTINCT 39 ) WHEN - 4 THEN 81 / - SUM ( ( 61 ) ) WHEN 43 THEN NULL END / COUNT ( * ), - 76 / - 31 ) * 66 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT ALL ( - 73 ) + - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL ( - 73 ) + - COUNT ( * )
----
-74

query I rowsort
SELECT - - 96 AS col2
----
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2750
SELECT ALL + CAST( NULL AS DECIMAL ) + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL + CAST ( NULL AS REAL ) + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT DISTINCT + MAX( + + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-2751
SELECT DISTINCT + MAX ( + + 63 )
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-2752
SELECT ( + COUNT( * ) ) - + + COUNT( * ) AS col2, - 75 * 70
----
0
-5250

skipif mysql # not compatible
query II rowsort label-2752
SELECT ( + COUNT ( * ) ) - + + COUNT ( * ) AS col2, - 75 * 70
----
0
-5250

query I rowsort
SELECT - COALESCE ( - 26, - 73 * - - 68, - ( + 85 ) )
----
26

query I rowsort
SELECT ALL + 1 * - 36 * + 68 AS col0
----
-2448

query I rowsort
SELECT 75 + + 90 AS col2
----
165

query I rowsort
SELECT + 86 - 19 AS col2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2757
SELECT + 30 + - - NULLIF ( + 81, + CAST( NULL AS SIGNED ) * + COALESCE ( - 20, + 13, - 6 / + 91 + 70 ) + NULLIF ( - 11, + + CASE 56 WHEN - - 46 THEN 90 END ) ) AS col2
----
111

skipif mysql # not compatible
query I rowsort label-2757
SELECT + 30 + - - NULLIF ( + 81, + CAST ( NULL AS INTEGER ) * + COALESCE ( - 20, + 13, - 6 / + 91 + 70 ) + NULLIF ( - 11, + + CASE 56 WHEN - - 46 THEN 90 END ) ) AS col2
----
111

query I rowsort
SELECT ALL - 10 + + - 46
----
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-2759
SELECT 52 * 83 DIV - - 48 AS col2, 54
----
89
54

skipif mysql # not compatible
query II rowsort label-2759
SELECT 52 * 83 / - - 48 AS col2, 54
----
89
54

query I rowsort
SELECT ( - 51 ) AS col0
----
-51

query I rowsort
SELECT - ( - 41 ) + 53 * - 42 + + - 24 AS col0
----
-2209

query I rowsort
SELECT - - 42
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT DISTINCT - COUNT( - + NULLIF ( + + 69, + 58 + 82 + 12 * + CASE 26 WHEN + 0 / - 13 THEN NULL ELSE ( 23 ) END ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2763
SELECT DISTINCT - COUNT ( - + NULLIF ( + + 69, + 58 + 82 + 12 * + CASE 26 WHEN + 0 / - 13 THEN NULL ELSE ( 23 ) END ) ) AS col1
----
-1

query I rowsort
SELECT ALL - - 96 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT 44 + - 83 * + SUM( 35 ) AS col2
----
-2861

skipif mysql # not compatible
query I rowsort label-2765
SELECT 44 + - 83 * + SUM ( 35 ) AS col2
----
-2861

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL - COUNT( * ) - - - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL - COUNT ( * ) - - - COUNT ( * )
----
-2

query I rowsort
SELECT DISTINCT - 65 AS col0
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-2768
SELECT + - 79 DIV + + 26 + - 15 col2
----
-18

skipif mysql # not compatible
query I rowsort label-2768
SELECT + - 79 / + + 26 + - 15 col2
----
-18

query I rowsort
SELECT ALL - 54
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT - SUM( + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-2770
SELECT - SUM ( + 18 )
----
-18

query I rowsort
SELECT + 9 AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2772
SELECT - CASE + ( + 96 ) WHEN - 6 THEN NULL WHEN + + 38 THEN + 70 + 59 * 53 + - 10 ELSE - CAST( - 2 AS SIGNED ) END * - - 93 + - + 7 AS col0
----
-193

skipif mysql # not compatible
query I rowsort label-2772
SELECT - CASE + ( + 96 ) WHEN - 6 THEN NULL WHEN + + 38 THEN + 70 + 59 * 53 + - 10 ELSE - CAST ( - 2 AS INTEGER ) END * - - 93 + - + 7 AS col0
----
-193

query I rowsort
SELECT 65 AS col1
----
65

query I rowsort
SELECT + 17 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT 18 * + COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-2775
SELECT 18 * + COUNT ( * ) AS col0
----
18

query I rowsort
SELECT ALL - 54 AS col1
----
-54

query I rowsort
SELECT 89 * - 7
----
-623

query I rowsort
SELECT DISTINCT - 77 * + ( + + 34 )
----
-2618

query II rowsort
SELECT ALL - ( + - 78 ) AS col1, - 90 AS col2
----
78
-90

query I rowsort
SELECT 52 col1
----
52

query I rowsort
SELECT 38 AS col1
----
38

query I rowsort
SELECT DISTINCT - 59
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT COUNT( * ) / NULLIF ( + 1, - - COUNT( * ) ) * 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2783
SELECT COUNT ( * ) / NULLIF ( + 1, - - COUNT ( * ) ) * 57 AS col2
----
NULL

query I rowsort
SELECT 84 AS col2
----
84

query I rowsort
SELECT ALL 93 AS col0
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-2786
SELECT DISTINCT COUNT( * ) * - 89 col2, 14 AS col0
----
-89
14

skipif mysql # not compatible
query II rowsort label-2786
SELECT DISTINCT COUNT ( * ) * - 89 col2, 14 AS col0
----
-89
14

query II rowsort
SELECT ( - + 89 ) + - CASE + 48 WHEN - 64 THEN 16 END AS col2, - 21 col2
----
NULL
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-2788
SELECT - 48, + 75 * + COALESCE ( - - 20, - 69, + + 7 - 81 DIV - 93 ) AS col0
----
-48
1500

skipif mysql # not compatible
query II rowsort label-2788
SELECT - 48, + 75 * + COALESCE ( - - 20, - 69, + + 7 - 81 / - 93 ) AS col0
----
-48
1500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2789
SELECT - COUNT( * ) AS col0, - 41 + + ( + SUM( ALL - ( + 66 ) ) ) - - CASE - CAST( - - 43 AS SIGNED ) WHEN COUNT( * ) * CAST( + 53 AS SIGNED ) * + 0 + 97 + - 81 / + CAST( NULL AS SIGNED ) THEN NULL WHEN + 25 THEN + 56 * 18 END * + 70
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2789
SELECT - COUNT ( * ) AS col0, - 41 + + ( + SUM ( ALL - ( + 66 ) ) ) - - CASE - CAST ( - - 43 AS INTEGER ) WHEN COUNT ( * ) * CAST ( + 53 AS INTEGER ) * + 0 + 97 + - 81 / + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 25 THEN + 56 * 18 END * + 70
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT + COUNT( * ) * + CASE COUNT( * ) WHEN - + 10 THEN - 91 END * - COALESCE ( + 74, + 8 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT + COUNT ( * ) * + CASE COUNT ( * ) WHEN - + 10 THEN - 91 END * - COALESCE ( + 74, + 8 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT ALL + MIN( - + 62 ) + - - 40 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL + MIN ( - + 62 ) + - - 40 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT ALL - 5 + - + COUNT( * ) * - 97 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL - 5 + - + COUNT ( * ) * - 97 AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2793
SELECT 41 + 31 * + - CASE + 7 WHEN - SUM( DISTINCT - 70 ) + ( - CAST( - + 54 AS DECIMAL ) ) - - ( + + 51 ) THEN + 7 + + CAST( NULL AS SIGNED ) + COUNT( * ) ELSE NULL END AS col2, + 11 AS col1
----
NULL
11

skipif mysql # not compatible
query II rowsort label-2793
SELECT 41 + 31 * + - CASE + 7 WHEN - SUM ( DISTINCT - 70 ) + ( - CAST ( - + 54 AS REAL ) ) - - ( + + 51 ) THEN + 7 + + CAST ( NULL AS INTEGER ) + COUNT ( * ) ELSE NULL END AS col2, + 11 AS col1
----
NULL
11

query I rowsort
SELECT - CASE 52 WHEN + 27 THEN NULL WHEN 86 + - + 42 + - 24 THEN - 23 + AVG ( - + 63 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2795
SELECT - CAST( 77 AS SIGNED ) + 17 + - - 38 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-2795
SELECT - CAST ( 77 AS INTEGER ) + 17 + - - 38 AS col2
----
-22

query I rowsort
SELECT 5
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2797
SELECT ALL + CAST( 83 AS SIGNED ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL + CAST ( 83 AS INTEGER ) AS col2
----
83

query I rowsort
SELECT - 37 * + + ( - 75 )
----
2775

query I rowsort
SELECT - + 26
----
-26

query I rowsort
SELECT ALL - 69 col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT - + COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2801
SELECT - + COUNT ( * ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2802
SELECT ALL + 79 - - CASE - - 68 WHEN CAST( 88 AS SIGNED ) THEN + - 77 * + - 85 WHEN COUNT( * ) THEN + + 27 ELSE NULL END * + + 28 / + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL + 79 - - CASE - - 68 WHEN CAST ( 88 AS INTEGER ) THEN + - 77 * + - 85 WHEN COUNT ( * ) THEN + + 27 ELSE NULL END * + + 28 / + 92
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2803
SELECT DISTINCT ( + 25 ) DIV - COALESCE ( - MAX( + 47 ), - COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2803
SELECT DISTINCT ( + 25 ) / - COALESCE ( - MAX ( + 47 ), - COUNT ( * ) ) AS col2
----
0

query I rowsort
SELECT - 17 AS col2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2805
SELECT ALL - 98 - + - 79 DIV - + 86 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL - 98 - + - 79 / - + 86 AS col1
----
-98

query I rowsort
SELECT DISTINCT - 10 AS col2
----
-10

query I rowsort
SELECT 69 * - ( - CASE 85 WHEN + NULLIF ( + 18, - - 20 * - 95 ) THEN + - NULLIF ( 75, 99 ) ELSE - - 11 END ) AS col1
----
759

query III rowsort
SELECT + 91 AS col0, - 18, - 62 AS col1
----
91
-18
-62

query I rowsort
SELECT + - 28
----
-28

query I rowsort
SELECT 73 * + + ( + 34 ) AS col0
----
2482

query I rowsort
SELECT + 7
----
7

query I rowsort
SELECT DISTINCT - 44
----
-44

query I rowsort
SELECT ALL - 57
----
-57

query I rowsort
SELECT + 15 AS col1
----
15

query I rowsort
SELECT ALL - 28 col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT DISTINCT - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT - COUNT ( * )
----
-1

query I rowsort
SELECT ALL + ( 87 ) AS col2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2818
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT ALL 78 * MAX( - + 62 ) + ( - 21 )
----
-4857

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL 78 * MAX ( - + 62 ) + ( - 21 )
----
-4857

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2820
SELECT - 30 * CAST( NULL AS SIGNED ), + 71 AS col0
----
NULL
71

skipif mysql # not compatible
query II rowsort label-2820
SELECT - 30 * CAST ( NULL AS INTEGER ), + 71 AS col0
----
NULL
71

query I rowsort
SELECT + 83 AS col1
----
83

query I rowsort
SELECT + 71 * - 45 * - + 11 AS col1
----
35145

query I rowsort
SELECT ALL + 4 * - 22 * + - 36 + + 48 col2
----
3216

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT COUNT( DISTINCT 57 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2824
SELECT COUNT ( DISTINCT 57 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT DISTINCT COUNT( * ) + + 51 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT COUNT ( * ) + + 51 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT 65 * + - 52 + + + 93 + - COUNT( * ) + 66 * - + COUNT( * ) * 55 - - 24 AS col2
----
-6894

skipif mysql # not compatible
query I rowsort label-2826
SELECT 65 * + - 52 + + + 93 + - COUNT ( * ) + 66 * - + COUNT ( * ) * 55 - - 24 AS col2
----
-6894

query I rowsort
SELECT ALL - 29 * + - 52
----
1508

query I rowsort
SELECT ALL 3
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2829
SELECT DISTINCT + COUNT( ALL + 34 ) DIV MIN( ALL 85 ) - + 44, 38 - - 15 col1
----
-44
53

skipif mysql # not compatible
query II rowsort label-2829
SELECT DISTINCT + COUNT ( ALL + 34 ) / MIN ( ALL 85 ) - + 44, 38 - - 15 col1
----
-44
53

onlyif mysql # aggregate syntax: 
query II rowsort label-2830
SELECT DISTINCT + - 65 + 34 AS col2, COUNT( * ) + ( + SUM( + 39 ) ) AS col0
----
-31
40

skipif mysql # not compatible
query II rowsort label-2830
SELECT DISTINCT + - 65 + 34 AS col2, COUNT ( * ) + ( + SUM ( + 39 ) ) AS col0
----
-31
40

query I rowsort
SELECT - 39
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2832
SELECT + 55 DIV MAX( 61 )
----
0

skipif mysql # not compatible
query I rowsort label-2832
SELECT + 55 / MAX ( 61 )
----
0

query I rowsort
SELECT ALL + 43 + - 76
----
-33

query I rowsort
SELECT - + 2 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2835
SELECT - - 63 - 7 + + 46 + - - 67 + 1 + - 37 * + 31 + - 28 * + 17 * 34 AS col2, COUNT( - 34 )
----
-17161
1

skipif mysql # not compatible
query II rowsort label-2835
SELECT - - 63 - 7 + + 46 + - - 67 + 1 + - 37 * + 31 + - 28 * + 17 * 34 AS col2, COUNT ( - 34 )
----
-17161
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2836
SELECT - 12 * + 29 * + ( + 42 ) * - + MIN( + COALESCE ( 84, 33, 17 + + CAST( NULL AS SIGNED ) + - 75 + + - 25 * + ( - 90 ), - 78 ) ) - 62 AS col1
----
1227682

skipif mysql # not compatible
query I rowsort label-2836
SELECT - 12 * + 29 * + ( + 42 ) * - + MIN ( + COALESCE ( 84, 33, 17 + + CAST ( NULL AS INTEGER ) + - 75 + + - 25 * + ( - 90 ), - 78 ) ) - 62 AS col1
----
1227682

query I rowsort
SELECT - + 48 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT + + 88 - MIN( - 61 ) + 87
----
236

skipif mysql # not compatible
query I rowsort label-2838
SELECT + + 88 - MIN ( - 61 ) + 87
----
236

query I rowsort
SELECT ALL - 94 AS col2
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-2840
SELECT + - COUNT( * ) + - 52 AS col0, - ( + COUNT( * ) ) AS col2
----
-53
-1

skipif mysql # not compatible
query II rowsort label-2840
SELECT + - COUNT ( * ) + - 52 AS col0, - ( + COUNT ( * ) ) AS col2
----
-53
-1

query I rowsort
SELECT ALL 85 AS col1
----
85

query I rowsort
SELECT - + 58 AS col2
----
-58

query I rowsort
SELECT DISTINCT - 45 AS col1
----
-45

query I rowsort
SELECT + 71 - - - COALESCE ( + - 43, 99 ) AS col2
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2845
SELECT + 15 + - CAST( 51 AS SIGNED ) * + 9 - 35 - 6 - + + 89 - + + 96 * - 48 AS col2
----
4034

skipif mysql # not compatible
query I rowsort label-2845
SELECT + 15 + - CAST ( 51 AS INTEGER ) * + 9 - 35 - 6 - + + 89 - + + 96 * - 48 AS col2
----
4034

query I rowsort
SELECT ALL 19 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT - NULLIF ( COUNT( ALL + 14 ), - NULLIF ( + 15, 41 ) * 50 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2847
SELECT - NULLIF ( COUNT ( ALL + 14 ), - NULLIF ( + 15, 41 ) * 50 ) col2
----
-1

query I rowsort
SELECT + 28 * 76 col2
----
2128

query I rowsort
SELECT - + 97 col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT + + MIN( - 14 ) + + COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-2850
SELECT + + MIN ( - 14 ) + + COUNT ( * ) AS col2
----
-13

query I rowsort
SELECT - + 81 * - 19 + - - 24 + - 63 * + NULLIF ( 9, + + 70 * - - 74 )
----
996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2852
SELECT DISTINCT COALESCE ( + CAST( + 14 AS SIGNED ), + + 16 ) col0
----
14

skipif mysql # not compatible
query I rowsort label-2852
SELECT DISTINCT COALESCE ( + CAST ( + 14 AS INTEGER ), + + 16 ) col0
----
14

query I rowsort
SELECT ALL + 86 AS col2
----
86

query I rowsort
SELECT ALL 56
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-2855
SELECT ALL + COUNT( * ) * - ( + 53 ), MAX( ALL + - 82 ) + - 44 AS col0
----
-53
-126

skipif mysql # not compatible
query II rowsort label-2855
SELECT ALL + COUNT ( * ) * - ( + 53 ), MAX ( ALL + - 82 ) + - 44 AS col0
----
-53
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-2856
SELECT + ( - - 50 ) DIV 2
----
25

skipif mysql # not compatible
query I rowsort label-2856
SELECT + ( - - 50 ) / 2
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2857
SELECT ALL MIN( ALL 39 ) DIV 4 + + NULLIF ( - 62, - CASE - 38 WHEN 29 THEN COUNT( * ) END ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL MIN ( ALL 39 ) / 4 + + NULLIF ( - 62, - CASE - 38 WHEN 29 THEN COUNT ( * ) END ) AS col2
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2858
SELECT DISTINCT + CASE COUNT( * ) WHEN + 80 * + 31 * + - NULLIF ( 97, CAST( NULL AS SIGNED ) ) + - 90 + NULLIF ( + 91, + 76 * + 79 ) * 27 + - - 91 + + 71 / + COUNT( * ) - COUNT( DISTINCT 96 ) THEN + COUNT( 23 ) * - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT + CASE COUNT ( * ) WHEN + 80 * + 31 * + - NULLIF ( 97, CAST ( NULL AS INTEGER ) ) + - 90 + NULLIF ( + 91, + 76 * + 79 ) * 27 + - - 91 + + 71 / + COUNT ( * ) - COUNT ( DISTINCT 96 ) THEN + COUNT ( 23 ) * - COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2859
SELECT + ( 20 ) DIV - 93 * + 61, 52 + + 85 AS col1
----
0
137

skipif mysql # not compatible
query II rowsort label-2859
SELECT + ( 20 ) / - 93 * + 61, 52 + + 85 AS col1
----
0
137

query I rowsort
SELECT + ( - - 12 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT - 95 + + 59 - + COUNT( * ) * - NULLIF ( + 73, - 36 ) * + 15
----
1059

skipif mysql # not compatible
query I rowsort label-2861
SELECT - 95 + + 59 - + COUNT ( * ) * - NULLIF ( + 73, - 36 ) * + 15
----
1059

query I rowsort
SELECT ALL + 63
----
63

query I rowsort
SELECT ( + 91 ) col1
----
91

query I rowsort
SELECT - 12 * + + 21 col1
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT - 42 * NULLIF ( - + 82, COUNT( * ) * + + 11 ) + + + 97 * + 76 + + 91
----
10907

skipif mysql # not compatible
query I rowsort label-2865
SELECT - 42 * NULLIF ( - + 82, COUNT ( * ) * + + 11 ) + + + 97 * + 76 + + 91
----
10907

query I rowsort
SELECT ( - - 50 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2867
SELECT ALL + 77 * - 83 + MAX( ( - + 62 ) ) * SUM( ALL - 10 ) * - - 27 + + + 36 * - + 31 - - + COUNT( * ) + - 87 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL + 77 * - 83 + MAX ( ( - + 62 ) ) * SUM ( ALL - 10 ) * - - 27 + + + 36 * - + 31 - - + COUNT ( * ) + - 87 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ( + 62 )
----
62

onlyif mysql # DIV for integer division: 
query II rowsort label-2869
SELECT ALL + 53 col2, 11 DIV - 66 AS col1
----
53
0

skipif mysql # not compatible
query II rowsort label-2869
SELECT ALL + 53 col2, 11 / - 66 AS col1
----
53
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT DISTINCT + MAX( + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-2870
SELECT DISTINCT + MAX ( + 0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2871
SELECT ALL + CAST( - 99 AS SIGNED ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL + CAST ( - 99 AS INTEGER ) AS col2
----
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2872
SELECT COALESCE ( 56, - COUNT( * ), + 53 * - 62 * CASE + 23 WHEN - 65 * - MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) THEN + 2 WHEN 74 - - + 5 * - NULLIF ( - 72, - ( + + ( + CASE ( 29 ) WHEN + 22 - 4 * - 4 THEN - 88 - 0 * 52 WHEN + 13 / - 87 + + 86 THEN NULL ELSE - 87 END ) ) * - 6 ) + 64 THEN NULL ELSE 23 END + 89 * - COUNT( * ) )
----
56

skipif mysql # not compatible
query I rowsort label-2872
SELECT COALESCE ( 56, - COUNT ( * ), + 53 * - 62 * CASE + 23 WHEN - 65 * - MAX ( DISTINCT + CAST ( NULL AS REAL ) ) THEN + 2 WHEN 74 - - + 5 * - NULLIF ( - 72, - ( + + ( + CASE ( 29 ) WHEN + 22 - 4 * - 4 THEN - 88 - 0 * 52 WHEN + 13 / - 87 + + 86 THEN NULL ELSE - 87 END ) ) * - 6 ) + 64 THEN NULL ELSE 23 END + 89 * - COUNT ( * ) )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT ALL - COUNT( * ) * + + 35 + ( + 41 ) * 64 + 83 * + 61 * - 96
----
-483459

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL - COUNT ( * ) * + + 35 + ( + 41 ) * 64 + 83 * + 61 * - 96
----
-483459

query I rowsort
SELECT + 47
----
47

query I rowsort
SELECT DISTINCT + 67 * 81 * - 33 + + ( + ( 92 ) ) col2
----
-178999

query II rowsort
SELECT 53 col2, + 62 + - - 75 - 1
----
53
136

query I rowsort
SELECT - 44 * - 84 AS col2
----
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT ALL + 14 * 97 + - MAX( 84 ) AS col2
----
1274

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL + 14 * 97 + - MAX ( 84 ) AS col2
----
1274

query I rowsort
SELECT ( 20 )
----
20

query I rowsort
SELECT + 56 AS col2
----
56

query I rowsort
SELECT - + ( + 9 ) AS col2
----
-9

query II rowsort
SELECT + NULLIF ( 66, 49 ), + 48 + 85 AS col1
----
66
133

query I rowsort
SELECT ALL - 60
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2884
SELECT - 5 + - 20 + COALESCE ( - MIN( DISTINCT - CAST( NULL AS SIGNED ) ), + 16 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-2884
SELECT - 5 + - 20 + COALESCE ( - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ), + 16 ) AS col0
----
-9

query I rowsort
SELECT - - 59 * + 15 - 16 * - 57 col2
----
1797

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2886
SELECT ALL + + NULLIF ( - - 70, - 35 + - 8 ) * 97 * - - 69 * + COUNT( * ) * - + 44 DIV COUNT( * ) * - COUNT( * ) AS col0
----
20614440

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL + + NULLIF ( - - 70, - 35 + - 8 ) * 97 * - - 69 * + COUNT ( * ) * - + 44 / COUNT ( * ) * - COUNT ( * ) AS col0
----
20614440

query I rowsort
SELECT DISTINCT 73 col1
----
73

query II rowsort
SELECT ALL 18 AS col0, 13 - - 61 AS col1
----
18
74

query I rowsort
SELECT ALL 41
----
41

query I rowsort
SELECT DISTINCT ( 96 ) col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT - COUNT( * ) * - - COUNT( DISTINCT - - 46 ) + - 56 - - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-2891
SELECT - COUNT ( * ) * - - COUNT ( DISTINCT - - 46 ) + - 56 - - COUNT ( * )
----
-56

query I rowsort
SELECT ALL 85 * - 42
----
-3570

onlyif mysql # aggregate syntax: 
query II rowsort label-2893
SELECT - - 88 AS col2, - COUNT( * )
----
88
-1

skipif mysql # not compatible
query II rowsort label-2893
SELECT - - 88 AS col2, - COUNT ( * )
----
88
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT - SUM( ALL - 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2894
SELECT - SUM ( ALL - 63 ) AS col2
----
63

query I rowsort
SELECT + + 1 + 92 + + + 61 + + + 47 AS col1
----
201

onlyif mysql # DIV for integer division: 
query I rowsort label-2896
SELECT ALL + + 46 DIV 44
----
1

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL + + 46 / 44
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT - - 32 * COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-2897
SELECT - - 32 * COUNT ( * ) AS col2
----
32

query I rowsort
SELECT + - NULLIF ( + + 99, - + 16 ) + + - 43 + + + 70 AS col0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2899
SELECT - + 57 * + + CASE - 63 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - ( + ( - - 85 ) ) THEN NULL WHEN - - COALESCE ( - COALESCE ( - - COUNT( * ), - 59 + 60 ), + 0 + - - 84 * - 86 ) + + COUNT( * ) THEN NULL ELSE - - 31 END
----
-1767

skipif mysql # not compatible
query I rowsort label-2899
SELECT - + 57 * + + CASE - 63 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - ( + ( - - 85 ) ) THEN NULL WHEN - - COALESCE ( - COALESCE ( - - COUNT ( * ), - 59 + 60 ), + 0 + - - 84 * - 86 ) + + COUNT ( * ) THEN NULL ELSE - - 31 END
----
-1767

query II rowsort
SELECT 77 AS col1, ( - 79 )
----
77
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT ALL + COUNT( * ) * 55 * - 11
----
-605

skipif mysql # not compatible
query I rowsort label-2901
SELECT ALL + COUNT ( * ) * 55 * - 11
----
-605

query I rowsort
SELECT - - 99
----
99

query I rowsort
SELECT ALL + 42
----
42

query I rowsort
SELECT ALL - 77 * + ( + 58 )
----
-4466

query I rowsort
SELECT DISTINCT + 19 + + 97 * - 12
----
-1145

query I rowsort
SELECT ALL 4 col0
----
4

query I rowsort
SELECT ALL 55 AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2908
SELECT COUNT( * ) * 42 DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-2908
SELECT COUNT ( * ) * 42 / + 57
----
0

query II rowsort
SELECT ALL + 64 + 93 AS col0, + 83
----
157
83

query I rowsort
SELECT DISTINCT 9
----
9

query I rowsort
SELECT ALL 13 + - + 1 AS col1
----
12

query I rowsort
SELECT 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT COUNT( - + 41 ) * 43 * NULLIF ( + + COUNT( * ), + + COUNT( + 60 ) * + - 17 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-2913
SELECT COUNT ( - + 41 ) * 43 * NULLIF ( + + COUNT ( * ), + + COUNT ( + 60 ) * + - 17 ) AS col1
----
43

query I rowsort
SELECT + 70 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT - 1 * - 0 + - - 84 + - 50 - - SUM( + 54 ) * - 35 + - ( - 47 )
----
-1809

skipif mysql # not compatible
query I rowsort label-2915
SELECT - 1 * - 0 + - - 84 + - 50 - - SUM ( + 54 ) * - 35 + - ( - 47 )
----
-1809

query I rowsort
SELECT DISTINCT NULLIF ( ( - 8 ), 3 ) + - 70
----
-78

query I rowsort
SELECT + 26
----
26

query I rowsort
SELECT 0 AS col1
----
0

query I rowsort
SELECT ALL ( + 24 ) + + 24
----
48

query I rowsort
SELECT ALL - 53 AS col1
----
-53

query I rowsort
SELECT DISTINCT - 56
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2922
SELECT DISTINCT CASE - 1 WHEN - 16 / CAST( NULL AS DECIMAL ) THEN + 52 * - 14 * + - MAX( 68 ) + - 43 END + + NULLIF ( + + CAST( - + 55 AS SIGNED ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2922
SELECT DISTINCT CASE - 1 WHEN - 16 / CAST ( NULL AS REAL ) THEN + 52 * - 14 * + - MAX ( 68 ) + - 43 END + + NULLIF ( + + CAST ( - + 55 AS INTEGER ), COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL - 98
----
-98

query I rowsort
SELECT + 37
----
37

query I rowsort
SELECT ALL - 68 AS col1
----
-68

query I rowsort
SELECT ALL ( - - 13 ) + - - 20 + + - 50 + - 78
----
-95

query I rowsort
SELECT DISTINCT - 75 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT ALL - ( COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL - ( COUNT ( * ) ) col2
----
-1

query II rowsort
SELECT ALL - 2 - 63 AS col2, - 96 AS col2
----
-65
-96

query I rowsort
SELECT ALL - 88
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2931
SELECT CAST( NULL AS SIGNED ) + + 96 * 94 + 63 + + 6 + + COUNT( DISTINCT + - ( 49 ) ) * - 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2931
SELECT CAST ( NULL AS INTEGER ) + + 96 * 94 + 63 + + 6 + + COUNT ( DISTINCT + - ( 49 ) ) * - 92 AS col0
----
NULL

query I rowsort
SELECT 33 * - 43 * 85
----
-120615

query I rowsort
SELECT + + 39
----
39

query I rowsort
SELECT ALL - - 6
----
6

query I rowsort
SELECT ALL - - 64 col0
----
64

query I rowsort
SELECT DISTINCT - 47 AS col0
----
-47

query I rowsort
SELECT ALL - - 47
----
47

query I rowsort
SELECT DISTINCT + 39 AS col0
----
39

query I rowsort
SELECT ALL ( COALESCE ( + 53, + - 99 + + 60 * - + 16 ) )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2940
SELECT 44 * - CAST( NULL AS SIGNED ) AS col1, 41 + 43 + + + ( 52 ) + + MIN( ALL + 62 ) + + COUNT( ( - 40 ) ) * 75 AS col1
----
NULL
273

skipif mysql # not compatible
query II rowsort label-2940
SELECT 44 * - CAST ( NULL AS INTEGER ) AS col1, 41 + 43 + + + ( 52 ) + + MIN ( ALL + 62 ) + + COUNT ( ( - 40 ) ) * 75 AS col1
----
NULL
273

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT - + CASE WHEN 39 IS NULL THEN - NULLIF ( + 81, + COUNT( * ) * + 50 ) + + - ( 41 ) + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2941
SELECT - + CASE WHEN 39 IS NULL THEN - NULLIF ( + 81, + COUNT ( * ) * + 50 ) + + - ( 41 ) + + COUNT ( * ) END
----
NULL

query I rowsort
SELECT - - ( + + 6 )
----
6

query I rowsort
SELECT ALL + 77
----
77

query I rowsort
SELECT - 6 - ( 84 ) AS col1
----
-90

query I rowsort
SELECT + 9
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2946
SELECT - COUNT( * ) + - 0 - 96 * - 45 AS col0, 5
----
4319
5

skipif mysql # not compatible
query II rowsort label-2946
SELECT - COUNT ( * ) + - 0 - 96 * - 45 AS col0, 5
----
4319
5

query I rowsort
SELECT ALL - 90 + - 21 * - 84
----
1674

query I rowsort
SELECT ALL 32
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT - 46 * + COUNT( * ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-2949
SELECT - 46 * + COUNT ( * ) AS col2
----
-46

query II rowsort
SELECT ALL - - 1 + + 91 AS col0, + 80
----
92
80

onlyif mysql # aggregate syntax: 
query II rowsort label-2951
SELECT DISTINCT + MAX( ALL + 54 ) + 1 AS col2, + 63 AS col0
----
55
63

skipif mysql # not compatible
query II rowsort label-2951
SELECT DISTINCT + MAX ( ALL + 54 ) + 1 AS col2, + 63 AS col0
----
55
63

query I rowsort
SELECT DISTINCT 4
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2953
SELECT ALL NULLIF ( MAX( DISTINCT + 70 ), ( ( + COUNT( * ) ) ) ) + - - 52 * 20 + - 26 DIV + 48
----
1110

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL NULLIF ( MAX ( DISTINCT + 70 ), ( ( + COUNT ( * ) ) ) ) + - - 52 * 20 + - 26 / + 48
----
1110

query I rowsort
SELECT 18 - - 26
----
44

query I rowsort
SELECT ALL 58 AS col2
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2956
SELECT ALL 10 AS col1, - ( COUNT( * ) ) col2
----
10
-1

skipif mysql # not compatible
query II rowsort label-2956
SELECT ALL 10 AS col1, - ( COUNT ( * ) ) col2
----
10
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2957
SELECT 92 + NULLIF ( - NULLIF ( + + 14, - COUNT( * ) * + + ( + - 55 ) * + COUNT( * ) * + COUNT( * ) - - + 32 - + 13 ), + 26 / - COUNT( * ) + 53 ) * + 62 + + 22 + - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2957
SELECT 92 + NULLIF ( - NULLIF ( + + 14, - COUNT ( * ) * + + ( + - 55 ) * + COUNT ( * ) * + COUNT ( * ) - - + 32 - + 13 ), + 26 / - COUNT ( * ) + 53 ) * + 62 + + 22 + - - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT 27 - + 0 - - 23 AS col0
----
50

query I rowsort
SELECT DISTINCT - 87 * + 32
----
-2784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2960
SELECT ALL + NULLIF ( + COUNT( * ), 6 * MAX( + 80 ) + + 17 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL + NULLIF ( + COUNT ( * ), 6 * MAX ( + 80 ) + + 17 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2961
SELECT 8 + + MIN( DISTINCT + + 69 ) DIV + 76
----
8

skipif mysql # not compatible
query I rowsort label-2961
SELECT 8 + + MIN ( DISTINCT + + 69 ) / + 76
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT ALL + 33 - - COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL + 33 - - COUNT ( * ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT COUNT( - 39 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2963
SELECT COUNT ( - 39 ) AS col1
----
1

query I rowsort
SELECT ALL - 70 - - 81 AS col1
----
11

query I rowsort
SELECT DISTINCT + ( + + 44 ) * + 82
----
3608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2966
SELECT + 83 DIV - + ( + + COUNT( - 10 ) ) + + NULLIF ( + 40, - 33 ) + + ( + - 53 ) - - ( 16 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-2966
SELECT + 83 / - + ( + + COUNT ( - 10 ) ) + + NULLIF ( + 40, - 33 ) + + ( + - 53 ) - - ( 16 ) AS col0
----
-80

query II rowsort
SELECT DISTINCT - 91 AS col0, 9
----
-91
9

query I rowsort
SELECT DISTINCT - 3
----
-3

query I rowsort
SELECT 42 * - - 29
----
1218

query I rowsort
SELECT 78 * + - 96
----
-7488

query I rowsort
SELECT - 57 AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT ALL - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL - + COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT - 31 AS col1
----
-31

query I rowsort
SELECT ALL - - 62
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT + 1 * + COUNT( * ) * + + 71 + - 65 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2975
SELECT + 1 * + COUNT ( * ) * + + 71 + - 65 AS col2
----
6

query I rowsort
SELECT DISTINCT 80 * 18 col2
----
1440

query I rowsort
SELECT ALL - + 84
----
-84

query I rowsort
SELECT 82 - 35 * 3
----
-23

query I rowsort
SELECT ALL + ( + 7 ) * ( - 27 ) AS col1
----
-189

query I rowsort
SELECT + 92 AS col2
----
92

query I rowsort
SELECT + 14 col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2982
SELECT - 51 + - - 34 + + 42 * - COUNT( * ) - - CAST( - + 41 AS SIGNED ) - + 17 * 75 + - + COALESCE ( - MIN( COALESCE ( NULLIF ( + - 55, + 49 ), - 83 + + 15 + + 57 ) ), - 68 DIV + + 46 ) + + + 36 + + ( ( + COUNT( * ) ) )
----
-1393

skipif mysql # not compatible
query I rowsort label-2982
SELECT - 51 + - - 34 + + 42 * - COUNT ( * ) - - CAST ( - + 41 AS INTEGER ) - + 17 * 75 + - + COALESCE ( - MIN ( COALESCE ( NULLIF ( + - 55, + 49 ), - 83 + + 15 + + 57 ) ), - 68 / + + 46 ) + + + 36 + + ( ( + COUNT ( * ) ) )
----
-1393

query I rowsort
SELECT ALL 20 + 14
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2984
SELECT 90 + + COUNT( * ) + + MIN( - 3 ) + + - 16 DIV - 78
----
88

skipif mysql # not compatible
query I rowsort label-2984
SELECT 90 + + COUNT ( * ) + + MIN ( - 3 ) + + - 16 / - 78
----
88

query II rowsort
SELECT - + 5 AS col1, - 48
----
-5
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT + COUNT( * ) + + - 77 - + 12 * 58 + + 86 + + 44 * 30 AS col0
----
634

skipif mysql # not compatible
query I rowsort label-2986
SELECT + COUNT ( * ) + + - 77 - + 12 * 58 + + 86 + + 44 * 30 AS col0
----
634

query I rowsort
SELECT ALL + 30 + - + 14 AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2988
SELECT + - 65 * + - CAST( NULL AS SIGNED ) + 32 * - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2988
SELECT + - 65 * + - CAST ( NULL AS INTEGER ) + 32 * - 11 AS col2
----
NULL

query I rowsort
SELECT ALL + 19 + 31 + 1
----
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2990
SELECT - + 49 / + + ( 14 ) + + 7 * 86 * CAST( NULL AS DECIMAL ) - CAST( ( + + COUNT( - + ( + 25 ) ) ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2990
SELECT - + 49 / + + ( 14 ) + + 7 * 86 * CAST ( NULL AS REAL ) - CAST ( ( + + COUNT ( - + ( + 25 ) ) ) AS REAL )
----
NULL

query I rowsort
SELECT ALL - 38 + - 98
----
-136

query I rowsort
SELECT - 40 + - - 55
----
15

query I rowsort
SELECT DISTINCT 43
----
43

query I rowsort
SELECT - 52
----
-52

query I rowsort
SELECT 87 col1
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2996
SELECT - 96 + 64 + - - 78 DIV + SUM( DISTINCT - - 70 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-2996
SELECT - 96 + 64 + - - 78 / + SUM ( DISTINCT - - 70 ) AS col1
----
-31

query I rowsort
SELECT 93 AS col0
----
93

query I rowsort
SELECT 95
----
95

query I rowsort
SELECT - 72 + + 57
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3000
SELECT ALL - NULLIF ( CAST( NULL AS SIGNED ), - - 63 ) + 97 * - + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL - NULLIF ( CAST ( NULL AS INTEGER ), - - 63 ) + 97 * - + 39 AS col0
----
NULL

query I rowsort
SELECT - 84 * - + 47 AS col0
----
3948

onlyif mysql # aggregate syntax: 
query II rowsort label-3002
SELECT - 13, NULLIF ( - - 66, - - 85 ) * CASE - + COUNT( * ) WHEN - 12 + - - ( + ( 90 ) ) * + 76 THEN - 45 ELSE NULL END + - - 53 * + - COUNT( * ) + - - 19 AS col2
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-3002
SELECT - 13, NULLIF ( - - 66, - - 85 ) * CASE - + COUNT ( * ) WHEN - 12 + - - ( + ( 90 ) ) * + 76 THEN - 45 ELSE NULL END + - - 53 * + - COUNT ( * ) + - - 19 AS col2
----
-13
NULL

query I rowsort
SELECT 39 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT ALL - 1 - - MIN( DISTINCT 92 )
----
91

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL - 1 - - MIN ( DISTINCT 92 )
----
91

query II rowsort
SELECT 25 AS col2, - 84 AS col0
----
25
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-3006
SELECT ALL + 2 - + 93 DIV + + 97
----
2

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL + 2 - + 93 / + + 97
----
2

query I rowsort
SELECT 30 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT ALL SUM( + 30 )
----
30

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL SUM ( + 30 )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3009
SELECT - 0 + + ( - COUNT( * ) ) - + CAST( + - 60 AS SIGNED ) * - 91 + - 48, + ( + - 78 ) AS col0
----
-5509
-78

skipif mysql # not compatible
query II rowsort label-3009
SELECT - 0 + + ( - COUNT ( * ) ) - + CAST ( + - 60 AS INTEGER ) * - 91 + - 48, + ( + - 78 ) AS col0
----
-5509
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3010
SELECT - 6 DIV + SUM( ALL - 67 )
----
0

skipif mysql # not compatible
query I rowsort label-3010
SELECT - 6 / + SUM ( ALL - 67 )
----
0

query I rowsort
SELECT - 18 * + 0
----
0

query I rowsort
SELECT - 76 + - - 55 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT + SUM( ALL 76 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3013
SELECT + SUM ( ALL 76 ) AS col2
----
76

query I rowsort
SELECT ( - 24 )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3015
SELECT + SUM( DISTINCT 55 ) DIV + 50 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3015
SELECT + SUM ( DISTINCT 55 ) / + 50 AS col0
----
1

query I rowsort
SELECT ( 76 )
----
76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3017
SELECT DISTINCT - CAST( + + 10 AS SIGNED ) DIV + 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT - CAST ( + + 10 AS INTEGER ) / + 75 AS col1
----
0

query I rowsort
SELECT ALL 58 * + + 55
----
3190

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3019
SELECT + 1 AS col2, - 8 + - + 30 DIV - + 51 + - ( COUNT( + 91 ) ) AS col1
----
1
-9

skipif mysql # not compatible
query II rowsort label-3019
SELECT + 1 AS col2, - 8 + - + 30 / - + 51 + - ( COUNT ( + 91 ) ) AS col1
----
1
-9

query I rowsort
SELECT DISTINCT + - 50
----
-50

query I rowsort
SELECT DISTINCT + - 25
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3022
SELECT DISTINCT + COALESCE ( + SUM( DISTINCT - + 65 ), CASE + + 13 WHEN 97 THEN NULL WHEN + 26 THEN NULL WHEN + 26 DIV + + CAST( NULL AS SIGNED ) * + 89 DIV 71 THEN NULL WHEN + + 99 THEN + COUNT( * ) - - 3 ELSE + 56 END DIV COUNT( * ) * 55 * - CASE + MIN( ALL - 48 ) WHEN - + 78 THEN NULL ELSE - MAX( 32 ) + - 24 END DIV + 91 ) * 53
----
-3445

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT + COALESCE ( + SUM ( DISTINCT - + 65 ), CASE + + 13 WHEN 97 THEN NULL WHEN + 26 THEN NULL WHEN + 26 / + + CAST ( NULL AS INTEGER ) * + 89 / 71 THEN NULL WHEN + + 99 THEN + COUNT ( * ) - - 3 ELSE + 56 END / COUNT ( * ) * 55 * - CASE + MIN ( ALL - 48 ) WHEN - + 78 THEN NULL ELSE - MAX ( 32 ) + - 24 END / + 91 ) * 53
----
-3445

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT ALL - + COALESCE ( - + 51, COUNT( * ) ) * - + 5 + + 70 AS col0
----
-185

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL - + COALESCE ( - + 51, COUNT ( * ) ) * - + 5 + + 70 AS col0
----
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3024
SELECT + - 76 * + CASE - NULLIF ( + CAST( - - CASE + - 47 WHEN 0 THEN ( + + 53 ) + + NULLIF ( - 58, - 92 + + NULLIF ( - 68, - CAST( - 42 AS SIGNED ) ) + - - COUNT( * ) ) ELSE NULL END AS SIGNED ), + COUNT( * ) + + + COUNT( * ) - + MIN( DISTINCT + 44 ) ) WHEN + ( CAST( + COUNT( * ) AS SIGNED ) ) * + 42 THEN NULL WHEN + 62 * + 30 THEN COUNT( * ) + ( + 64 - NULLIF ( - COUNT( - ( 85 ) ), AVG ( 98 ) * - COUNT( * ) ) * 40 ) ELSE NULL END + CAST( - COUNT( * ) + 53 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3024
SELECT + - 76 * + CASE - NULLIF ( + CAST ( - - CASE + - 47 WHEN 0 THEN ( + + 53 ) + + NULLIF ( - 58, - 92 + + NULLIF ( - 68, - CAST ( - 42 AS INTEGER ) ) + - - COUNT ( * ) ) ELSE NULL END AS INTEGER ), + COUNT ( * ) + + + COUNT ( * ) - + MIN ( DISTINCT + 44 ) ) WHEN + ( CAST ( + COUNT ( * ) AS INTEGER ) ) * + 42 THEN NULL WHEN + 62 * + 30 THEN COUNT ( * ) + ( + 64 - NULLIF ( - COUNT ( - ( 85 ) ), AVG ( 98 ) * - COUNT ( * ) ) * 40 ) ELSE NULL END + CAST ( - COUNT ( * ) + 53 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 26 * + 1 + ( 25 ) col2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3026
SELECT DISTINCT + CAST( + 25 AS SIGNED ) * - 84 + + - 47 * - 62 AS col1
----
814

skipif mysql # not compatible
query I rowsort label-3026
SELECT DISTINCT + CAST ( + 25 AS INTEGER ) * - 84 + + - 47 * - 62 AS col1
----
814

query I rowsort
SELECT ALL + 84 AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3028
SELECT + + 14 * 93 + + CAST( NULL AS SIGNED ) * + 60 col0, CASE - 49 WHEN + NULLIF ( + - 64, ( + 20 ) ) * + 13 / COUNT( * ) THEN 85 / - - COUNT( DISTINCT - 96 ) + - 38 ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3028
SELECT + + 14 * 93 + + CAST ( NULL AS INTEGER ) * + 60 col0, CASE - 49 WHEN + NULLIF ( + - 64, ( + 20 ) ) * + 13 / COUNT ( * ) THEN 85 / - - COUNT ( DISTINCT - 96 ) + - 38 ELSE NULL END
----
NULL
NULL

query I rowsort
SELECT + 21 AS col0
----
21

query I rowsort
SELECT + - 17
----
-17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3031
SELECT ALL + 59 * - MIN( + 60 ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL + 59 * - MIN ( + 60 ) + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT + 25 AS col2
----
25

query I rowsort
SELECT ALL - + 57 * 33 + - 84
----
-1965

query I rowsort
SELECT ALL + ( + 37 ) * 78
----
2886

query I rowsort
SELECT 2
----
2

query I rowsort
SELECT ALL 98 * - - 85 AS col0
----
8330

query I rowsort
SELECT - 68 + + - 39
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT + COUNT( * ) * - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3038
SELECT + COUNT ( * ) * - + COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3039
SELECT ( + COALESCE ( 52, COUNT( * ), + ( - + CASE 36 WHEN - + 64 THEN NULL WHEN + 12 + + 3 + - 80 THEN NULL ELSE - COUNT( * ) DIV - ( 51 ) * NULLIF ( 3, - - 67 - ( + COALESCE ( + 77, 77 * 81 + CASE - 63 WHEN 44 + 41 THEN MAX( - 59 ) + + NULLIF ( - 21 + 43 * + COUNT( * ), 74 ) ELSE 99 * - 55 END ) ) - + 55 * 46 ) END ) - + 9, CAST( NULL AS SIGNED ) ) ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3039
SELECT ( + COALESCE ( 52, COUNT ( * ), + ( - + CASE 36 WHEN - + 64 THEN NULL WHEN + 12 + + 3 + - 80 THEN NULL ELSE - COUNT ( * ) / - ( 51 ) * NULLIF ( 3, - - 67 - ( + COALESCE ( + 77, 77 * 81 + CASE - 63 WHEN 44 + 41 THEN MAX ( - 59 ) + + NULLIF ( - 21 + 43 * + COUNT ( * ), 74 ) ELSE 99 * - 55 END ) ) - + 55 * 46 ) END ) - + 9, CAST ( NULL AS INTEGER ) ) ) AS col2
----
52

query I rowsort
SELECT ( 21 )
----
21

query I rowsort
SELECT ALL - 7 + - 60
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT MIN( - 88 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-3042
SELECT MIN ( - 88 ) AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3043
SELECT DISTINCT COUNT( * ) * - + CAST( + 75 AS SIGNED ) col0
----
-75

skipif mysql # not compatible
query I rowsort label-3043
SELECT DISTINCT COUNT ( * ) * - + CAST ( + 75 AS INTEGER ) col0
----
-75

query I rowsort
SELECT ALL 66 - + 46 + + 30
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3045
SELECT ALL + 42 DIV + + 57 * + COUNT( DISTINCT + 61 )
----
0

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL + 42 / + + 57 * + COUNT ( DISTINCT + 61 )
----
0

query I rowsort
SELECT + 36 + - 66 AS col0
----
-30

query I rowsort
SELECT ALL 65 AS col0
----
65

query I rowsort
SELECT DISTINCT 68 AS col1
----
68

query II rowsort
SELECT - 30 * - 40 AS col0, 67
----
1200
67

query I rowsort
SELECT 2 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT + 0 + - MIN( ALL - + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-3051
SELECT + 0 + - MIN ( ALL - + 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT - COUNT( * ) - + - COALESCE ( 46, 27 + + 47 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3052
SELECT - COUNT ( * ) - + - COALESCE ( 46, 27 + + 47 ) AS col0
----
45

query I rowsort
SELECT + 77 + 24
----
101

query I rowsort
SELECT - 82 + - 25 AS col1
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT + SUM( ALL + 46 ) + - ( - 43 )
----
89

skipif mysql # not compatible
query I rowsort label-3055
SELECT + SUM ( ALL + 46 ) + - ( - 43 )
----
89

query I rowsort
SELECT - 88 AS col2
----
-88

query II rowsort
SELECT ALL ( + 80 ) col1, + 14 AS col0
----
80
14

onlyif mysql # aggregate syntax: 
query II rowsort label-3058
SELECT ALL SUM( DISTINCT + 10 ) * - 37 - + 22 + + 42 + - - 63 * - 39 AS col2, 81
----
-2807
81

skipif mysql # not compatible
query II rowsort label-3058
SELECT ALL SUM ( DISTINCT + 10 ) * - 37 - + 22 + + 42 + - - 63 * - 39 AS col2, 81
----
-2807
81

query I rowsort
SELECT - 64 * - ( + 44 ) * + 37 AS col1
----
104192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3060
SELECT + 87 * + ( + 99 ) + - NULLIF ( - 80, + CASE + + 85 WHEN 44 THEN NULL ELSE + + 41 - + CASE 4 WHEN + COUNT( ALL + 13 ) THEN + 61 WHEN - + 8 THEN + 48 / - 99 / - - 13 ELSE NULL END - + - 12 - + + ( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) END * + 0 ) * ( - 41 ) AS col2
----
5333

skipif mysql # not compatible
query I rowsort label-3060
SELECT + 87 * + ( + 99 ) + - NULLIF ( - 80, + CASE + + 85 WHEN 44 THEN NULL ELSE + + 41 - + CASE 4 WHEN + COUNT ( ALL + 13 ) THEN + 61 WHEN - + 8 THEN + 48 / - 99 / - - 13 ELSE NULL END - + - 12 - + + ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) END * + 0 ) * ( - 41 ) AS col2
----
5333

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT ALL + CASE + + 55 WHEN NULLIF ( - 73, 82 * - + NULLIF ( COUNT( * ), ( 55 ) / + - ( + 15 ) * + COUNT( * ) + + 81 ) * - COUNT( * ) + - 43 * - 81 + 70 ) THEN + 93 WHEN + COALESCE ( - + 45, + 24 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL + CASE + + 55 WHEN NULLIF ( - 73, 82 * - + NULLIF ( COUNT ( * ), ( 55 ) / + - ( + 15 ) * + COUNT ( * ) + + 81 ) * - COUNT ( * ) + - 43 * - 81 + 70 ) THEN + 93 WHEN + COALESCE ( - + 45, + 24 ) THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3062
SELECT + CAST( - 53 AS SIGNED ) DIV - 36 + - 19 + + COALESCE ( - + COUNT( * ), + 3, 12 DIV + CAST( NULL AS SIGNED ), - 90 ) * - COUNT( * ) + + 51 + - COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-3062
SELECT + CAST ( - 53 AS INTEGER ) / - 36 + - 19 + + COALESCE ( - + COUNT ( * ), + 3, 12 / + CAST ( NULL AS INTEGER ), - 90 ) * - COUNT ( * ) + + 51 + - COUNT ( * ) AS col2
----
33

query I rowsort
SELECT ALL + 73
----
73

query I rowsort
SELECT + 3
----
3

query I rowsort
SELECT ALL + 60 AS col0
----
60

query I rowsort
SELECT - 76 AS col1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3067
SELECT + CAST( ( - 23 ) AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-3067
SELECT + CAST ( ( - 23 ) AS INTEGER )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3068
SELECT DISTINCT 49 / - 6 * - + NULLIF ( 53, + 81 + - + COUNT( * ) ) + 39 + + 49 + - - 91 * + NULLIF ( - CAST( NULL AS SIGNED ), - - 67 * 74 ) + - 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT 49 / - 6 * - + NULLIF ( 53, + 81 + - + COUNT ( * ) ) + 39 + + 49 + - - 91 * + NULLIF ( - CAST ( NULL AS INTEGER ), - - 67 * 74 ) + - 84 AS col0
----
NULL

query I rowsort
SELECT + + 96
----
96

query I rowsort
SELECT DISTINCT - 52 + - + ( - - 31 ) - - - 83
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT ALL - + 7 + - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL - + 7 + - COUNT ( * )
----
-8

query I rowsort
SELECT DISTINCT + ( + 5 ) * + + 42 * - 46 - 10
----
-9670

query I rowsort
SELECT ALL - 9 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT ALL COUNT( * ) + - 41 - CASE + - 64 WHEN + 90 * - 75 + + CASE + 69 WHEN + 74 THEN - 14 * 12 END / - COUNT( * ) * 45 THEN NULL WHEN MIN( - 19 ) THEN - 4 * ( COALESCE ( 1, - + 34 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3074
SELECT ALL COUNT ( * ) + - 41 - CASE + - 64 WHEN + 90 * - 75 + + CASE + 69 WHEN + 74 THEN - 14 * 12 END / - COUNT ( * ) * 45 THEN NULL WHEN MIN ( - 19 ) THEN - 4 * ( COALESCE ( 1, - + 34 ) ) END AS col0
----
NULL

query I rowsort
SELECT 11 * - 78
----
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT ALL - - MAX( DISTINCT + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL - - MAX ( DISTINCT + 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT + NULLIF ( + + COUNT( * ), + - 27 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3077
SELECT + NULLIF ( + + COUNT ( * ), + - 27 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT COUNT( * ) * + - 61 + - 96 + 13
----
-144

skipif mysql # not compatible
query I rowsort label-3078
SELECT COUNT ( * ) * + - 61 + - 96 + 13
----
-144

query I rowsort
SELECT ALL - - 82 - - CASE - + 12 WHEN 33 THEN 8 + 80 * - + ( - ( + - CASE WHEN NOT ( + 21 ) IS NOT NULL THEN NULL WHEN ( - 39 * - 41 * 55 * 23 ) <> - 97 THEN + ( 3 ) + + 85 END ) ) * - ( + ( - 14 ) ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3080
SELECT + COUNT( * ) + + - 68 + - 68 + 60 DIV 94 + - 15 - - 31
----
-119

skipif mysql # not compatible
query I rowsort label-3080
SELECT + COUNT ( * ) + + - 68 + - 68 + 60 / 94 + - 15 - - 31
----
-119

query I rowsort
SELECT 22 + - + 64 * - 72 AS col1
----
4630

query I rowsort
SELECT 11 * + 84
----
924

query I rowsort
SELECT ALL 53 AS col2
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3084
SELECT - 10 * + 79 * - - COUNT( * ) + + + SUM( ALL 50 ) DIV + 49, 78 * - SUM( ALL + 21 ) + - + NULLIF ( COUNT( * ), + + 53 * - ( + - 53 ) ) * - 8 + + 62 * 1 AS col2
----
-789
-1568

skipif mysql # not compatible
query II rowsort label-3084
SELECT - 10 * + 79 * - - COUNT ( * ) + + + SUM ( ALL 50 ) / + 49, 78 * - SUM ( ALL + 21 ) + - + NULLIF ( COUNT ( * ), + + 53 * - ( + - 53 ) ) * - 8 + + 62 * 1 AS col2
----
-789
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT ALL + COUNT( * ) - 4 + - 47 * + 81 * - MIN( + 61 ) * + 17
----
3947856

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL + COUNT ( * ) - 4 + - 47 * + 81 * - MIN ( + 61 ) * + 17
----
3947856

query I rowsort
SELECT ALL 6 AS col2
----
6

query I rowsort
SELECT 56
----
56

query I rowsort
SELECT ALL 48 - 59 col2
----
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-3089
SELECT DISTINCT 12 AS col1, - 25 - - 99 + - 33 DIV - + 79
----
12
74

skipif mysql # not compatible
query II rowsort label-3089
SELECT DISTINCT 12 AS col1, - 25 - - 99 + - 33 / - + 79
----
12
74

query I rowsort
SELECT ALL 64 AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3091
SELECT NULLIF ( - ( - 70 ), - NULLIF ( NULLIF ( + 27, + 33 + CAST( NULL AS SIGNED ) ), - 62 ) ) + - SUM( ALL - 73 )
----
143

skipif mysql # not compatible
query I rowsort label-3091
SELECT NULLIF ( - ( - 70 ), - NULLIF ( NULLIF ( + 27, + 33 + CAST ( NULL AS INTEGER ) ), - 62 ) ) + - SUM ( ALL - 73 )
----
143

query II rowsort
SELECT - 17, 69 col0
----
-17
69

query I rowsort
SELECT ALL 18 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT DISTINCT ( + 70 ) * + MAX( 78 ) * + - 41 + - 47 AS col0
----
-223907

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT ( + 70 ) * + MAX ( 78 ) * + - 41 + - 47 AS col0
----
-223907

query II rowsort
SELECT ALL 21 AS col2, + 74 AS col1
----
21
74

onlyif mysql # aggregate syntax: 
query II rowsort label-3096
SELECT COUNT( * ) * - - 28 * + 1 AS col1, 22 + - + MAX( + 27 ) + + 31 AS col1
----
28
26

skipif mysql # not compatible
query II rowsort label-3096
SELECT COUNT ( * ) * - - 28 * + 1 AS col1, 22 + - + MAX ( + 27 ) + + 31 AS col1
----
28
26

query I rowsort
SELECT ( + 43 ) + - 84 * - 68
----
5755

onlyif mysql # DIV for integer division: 
query I rowsort label-3098
SELECT COALESCE ( - 75, + 51 ) DIV 52 col0
----
-1

skipif mysql # not compatible
query I rowsort label-3098
SELECT COALESCE ( - 75, + 51 ) / 52 col0
----
-1

query I rowsort
SELECT DISTINCT 78
----
78

query II rowsort
SELECT 99, - 1 + 55 AS col1
----
99
54

query I rowsort
SELECT ALL 84
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-3102
SELECT ( - + 61 ) * + 48 AS col0, 87 + - 98 + + 70 + + - 73 + - COUNT( ALL - 60 ) + - 22 + - MAX( 54 ) * 64
----
-2928
-3493

skipif mysql # not compatible
query II rowsort label-3102
SELECT ( - + 61 ) * + 48 AS col0, 87 + - 98 + + 70 + + - 73 + - COUNT ( ALL - 60 ) + - 22 + - MAX ( 54 ) * 64
----
-2928
-3493

query I rowsort
SELECT ALL 86 AS col0
----
86

query I rowsort
SELECT DISTINCT 38 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT DISTINCT 76 + + 83 / 45 * + CASE 95 WHEN + 4 * 39 * - 56 * + - 31 * + 61 THEN NULL WHEN + + 71 THEN - COALESCE ( - - 25, - 6 - - 67 + 91 + 39 + 43, - MAX( 94 ) - + COUNT( * ) ) / + + 89 + + 87 + - 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT 76 + + 83 / 45 * + CASE 95 WHEN + 4 * 39 * - 56 * + - 31 * + 61 THEN NULL WHEN + + 71 THEN - COALESCE ( - - 25, - 6 - - 67 + 91 + 39 + 43, - MAX ( 94 ) - + COUNT ( * ) ) / + + 89 + + 87 + - 56 END
----
NULL

query I rowsort
SELECT ALL 42
----
42

query I rowsort
SELECT - 43 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-3108
SELECT ALL 5 + MIN( + 62 ), - COUNT( * ) * - 99 AS col1
----
67
99

skipif mysql # not compatible
query II rowsort label-3108
SELECT ALL 5 + MIN ( + 62 ), - COUNT ( * ) * - 99 AS col1
----
67
99

query II rowsort
SELECT 93 AS col1, - 54 AS col2
----
93
-54

query II rowsort
SELECT - + 31 AS col0, 81 * + - 46
----
-31
-3726

query I rowsort
SELECT 34 + + 43
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT + - COUNT( DISTINCT + + 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-3112
SELECT + - COUNT ( DISTINCT + + 21 )
----
-1

query I rowsort
SELECT ALL + 83 + + 40 AS col1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT + SUM( - + 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-3114
SELECT + SUM ( - + 48 )
----
-48

query I rowsort
SELECT + - 8
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT DISTINCT - MAX( ALL + + 44 ) + MIN( ALL - 14 ) * + 98 * - COUNT( * )
----
1328

skipif mysql # not compatible
query I rowsort label-3116
SELECT DISTINCT - MAX ( ALL + + 44 ) + MIN ( ALL - 14 ) * + 98 * - COUNT ( * )
----
1328

query I rowsort
SELECT + 51 * + - 4 - 33 AS col1
----
-237

query I rowsort
SELECT 13
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3119
SELECT ALL + + CAST( NULL AS SIGNED ) * - - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL + + CAST ( NULL AS INTEGER ) * - - 18
----
NULL

query I rowsort
SELECT ALL - - 30
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT - 74 + 17 * + + ( - + MIN( + 30 ) ) AS col1
----
-584

skipif mysql # not compatible
query I rowsort label-3121
SELECT - 74 + 17 * + + ( - + MIN ( + 30 ) ) AS col1
----
-584

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT ALL - - NULLIF ( - COUNT( * ), - 50 * + 71 )
----
-1

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL - - NULLIF ( - COUNT ( * ), - 50 * + 71 )
----
-1

query I rowsort
SELECT + 67
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT ALL + COUNT( * ) * 81 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL + COUNT ( * ) * 81 AS col2
----
81

query I rowsort
SELECT DISTINCT - - 71 col1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3126
SELECT + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3127
SELECT 12 * + 7 * - CAST( NULL AS SIGNED ) - + - 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3127
SELECT 12 * + 7 * - CAST ( NULL AS INTEGER ) - + - 87 AS col0
----
NULL

query I rowsort
SELECT ALL - 16 AS col0
----
-16

query I rowsort
SELECT 6 * - 38 + + + 14 AS col2
----
-214

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT ALL + 16 * - - ( + COUNT( + 74 ) )
----
16

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL + 16 * - - ( + COUNT ( + 74 ) )
----
16

query I rowsort
SELECT DISTINCT - + 21 AS col0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3132
SELECT ALL - 95 AS col2, - 42 * NULLIF ( + CAST( - SUM( 13 ) AS SIGNED ), 34 ) + + 71 + - + 19 AS col0
----
-95
598

skipif mysql # not compatible
query II rowsort label-3132
SELECT ALL - 95 AS col2, - 42 * NULLIF ( + CAST ( - SUM ( 13 ) AS INTEGER ), 34 ) + + 71 + - + 19 AS col0
----
-95
598

query I rowsort
SELECT ALL - 1
----
-1

query I rowsort
SELECT ALL - 42 * - - 81 * - - 64 * 76 AS col1
----
-16547328

query I rowsort
SELECT DISTINCT + ( - - ( + - CASE 7 WHEN + 67 THEN NULL WHEN 64 THEN 59 ELSE NULL END ) ) * + - 14
----
NULL

query I rowsort
SELECT 46 AS col0
----
46

query I rowsort
SELECT ALL + 70 * - 80 AS col0
----
-5600

query I rowsort
SELECT 54
----
54

query I rowsort
SELECT 36 * - 90 * - 51 AS col0
----
165240

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT CASE + - 5 WHEN + + 85 + + + 20 * + + 93 * - - COUNT( * ) THEN - - COUNT( 68 ) * - - 33 ELSE + + CASE 10 WHEN - - COALESCE ( 78, + 72, + 64 ) THEN NULL ELSE + + 93 * 48 - + 43 END END * - 89
----
-393469

skipif mysql # not compatible
query I rowsort label-3140
SELECT CASE + - 5 WHEN + + 85 + + + 20 * + + 93 * - - COUNT ( * ) THEN - - COUNT ( 68 ) * - - 33 ELSE + + CASE 10 WHEN - - COALESCE ( 78, + 72, + 64 ) THEN NULL ELSE + + 93 * 48 - + 43 END END * - 89
----
-393469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3141
SELECT - 30 * - AVG ( DISTINCT - - 74 ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3141
SELECT - 30 * - AVG ( DISTINCT - - 74 ) + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 75 col1
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-3143
SELECT ALL 41 + + COUNT( * ), 97 AS col0
----
42
97

skipif mysql # not compatible
query II rowsort label-3143
SELECT ALL 41 + + COUNT ( * ), 97 AS col0
----
42
97

query I rowsort
SELECT 52 + + 66
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT ALL COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT ALL COUNT( - - 76 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL COUNT ( - - 76 ) AS col2
----
1

query I rowsort
SELECT ALL 35 * 11 * + 27
----
10395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3148
SELECT DISTINCT AVG ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT DISTINCT AVG ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3149
SELECT ALL - 80 + - CASE - + 51 WHEN - COUNT( * ) THEN NULL ELSE + + 45 - 69 END * 29, 30 AS col2
----
616
30

skipif mysql # not compatible
query II rowsort label-3149
SELECT ALL - 80 + - CASE - + 51 WHEN - COUNT ( * ) THEN NULL ELSE + + 45 - 69 END * 29, 30 AS col2
----
616
30

query I rowsort
SELECT DISTINCT + 26 + - ( + 98 ) AS col1
----
-72

query I rowsort
SELECT 65 col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3152
SELECT COUNT( DISTINCT 53 ) + + 64 * - NULLIF ( + 9, + ( - + 35 ) + - MAX( DISTINCT + CAST( + 0 AS SIGNED ) ) * - 9 )
----
-575

skipif mysql # not compatible
query I rowsort label-3152
SELECT COUNT ( DISTINCT 53 ) + + 64 * - NULLIF ( + 9, + ( - + 35 ) + - MAX ( DISTINCT + CAST ( + 0 AS INTEGER ) ) * - 9 )
----
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT ( + 84 ) + 72 * - + COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-3153
SELECT ( + 84 ) + 72 * - + COUNT ( * ) AS col0
----
12

query I rowsort
SELECT 41 AS col2
----
41

query I rowsort
SELECT - 49 AS col2
----
-49

query I rowsort
SELECT + 79 + + 13 + + 30 AS col1
----
122

query I rowsort
SELECT - - 33
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT DISTINCT - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT - COUNT ( * ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT ALL 62 + + COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL 62 + + COUNT ( * ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-3160
SELECT + 1 * ( 17 ) * COUNT( * ) + + CASE 75 WHEN + 26 * - 9 + - - MAX( DISTINCT 39 ) THEN 96 * + 26 END col0, 5 + - 92 AS col1
----
NULL
-87

skipif mysql # not compatible
query II rowsort label-3160
SELECT + 1 * ( 17 ) * COUNT ( * ) + + CASE 75 WHEN + 26 * - 9 + - - MAX ( DISTINCT 39 ) THEN 96 * + 26 END col0, 5 + - 92 AS col1
----
NULL
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3161
SELECT ALL 75 + + + CAST( NULL AS SIGNED ) + 37 + + - 90 + - - 70 * - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL 75 + + + CAST ( NULL AS INTEGER ) + 37 + + - 90 + - - 70 * - 39
----
NULL

query I rowsort
SELECT + 45 + 82 AS col1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT ALL COUNT( * ) + + 12 + + - 56 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL COUNT ( * ) + + 12 + + - 56 AS col2
----
-43

query I rowsort
SELECT DISTINCT + 85
----
85

query I rowsort
SELECT DISTINCT - ( - 72 )
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3166
SELECT ALL - ( - 81 ) DIV 42 DIV - + COUNT( DISTINCT - 72 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL - ( - 81 ) / 42 / - + COUNT ( DISTINCT - 72 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT + - 66 * MIN( - - 73 )
----
-4818

skipif mysql # not compatible
query I rowsort label-3167
SELECT + - 66 * MIN ( - - 73 )
----
-4818

query I rowsort
SELECT ALL + + 37 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT + COUNT( * ) + - 69
----
-68

skipif mysql # not compatible
query I rowsort label-3169
SELECT + COUNT ( * ) + - 69
----
-68

query I rowsort
SELECT DISTINCT - + 4 * - - 2 * 12 - + - 94
----
-2

query I rowsort
SELECT ALL + 38 AS col2
----
38

query I rowsort
SELECT + 45 AS col0
----
45

query I rowsort
SELECT + + 25
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT - 48 * ( + 99 ) * + 30 * NULLIF ( - COUNT( * ), - MAX( 56 ) + + NULLIF ( + ( 7 ), 67 * - 3 ) ) + - 32 * - 55
----
144320

skipif mysql # not compatible
query I rowsort label-3174
SELECT - 48 * ( + 99 ) * + 30 * NULLIF ( - COUNT ( * ), - MAX ( 56 ) + + NULLIF ( + ( 7 ), 67 * - 3 ) ) + - 32 * - 55
----
144320

onlyif mysql # aggregate syntax: 
query II rowsort label-3175
SELECT + 48 * 62 AS col1, COUNT( * )
----
2976
1

skipif mysql # not compatible
query II rowsort label-3175
SELECT + 48 * 62 AS col1, COUNT ( * )
----
2976
1

query I rowsort
SELECT ALL 87 * + 15
----
1305

query I rowsort
SELECT ALL + 31 AS col1
----
31

query I rowsort
SELECT + 46 AS col1
----
46

query II rowsort
SELECT DISTINCT + 12 * - + 21 - - 28 * - + ( + 70 ) col2, + 89 + ( 74 ) AS col0
----
-2212
163

query I rowsort
SELECT DISTINCT + 79
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3181
SELECT ALL - CASE - CAST( + - 90 AS SIGNED ) WHEN + - SUM( DISTINCT 28 ) THEN + + COUNT( * ) / + - CASE CASE + 88 WHEN + 93 THEN + 92 ELSE NULL END WHEN + CASE CAST( NULL AS SIGNED ) WHEN + 8 THEN 81 WHEN - 67 - 67 THEN + COUNT( * ) / - 39 - + - 34 * - COUNT( * ) ELSE - 53 + + - ( NULLIF ( + ( 55 ), + 36 + 63 ) ) * - 18 END + + ( NULLIF ( + 17, 55 ) ) THEN 61 END + 37 ELSE NULL END * COALESCE ( - 85 * - 51, - 37 + - 86, 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL - CASE - CAST ( + - 90 AS INTEGER ) WHEN + - SUM ( DISTINCT 28 ) THEN + + COUNT ( * ) / + - CASE CASE + 88 WHEN + 93 THEN + 92 ELSE NULL END WHEN + CASE CAST ( NULL AS INTEGER ) WHEN + 8 THEN 81 WHEN - 67 - 67 THEN + COUNT ( * ) / - 39 - + - 34 * - COUNT ( * ) ELSE - 53 + + - ( NULLIF ( + ( 55 ), + 36 + 63 ) ) * - 18 END + + ( NULLIF ( + 17, 55 ) ) THEN 61 END + 37 ELSE NULL END * COALESCE ( - 85 * - 51, - 37 + - 86, 65 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT ALL + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL + + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3183
SELECT COUNT( * ) AS col1, ( + 33 ) * - 66 * COUNT( * ) + - ( - 87 ) + - 40 - CAST( NULL AS SIGNED ) - 9 * + + 40 * - 94 * + 48
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3183
SELECT COUNT ( * ) AS col1, ( + 33 ) * - 66 * COUNT ( * ) + - ( - 87 ) + - 40 - CAST ( NULL AS INTEGER ) - 9 * + + 40 * - 94 * + 48
----
1
NULL

query I rowsort
SELECT ALL + 72
----
72

query I rowsort
SELECT DISTINCT 78 * + - 90 AS col0
----
-7020

query I rowsort
SELECT DISTINCT + 78
----
78

query I rowsort
SELECT DISTINCT + 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT SUM( - - 82 ) col2
----
82

skipif mysql # not compatible
query I rowsort label-3188
SELECT SUM ( - - 82 ) col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT + 26 * ( + 70 ) + - MAX( - - 15 ) * + 70 col2
----
770

skipif mysql # not compatible
query I rowsort label-3189
SELECT + 26 * ( + 70 ) + - MAX ( - - 15 ) * + 70 col2
----
770

query I rowsort
SELECT - 60 + + + 45 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT ALL 45 * - + COUNT( * ) + - COUNT( * ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL 45 * - + COUNT ( * ) + - COUNT ( * ) AS col2
----
-46

query I rowsort
SELECT - 71 * + 21 col0
----
-1491

query I rowsort
SELECT - 73 AS col1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3194
SELECT DISTINCT CASE - 38 WHEN + CAST( - 23 AS SIGNED ) THEN - 51 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT CASE - 38 WHEN + CAST ( - 23 AS INTEGER ) THEN - 51 END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3195
SELECT - 24 DIV + NULLIF ( + 98, COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-3195
SELECT - 24 / + NULLIF ( + 98, COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3196
SELECT ALL - COUNT( * ) + + + 55 DIV - + 42 * - - COUNT( * ) + + 7 AS col0, 57
----
5
57

skipif mysql # not compatible
query II rowsort label-3196
SELECT ALL - COUNT ( * ) + + + 55 / - + 42 * - - COUNT ( * ) + + 7 AS col0, 57
----
5
57

query I rowsort
SELECT 26 AS col2
----
26

query I rowsort
SELECT ALL + 48 + - 85 * - 63 AS col1
----
5403

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT DISTINCT - 94 + + 12 * - COUNT( * ) * - + COALESCE ( CASE NULLIF ( 61, - 44 + + AVG ( + - 2 ) + + 9 + - 96 ) WHEN + MIN( DISTINCT + 97 ) THEN - - 8 END, 35 * - + 93, + - 69 ) * - 93 + 98 AS col1
----
3632584

skipif mysql # not compatible
query I rowsort label-3199
SELECT DISTINCT - 94 + + 12 * - COUNT ( * ) * - + COALESCE ( CASE NULLIF ( 61, - 44 + + AVG ( + - 2 ) + + 9 + - 96 ) WHEN + MIN ( DISTINCT + 97 ) THEN - - 8 END, 35 * - + 93, + - 69 ) * - 93 + 98 AS col1
----
3632584

query I rowsort
SELECT DISTINCT + 39 * 3
----
117

query I rowsort
SELECT ALL - 76 + 0
----
-76

query I rowsort
SELECT ALL + 22 * - 27 AS col1
----
-594

query I rowsort
SELECT 13 AS col2
----
13

query I rowsort
SELECT 18 col2
----
18

query I rowsort
SELECT - 47 AS col0
----
-47

query I rowsort
SELECT ALL - 49 + 5 col1
----
-44

query I rowsort
SELECT - - 48
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3208
SELECT ALL + COUNT( DISTINCT - + ( 18 ) ) AS col0, + 65 * - 27 * + 62
----
1
-108810

skipif mysql # not compatible
query II rowsort label-3208
SELECT ALL + COUNT ( DISTINCT - + ( 18 ) ) AS col0, + 65 * - 27 * + 62
----
1
-108810

query I rowsort
SELECT - + 86 * + + ( - + 2 ) AS col2
----
172

query I rowsort
SELECT ALL ( + 84 ) AS col1
----
84

query I rowsort
SELECT ALL 34 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT - ( - COUNT( ( 95 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3212
SELECT - ( - COUNT ( ( 95 ) ) )
----
1

query I rowsort
SELECT ALL + + 88 - - + 25
----
113

query II rowsort
SELECT 5 AS col2, + 27 * - + 30 AS col0
----
5
-810

query I rowsort
SELECT 74 AS col1
----
74

query I rowsort
SELECT ALL + 30
----
30

query II rowsort
SELECT - + 63 AS col2, 37
----
-63
37

query I rowsort
SELECT ALL - 7
----
-7

query I rowsort
SELECT - + 51
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3220
SELECT + - CAST( NULL AS SIGNED ) + - 86 - 14 * + COUNT( + 76 ) * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3220
SELECT + - CAST ( NULL AS INTEGER ) + - 86 - 14 * + COUNT ( + 76 ) * 99
----
NULL

query I rowsort
SELECT DISTINCT + 38 AS col1
----
38

query I rowsort
SELECT + + 54 * + - 55
----
-2970

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT - COUNT( * ) * + 52 - + 8 + + + 37 + + 55 + - 8 + + - 22
----
2

skipif mysql # not compatible
query I rowsort label-3223
SELECT - COUNT ( * ) * + 52 - + 8 + + + 37 + + 55 + - 8 + + - 22
----
2

query II rowsort
SELECT ALL + 86, 37 AS col2
----
86
37

query I rowsort
SELECT ALL + ( - 16 )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3226
SELECT + + 94 * + CAST( + - 30 AS SIGNED ) * - 28
----
78960

skipif mysql # not compatible
query I rowsort label-3226
SELECT + + 94 * + CAST ( + - 30 AS INTEGER ) * - 28
----
78960

onlyif mysql # DIV for integer division: 
query II rowsort label-3227
SELECT ALL + 63, 26 DIV + + 80 col2
----
63
0

skipif mysql # not compatible
query II rowsort label-3227
SELECT ALL + 63, 26 / + + 80 col2
----
63
0

query I rowsort
SELECT ALL + + 42
----
42

query I rowsort
SELECT + 81 * - 11 col0
----
-891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3230
SELECT ALL + COALESCE ( + + 60, - - 72 * 19 * - - CASE - 37 WHEN - 36 + - 39 THEN NULL WHEN COUNT( * ) THEN + 0 + + - 84 + + CAST( NULL AS SIGNED ) DIV 23 WHEN + COALESCE ( - + CAST( MIN( + ( - 81 ) ) AS SIGNED ), + 32, - CAST( NULL AS SIGNED ), - + COUNT( * ) + + + 33 + COUNT( * ) + - 36 + - COUNT( * ) * - 88 * - 91 ) THEN - CASE + 91 WHEN + 39 * 45 THEN 69 END * + COUNT( * ) ELSE 59 * 55 + + COUNT( * ) * - 19 END - - CAST( + 75 AS SIGNED ) * COUNT( * ) ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL + COALESCE ( + + 60, - - 72 * 19 * - - CASE - 37 WHEN - 36 + - 39 THEN NULL WHEN COUNT ( * ) THEN + 0 + + - 84 + + CAST ( NULL AS INTEGER ) / 23 WHEN + COALESCE ( - + CAST ( MIN ( + ( - 81 ) ) AS INTEGER ), + 32, - CAST ( NULL AS INTEGER ), - + COUNT ( * ) + + + 33 + COUNT ( * ) + - 36 + - COUNT ( * ) * - 88 * - 91 ) THEN - CASE + 91 WHEN + 39 * 45 THEN 69 END * + COUNT ( * ) ELSE 59 * 55 + + COUNT ( * ) * - 19 END - - CAST ( + 75 AS INTEGER ) * COUNT ( * ) ) AS col2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3231
SELECT + 7 * CAST( - 14 AS SIGNED ) col0
----
-98

skipif mysql # not compatible
query I rowsort label-3231
SELECT + 7 * CAST ( - 14 AS INTEGER ) col0
----
-98

query I rowsort
SELECT ALL + 91 AS col1
----
91

query I rowsort
SELECT + 78 * - 94 AS col1
----
-7332

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT ALL + MAX( ALL - 91 ) * COUNT( * ) * - ( - COUNT( * ) ) * + 48 + - 18 + - 72 * - COUNT( * ) + + 39
----
-4275

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL + MAX ( ALL - 91 ) * COUNT ( * ) * - ( - COUNT ( * ) ) * + 48 + - 18 + - 72 * - COUNT ( * ) + + 39
----
-4275

onlyif mysql # aggregate syntax: 
query II rowsort label-3235
SELECT ( 98 ) AS col0, COUNT( * )
----
98
1

skipif mysql # not compatible
query II rowsort label-3235
SELECT ( 98 ) AS col0, COUNT ( * )
----
98
1

query I rowsort
SELECT + 60 AS col1
----
60

query I rowsort
SELECT ( - 61 ) AS col1
----
-61

query I rowsort
SELECT DISTINCT + 13 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT DISTINCT + COUNT( + - 11 ) * 53 + + - 60
----
-7

skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT + COUNT ( + - 11 ) * 53 + + - 60
----
-7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3240
SELECT + 59 * 42 + 51 DIV CAST( - 78 AS SIGNED ) * - 50 + + 6 * - 67
----
2076

skipif mysql # not compatible
query I rowsort label-3240
SELECT + 59 * 42 + 51 / CAST ( - 78 AS INTEGER ) * - 50 + + 6 * - 67
----
2076

onlyif mysql # aggregate syntax: 
query II rowsort label-3241
SELECT ALL + COUNT( * ), - 19 col0
----
1
-19

skipif mysql # not compatible
query II rowsort label-3241
SELECT ALL + COUNT ( * ), - 19 col0
----
1
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3242
SELECT + CAST( - COUNT( + CAST( + - 60 AS SIGNED ) ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3242
SELECT + CAST ( - COUNT ( + CAST ( + - 60 AS INTEGER ) ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT ALL - 54 * + - 46 * + 68 + + 45 * + 47 AS col2
----
171027

query I rowsort
SELECT ALL 27 * 77 + + + ( + 85 ) * + 75 AS col0
----
8454

query I rowsort
SELECT DISTINCT 23 * 30 AS col2
----
690

query I rowsort
SELECT COALESCE ( 2, - + 19 * - 85 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT MIN( + - 58 ) * 59 + + COUNT( * ) * + 42 col0
----
-3380

skipif mysql # not compatible
query I rowsort label-3247
SELECT MIN ( + - 58 ) * 59 + + COUNT ( * ) * + 42 col0
----
-3380

query I rowsort
SELECT ALL ( - 74 ) * - - 27 * 66 + - 11 + 92
----
-131787

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT COUNT( ALL 82 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3249
SELECT COUNT ( ALL 82 ) AS col1
----
1

query I rowsort
SELECT ALL 92
----
92

query I rowsort
SELECT ALL 46
----
46

onlyif mysql # DIV for integer division: 
query II rowsort label-3252
SELECT DISTINCT 97, 9 DIV 4 - - 37 + - + 11 * - 89 * + 84 * - - 33 * + 6 AS col2
----
97
16282767

skipif mysql # not compatible
query II rowsort label-3252
SELECT DISTINCT 97, 9 / 4 - - 37 + - + 11 * - 89 * + 84 * - - 33 * + 6 AS col2
----
97
16282767

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT ALL + + 28 * - ( 2 ) * + COUNT( * ) - - 23 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL + + 28 * - ( 2 ) * + COUNT ( * ) - - 23 AS col0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3254
SELECT ALL CAST( + 63 AS SIGNED ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL CAST ( + 63 AS INTEGER ) AS col0
----
63

query I rowsort
SELECT + 27 + 45
----
72

query I rowsort
SELECT ALL 12 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT DISTINCT - 77 * - + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT - 77 * - + COUNT ( * )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT - COUNT( * ) + + 30 * 55 AS col0
----
1649

skipif mysql # not compatible
query I rowsort label-3258
SELECT - COUNT ( * ) + + 30 * 55 AS col0
----
1649

query I rowsort
SELECT ALL - 42 AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3260
SELECT - CAST( + + 69 AS SIGNED ) + + 81 - ( + + 90 )
----
-78

skipif mysql # not compatible
query I rowsort label-3260
SELECT - CAST ( + + 69 AS INTEGER ) + + 81 - ( + + 90 )
----
-78

query I rowsort
SELECT ALL - 86 * - 35 AS col2
----
3010

query I rowsort
SELECT - + 88 col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT COUNT( * ) * 86
----
86

skipif mysql # not compatible
query I rowsort label-3263
SELECT COUNT ( * ) * 86
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT - 7 * - MIN( + - 4 ) + + 20 * + 11
----
192

skipif mysql # not compatible
query I rowsort label-3264
SELECT - 7 * - MIN ( + - 4 ) + + 20 * + 11
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT + ( - - 36 ) + + 20 + 15 + + MAX( ALL + 13 )
----
84

skipif mysql # not compatible
query I rowsort label-3265
SELECT + ( - - 36 ) + + 20 + 15 + + MAX ( ALL + 13 )
----
84

query I rowsort
SELECT ALL - ( - 67 )
----
67

query I rowsort
SELECT + 90 + + 16 - + 62 AS col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3268
SELECT ALL COUNT( * ) AS col2, - 92 col2
----
1
-92

skipif mysql # not compatible
query II rowsort label-3268
SELECT ALL COUNT ( * ) AS col2, - 92 col2
----
1
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-3269
SELECT ALL - 99 AS col2, ( + COUNT( * ) ) + + + 13 + 56 * 31 * - 60
----
-99
-104146

skipif mysql # not compatible
query II rowsort label-3269
SELECT ALL - 99 AS col2, ( + COUNT ( * ) ) + + + 13 + 56 * 31 * - 60
----
-99
-104146

query II rowsort
SELECT DISTINCT + 86, 28 AS col0
----
86
28

query I rowsort
SELECT ALL 30
----
30

query I rowsort
SELECT DISTINCT 53
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT DISTINCT - + CASE 83 WHEN - - 3 * + 65 * + + 2 * 59 * - 34 * + - 93 + - 59 THEN + COUNT( * ) - COUNT( * ) * + 54 + ( - 80 ) + - 6 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT - + CASE 83 WHEN - - 3 * + 65 * + + 2 * 59 * - 34 * + - 93 + - 59 THEN + COUNT ( * ) - COUNT ( * ) * + 54 + ( - 80 ) + - 6 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( - ( 3 ) )
----
3

query I rowsort
SELECT DISTINCT - 37 + 47 * - - 63
----
2924

query II rowsort
SELECT NULLIF ( + 63, + - 3 + + + 21 ) col1, 73
----
63
73

query I rowsort
SELECT + - 80 col2
----
-80

query I rowsort
SELECT ALL - + 49 AS col1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3279
SELECT - 93 + 27 DIV 79 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-3279
SELECT - 93 + 27 / 79 AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT COUNT( - - 28 ) * - COUNT( - + 33 ) + + 63
----
62

skipif mysql # not compatible
query I rowsort label-3280
SELECT COUNT ( - - 28 ) * - COUNT ( - + 33 ) + + 63
----
62

query I rowsort
SELECT 70
----
70

query I rowsort
SELECT 43 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT ALL + COUNT( * ) * - 77
----
-77

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL + COUNT ( * ) * - 77
----
-77

query I rowsort
SELECT ALL - 16
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3285
SELECT ALL + NULLIF ( 57, - + 36 ) + + 94 DIV - 99 AS col2, + COUNT( * )
----
57
1

skipif mysql # not compatible
query II rowsort label-3285
SELECT ALL + NULLIF ( 57, - + 36 ) + + 94 / - 99 AS col2, + COUNT ( * )
----
57
1

query I rowsort
SELECT ALL - 26
----
-26

query I rowsort
SELECT 61 + + 44 - - 34
----
139

query I rowsort
SELECT ALL 36 + + 99 AS col1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT ALL COUNT( * ) + - - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL COUNT ( * ) + - - COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT CASE - ( + - 38 ) WHEN - 56 * + COUNT( * ) + COUNT( * ) + - 26 * + SUM( - 43 ) / - + COUNT( * ) THEN - + 69 ELSE NULL END + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT CASE - ( + - 38 ) WHEN - 56 * + COUNT ( * ) + COUNT ( * ) + - 26 * + SUM ( - 43 ) / - + COUNT ( * ) THEN - + 69 ELSE NULL END + + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 51 AS col0
----
51

query II rowsort
SELECT ALL 76 - + 29 * + - 46, + 83 AS col1
----
1410
83

query I rowsort
SELECT ALL - 35
----
-35

query I rowsort
SELECT + 34 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT COUNT( * ) + - 25 + 80
----
56

skipif mysql # not compatible
query I rowsort label-3295
SELECT COUNT ( * ) + - 25 + 80
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3296
SELECT 77 * - - 11 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3296
SELECT 77 * - - 11 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 67 AS col2
----
67

query I rowsort
SELECT ALL 91 AS col0
----
91

query I rowsort
SELECT - 92 AS col0
----
-92

query I rowsort
SELECT ALL 5 * - 78 AS col0
----
-390

query I rowsort
SELECT DISTINCT 96 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT ALL - + COUNT( * ) - - - ( - 40 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL - + COUNT ( * ) - - - ( - 40 ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT NULLIF ( - 81, 78 ) * + SUM( ALL + 59 ) + + 2 + + + 30 * + 43 AS col0
----
-3487

skipif mysql # not compatible
query I rowsort label-3303
SELECT NULLIF ( - 81, 78 ) * + SUM ( ALL + 59 ) + + 2 + + + 30 * + 43 AS col0
----
-3487

query I rowsort
SELECT - + 11 AS col0
----
-11

query I rowsort
SELECT 66
----
66

query I rowsort
SELECT ALL 52 AS col2
----
52

query I rowsort
SELECT + 80 AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3308
SELECT - + ( CASE CASE + 60 WHEN + + ( - 21 ) * + COUNT( * ) + + + 29 - - 63 * + - 6 THEN - 29 ELSE + + SUM( ALL 21 ) END WHEN + COUNT( * ) THEN NULL ELSE COUNT( * ) - + CAST( 96 AS SIGNED ) END ) AS col1, 11
----
95
11

skipif mysql # not compatible
query II rowsort label-3308
SELECT - + ( CASE CASE + 60 WHEN + + ( - 21 ) * + COUNT ( * ) + + + 29 - - 63 * + - 6 THEN - 29 ELSE + + SUM ( ALL 21 ) END WHEN + COUNT ( * ) THEN NULL ELSE COUNT ( * ) - + CAST ( 96 AS INTEGER ) END ) AS col1, 11
----
95
11

query I rowsort
SELECT DISTINCT 35 AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3310
SELECT ALL + CASE + SUM( + - CAST( NULL AS SIGNED ) ) WHEN 89 THEN - - 97 WHEN + + 94 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL + CASE + SUM ( + - CAST ( NULL AS INTEGER ) ) WHEN 89 THEN - - 97 WHEN + + 94 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 14 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT ALL + COUNT( * ) * 90 col2
----
90

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL + COUNT ( * ) * 90 col2
----
90

query I rowsort
SELECT ALL 53 AS col1
----
53

query I rowsort
SELECT ALL 75 col0
----
75

query I rowsort
SELECT - 98 AS col0
----
-98

query II rowsort
SELECT - 41 * + 18 col0, 48 AS col1
----
-738
48

query I rowsort
SELECT ALL 11 + + + 39 * + + 66 AS col1
----
2585

query I rowsort
SELECT ALL + 71 * - 15 * ( 42 ) * + 88 + - 44 col0
----
-3936284

query I rowsort
SELECT ALL + 93
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3320
SELECT 36 * CAST( NULL AS DECIMAL ) col1, 5 + + COUNT( * ) - 62 - + - COUNT( * ) - 69 * + CAST( NULL AS SIGNED ) * 7 / + ( + + 8 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3320
SELECT 36 * CAST ( NULL AS REAL ) col1, 5 + + COUNT ( * ) - 62 - + - COUNT ( * ) - 69 * + CAST ( NULL AS INTEGER ) * 7 / + ( + + 8 )
----
NULL
NULL

query I rowsort
SELECT + 7 + + - 58 + + COALESCE ( + + 12, - - 69 - + 33 * + - 52 * + + COALESCE ( 33, + 95, + ( + 61 ) + + 59 ) - + + 90 + + 23 ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT - + ( + CASE - + 8 WHEN - 64 * - - 62 * - 36 THEN COALESCE ( - COUNT( - 39 ), - 62 * 27 + + 61 - + - 52 + - 56 + + COUNT( * ) * - + 35 * + - COUNT( * ) * + + 95 * + + 49 + - 81, 20 + - 91 ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3322
SELECT - + ( + CASE - + 8 WHEN - 64 * - - 62 * - 36 THEN COALESCE ( - COUNT ( - 39 ), - 62 * 27 + + 61 - + - 52 + - 56 + + COUNT ( * ) * - + 35 * + - COUNT ( * ) * + + 95 * + + 49 + - 81, 20 + - 91 ) END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3323
SELECT 26 / - - CASE + 53 WHEN CAST( 77 AS SIGNED ) + + 6 * - COUNT( * ) THEN - 92 END AS col1, - 28
----
NULL
-28

skipif mysql # not compatible
query II rowsort label-3323
SELECT 26 / - - CASE + 53 WHEN CAST ( 77 AS INTEGER ) + + 6 * - COUNT ( * ) THEN - 92 END AS col1, - 28
----
NULL
-28

query I rowsort
SELECT ALL + 70 * + 24 + - + 61 AS col1
----
1619

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT NULLIF ( COUNT( + 22 ), + - MAX( + + 95 ) + - 35 * + SUM( ALL + + 24 ) + - NULLIF ( - + 85, - - 38 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3325
SELECT NULLIF ( COUNT ( + 22 ), + - MAX ( + + 95 ) + - 35 * + SUM ( ALL + + 24 ) + - NULLIF ( - + 85, - - 38 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT 25 * - COUNT( * ) + - + 16 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-3326
SELECT 25 * - COUNT ( * ) + - + 16 AS col2
----
-41

query I rowsort
SELECT ALL - 17
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3328
SELECT DISTINCT 1 * + ( ( - 51 ) ) DIV + 1 + + 39 DIV + 83 + + ( - 91 ) + + 62 + - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT 1 * + ( ( - 51 ) ) / + 1 + + 39 / + 83 + + ( - 91 ) + + 62 + - COUNT ( * )
----
-81

query I rowsort
SELECT ALL - 33 * - 86 + 19 col2
----
2857

query I rowsort
SELECT DISTINCT - 29 AS col1
----
-29

query I rowsort
SELECT ALL - 36 AS col2
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3332
SELECT - CASE 21 WHEN ( 21 ) THEN - + 39 DIV - + COALESCE ( - NULLIF ( + 67, - 84 ), 96 * - 47 * - - 23 * COUNT( * ) ) END * 68 + + 25 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-3332
SELECT - CASE 21 WHEN ( 21 ) THEN - + 39 / - + COALESCE ( - NULLIF ( + 67, - 84 ), 96 * - 47 * - - 23 * COUNT ( * ) ) END * 68 + + 25 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT SUM( - - 47 ) * - 87
----
-4089

skipif mysql # not compatible
query I rowsort label-3333
SELECT SUM ( - - 47 ) * - 87
----
-4089

query II rowsort
SELECT ALL - COALESCE ( 54, - 72 ) AS col0, + ( - 27 ) AS col2
----
-54
-27

query I rowsort
SELECT + 69 AS col2
----
69

query I rowsort
SELECT DISTINCT 13 * + 8 - 90 - + 98
----
-84

query I rowsort
SELECT + 23 col2
----
23

query I rowsort
SELECT + 24 AS col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-3339
SELECT ALL - 32 AS col1, + 59 * + COUNT( * ) + + - ( + + 66 ) + SUM( 68 ) AS col1
----
-32
61

skipif mysql # not compatible
query II rowsort label-3339
SELECT ALL - 32 AS col1, + 59 * + COUNT ( * ) + + - ( + + 66 ) + SUM ( 68 ) AS col1
----
-32
61

query I rowsort
SELECT DISTINCT + 9
----
9

query I rowsort
SELECT DISTINCT + 48 AS col1
----
48

query I rowsort
SELECT ALL + 51
----
51

query I rowsort
SELECT DISTINCT + 54 AS col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3344
SELECT ALL + 63 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL + 63 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3345
SELECT ALL ( - 40 ) DIV + + 84
----
0

skipif mysql # not compatible
query I rowsort label-3345
SELECT ALL ( - 40 ) / + + 84
----
0

query I rowsort
SELECT ALL + 70 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT MIN( COALESCE ( + 31, 16, + 41 ) ) col0
----
31

skipif mysql # not compatible
query I rowsort label-3347
SELECT MIN ( COALESCE ( + 31, 16, + 41 ) ) col0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3348
SELECT + - 49 DIV 68 + + NULLIF ( + - 76, + 84 DIV + + ( MAX( + - 66 ) ) )
----
-76

skipif mysql # not compatible
query I rowsort label-3348
SELECT + - 49 / 68 + + NULLIF ( + - 76, + 84 / + + ( MAX ( + - 66 ) ) )
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3349
SELECT ALL - CAST( NULL AS SIGNED ) / + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL - CAST ( NULL AS INTEGER ) / + 58 AS col1
----
NULL

query I rowsort
SELECT - - 38 + 86 * + 62 * + NULLIF ( 14, 20 - - 80 )
----
74686

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3351
SELECT ALL + 59, + CAST( NULL AS SIGNED ) AS col1
----
59
NULL

skipif mysql # not compatible
query II rowsort label-3351
SELECT ALL + 59, + CAST ( NULL AS INTEGER ) AS col1
----
59
NULL

query I rowsort
SELECT DISTINCT - 90
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT DISTINCT + CASE - 29 WHEN + + AVG ( ALL - + 32 ) * + 1 THEN 58 - - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3353
SELECT DISTINCT + CASE - 29 WHEN + + AVG ( ALL - + 32 ) * + 1 THEN 58 - - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + ( - 13 )
----
-13

query I rowsort
SELECT ALL 42 + + 55
----
97

query I rowsort
SELECT DISTINCT - 54 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT + COUNT( * ) + - - 11 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-3357
SELECT + COUNT ( * ) + - - 11 AS col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3358
SELECT ALL + 12 + - - CASE + 29 WHEN + CAST( 38 AS SIGNED ) * + 95 + - + 88 + - - COUNT( - 34 ) * + 3 + 24 + - - 62 * + ( - ( + 51 ) ) THEN CAST( NULL AS SIGNED ) + + 59 + + 70 + - + 14 * - AVG ( ALL - 24 ) END * + + 41 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL + 12 + - - CASE + 29 WHEN + CAST ( 38 AS INTEGER ) * + 95 + - + 88 + - - COUNT ( - 34 ) * + 3 + 24 + - - 62 * + ( - ( + 51 ) ) THEN CAST ( NULL AS INTEGER ) + + 59 + + 70 + - + 14 * - AVG ( ALL - 24 ) END * + + 41 col1
----
NULL

query II rowsort
SELECT - 4 AS col2, + 21 * + 4 + 92
----
-4
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3360
SELECT ALL CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 42 + + ( 36 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3362
SELECT + - ( + - 29 ) * MIN( DISTINCT - CASE + COALESCE ( + - CAST( NULL AS SIGNED ), - + 44, - - 83 - - 9 ) WHEN - ( + 25 ) THEN NULL WHEN - 15 + - + 18 THEN + + 91 * + 68 ELSE NULL END ) / - 86 * MAX( DISTINCT - - 66 ) * - ( SUM( CAST( + 36 AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3362
SELECT + - ( + - 29 ) * MIN ( DISTINCT - CASE + COALESCE ( + - CAST ( NULL AS INTEGER ), - + 44, - - 83 - - 9 ) WHEN - ( + 25 ) THEN NULL WHEN - 15 + - + 18 THEN + + 91 * + 68 ELSE NULL END ) / - 86 * MAX ( DISTINCT - - 66 ) * - ( SUM ( CAST ( + 36 AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3363
SELECT + + 31 + + 5 + + - ( + - 59 ) * - 1 * + 55 DIV + COUNT( * )
----
-3209

skipif mysql # not compatible
query I rowsort label-3363
SELECT + + 31 + + 5 + + - ( + - 59 ) * - 1 * + 55 / + COUNT ( * )
----
-3209

query II rowsort
SELECT 17 AS col0, 6 - + 0 * - 58
----
17
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3365
SELECT - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3365
SELECT - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 23
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3367
SELECT + - 87 DIV + 56
----
-1

skipif mysql # not compatible
query I rowsort label-3367
SELECT + - 87 / + 56
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT ALL COUNT( * ) + - 53 + - 51 AS col2
----
-103

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL COUNT ( * ) + - 53 + - 51 AS col2
----
-103

query I rowsort
SELECT - + 97
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT DISTINCT - ( - COUNT( * ) ) + + + COUNT( - - 51 )
----
2

skipif mysql # not compatible
query I rowsort label-3370
SELECT DISTINCT - ( - COUNT ( * ) ) + + + COUNT ( - - 51 )
----
2

query I rowsort
SELECT - ( + 52 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT ALL 13 + 49 * COUNT( * ) * + 17 AS col1
----
846

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL 13 + 49 * COUNT ( * ) * + 17 AS col1
----
846

query I rowsort
SELECT DISTINCT 51 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT - ( MIN( DISTINCT - 75 ) ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-3374
SELECT - ( MIN ( DISTINCT - 75 ) ) AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3375
SELECT - 9 DIV + SUM( ALL 50 ) + - - 56 DIV - + 37 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3375
SELECT - 9 / + SUM ( ALL 50 ) + - - 56 / - + 37 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3376
SELECT + 71 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-3376
SELECT + 71 / - 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT - 77 * + COUNT( * ) * - NULLIF ( 90, - - 46 - - + 58 + - + 70 ) * - 86
----
-595980

skipif mysql # not compatible
query I rowsort label-3377
SELECT - 77 * + COUNT ( * ) * - NULLIF ( 90, - - 46 - - + 58 + - + 70 ) * - 86
----
-595980

query I rowsort
SELECT ( 85 )
----
85

query I rowsort
SELECT + 13 col0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3380
SELECT DISTINCT 40 DIV + 11 - COUNT( * ) * MIN( + 90 ) * + + 90 * + COUNT( * ) * 50 AS col1
----
-404997

skipif mysql # not compatible
query I rowsort label-3380
SELECT DISTINCT 40 / + 11 - COUNT ( * ) * MIN ( + 90 ) * + + 90 * + COUNT ( * ) * 50 AS col1
----
-404997

onlyif mysql # aggregate syntax: 
query II rowsort label-3381
SELECT ALL + 94 * 62 * + 35 * COUNT( * ) col1, CASE + 42 WHEN - ( 52 ) THEN 54 END + + 67
----
203980
NULL

skipif mysql # not compatible
query II rowsort label-3381
SELECT ALL + 94 * 62 * + 35 * COUNT ( * ) col1, CASE + 42 WHEN - ( 52 ) THEN 54 END + + 67
----
203980
NULL

query I rowsort
SELECT ( 89 )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-3383
SELECT ( 57 ), SUM( + + 68 ) * + ( + 63 ) AS col0
----
57
4284

skipif mysql # not compatible
query II rowsort label-3383
SELECT ( 57 ), SUM ( + + 68 ) * + ( + 63 ) AS col0
----
57
4284

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT ALL 15 * - 15 - - - MAX( DISTINCT COALESCE ( + + 91, - 84 ) ) AS col2
----
-316

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL 15 * - 15 - - - MAX ( DISTINCT COALESCE ( + + 91, - 84 ) ) AS col2
----
-316

query I rowsort
SELECT - 47 * - 60
----
2820

query I rowsort
SELECT ALL + 41 AS col1
----
41

query II rowsort
SELECT ALL + ( 69 ) col0, 45 * + 27
----
69
1215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3388
SELECT + 71 DIV + CAST( + 25 AS SIGNED ) + - CASE 64 WHEN + + COUNT( * ) THEN NULL WHEN + 67 * + + COUNT( * ) THEN - 40 WHEN 12 THEN - 94 ELSE COALESCE ( + + 94, - 31 * + 35 * - 63 + - 89, + 66 ) END * - + 93 AS col2
----
8744

skipif mysql # not compatible
query I rowsort label-3388
SELECT + 71 / + CAST ( + 25 AS INTEGER ) + - CASE 64 WHEN + + COUNT ( * ) THEN NULL WHEN + 67 * + + COUNT ( * ) THEN - 40 WHEN 12 THEN - 94 ELSE COALESCE ( + + 94, - 31 * + 35 * - 63 + - 89, + 66 ) END * - + 93 AS col2
----
8744

query I rowsort
SELECT ( - 75 )
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3390
SELECT + CAST( - 20 AS SIGNED ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-3390
SELECT + CAST ( - 20 AS INTEGER ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT - 5 + + - COUNT( 46 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-3391
SELECT - 5 + + - COUNT ( 46 ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT NULLIF ( - 94, - COUNT( * ) + COUNT( * ) )
----
-94

skipif mysql # not compatible
query I rowsort label-3392
SELECT NULLIF ( - 94, - COUNT ( * ) + COUNT ( * ) )
----
-94

onlyif mysql # aggregate syntax: 
query III rowsort label-3393
SELECT 23 * COUNT( * ) + - ( - 43 ), - 94 AS col1, 63 col0
----
66
-94
63

skipif mysql # not compatible
query III rowsort label-3393
SELECT 23 * COUNT ( * ) + - ( - 43 ), - 94 AS col1, 63 col0
----
66
-94
63

query I rowsort
SELECT - 60 * + + 56 * - 28 AS col1
----
94080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3395
SELECT - COALESCE ( - 39, - ( - ( + CAST( NULL AS SIGNED ) ) ) ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3395
SELECT - COALESCE ( - 39, - ( - ( + CAST ( NULL AS INTEGER ) ) ) ) + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( + 6 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3397
SELECT ALL - 84 * + 0 * 13 + - CAST( NULL AS SIGNED ) * + - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL - 84 * + 0 * 13 + - CAST ( NULL AS INTEGER ) * + - 34
----
NULL

query I rowsort
SELECT ALL + + 52 AS col0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3399
SELECT ALL CAST( 46 AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL CAST ( 46 AS INTEGER )
----
46

query I rowsort
SELECT ALL - 98 * 2 - - 8 + ( + 40 ) + + - 54 AS col0
----
-202

query I rowsort
SELECT - - ( + 52 ) col1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3402
SELECT ALL + + COUNT( * ) * + 49 * - COUNT( * ) DIV + 90 + + 85 + + 7
----
92

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL + + COUNT ( * ) * + 49 * - COUNT ( * ) / + 90 + + 85 + + 7
----
92

query I rowsort
SELECT + 32 * + - 15 AS col1
----
-480

query I rowsort
SELECT - + 32
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3405
SELECT ALL COALESCE ( + 97, - 0 * - - 15 ) + 90 - - 54 DIV - - COUNT( * )
----
241

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL COALESCE ( + 97, - 0 * - - 15 ) + 90 - - 54 / - - COUNT ( * )
----
241

query I rowsort
SELECT ( - 53 )
----
-53

query I rowsort
SELECT 19 AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3408
SELECT + 59 DIV + ( - - 98 )
----
0

skipif mysql # not compatible
query I rowsort label-3408
SELECT + 59 / + ( - - 98 )
----
0

query I rowsort
SELECT - - ( 87 ) * + + 59 * + 28
----
143724

query I rowsort
SELECT DISTINCT + 89 * + 64 + + 74 + - 55 AS col1
----
5715

query I rowsort
SELECT + + 25 - + 90 + - 78 / - 70 * + CASE + + 33 WHEN - + 73 THEN 59 ELSE NULL END * 43 * 24 * + 1 + + 98 + + 27 AS col2
----
NULL

query I rowsort
SELECT ALL 22
----
22

query I rowsort
SELECT - 67 AS col1
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3414
SELECT 67 col1, - 76 / + - CAST( NULL AS SIGNED ) AS col2
----
67
NULL

skipif mysql # not compatible
query II rowsort label-3414
SELECT 67 col1, - 76 / + - CAST ( NULL AS INTEGER ) AS col2
----
67
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3415
SELECT ALL SUM( ALL + 83 ) - - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL SUM ( ALL + 83 ) - - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 1 * + 25 AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3417
SELECT ALL 7 * - + COALESCE ( + CAST( + + 10 AS SIGNED ), - COUNT( * ) * + COUNT( * ) * 31 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL 7 * - + COALESCE ( + CAST ( + + 10 AS INTEGER ), - COUNT ( * ) * + COUNT ( * ) * 31 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-3418
SELECT - 72 + - 20 - + 6 + 28 * - COUNT( * ) col1, NULLIF ( - 1, - + AVG ( DISTINCT + - 86 ) ) AS col2
----
-126
-1

skipif mysql # not compatible
query II rowsort label-3418
SELECT - 72 + - 20 - + 6 + 28 * - COUNT ( * ) col1, NULLIF ( - 1, - + AVG ( DISTINCT + - 86 ) ) AS col2
----
-126
-1

query I rowsort
SELECT + 48 + + 64 col2
----
112

query I rowsort
SELECT + 54 * - ( - - 31 )
----
-1674

query I rowsort
SELECT ALL 10
----
10

query I rowsort
SELECT - 12 col1
----
-12

query I rowsort
SELECT 97 AS col1
----
97

query I rowsort
SELECT ALL - 42 col0
----
-42

query I rowsort
SELECT ALL - 45
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3426
SELECT 99 * - - ( - ( 68 ) ) + - 94 AS col0, - 83 * + + 34 + + 13 * AVG ( DISTINCT - CAST( NULL AS SIGNED ) )
----
-6826
NULL

skipif mysql # not compatible
query II rowsort label-3426
SELECT 99 * - - ( - ( 68 ) ) + - 94 AS col0, - 83 * + + 34 + + 13 * AVG ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
-6826
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3427
SELECT 86 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3427
SELECT 86 * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3428
SELECT + COUNT( DISTINCT - 38 ) DIV - 20 + - MAX( DISTINCT - - 1 ) AS col1, COUNT( * ) * + 60 AS col0
----
-1
60

skipif mysql # not compatible
query II rowsort label-3428
SELECT + COUNT ( DISTINCT - 38 ) / - 20 + - MAX ( DISTINCT - - 1 ) AS col1, COUNT ( * ) * + 60 AS col0
----
-1
60

query I rowsort
SELECT + 77 AS col0
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3430
SELECT COUNT( * ) DIV + - 85
----
0

skipif mysql # not compatible
query I rowsort label-3430
SELECT COUNT ( * ) / + - 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT ALL 94 * 70 * - MIN( ALL - + 6 ) AS col2
----
39480

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL 94 * 70 * - MIN ( ALL - + 6 ) AS col2
----
39480

query I rowsort
SELECT 76 * + + ( + 64 )
----
4864

query I rowsort
SELECT + 88 AS col1
----
88

query I rowsort
SELECT ALL 46 * 41 * + 0 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3435
SELECT 31 DIV - 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3435
SELECT 31 / - 86 AS col2
----
0

query I rowsort
SELECT 55 * - + 85 - + - 44 AS col2
----
-4631

query I rowsort
SELECT DISTINCT - - 93 col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT ALL + - COUNT( * ) + - 30
----
-31

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL + - COUNT ( * ) + - 30
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-3439
SELECT + ( 67 ) - 97 col1, 96 * + COUNT( * ) * 17
----
-30
1632

skipif mysql # not compatible
query II rowsort label-3439
SELECT + ( 67 ) - 97 col1, 96 * + COUNT ( * ) * 17
----
-30
1632

query I rowsort
SELECT ALL 36 + + 13
----
49

query I rowsort
SELECT + 32
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT ALL + - 1 + + - ( + + COUNT( * ) ) - + - 30
----
28

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL + - 1 + + - ( + + COUNT ( * ) ) - + - 30
----
28

query I rowsort
SELECT ALL - ( + - 4 ) AS col0
----
4

query I rowsort
SELECT ALL 63 + 68 AS col1
----
131

query I rowsort
SELECT + 16
----
16

query I rowsort
SELECT 9
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT ALL + NULLIF ( + 20, COUNT( * ) * - + ( + 4 ) + + 64 + + - 37 + 44 ) + - 10
----
10

skipif mysql # not compatible
query I rowsort label-3447
SELECT ALL + NULLIF ( + 20, COUNT ( * ) * - + ( + 4 ) + + 64 + + - 37 + 44 ) + - 10
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3448
SELECT ALL - + CAST( 32 AS SIGNED ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL - + CAST ( 32 AS INTEGER ) AS col0
----
-32

query I rowsort
SELECT ALL - 9 + 99
----
90

query I rowsort
SELECT 46 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT - MIN( - + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-3451
SELECT - MIN ( - + 26 )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3452
SELECT + COALESCE ( + + 98, - CAST( NULL AS SIGNED ) + MIN( 99 ), - - 41 * 24 )
----
98

skipif mysql # not compatible
query I rowsort label-3452
SELECT + COALESCE ( + + 98, - CAST ( NULL AS INTEGER ) + MIN ( 99 ), - - 41 * 24 )
----
98

query I rowsort
SELECT DISTINCT - 22
----
-22

query I rowsort
SELECT ALL - 60 * + 77 AS col2
----
-4620

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT COUNT( ALL - 81 ) + - 96 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-3455
SELECT COUNT ( ALL - 81 ) + - 96 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT ALL - - COUNT( * ) - - 9 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL - - COUNT ( * ) - - 9 AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3457
SELECT ALL - COALESCE ( CASE + - 28 WHEN 54 THEN NULL WHEN - COUNT( * ) * NULLIF ( - - COUNT( * ), - 56 ) + - 12 + - - 14 THEN - 37 ELSE NULL END, + CAST( + 90 AS SIGNED ) + + 74, + + 72 ) AS col0
----
-164

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL - COALESCE ( CASE + - 28 WHEN 54 THEN NULL WHEN - COUNT ( * ) * NULLIF ( - - COUNT ( * ), - 56 ) + - 12 + - - 14 THEN - 37 ELSE NULL END, + CAST ( + 90 AS INTEGER ) + + 74, + + 72 ) AS col0
----
-164

query II rowsort
SELECT - 23 AS col0, - 7 * - - 84 * + + 45 AS col0
----
-23
-26460

query I rowsort
SELECT ALL - 62
----
-62

query I rowsort
SELECT 15 AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3461
SELECT CASE - 34 WHEN + 65 THEN + 18 + - + 1 WHEN - - 33 THEN - ( CAST( NULL AS SIGNED ) ) ELSE + + 91 + - 74 END + - + NULLIF ( - 69, SUM( CASE - + 31 WHEN 74 + - 23 THEN + - ( + 31 ) WHEN + CASE WHEN 51 IS NULL THEN NULL WHEN NULL <= NULL THEN 87 * + 7 END THEN NULL END ) + - - 14 ) - + 43
----
43

skipif mysql # not compatible
query I rowsort label-3461
SELECT CASE - 34 WHEN + 65 THEN + 18 + - + 1 WHEN - - 33 THEN - ( CAST ( NULL AS INTEGER ) ) ELSE + + 91 + - 74 END + - + NULLIF ( - 69, SUM ( CASE - + 31 WHEN 74 + - 23 THEN + - ( + 31 ) WHEN + CASE WHEN 51 IS NULL THEN NULL WHEN NULL <= NULL THEN 87 * + 7 END THEN NULL END ) + - - 14 ) - + 43
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3462
SELECT - 51 AS col1, - CAST( SUM( - + CAST( - 93 AS SIGNED ) ) AS SIGNED ) - - COALESCE ( + COUNT( * ), - + 64 - + 41 + - 30 * + 20, + 97 )
----
-51
-92

skipif mysql # not compatible
query II rowsort label-3462
SELECT - 51 AS col1, - CAST ( SUM ( - + CAST ( - 93 AS INTEGER ) ) AS INTEGER ) - - COALESCE ( + COUNT ( * ), - + 64 - + 41 + - 30 * + 20, + 97 )
----
-51
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT MIN( DISTINCT 15 ) + - + 93
----
-78

skipif mysql # not compatible
query I rowsort label-3463
SELECT MIN ( DISTINCT 15 ) + - + 93
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-3464
SELECT SUM( DISTINCT + 90 ) * + COUNT( * ) * + 71, + 47 AS col2
----
6390
47

skipif mysql # not compatible
query II rowsort label-3464
SELECT SUM ( DISTINCT + 90 ) * + COUNT ( * ) * + 71, + 47 AS col2
----
6390
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3465
SELECT DISTINCT + 21 DIV 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3465
SELECT DISTINCT + 21 / 81 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT 71 * COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-3466
SELECT 71 * COUNT ( * ) AS col0
----
71

query I rowsort
SELECT ALL 12 * + ( ( - + 47 ) ) AS col1
----
-564

onlyif mysql # aggregate syntax: 
query II rowsort label-3468
SELECT 45 AS col2, 70 * + COUNT( * ) + - ( + COUNT( * ) ) AS col1
----
45
69

skipif mysql # not compatible
query II rowsort label-3468
SELECT 45 AS col2, 70 * + COUNT ( * ) + - ( + COUNT ( * ) ) AS col1
----
45
69

query I rowsort
SELECT ALL 64
----
64

query I rowsort
SELECT 96 * - 46 * ( - COALESCE ( - 40, + 71 ) ) AS col1
----
-176640

query I rowsort
SELECT ALL - 59 * + 76
----
-4484

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT ALL MAX( ALL - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL MAX ( ALL - 24 )
----
-24

query II rowsort
SELECT + 75, - 24 + + 69 AS col0
----
75
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT ALL 70 * - 33 * - 63 * - 34 * - - COUNT( * )
----
-4948020

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL 70 * - 33 * - 63 * - 34 * - - COUNT ( * )
----
-4948020

query I rowsort
SELECT 86 * + 19
----
1634

onlyif mysql # DIV for integer division: 
query I rowsort label-3476
SELECT 59 DIV - 6 + + + 73 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-3476
SELECT 59 / - 6 + + + 73 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT COUNT( + ( + 34 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3477
SELECT COUNT ( + ( + 34 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3478
SELECT + 86 AS col2, 24 * - - ( + + 4 ) - - COUNT( * )
----
86
97

skipif mysql # not compatible
query II rowsort label-3478
SELECT + 86 AS col2, 24 * - - ( + + 4 ) - - COUNT ( * )
----
86
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT COUNT( - + 58 )
----
1

skipif mysql # not compatible
query I rowsort label-3479
SELECT COUNT ( - + 58 )
----
1

query I rowsort
SELECT ALL ( - 41 ) + - - 34 * + 11 * + - 28 + 81 + ( - 99 ) AS col2
----
-10531

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT ALL COUNT( * ) + + 40 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL COUNT ( * ) + + 40 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT ( + COUNT( * ) ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3482
SELECT ( + COUNT ( * ) ) - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT DISTINCT + 38 + - COUNT( * ) + - 22 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3483
SELECT DISTINCT + 38 + - COUNT ( * ) + - 22 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT DISTINCT 4 + + 74 + CASE + + 47 WHEN + 80 THEN NULL WHEN - 71 THEN - 1 * - 97 + - MIN( ALL - + 87 ) + 15 / - + COUNT( + 23 ) END * 54 - - 78 + - COALESCE ( - 36, - - COUNT( * ) + + 52, - + ( + + 80 ) ) * - 49 + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT 4 + + 74 + CASE + + 47 WHEN + 80 THEN NULL WHEN - 71 THEN - 1 * - 97 + - MIN ( ALL - + 87 ) + 15 / - + COUNT ( + 23 ) END * 54 - - 78 + - COALESCE ( - 36, - - COUNT ( * ) + + 52, - + ( + + 80 ) ) * - 49 + + 68
----
NULL

query I rowsort
SELECT DISTINCT 52 + + NULLIF ( + 21, - 9 + 78 ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT + + COUNT( + 62 )
----
1

skipif mysql # not compatible
query I rowsort label-3486
SELECT + + COUNT ( + 62 )
----
1

query I rowsort
SELECT + + 80
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3488
SELECT 19 * - + CAST( + - 51 AS SIGNED ) + - + 53 col0
----
916

skipif mysql # not compatible
query I rowsort label-3488
SELECT 19 * - + CAST ( + - 51 AS INTEGER ) + - + 53 col0
----
916

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT DISTINCT - SUM( - 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3489
SELECT DISTINCT - SUM ( - 12 ) AS col1
----
12

query I rowsort
SELECT ALL + ( ( + ( - 14 ) ) ) * + 21
----
-294

onlyif mysql # aggregate syntax: 
query II rowsort label-3491
SELECT 68 AS col1, COUNT( * )
----
68
1

skipif mysql # not compatible
query II rowsort label-3491
SELECT 68 AS col1, COUNT ( * )
----
68
1

query II rowsort
SELECT + COALESCE ( - 16, - + 41, + 39 ) AS col0, 73 + + 68 AS col0
----
-16
141

query I rowsort
SELECT 16 + 44 AS col0
----
60

query I rowsort
SELECT ALL - ( - 50 ) - - 9
----
59

query I rowsort
SELECT - 67 * + 2 + 39 + - 88 AS col1
----
-183

onlyif mysql # aggregate syntax: 
query II rowsort label-3496
SELECT DISTINCT - 47, + MIN( - 15 ) AS col2
----
-47
-15

skipif mysql # not compatible
query II rowsort label-3496
SELECT DISTINCT - 47, + MIN ( - 15 ) AS col2
----
-47
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3497
SELECT DISTINCT + 23 AS col1, MIN( - - 79 ) AS col0
----
23
79

skipif mysql # not compatible
query II rowsort label-3497
SELECT DISTINCT + 23 AS col1, MIN ( - - 79 ) AS col0
----
23
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT ALL - + SUM( - - 48 ) - + 83 AS col2
----
-131

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL - + SUM ( - - 48 ) - + 83 AS col2
----
-131

query I rowsort
SELECT DISTINCT NULLIF ( 16, - - 49 * - COALESCE ( - 52, 28 ) )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT DISTINCT 82 - + 72 * SUM( ALL 52 ) AS col1
----
-3662

skipif mysql # not compatible
query I rowsort label-3500
SELECT DISTINCT 82 - + 72 * SUM ( ALL 52 ) AS col1
----
-3662

query I rowsort
SELECT - - 87
----
87

query I rowsort
SELECT - + ( + 15 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3503
SELECT ALL + CAST( + + 64 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL + CAST ( + + 64 AS INTEGER )
----
64

query I rowsort
SELECT 5 * - 84 - + 92 AS col2
----
-512

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT - NULLIF ( ( - CASE ( + - 32 ) WHEN + 51 / - 24 + + 59 THEN NULL ELSE + COUNT( * ) END ), 49 * 90 - + 43 + - - 46 + + + 89 * 60 * + 94 + 68 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3505
SELECT - NULLIF ( ( - CASE ( + - 32 ) WHEN + 51 / - 24 + + 59 THEN NULL ELSE + COUNT ( * ) END ), 49 * 90 - + 43 + - - 46 + + + 89 * 60 * + 94 + 68 ) AS col1
----
1

query I rowsort
SELECT - 96 AS col2
----
-96

query I rowsort
SELECT 98 AS col1
----
98

query I rowsort
SELECT - 99 AS col0
----
-99

query I rowsort
SELECT 36 AS col2
----
36

query I rowsort
SELECT ALL + 35 * + 45
----
1575

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT - COUNT( * ) - 82 - ( 95 )
----
-178

skipif mysql # not compatible
query I rowsort label-3511
SELECT - COUNT ( * ) - 82 - ( 95 )
----
-178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3512
SELECT ALL COALESCE ( - ( 70 ), - 46 DIV + - COALESCE ( + AVG ( ALL 12 ), COUNT( * ) - + MAX( - CAST( NULL AS SIGNED ) ) + - + 17 + 61 * - 30 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL COALESCE ( - ( 70 ), - 46 / + - COALESCE ( + AVG ( ALL 12 ), COUNT ( * ) - + MAX ( - CAST ( NULL AS INTEGER ) ) + - + 17 + 61 * - 30 ) )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3513
SELECT ALL CASE 97 WHEN + 9 / - 25 * - - 51 * - - ( + ( + COUNT( ALL + 40 ) ) ) + + MIN( - + CAST( NULL AS SIGNED ) ) THEN 50 * + 36 * + CAST( + 83 AS SIGNED ) + 23 - + - 8 * 96 + + + SUM( DISTINCT - 74 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL CASE 97 WHEN + 9 / - 25 * - - 51 * - - ( + ( + COUNT ( ALL + 40 ) ) ) + + MIN ( - + CAST ( NULL AS INTEGER ) ) THEN 50 * + 36 * + CAST ( + 83 AS INTEGER ) + 23 - + - 8 * 96 + + + SUM ( DISTINCT - 74 ) END AS col1
----
NULL

query I rowsort
SELECT 30
----
30

query I rowsort
SELECT - 65 - + 36 AS col1
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3516
SELECT ALL CASE - 69 WHEN COUNT( * ) THEN + CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL CASE - 69 WHEN COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT - 82 + - - 6 + + 1 col1
----
-75

query I rowsort
SELECT 22
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3519
SELECT ALL - NULLIF ( + 31, + 66 + - CAST( + 21 AS SIGNED ) - + 75 * - COUNT( * ) ) + 60 * + MIN( DISTINCT + 43 )
----
2549

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL - NULLIF ( + 31, + 66 + - CAST ( + 21 AS INTEGER ) - + 75 * - COUNT ( * ) ) + 60 * + MIN ( DISTINCT + 43 )
----
2549

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3520
SELECT ( - COUNT ( * ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3521
SELECT - 46 DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-3521
SELECT - 46 / - 91
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3522
SELECT 73 DIV - COUNT( * ) + - + 69 AS col1
----
-142

skipif mysql # not compatible
query I rowsort label-3522
SELECT 73 / - COUNT ( * ) + - + 69 AS col1
----
-142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3523
SELECT ALL - 55 * 97 + + 53 + + + 36 * + CAST( NULL AS SIGNED ) * + - 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3523
SELECT ALL - 55 * 97 + + 53 + + + 36 * + CAST ( NULL AS INTEGER ) * + - 25 AS col1
----
NULL

query I rowsort
SELECT ALL + 95 AS col2
----
95

query I rowsort
SELECT + - COALESCE ( - - 91, + ( + ( - 27 ) ) )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3526
SELECT ALL 34 * + 34 + 26 - 82 * - + CAST( NULL AS SIGNED ) * - MIN( DISTINCT 89 ), - 54 + + 78 AS col0
----
NULL
24

skipif mysql # not compatible
query II rowsort label-3526
SELECT ALL 34 * + 34 + 26 - 82 * - + CAST ( NULL AS INTEGER ) * - MIN ( DISTINCT 89 ), - 54 + + 78 AS col0
----
NULL
24

query I rowsort
SELECT + + 18
----
18

query I rowsort
SELECT 64
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3529
SELECT DISTINCT + - 71 * - CAST( + 34 AS SIGNED ) + + - 26
----
2388

skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT + - 71 * - CAST ( + 34 AS INTEGER ) + + - 26
----
2388

query I rowsort
SELECT ALL + 51 col2
----
51

query I rowsort
SELECT + - 95
----
-95

query I rowsort
SELECT + 28
----
28

query I rowsort
SELECT + - 28 * - 68 + + 42
----
1946

query I rowsort
SELECT 1 AS col0
----
1

query I rowsort
SELECT + 78 AS col1
----
78

query I rowsort
SELECT ALL + - 82 col2
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3537
SELECT - + COUNT( * ) DIV - 53 - COALESCE ( - + 30, 78 ) * - COUNT( 65 ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-3537
SELECT - + COUNT ( * ) / - 53 - COALESCE ( - + 30, 78 ) * - COUNT ( 65 ) col2
----
-30

query I rowsort
SELECT DISTINCT + 82 * 22 + - 45 + ( + 16 ) + - 16
----
1759

query I rowsort
SELECT ALL + 31
----
31

query I rowsort
SELECT DISTINCT + + 4
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3541
SELECT ALL 9 DIV - 17 - - 19 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL 9 / - 17 - - 19 AS col2
----
19

query I rowsort
SELECT ALL + + 48
----
48

query I rowsort
SELECT ALL + - 22 col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT + - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3544
SELECT + - COUNT ( * ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3545
SELECT ALL + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3546
SELECT DISTINCT + - CAST( + 37 AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT + - CAST ( + 37 AS INTEGER )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3547
SELECT + - 77 + - COUNT( * ) DIV + COALESCE ( - - ( ( + - 12 ) ), + MIN( 30 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-3547
SELECT + - 77 + - COUNT ( * ) / + COALESCE ( - - ( ( + - 12 ) ), + MIN ( 30 ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT + COUNT( * ) - - 39 * 16 + + ( 38 ) AS col1
----
663

skipif mysql # not compatible
query I rowsort label-3548
SELECT + COUNT ( * ) - - 39 * 16 + + ( 38 ) AS col1
----
663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3549
SELECT + 92 * - - 80 * CAST( NULL AS DECIMAL ) + + 92 * - - MIN( DISTINCT + 30 ) * + 51 * + 92 + - 74 + COALESCE ( - 89, - + COUNT( * ) * + CAST( NULL AS SIGNED ) + + 25 ) + + COUNT( * ) + - 3 * 27 / 89 + CASE + 33 WHEN - COUNT( * ) THEN + 62 - - + COALESCE ( + 87, + 92 ) + + 17 + - 86 * + 52 / COUNT( * ) * + + 38 + - - 35 * - 32 * 70 WHEN + 71 THEN - 41 * + 31 + 92 WHEN - 24 - - COALESCE ( 27, 74 / - 63 + - COUNT( * ), - 70 ) THEN NULL ELSE NULL END * - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT + 92 * - - 80 * CAST ( NULL AS REAL ) + + 92 * - - MIN ( DISTINCT + 30 ) * + 51 * + 92 + - 74 + COALESCE ( - 89, - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + 25 ) + + COUNT ( * ) + - 3 * 27 / 89 + CASE + 33 WHEN - COUNT ( * ) THEN + 62 - - + COALESCE ( + 87, + 92 ) + + 17 + - 86 * + 52 / COUNT ( * ) * + + 38 + - - 35 * - 32 * 70 WHEN + 71 THEN - 41 * + 31 + 92 WHEN - 24 - - COALESCE ( 27, 74 / - 63 + - COUNT ( * ), - 70 ) THEN NULL ELSE NULL END * - 8
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3550
SELECT + COUNT( * ) - - - COUNT( * ) + - - 30 DIV 45 * - 24 + + CAST( - 33 AS SIGNED ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-3550
SELECT + COUNT ( * ) - - - COUNT ( * ) + - - 30 / 45 * - 24 + + CAST ( - 33 AS INTEGER ) AS col2
----
-33

query II rowsort
SELECT + 67 * + + 56 AS col1, + 34
----
3752
34

query I rowsort
SELECT + 72 * - 42
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT - COUNT( * ) * 38 col1
----
-38

skipif mysql # not compatible
query I rowsort label-3553
SELECT - COUNT ( * ) * 38 col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL MAX( 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL MAX ( 62 ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT ALL 48 * COUNT( * ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL 48 * COUNT ( * ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT + COUNT( * ) + 51 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3556
SELECT + COUNT ( * ) + 51 AS col2
----
52

query I rowsort
SELECT + 95 + + 32 AS col2
----
127

query I rowsort
SELECT 70 col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL MIN( ALL + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL MIN ( ALL + 94 )
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-3560
SELECT 83, + 49 DIV 80 AS col2
----
83
0

skipif mysql # not compatible
query II rowsort label-3560
SELECT 83, + 49 / 80 AS col2
----
83
0

query I rowsort
SELECT + ( - + 46 ) * - 39
----
1794

query I rowsort
SELECT - 41 + 82 AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3563
SELECT - CAST( + COUNT( * ) AS SIGNED ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3563
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) col0
----
-1

query I rowsort
SELECT 26 AS col0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3565
SELECT ALL - 41 + + NULLIF ( - 45, - CAST( + AVG ( ALL - 95 ) AS SIGNED ) + - - 96 + + - 14 ), + 82 + + 30 AS col2
----
-86
112

skipif mysql # not compatible
query II rowsort label-3565
SELECT ALL - 41 + + NULLIF ( - 45, - CAST ( + AVG ( ALL - 95 ) AS INTEGER ) + - - 96 + + - 14 ), + 82 + + 30 AS col2
----
-86
112

query I rowsort
SELECT ALL + 69 * + - 98 AS col0
----
-6762

query I rowsort
SELECT - 23 + 3 AS col0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3568
SELECT DISTINCT CAST( + 60 AS SIGNED ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT CAST ( + 60 AS INTEGER ) AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3569
SELECT DISTINCT - 96 + + + 70 + - MAX( CAST( 83 AS SIGNED ) ) DIV + 15 AS col1, NULLIF ( + 62, 69 ) AS col0
----
-31
62

skipif mysql # not compatible
query II rowsort label-3569
SELECT DISTINCT - 96 + + + 70 + - MAX ( CAST ( 83 AS INTEGER ) ) / + 15 AS col1, NULLIF ( + 62, 69 ) AS col0
----
-31
62

query I rowsort
SELECT + 69 - + 97 * + 81
----
-7788

query I rowsort
SELECT ALL + - 30 AS col0
----
-30

query I rowsort
SELECT + - 17 AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3573
SELECT - + CAST( NULL AS SIGNED ) * - 60 - 1 + + + 7 - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT - + CAST ( NULL AS INTEGER ) * - 60 - 1 + + + 7 - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3574
SELECT + SUM( ALL + + CAST( + 46 AS SIGNED ) ) col2
----
46

skipif mysql # not compatible
query I rowsort label-3574
SELECT + SUM ( ALL + + CAST ( + 46 AS INTEGER ) ) col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3575
SELECT + 11 DIV + 19 + 1 + - - COUNT( ALL - 14 ) * + CAST( + - 51 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-3575
SELECT + 11 / + 19 + 1 + - - COUNT ( ALL - 14 ) * + CAST ( + - 51 AS INTEGER )
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-3576
SELECT ALL + + 95 DIV + - 59 - - 58 col0
----
57

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL + + 95 / + - 59 - - 58 col0
----
57

query I rowsort
SELECT - 27 * 90 AS col0
----
-2430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3578
SELECT - 7 * + - CAST( + 89 AS SIGNED ) + - 2 AS col0
----
621

skipif mysql # not compatible
query I rowsort label-3578
SELECT - 7 * + - CAST ( + 89 AS INTEGER ) + - 2 AS col0
----
621

query I rowsort
SELECT + 73 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT - 54 - + 42 * + + 16 + - MIN( - + 67 ) AS col0
----
-659

skipif mysql # not compatible
query I rowsort label-3580
SELECT - 54 - + 42 * + + 16 + - MIN ( - + 67 ) AS col0
----
-659

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3581
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) * + 98, 92 - - + 17 + + 4 AS col1
----
98
113

skipif mysql # not compatible
query II rowsort label-3581
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) * + 98, 92 - - + 17 + + 4 AS col1
----
98
113

query I rowsort
SELECT - + 67 + - 0 AS col0
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-3583
SELECT ALL - + 23 DIV - 22 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL - + 23 / - 22 AS col1
----
1

query I rowsort
SELECT + 85 + + 75 col0
----
160

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3585
SELECT DISTINCT + + COUNT( * ) * + 87 * - ( - 59 ) * + 27 * - - 98 AS col1, + 27 / + + CAST( NULL AS DECIMAL )
----
13581918
NULL

skipif mysql # not compatible
query II rowsort label-3585
SELECT DISTINCT + + COUNT ( * ) * + 87 * - ( - 59 ) * + 27 * - - 98 AS col1, + 27 / + + CAST ( NULL AS REAL )
----
13581918
NULL

query I rowsort
SELECT ALL + 68 AS col0
----
68

query I rowsort
SELECT + + 12
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT + 31 * + - 84 + - - ( - - 51 ) + - COUNT( * ) + - COUNT( * ) + ( - SUM( DISTINCT + 8 ) ) * + ( - 98 ) AS col2
----
-1771

skipif mysql # not compatible
query I rowsort label-3588
SELECT + 31 * + - 84 + - - ( - - 51 ) + - COUNT ( * ) + - COUNT ( * ) + ( - SUM ( DISTINCT + 8 ) ) * + ( - 98 ) AS col2
----
-1771

onlyif mysql # aggregate syntax: 
query II rowsort label-3589
SELECT + 3 * COUNT( * ) + 43, 98 AS col2
----
46
98

skipif mysql # not compatible
query II rowsort label-3589
SELECT + 3 * COUNT ( * ) + 43, 98 AS col2
----
46
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT 58 * + COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-3590
SELECT 58 * + COUNT ( * ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3591
SELECT ALL 82 * ( - 17 ), COUNT( * ) + - 43 + - 10 + + COUNT( * ) AS col1
----
-1394
-51

skipif mysql # not compatible
query II rowsort label-3591
SELECT ALL 82 * ( - 17 ), COUNT ( * ) + - 43 + - 10 + + COUNT ( * ) AS col1
----
-1394
-51

query I rowsort
SELECT + ( - - 4 ) col2
----
4

query I rowsort
SELECT + 81
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3594
SELECT COUNT( * ) + + + ( - - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3594
SELECT COUNT ( * ) + + + ( - - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL - + 95
----
-95

query I rowsort
SELECT - 14
----
-14

query I rowsort
SELECT + 31 col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT ALL + SUM( DISTINCT + 9 ) * - 82
----
-738

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL + SUM ( DISTINCT + 9 ) * - 82
----
-738

query I rowsort
SELECT DISTINCT - - 6 + + 89
----
95

query I rowsort
SELECT ALL - 51
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3601
SELECT DISTINCT ( CAST( + 56 AS SIGNED ) ) + + 97
----
153

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT ( CAST ( + 56 AS INTEGER ) ) + + 97
----
153

query I rowsort
SELECT DISTINCT 1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3603
SELECT 99 DIV - 41 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3603
SELECT 99 / - 41 AS col1
----
-2

query I rowsort
SELECT 70 - - ( 66 ) * + 69 * 6 * + + 52 AS col1
----
1420918

query I rowsort
SELECT ALL 53 + - 8 + 83 * - + 81
----
-6678

query I rowsort
SELECT - 62 AS col1
----
-62

query I rowsort
SELECT ALL 47 + + 94
----
141

query I rowsort
SELECT - 18
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT ALL NULLIF ( + 27, 52 ) + - ( - - COALESCE ( + CASE - 27 WHEN COUNT( * ) + 78 THEN NULL ELSE - 54 END, - COUNT( * ) ) )
----
81

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL NULLIF ( + 27, 52 ) + - ( - - COALESCE ( + CASE - 27 WHEN COUNT ( * ) + 78 THEN NULL ELSE - 54 END, - COUNT ( * ) ) )
----
81

query I rowsort
SELECT ALL 73 AS col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3611
SELECT DISTINCT MAX( - ( + + 61 ) ) + + 42 DIV + 84 * + 61 * + COALESCE ( 11, 14 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT MAX ( - ( + + 61 ) ) + + 42 / + 84 * + 61 * + COALESCE ( 11, 14 ) AS col1
----
-61

query I rowsort
SELECT ALL 28 AS col2
----
28

query I rowsort
SELECT DISTINCT 79 col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT ALL CASE + + COUNT( * ) WHEN 74 * 80 THEN NULL WHEN + + 11 THEN 29 ELSE - 30 END - + + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL CASE + + COUNT ( * ) WHEN 74 * 80 THEN NULL WHEN + + 11 THEN 29 ELSE - 30 END - + + COUNT ( * )
----
-31

query I rowsort
SELECT DISTINCT 33 AS col1
----
33

query I rowsort
SELECT DISTINCT 85
----
85

query I rowsort
SELECT 98
----
98

query I rowsort
SELECT ( + 82 ) + + 22
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-3619
SELECT 50 - - COUNT( * ) AS col2, 44 * + 42 col0
----
51
1848

skipif mysql # not compatible
query II rowsort label-3619
SELECT 50 - - COUNT ( * ) AS col2, 44 * + 42 col0
----
51
1848

query I rowsort
SELECT - - 32 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT DISTINCT + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT + COUNT ( * )
----
1

query I rowsort
SELECT ALL 68
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT SUM( ALL - + ( - 83 ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-3623
SELECT SUM ( ALL - + ( - 83 ) ) AS col2
----
83

query I rowsort
SELECT - 90
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT ALL - CASE + 31 WHEN - - 64 * COUNT( * ) * + MAX( ALL 46 ) THEN - 45 ELSE + 92 * - 17 END * 87 + + ( COUNT( * ) ) + - COALESCE ( - + SUM( DISTINCT - + 80 ), + - 49 ) AS col1
----
135989

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL - CASE + 31 WHEN - - 64 * COUNT ( * ) * + MAX ( ALL 46 ) THEN - 45 ELSE + 92 * - 17 END * 87 + + ( COUNT ( * ) ) + - COALESCE ( - + SUM ( DISTINCT - + 80 ), + - 49 ) AS col1
----
135989

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3626
SELECT 24 * - 84 * + ( CASE - 18 WHEN + - 51 THEN + COALESCE ( - 1, + CAST( - ( 87 ) AS DECIMAL ), + 57, + 38 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3626
SELECT 24 * - 84 * + ( CASE - 18 WHEN + - 51 THEN + COALESCE ( - 1, + CAST ( - ( 87 ) AS REAL ), + 57, + 38 ) END ) AS col0
----
NULL

query I rowsort
SELECT 99 AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3628
SELECT DISTINCT CAST( NULL AS SIGNED ) / + ( + 7 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + ( + 7 ) * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - + 77
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT DISTINCT - - COUNT( ALL + - 20 )
----
1

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT - - COUNT ( ALL + - 20 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT DISTINCT - + COALESCE ( 45, 19 * CASE + + CASE + 80 WHEN CASE - + 13 WHEN + + 61 THEN + 72 + NULLIF ( + COUNT( * ), - 93 * - 86 ) END * - - 40 THEN + AVG ( - 96 ) ELSE + 58 END WHEN 56 THEN 67 END )
----
-45

skipif mysql # not compatible
query I rowsort label-3631
SELECT DISTINCT - + COALESCE ( 45, 19 * CASE + + CASE + 80 WHEN CASE - + 13 WHEN + + 61 THEN + 72 + NULLIF ( + COUNT ( * ), - 93 * - 86 ) END * - - 40 THEN + AVG ( - 96 ) ELSE + 58 END WHEN 56 THEN 67 END )
----
-45

query I rowsort
SELECT + - 50
----
-50

query I rowsort
SELECT + 14 AS col0
----
14

query I rowsort
SELECT ALL - - 44
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT - - 90 * + 61 + - - 98 + + ( + COUNT( * ) ) + - + CASE WHEN NULL IS NULL THEN NULL ELSE + 9 END * + - 91 / 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3635
SELECT - - 90 * + 61 + - - 98 + + ( + COUNT ( * ) ) + - + CASE WHEN NULL IS NULL THEN NULL ELSE + 9 END * + - 91 / 65
----
NULL

query I rowsort
SELECT + 64
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3637
SELECT - 27 * - - CASE + - 91 WHEN - 43 THEN NULL ELSE 84 END - + + 42 - - 74 DIV - 99 * + 37 AS col1
----
-2310

skipif mysql # not compatible
query I rowsort label-3637
SELECT - 27 * - - CASE + - 91 WHEN - 43 THEN NULL ELSE 84 END - + + 42 - - 74 / - 99 * + 37 AS col1
----
-2310

query I rowsort
SELECT ( - ( 63 ) ) * + 10
----
-630

query I rowsort
SELECT ALL - 29 AS col0
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-3640
SELECT 73 * 4 DIV + 22
----
13

skipif mysql # not compatible
query I rowsort label-3640
SELECT 73 * 4 / + 22
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3641
SELECT ( + - 82 ) - - + 56 DIV + 57, MAX( DISTINCT + - 77 ) col1
----
-82
-77

skipif mysql # not compatible
query II rowsort label-3641
SELECT ( + - 82 ) - - + 56 / + 57, MAX ( DISTINCT + - 77 ) col1
----
-82
-77

query I rowsort
SELECT ALL - 0 + - 94 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT ALL ( COUNT( * ) ) + + + 49 * - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-3643
SELECT ALL ( COUNT ( * ) ) + + + 49 * - COUNT ( * )
----
-48

query I rowsort
SELECT DISTINCT - ( + 67 )
----
-67

query I rowsort
SELECT 70 + 91 * + ( - 44 ) AS col2
----
-3934

onlyif mysql # DIV for integer division: 
query I rowsort label-3646
SELECT 4 * 78 - - 87 DIV + 29
----
315

skipif mysql # not compatible
query I rowsort label-3646
SELECT 4 * 78 - - 87 / + 29
----
315

query I rowsort
SELECT ALL - 13 * - 33 * - 43
----
-18447

query I rowsort
SELECT 15 - - 78
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3649
SELECT + 47 * MIN( + 1 ) * 90 + 12 - - 88 + - - 42 + - - 54 + 58 + - 0 + - 68 * + COUNT( * ) * - ( + - 80 ) * - 54 + - + ( - 41 ) + - + CAST( NULL AS SIGNED ) + + COALESCE ( + + 5, 97, + 98 ) * - - 68 + - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3649
SELECT + 47 * MIN ( + 1 ) * 90 + 12 - - 88 + - - 42 + - - 54 + 58 + - 0 + - 68 * + COUNT ( * ) * - ( + - 80 ) * - 54 + - + ( - 41 ) + - + CAST ( NULL AS INTEGER ) + + COALESCE ( + + 5, 97, + 98 ) * - - 68 + - 88
----
NULL

query I rowsort
SELECT - 60 AS col2
----
-60

query II rowsort
SELECT 65 AS col2, + 48 AS col0
----
65
48

query I rowsort
SELECT 5 + - 26 - - 16 * 2 * - 58 - + 56 + - 35 AS col0
----
-1968

query I rowsort
SELECT ALL 17 AS col0
----
17

query I rowsort
SELECT ALL 68 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT COUNT( * ) + + 0 + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3655
SELECT COUNT ( * ) + + 0 + + COUNT ( * )
----
2

query I rowsort
SELECT ALL + 41 - + - 68
----
109

query I rowsort
SELECT 51 AS col2
----
51

query I rowsort
SELECT 24 + + 79 AS col0
----
103

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3659
SELECT ALL 94 * ( + 89 ) * - 98 * - - 15 + CAST( NULL AS DECIMAL ) * + 66 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL 94 * ( + 89 ) * - 98 * - - 15 + CAST ( NULL AS REAL ) * + 66 col0
----
NULL

query I rowsort
SELECT 31 * - 82
----
-2542

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT COALESCE ( + COUNT( DISTINCT + + 24 ), 46, - - 50 ) + - 19 col0
----
-18

skipif mysql # not compatible
query I rowsort label-3661
SELECT COALESCE ( + COUNT ( DISTINCT + + 24 ), 46, - - 50 ) + - 19 col0
----
-18

query I rowsort
SELECT 32 AS col2
----
32

query I rowsort
SELECT - 35
----
-35

query I rowsort
SELECT 50 + - 6 * - + ( - 80 )
----
-430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3665
SELECT CAST( - 56 AS SIGNED ) + 99 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-3665
SELECT CAST ( - 56 AS INTEGER ) + 99 AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3666
SELECT DISTINCT MAX( - + 63 ) * - 52 / - 68 * + ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT MAX ( - + 63 ) * - 52 / - 68 * + ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3667
SELECT + CAST( NULL AS SIGNED ) / + 99 * - + 65 + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3667
SELECT + CAST ( NULL AS INTEGER ) / + 99 * - + 65 + 51
----
NULL

query I rowsort
SELECT ALL 8 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT DISTINCT 87 * - - 19 * SUM( + ( ( - + 49 ) ) )
----
-80997

skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT 87 * - - 19 * SUM ( + ( ( - + 49 ) ) )
----
-80997

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT ALL MAX( DISTINCT 45 ) * - 79
----
-3555

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL MAX ( DISTINCT 45 ) * - 79
----
-3555

query I rowsort
SELECT 70 + + ( - - 57 ) AS col0
----
127

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3672
SELECT - CAST( NULL AS DECIMAL ) * - 82 + + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3672
SELECT - CAST ( NULL AS REAL ) * - 82 + + 84 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3673
SELECT ALL 75 DIV + - 94
----
0

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL 75 / + - 94
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3674
SELECT 16 DIV - 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3674
SELECT 16 / - 58 AS col2
----
0

query I rowsort
SELECT ALL - 59
----
-59

query I rowsort
SELECT + 84 + 81 AS col1
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-3677
SELECT 18 - - ( + 51 ) DIV - 87 * + + 10
----
18

skipif mysql # not compatible
query I rowsort label-3677
SELECT 18 - - ( + 51 ) / - 87 * + + 10
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT + + MIN( DISTINCT - - 62 )
----
62

skipif mysql # not compatible
query I rowsort label-3678
SELECT + + MIN ( DISTINCT - - 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT - + SUM( ALL + ( - 92 ) ) + 30 col0
----
122

skipif mysql # not compatible
query I rowsort label-3679
SELECT - + SUM ( ALL + ( - 92 ) ) + 30 col0
----
122

query I rowsort
SELECT + ( + 8 )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3681
SELECT - - CAST( NULL AS SIGNED ) + - + SUM( DISTINCT - 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3681
SELECT - - CAST ( NULL AS INTEGER ) + - + SUM ( DISTINCT - 84 )
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + ( - 60 ), + 88 ) * 10 - - ( - + 41 ) + - 65 AS col2
----
-706

query I rowsort
SELECT + 43 AS col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3684
SELECT ALL + 0 * + + 51 * - 28 * + + CAST( NULL AS SIGNED ) - - + 14 + + 39 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL + 0 * + + 51 * - 28 * + + CAST ( NULL AS INTEGER ) - - + 14 + + 39 col1
----
NULL

query I rowsort
SELECT ALL - 85 * - 83 + + 31 * ( + NULLIF ( - + 73, + + 63 ) ) + 64 - ( + COALESCE ( - 6, + 43 * - 51 * + 94 ) )
----
4862

query I rowsort
SELECT ALL 21 * - 18
----
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT + 61 * + COUNT( * ) * + + 76
----
4636

skipif mysql # not compatible
query I rowsort label-3687
SELECT + 61 * + COUNT ( * ) * + + 76
----
4636

query I rowsort
SELECT ALL - 21 * + - 99 + + 64 + 30 * - 0 + + 14 * 2 AS col0
----
2171

query I rowsort
SELECT ALL + 67
----
67

query I rowsort
SELECT + - ( + - 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT - 90 + + 39 + - SUM( DISTINCT + 29 ) * + CASE + - MAX( ALL + + 59 ) WHEN + 77 THEN COALESCE ( - 79, SUM( + + 89 ) + 0 + - 37, + 4 ) WHEN MAX( ALL + - 73 ) THEN NULL END * - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-3691
SELECT - 90 + + 39 + - SUM ( DISTINCT + 29 ) * + CASE + - MAX ( ALL + + 59 ) WHEN + 77 THEN COALESCE ( - 79, SUM ( + + 89 ) + 0 + - 37, + 4 ) WHEN MAX ( ALL + - 73 ) THEN NULL END * - 55
----
NULL

query I rowsort
SELECT + 45
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3693
SELECT + MIN( ALL + + 73 ) DIV - + 56
----
-1

skipif mysql # not compatible
query I rowsort label-3693
SELECT + MIN ( ALL + + 73 ) / - + 56
----
-1

query I rowsort
SELECT + 55 AS col2
----
55

query II rowsort
SELECT ALL + 34, + 67 AS col0
----
34
67

query I rowsort
SELECT DISTINCT 62 * + 79 * + + 69 - + 94 * + 75
----
330912

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3697
SELECT DISTINCT + COUNT( * ) DIV - 59 AS col0, + 76 col1
----
0
76

skipif mysql # not compatible
query II rowsort label-3697
SELECT DISTINCT + COUNT ( * ) / - 59 AS col0, + 76 col1
----
0
76

query I rowsort
SELECT ALL + 79
----
79

query I rowsort
SELECT DISTINCT + 39 * - 94 - - 99 * ( + 38 )
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3700
SELECT COUNT( * ) AS col2, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-3700
SELECT COUNT ( * ) AS col2, COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT - 0 * + 60 * + 7 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT ALL COALESCE ( + - COUNT( * ), - 68, 64 )
----
-1

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL COALESCE ( + - COUNT ( * ), - 68, 64 )
----
-1

query I rowsort
SELECT - 70 - + 70 + + 6 AS col2
----
-134

query I rowsort
SELECT - 76 * - 16
----
1216

query I rowsort
SELECT - 46 + - 30 * 6
----
-226

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3706
SELECT - 81, + ( + + 12 ) + - CASE - 21 WHEN 99 THEN NULL WHEN + ( - 78 ) * 66 + + - 37 + - 5 - 90 * CAST( + SUM( DISTINCT 64 ) AS SIGNED ) + - - 6 THEN NULL WHEN 62 + - ( - COUNT( * ) ) + + 18 + + - 63 THEN NULL WHEN - 66 THEN - ( + + 54 ) ELSE NULL END AS col0
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-3706
SELECT - 81, + ( + + 12 ) + - CASE - 21 WHEN 99 THEN NULL WHEN + ( - 78 ) * 66 + + - 37 + - 5 - 90 * CAST ( + SUM ( DISTINCT 64 ) AS INTEGER ) + - - 6 THEN NULL WHEN 62 + - ( - COUNT ( * ) ) + + 18 + + - 63 THEN NULL WHEN - 66 THEN - ( + + 54 ) ELSE NULL END AS col0
----
-81
NULL

query I rowsort
SELECT 18
----
18

query II rowsort
SELECT - 40 * 86 AS col2, 27
----
-3440
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT + 46 * - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-3709
SELECT + 46 * - COUNT ( * )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT DISTINCT ( + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3710
SELECT DISTINCT ( + COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT - 6 - + - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-3711
SELECT - 6 - + - COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3712
SELECT ALL - 51 AS col0, COUNT( * ) * - - 46
----
-51
46

skipif mysql # not compatible
query II rowsort label-3712
SELECT ALL - 51 AS col0, COUNT ( * ) * - - 46
----
-51
46

query I rowsort
SELECT DISTINCT + 66 AS col2
----
66

query I rowsort
SELECT - 20 + - 98 - - ( + 0 ) * + 40
----
-118

query I rowsort
SELECT + 75 AS col0
----
75

query I rowsort
SELECT ALL + ( 10 ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT - - ( - 85 ) + + 25 * - COUNT( * )
----
-110

skipif mysql # not compatible
query I rowsort label-3717
SELECT - - ( - 85 ) + + 25 * - COUNT ( * )
----
-110

query I rowsort
SELECT - - 93 * 1 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT - + COUNT( * ) + - ( 76 ) + + 64 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-3719
SELECT - + COUNT ( * ) + - ( 76 ) + + 64 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-3720
SELECT + + COALESCE ( 48, + - ( 82 ) - - 47 * + - 95 * 9 * 12 - - - AVG ( ALL + 80 ) ) - - 69 + + 80 * + - 91 + COUNT( * ) + - - NULLIF ( - COUNT( * ), + + ( - COUNT( * ) ) ) * + - 34 * + + 49 + + - 24 * - 64 / COUNT( * ) * + - 2 AS col0, + 56 AS col0
----
NULL
56

skipif mysql # not compatible
query II rowsort label-3720
SELECT + + COALESCE ( 48, + - ( 82 ) - - 47 * + - 95 * 9 * 12 - - - AVG ( ALL + 80 ) ) - - 69 + + 80 * + - 91 + COUNT ( * ) + - - NULLIF ( - COUNT ( * ), + + ( - COUNT ( * ) ) ) * + - 34 * + + 49 + + - 24 * - 64 / COUNT ( * ) * + - 2 AS col0, + 56 AS col0
----
NULL
56

query I rowsort
SELECT ALL CASE ( - 28 ) WHEN + - 24 * - 45 THEN - ( 12 ) END AS col1
----
NULL

query I rowsort
SELECT - - 64 AS col2
----
64

query I rowsort
SELECT - + 7 AS col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3724
SELECT + - 55 - - - 54 - - 57 - 92 * + 2 * CAST( + - COUNT( * ) AS SIGNED ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3724
SELECT + - 55 - - - 54 - - 57 - 92 * + 2 * CAST ( + - COUNT ( * ) AS INTEGER ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( + - 72 ) + - 55 AS col2
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT + COUNT( * ) * 18
----
18

skipif mysql # not compatible
query I rowsort label-3726
SELECT + COUNT ( * ) * 18
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT DISTINCT + + 12 + + 80 * COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT + + 12 + + 80 * COUNT ( * ) AS col0
----
92

query I rowsort
SELECT + - 53 * + 82 AS col0
----
-4346

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3729
SELECT + MIN( 62 ) DIV 55 + ( 96 )
----
97

skipif mysql # not compatible
query I rowsort label-3729
SELECT + MIN ( 62 ) / 55 + ( 96 )
----
97

query I rowsort
SELECT ALL + - 62 * - 55 * 37 + + 98 AS col2
----
126268

onlyif mysql # DIV for integer division: 
query I rowsort label-3731
SELECT ALL - + 86 DIV + 25 + - 55
----
-58

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL - + 86 / + 25 + - 55
----
-58

query I rowsort
SELECT ALL + + 89
----
89

query I rowsort
SELECT - + ( 12 ) + - 35 AS col2
----
-47

query I rowsort
SELECT + 68 * - - 30
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT COUNT( - 83 )
----
1

skipif mysql # not compatible
query I rowsort label-3735
SELECT COUNT ( - 83 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3736
SELECT + 53 * + CAST( + + 24 AS SIGNED ) + 71 * - - CAST( + + COUNT( * ) AS SIGNED )
----
1343

skipif mysql # not compatible
query I rowsort label-3736
SELECT + 53 * + CAST ( + + 24 AS INTEGER ) + 71 * - - CAST ( + + COUNT ( * ) AS INTEGER )
----
1343

query I rowsort
SELECT NULLIF ( - 10, 85 * + 62 ) AS col2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3738
SELECT ALL + - 66 DIV + 43 + + MAX( ALL CAST( - 14 AS SIGNED ) ) + - COUNT( * ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL + - 66 / + 43 + + MAX ( ALL CAST ( - 14 AS INTEGER ) ) + - COUNT ( * ) col0
----
-16

query I rowsort
SELECT ALL + 54
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3740
SELECT ( - CAST( + 60 AS SIGNED ) ) col2, 7 + + + CAST( - 75 AS SIGNED ) + - 86
----
-60
-154

skipif mysql # not compatible
query II rowsort label-3740
SELECT ( - CAST ( + 60 AS INTEGER ) ) col2, 7 + + + CAST ( - 75 AS INTEGER ) + - 86
----
-60
-154

query I rowsort
SELECT ALL + 70
----
70

query I rowsort
SELECT + 89 * + 82 AS col2
----
7298

query I rowsort
SELECT ALL + 41 * - 34
----
-1394

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT DISTINCT COUNT( * ) * - 55 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT COUNT ( * ) * - 55 AS col1
----
-55

query I rowsort
SELECT ALL + ( 49 ) * + + 0 - - 79 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT - 59 * + - NULLIF ( + - COUNT( * ), + 63 * - - 47 - 94 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-3746
SELECT - 59 * + - NULLIF ( + - COUNT ( * ), + 63 * - - 47 - 94 ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-3747
SELECT + 70 + 5, 72 * + - CASE + COUNT( * ) WHEN - 52 THEN + 13 WHEN + - 28 * - + MAX( + 20 ) - - + 31 + 57 THEN + COUNT( * ) + + 9 END AS col1
----
75
NULL

skipif mysql # not compatible
query II rowsort label-3747
SELECT + 70 + 5, 72 * + - CASE + COUNT ( * ) WHEN - 52 THEN + 13 WHEN + - 28 * - + MAX ( + 20 ) - - + 31 + 57 THEN + COUNT ( * ) + + 9 END AS col1
----
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT - ( + + 22 ) * 56 + - 20 - COUNT( * )
----
-1253

skipif mysql # not compatible
query I rowsort label-3748
SELECT - ( + + 22 ) * 56 + - 20 - COUNT ( * )
----
-1253

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT NULLIF ( + 51, COUNT( * ) ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3749
SELECT NULLIF ( + 51, COUNT ( * ) ) AS col1
----
51

query I rowsort
SELECT - 52 + + 68
----
16

query I rowsort
SELECT ALL + 85 AS col2
----
85

query I rowsort
SELECT + 23 * - 20 * - 42 AS col0
----
19320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3753
SELECT - COALESCE ( + COALESCE ( 86, CASE + - 50 WHEN 74 THEN + 1 END DIV COALESCE ( - 56, - MAX( - CAST( NULL AS SIGNED ) ), + + ( - COALESCE ( 59, 42 ) ) * - + 86 * COUNT( * ) DIV 57 DIV + 84 ) + + ( + ( + ( + 89 ) ) ) + + 63 * ( - + 83 ) * 95 + + CAST( NULL AS SIGNED ) ), + 9 * - 15 + - 42 + 55 * + 64 ) + - COUNT( + 50 ) AS col0, - 87 + + 14 * - COUNT( DISTINCT + 49 - - CASE 31 WHEN ( 84 ) + + 32 THEN - 15 DIV 76 ELSE NULL END )
----
-87
-87

skipif mysql # not compatible
query II rowsort label-3753
SELECT - COALESCE ( + COALESCE ( 86, CASE + - 50 WHEN 74 THEN + 1 END / COALESCE ( - 56, - MAX ( - CAST ( NULL AS INTEGER ) ), + + ( - COALESCE ( 59, 42 ) ) * - + 86 * COUNT ( * ) / 57 / + 84 ) + + ( + ( + ( + 89 ) ) ) + + 63 * ( - + 83 ) * 95 + + CAST ( NULL AS INTEGER ) ), + 9 * - 15 + - 42 + 55 * + 64 ) + - COUNT ( + 50 ) AS col0, - 87 + + 14 * - COUNT ( DISTINCT + 49 - - CASE 31 WHEN ( 84 ) + + 32 THEN - 15 / 76 ELSE NULL END )
----
-87
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3754
SELECT - NULLIF ( + - 43, COUNT( * ) + - 18 ) DIV - + 33 + + + 25 + + - 46 + + 24 * + 79
----
1874

skipif mysql # not compatible
query I rowsort label-3754
SELECT - NULLIF ( + - 43, COUNT ( * ) + - 18 ) / - + 33 + + + 25 + + - 46 + + 24 * + 79
----
1874

query II rowsort
SELECT DISTINCT ( + + 52 ) AS col0, 29
----
52
29

query II rowsort
SELECT ALL ( + 74 ), + 74 AS col2
----
74
74

query I rowsort
SELECT - 16 + - + 93 + + 98
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT ALL - 14 * - + COUNT( * ) * + + COUNT( * ) - + + 50 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL - 14 * - + COUNT ( * ) * + + COUNT ( * ) - + + 50 AS col2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3759
SELECT - - CAST( + - 13 AS SIGNED )
----
-13

skipif mysql # not compatible
query I rowsort label-3759
SELECT - - CAST ( + - 13 AS INTEGER )
----
-13

query I rowsort
SELECT 86 + - 64 + 33 * 71 col0
----
2365

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT + 71 * - + 99 - COUNT( * ) AS col0
----
-7030

skipif mysql # not compatible
query I rowsort label-3761
SELECT + 71 * - + 99 - COUNT ( * ) AS col0
----
-7030

query I rowsort
SELECT + 54
----
54

query I rowsort
SELECT - 4 col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3764
SELECT ALL - 62 + - NULLIF ( + + 11, + - 32 ) DIV - 58 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL - 62 + - NULLIF ( + + 11, + - 32 ) / - 58 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT ALL + COUNT( * ) + - - 59 - - ( - 73 ) + + 32 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL + COUNT ( * ) + - - 59 - - ( - 73 ) + + 32 AS col0
----
19

query I rowsort
SELECT ( 16 ) + - - 73 + - 61
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3767
SELECT + COALESCE ( + COUNT( * ), - - 82, - 5 + - 1 + + 26 * 10 DIV + - ( + COALESCE ( + + 8, - + MAX( ALL - + 39 ) ) ) DIV - + 81 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3767
SELECT + COALESCE ( + COUNT ( * ), - - 82, - 5 + - 1 + + 26 * 10 / + - ( + COALESCE ( + + 8, - + MAX ( ALL - + 39 ) ) ) / - + 81 ) col2
----
1

query II rowsort
SELECT + 29 + 54 AS col0, + 61 AS col1
----
83
61

query I rowsort
SELECT ALL - - 97 + - 78 + + 87 AS col2
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-3770
SELECT ALL + 38 DIV - 5 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL + 38 / - 5 AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3771
SELECT - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 87 - - + ( ( + 67 ) )
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3773
SELECT - 5 DIV COUNT( * ) + + 46
----
41

skipif mysql # not compatible
query I rowsort label-3773
SELECT - 5 / COUNT ( * ) + + 46
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT - COUNT( + 94 ) * - 2 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3774
SELECT - COUNT ( + 94 ) * - 2 AS col0
----
2

query I rowsort
SELECT - 12
----
-12

query I rowsort
SELECT - 79 + 82
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3777
SELECT ALL - 70, - 70 DIV 33 + - COUNT( * ) AS col1
----
-70
-3

skipif mysql # not compatible
query II rowsort label-3777
SELECT ALL - 70, - 70 / 33 + - COUNT ( * ) AS col1
----
-70
-3

query I rowsort
SELECT DISTINCT - 9 - - 78 AS col1
----
69

query I rowsort
SELECT + 0
----
0

query I rowsort
SELECT DISTINCT - 86
----
-86

query I rowsort
SELECT ALL + CASE - 41 WHEN + 9 THEN NULL WHEN - 19 THEN - - ( - 14 ) ELSE NULL END * - 33 * - 47 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3782
SELECT 98 DIV + + NULLIF ( COUNT( * ), + 89 )
----
98

skipif mysql # not compatible
query I rowsort label-3782
SELECT 98 / + + NULLIF ( COUNT ( * ), + 89 )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3783
SELECT 34 * + + CAST( - 41 AS SIGNED )
----
-1394

skipif mysql # not compatible
query I rowsort label-3783
SELECT 34 * + + CAST ( - 41 AS INTEGER )
----
-1394

query II rowsort
SELECT + 11, + 18 AS col0
----
11
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT 40 + + - 10 * SUM( NULLIF ( - 83, - 5 ) )
----
870

skipif mysql # not compatible
query I rowsort label-3785
SELECT 40 + + - 10 * SUM ( NULLIF ( - 83, - 5 ) )
----
870

query I rowsort
SELECT DISTINCT - 76 AS col2
----
-76

query I rowsort
SELECT 48 AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3788
SELECT + NULLIF ( + 67, CAST( NULL AS SIGNED ) ) * + ( 0 ) + + 72 + - COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-3788
SELECT + NULLIF ( + 67, CAST ( NULL AS INTEGER ) ) * + ( 0 ) + + 72 + - COUNT ( * ) AS col2
----
71

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3789
SELECT ALL 11 * 11 * - CAST( NULL AS DECIMAL ) AS col2, + 25
----
NULL
25

skipif mysql # not compatible
query II rowsort label-3789
SELECT ALL 11 * 11 * - CAST ( NULL AS REAL ) AS col2, + 25
----
NULL
25

query I rowsort
SELECT + 77
----
77

query II rowsort
SELECT ALL - 75, ( + + 5 ) AS col0
----
-75
5

query I rowsort
SELECT ALL - 78 AS col2
----
-78

query I rowsort
SELECT ALL - 20
----
-20

query I rowsort
SELECT + 35 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3795
SELECT DISTINCT COUNT( * ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3795
SELECT DISTINCT COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 91 col1
----
91

query I rowsort
SELECT - 41 AS col2
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3798
SELECT 68 * - 49 + + - CAST( 36 AS SIGNED ) AS col2
----
-3368

skipif mysql # not compatible
query I rowsort label-3798
SELECT 68 * - 49 + + - CAST ( 36 AS INTEGER ) AS col2
----
-3368

query I rowsort
SELECT + 37 AS col1
----
37

query I rowsort
SELECT ALL - 11 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT - - MIN( ALL - - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-3801
SELECT - - MIN ( ALL - - 41 )
----
41

query II rowsort
SELECT - - 1 AS col2, 97
----
1
97

query I rowsort
SELECT 45 + - 45
----
0

query I rowsort
SELECT DISTINCT - 66 + - 80 - NULLIF ( - 72, 54 ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT ALL - + 87 + 32 - - 97 + - COUNT( * ) + - + 2
----
39

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL - + 87 + 32 - - 97 + - COUNT ( * ) + - + 2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3806
SELECT 93 - + CAST( NULL AS SIGNED ) - 39 - - 70 + + 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3806
SELECT 93 - + CAST ( NULL AS INTEGER ) - 39 - - 70 + + 79 AS col0
----
NULL

query I rowsort
SELECT ALL ( + 81 ) AS col2
----
81

query I rowsort
SELECT DISTINCT - 52 AS col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3809
SELECT + 4 - + COUNT( * ) + + 7 * - 73 + - 30 + - ( + 56 ) - - 10 + + CASE + SUM( DISTINCT - 49 ) WHEN + 31 * COUNT( * ) * + - 10 THEN - 9 * - MAX( - 22 ) DIV + 53 WHEN - ( + - 38 ) * + CASE - COUNT( * ) WHEN + - 66 THEN - 93 * + + 63 END THEN - 36 * - 7 * - + CAST( NULL AS SIGNED ) WHEN 78 * - + 87 THEN 62 + COALESCE ( + - 59, - - 65 ) + 79 + + 74 * COUNT( * ) * COALESCE ( - 37, 9 ) WHEN 59 + 84 THEN NULL ELSE 72 END
----
-512

skipif mysql # not compatible
query I rowsort label-3809
SELECT + 4 - + COUNT ( * ) + + 7 * - 73 + - 30 + - ( + 56 ) - - 10 + + CASE + SUM ( DISTINCT - 49 ) WHEN + 31 * COUNT ( * ) * + - 10 THEN - 9 * - MAX ( - 22 ) / + 53 WHEN - ( + - 38 ) * + CASE - COUNT ( * ) WHEN + - 66 THEN - 93 * + + 63 END THEN - 36 * - 7 * - + CAST ( NULL AS INTEGER ) WHEN 78 * - + 87 THEN 62 + COALESCE ( + - 59, - - 65 ) + 79 + + 74 * COUNT ( * ) * COALESCE ( - 37, 9 ) WHEN 59 + 84 THEN NULL ELSE 72 END
----
-512

query I rowsort
SELECT ALL + 27
----
27

query I rowsort
SELECT - - 70
----
70

query I rowsort
SELECT ALL 5
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3813
SELECT ALL - 72 - - COUNT( * ) DIV + 76 + 12
----
-60

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL - 72 - - COUNT ( * ) / + 76 + 12
----
-60

query II rowsort
SELECT 25 AS col2, 8
----
25
8

query I rowsort
SELECT - - 50 col1
----
50

query II rowsort
SELECT 63, ( + 13 ) * 13 col1
----
63
169

query I rowsort
SELECT - 54 - + + 54 + - 27 + - ( + 19 )
----
-154

query I rowsort
SELECT ALL 90 AS col2
----
90

query I rowsort
SELECT DISTINCT - 70 AS col0
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3820
SELECT - + CASE 65 WHEN - + 5 * SUM( DISTINCT - 62 ) * 70 - + CASE + 86 WHEN - + 29 * 64 * - 63 THEN NULL WHEN - 86 - - ( + 98 ) * - COUNT( * ) - + CASE + 88 WHEN - + 25 * + 38 - - 31 + 46 + - 70 * + 0 DIV - COUNT( * ) * - + 32 THEN + AVG ( - 47 ) WHEN - - COUNT( * ) + - + COUNT( * ) THEN + ( - 20 ) ELSE NULL END THEN - COALESCE ( - 47, - + 45 * - 48 ) + - + 37 ELSE NULL END - COUNT( * ) * 27 DIV COALESCE ( + NULLIF ( CASE WHEN NOT - COUNT( * ) NOT BETWEEN 35 AND + 76 THEN 65 - SUM( DISTINCT - 59 ) END, + 52 ) * - 88, + 43 ) + - 10 THEN 2 DIV AVG ( + ( 68 ) ) ELSE + COUNT( * ) END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3820
SELECT - + CASE 65 WHEN - + 5 * SUM ( DISTINCT - 62 ) * 70 - + CASE + 86 WHEN - + 29 * 64 * - 63 THEN NULL WHEN - 86 - - ( + 98 ) * - COUNT ( * ) - + CASE + 88 WHEN - + 25 * + 38 - - 31 + 46 + - 70 * + 0 / - COUNT ( * ) * - + 32 THEN + AVG ( - 47 ) WHEN - - COUNT ( * ) + - + COUNT ( * ) THEN + ( - 20 ) ELSE NULL END THEN - COALESCE ( - 47, - + 45 * - 48 ) + - + 37 ELSE NULL END - COUNT ( * ) * 27 / COALESCE ( + NULLIF ( CASE WHEN NOT - COUNT ( * ) NOT BETWEEN 35 AND + 76 THEN 65 - SUM ( DISTINCT - 59 ) END, + 52 ) * - 88, + 43 ) + - 10 THEN 2 / AVG ( + ( 68 ) ) ELSE + COUNT ( * ) END AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT COUNT( * ) * + + 45
----
45

skipif mysql # not compatible
query I rowsort label-3821
SELECT COUNT ( * ) * + + 45
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3822
SELECT ALL - ( - CASE - - 89 WHEN 87 * - 0 + - COALESCE ( 9, + + 93, - - 7, 3 ) + - 7 THEN NULL WHEN - 47 + - COUNT( * ) - CAST( + 94 AS SIGNED ) * - 81 * + 29 * - + 68 - - ( - - COUNT( * ) ) + - CASE - - 80 WHEN + + 81 * 62 THEN + 79 WHEN - - 72 THEN NULL END + + + 50 + - + 47 THEN - 75 * - 52 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL - ( - CASE - - 89 WHEN 87 * - 0 + - COALESCE ( 9, + + 93, - - 7, 3 ) + - 7 THEN NULL WHEN - 47 + - COUNT ( * ) - CAST ( + 94 AS INTEGER ) * - 81 * + 29 * - + 68 - - ( - - COUNT ( * ) ) + - CASE - - 80 WHEN + + 81 * 62 THEN + 79 WHEN - - 72 THEN NULL END + + + 50 + - + 47 THEN - 75 * - 52 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3823
SELECT ALL - MIN( DISTINCT - CAST( - - 39 AS SIGNED ) ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL - MIN ( DISTINCT - CAST ( - - 39 AS INTEGER ) ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3824
SELECT COUNT ( * ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT 5 + + 53 - 5 * - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-3825
SELECT 5 + + 53 - 5 * - COUNT ( * )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3826
SELECT 87 * 88 + 30 - + + 42 - - COUNT( * ) * NULLIF ( - + 26, + 74 ) / - - MIN( DISTINCT - - CAST( NULL AS SIGNED ) ), - 7 AS col2
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-3826
SELECT 87 * 88 + 30 - + + 42 - - COUNT ( * ) * NULLIF ( - + 26, + 74 ) / - - MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ), - 7 AS col2
----
NULL
-7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3827
SELECT - 55 DIV CAST( + - 32 AS SIGNED ) + 75
----
76

skipif mysql # not compatible
query I rowsort label-3827
SELECT - 55 / CAST ( + - 32 AS INTEGER ) + 75
----
76

query I rowsort
SELECT + 65 AS col2
----
65

query I rowsort
SELECT ALL - ( + 97 )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3830
SELECT - 92 * - + 58 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3830
SELECT - 92 * - + 58 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3831
SELECT DISTINCT - CASE + CASE + 84 WHEN + 3 THEN - + 96 ELSE NULL END WHEN - 93 THEN - + COUNT( * ) END AS col2, 11 + - 17 AS col2
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-3831
SELECT DISTINCT - CASE + CASE + 84 WHEN + 3 THEN - + 96 ELSE NULL END WHEN - 93 THEN - + COUNT ( * ) END AS col2, 11 + - 17 AS col2
----
NULL
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3832
SELECT 40 + - COALESCE ( - 74, + + 62 + - - 69, 87 - 61 + + 16 + CAST( NULL AS SIGNED ) * - + 53 * - 11 ) AS col2
----
114

skipif mysql # not compatible
query I rowsort label-3832
SELECT 40 + - COALESCE ( - 74, + + 62 + - - 69, 87 - 61 + + 16 + CAST ( NULL AS INTEGER ) * - + 53 * - 11 ) AS col2
----
114

query II rowsort
SELECT DISTINCT 29 * - - 92 AS col2, 11
----
2668
11

query I rowsort
SELECT ALL - 23 col2
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-3835
SELECT + ( - - COUNT( * ) ) + 18 * 34 AS col1, + COUNT( * )
----
613
1

skipif mysql # not compatible
query II rowsort label-3835
SELECT + ( - - COUNT ( * ) ) + 18 * 34 AS col1, + COUNT ( * )
----
613
1

query I rowsort
SELECT ALL + 10 AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3837
SELECT + - CASE - 30 WHEN + CAST( NULL AS SIGNED ) + + 50 - + 18 + + - 9 THEN - 43 WHEN - ( - 81 ) * + + 74 + - 87 * - 93 + - 68 + + - 73 * + 15 THEN ( + - COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT + - CASE - 30 WHEN + CAST ( NULL AS INTEGER ) + + 50 - + 18 + + - 9 THEN - 43 WHEN - ( - 81 ) * + + 74 + - 87 * - 93 + - 68 + + - 73 * + 15 THEN ( + - COUNT ( * ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT + COUNT( ALL + 49 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3838
SELECT + COUNT ( ALL + 49 ) AS col1
----
1

query I rowsort
SELECT + + 42 + - 31 AS col2
----
11

query I rowsort
SELECT ALL 27 AS col0
----
27

query I rowsort
SELECT ALL 89
----
89

query I rowsort
SELECT DISTINCT 11
----
11

query I rowsort
SELECT + 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT + COUNT( * ) + - ( + - 92 ) + - + 76
----
17

skipif mysql # not compatible
query I rowsort label-3844
SELECT + COUNT ( * ) + - ( + - 92 ) + - + 76
----
17

query I rowsort
SELECT - + 85
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3846
SELECT + MAX( DISTINCT - 92 ) DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-3846
SELECT + MAX ( DISTINCT - 92 ) / 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT + + 15 * - COUNT( * ) + - + 49 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-3847
SELECT + + 15 * - COUNT ( * ) + - + 49 AS col1
----
-64

query I rowsort
SELECT ALL + ( + ( 72 ) ) * + + 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3849
SELECT + + 4 + - + 79, - CASE 85 WHEN - 42 THEN NULL WHEN 30 THEN - + ( 52 ) / - CAST( - - ( 40 ) AS SIGNED ) ELSE NULL END AS col0
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-3849
SELECT + + 4 + - + 79, - CASE 85 WHEN - 42 THEN NULL WHEN 30 THEN - + ( 52 ) / - CAST ( - - ( 40 ) AS INTEGER ) ELSE NULL END AS col0
----
-75
NULL

query I rowsort
SELECT DISTINCT 46 AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3851
SELECT ALL + 60 - - CAST( NULL AS SIGNED ) AS col1, 62 + + 62 - - 19
----
NULL
143

skipif mysql # not compatible
query II rowsort label-3851
SELECT ALL + 60 - - CAST ( NULL AS INTEGER ) AS col1, 62 + + 62 - - 19
----
NULL
143

query I rowsort
SELECT + + 55 * + 69 * - + 98 AS col1
----
-371910

query I rowsort
SELECT + 0 + 3
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3854
SELECT DISTINCT - 27 DIV + 61 col2
----
0

skipif mysql # not compatible
query I rowsort label-3854
SELECT DISTINCT - 27 / + 61 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT DISTINCT - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT - 83 + - 70 col1
----
-153

query I rowsort
SELECT 73 col0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3858
SELECT + 47 DIV + + 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3858
SELECT + 47 / + + 61 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3859
SELECT + 89 / SUM( - 36 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT + 89 / SUM ( - 36 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT ( + - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3860
SELECT ( + - COUNT ( * ) )
----
-1

query I rowsort
SELECT + 24 * + + 47
----
1128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3862
SELECT ALL - 3 * - 61 + - COUNT( DISTINCT - CAST( - 82 AS SIGNED ) ) + + ( + 12 ) * + + 70 + + COUNT( * ) * - - 85 col2
----
1107

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL - 3 * - 61 + - COUNT ( DISTINCT - CAST ( - 82 AS INTEGER ) ) + + ( + 12 ) * + + 70 + + COUNT ( * ) * - - 85 col2
----
1107

query I rowsort
SELECT ( + NULLIF ( + - 29, - 59 * 82 - - 8 ) )
----
-29

query I rowsort
SELECT DISTINCT + 66
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT DISTINCT + 59 * + 66 + + 52 DIV 33 * + 47
----
3941

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT + 59 * + 66 + + 52 / 33 * + 47
----
3941

query I rowsort
SELECT ( + 17 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3867
SELECT ALL CAST( NULL AS SIGNED ) * + - 50 + - 26 * 54 * + - 11 * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL CAST ( NULL AS INTEGER ) * + - 50 + - 26 * 54 * + - 11 * 87
----
NULL

query II rowsort
SELECT - 94 * - + 71 * 17, 77 AS col2
----
113458
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3869
SELECT ALL + 26 * - 32 + - COUNT( ALL + 24 ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL + 26 * - 32 + - COUNT ( ALL + 24 ) * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( + ( - + 7 ) )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3871
SELECT + CAST( - CASE + - CAST( + CAST( 88 AS SIGNED ) AS SIGNED ) WHEN + 73 + - + COUNT( * ) THEN + COUNT( 80 ) END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3871
SELECT + CAST ( - CASE + - CAST ( + CAST ( 88 AS INTEGER ) AS INTEGER ) WHEN + 73 + - + COUNT ( * ) THEN + COUNT ( 80 ) END AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + + 9, 53 + 75 )
----
9

query I rowsort
SELECT - 58 * + - 38
----
2204

query I rowsort
SELECT - 63 * ( 19 ) AS col2
----
-1197

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT + SUM( - + 54 ) col0
----
-54

skipif mysql # not compatible
query I rowsort label-3875
SELECT + SUM ( - + 54 ) col0
----
-54

query I rowsort
SELECT ALL + ( + + NULLIF ( - 5, 39 * - 1 ) ) AS col1
----
-5

query I rowsort
SELECT COALESCE ( - 16, - 8 ) AS col0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3878
SELECT COALESCE ( 96, - + 16, + CASE 87 WHEN + 14 THEN NULL WHEN + + 90 THEN - 73 DIV 95 + + 92 WHEN + ( - + AVG ( DISTINCT + + 55 ) ) THEN NULL ELSE 90 + + 38 END ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3878
SELECT COALESCE ( 96, - + 16, + CASE 87 WHEN + 14 THEN NULL WHEN + + 90 THEN - 73 / 95 + + 92 WHEN + ( - + AVG ( DISTINCT + + 55 ) ) THEN NULL ELSE 90 + + 38 END ) AS col2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3879
SELECT + COUNT( * ) DIV + MAX( - 44 ), 45 DIV - COUNT( * ) + - CASE 11 WHEN 78 THEN - ( + - 70 ) WHEN 18 + + 62 - + 97 THEN + 94 + - - 92 * - - 94 ELSE NULL END AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3879
SELECT + COUNT ( * ) / + MAX ( - 44 ), 45 / - COUNT ( * ) + - CASE 11 WHEN 78 THEN - ( + - 70 ) WHEN 18 + + 62 - + 97 THEN + 94 + - - 92 * - - 94 ELSE NULL END AS col2
----
0
NULL

query I rowsort
SELECT ALL + - 16 col0
----
-16

query I rowsort
SELECT ALL + 43
----
43

query I rowsort
SELECT ALL + - 99 AS col0
----
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-3883
SELECT DISTINCT + NULLIF ( - 64, - 22 ) AS col1, - 87 DIV - 66
----
-64
1

skipif mysql # not compatible
query II rowsort label-3883
SELECT DISTINCT + NULLIF ( - 64, - 22 ) AS col1, - 87 / - 66
----
-64
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3884
SELECT - - 94 * + 63 + - COALESCE ( ( - COALESCE ( + + ( + - 5 ), 2, + + ( - COALESCE ( + + 91, - - 84 * + NULLIF ( + COUNT( * ), ( 14 ) ) + - 33 * - 79 ) ) * + + 4 + 56 + + CAST( - 23 AS SIGNED ) DIV 23 + - 17 ) ), - - MIN( - 23 ) + 33 + + - 90, + + NULLIF ( - + ( - 87 ), - ( 12 ) ) ) AS col0
----
5917

skipif mysql # not compatible
query I rowsort label-3884
SELECT - - 94 * + 63 + - COALESCE ( ( - COALESCE ( + + ( + - 5 ), 2, + + ( - COALESCE ( + + 91, - - 84 * + NULLIF ( + COUNT ( * ), ( 14 ) ) + - 33 * - 79 ) ) * + + 4 + 56 + + CAST ( - 23 AS INTEGER ) / 23 + - 17 ) ), - - MIN ( - 23 ) + 33 + + - 90, + + NULLIF ( - + ( - 87 ), - ( 12 ) ) ) AS col0
----
5917

query I rowsort
SELECT + 23
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3886
SELECT - - 25 + ( - NULLIF ( ( - 72 ), + 61 * NULLIF ( - + CASE + - 29 WHEN - + 79 THEN + - 29 * CAST( NULL AS SIGNED ) * + 78 END, MIN( DISTINCT + - 45 ) + + 42 + - COUNT( * ) + - + 15 + - 56 + - - COUNT( * ) + 13 * + 78 * + + MAX( ALL - - 79 ) * - ( + ( + NULLIF ( + 92, + 47 + + + 56 - - - 11 ) ) ) ) * - + NULLIF ( 28, + - 8 - - - 54 + 74 + ( + 13 ) ) + 10 + + AVG ( 90 ) + 6 + + ( COALESCE ( 51, 28 * 70 ) + + 38 ) ) ) col2
----
97

skipif mysql # not compatible
query I rowsort label-3886
SELECT - - 25 + ( - NULLIF ( ( - 72 ), + 61 * NULLIF ( - + CASE + - 29 WHEN - + 79 THEN + - 29 * CAST ( NULL AS INTEGER ) * + 78 END, MIN ( DISTINCT + - 45 ) + + 42 + - COUNT ( * ) + - + 15 + - 56 + - - COUNT ( * ) + 13 * + 78 * + + MAX ( ALL - - 79 ) * - ( + ( + NULLIF ( + 92, + 47 + + + 56 - - - 11 ) ) ) ) * - + NULLIF ( 28, + - 8 - - - 54 + 74 + ( + 13 ) ) + 10 + + AVG ( 90 ) + 6 + + ( COALESCE ( 51, 28 * 70 ) + + 38 ) ) ) col2
----
97

query II rowsort
SELECT 74 col0, - ( + + 24 ) col1
----
74
-24

query I rowsort
SELECT ALL - + 90 * 37 AS col2
----
-3330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3889
SELECT + - 7 * + 71 * + ( - 63 ) + + 70 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3889
SELECT + - 7 * + 71 * + ( - 63 ) + + 70 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT - - 75 + 67 - + 2 AS col2, - 84 AS col0
----
140
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3891
SELECT - CAST( COUNT( ALL + 81 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3891
SELECT - CAST ( COUNT ( ALL + 81 ) AS INTEGER )
----
-1

query I rowsort
SELECT - 91 AS col2
----
-91

query I rowsort
SELECT - 30 col0
----
-30

query I rowsort
SELECT DISTINCT + ( - 95 )
----
-95

query I rowsort
SELECT DISTINCT 74 AS col2
----
74

query I rowsort
SELECT ALL 28 * - + 23 + + 55 + + 54 * - 39 AS col2
----
-2695

query I rowsort
SELECT ALL + 15 AS col1
----
15

query I rowsort
SELECT - + 5 AS col2
----
-5

query I rowsort
SELECT + - 43 * 78
----
-3354

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT ALL MAX( ALL ( + COALESCE ( - 3, + 49, + 43 ) ) ) * - 69 + - 55
----
152

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL MAX ( ALL ( + COALESCE ( - 3, + 49, + 43 ) ) ) * - 69 + - 55
----
152

query I rowsort
SELECT - 72 * + 41 AS col1
----
-2952

query I rowsort
SELECT + 30 + + + 42 + 93 AS col0
----
165

query I rowsort
SELECT - CASE - - 75 WHEN - 75 * - 44 + - 98 THEN NULL WHEN 16 + + - 40 THEN + 58 ELSE NULL END
----
NULL

query I rowsort
SELECT 91 AS col2
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3905
SELECT + COUNT( * ) * 67 * - COUNT( 56 ) DIV - MIN( ALL + 70 ) DIV + + 20 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3905
SELECT + COUNT ( * ) * 67 * - COUNT ( 56 ) / - MIN ( ALL + 70 ) / + + 20 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3906
SELECT ALL 94 + - CAST( - 74 AS SIGNED ) col2
----
168

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL 94 + - CAST ( - 74 AS INTEGER ) col2
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3907
SELECT DISTINCT 23 + + 36 * CAST( NULL AS SIGNED ) + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT 23 + + 36 * CAST ( NULL AS INTEGER ) + + 57
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3908
SELECT ALL + 61 DIV 91 AS col1, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-3908
SELECT ALL + 61 / 91 AS col1, COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3909
SELECT ALL - ( + - 61 ) DIV - + 60 - + - MAX( + - ( + 89 ) ) DIV + 71 + - + 30 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL - ( + - 61 ) / - + 60 - + - MAX ( + - ( + 89 ) ) / + 71 + - + 30 AS col0
----
-32

query I rowsort
SELECT ALL - 88 AS col2
----
-88

query I rowsort
SELECT + 17 AS col1
----
17

query I rowsort
SELECT NULLIF ( + 46, + - 85 ) * + + 5 AS col2
----
230

query II rowsort
SELECT 2 AS col2, + 16 * - 76 + - 21 + - 54
----
2
-1291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3914
SELECT ALL 52 DIV + - MIN( 24 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL 52 / + - MIN ( 24 ) AS col0
----
-2

query I rowsort
SELECT - 96 * - 40 * - 97 + - 66 AS col1
----
-372546

onlyif mysql # DIV for integer division: 
query I rowsort label-3916
SELECT 62 * + 14 + - 11 DIV 35
----
868

skipif mysql # not compatible
query I rowsort label-3916
SELECT 62 * + 14 + - 11 / 35
----
868

query I rowsort
SELECT 84 * + 72 AS col1
----
6048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3918
SELECT ALL - 89 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL - 89 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 84 AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3920
SELECT ALL 92 * - - ( - CAST( - 48 AS SIGNED ) ) AS col2
----
4416

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL 92 * - - ( - CAST ( - 48 AS INTEGER ) ) AS col2
----
4416

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT MIN( 32 ) + + 14
----
46

skipif mysql # not compatible
query I rowsort label-3921
SELECT MIN ( 32 ) + + 14
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3922
SELECT ALL + 9 - 87 AS col0, - 78 + - 72 * - NULLIF ( + COUNT( * ), - + AVG ( ALL + 85 ) ) + + 32 + + 68 DIV - 81 AS col1
----
-78
26

skipif mysql # not compatible
query II rowsort label-3922
SELECT ALL + 9 - 87 AS col0, - 78 + - 72 * - NULLIF ( + COUNT ( * ), - + AVG ( ALL + 85 ) ) + + 32 + + 68 / - 81 AS col1
----
-78
26

query II rowsort
SELECT ALL - - 88, - ( - 55 ) AS col2
----
88
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3924
SELECT + 71 * + 16 * + 91 + + - CAST( 41 AS SIGNED ) AS col2
----
103335

skipif mysql # not compatible
query I rowsort label-3924
SELECT + 71 * + 16 * + 91 + + - CAST ( 41 AS INTEGER ) AS col2
----
103335

query I rowsort
SELECT ALL - 34 - + 88 - 7 * - NULLIF ( + 50, - - 62 )
----
228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3926
SELECT + CASE - NULLIF ( - - 79, - CAST( NULL AS SIGNED ) ) WHEN COUNT( * ) THEN + + 54 WHEN 54 THEN - + COUNT( * ) / - - 99 + - 72 - 15 / - 55 * NULLIF ( - 16, + - 14 + + ( + + 40 ) ) * - + 36 END * 77 + + 65 + 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT + CASE - NULLIF ( - - 79, - CAST ( NULL AS INTEGER ) ) WHEN COUNT ( * ) THEN + + 54 WHEN 54 THEN - + COUNT ( * ) / - - 99 + - 72 - 15 / - 55 * NULLIF ( - 16, + - 14 + + ( + + 40 ) ) * - + 36 END * 77 + + 65 + 18 AS col1
----
NULL

query I rowsort
SELECT - 80 * 86
----
-6880

query I rowsort
SELECT ALL - - 49
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT ALL - + COUNT( ALL + 47 )
----
-1

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL - + COUNT ( ALL + 47 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3930
SELECT 68 + 5 DIV 56 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-3930
SELECT 68 + 5 / 56 AS col1
----
68

query I rowsort
SELECT + 2 AS col2
----
2

query I rowsort
SELECT + 16 * + - 88 * 9
----
-12672

query I rowsort
SELECT - 86
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-3934
SELECT ALL + 49 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL + 49 / 52
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3935
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, - 35
----
NULL
-35

skipif mysql # not compatible
query II rowsort label-3935
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, - 35
----
NULL
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-3936
SELECT ALL + 33 DIV - 1 + + 1 + 50
----
18

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL + 33 / - 1 + + 1 + 50
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-3937
SELECT COALESCE ( - COUNT( * ), + 90, - 10 + - 79 ) + - + 68 AS col0, 46
----
-69
46

skipif mysql # not compatible
query II rowsort label-3937
SELECT COALESCE ( - COUNT ( * ), + 90, - 10 + - 79 ) + - + 68 AS col0, 46
----
-69
46

query I rowsort
SELECT ALL + ( - + 87 )
----
-87

query I rowsort
SELECT DISTINCT + ( - 17 ) * + 70
----
-1190

query I rowsort
SELECT 86 * - 94 AS col1
----
-8084

query II rowsort
SELECT - - 17, 91 - 30 * + + 42 AS col2
----
17
-1169

query II rowsort
SELECT ALL + 60 col0, + CASE 38 WHEN - 21 - - + 75 THEN NULL WHEN + 17 THEN NULL ELSE - 19 * 76 + 89 END + + 83 AS col2
----
60
-1272

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT - 49 + 41 * 64 + - COUNT( * ) + 24 * + 57
----
3942

skipif mysql # not compatible
query I rowsort label-3943
SELECT - 49 + 41 * 64 + - COUNT ( * ) + 24 * + 57
----
3942

query I rowsort
SELECT 94
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3945
SELECT 15 * + CASE - + ( CAST( NULL AS SIGNED ) ) WHEN + + ( + ( - 11 ) ) * + - SUM( DISTINCT + - 59 ) THEN + 60 END, NULLIF ( + 23, - 30 + + - CAST( NULL AS SIGNED ) ) * - COALESCE ( - NULLIF ( COUNT( * ), 10 * - - 75 * COUNT( * ) ), - 67 ) * + CASE + + 5 WHEN - - 53 THEN + + 13 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3945
SELECT 15 * + CASE - + ( CAST ( NULL AS INTEGER ) ) WHEN + + ( + ( - 11 ) ) * + - SUM ( DISTINCT + - 59 ) THEN + 60 END, NULLIF ( + 23, - 30 + + - CAST ( NULL AS INTEGER ) ) * - COALESCE ( - NULLIF ( COUNT ( * ), 10 * - - 75 * COUNT ( * ) ), - 67 ) * + CASE + + 5 WHEN - - 53 THEN + + 13 END
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3946
SELECT ALL + 65 DIV 60 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL + 65 / 60 AS col0
----
1

query I rowsort
SELECT - 49
----
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3948
SELECT DISTINCT + 20 + CAST( 6 AS DECIMAL ) / - 32 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT + 20 + CAST ( 6 AS REAL ) / - 32 AS col2
----
19

query I rowsort
SELECT ALL 4 col1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3950
SELECT 49 + COUNT( * ) DIV - + 11 * - 47 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3950
SELECT 49 + COUNT ( * ) / - + 11 * - 47 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT MIN( + 88 ) * - 85 * - COUNT( * )
----
7480

skipif mysql # not compatible
query I rowsort label-3951
SELECT MIN ( + 88 ) * - 85 * - COUNT ( * )
----
7480

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT ALL + COALESCE ( - 11, - + NULLIF ( + COUNT( * ), - - 5 ), + - 23 ) + - + 42 col0
----
-53

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL + COALESCE ( - 11, - + NULLIF ( + COUNT ( * ), - - 5 ), + - 23 ) + - + 42 col0
----
-53

query I rowsort
SELECT DISTINCT 10 AS col1
----
10

query I rowsort
SELECT 30 * + 33 * + + 42 AS col1
----
41580

query I rowsort
SELECT 36
----
36

query I rowsort
SELECT - 17
----
-17

query I rowsort
SELECT CASE - 36 WHEN 17 THEN + - AVG ( ALL - - 25 ) END * - 38 AS col0
----
NULL

query I rowsort
SELECT ALL 46 - 64
----
-18

query I rowsort
SELECT ALL - 23
----
-23

query I rowsort
SELECT + 26 AS col1
----
26

query I rowsort
SELECT ALL - 94
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3962
SELECT DISTINCT + CAST( - - COUNT( * ) AS SIGNED ) - - - 18 + + 91 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT + CAST ( - - COUNT ( * ) AS INTEGER ) - - - 18 + + 91 AS col2
----
74

query I rowsort
SELECT DISTINCT - 7 AS col0
----
-7

query I rowsort
SELECT ALL 10 - - - 52 * - - COALESCE ( - + 63, + - 35, + 2 ) AS col0
----
3286

query I rowsort
SELECT ALL - 13 AS col1
----
-13

query I rowsort
SELECT DISTINCT - - 20
----
20

query I rowsort
SELECT + + 47 AS col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3968
SELECT - ( + 54 ) DIV + + 11
----
-4

skipif mysql # not compatible
query I rowsort label-3968
SELECT - ( + 54 ) / + + 11
----
-4

query I rowsort
SELECT + 85
----
85

query I rowsort
SELECT ALL - - NULLIF ( + 82, 40 )
----
82

query I rowsort
SELECT + 7 AS col1
----
7

query I rowsort
SELECT + + 37 AS col1
----
37

query I rowsort
SELECT + 69 AS col1
----
69

query II rowsort
SELECT ALL + 23 * 37 AS col1, 14 * 35 AS col1
----
851
490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3975
SELECT + ( - ( + 40 ) ) DIV + COALESCE ( COUNT( * ), + + 98, + CAST( NULL AS SIGNED ) * - 95 DIV + ( + 19 ) + - MIN( 26 ) * 27 * + 64 + + AVG ( ALL - 26 ) )
----
-40

skipif mysql # not compatible
query I rowsort label-3975
SELECT + ( - ( + 40 ) ) / + COALESCE ( COUNT ( * ), + + 98, + CAST ( NULL AS INTEGER ) * - 95 / + ( + 19 ) + - MIN ( 26 ) * 27 * + 64 + + AVG ( ALL - 26 ) )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3976
SELECT 86 * + CAST( NULL AS SIGNED ) + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT 86 * + CAST ( NULL AS INTEGER ) + 60 AS col0
----
NULL

query I rowsort
SELECT ALL - - 5 AS col1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3978
SELECT + 44 - + SUM( 8 ) AS col0, - 19 DIV 18 AS col2
----
36
-1

skipif mysql # not compatible
query II rowsort label-3978
SELECT + 44 - + SUM ( 8 ) AS col0, - 19 / 18 AS col2
----
36
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT DISTINCT + - 23 * - COUNT( * ) * 2
----
46

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT + - 23 * - COUNT ( * ) * 2
----
46

query I rowsort
SELECT ALL - + 88 AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3981
SELECT + - CAST( - + 10 AS SIGNED ) AS col0, - CAST( - COALESCE ( 51, + + SUM( + 42 ) * + + 9, - COUNT( * ) ) AS SIGNED ) + + COUNT( * ) - 95 AS col1
----
10
-43

skipif mysql # not compatible
query II rowsort label-3981
SELECT + - CAST ( - + 10 AS INTEGER ) AS col0, - CAST ( - COALESCE ( 51, + + SUM ( + 42 ) * + + 9, - COUNT ( * ) ) AS INTEGER ) + + COUNT ( * ) - 95 AS col1
----
10
-43

query I rowsort
SELECT ALL - + 27 AS col0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3983
SELECT DISTINCT - 4 * - + CASE + + 98 WHEN - - 61 THEN + 84 WHEN CAST( NULL AS SIGNED ) + - - 32 THEN - - 64 END * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT - 4 * - + CASE + + 98 WHEN - - 61 THEN + 84 WHEN CAST ( NULL AS INTEGER ) + - - 32 THEN - - 64 END * - 97
----
NULL

query I rowsort
SELECT + + 39 AS col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT DISTINCT CAST( + 41 AS SIGNED ) + - 86 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT CAST ( + 41 AS INTEGER ) + - 86 AS col0
----
-45

query I rowsort
SELECT 42 + + - 93
----
-51

query I rowsort
SELECT ( - - 78 ) AS col1
----
78

query I rowsort
SELECT ALL + - 81 + - CASE WHEN ( NOT ( NOT NULL IS NULL ) ) THEN 49 ELSE NULLIF ( - - 81, + - 59 ) + + - ( 88 ) * + 9 END
----
-130

query I rowsort
SELECT - - 69 * + 84 + + 50 * 14 + 30 + - 93 AS col1
----
6433

query I rowsort
SELECT 32 - - ( 91 ) + - + 66 * - 55 * + 71 AS col0
----
257853

query I rowsort
SELECT 34 + + 51 AS col1
----
85

query II rowsort
SELECT ALL - 46 + - 31 AS col0, - NULLIF ( - 57, - 52 ) + - 69 AS col0
----
-77
-12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3993
SELECT ALL ( - CAST( NULL AS DECIMAL ) ) + - + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL ( - CAST ( NULL AS REAL ) ) + - + 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT DISTINCT 48 + - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT 48 + - COUNT ( * ) AS col1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3995
SELECT ALL + 60 * - + MAX( + - 1 ), + 85 DIV - + 4 AS col1
----
60
-21

skipif mysql # not compatible
query II rowsort label-3995
SELECT ALL + 60 * - + MAX ( + - 1 ), + 85 / - + 4 AS col1
----
60
-21

query I rowsort
SELECT ALL - 6 + - 18 col2
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3997
SELECT 43 + + 6 - - 4 DIV + + 33 * + - 91 + COUNT( * ) + + 31 * 25 AS col2, + 6 AS col0
----
825
6

skipif mysql # not compatible
query II rowsort label-3997
SELECT 43 + + 6 - - 4 / + + 33 * + - 91 + COUNT ( * ) + + 31 * 25 AS col2, + 6 AS col0
----
825
6

query I rowsort
SELECT ALL 48 AS col2
----
48

query I rowsort
SELECT - 53 + + 95 col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4000
SELECT ALL NULLIF ( - CAST( NULL AS SIGNED ), - COUNT( * ) / NULLIF ( + 75, - 68 ) * CASE - COUNT( * ) WHEN - COALESCE ( - CASE NULLIF ( + COUNT( * ), - - 12 + 1 + - 42 * - 31 * - 56 * - MIN( DISTINCT + 78 ) ) WHEN + + 25 / - 72 THEN COUNT( * ) END, 54 ) THEN NULL WHEN - + ( + 57 ) THEN - COUNT( * ) END - + 89 * + + 84 * 27 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL NULLIF ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) / NULLIF ( + 75, - 68 ) * CASE - COUNT ( * ) WHEN - COALESCE ( - CASE NULLIF ( + COUNT ( * ), - - 12 + 1 + - 42 * - 31 * - 56 * - MIN ( DISTINCT + 78 ) ) WHEN + + 25 / - 72 THEN COUNT ( * ) END, 54 ) THEN NULL WHEN - + ( + 57 ) THEN - COUNT ( * ) END - + 89 * + + 84 * 27 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4001
SELECT - 82 - - ( - 44 ) + + 42 * COUNT( * ) * + 79 * 91 * + - 36 + + + 42 DIV 54 DIV - 19 * - NULLIF ( + 73, + - 9 )
----
-10869894

skipif mysql # not compatible
query I rowsort label-4001
SELECT - 82 - - ( - 44 ) + + 42 * COUNT ( * ) * + 79 * 91 * + - 36 + + + 42 / 54 / - 19 * - NULLIF ( + 73, + - 9 )
----
-10869894

query I rowsort
SELECT - 41 + - + 50 AS col0
----
-91

query I rowsort
SELECT 40 AS col1
----
40

query II rowsort
SELECT - 61, - 55 + + + 14 + + 5 + 59 + - 28 * + + 38 AS col2
----
-61
-1041

query I rowsort
SELECT DISTINCT + 89 - - + 4 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT + ( + COUNT( * ) ) + + 18 + ( + - ( - 55 ) ) + - 80
----
-6

skipif mysql # not compatible
query I rowsort label-4006
SELECT + ( + COUNT ( * ) ) + + 18 + ( + - ( - 55 ) ) + - 80
----
-6

query I rowsort
SELECT 27 AS col1
----
27

query II rowsort
SELECT ALL + 98 * - 43 * + 42 AS col0, 87
----
-176988
87

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4009
SELECT ALL 26, 78 + + CAST( NULL AS DECIMAL ) * + 40 / + - 99 col0
----
26
NULL

skipif mysql # not compatible
query II rowsort label-4009
SELECT ALL 26, 78 + + CAST ( NULL AS REAL ) * + 40 / + - 99 col0
----
26
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT ALL NULLIF ( + - 83, + COUNT( DISTINCT + + 60 ) / - - 4 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL NULLIF ( + - 83, + COUNT ( DISTINCT + + 60 ) / - - 4 ) AS col2
----
-83

query I rowsort
SELECT DISTINCT + 16
----
16

query II rowsort
SELECT ALL + 58 AS col2, 11 AS col1
----
58
11

query I rowsort
SELECT - 69 + + 15
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4014
SELECT ALL + 26 * - CAST( + 26 AS SIGNED )
----
-676

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL + 26 * - CAST ( + 26 AS INTEGER )
----
-676

query II rowsort
SELECT 68, 58 + 54 * - - 56 AS col0
----
68
3082

query I rowsort
SELECT ALL 50 * - + 14 * - - 33 - + 57 AS col0
----
-23157

query I rowsort
SELECT + + 88 * - 95 AS col0
----
-8360

query I rowsort
SELECT DISTINCT + - 93
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4019
SELECT + 42 + + + ( + CAST( - CASE - 82 WHEN - 45 * - 69 + + + 84 + CAST( - 23 AS SIGNED ) * - + 20 - + ( + + COUNT( * ) ) THEN NULL WHEN + SUM( DISTINCT + + 20 ) THEN NULL ELSE - ( + + ( - - 43 ) ) END AS SIGNED ) ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4019
SELECT + 42 + + + ( + CAST ( - CASE - 82 WHEN - 45 * - 69 + + + 84 + CAST ( - 23 AS INTEGER ) * - + 20 - + ( + + COUNT ( * ) ) THEN NULL WHEN + SUM ( DISTINCT + + 20 ) THEN NULL ELSE - ( + + ( - - 43 ) ) END AS INTEGER ) ) AS col0
----
85

query I rowsort
SELECT ALL + - COALESCE ( + 0, + 41 ) AS col0
----
0

query I rowsort
SELECT ALL + ( - + 16 )
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-4022
SELECT ALL + 80 AS col2, - 91 * 35 - COUNT( * ) + + COUNT( * ) * - 3
----
80
-3189

skipif mysql # not compatible
query II rowsort label-4022
SELECT ALL + 80 AS col2, - 91 * 35 - COUNT ( * ) + + COUNT ( * ) * - 3
----
80
-3189

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT - COUNT( * ) * 23 + + 54
----
31

skipif mysql # not compatible
query I rowsort label-4023
SELECT - COUNT ( * ) * 23 + + 54
----
31

query I rowsort
SELECT ALL - 79 * 43 + - 64 - + 2 AS col2
----
-3463

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT DISTINCT - COALESCE ( - 17, + COUNT( * ) * + 94 * - - NULLIF ( - 68, + - 90 * + + ( - ( + 74 ) ) * + COUNT( * ) + - - 89 ), + 38 * COALESCE ( MIN( DISTINCT 25 ), 19 + 88 ) ) * 61 + + - SUM( ALL NULLIF ( + 3, - 47 / + + 67 ) ) + - - 76 + + 84 * 70
----
6990

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT - COALESCE ( - 17, + COUNT ( * ) * + 94 * - - NULLIF ( - 68, + - 90 * + + ( - ( + 74 ) ) * + COUNT ( * ) + - - 89 ), + 38 * COALESCE ( MIN ( DISTINCT 25 ), 19 + 88 ) ) * 61 + + - SUM ( ALL NULLIF ( + 3, - 47 / + + 67 ) ) + - - 76 + + 84 * 70
----
6990

query I rowsort
SELECT 23 col2
----
23

query I rowsort
SELECT + 22 * - - 62
----
1364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4028
SELECT + - 56 + CASE + CAST( NULL AS SIGNED ) WHEN + - ( - - 62 ) THEN + COALESCE ( - 43, 31 / - CAST( NULL AS SIGNED ) ) / + 49 * ( + MIN( 97 ) ) * + COUNT( * ) + + + 80 + ( - - 45 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4028
SELECT + - 56 + CASE + CAST ( NULL AS INTEGER ) WHEN + - ( - - 62 ) THEN + COALESCE ( - 43, 31 / - CAST ( NULL AS INTEGER ) ) / + 49 * ( + MIN ( 97 ) ) * + COUNT ( * ) + + + 80 + ( - - 45 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4029
SELECT ALL - 50 DIV + COALESCE ( 98, 74, + 38, - + 86 ) AS col0, 79 * - + 3 + + 59 * - - 78 AS col2
----
0
4365

skipif mysql # not compatible
query II rowsort label-4029
SELECT ALL - 50 / + COALESCE ( 98, 74, + 38, - + 86 ) AS col0, 79 * - + 3 + + 59 * - - 78 AS col2
----
0
4365

query I rowsort
SELECT 86 AS col1
----
86

query I rowsort
SELECT + + 86 * 17
----
1462

query I rowsort
SELECT - + 81 + 79
----
-2

query I rowsort
SELECT + ( + 49 )
----
49

query I rowsort
SELECT ALL 66
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4035
SELECT ALL CAST( 96 AS SIGNED ) * + 1 col2
----
96

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL CAST ( 96 AS INTEGER ) * + 1 col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT COUNT( DISTINCT - 92 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4036
SELECT COUNT ( DISTINCT - 92 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4037
SELECT ALL NULLIF ( 39, + + 74 * + + ( + 62 ) + NULLIF ( + 96, - - 11 + 43 * - MIN( DISTINCT - 85 ) * + ( MAX( - 13 ) ) * 85 * - - 62 - + + COALESCE ( 82, - CAST( NULL AS DECIMAL ) ) ) + + 73 )
----
39

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL NULLIF ( 39, + + 74 * + + ( + 62 ) + NULLIF ( + 96, - - 11 + 43 * - MIN ( DISTINCT - 85 ) * + ( MAX ( - 13 ) ) * 85 * - - 62 - + + COALESCE ( 82, - CAST ( NULL AS REAL ) ) ) + + 73 )
----
39

query I rowsort
SELECT ALL 36 - + 16 + - + 31 AS col1
----
-11

query I rowsort
SELECT + 41 - + 51
----
-10

query I rowsort
SELECT + 59 + - - CASE - NULLIF ( - 64, - 68 ) WHEN - 49 / - + 64 THEN 38 WHEN 2 THEN + 59 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4041
SELECT DISTINCT - 57 - CASE + - 21 WHEN + + 35 THEN 22 + + 50 WHEN CAST( NULL AS SIGNED ) * + 51 + + 77 THEN NULL WHEN - 11 * - 76 THEN + COALESCE ( - + NULLIF ( - 15, 84 ), - 50 * CAST( + 43 AS SIGNED ) ) * - 64 * - COUNT( * ) + ( 48 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4041
SELECT DISTINCT - 57 - CASE + - 21 WHEN + + 35 THEN 22 + + 50 WHEN CAST ( NULL AS INTEGER ) * + 51 + + 77 THEN NULL WHEN - 11 * - 76 THEN + COALESCE ( - + NULLIF ( - 15, 84 ), - 50 * CAST ( + 43 AS INTEGER ) ) * - 64 * - COUNT ( * ) + ( 48 ) END
----
NULL

query I rowsort
SELECT 88 AS col1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4043
SELECT - 0 DIV + - 10 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4043
SELECT - 0 / + - 10 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4044
SELECT + 11 * + 44 AS col1, + COUNT( * ) * 86
----
484
86

skipif mysql # not compatible
query II rowsort label-4044
SELECT + 11 * + 44 AS col1, + COUNT ( * ) * 86
----
484
86

query I rowsort
SELECT DISTINCT 35 - - 60 AS col2
----
95

query I rowsort
SELECT - NULLIF ( 95, + 12 ) + - 50 AS col1
----
-145

query I rowsort
SELECT 12
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4048
SELECT ALL 69 DIV 71 * + 3 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL 69 / 71 * + 3 AS col0
----
0

query I rowsort
SELECT 26 col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4050
SELECT ALL CASE 10 WHEN + CAST( NULL AS SIGNED ) - 68 THEN - - COUNT( * ) WHEN + ( - + 6 ) / - 32 - + 57 THEN - 46 WHEN + + COALESCE ( - 47, - COUNT( * ), - COALESCE ( NULLIF ( - COUNT( * ), - + 97 * + NULLIF ( - - ( + 84 ), + + 18 ) ), + 24 ) ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL CASE 10 WHEN + CAST ( NULL AS INTEGER ) - 68 THEN - - COUNT ( * ) WHEN + ( - + 6 ) / - 32 - + 57 THEN - 46 WHEN + + COALESCE ( - 47, - COUNT ( * ), - COALESCE ( NULLIF ( - COUNT ( * ), - + 97 * + NULLIF ( - - ( + 84 ), + + 18 ) ), + 24 ) ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT - 51 + + 19 + - ( + 0 ) + + - COUNT( - 7 ) * + 53
----
-85

skipif mysql # not compatible
query I rowsort label-4051
SELECT - 51 + + 19 + - ( + 0 ) + + - COUNT ( - 7 ) * + 53
----
-85

query I rowsort
SELECT 58
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4053
SELECT ALL MAX( - 87 ), NULLIF ( 8, + 47 / + COUNT( * ) ) * + 12 AS col1
----
-87
96

skipif mysql # not compatible
query II rowsort label-4053
SELECT ALL MAX ( - 87 ), NULLIF ( 8, + 47 / + COUNT ( * ) ) * + 12 AS col1
----
-87
96

query I rowsort
SELECT - 70 col2
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4055
SELECT - - 17 DIV + - SUM( ALL + 3 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4055
SELECT - - 17 / + - SUM ( ALL + 3 ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT - COUNT( * ) * ( - + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-4056
SELECT - COUNT ( * ) * ( - + 44 )
----
44

query I rowsort
SELECT + + 0
----
0

query I rowsort
SELECT DISTINCT + + 65
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4059
SELECT ALL + COUNT( * ) DIV + + 67 + ( 44 )
----
44

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL + COUNT ( * ) / + + 67 + ( 44 )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4060
SELECT CAST( 21 AS SIGNED ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-4060
SELECT CAST ( 21 AS INTEGER ) AS col2
----
21

query I rowsort
SELECT + 53 * + - 59 + - - 36 col0
----
-3091

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4062
SELECT CAST( + ( - - 81 ) AS SIGNED ) * + - 79 - + 20
----
-6419

skipif mysql # not compatible
query I rowsort label-4062
SELECT CAST ( + ( - - 81 ) AS INTEGER ) * + - 79 - + 20
----
-6419

query I rowsort
SELECT ALL - 54 * + 87 * + - 56
----
263088

query I rowsort
SELECT 76 AS col2
----
76

query I rowsort
SELECT + ( - ( 99 ) ) AS col0
----
-99

query I rowsort
SELECT + 10 AS col2
----
10

query I rowsort
SELECT 19 AS col2
----
19

onlyif mysql # DIV for integer division: 
query II rowsort label-4068
SELECT + + ( + 93 ), 16 DIV ( - 30 ) AS col1
----
93
0

skipif mysql # not compatible
query II rowsort label-4068
SELECT + + ( + 93 ), 16 / ( - 30 ) AS col1
----
93
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4069
SELECT - 93 * - - 46 * 95 * MAX( + CAST( NULL AS SIGNED ) ) + 99 / - - 48 - - + 94 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT - 93 * - - 46 * 95 * MAX ( + CAST ( NULL AS INTEGER ) ) + 99 / - - 48 - - + 94 col1
----
NULL

query I rowsort
SELECT ALL + 92
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT ALL - 60 * NULLIF ( + - 77, + 42 ) * - 41 + - + 69 + - 68 - + + COUNT( * ) * + 46 * + - 64 AS col0
----
-186613

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL - 60 * NULLIF ( + - 77, + 42 ) * - 41 + - + 69 + - 68 - + + COUNT ( * ) * + 46 * + - 64 AS col0
----
-186613

onlyif mysql # DIV for integer division: 
query I rowsort label-4072
SELECT 94 DIV - - 68 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4072
SELECT 94 / - - 68 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4073
SELECT ALL - CASE NULLIF ( - 34, - COUNT( * ) * - 75 / + 25 ) WHEN + 8 THEN NULL ELSE - MAX( ALL NULLIF ( 51, - - ( 41 ) ) ) + 44 + + - 95 END, + 57 AS col1
----
102
57

skipif mysql # not compatible
query II rowsort label-4073
SELECT ALL - CASE NULLIF ( - 34, - COUNT ( * ) * - 75 / + 25 ) WHEN + 8 THEN NULL ELSE - MAX ( ALL NULLIF ( 51, - - ( 41 ) ) ) + 44 + + - 95 END, + 57 AS col1
----
102
57

query I rowsort
SELECT + + ( + 41 ) AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4075
SELECT ALL CAST( - 68 AS SIGNED ) - - MIN( - - 63 )
----
-5

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL CAST ( - 68 AS INTEGER ) - - MIN ( - - 63 )
----
-5

query I rowsort
SELECT 71 AS col1
----
71

query I rowsort
SELECT 6 * + 0 + + 38 - 80 * - 39
----
3158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4078
SELECT ALL 53 DIV MIN( ALL 69 ) * - 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL 53 / MIN ( ALL 69 ) * - 15 AS col1
----
0

query I rowsort
SELECT 43 + - 85
----
-42

query I rowsort
SELECT 78 - - + 7
----
85

query I rowsort
SELECT ALL 2
----
2

query I rowsort
SELECT - 3
----
-3

query I rowsort
SELECT - 55 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ALL 23 * - - COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL 23 * - - COUNT ( * ) AS col0
----
23

query I rowsort
SELECT ALL 82 * - 59
----
-4838

query I rowsort
SELECT 68 * - 76
----
-5168

onlyif mysql # aggregate syntax: 
query II rowsort label-4087
SELECT ALL 13, MIN( ALL 13 ) * + 99 + + + 86 AS col1
----
13
1373

skipif mysql # not compatible
query II rowsort label-4087
SELECT ALL 13, MIN ( ALL 13 ) * + 99 + + + 86 AS col1
----
13
1373

query I rowsort
SELECT DISTINCT 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT CASE + 10 WHEN - 23 + - AVG ( DISTINCT - - 46 ) + - + COALESCE ( + + 31, - 0, - 62 * + 69 + COUNT( * ) + - 8 * + 61 ) THEN AVG ( 87 ) * - 23 + - MAX( - 4 ) / - 19 END + + COALESCE ( 37, - ( + + 26 ) * - 17 + ( - 64 ), - 66 / + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4089
SELECT CASE + 10 WHEN - 23 + - AVG ( DISTINCT - - 46 ) + - + COALESCE ( + + 31, - 0, - 62 * + 69 + COUNT ( * ) + - 8 * + 61 ) THEN AVG ( 87 ) * - 23 + - MAX ( - 4 ) / - 19 END + + COALESCE ( 37, - ( + + 26 ) * - 17 + ( - 64 ), - 66 / + 97 )
----
NULL

query I rowsort
SELECT - 69 AS col2
----
-69

query I rowsort
SELECT ALL 46 * + 19 * + - 1
----
-874

query I rowsort
SELECT 58 * - - 69 AS col0
----
4002

query I rowsort
SELECT 94 * + - 36
----
-3384

onlyif mysql # DIV for integer division: 
query I rowsort label-4094
SELECT 64 + - + 92 DIV + 39 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-4094
SELECT 64 + - + 92 / + 39 AS col1
----
62

query I rowsort
SELECT DISTINCT 27
----
27

query II rowsort
SELECT - 80 AS col0, + 10
----
-80
10

query I rowsort
SELECT 8 AS col2
----
8

query I rowsort
SELECT ALL 33
----
33

query I rowsort
SELECT 83 * - 26 AS col2
----
-2158

query I rowsort
SELECT 19 * 72
----
1368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4101
SELECT 22 + MAX( - 38 ) DIV ( + 68 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-4101
SELECT 22 + MAX ( - 38 ) / ( + 68 ) AS col1
----
22

onlyif mysql # DIV for integer division: 
query II rowsort label-4102
SELECT DISTINCT 70, - 32 + - 84 + 36 * 99 + + 87 * - - 64 + - 90 DIV - 47 AS col1
----
70
9017

skipif mysql # not compatible
query II rowsort label-4102
SELECT DISTINCT 70, - 32 + - 84 + 36 * 99 + + 87 * - - 64 + - 90 / - 47 AS col1
----
70
9017

onlyif mysql # aggregate syntax: 
query II rowsort label-4103
SELECT ALL + + 29 + - 90 + - 57 * - COUNT( * ) * 35 + + - 20, - 91 AS col1
----
1914
-91

skipif mysql # not compatible
query II rowsort label-4103
SELECT ALL + + 29 + - 90 + - 57 * - COUNT ( * ) * 35 + + - 20, - 91 AS col1
----
1914
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-4104
SELECT DISTINCT COUNT( * ) AS col0, 15 * 57 * 32 col2
----
1
27360

skipif mysql # not compatible
query II rowsort label-4104
SELECT DISTINCT COUNT ( * ) AS col0, 15 * 57 * 32 col2
----
1
27360

query I rowsort
SELECT ALL - 81 AS col1
----
-81

query I rowsort
SELECT DISTINCT - + 16 * 3
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT ALL - CASE - ( + + 47 ) WHEN + COUNT( * ) * - 53 * - - 24 + - - 53 THEN - 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL - CASE - ( + + 47 ) WHEN + COUNT ( * ) * - 53 * - - 24 + - - 53 THEN - 16 ELSE NULL END
----
NULL

query I rowsort
SELECT + + 14
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT ALL - CASE - - 99 WHEN - 77 * - 4 / 17 * + COUNT( * ) * - - 38 THEN NULL ELSE + ( + 4 ) * - + COUNT( * ) - 63 - + - 97 END + + 99 * - - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL - CASE - - 99 WHEN - 77 * - 4 / 17 * + COUNT ( * ) * - - 38 THEN NULL ELSE + ( + 4 ) * - + COUNT ( * ) - 63 - + - 97 END + + 99 * - - COUNT ( * )
----
69

query I rowsort
SELECT DISTINCT 98 * 76
----
7448

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4111
SELECT CAST( NULL AS DECIMAL ) + - ( + MAX( DISTINCT 57 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4111
SELECT CAST ( NULL AS REAL ) + - ( + MAX ( DISTINCT 57 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4112
SELECT - - SUM( DISTINCT + 64 ) DIV MIN( 70 ) * + 83 DIV + 87 * 90 - - 49 - 53
----
-4

skipif mysql # not compatible
query I rowsort label-4112
SELECT - - SUM ( DISTINCT + 64 ) / MIN ( 70 ) * + 83 / + 87 * 90 - - 49 - 53
----
-4

query I rowsort
SELECT DISTINCT + 83 * 69 * - 58
----
-332166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4114
SELECT ALL - 25 * + - CASE - + 61 WHEN + + 37 THEN + 84 END + - CAST( NULL AS SIGNED ) / - 49 * - CAST( NULL AS SIGNED ) + + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL - 25 * + - CASE - + 61 WHEN + + 37 THEN + 84 END + - CAST ( NULL AS INTEGER ) / - 49 * - CAST ( NULL AS INTEGER ) + + 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4115
SELECT ALL - + SUM( DISTINCT - - 62 ) - - - 42 AS col0, COALESCE ( - COUNT( * ), - COUNT( 86 ) * + + ( 57 ) DIV 62 - - 99 ) AS col0, + 21
----
-104
-1
21

skipif mysql # not compatible
query III rowsort label-4115
SELECT ALL - + SUM ( DISTINCT - - 62 ) - - - 42 AS col0, COALESCE ( - COUNT ( * ), - COUNT ( 86 ) * + + ( 57 ) / 62 - - 99 ) AS col0, + 21
----
-104
-1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT COUNT( * ) + - - 2 col0
----
3

skipif mysql # not compatible
query I rowsort label-4116
SELECT COUNT ( * ) + - - 2 col0
----
3

query I rowsort
SELECT DISTINCT - - 5
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT ALL - COUNT( + 5 )
----
-1

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL - COUNT ( + 5 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT - 78 * SUM( 44 ) + - - 31 + - + ( + 78 ) * + + 24 AS col1
----
-5273

skipif mysql # not compatible
query I rowsort label-4119
SELECT - 78 * SUM ( 44 ) + - - 31 + - + ( + 78 ) * + + 24 AS col1
----
-5273

query I rowsort
SELECT 40 * + 20
----
800

query II rowsort
SELECT 13 AS col2, + 55
----
13
55

query II rowsort
SELECT + 90 AS col0, 80
----
90
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4123
SELECT ALL - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 48 * + 55 * + 0 AS col2
----
0

query I rowsort
SELECT 78 + - 5
----
73

query II rowsort
SELECT 49 * 5 col0, + 19
----
245
19

query I rowsort
SELECT + 98 AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4128
SELECT ALL - 33 AS col0, CAST( - NULLIF ( 67, CAST( NULL AS SIGNED ) * + ( 48 ) ) AS SIGNED )
----
-33
-67

skipif mysql # not compatible
query II rowsort label-4128
SELECT ALL - 33 AS col0, CAST ( - NULLIF ( 67, CAST ( NULL AS INTEGER ) * + ( 48 ) ) AS INTEGER )
----
-33
-67

query I rowsort
SELECT 43 col2
----
43

query I rowsort
SELECT ALL + 39 * - + 33 * + 76 * - - 84
----
-8216208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4131
SELECT 56, - 5 DIV 88 * COALESCE ( + ( - 22 ), + - 34, + CAST( NULL AS SIGNED ) * + COUNT( * ) * + 86 DIV + + COUNT( * ) ) AS col2
----
56
0

skipif mysql # not compatible
query II rowsort label-4131
SELECT 56, - 5 / 88 * COALESCE ( + ( - 22 ), + - 34, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + 86 / + + COUNT ( * ) ) AS col2
----
56
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT ALL MAX( 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL MAX ( 53 ) AS col2
----
53

query II rowsort
SELECT - 66 AS col2, 40 + - 85
----
-66
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT CASE - - 43 WHEN + - 53 * - CASE - + 47 WHEN + ( + - 53 ) THEN + COUNT( ALL - 16 ) ELSE NULL END * + + 86 / - 45 THEN - 81 + + 2 END / + 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT CASE - - 43 WHEN + - 53 * - CASE - + 47 WHEN + ( + - 53 ) THEN + COUNT ( ALL - 16 ) ELSE NULL END * + + 86 / - 45 THEN - 81 + + 2 END / + 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT 64 + COUNT( * ) * 81 AS col0
----
145

skipif mysql # not compatible
query I rowsort label-4135
SELECT 64 + COUNT ( * ) * 81 AS col0
----
145

query I rowsort
SELECT 68 - + + 75 AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4137
SELECT - 22, ( CAST( 52 AS SIGNED ) ) * 25 AS col1
----
-22
1300

skipif mysql # not compatible
query II rowsort label-4137
SELECT - 22, ( CAST ( 52 AS INTEGER ) ) * 25 AS col1
----
-22
1300

query I rowsort
SELECT 74 + + 42 AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT 9 + 77 * - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-4139
SELECT 9 + 77 * - COUNT ( * )
----
-68

query I rowsort
SELECT 80 AS col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4141
SELECT MAX( + + 78 ) DIV 50 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4141
SELECT MAX ( + + 78 ) / 50 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL COALESCE ( + - 48, ( - - SUM( - 91 ) ) ) + - - ( COUNT( * ) ) + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL COALESCE ( + - 48, ( - - SUM ( - 91 ) ) ) + - - ( COUNT ( * ) ) + COUNT ( * )
----
-46

query I rowsort
SELECT ALL - 40 + 82 AS col2
----
42

query I rowsort
SELECT ALL + 95 * 7 AS col0
----
665

query I rowsort
SELECT DISTINCT 60 + + 56
----
116

query I rowsort
SELECT ALL + NULLIF ( + 26, - + 47 / 80 )
----
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4147
SELECT ( 81 ) + + NULLIF ( + 45, - 58 * ( - + 55 ) + + CAST( + 96 AS DECIMAL ) )
----
126

skipif mysql # not compatible
query I rowsort label-4147
SELECT ( 81 ) + + NULLIF ( + 45, - 58 * ( - + 55 ) + + CAST ( + 96 AS REAL ) )
----
126

query I rowsort
SELECT ALL 78 + 46 AS col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL + COUNT( * ) + 82 + 57 AS col1
----
140

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL + COUNT ( * ) + 82 + 57 AS col1
----
140

query I rowsort
SELECT - 5 AS col0
----
-5

query I rowsort
SELECT - - 16 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT - COUNT( * ) + + 23 - - + COUNT( * ) * - 72 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-4152
SELECT - COUNT ( * ) + + 23 - - + COUNT ( * ) * - 72 AS col1
----
-50

query I rowsort
SELECT - 66 AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT DISTINCT + 96 + - - 46 * + COUNT( * ) col1
----
142

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT + 96 + - - 46 * + COUNT ( * ) col1
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-4155
SELECT DISTINCT - + COUNT( * ), 88 + + 32 AS col1
----
-1
120

skipif mysql # not compatible
query II rowsort label-4155
SELECT DISTINCT - + COUNT ( * ), 88 + + 32 AS col1
----
-1
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4156
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT ALL - + 71 AS col2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4158
SELECT DISTINCT + COUNT( ALL - ( + COALESCE ( + 91, + 29 ) ) ) * CAST( - + 18 AS SIGNED ) + 89 + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT + COUNT ( ALL - ( + COALESCE ( + 91, + 29 ) ) ) * CAST ( - + 18 AS INTEGER ) + 89 + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT DISTINCT + - SUM( ALL - - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-4159
SELECT DISTINCT + - SUM ( ALL - - 38 )
----
-38

query I rowsort
SELECT DISTINCT + - 73 col0
----
-73

onlyif mysql # DIV for integer division: 
query II rowsort label-4161
SELECT - + 37 * + 59 - 43 * - - 14 AS col1, - 19 * - COALESCE ( 5, ( - 95 ) DIV + 10 DIV 68 ) * - 45
----
-2785
-4275

skipif mysql # not compatible
query II rowsort label-4161
SELECT - + 37 * + 59 - 43 * - - 14 AS col1, - 19 * - COALESCE ( 5, ( - 95 ) / + 10 / 68 ) * - 45
----
-2785
-4275

query I rowsort
SELECT - 47 * 78 AS col0
----
-3666

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT DISTINCT COUNT( * ) * - 85 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT COUNT ( * ) * - 85 AS col0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4164
SELECT - NULLIF ( - 43, 64 ) * + - ( - - CAST( NULL AS SIGNED ) ) / + 18 + + - COALESCE ( + 23, + COUNT( * ) ) - - 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT - NULLIF ( - 43, 64 ) * + - ( - - CAST ( NULL AS INTEGER ) ) / + 18 + + - COALESCE ( + 23, + COUNT ( * ) ) - - 60 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4165
SELECT - 7 AS col0, CAST( - 96 AS SIGNED ) + - COUNT( ALL + 84 )
----
-7
-97

skipif mysql # not compatible
query II rowsort label-4165
SELECT - 7 AS col0, CAST ( - 96 AS INTEGER ) + - COUNT ( ALL + 84 )
----
-7
-97

query I rowsort
SELECT ALL + - 30
----
-30

query I rowsort
SELECT ALL + 78 * + COALESCE ( 86, - 24 + - 66 * 37 )
----
6708

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT COUNT( + 73 )
----
1

skipif mysql # not compatible
query I rowsort label-4168
SELECT COUNT ( + 73 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4169
SELECT ALL - 71 DIV 20 DIV + 67 col1, + 22 + - SUM( ALL + 51 ) AS col2
----
0
-29

skipif mysql # not compatible
query II rowsort label-4169
SELECT ALL - 71 / 20 / + 67 col1, + 22 + - SUM ( ALL + 51 ) AS col2
----
0
-29

query I rowsort
SELECT DISTINCT + 10
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4171
SELECT - CASE + + CAST( NULL AS SIGNED ) WHEN 8 + + 28 * - 80 THEN NULL WHEN - 59 - - 8 THEN + 51 ELSE NULL END * - - 55 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4171
SELECT - CASE + + CAST ( NULL AS INTEGER ) WHEN 8 + + 28 * - 80 THEN NULL WHEN - 59 - - 8 THEN + 51 ELSE NULL END * - - 55 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT ALL CASE + + 70 WHEN ( + COUNT( * ) ) * 80 * - - 29 * + 29 * 29 THEN - + 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL CASE + + 70 WHEN ( + COUNT ( * ) ) * 80 * - - 29 * + 29 * 29 THEN - + 77 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT - COALESCE ( - CASE + 17 WHEN - + 58 * - SUM( + 24 ) * - NULLIF ( + 12, + + ( - + 21 ) ) * + + 59 + - 65 + + 58 THEN + 87 + - + 8 + + - 25 END, + ( + 39 ) ) * - - 47 AS col0
----
-1833

skipif mysql # not compatible
query I rowsort label-4173
SELECT - COALESCE ( - CASE + 17 WHEN - + 58 * - SUM ( + 24 ) * - NULLIF ( + 12, + + ( - + 21 ) ) * + + 59 + - 65 + + 58 THEN + 87 + - + 8 + + - 25 END, + ( + 39 ) ) * - - 47 AS col0
----
-1833

query I rowsort
SELECT - 5 + - 30
----
-35

query I rowsort
SELECT - 22 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT DISTINCT - 36 + - 91 * COUNT( * ) - 27 AS col0
----
-154

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT - 36 + - 91 * COUNT ( * ) - 27 AS col0
----
-154

onlyif mysql # aggregate syntax: 
query III rowsort label-4177
SELECT ALL + CASE + 15 WHEN - - COUNT( * ) THEN NULL WHEN + COUNT( * ) + - 74 THEN - 51 * - COUNT( * ) * - COUNT( * ) + + MIN( ALL + + 60 ) + - - 25 * + NULLIF ( + 65, 46 * + ( + + 50 ) ) * - - 82 * - SUM( - 29 ) + + + 35 ELSE + 31 END + - 60 AS col2, 45 * - 47 * 32, 43 AS col2
----
-29
-67680
43

skipif mysql # not compatible
query III rowsort label-4177
SELECT ALL + CASE + 15 WHEN - - COUNT ( * ) THEN NULL WHEN + COUNT ( * ) + - 74 THEN - 51 * - COUNT ( * ) * - COUNT ( * ) + + MIN ( ALL + + 60 ) + - - 25 * + NULLIF ( + 65, 46 * + ( + + 50 ) ) * - - 82 * - SUM ( - 29 ) + + + 35 ELSE + 31 END + - 60 AS col2, 45 * - 47 * 32, 43 AS col2
----
-29
-67680
43

query I rowsort
SELECT 28 col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT ALL + 9 * + COUNT( * ) * 80
----
720

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL + 9 * + COUNT ( * ) * 80
----
720

query I rowsort
SELECT DISTINCT 81 AS col1
----
81

query I rowsort
SELECT ALL 32 AS col0
----
32

query I rowsort
SELECT - - 52 AS col0
----
52

query I rowsort
SELECT - 61 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT - 50 * + - COUNT( * ) + + 40 col0
----
90

skipif mysql # not compatible
query I rowsort label-4184
SELECT - 50 * + - COUNT ( * ) + + 40 col0
----
90

query I rowsort
SELECT + 19 * + + 69 AS col2
----
1311

query I rowsort
SELECT ALL 33 col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4187
SELECT + + 72 DIV - + NULLIF ( + 81, - + 95 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4187
SELECT + + 72 / - + NULLIF ( + 81, - + 95 ) AS col0
----
0

query I rowsort
SELECT DISTINCT + 67 - + COALESCE ( - 66, - 80 * 86, 12 ) * 89
----
5941

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT - SUM( ALL + - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-4189
SELECT - SUM ( ALL + - 93 )
----
93

query I rowsort
SELECT ALL - 92 - 7 + 35 * 82 * - - 63
----
180711

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT ALL - 34 * COUNT( * ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL - 34 * COUNT ( * ) AS col2
----
-34

query I rowsort
SELECT + - 28 * + 88
----
-2464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4193
SELECT ALL - + 90 DIV COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL - + 90 / COUNT ( * )
----
-90

query I rowsort
SELECT + + ( + 56 ) * - 22 * - - NULLIF ( - 79, - 85 - 26 ) * - 33 + + 27
----
-3211797

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT ALL 39 * COUNT( * ) + MIN( 66 ) AS col1
----
105

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL 39 * COUNT ( * ) + MIN ( 66 ) AS col1
----
105

query I rowsort
SELECT ALL + 44 AS col1
----
44

query I rowsort
SELECT ALL 57 col0
----
57

query I rowsort
SELECT + - 46
----
-46

query I rowsort
SELECT - 61 + + 17 * - 97
----
-1710

query I rowsort
SELECT DISTINCT + 21
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4201
SELECT ALL 5 * - 5 * - 82 col2, + COUNT( * ) AS col0
----
2050
1

skipif mysql # not compatible
query II rowsort label-4201
SELECT ALL 5 * - 5 * - 82 col2, + COUNT ( * ) AS col0
----
2050
1

query I rowsort
SELECT + + ( + - 70 ) + - - 28
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4203
SELECT 1 * 73 + + CAST( NULL AS SIGNED ) + - 21 / + + 44 AS col1, CAST( + - 46 AS SIGNED ) * - 45
----
NULL
2070

skipif mysql # not compatible
query II rowsort label-4203
SELECT 1 * 73 + + CAST ( NULL AS INTEGER ) + - 21 / + + 44 AS col1, CAST ( + - 46 AS INTEGER ) * - 45
----
NULL
2070

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT + - COUNT( + - 82 ) - - 38 * + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-4204
SELECT + - COUNT ( + - 82 ) - - 38 * + COUNT ( * )
----
37

query I rowsort
SELECT ALL + + 28 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4206
SELECT + COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT + 75 * - - CASE - - 92 WHEN - 3 * - 10 * 86 THEN 92 ELSE NULL END + 34 * + - COUNT( * ) + + + 66 / - 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4207
SELECT + 75 * - - CASE - - 92 WHEN - 3 * - 10 * 86 THEN 92 ELSE NULL END + 34 * + - COUNT ( * ) + + + 66 / - 30 AS col0
----
NULL

query I rowsort
SELECT + ( - 70 )
----
-70

query I rowsort
SELECT ALL + 94
----
94

query I rowsort
SELECT DISTINCT + 1
----
1

query I rowsort
SELECT ALL + 39
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT ALL CASE + + 81 WHEN 42 - 92 - 72 / 79 + + 24 THEN + NULLIF ( - 67, - - 46 ) WHEN + - 73 THEN ( - NULLIF ( + MIN( ALL + - 3 ), + 28 ) ) END * - 90 + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL CASE + + 81 WHEN 42 - 92 - 72 / 79 + + 24 THEN + NULLIF ( - 67, - - 46 ) WHEN + - 73 THEN ( - NULLIF ( + MIN ( ALL + - 3 ), + 28 ) ) END * - 90 + + 57
----
NULL

query I rowsort
SELECT ALL + 13 AS col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-4214
SELECT DISTINCT + 16, 95 * - + MAX( + + 26 ) col0
----
16
-2470

skipif mysql # not compatible
query II rowsort label-4214
SELECT DISTINCT + 16, 95 * - + MAX ( + + 26 ) col0
----
16
-2470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4215
SELECT + COUNT( * ) * - ( - + 84 ) + - - CAST( 1 AS SIGNED ) * + ( - COUNT( * ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-4215
SELECT + COUNT ( * ) * - ( - + 84 ) + - - CAST ( 1 AS INTEGER ) * + ( - COUNT ( * ) ) AS col2
----
83

query I rowsort
SELECT ( 4 )
----
4

query II rowsort
SELECT + 54 AS col1, - 84 AS col2
----
54
-84

query I rowsort
SELECT ALL 36 * - 80 + + 87
----
-2793

query I rowsort
SELECT + 29 * 26
----
754

query I rowsort
SELECT + 46 + 3 * 7 * - 50 AS col0
----
-1004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4221
SELECT + CAST( 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-4221
SELECT + CAST ( 33 AS INTEGER )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-4222
SELECT COALESCE ( + - 10, - 35 + + - COUNT( * ) ) AS col0, - 83 col1
----
-10
-83

skipif mysql # not compatible
query II rowsort label-4222
SELECT COALESCE ( + - 10, - 35 + + - COUNT ( * ) ) AS col0, - 83 col1
----
-10
-83

query I rowsort
SELECT ALL + COALESCE ( + 57, + 45 + 32, + 96 ) * COALESCE ( + 11, + - 39, + + ( - 53 ) ) + + - 63 AS col1
----
564

query II rowsort
SELECT + 99 * + 87 * - + 14, + 94 AS col2
----
-120582
94

query I rowsort
SELECT ALL 5 * - 86
----
-430

query I rowsort
SELECT ALL + 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT DISTINCT 48 * + + 96 + + COUNT( * ) + - 94 + - COUNT( * ) AS col0
----
4514

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT 48 * + + 96 + + COUNT ( * ) + - 94 + - COUNT ( * ) AS col0
----
4514

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT ALL ( NULLIF ( + 57, + SUM( - 53 ) ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL ( NULLIF ( + 57, + SUM ( - 53 ) ) ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT - COUNT( * ) * + 42 + 23
----
-19

skipif mysql # not compatible
query I rowsort label-4229
SELECT - COUNT ( * ) * + 42 + 23
----
-19

query I rowsort
SELECT - 27 * 99
----
-2673

onlyif mysql # aggregate syntax: 
query II rowsort label-4231
SELECT ALL + 10 AS col0, COUNT( * )
----
10
1

skipif mysql # not compatible
query II rowsort label-4231
SELECT ALL + 10 AS col0, COUNT ( * )
----
10
1

query I rowsort
SELECT + + 82 + 67 - - 30 AS col2
----
179

query I rowsort
SELECT - NULLIF ( + 73, - 5 ) - + - 94 AS col1
----
21

query I rowsort
SELECT - - 43 * + 41 AS col2
----
1763

query I rowsort
SELECT 91 AS col0
----
91

query I rowsort
SELECT DISTINCT - 93 * - 22 + + - 17
----
2029

query II rowsort
SELECT ALL - 25, 5 AS col0
----
-25
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT ALL - - COUNT( * ) * - - ( - 54 ) col2
----
-54

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL - - COUNT ( * ) * - - ( - 54 ) col2
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-4239
SELECT DISTINCT - COUNT( * ) * - MAX( + 66 ) AS col0, 30 col0
----
66
30

skipif mysql # not compatible
query II rowsort label-4239
SELECT DISTINCT - COUNT ( * ) * - MAX ( + 66 ) AS col0, 30 col0
----
66
30

query I rowsort
SELECT ALL 97
----
97

query I rowsort
SELECT - ( 66 )
----
-66

query I rowsort
SELECT 84 col0
----
84

query I rowsort
SELECT + 42 + + + 34 - + 4 + - - 13 AS col0
----
85

query I rowsort
SELECT ALL 80 AS col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4245
SELECT ALL + 61 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL + 61 / + 98
----
0

query I rowsort
SELECT + 86 * + + 27 AS col0
----
2322

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT ALL - CASE + + 36 WHEN - - COUNT( * ) THEN 56 / - 52 * - 59 + - + 23 + + - 78 + + + 75 + 39 END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL - CASE + + 36 WHEN - - COUNT ( * ) THEN 56 / - 52 * - 59 + - + 23 + + - 78 + + + 75 + 39 END + + COUNT ( * )
----
NULL

query I rowsort
SELECT - 42 AS col1
----
-42

query I rowsort
SELECT ALL ( + - 53 ) + 61 + 2 * - CASE + - 75 WHEN + - 81 THEN NULL WHEN - ( 53 ) THEN 56 END * - 69 + - - 83 AS col2
----
NULL

query I rowsort
SELECT + 86 col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4251
SELECT ALL 59 + + CASE 53 WHEN - + 45 * + COUNT( CASE - 64 WHEN + 53 + + 56 + - 6 / 37 THEN + CAST( NULL AS SIGNED ) ELSE - 18 END ) * + 9 + - 10 * - 67 + + 14 THEN - 63 + + + 12 WHEN + COALESCE ( + 55, COUNT( * ) * - COUNT( * ) ) * - COUNT( * ) - - 5 + - COALESCE ( - 8, + 54 - 44 * + + 59 * 16 / 80, - + ( - 71 ) ) THEN NULL ELSE - + 77 * - - 79 END AS col0
----
-6024

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL 59 + + CASE 53 WHEN - + 45 * + COUNT ( CASE - 64 WHEN + 53 + + 56 + - 6 / 37 THEN + CAST ( NULL AS INTEGER ) ELSE - 18 END ) * + 9 + - 10 * - 67 + + 14 THEN - 63 + + + 12 WHEN + COALESCE ( + 55, COUNT ( * ) * - COUNT ( * ) ) * - COUNT ( * ) - - 5 + - COALESCE ( - 8, + 54 - 44 * + + 59 * 16 / 80, - + ( - 71 ) ) THEN NULL ELSE - + 77 * - - 79 END AS col0
----
-6024

query II rowsort
SELECT 78 * - + 44 AS col1, 37 AS col1
----
-3432
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4253
SELECT ALL - 80 + ( - 4 ) - + CAST( - COUNT( 92 ) AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL - 80 + ( - 4 ) - + CAST ( - COUNT ( 92 ) AS INTEGER )
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4254
SELECT DISTINCT - 71 + - + 91 DIV + + 59 * + COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT - 71 + - + 91 / + + 59 * + COUNT ( * ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT DISTINCT AVG ( ALL - 65 ) * MAX( 74 ) * - - 3 * + CASE 2 WHEN - 7 * + 12 + 45 * - + 90 THEN NULL WHEN - + 8 THEN NULL WHEN - 42 THEN 84 / - 8 ELSE NULL END / - NULLIF ( + ( + + 95 ), + COUNT( * ) * 34 ) + + SUM( DISTINCT - 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT AVG ( ALL - 65 ) * MAX ( 74 ) * - - 3 * + CASE 2 WHEN - 7 * + 12 + 45 * - + 90 THEN NULL WHEN - + 8 THEN NULL WHEN - 42 THEN 84 / - 8 ELSE NULL END / - NULLIF ( + ( + + 95 ), + COUNT ( * ) * 34 ) + + SUM ( DISTINCT - 25 )
----
NULL

query I rowsort
SELECT 80 AS col2
----
80

query I rowsort
SELECT 77 + - + 36 AS col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-4258
SELECT 13 * - 39 AS col0, COUNT( * )
----
-507
1

skipif mysql # not compatible
query II rowsort label-4258
SELECT 13 * - 39 AS col0, COUNT ( * )
----
-507
1

query I rowsort
SELECT ALL - 48
----
-48

query I rowsort
SELECT DISTINCT - 51 AS col1
----
-51

query I rowsort
SELECT 61 col2
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4262
SELECT ALL + 54 + + - CAST( 24 AS SIGNED ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL + 54 + + - CAST ( 24 AS INTEGER ) AS col0
----
30

query I rowsort
SELECT 67 col2
----
67

query I rowsort
SELECT ALL - 32 AS col0
----
-32

query I rowsort
SELECT ALL 69 + 29 + + ( + 25 ) + + 61 + 81 * 5 * + 72 AS col0
----
29344

query I rowsort
SELECT ALL - 38 AS col1
----
-38

query I rowsort
SELECT - 38 * - 95 - - 5 AS col1
----
3615

query I rowsort
SELECT DISTINCT - 51
----
-51

query I rowsort
SELECT DISTINCT - 54 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT COUNT( * ) * - 89
----
-89

skipif mysql # not compatible
query I rowsort label-4270
SELECT COUNT ( * ) * - 89
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4271
SELECT - 75 * - COUNT( * ) + + + 44 + + 11 + + 58 + - - 1 DIV 29 * + 83 * - 48 * - - 66 * - 18 + + ( + 32 ) - - + COUNT( * ) AS col1
----
221

skipif mysql # not compatible
query I rowsort label-4271
SELECT - 75 * - COUNT ( * ) + + + 44 + + 11 + + 58 + - - 1 / 29 * + 83 * - 48 * - - 66 * - 18 + + ( + 32 ) - - + COUNT ( * ) AS col1
----
221

query I rowsort
SELECT 4 AS col0
----
4

query I rowsort
SELECT 25 AS col0
----
25

query I rowsort
SELECT DISTINCT 79 AS col2
----
79

query I rowsort
SELECT ALL ( - - 9 ) * + 56 - - + 34 + 31
----
569

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT - 41 * - - COUNT( * ) * + COUNT( * ) * + + AVG ( - + 75 ) / - 47 + + - CASE 56 WHEN ( + 75 ) THEN - 31 * ( + 22 ) - + 79 + + - 83 WHEN + - 76 + - 70 + AVG ( DISTINCT 74 ) / + 50 * - + 39 THEN + 39 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT - 41 * - - COUNT ( * ) * + COUNT ( * ) * + + AVG ( - + 75 ) / - 47 + + - CASE 56 WHEN ( + 75 ) THEN - 31 * ( + 22 ) - + 79 + + - 83 WHEN + - 76 + - 70 + AVG ( DISTINCT 74 ) / + 50 * - + 39 THEN + 39 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4277
SELECT ALL 11 * + + 19 AS col2, + COUNT( ALL - + 26 ) + - 64 AS col1
----
209
-63

skipif mysql # not compatible
query II rowsort label-4277
SELECT ALL 11 * + + 19 AS col2, + COUNT ( ALL - + 26 ) + - 64 AS col1
----
209
-63

query I rowsort
SELECT 24 AS col2
----
24

query II rowsort
SELECT DISTINCT 29 * 57 * 74 + - 90 AS col0, 53
----
122232
53

query I rowsort
SELECT ALL + 63 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT - 68 + + SUM( - 36 ) AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-4281
SELECT - 68 + + SUM ( - 36 ) AS col1
----
-104

query I rowsort
SELECT 37 * + 18
----
666

query I rowsort
SELECT DISTINCT 86
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4284
SELECT 71 + 41 AS col2, 6 * + CAST( + 84 AS SIGNED ) * + + 75 + + 10 * - COUNT( * ) AS col1
----
112
37790

skipif mysql # not compatible
query II rowsort label-4284
SELECT 71 + 41 AS col2, 6 * + CAST ( + 84 AS INTEGER ) * + + 75 + + 10 * - COUNT ( * ) AS col1
----
112
37790

query I rowsort
SELECT - 41
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4286
SELECT ALL CAST( - 11 AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL CAST ( - 11 AS INTEGER )
----
-11

query II rowsort
SELECT 17 + + 57 AS col0, - 74 AS col1
----
74
-74

query I rowsort
SELECT - 75 AS col0
----
-75

query I rowsort
SELECT DISTINCT + 4 AS col1
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4290
SELECT - 57 + - 43 AS col2, + 29 * 8 / + 5 * - 77 * - 38 + - CAST( NULL AS DECIMAL ) AS col1
----
-100
NULL

skipif mysql # not compatible
query II rowsort label-4290
SELECT - 57 + - 43 AS col2, + 29 * 8 / + 5 * - 77 * - 38 + - CAST ( NULL AS REAL ) AS col1
----
-100
NULL

query I rowsort
SELECT - 25
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT ALL - NULLIF ( + + 48, - COUNT( 57 ) ) * + - ( - 28 )
----
-1344

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL - NULLIF ( + + 48, - COUNT ( 57 ) ) * + - ( - 28 )
----
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT DISTINCT - + 85 + - NULLIF ( + - 70, ( - 57 ) ) + - + COUNT( * ) * + 9 + + - 34 col1
----
-58

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT - + 85 + - NULLIF ( + - 70, ( - 57 ) ) + - + COUNT ( * ) * + 9 + + - 34 col1
----
-58

query I rowsort
SELECT ALL - 99 + + 89 + - 15
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT + COUNT( * ) + + - MAX( - 98 )
----
99

skipif mysql # not compatible
query I rowsort label-4295
SELECT + COUNT ( * ) + + - MAX ( - 98 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL MIN( ALL + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL MIN ( ALL + 24 )
----
24

query I rowsort
SELECT DISTINCT 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT ALL SUM( + - 1 ) * - - 66 + 96 - + + 88 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL SUM ( + - 1 ) * - - 66 + 96 - + + 88 AS col1
----
-58

query I rowsort
SELECT 58 + + - 8 + + 76 AS col1
----
126

query I rowsort
SELECT + 42 AS col0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4301
SELECT COUNT( * ) AS col1, - 28 + COUNT( * ) AS col0
----
1
-27

skipif mysql # not compatible
query II rowsort label-4301
SELECT COUNT ( * ) AS col1, - 28 + COUNT ( * ) AS col0
----
1
-27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4302
SELECT ALL 91 * + CAST( NULL AS DECIMAL ) * - 37 + COUNT( * ) * 19 * + ( 42 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL 91 * + CAST ( NULL AS REAL ) * - 37 + COUNT ( * ) * 19 * + ( 42 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT + 4 * COALESCE ( - + COUNT( * ), - 73 ) + - 63 + + 75 + - 78 col0
----
-70

skipif mysql # not compatible
query I rowsort label-4303
SELECT + 4 * COALESCE ( - + COUNT ( * ), - 73 ) + - 63 + + 75 + - 78 col0
----
-70

query I rowsort
SELECT NULLIF ( - - 15, + 82 ) - - 55 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT MIN( 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4305
SELECT MIN ( 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT COUNT( * ) - + 29
----
-28

skipif mysql # not compatible
query I rowsort label-4306
SELECT COUNT ( * ) - + 29
----
-28

query I rowsort
SELECT ALL 35 * - - 44 + 13
----
1553

query I rowsort
SELECT 84 * + 40 AS col0
----
3360

query I rowsort
SELECT ALL 28 * + 92 + + - 31 AS col2
----
2545

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT DISTINCT MIN( DISTINCT + ( + 57 ) ) * + 78 + + 83 AS col0
----
4529

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT MIN ( DISTINCT + ( + 57 ) ) * + 78 + + 83 AS col0
----
4529

onlyif mysql # DIV for integer division: 
query I rowsort label-4311
SELECT ALL + 94 * - 93 - - 76 DIV - COALESCE ( 87, - 76 DIV - 4 ) col1
----
-8742

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL + 94 * - 93 - - 76 / - COALESCE ( 87, - 76 / - 4 ) col1
----
-8742

query I rowsort
SELECT 3 + - + 21 * 22 AS col2
----
-459

query I rowsort
SELECT ALL - 41
----
-41

query I rowsort
SELECT ALL 63 * + - 5 AS col0
----
-315

query I rowsort
SELECT DISTINCT - 54 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT + MAX( + + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-4316
SELECT + MAX ( + + 62 )
----
62

query I rowsort
SELECT ALL 10 * + + 45
----
450

query I rowsort
SELECT ALL 27 * - + 35
----
-945

query I rowsort
SELECT 9 + - 65
----
-56

query II rowsort
SELECT + 81, 61 AS col2
----
81
61

query I rowsort
SELECT ALL - 83
----
-83

query I rowsort
SELECT DISTINCT - 86 AS col2
----
-86

query I rowsort
SELECT DISTINCT - 89
----
-89

query I rowsort
SELECT DISTINCT + 5 - - 0
----
5

query I rowsort
SELECT ALL + 99 AS col1
----
99

query I rowsort
SELECT DISTINCT + 69
----
69

query I rowsort
SELECT ALL 94 col2
----
94

query I rowsort
SELECT DISTINCT 46 AS col1
----
46

query I rowsort
SELECT DISTINCT 98
----
98

query I rowsort
SELECT ALL 50 * + 5 col2
----
250

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT + 56 + COUNT( * ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-4331
SELECT + 56 + COUNT ( * ) AS col1
----
57

query I rowsort
SELECT ALL 51 AS col0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4333
SELECT - COALESCE ( + 64, + 51 + 46 DIV 17, + ( NULLIF ( - COUNT( 96 ), + 81 * + COUNT( * ) ) ) * 7 )
----
-64

skipif mysql # not compatible
query I rowsort label-4333
SELECT - COALESCE ( + 64, + 51 + 46 / 17, + ( NULLIF ( - COUNT ( 96 ), + 81 * + COUNT ( * ) ) ) * 7 )
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-4334
SELECT DISTINCT 96 + - 87 DIV 90
----
96

skipif mysql # not compatible
query I rowsort label-4334
SELECT DISTINCT 96 + - 87 / 90
----
96

query I rowsort
SELECT + 2 - 5
----
-3

query I rowsort
SELECT 98 AS col0
----
98

query I rowsort
SELECT + 20 * - 41 AS col1
----
-820

query I rowsort
SELECT - NULLIF ( - 57, + 96 ) + 69
----
126

query I rowsort
SELECT + 96 * - 55
----
-5280

query I rowsort
SELECT ALL 2 + 8 AS col1
----
10

query I rowsort
SELECT ALL 8 + ( 68 - + 15 )
----
61

query I rowsort
SELECT DISTINCT 20 AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4343
SELECT ALL + 52 + CAST( NULL AS SIGNED ) / 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL + 52 + CAST ( NULL AS INTEGER ) / 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT DISTINCT 95 + COALESCE ( 6, 34 * COUNT( * ), CASE + 52 WHEN 27 * - 52 THEN - 85 ELSE NULL END + 79 * - 16 )
----
101

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT 95 + COALESCE ( 6, 34 * COUNT ( * ), CASE + 52 WHEN 27 * - 52 THEN - 85 ELSE NULL END + 79 * - 16 )
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-4345
SELECT DISTINCT + 44 DIV 17
----
2

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT + 44 / 17
----
2

query I rowsort
SELECT DISTINCT 13 + 0 col2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4347
SELECT - CASE - 37 WHEN 35 THEN NULL WHEN 90 THEN + CAST( - 98 AS SIGNED ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4347
SELECT - CASE - 37 WHEN 35 THEN NULL WHEN 90 THEN + CAST ( - 98 AS INTEGER ) ELSE NULL END col1
----
NULL

query I rowsort
SELECT 6 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT ALL 48 + ( - COUNT( * ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL 48 + ( - COUNT ( * ) ) AS col1
----
47

query I rowsort
SELECT - 37 AS col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4351
SELECT + 30 * - ( - 77 DIV 92 )
----
0

skipif mysql # not compatible
query I rowsort label-4351
SELECT + 30 * - ( - 77 / 92 )
----
0

query I rowsort
SELECT - 36 + - 99
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT ALL MIN( 6 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL MIN ( 6 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT - 12 + COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-4354
SELECT - 12 + COUNT ( * )
----
-11

query I rowsort
SELECT 97 AS col2
----
97

query I rowsort
SELECT - 48 AS col1
----
-48

query I rowsort
SELECT + 2 AS col1
----
2

query I rowsort
SELECT ALL + 67 col1
----
67

query I rowsort
SELECT + 5
----
5

query I rowsort
SELECT ALL + 74 AS col2
----
74

query I rowsort
SELECT DISTINCT + 45 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT ALL + CASE COUNT( 17 ) WHEN MAX( DISTINCT 48 ) * 12 - 69 THEN 23 * 80 + - 31 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL + CASE COUNT ( 17 ) WHEN MAX ( DISTINCT 48 ) * 12 - 69 THEN 23 * 80 + - 31 END col1
----
NULL

query I rowsort
SELECT - 70 * - 29 AS col1
----
2030

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT DISTINCT + COUNT( * ) * MIN( DISTINCT 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT + COUNT ( * ) * MIN ( DISTINCT 42 ) AS col1
----
42

query I rowsort
SELECT ALL + 57
----
57

query I rowsort
SELECT ( ( - 72 ) ) AS col0
----
-72

query I rowsort
SELECT - 5 * - 48
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-4368
SELECT - 30 DIV ( - 27 ) + 30
----
31

skipif mysql # not compatible
query I rowsort label-4368
SELECT - 30 / ( - 27 ) + 30
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4369
SELECT - 22 DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-4369
SELECT - 22 / - 57
----
0

query I rowsort
SELECT ALL + ( - 39 )
----
-39

query I rowsort
SELECT - 34 * + 96 AS col0
----
-3264

query I rowsort
SELECT - 92 + - 52
----
-144

query I rowsort
SELECT NULLIF ( - 75, CASE 23 WHEN + 26 THEN NULL ELSE 89 END ) AS col1
----
-75

query I rowsort
SELECT - 69 * - 14 AS col1
----
966

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4375
SELECT ALL + CAST( 46 AS SIGNED ) DIV 24 col1
----
1

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL + CAST ( 46 AS INTEGER ) / 24 col1
----
1

query I rowsort
SELECT COALESCE ( - 67, + 36, + 30 * 59 - + 62 * + 31 )
----
-67

query I rowsort
SELECT ALL + 0 AS col0
----
0

query I rowsort
SELECT 70 * + 12 - 94 * 57
----
-4518

query I rowsort
SELECT ALL + + 6 AS col0
----
6

query I rowsort
SELECT + + 75
----
75

query I rowsort
SELECT - + CASE 23 WHEN - ( ( COALESCE ( ( - 12 ), - 98 ) ) ) - - 22 THEN - 47 / 60 ELSE NULL END - + 72 / ( 14 + - 24 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4382
SELECT + 59 DIV - ( - 6 )
----
9

skipif mysql # not compatible
query I rowsort label-4382
SELECT + 59 / - ( - 6 )
----
9

query I rowsort
SELECT ALL - 88 * 72 + 9 AS col1
----
-6327

query I rowsort
SELECT - 53 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT + 73 * ( SUM( + 99 ) ) + 34 AS col2
----
7261

skipif mysql # not compatible
query I rowsort label-4385
SELECT + 73 * ( SUM ( + 99 ) ) + 34 AS col2
----
7261

query I rowsort
SELECT - 26
----
-26

query I rowsort
SELECT - ( + 27 ) col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT + - COUNT( 67 ) * 44 - ( - 48 ) * + 64 AS col1
----
3028

skipif mysql # not compatible
query I rowsort label-4388
SELECT + - COUNT ( 67 ) * 44 - ( - 48 ) * + 64 AS col1
----
3028

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT + MIN( ( - 0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4389
SELECT + MIN ( ( - 0 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4390
SELECT ALL 43 * 63 + + 98 DIV + 32
----
2712

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL 43 * 63 + + 98 / + 32
----
2712

query I rowsort
SELECT + 60
----
60

query I rowsort
SELECT + + 93 + + ( + 81 ) col0
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4393
SELECT ALL + CAST( 82 AS SIGNED ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL + CAST ( 82 AS INTEGER ) AS col1
----
82

query I rowsort
SELECT ALL 5 * + 12
----
60

query I rowsort
SELECT + 75 * + 80 AS col0
----
6000

query I rowsort
SELECT - + 91 + 40
----
-51

query I rowsort
SELECT - 32 * 50
----
-1600

query I rowsort
SELECT + - 16 + 92 col2
----
76

query I rowsort
SELECT + - 11 * + 24 AS col2
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT DISTINCT COUNT( * ) * 95 col2
----
95

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT COUNT ( * ) * 95 col2
----
95

query I rowsort
SELECT ALL 36
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT + COUNT( * ) + - - 54 * 59 AS col2
----
3187

skipif mysql # not compatible
query I rowsort label-4402
SELECT + COUNT ( * ) + - - 54 * 59 AS col2
----
3187

query I rowsort
SELECT 69 col2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4404
SELECT DISTINCT 6 * CASE - 78 WHEN + 1 THEN + CAST( - 98 AS SIGNED ) * - 51 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT 6 * CASE - 78 WHEN + 1 THEN + CAST ( - 98 AS INTEGER ) * - 51 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT + 76 + COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-4405
SELECT + 76 + COUNT ( * ) AS col2
----
77

query I rowsort
SELECT + 52 + + - 56 AS col1
----
-4

query I rowsort
SELECT 64 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT + 29 + COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4408
SELECT + 29 + COUNT ( * ) AS col1
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4409
SELECT + NULLIF ( - - 90, CAST( NULL AS DECIMAL ) ) + 97 AS col2
----
187

skipif mysql # not compatible
query I rowsort label-4409
SELECT + NULLIF ( - - 90, CAST ( NULL AS REAL ) ) + 97 AS col2
----
187

query I rowsort
SELECT - 46 * + + 1 AS col2
----
-46

query I rowsort
SELECT DISTINCT + 64 AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4412
SELECT 59 * + + NULLIF ( 22, 99 * COUNT( * ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4412
SELECT 59 * + + NULLIF ( 22, 99 * COUNT ( * ) ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 22 - + 89 + - 29
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL + COUNT( - 48 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL + COUNT ( - 48 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4415
SELECT - ( + COUNT( * ) ) * 25 + COUNT( ALL 72 - 40 ) DIV + 48 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-4415
SELECT - ( + COUNT ( * ) ) * 25 + COUNT ( ALL 72 - 40 ) / + 48 AS col1
----
-25

query I rowsort
SELECT DISTINCT - 50 AS col2
----
-50

query I rowsort
SELECT DISTINCT + 14 * - 92 AS col0
----
-1288

query I rowsort
SELECT ALL - 92 col0
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4419
SELECT 23 DIV 92 + + SUM( 44 )
----
44

skipif mysql # not compatible
query I rowsort label-4419
SELECT 23 / 92 + + SUM ( 44 )
----
44

query I rowsort
SELECT ALL - 63 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT ALL - MIN( - 67 )
----
67

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL - MIN ( - 67 )
----
67

query I rowsort
SELECT 37 + 69 * 25 AS col1
----
1762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT ALL + 87 * 71 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL + 87 * 71 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4424
SELECT ALL - 30 + - NULLIF ( - 52, - CAST( NULL AS SIGNED ) ) col1
----
22

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL - 30 + - NULLIF ( - 52, - CAST ( NULL AS INTEGER ) ) col1
----
22

query I rowsort
SELECT 24 * - 80 + + 57 + ( + 15 + + 66 )
----
-1782

query I rowsort
SELECT ALL - - 4
----
4

query I rowsort
SELECT + - 46 AS col2
----
-46

query I rowsort
SELECT ALL + - 29 + - 3 AS col2
----
-32

query I rowsort
SELECT 50 col1
----
50

query I rowsort
SELECT ALL - + 27
----
-27

query I rowsort
SELECT ALL - ( + NULLIF ( + 62, + 43 ) )
----
-62

query I rowsort
SELECT 93 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT ( 76 ) * ( COUNT( - 3 ) + COALESCE ( + 22, 51 * - 29 ) ) AS col1
----
1748

skipif mysql # not compatible
query I rowsort label-4433
SELECT ( 76 ) * ( COUNT ( - 3 ) + COALESCE ( + 22, 51 * - 29 ) ) AS col1
----
1748

query I rowsort
SELECT + 84 + 34 col2
----
118

query I rowsort
SELECT DISTINCT - 43 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT ALL - - COUNT( * ) + + - 88 * - COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL - - COUNT ( * ) + + - 88 * - COUNT ( * ) AS col1
----
89

query I rowsort
SELECT ALL + - 41 + - 89
----
-130

query I rowsort
SELECT + + 61
----
61

query I rowsort
SELECT ALL - 5
----
-5

query I rowsort
SELECT - 50 * CASE WHEN ( 49 ) <= 99 THEN + 78 ELSE - 9 END * + 41 + + NULLIF ( - 94, 0 )
----
-159994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4441
SELECT - 59 + 68 + - NULLIF ( 17 + - 17 * COALESCE ( + 25 - - 26 * + 67, 84, - CAST( - 19 AS SIGNED ) + NULLIF ( + MIN( 49 ), + 54 ) * - 7 ), - 90 * + MIN( DISTINCT 68 / - 69 ) )
----
30031

skipif mysql # not compatible
query I rowsort label-4441
SELECT - 59 + 68 + - NULLIF ( 17 + - 17 * COALESCE ( + 25 - - 26 * + 67, 84, - CAST ( - 19 AS INTEGER ) + NULLIF ( + MIN ( 49 ), + 54 ) * - 7 ), - 90 * + MIN ( DISTINCT 68 / - 69 ) )
----
30031

query I rowsort
SELECT ALL - + 12 + 45 - 7 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT ALL + + 49 + SUM( + 81 ) AS col1
----
130

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL + + 49 + SUM ( + 81 ) AS col1
----
130

query I rowsort
SELECT - 16 AS col0
----
-16

query I rowsort
SELECT + 12 * + 4 * - 65 AS col2
----
-3120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4446
SELECT + 86 * - + 81 + COUNT( * ) DIV 50 AS col1
----
-6966

skipif mysql # not compatible
query I rowsort label-4446
SELECT + 86 * - + 81 + COUNT ( * ) / 50 AS col1
----
-6966

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT ALL - + COUNT( * ) * - 91 * + COUNT( * ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL - + COUNT ( * ) * - 91 * + COUNT ( * ) AS col0
----
91

query I rowsort
SELECT + 95 + 88 AS col1
----
183

query I rowsort
SELECT DISTINCT - 35 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT DISTINCT + 81 * COUNT( DISTINCT 7 )
----
81

skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT + 81 * COUNT ( DISTINCT 7 )
----
81

query I rowsort
SELECT ALL 37 col0
----
37

query I rowsort
SELECT - 38 AS col1
----
-38

query I rowsort
SELECT ALL + 63 * + 70 AS col2
----
4410

query I rowsort
SELECT DISTINCT 42
----
42

query I rowsort
SELECT ALL 46 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT 87 * NULLIF ( - ( + CASE COUNT( * ) WHEN COUNT( * ) * + 12 THEN 23 * 55 - MIN( ALL 68 ) WHEN - 31 + - 23 THEN - 41 + 31 ELSE 33 END ), + 92 )
----
-2871

skipif mysql # not compatible
query I rowsort label-4456
SELECT 87 * NULLIF ( - ( + CASE COUNT ( * ) WHEN COUNT ( * ) * + 12 THEN 23 * 55 - MIN ( ALL 68 ) WHEN - 31 + - 23 THEN - 41 + 31 ELSE 33 END ), + 92 )
----
-2871

query I rowsort
SELECT 22 * + 1 * + + 71 AS col2
----
1562

query II rowsort
SELECT - 3 AS col2, 7 * COALESCE ( 13, - 69 * ( - 80 ), - 25 + - 85 * ( - 55 ) ) AS col2
----
-3
91

query I rowsort
SELECT 41 col1
----
41

query I rowsort
SELECT - 56
----
-56

query I rowsort
SELECT ALL 57 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT NULLIF ( + 7, - 55 - + 22 * + 36 ) + + MAX( ALL 50 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-4462
SELECT NULLIF ( + 7, - 55 - + 22 * + 36 ) + + MAX ( ALL 50 ) AS col0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4463
SELECT 41 DIV - NULLIF ( 76, 39 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4463
SELECT 41 / - NULLIF ( 76, 39 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4464
SELECT ALL 87 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL 87 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4465
SELECT 12 * + ( + - NULLIF ( + CAST( NULL AS SIGNED ), ( 26 ) ) ) * - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4465
SELECT 12 * + ( + - NULLIF ( + CAST ( NULL AS INTEGER ), ( 26 ) ) ) * - 6 AS col0
----
NULL

query I rowsort
SELECT 47 + + 62 AS col2
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4467
SELECT ALL 5 * - - CAST( - + 75 AS SIGNED )
----
-375

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL 5 * - - CAST ( - + 75 AS INTEGER )
----
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT DISTINCT - 19 * - COUNT( * ) * - 42 * 98
----
-78204

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT - 19 * - COUNT ( * ) * - 42 * 98
----
-78204

query I rowsort
SELECT ALL - 92 AS col2
----
-92

query I rowsort
SELECT 68 AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4471
SELECT 31 / - ( - NULLIF ( - CAST( - CASE + 93 WHEN 14 - + 20 THEN 50 + 83 / 72 WHEN 34 * MIN( - 20 ) + ( 95 ) * 45 THEN NULL END AS SIGNED ), 10 + ( - 44 ) * - 52 ) ) * 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4471
SELECT 31 / - ( - NULLIF ( - CAST ( - CASE + 93 WHEN 14 - + 20 THEN 50 + 83 / 72 WHEN 34 * MIN ( - 20 ) + ( 95 ) * 45 THEN NULL END AS INTEGER ), 10 + ( - 44 ) * - 52 ) ) * 26 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT ALL 51 + 75 + - COUNT( * )
----
125

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL 51 + 75 + - COUNT ( * )
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4473
SELECT DISTINCT NULLIF ( 82, CASE CAST( NULL AS DECIMAL ) WHEN NULLIF ( - 86, 78 + 38 * - 58 ) * 18 THEN 19 WHEN 84 THEN + 43 - - 96 END / - 95 ) + NULLIF ( + COUNT( * ) - 42, + CAST( 43 AS SIGNED ) * 12 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-4473
SELECT DISTINCT NULLIF ( 82, CASE CAST ( NULL AS REAL ) WHEN NULLIF ( - 86, 78 + 38 * - 58 ) * 18 THEN 19 WHEN 84 THEN + 43 - - 96 END / - 95 ) + NULLIF ( + COUNT ( * ) - 42, + CAST ( 43 AS INTEGER ) * 12 ) AS col1
----
41

query I rowsort
SELECT ALL - 8 AS col1
----
-8

query I rowsort
SELECT ALL 33 + + - 11
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4476
SELECT 84 AS col1, CAST( + 99 AS SIGNED ) * 0 + + 47 AS col1
----
84
47

skipif mysql # not compatible
query II rowsort label-4476
SELECT 84 AS col1, CAST ( + 99 AS INTEGER ) * 0 + + 47 AS col1
----
84
47

query I rowsort
SELECT ALL ( - 60 ) + + + 68 AS col2
----
8

query I rowsort
SELECT DISTINCT - 85
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT + CASE - 53 WHEN 96 / + 95 THEN 7 * 98 WHEN - 61 THEN - 75 + - 53 ELSE 8 END * 94 - COUNT( * ) AS col1
----
751

skipif mysql # not compatible
query I rowsort label-4479
SELECT + CASE - 53 WHEN 96 / + 95 THEN 7 * 98 WHEN - 61 THEN - 75 + - 53 ELSE 8 END * 94 - COUNT ( * ) AS col1
----
751

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4480
SELECT - CAST( - 92 AS SIGNED ) col0
----
92

skipif mysql # not compatible
query I rowsort label-4480
SELECT - CAST ( - 92 AS INTEGER ) col0
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4481
SELECT ALL COUNT( * ) DIV + - 49 * + 53
----
0

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL COUNT ( * ) / + - 49 * + 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT ALL + 98 + + + COUNT( * ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL + 98 + + + COUNT ( * ) AS col1
----
99

query I rowsort
SELECT + 15 AS col2
----
15

query II rowsort
SELECT + 38, 3 AS col0
----
38
3

query I rowsort
SELECT + + 96 AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4486
SELECT ALL COUNT( * ) + - CASE - + COUNT( * ) WHEN CAST( NULL AS SIGNED ) / - COUNT( * ) THEN NULL WHEN 60 + 20 THEN NULL ELSE + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL COUNT ( * ) + - CASE - + COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) / - COUNT ( * ) THEN NULL WHEN 60 + 20 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL - - 77 col0
----
77

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4488
SELECT ALL - NULLIF ( - 4, + - CAST( - 38 AS DECIMAL ) * + 87 ) + + 9 DIV 36
----
4

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL - NULLIF ( - 4, + - CAST ( - 38 AS REAL ) * + 87 ) + + 9 / 36
----
4

query I rowsort
SELECT + 38
----
38

query I rowsort
SELECT ALL - - 76 * 34 * + 76 + 35 AS col0
----
196419

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT DISTINCT + 4 + - + 4 + - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT + 4 + - + 4 + - + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL - + 74
----
-74

query I rowsort
SELECT + + 6
----
6

query I rowsort
SELECT COALESCE ( + 61, - 9, 28 * 23 ) * 14 AS col1
----
854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4495
SELECT + CAST( - 8 AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-4495
SELECT + CAST ( - 8 AS INTEGER )
----
-8

query I rowsort
SELECT - 23 col0
----
-23

query I rowsort
SELECT ALL - - 40 col2
----
40

query I rowsort
SELECT + 45 AS col2
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-4499
SELECT DISTINCT 18, - CASE 31 WHEN 92 THEN SUM( 90 ) + - 79 WHEN 11 THEN NULL END AS col0
----
18
NULL

skipif mysql # not compatible
query II rowsort label-4499
SELECT DISTINCT 18, - CASE 31 WHEN 92 THEN SUM ( 90 ) + - 79 WHEN 11 THEN NULL END AS col0
----
18
NULL

query I rowsort
SELECT ALL + 35 AS col1
----
35

query I rowsort
SELECT + 46 AS col0
----
46

query I rowsort
SELECT ALL + 22
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4503
SELECT ALL - + COALESCE ( + - ( - 45 ), 3, AVG ( DISTINCT 64 ) DIV NULLIF ( - 53 * COUNT( * ), + 47 + + 91 ) ) - - 29 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL - + COALESCE ( + - ( - 45 ), 3, AVG ( DISTINCT 64 ) / NULLIF ( - 53 * COUNT ( * ), + 47 + + 91 ) ) - - 29 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT ALL - CASE 40 WHEN - MAX( DISTINCT - ( + 6 ) ) THEN 65 ELSE - 49 END * 3
----
147

skipif mysql # not compatible
query I rowsort label-4504
SELECT ALL - CASE 40 WHEN - MAX ( DISTINCT - ( + 6 ) ) THEN 65 ELSE - 49 END * 3
----
147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4505
SELECT DISTINCT - COUNT( * ) DIV - - SUM( DISTINCT ( + + 51 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT - COUNT ( * ) / - - SUM ( DISTINCT ( + + 51 ) )
----
0

query I rowsort
SELECT DISTINCT - 77 * - 71 AS col0
----
5467

onlyif mysql # DIV for integer division: 
query I rowsort label-4507
SELECT ALL - 4 DIV - - 23 * + + ( - 53 )
----
0

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL - 4 / - - 23 * + + ( - 53 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4508
SELECT 87 DIV MIN( + 45 )
----
1

skipif mysql # not compatible
query I rowsort label-4508
SELECT 87 / MIN ( + 45 )
----
1

query II rowsort
SELECT 22 * + 35, + 38 AS col0
----
770
38

query II rowsort
SELECT 93 + 35 col0, + 55
----
128
55

query I rowsort
SELECT - 98 AS col2
----
-98

query I rowsort
SELECT NULLIF ( - 83, - + CASE 21 WHEN + 91 THEN CASE 46 WHEN - 7 THEN - 19 WHEN 35 THEN - 38 * 70 ELSE NULL END * - 24 END * 91 ) * + 16
----
-1328

query II rowsort
SELECT ALL - 32 * + 7, + 21 + + 54 AS col0
----
-224
75

query I rowsort
SELECT 2 + 39
----
41

query I rowsort
SELECT - 93 + - 68
----
-161

query I rowsort
SELECT 59 AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4517
SELECT ALL CASE + NULLIF ( + 12, - + ( ( + CASE + 85 WHEN - CAST( NULL AS SIGNED ) THEN 71 + 83 ELSE NULL END ) ) + NULLIF ( CASE COALESCE ( + CASE MIN( DISTINCT - 76 ) WHEN + 77 THEN 61 ELSE NULL END, - ( - 74 ) ) WHEN 41 * 24 THEN - 22 ELSE NULL END, 1 + - 55 ) * - ( + NULLIF ( 8, 16 * - 30 ) - 11 ) ) WHEN - 15 THEN + 48 - + CAST( + 83 AS SIGNED ) WHEN ( + 9 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL CASE + NULLIF ( + 12, - + ( ( + CASE + 85 WHEN - CAST ( NULL AS INTEGER ) THEN 71 + 83 ELSE NULL END ) ) + NULLIF ( CASE COALESCE ( + CASE MIN ( DISTINCT - 76 ) WHEN + 77 THEN 61 ELSE NULL END, - ( - 74 ) ) WHEN 41 * 24 THEN - 22 ELSE NULL END, 1 + - 55 ) * - ( + NULLIF ( 8, 16 * - 30 ) - 11 ) ) WHEN - 15 THEN + 48 - + CAST ( + 83 AS INTEGER ) WHEN ( + 9 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 69 * - 47
----
3243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4519
SELECT ALL - NULLIF ( - 93, - 7 / - + 68 + - CAST( + 64 - 16 AS SIGNED ) ) + 20 * - 64
----
-1187

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL - NULLIF ( - 93, - 7 / - + 68 + - CAST ( + 64 - 16 AS INTEGER ) ) + 20 * - 64
----
-1187

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT - 87 + - - ( COUNT( * ) ) * + + 8 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-4520
SELECT - 87 + - - ( COUNT ( * ) ) * + + 8 AS col0
----
-79

query I rowsort
SELECT DISTINCT 15 col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL 57 + - + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL 57 + - + COUNT ( * )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4523
SELECT - 63 + + + 22 * + NULLIF ( + CAST( NULL AS SIGNED ), 97 + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT - 63 + + + 22 * + NULLIF ( + CAST ( NULL AS INTEGER ), 97 + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT + 39 + + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-4524
SELECT + 39 + + COUNT ( * )
----
40

query I rowsort
SELECT - 24
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4526
SELECT DISTINCT COALESCE ( + - CAST( - ( - 94 ) AS SIGNED ), - 40 )
----
-94

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT COALESCE ( + - CAST ( - ( - 94 ) AS INTEGER ), - 40 )
----
-94

query I rowsort
SELECT - 27 + + 81
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4528
SELECT + SUM( - + 56 ) AS col0, COALESCE ( - MAX( + ( CASE - 37 WHEN 39 * 89 + - 78 THEN NULL WHEN + 86 THEN + 97 + COALESCE ( - 36, + 89 * - 31 ) * 46 ELSE NULL END ) ), + COUNT( * ) ) * - 81 + CASE NULLIF ( 42, ( - CASE 41 WHEN 75 THEN NULL WHEN 69 THEN 60 END ) ) + 86 WHEN + 92 THEN NULL WHEN + 86 / 43 THEN NULL ELSE - COALESCE ( - 65, 26, COALESCE ( MIN( 26 ), 61, - CASE ( - 88 ) WHEN - 49 THEN NULL ELSE - COUNT( * ) END + 80 ) ) END
----
-56
-16

skipif mysql # not compatible
query II rowsort label-4528
SELECT + SUM ( - + 56 ) AS col0, COALESCE ( - MAX ( + ( CASE - 37 WHEN 39 * 89 + - 78 THEN NULL WHEN + 86 THEN + 97 + COALESCE ( - 36, + 89 * - 31 ) * 46 ELSE NULL END ) ), + COUNT ( * ) ) * - 81 + CASE NULLIF ( 42, ( - CASE 41 WHEN 75 THEN NULL WHEN 69 THEN 60 END ) ) + 86 WHEN + 92 THEN NULL WHEN + 86 / 43 THEN NULL ELSE - COALESCE ( - 65, 26, COALESCE ( MIN ( 26 ), 61, - CASE ( - 88 ) WHEN - 49 THEN NULL ELSE - COUNT ( * ) END + 80 ) ) END
----
-56
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4529
SELECT CASE - 13 WHEN + 34 * - 57 + MAX( - 78 ) * 79 THEN NULL WHEN 49 THEN NULL WHEN SUM( DISTINCT CAST( + 0 AS SIGNED ) ) THEN 56 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4529
SELECT CASE - 13 WHEN + 34 * - 57 + MAX ( - 78 ) * 79 THEN NULL WHEN 49 THEN NULL WHEN SUM ( DISTINCT CAST ( + 0 AS INTEGER ) ) THEN 56 ELSE NULL END
----
NULL

query I rowsort
SELECT + + 21 AS col1
----
21

query I rowsort
SELECT ALL 49 * 96 * - - 84 * 49 + + NULLIF ( 43, 12 ) AS col1
----
19361707

query I rowsort
SELECT + + 52 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL + SUM( - 96 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL + SUM ( - 96 ) AS col0
----
-96

query I rowsort
SELECT ALL + 85
----
85

query I rowsort
SELECT ALL + + 49 AS col1
----
49

query I rowsort
SELECT + - 81 + COALESCE ( + 44, - 47, + 83 ) * 7
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4537
SELECT ALL + CAST( + 8 AS SIGNED ) * + ( - 5 ) * 83 AS col2
----
-3320

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL + CAST ( + 8 AS INTEGER ) * + ( - 5 ) * 83 AS col2
----
-3320

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL + COALESCE ( + 21, 55, - MAX( 74 ), 93 * - SUM( 53 ) + 24 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL + COALESCE ( + 21, 55, - MAX ( 74 ), 93 * - SUM ( 53 ) + 24 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT + - 60 * COUNT( * ) * COUNT( * ) + 20 col0
----
-40

skipif mysql # not compatible
query I rowsort label-4539
SELECT + - 60 * COUNT ( * ) * COUNT ( * ) + 20 col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL 70 * 45 - COUNT( + ( 12 ) ) AS col1
----
3149

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL 70 * 45 - COUNT ( + ( 12 ) ) AS col1
----
3149

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT + 41 * + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-4541
SELECT + 41 * + COUNT ( * )
----
41

query I rowsort
SELECT + 85 * + ( - + 82 ) AS col1
----
-6970

query I rowsort
SELECT + 79 AS col1
----
79

query I rowsort
SELECT ALL + - 25
----
-25

query I rowsort
SELECT + + 70 AS col0
----
70

query I rowsort
SELECT 59 AS col0
----
59

query I rowsort
SELECT + - 54 * + 76 + + - 74 AS col1
----
-4178

query I rowsort
SELECT ALL + + 91
----
91

query I rowsort
SELECT ALL + 6 AS col1
----
6

query I rowsort
SELECT + 52 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT ALL + + ( MAX( - + ( 89 ) ) ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL + + ( MAX ( - + ( 89 ) ) ) AS col1
----
-89

query I rowsort
SELECT - 61 * + + 3 * - ( + 1 ) + - 71
----
112

query I rowsort
SELECT DISTINCT + - ( - 45 ) col1
----
45

query I rowsort
SELECT ALL 42 * + ( - 35 ) AS col2
----
-1470

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT + 53 + + 69 + + COUNT( * )
----
123

skipif mysql # not compatible
query I rowsort label-4555
SELECT + 53 + + 69 + + COUNT ( * )
----
123

query I rowsort
SELECT - 85
----
-85

query I rowsort
SELECT - 88
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT - CASE SUM( DISTINCT 5 ) WHEN + + 44 + + - 89 * 46 THEN - 98 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT - CASE SUM ( DISTINCT 5 ) WHEN + + 44 + + - 89 * 46 THEN - 98 + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT MIN( ALL 65 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4559
SELECT MIN ( ALL 65 ) AS col0
----
65

query I rowsort
SELECT + 17 * - - 27
----
459

query I rowsort
SELECT - 23 + + COALESCE ( 46, + - 40, 86 )
----
23

query I rowsort
SELECT 23 AS col2
----
23

query I rowsort
SELECT ALL - 28 + + + 47 AS col0
----
19

query I rowsort
SELECT DISTINCT 34 + - + 20 AS col1
----
14

query I rowsort
SELECT DISTINCT + 46 + - - 53 AS col1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4566
SELECT ALL + 74 DIV + - 29 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL + 74 / + - 29 AS col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4567
SELECT - COUNT( * ) DIV 58 * + 37
----
0

skipif mysql # not compatible
query I rowsort label-4567
SELECT - COUNT ( * ) / 58 * + 37
----
0

query II rowsort
SELECT + 51 - ( - 12 ) AS col0, ( - - 9 ) + 95 col1
----
63
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 20 AS col0
----
-20

query I rowsort
SELECT ALL - 1 + + ( 19 )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4572
SELECT - COUNT( * ) DIV - 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4572
SELECT - COUNT ( * ) / - 77 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4573
SELECT - COALESCE ( 55, + + 84 * - 26, + 31 ) DIV 22 col1
----
-2

skipif mysql # not compatible
query I rowsort label-4573
SELECT - COALESCE ( 55, + + 84 * - 26, + 31 ) / 22 col1
----
-2

query I rowsort
SELECT ALL ( + 38 ) col1
----
38

query I rowsort
SELECT DISTINCT - 92
----
-92

query II rowsort
SELECT - + 36 AS col2, - 88
----
-36
-88

query I rowsort
SELECT ALL - 80 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT DISTINCT + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT + - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT - - 10 * + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-4579
SELECT - - 10 * + COUNT ( * )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4580
SELECT ALL + 56 / + CAST( NULL AS SIGNED ) * + CAST( - COUNT( * ) AS SIGNED ) * 57 * 65 + - 54 * - 45 - 56 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL + 56 / + CAST ( NULL AS INTEGER ) * + CAST ( - COUNT ( * ) AS INTEGER ) * 57 * 65 + - 54 * - 45 - 56 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4581
SELECT DISTINCT + 72 AS col0, 54 * + - 52 * - MIN( ALL 40 ) AS col2
----
72
112320

skipif mysql # not compatible
query II rowsort label-4581
SELECT DISTINCT + 72 AS col0, 54 * + - 52 * - MIN ( ALL 40 ) AS col2
----
72
112320

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT - MIN( 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-4582
SELECT - MIN ( 50 )
----
-50

query I rowsort
SELECT - 73
----
-73

query I rowsort
SELECT - 84 AS col0
----
-84

query I rowsort
SELECT + 39 * - 59 AS col1
----
-2301

query I rowsort
SELECT ALL + - ( - - 69 ) AS col0
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4587
SELECT - SUM( 76 ) + - - ( - + NULLIF ( CAST( NULL AS SIGNED ), - 2 + + 45 ) ) + 89 * 19 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4587
SELECT - SUM ( 76 ) + - - ( - + NULLIF ( CAST ( NULL AS INTEGER ), - 2 + + 45 ) ) + 89 * 19 col2
----
NULL

query I rowsort
SELECT ALL + + 22 AS col0
----
22

query I rowsort
SELECT + 7 col0
----
7

query I rowsort
SELECT - 97 + - - 39
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4591
SELECT ALL - 89 * 73 DIV - CASE - 97 WHEN - 86 THEN 61 ELSE 28 END
----
232

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL - 89 * 73 / - CASE - 97 WHEN - 86 THEN 61 ELSE 28 END
----
232

query I rowsort
SELECT - + 83 * 60 AS col1
----
-4980

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT DISTINCT 45 * - + 24 - - COUNT( * ) * + 76 AS col0
----
-1004

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT 45 * - + 24 - - COUNT ( * ) * + 76 AS col0
----
-1004

query II rowsort
SELECT ALL + 49 AS col2, 47 AS col1
----
49
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4595
SELECT CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4595
SELECT CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL + + 50 * + COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL + + 50 * + COUNT ( * ) AS col2
----
50

query I rowsort
SELECT DISTINCT + 70 * + + NULLIF ( 50, - - 70 )
----
3500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4598
SELECT + - 59 + + 91 * 5 + + + 38 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4598
SELECT + - 59 + + 91 * 5 + + + 38 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 31
----
-31

query I rowsort
SELECT + 30 * - 57 col2
----
-1710

query I rowsort
SELECT ALL - 53 * - 47 + - 78 AS col2
----
2413

query I rowsort
SELECT NULLIF ( + - 36, - - 36 ) AS col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4603
SELECT + 29 * + 23 * 18 + - ( CAST( + COUNT( * ) AS SIGNED ) ) - + 40 * - COALESCE ( 45 * CASE ( 82 ) WHEN - 0 DIV - COUNT( * ) THEN NULL WHEN + 99 THEN - 73 END, + 0 DIV + 85 + - COUNT( * ), 95 * MAX( ALL + 67 ) ) AS col2
----
11965

skipif mysql # not compatible
query I rowsort label-4603
SELECT + 29 * + 23 * 18 + - ( CAST ( + COUNT ( * ) AS INTEGER ) ) - + 40 * - COALESCE ( 45 * CASE ( 82 ) WHEN - 0 / - COUNT ( * ) THEN NULL WHEN + 99 THEN - 73 END, + 0 / + 85 + - COUNT ( * ), 95 * MAX ( ALL + 67 ) ) AS col2
----
11965

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4604
SELECT CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT DISTINCT ( 4 ) + + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT ( 4 ) + + COUNT ( * ) AS col1
----
5

query I rowsort
SELECT ALL - 77 AS col1
----
-77

query I rowsort
SELECT 12 * + + NULLIF ( - 12, 82 * + - 34 + + - ( - 54 ) ) AS col0
----
-144

query I rowsort
SELECT ALL 96 AS col1
----
96

query I rowsort
SELECT 71 AS col0
----
71

query I rowsort
SELECT DISTINCT 93 + + 29 AS col1
----
122

query I rowsort
SELECT ALL 58 + - 80
----
-22

query I rowsort
SELECT 41 + - + 32 AS col2
----
9

query I rowsort
SELECT ALL 7 AS col0
----
7

query I rowsort
SELECT 18 + 35 * + 7
----
263

onlyif mysql # aggregate syntax: 
query II rowsort label-4615
SELECT 0 AS col0, - COUNT( - 15 ) + 12
----
0
11

skipif mysql # not compatible
query II rowsort label-4615
SELECT 0 AS col0, - COUNT ( - 15 ) + 12
----
0
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT NULLIF ( + + 9, + 67 ) + + - COUNT( * ) + 72 * - 57 AS col0
----
-4096

skipif mysql # not compatible
query I rowsort label-4616
SELECT NULLIF ( + + 9, + 67 ) + + - COUNT ( * ) + 72 * - 57 AS col0
----
-4096

query I rowsort
SELECT 63 - - 24 AS col0
----
87

onlyif mysql # DIV for integer division: 
query II rowsort label-4618
SELECT 8, 38 DIV ( 21 ) AS col2
----
8
1

skipif mysql # not compatible
query II rowsort label-4618
SELECT 8, 38 / ( 21 ) AS col2
----
8
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4619
SELECT 37 + + - NULLIF ( COALESCE ( - - 79, 72, + CASE 62 WHEN 66 THEN NULL ELSE - MAX( ALL 87 ) DIV + 90 END ), - 48 * - 77 - - COUNT( * ) )
----
-42

skipif mysql # not compatible
query I rowsort label-4619
SELECT 37 + + - NULLIF ( COALESCE ( - - 79, 72, + CASE 62 WHEN 66 THEN NULL ELSE - MAX ( ALL 87 ) / + 90 END ), - 48 * - 77 - - COUNT ( * ) )
----
-42

query I rowsort
SELECT 14
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4621
SELECT ALL 16 + + 26 DIV 52
----
16

skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL 16 + + 26 / 52
----
16

query II rowsort
SELECT ALL 74, 35 AS col0
----
74
35

query I rowsort
SELECT ( + + 37 ) + - - 26 * - + 30
----
-743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4624
SELECT CAST( + + 5 AS SIGNED ) * - SUM( DISTINCT + 50 ) * COUNT( * )
----
-250

skipif mysql # not compatible
query I rowsort label-4624
SELECT CAST ( + + 5 AS INTEGER ) * - SUM ( DISTINCT + 50 ) * COUNT ( * )
----
-250

query I rowsort
SELECT DISTINCT - 67 - ( 72 ) col2
----
-139

query I rowsort
SELECT + 78 * - + 32 AS col1
----
-2496

query I rowsort
SELECT ALL + + 69 * + 7
----
483

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4628
SELECT DISTINCT - COUNT( * ) DIV - - 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT - COUNT ( * ) / - - 77 AS col0
----
0

query I rowsort
SELECT - ( + - ( - + 64 ) )
----
-64

query I rowsort
SELECT 74 + - 47 + + 11
----
38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4631
SELECT ALL + - CAST( NULL AS DECIMAL ) * - SUM( - 18 ) * + 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL + - CAST ( NULL AS REAL ) * - SUM ( - 18 ) * + 86 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT - SUM( DISTINCT + 5 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4632
SELECT - SUM ( DISTINCT + 5 ) AS col1
----
-5

query I rowsort
SELECT ( + 60 ) AS col0
----
60

query II rowsort
SELECT DISTINCT - 51 * - 83 AS col2, 96
----
4233
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4635
SELECT ALL + + 90 * 76, + 81 * COUNT( * ) * 5 + - + 88 AS col1
----
6840
317

skipif mysql # not compatible
query II rowsort label-4635
SELECT ALL + + 90 * 76, + 81 * COUNT ( * ) * 5 + - + 88 AS col1
----
6840
317

query I rowsort
SELECT - 76 * + + 5
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT ALL + NULLIF ( COUNT( * ), - COUNT( * ) + 16 + + 1 * 27 + + 97 / 94 ) * 57
----
57

skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL + NULLIF ( COUNT ( * ), - COUNT ( * ) + 16 + + 1 * 27 + + 97 / 94 ) * 57
----
57

query I rowsort
SELECT + - 84 AS col1
----
-84

query I rowsort
SELECT DISTINCT - - 29
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT DISTINCT - + COUNT( ALL + 12 )
----
-1

skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT - + COUNT ( ALL + 12 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4641
SELECT ALL + + 98 * - + 92 * CAST( 67 AS SIGNED ) AS col2
----
-604072

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL + + 98 * - + 92 * CAST ( 67 AS INTEGER ) AS col2
----
-604072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4642
SELECT ALL - 68 + 44 + + NULLIF ( - CAST( NULL AS SIGNED ), - ( CAST( ( - NULLIF ( ( - 77 ), 66 * 89 - - 4 ) ) AS SIGNED ) ) ) * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL - 68 + 44 + + NULLIF ( - CAST ( NULL AS INTEGER ), - ( CAST ( ( - NULLIF ( ( - 77 ), 66 * 89 - - 4 ) ) AS INTEGER ) ) ) * + 5
----
NULL

query II rowsort
SELECT DISTINCT - + 52, 59 + 19 * + 82 AS col1
----
-52
1617

query I rowsort
SELECT ALL - 63 AS col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4645
SELECT CASE 28 WHEN + - MAX( DISTINCT - CAST( - CAST( + 63 AS SIGNED ) AS SIGNED ) ) THEN NULL WHEN CAST( 78 AS SIGNED ) THEN - 84 WHEN 24 * 49 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4645
SELECT CASE 28 WHEN + - MAX ( DISTINCT - CAST ( - CAST ( + 63 AS INTEGER ) AS INTEGER ) ) THEN NULL WHEN CAST ( 78 AS INTEGER ) THEN - 84 WHEN 24 * 49 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4646
SELECT ALL - 8 + - 27, CAST( NULL AS SIGNED ) + - - NULLIF ( + 1, + COALESCE ( + 92, 74 + 16 ) ) AS col2
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-4646
SELECT ALL - 8 + - 27, CAST ( NULL AS INTEGER ) + - - NULLIF ( + 1, + COALESCE ( + 92, 74 + 16 ) ) AS col2
----
-35
NULL

query I rowsort
SELECT DISTINCT - - 18
----
18

query I rowsort
SELECT 3 + + - 54 - + 28 + - - ( + 67 ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT 6 * - COUNT( * ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-4649
SELECT 6 * - COUNT ( * ) AS col1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4650
SELECT COALESCE ( CAST( + 85 AS SIGNED ), 87, - 28 ) + 13 col1
----
98

skipif mysql # not compatible
query I rowsort label-4650
SELECT COALESCE ( CAST ( + 85 AS INTEGER ), 87, - 28 ) + 13 col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL + ( + CASE - 11 WHEN - + 75 THEN + 50 * + + COUNT( + 38 ) - + 2 WHEN 47 + 24 * + COUNT( 55 * 8 ) THEN NULL ELSE NULL END ) * - MAX( 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL + ( + CASE - 11 WHEN - + 75 THEN + 50 * + + COUNT ( + 38 ) - + 2 WHEN 47 + 24 * + COUNT ( 55 * 8 ) THEN NULL ELSE NULL END ) * - MAX ( 27 )
----
NULL

query I rowsort
SELECT 32 AS col1
----
32

query I rowsort
SELECT ALL + 0 + + 81
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT ALL - COUNT( * ) + 24 * - 50
----
-1201

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL - COUNT ( * ) + 24 * - 50
----
-1201

query I rowsort
SELECT NULLIF ( - + 95, + 6 ) * - 29 AS col2
----
2755

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL + MAX( + - 36 ) * - 65
----
2340

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL + MAX ( + - 36 ) * - 65
----
2340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4657
SELECT - 49 * + + CASE + CAST( NULL AS SIGNED ) WHEN - - 21 * + MIN( + 83 ) + - COUNT( * ) THEN NULL WHEN + 56 THEN - AVG ( DISTINCT - 74 ) END + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4657
SELECT - 49 * + + CASE + CAST ( NULL AS INTEGER ) WHEN - - 21 * + MIN ( + 83 ) + - COUNT ( * ) THEN NULL WHEN + 56 THEN - AVG ( DISTINCT - 74 ) END + 90 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 76 + - 85 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT DISTINCT - ( + 88 ) * + + MIN( - 70 ) + 97
----
6257

skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT - ( + 88 ) * + + MIN ( - 70 ) + 97
----
6257

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT ALL + COUNT( * ) + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT 21 * - MAX( DISTINCT 45 ) AS col1
----
-945

skipif mysql # not compatible
query I rowsort label-4661
SELECT 21 * - MAX ( DISTINCT 45 ) AS col1
----
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT 31 - - COUNT( * ) * - 53 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-4662
SELECT 31 - - COUNT ( * ) * - 53 AS col1
----
-22

query I rowsort
SELECT - 62 AS col2
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4664
SELECT ALL 75 DIV COUNT( * ) * - 90
----
-6750

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL 75 / COUNT ( * ) * - 90
----
-6750

query I rowsort
SELECT - 73 AS col0
----
-73

query I rowsort
SELECT CASE 18 WHEN 74 * + + 47 * - 87 * 1 + + 84 THEN + 70 / 25 END * + 86 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 77 col1
----
77

query I rowsort
SELECT ALL 28
----
28

query I rowsort
SELECT DISTINCT 6 * 74 * - 77
----
-34188

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT - COUNT( DISTINCT + - 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-4670
SELECT - COUNT ( DISTINCT + - 3 )
----
-1

query I rowsort
SELECT ALL + 88 * - 19
----
-1672

query I rowsort
SELECT ( + 89 ) - 48 + - 7 * + 63 * + - 50
----
22091

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT + 94 * - COUNT( * ) * COALESCE ( - ( + 92 ), + 55 * - - MIN( 58 ) ) col1
----
8648

skipif mysql # not compatible
query I rowsort label-4673
SELECT + 94 * - COUNT ( * ) * COALESCE ( - ( + 92 ), + 55 * - - MIN ( 58 ) ) col1
----
8648

onlyif mysql # aggregate syntax: 
query II rowsort label-4674
SELECT + ( + 90 ), CASE + COUNT( * ) WHEN - 2 THEN NULL ELSE - + 95 END AS col1
----
90
-95

skipif mysql # not compatible
query II rowsort label-4674
SELECT + ( + 90 ), CASE + COUNT ( * ) WHEN - 2 THEN NULL ELSE - + 95 END AS col1
----
90
-95

query I rowsort
SELECT - - 19
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4676
SELECT - 61 * MIN( ALL 77 ) + - MIN( + 2 ) AS col1, 58
----
-4699
58

skipif mysql # not compatible
query II rowsort label-4676
SELECT - 61 * MIN ( ALL 77 ) + - MIN ( + 2 ) AS col1, 58
----
-4699
58

query I rowsort
SELECT DISTINCT COALESCE ( + 34, 77 + + + 53 * - 47 ) col1
----
34

query I rowsort
SELECT ALL - 42 AS col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4679
SELECT + MIN( - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4679
SELECT + MIN ( - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + + 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT DISTINCT NULLIF ( + - 20, + 54 ) * + 89 * - + COUNT( * ) + + 41
----
1821

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT NULLIF ( + - 20, + 54 ) * + 89 * - + COUNT ( * ) + + 41
----
1821

query I rowsort
SELECT 90 AS col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4683
SELECT + 87 DIV MAX( 43 ) + + 92 - - COALESCE ( - ( - + 32 ), NULLIF ( 20, - 8 * + 8 ) + + 38 )
----
126

skipif mysql # not compatible
query I rowsort label-4683
SELECT + 87 / MAX ( 43 ) + + 92 - - COALESCE ( - ( - + 32 ), NULLIF ( 20, - 8 * + 8 ) + + 38 )
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4684
SELECT ALL - + 83 * CAST( NULL AS SIGNED ) * + + ( - 35 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL - + 83 * CAST ( NULL AS INTEGER ) * + + ( - 35 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT DISTINCT + COUNT( DISTINCT - - 46 ) * + 0 * - + 61
----
0

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT + COUNT ( DISTINCT - - 46 ) * + 0 * - + 61
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4686
SELECT - 96 * - COALESCE ( 5, + CAST( + CAST( 80 AS DECIMAL ) AS SIGNED ) + 8 + + 64 ) + - 17
----
463

skipif mysql # not compatible
query I rowsort label-4686
SELECT - 96 * - COALESCE ( 5, + CAST ( + CAST ( 80 AS REAL ) AS INTEGER ) + 8 + + 64 ) + - 17
----
463

query I rowsort
SELECT ALL + 4 * + 37 + + + 39 * + 74
----
3034

query I rowsort
SELECT DISTINCT 18 * + 27
----
486

query I rowsort
SELECT ALL + ( + 81 ) AS col0
----
81

query I rowsort
SELECT ALL - 66 * - - ( - 57 ) + - 48 AS col1
----
3714

query I rowsort
SELECT 78 * + 54 + + - ( + 38 )
----
4174

query I rowsort
SELECT ALL + 67 AS col2
----
67

query I rowsort
SELECT DISTINCT + 87 * 33 AS col0
----
2871

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT - 45 * 39 + + SUM( - + 51 )
----
-1806

skipif mysql # not compatible
query I rowsort label-4694
SELECT - 45 * 39 + + SUM ( - + 51 )
----
-1806

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT COUNT( - 0 )
----
1

skipif mysql # not compatible
query I rowsort label-4695
SELECT COUNT ( - 0 )
----
1

query I rowsort
SELECT ALL + ( - 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT 15 * + 70 + - + MIN( 19 ) * + + COUNT( * )
----
1031

skipif mysql # not compatible
query I rowsort label-4697
SELECT 15 * + 70 + - + MIN ( 19 ) * + + COUNT ( * )
----
1031

query III rowsort
SELECT - 93 * + + 39 * 24 * 32 AS col2, 54 * 97 AS col1, - - 91
----
-2785536
5238
91

query I rowsort
SELECT ALL + 2 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4700
SELECT ALL + COALESCE ( - + 24, - 62 - 35 * + CAST( + - 77 AS SIGNED ) ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL + COALESCE ( - + 24, - 62 - 35 * + CAST ( + - 77 AS INTEGER ) ) AS col1
----
-24

query I rowsort
SELECT DISTINCT - 24 * - - 48 AS col0
----
-1152

query I rowsort
SELECT ALL ( + 99 ) AS col0
----
99

query I rowsort
SELECT ALL 69 * - 55 AS col1
----
-3795

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT - 74 - + COUNT( * ) - - 58 + + + 13 - - 75 * - MIN( DISTINCT + + 75 )
----
-5629

skipif mysql # not compatible
query I rowsort label-4704
SELECT - 74 - + COUNT ( * ) - - 58 + + + 13 - - 75 * - MIN ( DISTINCT + + 75 )
----
-5629

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT DISTINCT 86 * + CASE - 57 WHEN + + ( - - 73 ) THEN - - ( 41 ) - - COUNT( * ) - 49 * COUNT( + 14 * 93 ) / 79 END * - 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT 86 * + CASE - 57 WHEN + + ( - - 73 ) THEN - - ( 41 ) - - COUNT ( * ) - 49 * COUNT ( + 14 * 93 ) / 79 END * - 33 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4706
SELECT DISTINCT - 25 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT - 25 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 76
----
76

query I rowsort
SELECT - 21 * + 63 AS col2
----
-1323

query I rowsort
SELECT ALL - 7 * - - 58
----
-406

query I rowsort
SELECT - 9 + + 60
----
51

query II rowsort
SELECT + 58 AS col1, NULLIF ( - 59, + 87 - 76 / 93 * 28 )
----
58
-59

query I rowsort
SELECT + 92 - + 28 AS col2
----
64

query I rowsort
SELECT DISTINCT 13 AS col2
----
13

query I rowsort
SELECT ALL + 1 AS col2
----
1

query I rowsort
SELECT - 36 + 1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT + COALESCE ( + - 96, + MAX( 62 ) ) - - 97 + COUNT( * ) + + 20 * - + 36 + COUNT( * ) * - MIN( DISTINCT + 59 )
----
-777

skipif mysql # not compatible
query I rowsort label-4716
SELECT + COALESCE ( + - 96, + MAX ( 62 ) ) - - 97 + COUNT ( * ) + + 20 * - + 36 + COUNT ( * ) * - MIN ( DISTINCT + 59 )
----
-777

query I rowsort
SELECT ALL - 47 AS col1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4718
SELECT - CAST( NULL AS SIGNED ) + - - 32 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4718
SELECT - CAST ( NULL AS INTEGER ) + - - 32 col1
----
NULL

query I rowsort
SELECT DISTINCT 20
----
20

query I rowsort
SELECT DISTINCT - 65
----
-65

query II rowsort
SELECT ALL + 1 + - + 71 + - 11 AS col2, 91 AS col1
----
-81
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT + + CASE - + 58 WHEN - + 55 THEN 10 * + CASE - COUNT( * ) WHEN ( - + 70 ) * + 57 THEN 37 * - 59 END + - 68 END + + 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT + + CASE - + 58 WHEN - + 55 THEN 10 * + CASE - COUNT ( * ) WHEN ( - + 70 ) * + 57 THEN 37 * - 59 END + - 68 END + + 63 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4723
SELECT DISTINCT 51 + - 34 + + + COUNT( * ) DIV SUM( + 46 ) * 95 * CAST( + 63 AS SIGNED ) * - 22 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT 51 + - 34 + + + COUNT ( * ) / SUM ( + 46 ) * 95 * CAST ( + 63 AS INTEGER ) * - 22 AS col2
----
17

query I rowsort
SELECT ALL ( + 12 ) * 11
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4725
SELECT ALL + + SUM( DISTINCT 98 ) DIV - 33 + + + 83
----
81

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL + + SUM ( DISTINCT 98 ) / - 33 + + + 83
----
81

query I rowsort
SELECT + + 39 col2
----
39

query I rowsort
SELECT - 35 + 16 * - 77
----
-1267

onlyif mysql # DIV for integer division: 
query I rowsort label-4728
SELECT ALL + 63 DIV - ( + ( + 44 ) ) + - 10 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL + 63 / - ( + ( + 44 ) ) + - 10 AS col1
----
-11

query I rowsort
SELECT + + 94 * 39 AS col2
----
3666

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT ALL + MAX( 95 ) * - COUNT( * ) * 64 AS col0
----
-6080

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL + MAX ( 95 ) * - COUNT ( * ) * 64 AS col0
----
-6080

query I rowsort
SELECT ( - - 88 ) AS col2
----
88

query I rowsort
SELECT ALL + COALESCE ( 98, 4 + - 53 )
----
98

query I rowsort
SELECT DISTINCT + 78 * - ( - 10 ) - + + 83 AS col0
----
697

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4734
SELECT + 35 * - CAST( NULL AS DECIMAL ) * ( 6 ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4734
SELECT + 35 * - CAST ( NULL AS REAL ) * ( 6 ) * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ( 49 )
----
49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4736
SELECT ALL - CAST( NULL AS DECIMAL ) * + - 67 - - + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL - CAST ( NULL AS REAL ) * + - 67 - - + 38 AS col1
----
NULL

query I rowsort
SELECT ( + 75 ) AS col0
----
75

query I rowsort
SELECT ALL + 10 * - 21
----
-210

onlyif mysql # aggregate syntax: 
query II rowsort label-4739
SELECT - 69 * - + 76, MIN( - 8 ) AS col0
----
5244
-8

skipif mysql # not compatible
query II rowsort label-4739
SELECT - 69 * - + 76, MIN ( - 8 ) AS col0
----
5244
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-4740
SELECT ALL - 38 * - 22 * + - 25 * 25, + ( - COUNT( * ) ) AS col1
----
-522500
-1

skipif mysql # not compatible
query II rowsort label-4740
SELECT ALL - 38 * - 22 * + - 25 * 25, + ( - COUNT ( * ) ) AS col1
----
-522500
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT ALL NULLIF ( - 3, - + 53 ) * - 82 * - CASE 29 WHEN - 27 * 14 THEN + COUNT( * ) + + 60 END + + 37 - + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL NULLIF ( - 3, - + 53 ) * - 82 * - CASE 29 WHEN - 27 * 14 THEN + COUNT ( * ) + + 60 END + + 37 - + 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4742
SELECT - MIN( ALL + 60 ) DIV + COALESCE ( + + 40, + - 33 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4742
SELECT - MIN ( ALL + 60 ) / + COALESCE ( + + 40, + - 33 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4743
SELECT + SUM( - 82 ) * + - MAX( - 21 ) + - 54, ( + 24 ) * - - ( + + 95 ) AS col2
----
-1776
2280

skipif mysql # not compatible
query II rowsort label-4743
SELECT + SUM ( - 82 ) * + - MAX ( - 21 ) + - 54, ( + 24 ) * - - ( + + 95 ) AS col2
----
-1776
2280

query I rowsort
SELECT - 34 * + + 6
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT DISTINCT + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT ALL - 39 * - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL - 39 * - COUNT ( * )
----
39

query I rowsort
SELECT - ( + + 45 ) + 13 + - ( + ( + 98 ) ) AS col2
----
-130

query I rowsort
SELECT - 3 * + 13 * - 61
----
2379

query I rowsort
SELECT - 28 AS col1
----
-28

query I rowsort
SELECT - + 60 + + 21 AS col0
----
-39

query I rowsort
SELECT - + 26 AS col2
----
-26

query I rowsort
SELECT DISTINCT + 82 * + + 0 + CASE 15 WHEN - 90 THEN + + 93 * - ( 62 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 72 AS col2
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4754
SELECT - - 16 * - MAX( DISTINCT + 3 ) * + 11 * 17 DIV + ( + NULLIF ( - + COUNT( - 52 ), 47 * + 27 ) ) AS col1
----
8976

skipif mysql # not compatible
query I rowsort label-4754
SELECT - - 16 * - MAX ( DISTINCT + 3 ) * + 11 * 17 / + ( + NULLIF ( - + COUNT ( - 52 ), 47 * + 27 ) ) AS col1
----
8976

onlyif mysql # aggregate syntax: 
query II rowsort label-4755
SELECT ALL - - 83 + + 49 AS col2, COUNT( * ) AS col0
----
132
1

skipif mysql # not compatible
query II rowsort label-4755
SELECT ALL - - 83 + + 49 AS col2, COUNT ( * ) AS col0
----
132
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT + COUNT( - - 13 )
----
1

skipif mysql # not compatible
query I rowsort label-4756
SELECT + COUNT ( - - 13 )
----
1

query I rowsort
SELECT DISTINCT - 33
----
-33

query I rowsort
SELECT ALL + 36 + - 40
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4759
SELECT - + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - 23 AS col1
----
-23

query I rowsort
SELECT ALL + - 91 + + 40 AS col0
----
-51

query I rowsort
SELECT - 4 AS col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4764
SELECT - 23 - + 35 * AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) * - 4 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4764
SELECT - 23 - + 35 * AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * - 4 col0
----
NULL

query I rowsort
SELECT 45 col1
----
45

query I rowsort
SELECT DISTINCT 77
----
77

query I rowsort
SELECT + 6 * + + ( CASE + 19 WHEN + - 47 THEN 44 ELSE NULL END ) + - 7 AS col0
----
NULL

query I rowsort
SELECT - - 20
----
20

query I rowsort
SELECT ALL + 64 AS col2
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4770
SELECT - 50 * + 32, ( + COUNT( * ) ) AS col2
----
-1600
1

skipif mysql # not compatible
query II rowsort label-4770
SELECT - 50 * + 32, ( + COUNT ( * ) ) AS col2
----
-1600
1

query I rowsort
SELECT DISTINCT 83 AS col1
----
83

query I rowsort
SELECT - + 54 AS col0
----
-54

query I rowsort
SELECT ALL - 29 + + + 12 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-4774
SELECT + MAX( - 2 ) * + 0 - - 73, + COUNT( * ) + + 19 AS col0
----
73
20

skipif mysql # not compatible
query II rowsort label-4774
SELECT + MAX ( - 2 ) * + 0 - - 73, + COUNT ( * ) + + 19 AS col0
----
73
20

query I rowsort
SELECT ALL - 28
----
-28

query I rowsort
SELECT ALL ( + - 63 ) AS col0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4777
SELECT CAST( NULL AS SIGNED ) - - + 7, + ( 68 ) col1
----
NULL
68

skipif mysql # not compatible
query II rowsort label-4777
SELECT CAST ( NULL AS INTEGER ) - - + 7, + ( 68 ) col1
----
NULL
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4778
SELECT ALL - 5, - COUNT( * ) * COUNT( * ) col1
----
-5
-1

skipif mysql # not compatible
query II rowsort label-4778
SELECT ALL - 5, - COUNT ( * ) * COUNT ( * ) col1
----
-5
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4779
SELECT 15 * MAX( DISTINCT 22 ) * + - 33 + 92 + + - 79 AS col2, - CAST( NULL AS SIGNED ) * + 86 AS col0
----
-10877
NULL

skipif mysql # not compatible
query II rowsort label-4779
SELECT 15 * MAX ( DISTINCT 22 ) * + - 33 + 92 + + - 79 AS col2, - CAST ( NULL AS INTEGER ) * + 86 AS col0
----
-10877
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4780
SELECT ALL COUNT( * ) * 26 DIV + 34 AS col0, 60 AS col0
----
0
60

skipif mysql # not compatible
query II rowsort label-4780
SELECT ALL COUNT ( * ) * 26 / + 34 AS col0, 60 AS col0
----
0
60

query I rowsort
SELECT + 93 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT DISTINCT 58 * COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT 58 * COUNT ( * )
----
58

query I rowsort
SELECT ALL - 21 AS col2
----
-21

query I rowsort
SELECT DISTINCT - 24
----
-24

query I rowsort
SELECT DISTINCT - 95
----
-95

query I rowsort
SELECT + 93 * + 88 * + 91 + 26
----
744770

query I rowsort
SELECT DISTINCT - 7 AS col2
----
-7

query I rowsort
SELECT ALL - 11
----
-11

query I rowsort
SELECT + 69 col0
----
69

query I rowsort
SELECT + 23 col1
----
23

query I rowsort
SELECT + 26 col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4792
SELECT DISTINCT - 8 + + 14 DIV 21
----
-8

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT - 8 + + 14 / 21
----
-8

query I rowsort
SELECT DISTINCT - 56 AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4794
SELECT - CASE + - COUNT( * ) WHEN 31 + MAX( - - 42 ) / 37 * - 62 * + 49 THEN NULL ELSE + - CAST( NULL AS SIGNED ) * + ( - 34 ) + + 59 * - 78 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4794
SELECT - CASE + - COUNT ( * ) WHEN 31 + MAX ( - - 42 ) / 37 * - 62 * + 49 THEN NULL ELSE + - CAST ( NULL AS INTEGER ) * + ( - 34 ) + + 59 * - 78 END AS col1
----
NULL

query I rowsort
SELECT ALL + 65 + COALESCE ( + + 55, - - 1 * + 41 * + 12 * - - 34 ) AS col0
----
120

query I rowsort
SELECT DISTINCT + 7 + - + 17
----
-10

query I rowsort
SELECT ALL + 85 + - 16 * + 66 + + ( - 35 ) + - - 45 AS col1
----
-961

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT DISTINCT - 26 + + + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT - 26 + + + COUNT ( * )
----
-25

query I rowsort
SELECT ALL 28 * + 25
----
700

onlyif mysql # aggregate syntax: 
query II rowsort label-4800
SELECT - 21, SUM( 83 ) + 16 * - COUNT( * ) AS col1
----
-21
67

skipif mysql # not compatible
query II rowsort label-4800
SELECT - 21, SUM ( 83 ) + 16 * - COUNT ( * ) AS col1
----
-21
67

query I rowsort
SELECT DISTINCT ( + 21 )
----
21

query I rowsort
SELECT ALL - 86 AS col1
----
-86

query I rowsort
SELECT + 20 + - 48 - - 70 AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4804
SELECT - + COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4804
SELECT - + COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) AS col0
----
0

query I rowsort
SELECT 76 + + + 17
----
93

query I rowsort
SELECT + 4 - - 43 + + 68 AS col1
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4807
SELECT ALL + COALESCE ( COUNT( * ), - + SUM( - COALESCE ( + 22, + 89 DIV - 43 ) ) ) + + + 56 * 20 + 61 + - 20
----
1162

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL + COALESCE ( COUNT ( * ), - + SUM ( - COALESCE ( + 22, + 89 / - 43 ) ) ) + + + 56 * 20 + 61 + - 20
----
1162

query II rowsort
SELECT 7 * + ( + 87 ) AS col2, + 98 - + + 64 AS col0
----
609
34

query I rowsort
SELECT DISTINCT 55 AS col1
----
55

query I rowsort
SELECT 84
----
84

onlyif mysql # DIV for integer division: 
query II rowsort label-4811
SELECT ALL + 89 DIV - 98 + + 69, + 0 + - 91 AS col1
----
69
-91

skipif mysql # not compatible
query II rowsort label-4811
SELECT ALL + 89 / - 98 + + 69, + 0 + - 91 AS col1
----
69
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT DISTINCT - 30 - + 89 + - - SUM( + 3 ) AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT - 30 - + 89 + - - SUM ( + 3 ) AS col2
----
-116

query I rowsort
SELECT ALL + + 63 * + 50 * + NULLIF ( - 79, 64 * 43 ) * + + 73
----
-18166050

query I rowsort
SELECT 45 + + - 20
----
25

query I rowsort
SELECT DISTINCT + 39 * + 63
----
2457

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4816
SELECT - 27 * 92 * 49, CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
-121716
NULL

skipif mysql # not compatible
query II rowsort label-4816
SELECT - 27 * 92 * 49, CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
-121716
NULL

query II rowsort
SELECT ALL 83 AS col2, 37 + - 58
----
83
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4818
SELECT COUNT( * ) DIV - + 52
----
0

skipif mysql # not compatible
query I rowsort label-4818
SELECT COUNT ( * ) / - + 52
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4819
SELECT ALL - ( 7 ) AS col1, - ( + 43 ) * 8 * - 38 + COALESCE ( + CAST( NULL AS SIGNED ), - 79 ) DIV 83
----
-7
13072

skipif mysql # not compatible
query II rowsort label-4819
SELECT ALL - ( 7 ) AS col1, - ( + 43 ) * 8 * - 38 + COALESCE ( + CAST ( NULL AS INTEGER ), - 79 ) / 83
----
-7
13072

query I rowsort
SELECT 56 * + - 59 * 2 AS col1
----
-6608

query I rowsort
SELECT ALL - 27 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-4822
SELECT DISTINCT - COUNT( - NULLIF ( + 97, + + 58 ) ), - 97 AS col0
----
-1
-97

skipif mysql # not compatible
query II rowsort label-4822
SELECT DISTINCT - COUNT ( - NULLIF ( + 97, + + 58 ) ), - 97 AS col0
----
-1
-97

query I rowsort
SELECT 72 + - + COALESCE ( - ( + 64 ), + 65 * + 54 ) AS col2
----
136

query I rowsort
SELECT + 56 AS col0
----
56

query I rowsort
SELECT ALL - NULLIF ( 30, 31 / + 26 ) AS col0
----
-30

query I rowsort
SELECT + 58
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4827
SELECT MAX( - 56 ) * - + MAX( DISTINCT + - CAST( + 39 AS SIGNED ) ) * + 39 AS col0
----
-85176

skipif mysql # not compatible
query I rowsort label-4827
SELECT MAX ( - 56 ) * - + MAX ( DISTINCT + - CAST ( + 39 AS INTEGER ) ) * + 39 AS col0
----
-85176

query I rowsort
SELECT + 11 col0
----
11

query I rowsort
SELECT ALL 10 + 69 * - 62 + - ( 30 )
----
-4298

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT SUM( - ( + 55 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-4830
SELECT SUM ( - ( + 55 ) )
----
-55

query I rowsort
SELECT - 13 * + 72 + - 97 * + - 34 + 78 + - 83 * - + 17 * ( 36 ) * ( + 37 ) * 56 - - 11 AS col0
----
105251763

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT DISTINCT COUNT( * ) + 53 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4832
SELECT DISTINCT COUNT ( * ) + 53 AS col1
----
54

query II rowsort
SELECT DISTINCT + 3 * + 13 AS col2, 42
----
39
42

query I rowsort
SELECT ALL - 49 + 32 + - 62 AS col1
----
-79

query I rowsort
SELECT + 10
----
10

query I rowsort
SELECT ALL 55 + - 66 col0
----
-11

query I rowsort
SELECT + - 66 * 51 + - 15
----
-3381

query I rowsort
SELECT DISTINCT + 78 + - 72 - - 86 * 35 col0
----
3016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4839
SELECT NULLIF ( 84, + 23 * 7 * + CAST( - 24 AS SIGNED ) * + - 89 + - AVG ( 41 ) + - 43 + - 85 + - 25 * - 67 ) + + NULLIF ( + 40 - + 71, + 85 - 14 * + COUNT( * ) ) col1
----
53

skipif mysql # not compatible
query I rowsort label-4839
SELECT NULLIF ( 84, + 23 * 7 * + CAST ( - 24 AS INTEGER ) * + - 89 + - AVG ( 41 ) + - 43 + - 85 + - 25 * - 67 ) + + NULLIF ( + 40 - + 71, + 85 - 14 * + COUNT ( * ) ) col1
----
53

query II rowsort
SELECT ALL - - 12, 24 + - 70 AS col0
----
12
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4841
SELECT + + NULLIF ( CAST( + ( + COUNT( * ) ) AS SIGNED ), + 31 ) * + ( - + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4841
SELECT + + NULLIF ( CAST ( + ( + COUNT ( * ) ) AS INTEGER ), + 31 ) * + ( - + COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT - - ( - + SUM( 73 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-4842
SELECT - - ( - + SUM ( 73 ) )
----
-73

query II rowsort
SELECT - 74 + - - 13 AS col1, - 1
----
-61
-1

query II rowsort
SELECT ( + 3 ) AS col0, 13
----
3
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT ALL - COUNT( * ) * + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL - COUNT ( * ) * + + COUNT ( * )
----
-1

query I rowsort
SELECT + 45 * 49 AS col2
----
2205

onlyif mysql # aggregate syntax: 
query II rowsort label-4847
SELECT ALL MAX( ALL - + 77 ) AS col1, + 19
----
-77
19

skipif mysql # not compatible
query II rowsort label-4847
SELECT ALL MAX ( ALL - + 77 ) AS col1, + 19
----
-77
19

query I rowsort
SELECT - 1 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4849
SELECT ALL - 1 - - - 55 + - + CASE - 10 WHEN + 89 THEN CAST( NULL AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL - 1 - - - 55 + - + CASE - 10 WHEN + 89 THEN CAST ( NULL AS INTEGER ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 40 AS col1
----
40

query I rowsort
SELECT 55 AS col0
----
55

query I rowsort
SELECT + + 21 * + 90
----
1890

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT - + NULLIF ( - - 43, + COUNT( + 15 ) + - 58 + - COUNT( * ) + - 27 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-4853
SELECT - + NULLIF ( - - 43, + COUNT ( + 15 ) + - 58 + - COUNT ( * ) + - 27 ) AS col1
----
-43

query I rowsort
SELECT + - 46 - - 73 AS col2
----
27

query II rowsort
SELECT - 35 AS col1, + 24 AS col0
----
-35
24

query I rowsort
SELECT - + 82 * - + 21 * 75
----
129150

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL COUNT( ALL + - 5 )
----
1

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL COUNT ( ALL + - 5 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT DISTINCT + 97 * + ( + SUM( 15 ) ) AS col0
----
1455

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT + 97 * + ( + SUM ( 15 ) ) AS col0
----
1455

query I rowsort
SELECT ALL - 25 + + 79 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT - COUNT( * ) - - - 0 * + 50
----
-1

skipif mysql # not compatible
query I rowsort label-4860
SELECT - COUNT ( * ) - - - 0 * + 50
----
-1

query I rowsort
SELECT ALL + 1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4862
SELECT ALL 41 * + COUNT( * ) * - - 32 + + 49 + + CAST( + - 61 AS SIGNED ) AS col2
----
1300

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL 41 * + COUNT ( * ) * - - 32 + + 49 + + CAST ( + - 61 AS INTEGER ) AS col2
----
1300

query I rowsort
SELECT ( - - 68 )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4864
SELECT DISTINCT 3 * + + SUM( + + 59 ) * 30 + - 10 AS col1, 84 AS col0
----
5300
84

skipif mysql # not compatible
query II rowsort label-4864
SELECT DISTINCT 3 * + + SUM ( + + 59 ) * 30 + - 10 AS col1, 84 AS col0
----
5300
84

onlyif mysql # aggregate syntax: 
query II rowsort label-4865
SELECT ( + 38 ), - COUNT( 63 ) AS col2
----
38
-1

skipif mysql # not compatible
query II rowsort label-4865
SELECT ( + 38 ), - COUNT ( 63 ) AS col2
----
38
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4866
SELECT COALESCE ( - ( + NULLIF ( 43, - 38 * + 96 ) ), + + MAX( ALL 2 ) ) DIV - 62 + + 95 + + COUNT( * ) * + - 85
----
10

skipif mysql # not compatible
query I rowsort label-4866
SELECT COALESCE ( - ( + NULLIF ( 43, - 38 * + 96 ) ), + + MAX ( ALL 2 ) ) / - 62 + + 95 + + COUNT ( * ) * + - 85
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4867
SELECT ALL CAST( NULL AS SIGNED ) * - 95 * - + COALESCE ( + 49, - - 49 * - 16 + 16 ) * + 94 + - AVG ( 49 ) + + + COUNT( + 81 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL CAST ( NULL AS INTEGER ) * - 95 * - + COALESCE ( + 49, - - 49 * - 16 + 16 ) * + 94 + - AVG ( 49 ) + + + COUNT ( + 81 ) col0
----
NULL

query I rowsort
SELECT ALL + ( 27 ) AS col0
----
27

query I rowsort
SELECT COALESCE ( + + 65, + 38, - 91 ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL + COALESCE ( + 40, - COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL + COALESCE ( + 40, - COUNT ( * ) )
----
40

query I rowsort
SELECT - 45 * - + 54 AS col0
----
2430

onlyif mysql # DIV for integer division: 
query II rowsort label-4872
SELECT ALL 56 DIV + 81 * 14 AS col0, 7 AS col2
----
0
7

skipif mysql # not compatible
query II rowsort label-4872
SELECT ALL 56 / + 81 * 14 AS col0, 7 AS col2
----
0
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4873
SELECT - 62 DIV + - ( ( - 98 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4873
SELECT - 62 / + - ( ( - 98 ) )
----
0

query I rowsort
SELECT ALL + + 83
----
83

query I rowsort
SELECT + 49 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT + + 79 + ( - + COUNT( * ) ) col0
----
78

skipif mysql # not compatible
query I rowsort label-4876
SELECT + + 79 + ( - + COUNT ( * ) ) col0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-4877
SELECT - ( + - COUNT( * ) ) AS col1, 68
----
1
68

skipif mysql # not compatible
query II rowsort label-4877
SELECT - ( + - COUNT ( * ) ) AS col1, 68
----
1
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT + NULLIF ( COUNT( ( + - 97 ) ), - + NULLIF ( + 45, + 43 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4878
SELECT + NULLIF ( COUNT ( ( + - 97 ) ), - + NULLIF ( + 45, + 43 ) ) AS col1
----
1

query I rowsort
SELECT ALL + 78
----
78

query I rowsort
SELECT - 75 + 27 + 34 + - - ( + 1 ) * 27 + ( + 71 ) * 63
----
4486

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4881
SELECT - - AVG ( + 21 ) * - CAST( NULL AS DECIMAL ), 56 * + SUM( - 76 ) * 16 + - 99 - + COUNT( * ) AS col2
----
NULL
-68196

skipif mysql # not compatible
query II rowsort label-4881
SELECT - - AVG ( + 21 ) * - CAST ( NULL AS REAL ), 56 * + SUM ( - 76 ) * 16 + - 99 - + COUNT ( * ) AS col2
----
NULL
-68196

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4882
SELECT CAST( + - 76 AS SIGNED ) AS col0, 32
----
-76
32

skipif mysql # not compatible
query II rowsort label-4882
SELECT CAST ( + - 76 AS INTEGER ) AS col0, 32
----
-76
32

query II rowsort
SELECT + 59 * + 61, 51 AS col0
----
3599
51

query I rowsort
SELECT + + 13
----
13

query I rowsort
SELECT ALL + 57 col0
----
57

query I rowsort
SELECT ALL + 16
----
16

query I rowsort
SELECT ALL - - 5 * + 55 AS col1
----
275

query II rowsort
SELECT + + 36 - - 80 AS col1, 74
----
116
74

query I rowsort
SELECT ALL 85 AS col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4890
SELECT ( + - 10 ) * - 61 + - - CAST( NULL AS DECIMAL ) / + + 74 + - ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4890
SELECT ( + - 10 ) * - 61 + - - CAST ( NULL AS REAL ) / + + 74 + - ( + COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT 52 AS col2
----
52

query I rowsort
SELECT ALL 68 AS col0
----
68

query I rowsort
SELECT - 91 col0
----
-91

query I rowsort
SELECT + 19 + - 25
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT ALL 58 * - - COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL 58 * - - COUNT ( * ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4896
SELECT + 32 + + 8, - NULLIF ( ( + COUNT( - 26 ) ), - - 63 + 74 ) AS col1
----
40
-1

skipif mysql # not compatible
query II rowsort label-4896
SELECT + 32 + + 8, - NULLIF ( ( + COUNT ( - 26 ) ), - - 63 + 74 ) AS col1
----
40
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-4897
SELECT ALL 78 AS col1, 52 DIV + - 84
----
78
0

skipif mysql # not compatible
query II rowsort label-4897
SELECT ALL 78 AS col1, 52 / + - 84
----
78
0

query I rowsort
SELECT - ( + 12 ) AS col0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-4899
SELECT + 41 DIV - 11 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4899
SELECT + 41 / - 11 AS col0
----
-3

query I rowsort
SELECT ALL 47 + - 52 * + 43 * + + 85 AS col2
----
-190013

query I rowsort
SELECT + 59 + + - NULLIF ( - 27, 66 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT + COALESCE ( - ( + 92 ), - - COUNT( * ) ) * + + MAX( DISTINCT + 43 ) AS col1
----
-3956

skipif mysql # not compatible
query I rowsort label-4902
SELECT + COALESCE ( - ( + 92 ), - - COUNT ( * ) ) * + + MAX ( DISTINCT + 43 ) AS col1
----
-3956

query I rowsort
SELECT ALL + 93 + + 43
----
136

query I rowsort
SELECT ALL 41 * - ( - 66 ) AS col1
----
2706

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT DISTINCT 99 * + + ( - COALESCE ( - 43, - + 69 ) ) * - COUNT( * ) AS col2
----
-4257

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT 99 * + + ( - COALESCE ( - 43, - + 69 ) ) * - COUNT ( * ) AS col2
----
-4257

onlyif mysql # DIV for integer division: 
query I rowsort label-4906
SELECT + 5 DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-4906
SELECT + 5 / + 53
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4907
SELECT + COUNT( * ) + + + 13 DIV - - ( - 47 ) * - + 36 - - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4907
SELECT + COUNT ( * ) + + + 13 / - - ( - 47 ) * - + 36 - - COUNT ( * ) AS col2
----
2

query I rowsort
SELECT - ( + + 0 ) AS col2
----
0

query I rowsort
SELECT - 46 AS col0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4910
SELECT ALL 93 + - 61 + + - 95 * SUM( - 30 ) * + 21 * - + ( + 18 ) + - 49 DIV + MIN( DISTINCT 11 )
----
-1077272

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL 93 + - 61 + + - 95 * SUM ( - 30 ) * + 21 * - + ( + 18 ) + - 49 / + MIN ( DISTINCT 11 )
----
-1077272

query II rowsort
SELECT 74, + 75 * 42 AS col1
----
74
3150

query I rowsort
SELECT - 1 AS col0
----
-1

query I rowsort
SELECT - 81 + - 77
----
-158

onlyif mysql # aggregate syntax: 
query II rowsort label-4914
SELECT ALL + COUNT( * ) AS col0, 16 * - 58 * 74 AS col1
----
1
-68672

skipif mysql # not compatible
query II rowsort label-4914
SELECT ALL + COUNT ( * ) AS col0, 16 * - 58 * 74 AS col1
----
1
-68672

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT DISTINCT CASE + CASE - + NULLIF ( - NULLIF ( - 54, + 40 + COALESCE ( + 63, + 4 - + 78 * + - 78 ) / + - COUNT( * ) * - 91 / - 68 + 95 * - NULLIF ( - 6, 3 ) ), 99 * - 82 ) WHEN - 56 - - 12 THEN - 85 - 44 / - ( + 36 ) END WHEN 53 * 48 THEN 91 + - 3 * 9 END / 63 + + MAX( DISTINCT 63 + 79 ) * NULLIF ( + 23, NULLIF ( - 50, 20 + + 51 ) - + SUM( DISTINCT - 18 - - 71 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT CASE + CASE - + NULLIF ( - NULLIF ( - 54, + 40 + COALESCE ( + 63, + 4 - + 78 * + - 78 ) / + - COUNT ( * ) * - 91 / - 68 + 95 * - NULLIF ( - 6, 3 ) ), 99 * - 82 ) WHEN - 56 - - 12 THEN - 85 - 44 / - ( + 36 ) END WHEN 53 * 48 THEN 91 + - 3 * 9 END / 63 + + MAX ( DISTINCT 63 + 79 ) * NULLIF ( + 23, NULLIF ( - 50, 20 + + 51 ) - + SUM ( DISTINCT - 18 - - 71 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4916
SELECT ALL NULLIF ( - 0, + COALESCE ( 24, CASE - - 61 WHEN + CASE - 5 WHEN - 11 THEN + ( - 78 ) WHEN 1 * - ( + COUNT( * ) ) * CASE 8 WHEN 2 THEN NULL WHEN - 26 * - 66 THEN 1 * 77 WHEN 96 THEN MIN( ALL 60 ) ELSE COUNT( 88 ) * ( 72 ) END THEN - COUNT( * ) + - 78 * - 86 ELSE NULL END THEN ( 65 ) * + ( + CAST( NULL AS SIGNED ) + - 74 ) ELSE + 32 END, + 98 ) * 61 ) DIV - 35 + 50
----
50

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL NULLIF ( - 0, + COALESCE ( 24, CASE - - 61 WHEN + CASE - 5 WHEN - 11 THEN + ( - 78 ) WHEN 1 * - ( + COUNT ( * ) ) * CASE 8 WHEN 2 THEN NULL WHEN - 26 * - 66 THEN 1 * 77 WHEN 96 THEN MIN ( ALL 60 ) ELSE COUNT ( 88 ) * ( 72 ) END THEN - COUNT ( * ) + - 78 * - 86 ELSE NULL END THEN ( 65 ) * + ( + CAST ( NULL AS INTEGER ) + - 74 ) ELSE + 32 END, + 98 ) * 61 ) / - 35 + 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT DISTINCT + MAX( + 97 ) / - CASE + - 54 WHEN - 45 THEN NULL WHEN + COUNT( * ) THEN + 7 * + MAX( ALL - - 22 ) + 14 WHEN + 50 THEN + + 64 WHEN 22 * - 2 THEN 47 END * 84 + + ( 28 + - 91 ) * + NULLIF ( 41, + 95 + + COALESCE ( 37, 33, 14 * + MIN( - 20 ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT DISTINCT + MAX ( + 97 ) / - CASE + - 54 WHEN - 45 THEN NULL WHEN + COUNT ( * ) THEN + 7 * + MAX ( ALL - - 22 ) + 14 WHEN + 50 THEN + + 64 WHEN 22 * - 2 THEN 47 END * 84 + + ( 28 + - 91 ) * + NULLIF ( 41, + 95 + + COALESCE ( 37, 33, 14 * + MIN ( - 20 ) ) ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4918
SELECT ALL - 61 DIV - 94 + + 14
----
14

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL - 61 / - 94 + + 14
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4919
SELECT ALL 27 DIV + 36 * - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL 27 / + 36 * - 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4920
SELECT DISTINCT + COUNT( * ) AS col0, - COUNT( * ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-4920
SELECT DISTINCT + COUNT ( * ) AS col0, - COUNT ( * ) AS col0
----
1
-1

query I rowsort
SELECT + 44 col1
----
44

query I rowsort
SELECT 17 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT ALL - - COUNT( - 5 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL - - COUNT ( - 5 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4924
SELECT - 64 * 18 - - - CAST( NULL AS SIGNED ) + + + 8 * COUNT( * ) * - + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4924
SELECT - 64 * 18 - - - CAST ( NULL AS INTEGER ) + + + 8 * COUNT ( * ) * - + 10 AS col0
----
NULL

query I rowsort
SELECT ( - + 52 )
----
-52

query I rowsort
SELECT 54 col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT ALL + 26 * + - 23 + + COUNT( * ) * + + 1 * - + 21 * COUNT( * ) * - - COUNT( * )
----
-619

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL + 26 * + - 23 + + COUNT ( * ) * + + 1 * - + 21 * COUNT ( * ) * - - COUNT ( * )
----
-619

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT ALL 61 - + 85 * + + SUM( DISTINCT 14 ) AS col1
----
-1129

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL 61 - + 85 * + + SUM ( DISTINCT 14 ) AS col1
----
-1129

query I rowsort
SELECT + 0 * + 38 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4930
SELECT ALL - - 57 DIV + - 83 * + 35 * + + 55 + + + 27 - ( + COALESCE ( COUNT( * ), COUNT( * ) * + COUNT( * ) + - 60 + + 26 ) ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL - - 57 / + - 83 * + 35 * + + 55 + + + 27 - ( + COALESCE ( COUNT ( * ), COUNT ( * ) * + COUNT ( * ) + - 60 + + 26 ) ) AS col0
----
26

query II rowsort
SELECT DISTINCT - 2 AS col2, 22 AS col1
----
-2
22

query I rowsort
SELECT 20 - + 27 AS col2
----
-7

query I rowsort
SELECT - 80 * 66 - - 16 AS col1
----
-5264

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT - 50 * - COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4934
SELECT - 50 * - COUNT ( * ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT DISTINCT + MAX( ALL 58 )
----
58

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT + MAX ( ALL 58 )
----
58

query I rowsort
SELECT 9 AS col1
----
9

query I rowsort
SELECT - + 43 AS col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4938
SELECT + CAST( - 60 AS SIGNED ) + + + COUNT( * ) * 38 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-4938
SELECT + CAST ( - 60 AS INTEGER ) + + + COUNT ( * ) * 38 AS col0
----
-22

query II rowsort
SELECT + 14 col0, + 48
----
14
48

query I rowsort
SELECT ALL 47 * - 24 col2
----
-1128

query I rowsort
SELECT ALL - 49 + + 11 AS col2
----
-38

query I rowsort
SELECT - ( - - 60 ) AS col2
----
-60

query I rowsort
SELECT ALL 53 + - 67
----
-14

query I rowsort
SELECT - 78 col2
----
-78

query I rowsort
SELECT - 30 AS col1
----
-30

query I rowsort
SELECT ALL 35
----
35

query I rowsort
SELECT DISTINCT - 79 + - 35 + - ( - - 19 )
----
-133

query I rowsort
SELECT 35 AS col2
----
35

query I rowsort
SELECT 70 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT COUNT( ALL - 29 ) / + 49 * + CASE + 58 WHEN + 46 THEN NULL WHEN ( - + 41 ) + + 57 THEN + 33 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4950
SELECT COUNT ( ALL - 29 ) / + 49 * + CASE + 58 WHEN + 46 THEN NULL WHEN ( - + 41 ) + + 57 THEN + 33 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 93 + - + 77 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT 56 - - 38 - + 88 * + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-4952
SELECT 56 - - 38 - + 88 * + COUNT ( * )
----
6

query I rowsort
SELECT - 96 AS col0
----
-96

query I rowsort
SELECT - 1 AS col2
----
-1

query I rowsort
SELECT DISTINCT 2
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4956
SELECT ALL + 62 + - COUNT( * ), + 29 * + + 85 * 9 AS col2
----
61
22185

skipif mysql # not compatible
query II rowsort label-4956
SELECT ALL + 62 + - COUNT ( * ), + 29 * + + 85 * 9 AS col2
----
61
22185

query I rowsort
SELECT DISTINCT 5
----
5

query I rowsort
SELECT - 10 AS col2
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4959
SELECT ( + 12 ) * + ( - + CAST( NULL AS SIGNED ) ) + + - 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT ( + 12 ) * + ( - + CAST ( NULL AS INTEGER ) ) + + - 62 AS col2
----
NULL

query I rowsort
SELECT ALL - 55 AS col1
----
-55

query I rowsort
SELECT 3 AS col0
----
3

query I rowsort
SELECT 71 * + 51 * + 5 * - 16 * + + 18 - + ( + 24 )
----
-5214264

query I rowsort
SELECT + + 51 AS col1
----
51

query I rowsort
SELECT ALL - + COALESCE ( - 62, + 73, - + 6 ) AS col0
----
62

query I rowsort
SELECT DISTINCT - 25 AS col0
----
-25

query I rowsort
SELECT ALL - - 24 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT ALL - COUNT( * ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL - COUNT ( * ) * - COUNT ( * )
----
1

query I rowsort
SELECT + 98 * - 52
----
-5096

query I rowsort
SELECT ALL - 86 AS col2
----
-86

query I rowsort
SELECT 31 AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4971
SELECT - - 38 * 2 * - CAST( - SUM( + 47 ) AS SIGNED ) * 69 + - + 14 DIV - + COUNT( * ) AS col0
----
246482

skipif mysql # not compatible
query I rowsort label-4971
SELECT - - 38 * 2 * - CAST ( - SUM ( + 47 ) AS INTEGER ) * 69 + - + 14 / - + COUNT ( * ) AS col0
----
246482

query I rowsort
SELECT ALL - - 90
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4973
SELECT - 65 DIV + ( - - 67 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4973
SELECT - 65 / + ( - - 67 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT MAX( 57 ) * - 70 AS col1
----
-3990

skipif mysql # not compatible
query I rowsort label-4974
SELECT MAX ( 57 ) * - 70 AS col1
----
-3990

query I rowsort
SELECT + - 68 col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4976
SELECT + - SUM( DISTINCT - + 52 ) AS col0, + CAST( NULL AS DECIMAL ) + - - 68 AS col2
----
52
NULL

skipif mysql # not compatible
query II rowsort label-4976
SELECT + - SUM ( DISTINCT - + 52 ) AS col0, + CAST ( NULL AS REAL ) + - - 68 AS col2
----
52
NULL

query I rowsort
SELECT ALL - + 31 col1
----
-31

query I rowsort
SELECT - 54 * + 78 + + 3
----
-4209

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT ALL - ( COUNT( * ) ) + 10 * - 33 - - ( + 17 ) AS col2
----
-314

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL - ( COUNT ( * ) ) + 10 * - 33 - - ( + 17 ) AS col2
----
-314

query I rowsort
SELECT DISTINCT - 20 * - + 91 AS col2
----
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT DISTINCT 79 * - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT 79 * - COUNT ( * )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT DISTINCT - COUNT( ALL 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT - COUNT ( ALL 57 )
----
-1

query I rowsort
SELECT ALL 4 AS col2
----
4

query I rowsort
SELECT DISTINCT + 20 * - 9
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL - 93 + + ( + 94 ) + - 71 * - - 41 * COUNT( * )
----
-2910

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL - 93 + + ( + 94 ) + - 71 * - - 41 * COUNT ( * )
----
-2910

query I rowsort
SELECT 57 * + 94 + - 82 + - 16 AS col1
----
5260

query I rowsort
SELECT 7 AS col0
----
7

query I rowsort
SELECT 42 col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4989
SELECT 56 + 29 DIV 59 DIV + 76 * 39 + ( - 48 )
----
8

skipif mysql # not compatible
query I rowsort label-4989
SELECT 56 + 29 / 59 / + 76 * 39 + ( - 48 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4990
SELECT - 88 AS col2, + 19 / - + CAST( NULL AS SIGNED )
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-4990
SELECT - 88 AS col2, + 19 / - + CAST ( NULL AS INTEGER )
----
-88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT DISTINCT MAX( 94 )
----
94

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT MAX ( 94 )
----
94

query I rowsort
SELECT 65 + + 65 AS col2
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4993
SELECT ALL CASE COUNT( * ) WHEN + + COUNT( * ) THEN - 94 + - MIN( - 17 ) DIV + 2 - - 25 END AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL CASE COUNT ( * ) WHEN + + COUNT ( * ) THEN - 94 + - MIN ( - 17 ) / + 2 - - 25 END AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT 75 + 34 * + - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-4994
SELECT 75 + 34 * + - COUNT ( * )
----
41

query I rowsort
SELECT DISTINCT - 76 * + 75 AS col0
----
-5700

query I rowsort
SELECT 23 col0
----
23

query I rowsort
SELECT + 98 + 96 AS col1
----
194

query II rowsort
SELECT - COALESCE ( + + 72, + 22 ) * + + 61 + 79 * - - 1 AS col0, 98
----
-4313
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT + 15 * + MIN( ALL - 97 ) * + 55 + - - 87
----
-79938

skipif mysql # not compatible
query I rowsort label-4999
SELECT + 15 * + MIN ( ALL - 97 ) * + 55 + - - 87
----
-79938

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT + 74 + + - 44 - COUNT( * ) * + - 25 col0
----
55

skipif mysql # not compatible
query I rowsort label-5000
SELECT + 74 + + - 44 - COUNT ( * ) * + - 25 col0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5001
SELECT - COUNT( * ), COUNT( * ) * + + CASE - 92 WHEN 14 THEN - + 15 WHEN + ( - + 12 ) * - COUNT( * ) - - + 85 + - + 68 THEN - - 59 ELSE - 10 END * 84 AS col2
----
-1
-840

skipif mysql # not compatible
query II rowsort label-5001
SELECT - COUNT ( * ), COUNT ( * ) * + + CASE - 92 WHEN 14 THEN - + 15 WHEN + ( - + 12 ) * - COUNT ( * ) - - + 85 + - + 68 THEN - - 59 ELSE - 10 END * 84 AS col2
----
-1
-840

query I rowsort
SELECT ALL 21 col2
----
21

query I rowsort
SELECT + 68 + - 0 AS col0
----
68

query I rowsort
SELECT + 55 * + 18 col2
----
990

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5005
SELECT DISTINCT + MIN( DISTINCT + + 39 ) DIV + - 74 AS col2, + 1
----
0
1

skipif mysql # not compatible
query II rowsort label-5005
SELECT DISTINCT + MIN ( DISTINCT + + 39 ) / + - 74 AS col2, + 1
----
0
1

query I rowsort
SELECT ALL + - 38
----
-38

query I rowsort
SELECT 21 AS col1
----
21

query II rowsort
SELECT ALL 52 * 58 + 42 + - COALESCE ( + + 32, - 62 ) * 94 + + 80 AS col2, - 32
----
130
-32

query I rowsort
SELECT DISTINCT + 70 AS col2
----
70

query I rowsort
SELECT - + 54 * + 68
----
-3672

query I rowsort
SELECT + + 48 + + + 42 + + 28 + - 43 AS col2
----
75

query II rowsort
SELECT ALL + 43 * + 47 + + + 12, - 93 AS col0
----
2033
-93

query II rowsort
SELECT ALL + - 79 AS col0, - 9 AS col0
----
-79
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5014
SELECT + - 74 DIV ( + 7 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-5014
SELECT + - 74 / ( + 7 ) AS col2
----
-10

query I rowsort
SELECT + + 4 - 76
----
-72

query I rowsort
SELECT + - ( - + 27 ) AS col2
----
27

query I rowsort
SELECT ALL + + 2 AS col2
----
2

query I rowsort
SELECT + ( 16 ) * 43
----
688

query I rowsort
SELECT ALL + + 46
----
46

query I rowsort
SELECT ( 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5021
SELECT ALL 98 * + - NULLIF ( + 59, - CASE - COALESCE ( - 80, + + MAX( - 35 ) ) WHEN + 7 * 55 * 98 - + 6 THEN + + 53 WHEN + - MAX( - + 31 ) THEN + 2 + - 34 END * - 4 ) + 83 DIV - MIN( 17 * 40 ) AS col0
----
-5782

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL 98 * + - NULLIF ( + 59, - CASE - COALESCE ( - 80, + + MAX ( - 35 ) ) WHEN + 7 * 55 * 98 - + 6 THEN + + 53 WHEN + - MAX ( - + 31 ) THEN + 2 + - 34 END * - 4 ) + 83 / - MIN ( 17 * 40 ) AS col0
----
-5782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5022
SELECT ALL - - 64 * + 5 - + + NULLIF ( - 34, - 0 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL - - 64 * + 5 - + + NULLIF ( - 34, - 0 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT + - 97 * - COUNT( * ) + COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-5023
SELECT + - 97 * - COUNT ( * ) + COUNT ( * ) AS col0
----
98

query I rowsort
SELECT DISTINCT + + 85 * - 21
----
-1785

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5025
SELECT - - MAX( ALL - 79 ) DIV ( + COUNT( * ) )
----
-79

skipif mysql # not compatible
query I rowsort label-5025
SELECT - - MAX ( ALL - 79 ) / ( + COUNT ( * ) )
----
-79

query I rowsort
SELECT + 29 AS col2
----
29

query I rowsort
SELECT - COALESCE ( + - 25, - ( + NULLIF ( + 3, - 26 ) ) )
----
25

query I rowsort
SELECT ALL + 34 * - 25 AS col2
----
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT COUNT( DISTINCT + 7 )
----
1

skipif mysql # not compatible
query I rowsort label-5029
SELECT COUNT ( DISTINCT + 7 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT - COALESCE ( - 97, + 17 + + - ( COUNT( * ) ) * - 90 ) * - - 25 * + ( + 74 ) + + + 16
----
179466

skipif mysql # not compatible
query I rowsort label-5030
SELECT - COALESCE ( - 97, + 17 + + - ( COUNT ( * ) ) * - 90 ) * - - 25 * + ( + 74 ) + + + 16
----
179466

query I rowsort
SELECT ALL 38
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT MIN( DISTINCT 23 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-5032
SELECT MIN ( DISTINCT 23 ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT ALL - MAX( - 60 ) - - - 61 + 47 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL - MAX ( - 60 ) - - - 61 + 47 AS col2
----
46

query II rowsort
SELECT 4, ( 27 ) AS col2
----
4
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT ALL MAX( + + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL MAX ( + + 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT ALL + 62 - - 28 * COUNT( * ) + + 19 + COUNT( * ) col1
----
110

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL + 62 - - 28 * COUNT ( * ) + + 19 + COUNT ( * ) col1
----
110

query I rowsort
SELECT + 92 * - - 56 AS col2
----
5152

query I rowsort
SELECT 28
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5039
SELECT ALL - 99 / - - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL - 99 / - - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5040
SELECT + 10 / + MIN( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5040
SELECT + 10 / + MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5041
SELECT - 16 DIV - COALESCE ( - - COUNT( * ), + COUNT( * ) * 86, - + 59 ) AS col1, 7
----
16
7

skipif mysql # not compatible
query II rowsort label-5041
SELECT - 16 / - COALESCE ( - - COUNT ( * ), + COUNT ( * ) * 86, - + 59 ) AS col1, 7
----
16
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT - 92 * - COALESCE ( - 61, COALESCE ( + CASE + 0 WHEN - 89 THEN - 61 END, + 91 ) * 3 + 98, + COUNT( * ) )
----
-5612

skipif mysql # not compatible
query I rowsort label-5042
SELECT - 92 * - COALESCE ( - 61, COALESCE ( + CASE + 0 WHEN - 89 THEN - 61 END, + 91 ) * 3 + 98, + COUNT ( * ) )
----
-5612

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT ALL ( + + NULLIF ( 16, + COUNT( * ) - + 68 ) )
----
16

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL ( + + NULLIF ( 16, + COUNT ( * ) - + 68 ) )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5044
SELECT ALL ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT DISTINCT MAX( + - 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT MAX ( + - 95 ) AS col0
----
-95

query I rowsort
SELECT - 38 + - + 67
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5047
SELECT ALL + COUNT( * ) * + MIN( - - 51 ) * COUNT( * ) * - - 68 - + 93 DIV + + 17 AS col0
----
3463

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL + COUNT ( * ) * + MIN ( - - 51 ) * COUNT ( * ) * - - 68 - + 93 / + + 17 AS col0
----
3463

onlyif mysql # aggregate syntax: 
query II rowsort label-5048
SELECT - 56 * - - MIN( DISTINCT + + ( + + 19 ) ) AS col2, 10
----
-1064
10

skipif mysql # not compatible
query II rowsort label-5048
SELECT - 56 * - - MIN ( DISTINCT + + ( + + 19 ) ) AS col2, 10
----
-1064
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5049
SELECT ALL + 38 * - 69 col1, - MIN( ALL + 96 )
----
-2622
-96

skipif mysql # not compatible
query II rowsort label-5049
SELECT ALL + 38 * - 69 col1, - MIN ( ALL + 96 )
----
-2622
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-5050
SELECT ALL 25 AS col2, 8 DIV + + 30
----
25
0

skipif mysql # not compatible
query II rowsort label-5050
SELECT ALL 25 AS col2, 8 / + + 30
----
25
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT - SUM( ALL - 47 ) - + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-5051
SELECT - SUM ( ALL - 47 ) - + COUNT ( * )
----
46

query I rowsort
SELECT DISTINCT + - 96 * - 5
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT ALL + SUM( ALL - 12 ) * 87 AS col1
----
-1044

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL + SUM ( ALL - 12 ) * 87 AS col1
----
-1044

query I rowsort
SELECT - - 83 * - 59
----
-4897

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT + - ( + 54 ) + - 73 - + 3 - - 11 + - - MAX( 33 )
----
-86

skipif mysql # not compatible
query I rowsort label-5055
SELECT + - ( + 54 ) + - 73 - + 3 - - 11 + - - MAX ( 33 )
----
-86

query I rowsort
SELECT 85 AS col0
----
85

query I rowsort
SELECT - ( - 13 )
----
13

query I rowsort
SELECT + 31
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT ALL + - MAX( DISTINCT + 36 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL + - MAX ( DISTINCT + 36 ) AS col0
----
-36

query I rowsort
SELECT - 56 * + 52
----
-2912

query I rowsort
SELECT DISTINCT + + 34 AS col1
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5062
SELECT DISTINCT - 8 DIV + - 73 + - SUM( - + 40 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT - 8 / + - 73 + - SUM ( - + 40 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT ALL COUNT( * ) * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL COUNT ( * ) * + - COUNT ( * )
----
-1

query I rowsort
SELECT + 4 col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5065
SELECT ALL - 82 * + + 60 DIV COUNT( + 67 ) * + + ( - 42 ) * 62 + 76 + + 33 - + 78 + - 35 * - CAST( + - 19 AS SIGNED ) + 32 + 89 AS col1
----
12811167

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL - 82 * + + 60 / COUNT ( + 67 ) * + + ( - 42 ) * 62 + 76 + + 33 - + 78 + - 35 * - CAST ( + - 19 AS INTEGER ) + 32 + 89 AS col1
----
12811167

query I rowsort
SELECT + - 76 * - + 69
----
5244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5067
SELECT ALL + NULLIF ( 4, 28 * + 10 - - + COALESCE ( - COUNT( * ), - ( + NULLIF ( - COUNT( * ), - CAST( NULL AS SIGNED ) + - 20 ) ) ) + - 4 ) * - 37 * - 4 AS col1
----
592

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL + NULLIF ( 4, 28 * + 10 - - + COALESCE ( - COUNT ( * ), - ( + NULLIF ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) + - 20 ) ) ) + - 4 ) * - 37 * - 4 AS col1
----
592

query II rowsort
SELECT 78 AS col0, + 17 - 45 AS col2
----
78
-28

query I rowsort
SELECT + ( 16 ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT ALL COUNT( * ) * + MIN( - NULLIF ( - 39, - + 37 ) ) + + - 56 + - + 44 * - + 29 AS col1
----
1259

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL COUNT ( * ) * + MIN ( - NULLIF ( - 39, - + 37 ) ) + + - 56 + - + 44 * - + 29 AS col1
----
1259

onlyif mysql # aggregate syntax: 
query II rowsort label-5071
SELECT + COUNT( * ) AS col0, - 79 AS col2
----
1
-79

skipif mysql # not compatible
query II rowsort label-5071
SELECT + COUNT ( * ) AS col0, - 79 AS col2
----
1
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT + CASE - 6 WHEN - 2 THEN - + 34 + + COUNT( * ) + - 96 ELSE COUNT( * ) END + - - 33 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-5072
SELECT + CASE - 6 WHEN - 2 THEN - + 34 + + COUNT ( * ) + - 96 ELSE COUNT ( * ) END + - - 33 AS col2
----
34

query I rowsort
SELECT + 59 * + + NULLIF ( + 59, + 77 * 9 + 7 ) * - - 76 * - - 97 * - + 22
----
-564562504

query I rowsort
SELECT ( 42 ) col2
----
42

query I rowsort
SELECT ALL + 30 AS col0
----
30

query I rowsort
SELECT DISTINCT + 7
----
7

query I rowsort
SELECT + ( - 54 ) * - - 42 AS col2
----
-2268

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT + COUNT( * ) + 6 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-5078
SELECT + COUNT ( * ) + 6 AS col1
----
7

query I rowsort
SELECT ALL + 3 * + - 46
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5080
SELECT CAST( NULL AS SIGNED ) + - 41 / + CAST( NULL AS SIGNED ) * - - 97 * + 80 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5080
SELECT CAST ( NULL AS INTEGER ) + - 41 / + CAST ( NULL AS INTEGER ) * - - 97 * + 80 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5081
SELECT ALL COUNT( * ) - 21, - 91 col0
----
-20
-91

skipif mysql # not compatible
query II rowsort label-5081
SELECT ALL COUNT ( * ) - 21, - 91 col0
----
-20
-91

query I rowsort
SELECT ( + 32 ) * - 86 * + ( 16 ) * 68
----
-2994176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5083
SELECT 84 * + 32 * + 43 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5083
SELECT 84 * + 32 * + 43 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 90 + - 81 * 7 + - + ( 10 ) + + + 89 - + + 79 AS col0
----
-477

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT 31 * 1 - - MAX( + 62 ) + - + 48 * - 76 AS col0
----
3741

skipif mysql # not compatible
query I rowsort label-5085
SELECT 31 * 1 - - MAX ( + 62 ) + - + 48 * - 76 AS col0
----
3741

query I rowsort
SELECT ALL 17 AS col1
----
17

query I rowsort
SELECT DISTINCT 68 AS col0
----
68

query I rowsort
SELECT 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT ALL COUNT( * ) + + - 66
----
-65

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL COUNT ( * ) + + - 66
----
-65

query I rowsort
SELECT DISTINCT 22 col0
----
22

query I rowsort
SELECT ALL 74 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT ALL - NULLIF ( 63, - + 21 * - 19 + - 59 + 44 * COUNT( * ) * COUNT( * ) ) + 87 col1
----
24

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL - NULLIF ( 63, - + 21 * - 19 + - 59 + 44 * COUNT ( * ) * COUNT ( * ) ) + 87 col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT ALL ( COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL ( COUNT ( * ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5094
SELECT 41 + + ( - 62 ) * + 37 * - 32 + - + 2 + + 79 * + 57 + - - COALESCE ( + 53, + CAST( + + 82 AS SIGNED ) ) AS col0
----
78003

skipif mysql # not compatible
query I rowsort label-5094
SELECT 41 + + ( - 62 ) * + 37 * - 32 + - + 2 + + 79 * + 57 + - - COALESCE ( + 53, + CAST ( + + 82 AS INTEGER ) ) AS col0
----
78003

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5095
SELECT ( COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5096
SELECT ALL + 26 + CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) * - COUNT( * ) + + + COUNT( * ) - MAX( - 95 ) AS col0
----
NULL
97

skipif mysql # not compatible
query II rowsort label-5096
SELECT ALL + 26 + CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) * - COUNT ( * ) + + + COUNT ( * ) - MAX ( - 95 ) AS col0
----
NULL
97

query I rowsort
SELECT 74 * + 24
----
1776

query I rowsort
SELECT - + 18
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5099
SELECT + 40 + - - CAST( NULL AS SIGNED ) - - - 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5099
SELECT + 40 + - - CAST ( NULL AS INTEGER ) - - - 0 AS col0
----
NULL

query II rowsort
SELECT ALL 14 + + 66 * + + 48 * - + ( + 54 ) * + 60 * + 7, 28 * + 65 AS col0
----
-71850226
1820

query I rowsort
SELECT DISTINCT 54 AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5102
SELECT ALL + 66 + SUM( 2 ) + - 48 - - 13, CAST( NULL AS SIGNED ) AS col1
----
33
NULL

skipif mysql # not compatible
query II rowsort label-5102
SELECT ALL + 66 + SUM ( 2 ) + - 48 - - 13, CAST ( NULL AS INTEGER ) AS col1
----
33
NULL

query I rowsort
SELECT ALL - + 56 + 41 AS col2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5104
SELECT DISTINCT + + COUNT( * ) + + - 8, CAST( NULL AS SIGNED ) + 31 AS col2
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-5104
SELECT DISTINCT + + COUNT ( * ) + + - 8, CAST ( NULL AS INTEGER ) + 31 AS col2
----
-7
NULL

query I rowsort
SELECT - ( - 81 ) + - 5 + ( - 51 ) + 11 + - 92 * + + 47 * + 6 * - 35 col2
----
908076

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5106
SELECT DISTINCT - 0 + + COALESCE ( + - 14, + + COUNT( ALL - ( + COALESCE ( - 96, + - 95 ) ) ) DIV + 66 + - 72, + - 41 DIV + + 18 * - 11 * - MIN( ALL - 34 ) + + 68 + + 9 * + COUNT( CAST( NULL AS SIGNED ) + 4 * 22 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-5106
SELECT DISTINCT - 0 + + COALESCE ( + - 14, + + COUNT ( ALL - ( + COALESCE ( - 96, + - 95 ) ) ) / + 66 + - 72, + - 41 / + + 18 * - 11 * - MIN ( ALL - 34 ) + + 68 + + 9 * + COUNT ( CAST ( NULL AS INTEGER ) + 4 * 22 ) )
----
-14

query I rowsort
SELECT ALL - 33 AS col2
----
-33

query I rowsort
SELECT + 33 AS col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5109
SELECT 20 + 87 - + - 93 + - MAX( + 9 ) * + - 65 * + 59 * 15 + 51 DIV - - 42 AS col0
----
517926

skipif mysql # not compatible
query I rowsort label-5109
SELECT 20 + 87 - + - 93 + - MAX ( + 9 ) * + - 65 * + 59 * 15 + 51 / - - 42 AS col0
----
517926

query I rowsort
SELECT + + 66
----
66

query I rowsort
SELECT ALL - 10 AS col0
----
-10

query I rowsort
SELECT + - 12
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5113
SELECT DISTINCT + SUM( DISTINCT + + 38 ) - - - COUNT( * ) + - CASE - MIN( + 86 ) WHEN COALESCE ( 45, - 26 ) / - - 27 + + 79 THEN - + CAST( - 83 AS SIGNED ) + - + 34 + - - 81 / - + ( - - 25 ) WHEN + + SUM( 50 ) + MIN( + 48 + + 5 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT + SUM ( DISTINCT + + 38 ) - - - COUNT ( * ) + - CASE - MIN ( + 86 ) WHEN COALESCE ( 45, - 26 ) / - - 27 + + 79 THEN - + CAST ( - 83 AS INTEGER ) + - + 34 + - - 81 / - + ( - - 25 ) WHEN + + SUM ( 50 ) + MIN ( + 48 + + 5 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT ALL - ( - MAX( ALL 10 ) )
----
10

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL - ( - MAX ( ALL 10 ) )
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5115
SELECT DISTINCT - 17 DIV - 69 * ( - NULLIF ( + - 55, + - 1 + 84 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT - 17 / - 69 * ( - NULLIF ( + - 55, + - 1 + 84 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5116
SELECT 94 DIV COUNT( * ) col1
----
94

skipif mysql # not compatible
query I rowsort label-5116
SELECT 94 / COUNT ( * ) col1
----
94

query I rowsort
SELECT ALL 17 * + - 52
----
-884

query I rowsort
SELECT ALL - 99 * + 12 AS col2
----
-1188

query II rowsort
SELECT + 92 AS col0, 67
----
92
67

query I rowsort
SELECT 66 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT COUNT( * ) * - + 77 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-5121
SELECT COUNT ( * ) * - + 77 AS col1
----
-77

query II rowsort
SELECT + 50 AS col1, 0 AS col0
----
50
0

query I rowsort
SELECT 29 * - 44 AS col2
----
-1276

query I rowsort
SELECT DISTINCT 55 AS col0
----
55

query II rowsort
SELECT ALL 6 AS col2, - 92
----
6
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT DISTINCT - COUNT( * ) * + 64 * - - 82
----
-5248

skipif mysql # not compatible
query I rowsort label-5126
SELECT DISTINCT - COUNT ( * ) * + 64 * - - 82
----
-5248

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT ALL + 72 + - COUNT( * ) + - 86 * SUM( DISTINCT 85 )
----
-7239

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL + 72 + - COUNT ( * ) + - 86 * SUM ( DISTINCT 85 )
----
-7239

query I rowsort
SELECT 66 AS col0
----
66

query I rowsort
SELECT 19 * 1
----
19

query I rowsort
SELECT ALL 21 + 98
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5131
SELECT ALL 17 AS col0, CAST( NULL AS SIGNED ) + + 9
----
17
NULL

skipif mysql # not compatible
query II rowsort label-5131
SELECT ALL 17 AS col0, CAST ( NULL AS INTEGER ) + + 9
----
17
NULL

query I rowsort
SELECT ALL NULLIF ( + - 31, - + 37 ) + 71 + 64 AS col0
----
104

query I rowsort
SELECT DISTINCT 23 col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT 9 + + + 48 * COUNT( * ) * - COUNT( DISTINCT + + 94 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-5134
SELECT 9 + + + 48 * COUNT ( * ) * - COUNT ( DISTINCT + + 94 ) AS col1
----
-39

query I rowsort
SELECT 10 * + 73
----
730

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT - 15 + + SUM( ALL - 8 ) + + - COALESCE ( + 5, - + MAX( DISTINCT - 41 ) * - - 66 ) * NULLIF ( + 4, - 12 ) + - + 75
----
-118

skipif mysql # not compatible
query I rowsort label-5136
SELECT - 15 + + SUM ( ALL - 8 ) + + - COALESCE ( + 5, - + MAX ( DISTINCT - 41 ) * - - 66 ) * NULLIF ( + 4, - 12 ) + - + 75
----
-118

query I rowsort
SELECT + 43 col0
----
43

query I rowsort
SELECT ALL - NULLIF ( + 84, - 21 * + - 25 ) * + + 34
----
-2856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5139
SELECT - SUM( ALL - CAST( + 79 AS SIGNED ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-5139
SELECT - SUM ( ALL - CAST ( + 79 AS INTEGER ) ) AS col1
----
79

query I rowsort
SELECT ALL + 53 AS col2
----
53

query I rowsort
SELECT DISTINCT 30 + + + 60
----
90

query I rowsort
SELECT ALL 28 AS col0
----
28

query I rowsort
SELECT 58 - - 45 * - NULLIF ( + 81, + 41 ) * + 3 + ( - 57 ) col0
----
-10934

query II rowsort
SELECT ALL 78, 41 AS col2
----
78
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5145
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL - + 57 col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT - COUNT( * ) * - 63 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-5147
SELECT - COUNT ( * ) * - 63 AS col2
----
63

query I rowsort
SELECT 35 * + 27 AS col0
----
945

query I rowsort
SELECT - CASE 98 WHEN - 81 THEN NULL WHEN - 1 THEN - - 35 * + 0 WHEN - 28 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5150
SELECT - 40 DIV - 61 * 84 + 96 DIV + 88
----
1

skipif mysql # not compatible
query I rowsort label-5150
SELECT - 40 / - 61 * 84 + 96 / + 88
----
1

query I rowsort
SELECT + 14 * + 64 AS col2
----
896

query I rowsort
SELECT + - 68 AS col2
----
-68

query I rowsort
SELECT 84 + + 12 AS col2
----
96

query I rowsort
SELECT ALL - 58
----
-58

query I rowsort
SELECT DISTINCT - 30 * 11
----
-330

query I rowsort
SELECT ALL + NULLIF ( - - 89, - 91 ) AS col0
----
89

query I rowsort
SELECT + 82
----
82

query I rowsort
SELECT - 93 * - + 51 * - 22 * + - 13 * 23
----
31199454

query I rowsort
SELECT - 99 * - ( - 62 )
----
-6138

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT - COUNT( * ) + + 98 * + 92 * - CASE + 96 WHEN + AVG ( - 22 ) THEN NULL WHEN - + 79 THEN NULL ELSE - 72 * - COUNT( * ) * + - 71 END col0
----
46089791

skipif mysql # not compatible
query I rowsort label-5160
SELECT - COUNT ( * ) + + 98 * + 92 * - CASE + 96 WHEN + AVG ( - 22 ) THEN NULL WHEN - + 79 THEN NULL ELSE - 72 * - COUNT ( * ) * + - 71 END col0
----
46089791

query I rowsort
SELECT + 90 AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5162
SELECT ALL + CAST( NULLIF ( + - 24, 3 ) AS SIGNED )
----
-24

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL + CAST ( NULLIF ( + - 24, 3 ) AS INTEGER )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT - 93 - - MAX( DISTINCT - 68 ) * 3
----
-297

skipif mysql # not compatible
query I rowsort label-5163
SELECT - 93 - - MAX ( DISTINCT - 68 ) * 3
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT ALL + CASE - 80 WHEN + MIN( ALL 2 ) * - 20 + COUNT( * ) THEN 61 WHEN 72 * + 47 THEN NULL END / - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL + CASE - 80 WHEN + MIN ( ALL 2 ) * - 20 + COUNT ( * ) THEN 61 WHEN 72 * + 47 THEN NULL END / - 90 AS col2
----
NULL

query I rowsort
SELECT ALL - 41 + 56 + - 61 * + CASE NULLIF ( 92, 5 ) WHEN + 12 + + + 97 THEN - 27 WHEN - 54 THEN NULL END * 6 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT DISTINCT 68 + 63 * 4 * + - ( 97 ) + CASE + + 99 WHEN - 79 THEN + SUM( + 77 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT 68 + 63 * 4 * + - ( 97 ) + CASE + + 99 WHEN - 79 THEN + SUM ( + 77 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT ALL NULLIF ( - + ( - + 97 ), - 58 ) + + COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL NULLIF ( - + ( - + 97 ), - 58 ) + + COUNT ( * ) AS col2
----
98

query I rowsort
SELECT - 33 + - 18
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5169
SELECT ALL + 68 DIV COALESCE ( - + 18, + - 0 ) * - COUNT( * ) * - + 49
----
-147

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL + 68 / COALESCE ( - + 18, + - 0 ) * - COUNT ( * ) * - + 49
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5170
SELECT ALL COALESCE ( + + 52, CAST( COALESCE ( + 46, 97, CAST( NULL AS SIGNED ), + 88 ) AS SIGNED ) )
----
52

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL COALESCE ( + + 52, CAST ( COALESCE ( + 46, 97, CAST ( NULL AS INTEGER ), + 88 ) AS INTEGER ) )
----
52

query I rowsort
SELECT - 13 AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5172
SELECT DISTINCT - 96 + + COUNT( * ) col0, CAST( - ( 69 ) AS SIGNED ) * ( + 62 ) * + 99
----
-95
-423522

skipif mysql # not compatible
query II rowsort label-5172
SELECT DISTINCT - 96 + + COUNT ( * ) col0, CAST ( - ( 69 ) AS INTEGER ) * ( + 62 ) * + 99
----
-95
-423522

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5173
SELECT ALL + CAST( NULL AS SIGNED ) + 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL + CAST ( NULL AS INTEGER ) + 55 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT - MIN( - 26 )
----
26

skipif mysql # not compatible
query I rowsort label-5174
SELECT - MIN ( - 26 )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5175
SELECT ALL + 26 + - 17 DIV - COUNT( * ) col2
----
43

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL + 26 + - 17 / - COUNT ( * ) col2
----
43

query I rowsort
SELECT - + 21 + + 9 + 96
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT + + COUNT( * ) + + 1 * - - 14 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-5177
SELECT + + COUNT ( * ) + + 1 * - - 14 AS col1
----
15

query I rowsort
SELECT DISTINCT - ( + - COALESCE ( ( 90 ), + 25 ) ) * + - NULLIF ( + 0, + 60 / ( + 65 ) * - - 72 + + 60 / + + 39 * COALESCE ( - 10, + 53 / + 11 + 82 / + 52 ) + - 56 ) * 24 col1
----
0

query I rowsort
SELECT ALL - 45 AS col0
----
-45

query I rowsort
SELECT 85 AS col2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5181
SELECT DISTINCT + 7 + - CAST( 98 AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT + 7 + - CAST ( 98 AS INTEGER )
----
-91

query I rowsort
SELECT DISTINCT - 22 AS col1
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-5183
SELECT ALL 79 - + - 84 DIV - 12 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL 79 - + - 84 / - 12 AS col1
----
72

query I rowsort
SELECT ALL 83
----
83

query I rowsort
SELECT DISTINCT + 40
----
40

query I rowsort
SELECT - - 83 AS col2
----
83

query I rowsort
SELECT + 63 + - 97 + + 71
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT - CASE + + 86 WHEN COUNT( * ) * - NULLIF ( + 30, - 70 / - 56 + + 47 ) * 25 THEN CASE 44 WHEN - 5 THEN 99 ELSE NULL END + 73 + + 80 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT - CASE + + 86 WHEN COUNT ( * ) * - NULLIF ( + 30, - 70 / - 56 + + 47 ) * 25 THEN CASE 44 WHEN - 5 THEN 99 ELSE NULL END + 73 + + 80 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT + SUM( COALESCE ( - 50, 86 ) )
----
-50

skipif mysql # not compatible
query I rowsort label-5189
SELECT + SUM ( COALESCE ( - 50, 86 ) )
----
-50

query I rowsort
SELECT - - 4 AS col1
----
4

query I rowsort
SELECT + ( 22 )
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-5192
SELECT + COUNT( * ) + + 92 AS col0, 40
----
93
40

skipif mysql # not compatible
query II rowsort label-5192
SELECT + COUNT ( * ) + + 92 AS col0, 40
----
93
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 20 + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 20 + 20
----
NULL

query I rowsort
SELECT - - 83 AS col0
----
83

query I rowsort
SELECT ALL + - 21
----
-21

query I rowsort
SELECT DISTINCT + + NULLIF ( - 31, - 26 ) AS col1
----
-31

query I rowsort
SELECT ALL + - 4 AS col2
----
-4

query I rowsort
SELECT ALL + 32
----
32

query I rowsort
SELECT - 30 AS col0
----
-30

query I rowsort
SELECT DISTINCT + 33 AS col1
----
33

query I rowsort
SELECT + 78
----
78

query I rowsort
SELECT - 71 * 48 + + 69 AS col2
----
-3339

query I rowsort
SELECT ALL + 49 AS col1
----
49

query I rowsort
SELECT ( + + 60 ) AS col2
----
60

query I rowsort
SELECT - 76 * 88
----
-6688

query I rowsort
SELECT + ( + + ( + 21 ) ) AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5207
SELECT + CAST( NULL AS SIGNED ) - + - 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5207
SELECT + CAST ( NULL AS INTEGER ) - + - 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT ALL + COUNT( * ) * - + 14 col0
----
-14

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL + COUNT ( * ) * - + 14 col0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-5209
SELECT + 63 DIV - 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5209
SELECT + 63 / - 72 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT ALL NULLIF ( - ( - 28 ), + COUNT( * ) * + 7 - + 7 * + + 71 * + - 63 ) * MIN( 33 ) + - 42 - - - COUNT( * ) AS col2
----
881

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL NULLIF ( - ( - 28 ), + COUNT ( * ) * + 7 - + 7 * + + 71 * + - 63 ) * MIN ( 33 ) + - 42 - - - COUNT ( * ) AS col2
----
881

query I rowsort
SELECT ALL - 81 * NULLIF ( CASE 69 WHEN - 39 THEN + ( + + 70 ) WHEN - 90 * - 99 THEN NULL ELSE 89 END, - + 87 )
----
-7209

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT ALL 26 * - - ( + + 40 ) + + + COUNT( * ) AS col0
----
1041

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL 26 * - - ( + + 40 ) + + + COUNT ( * ) AS col0
----
1041

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT DISTINCT 95 * AVG ( ALL 54 ) + 92 + - - 54 / - CASE + 76 WHEN 85 * + COUNT( * ) THEN - 62 END + + MIN( DISTINCT - - 48 ) + + - ( - 75 ) + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT 95 * AVG ( ALL 54 ) + 92 + - - 54 / - CASE + 76 WHEN 85 * + COUNT ( * ) THEN - 62 END + + MIN ( DISTINCT - - 48 ) + + - ( - 75 ) + 89 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 51 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT ALL - 59 * 20 + + MAX( - 4 ) col0
----
-1184

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL - 59 * 20 + + MAX ( - 4 ) col0
----
-1184

query I rowsort
SELECT DISTINCT + 76 * - 10 + + - 81
----
-841

query I rowsort
SELECT ALL + ( + 83 ) * + 80 + + 19
----
6659

query I rowsort
SELECT + ( ( 91 ) ) * - - 93 * + 51 * - 92 col2
----
-39708396

query I rowsort
SELECT - 10 * 38 AS col1
----
-380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5220
SELECT + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5220
SELECT + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 82 * - - 13 + + + 22 + + + 37 * - 18
----
422

query I rowsort
SELECT 73 * + - 27 - - 42 AS col2
----
-1929

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT - SUM( - 37 ) * + 45 AS col0
----
1665

skipif mysql # not compatible
query I rowsort label-5223
SELECT - SUM ( - 37 ) * + 45 AS col0
----
1665

query I rowsort
SELECT ALL ( + + 46 )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5225
SELECT ALL CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5226
SELECT ALL + + 9 * COUNT( * ) * - 1 - - CAST( 44 AS SIGNED ) * - 82 - 55 AS col1
----
-3672

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL + + 9 * COUNT ( * ) * - 1 - - CAST ( 44 AS INTEGER ) * - 82 - 55 AS col1
----
-3672

query I rowsort
SELECT - 44 AS col1
----
-44

query II rowsort
SELECT ALL 56, 87 * ( - 21 ) col0
----
56
-1827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5229
SELECT DISTINCT + - ( + 66 ) * - 35 * + + 9 - - + 50 + - CAST( 78 AS SIGNED )
----
20762

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT + - ( + 66 ) * - 35 * + + 9 - - + 50 + - CAST ( 78 AS INTEGER )
----
20762

query I rowsort
SELECT ALL 17
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5231
SELECT DISTINCT 68 - + + 43 + + - CAST( NULL AS SIGNED ) * - + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT 68 - + + 43 + + - CAST ( NULL AS INTEGER ) * - + 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT + COUNT( + 76 )
----
1

skipif mysql # not compatible
query I rowsort label-5232
SELECT + COUNT ( + 76 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5233
SELECT - - CAST( NULL AS SIGNED ) * + 59 + + 58 AS col0, 43 AS col1
----
NULL
43

skipif mysql # not compatible
query II rowsort label-5233
SELECT - - CAST ( NULL AS INTEGER ) * + 59 + + 58 AS col0, 43 AS col1
----
NULL
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5234
SELECT + - 18 * + CAST( 16 AS SIGNED ) * - 9 AS col1
----
2592

skipif mysql # not compatible
query I rowsort label-5234
SELECT + - 18 * + CAST ( 16 AS INTEGER ) * - 9 AS col1
----
2592

query I rowsort
SELECT DISTINCT + 12 * - 11 AS col1
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT ALL - MAX( DISTINCT - 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL - MAX ( DISTINCT - 37 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT - + 48 + + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-5237
SELECT - + 48 + + COUNT ( * )
----
-47

query I rowsort
SELECT + 62 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT + + ( + 3 ) * - 59 * + MIN( - 81 ) AS col0
----
14337

skipif mysql # not compatible
query I rowsort label-5239
SELECT + + ( + 3 ) * - 59 * + MIN ( - 81 ) AS col0
----
14337

query I rowsort
SELECT ALL + 62 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT - 22 * - + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-5241
SELECT - 22 * - + COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT - COALESCE ( - 66, + + COUNT( * ) ) * 31
----
2046

skipif mysql # not compatible
query I rowsort label-5242
SELECT - COALESCE ( - 66, + + COUNT ( * ) ) * 31
----
2046

query II rowsort
SELECT - 40 + + 87 - + 21 + + + 24 * 80 AS col1, 17
----
1946
17

query I rowsort
SELECT DISTINCT - 26
----
-26

query I rowsort
SELECT ALL NULLIF ( - + 82, + 99 ) AS col2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5246
SELECT COALESCE ( + - CASE CASE 69 WHEN - SUM( 46 ) THEN + - 53 WHEN + COUNT( * ) THEN + + 50 * - COUNT( * ) / + 6 * - + 95 + - 81 + - - COUNT( * ) * - 98 END WHEN COUNT( * ) + AVG ( ALL NULLIF ( 77, + - 31 ) ) THEN + 41 WHEN - AVG ( ALL CAST( + 18 AS SIGNED ) ) * + ( + 92 * SUM( 67 ) ) THEN - 20 WHEN 61 * 96 THEN - 29 ELSE NULL END, 54 ) - COUNT( * ) col2
----
53

skipif mysql # not compatible
query I rowsort label-5246
SELECT COALESCE ( + - CASE CASE 69 WHEN - SUM ( 46 ) THEN + - 53 WHEN + COUNT ( * ) THEN + + 50 * - COUNT ( * ) / + 6 * - + 95 + - 81 + - - COUNT ( * ) * - 98 END WHEN COUNT ( * ) + AVG ( ALL NULLIF ( 77, + - 31 ) ) THEN + 41 WHEN - AVG ( ALL CAST ( + 18 AS INTEGER ) ) * + ( + 92 * SUM ( 67 ) ) THEN - 20 WHEN 61 * 96 THEN - 29 ELSE NULL END, 54 ) - COUNT ( * ) col2
----
53

query I rowsort
SELECT + 2 * 80
----
160

query I rowsort
SELECT 75 * - - 30 + + 78
----
2328

query I rowsort
SELECT DISTINCT 30
----
30

query I rowsort
SELECT ALL 6 + + + 1 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT ALL COUNT( DISTINCT + 0 ) * + 56 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL COUNT ( DISTINCT + 0 ) * + 56 AS col2
----
56

query I rowsort
SELECT DISTINCT - 52
----
-52

query II rowsort
SELECT ALL - 65 AS col2, 30
----
-65
30

query II rowsort
SELECT + 35, + 33 * 17 AS col2
----
35
561

query I rowsort
SELECT ALL - 40 + - 72 AS col1
----
-112

query I rowsort
SELECT ALL + 86 + - ( - 41 ) AS col0
----
127

query I rowsort
SELECT 69 AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5258
SELECT ALL CAST( + - AVG ( ALL - 65 ) AS SIGNED ) + 6 * 6 * - 44, 83 DIV - 82 * 1 col1, + 29 * - 91 * + + 94 AS col2
----
-1519
-1
-248066

skipif mysql # not compatible
query III rowsort label-5258
SELECT ALL CAST ( + - AVG ( ALL - 65 ) AS INTEGER ) + 6 * 6 * - 44, 83 / - 82 * 1 col1, + 29 * - 91 * + + 94 AS col2
----
-1519
-1
-248066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5259
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + ( + NULLIF ( + COUNT( * ), 85 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5259
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + ( + NULLIF ( + COUNT ( * ), 85 ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5260
SELECT CAST( NULL AS DECIMAL ) * - ( + 36 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT CAST ( NULL AS REAL ) * - ( + 36 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5261
SELECT 35 DIV + COUNT( * ) * - ( - COUNT( * ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5261
SELECT 35 / + COUNT ( * ) * - ( - COUNT ( * ) ) AS col1
----
35

query I rowsort
SELECT 63 AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5263
SELECT COUNT( * ) + 30 * MAX( CAST( - 97 AS SIGNED ) ) * - 60 + - 39 + - 63
----
174499

skipif mysql # not compatible
query I rowsort label-5263
SELECT COUNT ( * ) + 30 * MAX ( CAST ( - 97 AS INTEGER ) ) * - 60 + - 39 + - 63
----
174499

query II rowsort
SELECT 19 * + - 5 AS col2, 87 col1
----
-95
87

onlyif mysql # aggregate syntax: 
query II rowsort label-5265
SELECT 6, + ( ( - 4 ) ) + + NULLIF ( - - 39, SUM( - - 44 ) ) AS col0
----
6
35

skipif mysql # not compatible
query II rowsort label-5265
SELECT 6, + ( ( - 4 ) ) + + NULLIF ( - - 39, SUM ( - - 44 ) ) AS col0
----
6
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT 60 - - - COALESCE ( - COALESCE ( 86, + 97 ), + - 62 + - 16 ) + 17 * - - 92 * + COUNT( * )
----
1710

skipif mysql # not compatible
query I rowsort label-5266
SELECT 60 - - - COALESCE ( - COALESCE ( 86, + 97 ), + - 62 + - 16 ) + 17 * - - 92 * + COUNT ( * )
----
1710

onlyif mysql # DIV for integer division: 
query I rowsort label-5267
SELECT DISTINCT 86 DIV + 42
----
2

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT 86 / + 42
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5268
SELECT DISTINCT 15 DIV 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5268
SELECT DISTINCT 15 / 65 AS col0
----
0

query I rowsort
SELECT 44 + 15
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT ALL - 19 - - CASE + 47 WHEN + 79 THEN + 3 * - 23 * + COUNT( * ) + - 71 + - + 60 + - 37 WHEN - - 8 THEN NULL END + 25 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL - 19 - - CASE + 47 WHEN + 79 THEN + 3 * - 23 * + COUNT ( * ) + - 71 + - + 60 + - 37 WHEN - - 8 THEN NULL END + 25 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT 13 * - COUNT( * ) + + 2
----
-11

skipif mysql # not compatible
query I rowsort label-5271
SELECT 13 * - COUNT ( * ) + + 2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT - COUNT( 38 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5272
SELECT - COUNT ( 38 ) AS col1
----
-1

query I rowsort
SELECT ALL - + 78
----
-78

query I rowsort
SELECT + 17 + - 90
----
-73

query II rowsort
SELECT ALL + 77 AS col1, 28 AS col1
----
77
28

query I rowsort
SELECT - + 20 AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5277
SELECT ALL + + 17 * - - 67 - COALESCE ( + + CASE 47 WHEN CAST( NULL AS SIGNED ) * + + COUNT( * ) * + + 93 * - - 14 / 59 / - - 96 + 71 THEN + - 90 ELSE NULL END, - + 6 )
----
1145

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL + + 17 * - - 67 - COALESCE ( + + CASE 47 WHEN CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * + + 93 * - - 14 / 59 / - - 96 + 71 THEN + - 90 ELSE NULL END, - + 6 )
----
1145

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT DISTINCT COALESCE ( + + 55, + COUNT( * ) * 25 * - 39 * - 85, COUNT( * ) ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT COALESCE ( + + 55, + COUNT ( * ) * 25 * - 39 * - 85, COUNT ( * ) ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5279
SELECT DISTINCT - 84, + ( - COUNT( * ) ) - + 86 AS col0
----
-84
-87

skipif mysql # not compatible
query II rowsort label-5279
SELECT DISTINCT - 84, + ( - COUNT ( * ) ) - + 86 AS col0
----
-84
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT - ( - COUNT( * ) ) + - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5280
SELECT - ( - COUNT ( * ) ) + - - COUNT ( * )
----
2

query I rowsort
SELECT ALL 96
----
96

query II rowsort
SELECT - 8 AS col1, + 86
----
-8
86

query I rowsort
SELECT ALL 19
----
19

query II rowsort
SELECT DISTINCT 36, - 3 col1
----
36
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT - MAX( - + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-5285
SELECT - MAX ( - + 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT - ( - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5286
SELECT - ( - COUNT ( * ) ) AS col0
----
1

query II rowsort
SELECT - 42, 89 * + 40 + - + COALESCE ( 73, 59 ) AS col2
----
-42
3487

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5288
SELECT 0 DIV + COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-5288
SELECT 0 / + COUNT ( * ) col2
----
0

query I rowsort
SELECT 43 * - 62 AS col1
----
-2666

query I rowsort
SELECT DISTINCT - + 0 + + + 99 + + 31 + 22 * - - 41 AS col1
----
1032

query I rowsort
SELECT - + 46
----
-46

query I rowsort
SELECT 89 * + 22 AS col1
----
1958

query I rowsort
SELECT ALL - - 50 + + 91 + + 54
----
195

query I rowsort
SELECT 92 - - 91 + NULLIF ( + 94, + - 41 ) + - 33 + + ( 19 ) + + 60 AS col2
----
323

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5295
SELECT ALL - NULLIF ( - 16, + ( - 18 ) ) + - CAST( NULL AS SIGNED ) + - - 38 * + 53 + 99 * - SUM( ALL + - 75 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL - NULLIF ( - 16, + ( - 18 ) ) + - CAST ( NULL AS INTEGER ) + - - 38 * + 53 + 99 * - SUM ( ALL + - 75 ) AS col0
----
NULL

query I rowsort
SELECT 91 + + 74 AS col2
----
165

query I rowsort
SELECT 25 AS col1
----
25

query I rowsort
SELECT 60 AS col0
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-5299
SELECT ALL SUM( DISTINCT 61 ) AS col0, 55
----
61
55

skipif mysql # not compatible
query II rowsort label-5299
SELECT ALL SUM ( DISTINCT 61 ) AS col0, 55
----
61
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT 0 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5300
SELECT 0 * - COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5301
SELECT ALL + 8 + - 97 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL + 8 + - 97 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT ( + 40 ) + + 28
----
68

query I rowsort
SELECT + 88
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5304
SELECT ALL - CAST( 85 AS SIGNED )
----
-85

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL - CAST ( 85 AS INTEGER )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5305
SELECT MIN( + CAST( - 83 AS SIGNED ) )
----
-83

skipif mysql # not compatible
query I rowsort label-5305
SELECT MIN ( + CAST ( - 83 AS INTEGER ) )
----
-83

query I rowsort
SELECT + 44
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT ALL - 9 + + COUNT( * ) col2
----
-8

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL - 9 + + COUNT ( * ) col2
----
-8

query I rowsort
SELECT + 98
----
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5309
SELECT - CAST( NULL AS DECIMAL ) * + - 69 * - 79 + + 25 * + + ( + - 69 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5309
SELECT - CAST ( NULL AS REAL ) * + - 69 * - 79 + + 25 * + + ( + - 69 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 10 * - 34 * - 97 col0
----
32980

query I rowsort
SELECT ALL - 90 AS col1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5312
SELECT + 68 * + + ( + NULLIF ( 85, + + 85 + + + 37 ) ) + - - NULLIF ( + COUNT( * ), 94 / - 83 - - CAST( NULL AS SIGNED ) ) + - - 98 + 30
----
5909

skipif mysql # not compatible
query I rowsort label-5312
SELECT + 68 * + + ( + NULLIF ( 85, + + 85 + + + 37 ) ) + - - NULLIF ( + COUNT ( * ), 94 / - 83 - - CAST ( NULL AS INTEGER ) ) + - - 98 + 30
----
5909

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5313
SELECT ALL - COUNT( * ) DIV - MAX( DISTINCT - 26 )
----
0

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL - COUNT ( * ) / - MAX ( DISTINCT - 26 )
----
0

query I rowsort
SELECT ALL 62 - - 39
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT DISTINCT - NULLIF ( + 45, + - 69 ) * - 3 + + MIN( DISTINCT + 0 ) AS col0
----
135

skipif mysql # not compatible
query I rowsort label-5315
SELECT DISTINCT - NULLIF ( + 45, + - 69 ) * - 3 + + MIN ( DISTINCT + 0 ) AS col0
----
135

query I rowsort
SELECT ALL - 18 col2
----
-18

query I rowsort
SELECT ALL 9 * + 43 * + 17
----
6579

query I rowsort
SELECT DISTINCT - + 67
----
-67

query I rowsort
SELECT ALL - 76 col0
----
-76

query I rowsort
SELECT ALL - + 89
----
-89

query I rowsort
SELECT - 59 * 61
----
-3599

query II rowsort
SELECT 79 * 7 AS col2, + 93
----
553
93

query I rowsort
SELECT + 69 * - 60 - + 56 AS col2
----
-4196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5324
SELECT NULLIF ( 87, ( + 58 ) ) DIV - MAX( - ( + 40 ) )
----
2

skipif mysql # not compatible
query I rowsort label-5324
SELECT NULLIF ( 87, ( + 58 ) ) / - MAX ( - ( + 40 ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT + NULLIF ( + 66, - COUNT( * ) + 72 + + - 32 + - + 81 / + + 37 * 14 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-5325
SELECT + NULLIF ( + 66, - COUNT ( * ) + 72 + + - 32 + - + 81 / + + 37 * 14 ) AS col2
----
66

query I rowsort
SELECT + - 56 AS col2
----
-56

query II rowsort
SELECT ALL 26 * - 40 * - - 67 AS col2, 86 AS col1
----
-69680
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT COUNT( DISTINCT + - 47 ) * 4 * 28 * 57 * CASE + 74 WHEN 83 / + 31 THEN - - COALESCE ( + + 44, - COALESCE ( + 81, + MIN( - 56 ) / COUNT( * ) * + 68 * - + 50 ) + + 29 ) / - + 80 ELSE NULL END * - COUNT( DISTINCT - 25 ) / - 85 + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5328
SELECT COUNT ( DISTINCT + - 47 ) * 4 * 28 * 57 * CASE + 74 WHEN 83 / + 31 THEN - - COALESCE ( + + 44, - COALESCE ( + 81, + MIN ( - 56 ) / COUNT ( * ) * + 68 * - + 50 ) + + 29 ) / - + 80 ELSE NULL END * - COUNT ( DISTINCT - 25 ) / - 85 + + 43
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5329
SELECT ALL + 52 DIV + NULLIF ( + 94, + + MIN( 39 ) ) AS col0, - 95 - + + 97 AS col2
----
0
-192

skipif mysql # not compatible
query II rowsort label-5329
SELECT ALL + 52 / + NULLIF ( + 94, + + MIN ( 39 ) ) AS col0, - 95 - + + 97 AS col2
----
0
-192

query I rowsort
SELECT ALL + 46 * - - 70 - 29 AS col2
----
3191

query I rowsort
SELECT + 97 AS col2
----
97

query I rowsort
SELECT - 47
----
-47

query I rowsort
SELECT ALL 59 col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5334
SELECT DISTINCT + 44 + + 20 AS col0, CASE - CAST( NULL AS SIGNED ) WHEN - + 66 + ( + + MIN( DISTINCT - ( + - 78 ) ) ) THEN - + 39 + 40 * - COUNT( 93 ) / - 74 WHEN 30 * - 94 * - COUNT( * ) / + SUM( ALL + ( + 31 ) ) - COALESCE ( + - CAST( NULL AS SIGNED ), 19 ) THEN NULL WHEN MIN( - 65 ) + + 82 THEN 99 END
----
64
NULL

skipif mysql # not compatible
query II rowsort label-5334
SELECT DISTINCT + 44 + + 20 AS col0, CASE - CAST ( NULL AS INTEGER ) WHEN - + 66 + ( + + MIN ( DISTINCT - ( + - 78 ) ) ) THEN - + 39 + 40 * - COUNT ( 93 ) / - 74 WHEN 30 * - 94 * - COUNT ( * ) / + SUM ( ALL + ( + 31 ) ) - COALESCE ( + - CAST ( NULL AS INTEGER ), 19 ) THEN NULL WHEN MIN ( - 65 ) + + 82 THEN 99 END
----
64
NULL

query I rowsort
SELECT - 20 col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT ALL COUNT( * ) + + 13 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL COUNT ( * ) + + 13 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT + 98 + - MAX( - 73 ) AS col1
----
171

skipif mysql # not compatible
query I rowsort label-5337
SELECT + 98 + - MAX ( - 73 ) AS col1
----
171

query I rowsort
SELECT + + 56 + - - 29
----
85

query I rowsort
SELECT - NULLIF ( 38, + ( - - 0 ) )
----
-38

query II rowsort
SELECT 7 AS col1, 13
----
7
13

query I rowsort
SELECT ALL 78
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5342
SELECT ALL - 22 + - 99 + 83 + - + 31 DIV + 44
----
-38

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL - 22 + - 99 + 83 + - + 31 / + 44
----
-38

query I rowsort
SELECT - 17 * - 28 * + 52 AS col0
----
24752

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT DISTINCT MIN( DISTINCT - 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT MIN ( DISTINCT - 95 ) AS col2
----
-95

query I rowsort
SELECT DISTINCT - 41 + + 31 AS col0
----
-10

query I rowsort
SELECT - 89
----
-89

query II rowsort
SELECT DISTINCT + 77 - - - 69 - + 89, - 93 AS col1
----
-81
-93

query I rowsort
SELECT - 81 * - 58 AS col1
----
4698

query II rowsort
SELECT 37, 25 AS col1
----
37
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5350
SELECT DISTINCT - 5 * - ( + ( CASE - 70 WHEN - 28 THEN + - 58 ELSE - COUNT( * ) * - 61 * 42 + + + CASE - SUM( ALL - 76 ) WHEN + ( - + COUNT( * ) ) + CAST( NULL AS DECIMAL ) + - 17 / - + 19 THEN NULL ELSE - SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) + CAST( NULL AS SIGNED ) END + 13 + - 12 * - 17 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT - 5 * - ( + ( CASE - 70 WHEN - 28 THEN + - 58 ELSE - COUNT ( * ) * - 61 * 42 + + + CASE - SUM ( ALL - 76 ) WHEN + ( - + COUNT ( * ) ) + CAST ( NULL AS REAL ) + - 17 / - + 19 THEN NULL ELSE - SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER ) END + 13 + - 12 * - 17 END ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5351
SELECT ALL + ( + 95 ) * 27 + + 33 - + CAST( NULL AS DECIMAL ) + + 8 * - 65 * 19 + + - 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL + ( + 95 ) * 27 + + 33 - + CAST ( NULL AS REAL ) + + 8 * - 65 * 19 + + - 90 AS col0
----
NULL

query I rowsort
SELECT - 33 + - 39
----
-72

query I rowsort
SELECT ALL + 23 * - 51
----
-1173

query I rowsort
SELECT - 51 * + 68
----
-3468

onlyif mysql # DIV for integer division: 
query II rowsort label-5355
SELECT DISTINCT + COALESCE ( - 33, 71 ) col0, 55 DIV 24 AS col1
----
-33
2

skipif mysql # not compatible
query II rowsort label-5355
SELECT DISTINCT + COALESCE ( - 33, 71 ) col0, 55 / 24 AS col1
----
-33
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT ALL - 51 * COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL - 51 * COUNT ( * )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5357
SELECT ALL ( + - COUNT( * ) ) * + - ( 12 ) * 14 - - CASE + 27 WHEN + + 78 THEN 69 + + NULLIF ( + 30, - + 73 ) WHEN - + CASE - 4 WHEN 94 THEN - 77 * + + NULLIF ( - 88, - 54 ) + + - COALESCE ( + 72, 15 + + COALESCE ( + ( COUNT( * ) ), CAST( 7 AS SIGNED ) * + 10 ), - CASE + CAST( 13 AS SIGNED ) WHEN 4 * CAST( + 77 AS SIGNED ) THEN - 92 / COUNT( 41 ) + 23 WHEN 2 + COUNT( ALL - 67 ) * CAST( 78 * 74 + 28 * COUNT( * ) AS SIGNED ) THEN NULL END ) + 26 WHEN - 64 THEN + CAST( 1 AS SIGNED ) WHEN + 51 * - 17 THEN + COUNT( * ) * 93 + + COUNT( * ) * - 80 ELSE NULL END THEN CASE WHEN ( NULL ) IS NULL THEN 18 WHEN ( NULL ) IS NULL THEN NULL END ELSE NULL END + 6 / 14 - - COALESCE ( 54, COUNT( * ) * + 36 ) * - 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL ( + - COUNT ( * ) ) * + - ( 12 ) * 14 - - CASE + 27 WHEN + + 78 THEN 69 + + NULLIF ( + 30, - + 73 ) WHEN - + CASE - 4 WHEN 94 THEN - 77 * + + NULLIF ( - 88, - 54 ) + + - COALESCE ( + 72, 15 + + COALESCE ( + ( COUNT ( * ) ), CAST ( 7 AS INTEGER ) * + 10 ), - CASE + CAST ( 13 AS INTEGER ) WHEN 4 * CAST ( + 77 AS INTEGER ) THEN - 92 / COUNT ( 41 ) + 23 WHEN 2 + COUNT ( ALL - 67 ) * CAST ( 78 * 74 + 28 * COUNT ( * ) AS INTEGER ) THEN NULL END ) + 26 WHEN - 64 THEN + CAST ( 1 AS INTEGER ) WHEN + 51 * - 17 THEN + COUNT ( * ) * 93 + + COUNT ( * ) * - 80 ELSE NULL END THEN CASE WHEN ( NULL ) IS NULL THEN 18 WHEN ( NULL ) IS NULL THEN NULL END ELSE NULL END + 6 / 14 - - COALESCE ( 54, COUNT ( * ) * + 36 ) * - 6 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 21 AS col2
----
21

query II rowsort
SELECT DISTINCT + 92 AS col2, + 23
----
92
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5360
SELECT - 91 * - NULLIF ( + 97, + 63 * + 4 + + 86 * - 99 + CAST( - 99 AS SIGNED ) )
----
8827

skipif mysql # not compatible
query I rowsort label-5360
SELECT - 91 * - NULLIF ( + 97, + 63 * + 4 + + 86 * - 99 + CAST ( - 99 AS INTEGER ) )
----
8827

query II rowsort
SELECT 38 AS col1, - 81 AS col1
----
38
-81

query I rowsort
SELECT + + NULLIF ( 89, + 7 ) AS col2
----
89

query I rowsort
SELECT - - 36 + - 37
----
-1

query I rowsort
SELECT + + 78
----
78

query I rowsort
SELECT DISTINCT + 22 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT + COUNT( * ) * - - ( + 83 ) + + + 46
----
129

skipif mysql # not compatible
query I rowsort label-5366
SELECT + COUNT ( * ) * - - ( + 83 ) + + + 46
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5367
SELECT ALL + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT ALL + + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL + + COUNT ( * ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT + + ( - COUNT( * ) ) * + COALESCE ( + 1, + 81, + + 20 - - 41, MAX( - 91 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5369
SELECT + + ( - COUNT ( * ) ) * + COALESCE ( + 1, + 81, + + 20 - - 41, MAX ( - 91 ) ) AS col0
----
-1

query I rowsort
SELECT ALL 58 * + ( - 6 ) + + 89 AS col1
----
-259

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5371
SELECT + 2 + COUNT( * ) * + 69 DIV + - 97 + + - 51 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-5371
SELECT + 2 + COUNT ( * ) * + 69 / + - 97 + + - 51 AS col2
----
-49

query I rowsort
SELECT + ( - 26 ) AS col2
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5373
SELECT ALL - 56 * + CAST( 69 AS SIGNED ) + - NULLIF ( + 19, + - 64 / + CASE + ( NULLIF ( + ( + 55 ), - + 91 ) ) WHEN COUNT( * ) THEN NULL WHEN + - COALESCE ( + - 97, 89 / + COUNT( * ) - + + 57 ) THEN 3 END - 68 - + 51 / + 1 ) + + 37 col1
----
-3846

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL - 56 * + CAST ( 69 AS INTEGER ) + - NULLIF ( + 19, + - 64 / + CASE + ( NULLIF ( + ( + 55 ), - + 91 ) ) WHEN COUNT ( * ) THEN NULL WHEN + - COALESCE ( + - 97, 89 / + COUNT ( * ) - + + 57 ) THEN 3 END - 68 - + 51 / + 1 ) + + 37 col1
----
-3846

query I rowsort
SELECT + 16 + - 81
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT ALL + COUNT( - + 31 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL + COUNT ( - + 31 ) AS col1
----
1

query II rowsort
SELECT - - 83 AS col2, NULLIF ( + ( - + 27 ), + 75 + + 24 )
----
83
-27

query I rowsort
SELECT - ( 84 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT DISTINCT - 63 * - ( 14 ) * MIN( - 67 ) * - 56 * - 67 + - + 65 * COUNT( * ) + + 21 AS col0
----
-221720732

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT - 63 * - ( 14 ) * MIN ( - 67 ) * - 56 * - 67 + - + 65 * COUNT ( * ) + + 21 AS col0
----
-221720732

query I rowsort
SELECT ALL - 90 + ( - 81 ) col2
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT ALL + 79 + + COUNT( * ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL + 79 + + COUNT ( * ) AS col0
----
80

query I rowsort
SELECT DISTINCT ( - 11 ) AS col1
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5382
SELECT ALL 48 + + COALESCE ( 76, - COUNT( * ) * + + 39 DIV - - 84, 73 - 81 ) - - - NULLIF ( - - 10, + 46 ) + + - 39 * COUNT( * ) DIV + + 90
----
114

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL 48 + + COALESCE ( 76, - COUNT ( * ) * + + 39 / - - 84, 73 - 81 ) - - - NULLIF ( - - 10, + 46 ) + + - 39 * COUNT ( * ) / + + 90
----
114

query I rowsort
SELECT 79 AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5384
SELECT ALL COUNT( * ) + + COUNT( * ), - COUNT( DISTINCT - - 34 ) AS col2
----
2
-1

skipif mysql # not compatible
query II rowsort label-5384
SELECT ALL COUNT ( * ) + + COUNT ( * ), - COUNT ( DISTINCT - - 34 ) AS col2
----
2
-1

query I rowsort
SELECT + 93 * - + ( 45 )
----
-4185

onlyif mysql # aggregate syntax: 
query II rowsort label-5386
SELECT ALL 99 * - - COUNT( * ) AS col0, - 69 + 9
----
99
-60

skipif mysql # not compatible
query II rowsort label-5386
SELECT ALL 99 * - - COUNT ( * ) AS col0, - 69 + 9
----
99
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5387
SELECT - NULLIF ( - + 25, + 59 * 25 * + COUNT( * ) * + 49 * - CAST( NULL AS SIGNED ) * + + 1 * - + 54 + - 36 + - 63 * 92 * - 7 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5387
SELECT - NULLIF ( - + 25, + 59 * 25 * + COUNT ( * ) * + 49 * - CAST ( NULL AS INTEGER ) * + + 1 * - + 54 + - 36 + - 63 * 92 * - 7 ) AS col1
----
25

query I rowsort
SELECT 66 AS col1
----
66

query I rowsort
SELECT - 84
----
-84

query I rowsort
SELECT ALL ( - 70 ) - 17 * + ( 32 ) * + 16 * - - 54 + - 85
----
-470171

query I rowsort
SELECT - ( + 37 )
----
-37

query I rowsort
SELECT - 63 * + 90 * + 21 AS col2
----
-119070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5393
SELECT ALL COALESCE ( + + 26, + 28 * + 41 + 98 + + 86 + 99 * + 1 * - NULLIF ( - 87, - SUM( DISTINCT + 89 ) + + AVG ( + 33 ) + - + CAST( 95 AS SIGNED ) ), 67 * + + 52 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL COALESCE ( + + 26, + 28 * + 41 + 98 + + 86 + 99 * + 1 * - NULLIF ( - 87, - SUM ( DISTINCT + 89 ) + + AVG ( + 33 ) + - + CAST ( 95 AS INTEGER ) ), 67 * + + 52 ) AS col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5394
SELECT + 75 + + 91 AS col1, CAST( NULL AS SIGNED )
----
166
NULL

skipif mysql # not compatible
query II rowsort label-5394
SELECT + 75 + + 91 AS col1, CAST ( NULL AS INTEGER )
----
166
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5395
SELECT - CAST( - 71 AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-5395
SELECT - CAST ( - 71 AS INTEGER )
----
71

query I rowsort
SELECT ALL 96 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT DISTINCT MAX( ALL - 82 ) * + 32 AS col2
----
-2624

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT MAX ( ALL - 82 ) * + 32 AS col2
----
-2624

query I rowsort
SELECT ALL ( - CASE - 51 WHEN + 34 THEN + NULLIF ( ( - 38 ), 92 ) END )
----
NULL

query I rowsort
SELECT - 27 * - + 87 AS col0
----
2349

query I rowsort
SELECT DISTINCT + 83 AS col2
----
83

query I rowsort
SELECT DISTINCT + 92 AS col1
----
92

query I rowsort
SELECT + 91 * + 93
----
8463

query I rowsort
SELECT ALL + 8 AS col0
----
8

query I rowsort
SELECT + 20 col0
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-5405
SELECT - - 1 DIV + 64 + + + ( - - 81 ) + + 32 * - 94 * + + 10 AS col1
----
-29999

skipif mysql # not compatible
query I rowsort label-5405
SELECT - - 1 / + 64 + + + ( - - 81 ) + + 32 * - 94 * + + 10 AS col1
----
-29999

query I rowsort
SELECT - 50 * - 31 AS col0
----
1550

query I rowsort
SELECT DISTINCT + 36 col0
----
36

query I rowsort
SELECT DISTINCT - 88 + - 69
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT DISTINCT - - MAX( DISTINCT + 10 ) + 50 col1
----
60

skipif mysql # not compatible
query I rowsort label-5409
SELECT DISTINCT - - MAX ( DISTINCT + 10 ) + 50 col1
----
60

query I rowsort
SELECT + 76 col1
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-5411
SELECT ALL - NULLIF ( + COUNT( * ), - - 78 + + 37 ) + ( ( 93 ) ), 94 AS col2
----
92
94

skipif mysql # not compatible
query II rowsort label-5411
SELECT ALL - NULLIF ( + COUNT ( * ), - - 78 + + 37 ) + ( ( 93 ) ), 94 AS col2
----
92
94

query I rowsort
SELECT + + 21
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5413
SELECT + CAST( + AVG ( - CAST( NULL AS SIGNED ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5413
SELECT + CAST ( + AVG ( - CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT + - ( + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5414
SELECT + - ( + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT + + 11
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5416
SELECT ALL + CASE - COUNT( * ) WHEN COUNT( * ) + - CAST( NULL AS SIGNED ) THEN 65 * + 53 + + 79 + + + 95 + + COUNT( * ) * - 76 END + COALESCE ( - 54, 18, COUNT( 73 ) ) + + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL + CASE - COUNT ( * ) WHEN COUNT ( * ) + - CAST ( NULL AS INTEGER ) THEN 65 * + 53 + + 79 + + + 95 + + COUNT ( * ) * - 76 END + COALESCE ( - 54, 18, COUNT ( 73 ) ) + + + 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT ( + MAX( ALL 80 ) )
----
80

skipif mysql # not compatible
query I rowsort label-5417
SELECT ( + MAX ( ALL 80 ) )
----
80

query I rowsort
SELECT ALL - + 10
----
-10

query I rowsort
SELECT - 83
----
-83

onlyif mysql # DIV for integer division: 
query II rowsort label-5420
SELECT DISTINCT ( 30 ), + 59 DIV + 70 AS col2
----
30
0

skipif mysql # not compatible
query II rowsort label-5420
SELECT DISTINCT ( 30 ), + 59 / + 70 AS col2
----
30
0

query I rowsort
SELECT DISTINCT - 18 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-5422
SELECT + 2 * 75 * + MAX( DISTINCT 60 ) AS col1, 9
----
9000
9

skipif mysql # not compatible
query II rowsort label-5422
SELECT + 2 * 75 * + MAX ( DISTINCT 60 ) AS col1, 9
----
9000
9

query I rowsort
SELECT DISTINCT + + 14 * + 57
----
798

query I rowsort
SELECT DISTINCT + 11 * + ( + 64 ) AS col1
----
704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5425
SELECT DISTINCT + CAST( NULL AS SIGNED ) - 61 - - + COALESCE ( - CASE - CASE - + 41 WHEN - MIN( - 39 ) * - 34 THEN + 64 + 94 END WHEN + 6 - + 38 THEN + 91 * NULLIF ( + COUNT( * ), 35 + + 81 ) + + - COUNT( * ) END, - + SUM( DISTINCT + - 68 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - 61 - - + COALESCE ( - CASE - CASE - + 41 WHEN - MIN ( - 39 ) * - 34 THEN + 64 + 94 END WHEN + 6 - + 38 THEN + 91 * NULLIF ( + COUNT ( * ), 35 + + 81 ) + + - COUNT ( * ) END, - + SUM ( DISTINCT + - 68 ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 72 col1
----
72

query I rowsort
SELECT COALESCE ( - + 36, - + 2 ) - - - 23 + + 63 * - - 72
----
4477

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5428
SELECT ALL + ( - + 65 ) * 5 DIV - CASE - + 7 WHEN 60 DIV + 16 - - 9 THEN NULL ELSE + + 4 - - ( ( + + COUNT( * ) ) ) END + + + ( + 42 )
----
107

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL + ( - + 65 ) * 5 / - CASE - + 7 WHEN 60 / + 16 - - 9 THEN NULL ELSE + + 4 - - ( ( + + COUNT ( * ) ) ) END + + + ( + 42 )
----
107

query I rowsort
SELECT 0 * + 63
----
0

query I rowsort
SELECT 3 + - + 38
----
-35

query I rowsort
SELECT ALL 31 AS col0
----
31

query I rowsort
SELECT ALL 83 col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5433
SELECT CAST( - 37 AS SIGNED ) * + - COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-5433
SELECT CAST ( - 37 AS INTEGER ) * + - COUNT ( * ) AS col2
----
37

query I rowsort
SELECT 28 + + 2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5435
SELECT DISTINCT 91 AS col2, + AVG ( 75 ) - 2 / + + COALESCE ( 72, - - 47 + + CAST( NULL AS DECIMAL ) * 24 ) * CASE - + COUNT( * ) WHEN + 6 THEN NULL ELSE + - ( - NULLIF ( + COUNT( * ), + - 72 ) ) END * + CAST( NULL AS SIGNED ) * + 57 + 15
----
91
NULL

skipif mysql # not compatible
query II rowsort label-5435
SELECT DISTINCT 91 AS col2, + AVG ( 75 ) - 2 / + + COALESCE ( 72, - - 47 + + CAST ( NULL AS REAL ) * 24 ) * CASE - + COUNT ( * ) WHEN + 6 THEN NULL ELSE + - ( - NULLIF ( + COUNT ( * ), + - 72 ) ) END * + CAST ( NULL AS INTEGER ) * + 57 + 15
----
91
NULL

query I rowsort
SELECT ALL 42 AS col1
----
42

query I rowsort
SELECT ALL 22 * - + 47 AS col0
----
-1034

onlyif mysql # DIV for integer division: 
query I rowsort label-5438
SELECT ( 99 ) DIV - + 2
----
-49

skipif mysql # not compatible
query I rowsort label-5438
SELECT ( 99 ) / - + 2
----
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5439
SELECT ALL CAST( NULL AS DECIMAL ) / 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL CAST ( NULL AS REAL ) / 8 AS col1
----
NULL

query I rowsort
SELECT ALL 39 * + 64
----
2496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5441
SELECT DISTINCT 51 DIV + ( COUNT( * ) )
----
51

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT 51 / + ( COUNT ( * ) )
----
51

query I rowsort
SELECT ALL 15 * + 53 * - - ( + - 99 )
----
-78705

query I rowsort
SELECT 83 AS col1
----
83

query I rowsort
SELECT DISTINCT 54 AS col0
----
54

query I rowsort
SELECT ALL 6 col2
----
6

query I rowsort
SELECT DISTINCT 45 * 59
----
2655

query II rowsort
SELECT 64 AS col1, + 34
----
64
34

query I rowsort
SELECT ALL 79 + 53 AS col1
----
132

query I rowsort
SELECT + 16 AS col2
----
16

query I rowsort
SELECT DISTINCT - 5 AS col2
----
-5

query I rowsort
SELECT ALL - - 78 AS col2
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-5452
SELECT ALL - 39 + + COUNT( * ) + + 4, + 32 AS col1
----
-34
32

skipif mysql # not compatible
query II rowsort label-5452
SELECT ALL - 39 + + COUNT ( * ) + + 4, + 32 AS col1
----
-34
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT ALL + 64 + + ( - SUM( 62 ) )
----
2

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL + 64 + + ( - SUM ( 62 ) )
----
2

query I rowsort
SELECT ALL - 59 + - - 39 * + - 18 AS col1
----
-761

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5455
SELECT + 71 - - ( - 23 ) * + CAST( + 35 AS SIGNED ), 73 AS col2
----
-734
73

skipif mysql # not compatible
query II rowsort label-5455
SELECT + 71 - - ( - 23 ) * + CAST ( + 35 AS INTEGER ), 73 AS col2
----
-734
73

query II rowsort
SELECT + + 56 AS col1, - 70 AS col0
----
56
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT + + ( 8 ) * + 1 - + 55 + CASE - 12 WHEN 94 * + - 28 THEN + - 98 WHEN + 76 THEN NULL END + - + 72 - - 88 * SUM( - 42 ) * + 32 / + - 12 + 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5457
SELECT + + ( 8 ) * + 1 - + 55 + CASE - 12 WHEN 94 * + - 28 THEN + - 98 WHEN + 76 THEN NULL END + - + 72 - - 88 * SUM ( - 42 ) * + 32 / + - 12 + 71 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT ALL - + CASE - 38 WHEN - + 7 * 54 THEN 18 WHEN + - COALESCE ( 12, - COUNT( ALL - 14 ) * - COUNT( * ) - - 50 ) THEN + 57 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL - + CASE - 38 WHEN - + 7 * 54 THEN 18 WHEN + - COALESCE ( 12, - COUNT ( ALL - 14 ) * - COUNT ( * ) - - 50 ) THEN + 57 END AS col1
----
NULL

query II rowsort
SELECT + - 33 AS col2, ( - - 99 ) + + 67
----
-33
166

onlyif mysql # aggregate syntax: 
query II rowsort label-5460
SELECT COUNT( * ) AS col0, 61 + + 47
----
1
108

skipif mysql # not compatible
query II rowsort label-5460
SELECT COUNT ( * ) AS col0, 61 + + 47
----
1
108

query I rowsort
SELECT ALL + - 91 + - - 53
----
-38

query I rowsort
SELECT - ( - 21 ) + - 98 AS col1
----
-77

query II rowsort
SELECT ALL - - 8 AS col1, - 42 * - 29
----
8
1218

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5464
SELECT ALL - CASE ( - - 54 ) WHEN + CAST( NULL AS DECIMAL ) DIV 93 * AVG ( ALL + 79 ) THEN NULL WHEN 79 THEN + COUNT( * ) DIV + COUNT( * ) END AS col2, ( - 31 ) DIV - 75 - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5464
SELECT ALL - CASE ( - - 54 ) WHEN + CAST ( NULL AS REAL ) / 93 * AVG ( ALL + 79 ) THEN NULL WHEN 79 THEN + COUNT ( * ) / + COUNT ( * ) END AS col2, ( - 31 ) / - 75 - COUNT ( * ) AS col0
----
NULL
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5465
SELECT + 0 + + 7 DIV - 42
----
0

skipif mysql # not compatible
query I rowsort label-5465
SELECT + 0 + + 7 / - 42
----
0

query I rowsort
SELECT + + 38
----
38

query I rowsort
SELECT 82 + + 27 AS col2
----
109

query I rowsort
SELECT - 45 AS col2
----
-45

query II rowsort
SELECT 4 AS col0, - 37
----
4
-37

query I rowsort
SELECT 9 * + 86 AS col1
----
774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5471
SELECT COUNT( * ) * + CAST( + 72 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-5471
SELECT COUNT ( * ) * + CAST ( + 72 AS INTEGER )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT DISTINCT COUNT( ALL - + 95 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5472
SELECT DISTINCT COUNT ( ALL - + 95 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 9 - + 60 * + 86 AS col2
----
-5151

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT 35 * + - COUNT( * ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-5474
SELECT 35 * + - COUNT ( * ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-5475
SELECT ALL COUNT( * ) AS col1, 36 * - COALESCE ( - 51, 98 ) * + 77 * + - COUNT( * ) AS col0
----
1
-141372

skipif mysql # not compatible
query II rowsort label-5475
SELECT ALL COUNT ( * ) AS col1, 36 * - COALESCE ( - 51, 98 ) * + 77 * + - COUNT ( * ) AS col0
----
1
-141372

query I rowsort
SELECT DISTINCT 41
----
41

query I rowsort
SELECT ALL 98 * + ( - 18 )
----
-1764

onlyif mysql # aggregate syntax: 
query II rowsort label-5478
SELECT 47 AS col0, COUNT( * )
----
47
1

skipif mysql # not compatible
query II rowsort label-5478
SELECT 47 AS col0, COUNT ( * )
----
47
1

query I rowsort
SELECT ALL + 92 * - - ( + - 28 ) AS col2
----
-2576

query II rowsort
SELECT 55, - 5 + + + 90 AS col2
----
55
85

query II rowsort
SELECT - 50, + 32 + + - ( - NULLIF ( - 28, - 60 ) ) AS col1
----
-50
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5482
SELECT COUNT( ALL - + 19 ) + + - ( + 43 ) / - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), - 20 + 59 * + 82 AS col1
----
NULL
4818

skipif mysql # not compatible
query II rowsort label-5482
SELECT COUNT ( ALL - + 19 ) + + - ( + 43 ) / - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), - 20 + 59 * + 82 AS col1
----
NULL
4818

query I rowsort
SELECT DISTINCT + 20 + - + 81
----
-61

query I rowsort
SELECT ALL 38 + - + 15
----
23

query I rowsort
SELECT 53 - 57 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT - COUNT( ALL 56 )
----
-1

skipif mysql # not compatible
query I rowsort label-5486
SELECT - COUNT ( ALL 56 )
----
-1

query I rowsort
SELECT 63 - + 54 AS col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5488
SELECT ALL - 57 + - ( - CAST( + 29 AS SIGNED ) ) + - 0 * - 51 - + + 65 DIV - ( - MAX( + 69 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL - 57 + - ( - CAST ( + 29 AS INTEGER ) ) + - 0 * - 51 - + + 65 / - ( - MAX ( + 69 ) )
----
-28

query I rowsort
SELECT ALL + 2 + - 86 AS col2
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5490
SELECT ALL + - NULLIF ( - - COUNT( * ), + CAST( + - 17 AS SIGNED ) + - - COUNT( * ) ) * + 20 + + 16 - + 80 + ( + MIN( 74 ) ) + 92 + COUNT( * ) - - 56 * + + 33 * 59 * - CAST( - + 44 AS SIGNED ) AS col1
----
4797491

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL + - NULLIF ( - - COUNT ( * ), + CAST ( + - 17 AS INTEGER ) + - - COUNT ( * ) ) * + 20 + + 16 - + 80 + ( + MIN ( 74 ) ) + 92 + COUNT ( * ) - - 56 * + + 33 * 59 * - CAST ( - + 44 AS INTEGER ) AS col1
----
4797491

query I rowsort
SELECT + + 24 * - - 31 AS col1
----
744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5492
SELECT ALL + 18 / + - 41 + - 63 * + CAST( NULL AS SIGNED ) + + 94 + + - 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL + 18 / + - 41 + - 63 * + CAST ( NULL AS INTEGER ) + + 94 + + - 28 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5493
SELECT COUNT( * ) DIV + CAST( + 91 AS SIGNED ) + + ( NULLIF ( - - 42, - 25 + - - 91 + + 16 DIV + - 66 ) )
----
42

skipif mysql # not compatible
query I rowsort label-5493
SELECT COUNT ( * ) / + CAST ( + 91 AS INTEGER ) + + ( NULLIF ( - - 42, - 25 + - - 91 + + 16 / + - 66 ) )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT DISTINCT + NULLIF ( 90, COUNT( * ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT + NULLIF ( 90, COUNT ( * ) ) AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5495
SELECT ALL 39 * + + 0 + + + CAST( - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL 39 * + + 0 + + + CAST ( - COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5496
SELECT + - 48 AS col0, - COUNT( * ) col2
----
-48
-1

skipif mysql # not compatible
query II rowsort label-5496
SELECT + - 48 AS col0, - COUNT ( * ) col2
----
-48
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT ALL + - MIN( DISTINCT 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL + - MIN ( DISTINCT 55 )
----
-55

query I rowsort
SELECT + + 35
----
35

query I rowsort
SELECT + 35 * - 56 + 22 + 86 + + 98 + 13
----
-1741

query I rowsort
SELECT DISTINCT + + 74
----
74

query I rowsort
SELECT - ( 90 )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5502
SELECT ALL + + COUNT( * ) * + ( - 24 ) - + CAST( COUNT( * ) AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL + + COUNT ( * ) * + ( - 24 ) - + CAST ( COUNT ( * ) AS INTEGER )
----
-25

query I rowsort
SELECT DISTINCT + 99 AS col0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5504
SELECT + 84 DIV - MAX( - COALESCE ( + - 46, - + 42, 99 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5504
SELECT + 84 / - MAX ( - COALESCE ( + - 46, - + 42, 99 ) )
----
-1

query I rowsort
SELECT ALL + 48 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT ALL + + MIN( ALL 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL + + MIN ( ALL 25 ) AS col1
----
25

query I rowsort
SELECT + 68
----
68

query I rowsort
SELECT + + 50 AS col0
----
50

query I rowsort
SELECT ALL + 9 col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT + 42 * + COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-5510
SELECT + 42 * + COUNT ( * ) AS col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5511
SELECT ALL 81 DIV + 81
----
1

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL 81 / + 81
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT ALL + MIN( - 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL + MIN ( - 8 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT ALL + SUM( + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL + SUM ( + 95 )
----
95

query I rowsort
SELECT DISTINCT + 61 AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5515
SELECT - 52 DIV + CAST( 84 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5515
SELECT - 52 / + CAST ( 84 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5516
SELECT - 87 DIV 14 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-5516
SELECT - 87 / 14 AS col0
----
-6

query I rowsort
SELECT ALL NULLIF ( 33, + ( + + 87 ) ) AS col1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5518
SELECT - 4 - + + 94 col1, + CAST( NULL AS SIGNED )
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-5518
SELECT - 4 - + + 94 col1, + CAST ( NULL AS INTEGER )
----
-98
NULL

query I rowsort
SELECT + 75 + 99
----
174

query I rowsort
SELECT + 16 * + 10 - - + 4 AS col0
----
164

query I rowsort
SELECT 95 AS col1
----
95

query I rowsort
SELECT - ( - 14 ) * 19 col1
----
266

onlyif mysql # aggregate syntax: 
query II rowsort label-5523
SELECT DISTINCT + 88 + 38 * - MIN( - - 96 ) + - CASE 61 WHEN - 62 THEN NULL WHEN - - COUNT( * ) THEN + 50 + + 67 + - COUNT( * ) + - 78 ELSE NULL END AS col2, 23 + + 49
----
NULL
72

skipif mysql # not compatible
query II rowsort label-5523
SELECT DISTINCT + 88 + 38 * - MIN ( - - 96 ) + - CASE 61 WHEN - 62 THEN NULL WHEN - - COUNT ( * ) THEN + 50 + + 67 + - COUNT ( * ) + - 78 ELSE NULL END AS col2, 23 + + 49
----
NULL
72

query I rowsort
SELECT ALL - 33 + - - 56 * - - 86 AS col1
----
4783

query I rowsort
SELECT - 33 * 84
----
-2772

query II rowsort
SELECT ALL - 70 + - - 85 AS col1, - 53 * - 71
----
15
3763

query I rowsort
SELECT ALL ( - 17 ) AS col0
----
-17

query I rowsort
SELECT - 62 * + 38 AS col2
----
-2356

query I rowsort
SELECT DISTINCT - ( + 42 ) + + 66 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT ALL ( COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL ( COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT DISTINCT - COUNT( * ) * - + 20
----
20

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT - COUNT ( * ) * - + 20
----
20

query I rowsort
SELECT - 97 + - - 88
----
-9

query II rowsort
SELECT ALL 26 + 80, 40 * - 11 AS col0
----
106
-440

query I rowsort
SELECT - - 93
----
93

query I rowsort
SELECT - 77
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5536
SELECT DISTINCT CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5537
SELECT ALL - 56 + - CAST( NULL AS SIGNED ), - 92 + - 70 AS col2
----
NULL
-162

skipif mysql # not compatible
query II rowsort label-5537
SELECT ALL - 56 + - CAST ( NULL AS INTEGER ), - 92 + - 70 AS col2
----
NULL
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5538
SELECT ( + COALESCE ( COUNT( * ), - MAX( + CAST( 35 AS SIGNED ) ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5538
SELECT ( + COALESCE ( COUNT ( * ), - MAX ( + CAST ( 35 AS INTEGER ) ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5539
SELECT + 3 * + 57 + + ( - 94 ) DIV + 94 - - ( - COUNT( ALL + 32 ) )
----
169

skipif mysql # not compatible
query I rowsort label-5539
SELECT + 3 * + 57 + + ( - 94 ) / + 94 - - ( - COUNT ( ALL + 32 ) )
----
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5540
SELECT - - 18 * CAST( 55 AS SIGNED ) AS col2
----
990

skipif mysql # not compatible
query I rowsort label-5540
SELECT - - 18 * CAST ( 55 AS INTEGER ) AS col2
----
990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5541
SELECT + - ( - + NULLIF ( + 32, CASE + 11 WHEN - CAST( + + 12 AS SIGNED ) * + 69 / + COALESCE ( + + COUNT( - 58 ), - COUNT( * ) ) - + - AVG ( DISTINCT + - 22 ) + + 62 THEN + 19 WHEN - 25 THEN + ( MIN( CAST( NULL AS SIGNED ) ) ) ELSE + - 93 * ( - 97 ) + 2 + - 93 / COUNT( * ) + + COUNT( * ) * 14 + + ( CASE - 45 WHEN 60 * - 68 THEN - 72 + + 4 ELSE - AVG ( DISTINCT 12 ) * - COUNT( ALL 89 - CAST( NULL AS SIGNED ) * CAST( 88 AS SIGNED ) ) END ) * - 29 END + NULLIF ( MIN( ALL 47 ) - 78 / + MIN( 94 * 77 ), 84 ) * - CASE 78 WHEN COUNT( 85 ) THEN + 28 * 29 ELSE MAX( ALL CAST( NULL AS DECIMAL ) ) END ) ) * + NULLIF ( 61 * COALESCE ( + 82, + 1 ), ( COUNT( 64 ) ) + COUNT( * ) ) AS col1
----
160064

skipif mysql # not compatible
query I rowsort label-5541
SELECT + - ( - + NULLIF ( + 32, CASE + 11 WHEN - CAST ( + + 12 AS INTEGER ) * + 69 / + COALESCE ( + + COUNT ( - 58 ), - COUNT ( * ) ) - + - AVG ( DISTINCT + - 22 ) + + 62 THEN + 19 WHEN - 25 THEN + ( MIN ( CAST ( NULL AS INTEGER ) ) ) ELSE + - 93 * ( - 97 ) + 2 + - 93 / COUNT ( * ) + + COUNT ( * ) * 14 + + ( CASE - 45 WHEN 60 * - 68 THEN - 72 + + 4 ELSE - AVG ( DISTINCT 12 ) * - COUNT ( ALL 89 - CAST ( NULL AS INTEGER ) * CAST ( 88 AS INTEGER ) ) END ) * - 29 END + NULLIF ( MIN ( ALL 47 ) - 78 / + MIN ( 94 * 77 ), 84 ) * - CASE 78 WHEN COUNT ( 85 ) THEN + 28 * 29 ELSE MAX ( ALL CAST ( NULL AS REAL ) ) END ) ) * + NULLIF ( 61 * COALESCE ( + 82, + 1 ), ( COUNT ( 64 ) ) + COUNT ( * ) ) AS col1
----
160064

query I rowsort
SELECT ALL + + 63
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5543
SELECT ALL + CAST( - 40 AS SIGNED ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL + CAST ( - 40 AS INTEGER ) AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5544
SELECT DISTINCT - CASE - 61 WHEN + 49 * + 58 THEN + CAST( MAX( 98 ) AS SIGNED ) ELSE NULL END / - - 55 * + 61 * - CAST( NULL AS DECIMAL ) col0, ( + COUNT( * ) )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5544
SELECT DISTINCT - CASE - 61 WHEN + 49 * + 58 THEN + CAST ( MAX ( 98 ) AS INTEGER ) ELSE NULL END / - - 55 * + 61 * - CAST ( NULL AS REAL ) col0, ( + COUNT ( * ) )
----
NULL
1

query I rowsort
SELECT ALL + 83 AS col0
----
83

query I rowsort
SELECT + 60 * - 74
----
-4440

query I rowsort
SELECT ALL 99 * 33
----
3267

query I rowsort
SELECT + ( 87 ) - - + 10 * + 53
----
617

query I rowsort
SELECT + 73 * + + 23 AS col2
----
1679

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT - + COUNT( * ) * - 11 * + 99 + + 99
----
1188

skipif mysql # not compatible
query I rowsort label-5550
SELECT - + COUNT ( * ) * - 11 * + 99 + + 99
----
1188

query I rowsort
SELECT ALL + + 65 AS col1
----
65

query II rowsort
SELECT - - 74 + 95, 41 * + - 45 AS col0
----
169
-1845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5553
SELECT + + NULLIF ( + 2, - - SUM( 57 ) * - + CAST( - - 47 AS SIGNED ) * + 74 + + 77 + - - 27 + + - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) + + MAX( ALL + + 62 ) ) + 16
----
18

skipif mysql # not compatible
query I rowsort label-5553
SELECT + + NULLIF ( + 2, - - SUM ( 57 ) * - + CAST ( - - 47 AS INTEGER ) * + 74 + + 77 + - - 27 + + - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) + + MAX ( ALL + + 62 ) ) + 16
----
18

query I rowsort
SELECT + + 94 - 63 AS col0
----
31

query I rowsort
SELECT DISTINCT ( - - 42 ) * - ( - 29 ) AS col1
----
1218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5556
SELECT ALL + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 88 * 73 + 78
----
-6346

query II rowsort
SELECT ALL + 3, 81 * + 18 AS col0
----
3
1458

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT + 11 + + - 78 * - - ( - COUNT( * ) ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-5559
SELECT + 11 + + - 78 * - - ( - COUNT ( * ) ) AS col1
----
89

query I rowsort
SELECT DISTINCT + 77 AS col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5561
SELECT DISTINCT 34 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT 34 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 70 * 11 + + + 36
----
806

query I rowsort
SELECT + 75 * + 4 AS col2
----
300

query I rowsort
SELECT + 81 + - 13
----
68

query I rowsort
SELECT + ( 79 )
----
79

query II rowsort
SELECT CASE - + 62 WHEN + ( - 50 ) + 48 THEN + 93 WHEN + ( - - 72 ) THEN - - 56 + + + 98 / - 73 END AS col0, 24 col1
----
NULL
24

query II rowsort
SELECT + 49 * 4 + + - 83, 0 * - + 17 * + 57 AS col1
----
113
0

query I rowsort
SELECT ALL 62 * - CASE - 23 WHEN - 50 * - + 46 * - 83 THEN NULL ELSE 87 END * - ( 13 ) + - 43 AS col2
----
70079

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5569
SELECT - 93 AS col2, - 1 * - - MIN( - 48 ) DIV + 32
----
-93
1

skipif mysql # not compatible
query II rowsort label-5569
SELECT - 93 AS col2, - 1 * - - MIN ( - 48 ) / + 32
----
-93
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5570
SELECT - COUNT( * ) + + 18 * + - 80 AS col0, + 71 col1
----
-1441
71

skipif mysql # not compatible
query II rowsort label-5570
SELECT - COUNT ( * ) + + 18 * + - 80 AS col0, + 71 col1
----
-1441
71

onlyif mysql # aggregate syntax: 
query II rowsort label-5571
SELECT COUNT( * ), - ( + - ( 1 ) )
----
1
1

skipif mysql # not compatible
query II rowsort label-5571
SELECT COUNT ( * ), - ( + - ( 1 ) )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT ALL - 29 * + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL - 29 * + COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT + COUNT( - 54 ) + + - ( - 5 ) col2
----
6

skipif mysql # not compatible
query I rowsort label-5573
SELECT + COUNT ( - 54 ) + + - ( - 5 ) col2
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5574
SELECT ALL 27 + + + COALESCE ( + CASE - 26 WHEN + 45 THEN - - 35 + - - 49 ELSE NULL END, + 63 + + CASE - 23 WHEN 46 * + ( - 28 ) * + 98 + - + 61 + - 45 / 65 / - + 16 * + CAST( 60 AS DECIMAL ) THEN + 78 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL 27 + + + COALESCE ( + CASE - 26 WHEN + 45 THEN - - 35 + - - 49 ELSE NULL END, + 63 + + CASE - 23 WHEN 46 * + ( - 28 ) * + 98 + - + 61 + - 45 / 65 / - + 16 * + CAST ( 60 AS REAL ) THEN + 78 END ) AS col1
----
NULL

query II rowsort
SELECT - 4 AS col0, NULLIF ( 6, - 98 )
----
-4
6

query II rowsort
SELECT ALL + 2 + - 1 + + 86 AS col0, 50
----
87
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT 79 * COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-5577
SELECT 79 * COUNT ( * ) AS col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5578
SELECT ALL 21 * - COUNT( * ) * + CAST( COUNT( * ) AS SIGNED ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL 21 * - COUNT ( * ) * + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-21

query II rowsort
SELECT 10, - 96 AS col0
----
10
-96

query I rowsort
SELECT DISTINCT 65
----
65

query I rowsort
SELECT DISTINCT - 57 - - + 2 * + CASE + 11 WHEN 60 + - 14 THEN NULL WHEN + - 93 THEN + COALESCE ( ( - 68 ), - 13 * + - 36 ) + - - 27 / + 78 * 32 * 47 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5582
SELECT + ( - AVG ( 44 ) ) * - COUNT( - 32 ) * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5582
SELECT + ( - AVG ( 44 ) ) * - COUNT ( - 32 ) * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT ( - 11 ) + - 0 + + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-5583
SELECT ( - 11 ) + - 0 + + COUNT ( * )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT ALL - 27 - + COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL - 27 - + COUNT ( * ) AS col2
----
-28

query I rowsort
SELECT 41 * - + 37 + + 13 * - 88 + + 74
----
-2587

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT - + SUM( - ( 5 ) )
----
5

skipif mysql # not compatible
query I rowsort label-5586
SELECT - + SUM ( - ( 5 ) )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5587
SELECT - COUNT( * ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT - COUNT ( * ) + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5588
SELECT ( CAST( NULL AS SIGNED ) ) - + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5588
SELECT ( CAST ( NULL AS INTEGER ) ) - + 94 AS col0
----
NULL

query I rowsort
SELECT ALL 95 AS col2
----
95

query I rowsort
SELECT DISTINCT 12 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT + 21 - - - COUNT( * ) - 10 + - 91 + - + 34 * - ( - 17 )
----
-659

skipif mysql # not compatible
query I rowsort label-5591
SELECT + 21 - - - COUNT ( * ) - 10 + - 91 + - + 34 * - ( - 17 )
----
-659

query I rowsort
SELECT ALL - ( + 97 ) - + 72
----
-169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5593
SELECT DISTINCT - COALESCE ( - 76, - ( 49 ) * 75 * 47 + - 70 * + 82 + - COUNT( * ) DIV - 10 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-5593
SELECT DISTINCT - COALESCE ( - 76, - ( 49 ) * 75 * 47 + - 70 * + 82 + - COUNT ( * ) / - 10 ) AS col2
----
76

query I rowsort
SELECT ALL - 67 AS col1
----
-67

query II rowsort
SELECT - 7, - 40 AS col2
----
-7
-40

query I rowsort
SELECT ALL 18 AS col2
----
18

query I rowsort
SELECT 57 * - + 88
----
-5016

query I rowsort
SELECT ( + 28 ) + + 72 * - 33 + - - 94 AS col2
----
-2254

query I rowsort
SELECT + - 90
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5600
SELECT ALL - CASE + + 34 WHEN + - 95 / 56 * 1 THEN NULL WHEN CAST( + + 87 AS SIGNED ) THEN NULL ELSE - 3 - + 51 END AS col2
----
54

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL - CASE + + 34 WHEN + - 95 / 56 * 1 THEN NULL WHEN CAST ( + + 87 AS INTEGER ) THEN NULL ELSE - 3 - + 51 END AS col2
----
54

query I rowsort
SELECT ALL - + ( + 30 )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5602
SELECT CAST( - - 11 AS SIGNED ) * + 87
----
957

skipif mysql # not compatible
query I rowsort label-5602
SELECT CAST ( - - 11 AS INTEGER ) * + 87
----
957

query I rowsort
SELECT + - 67
----
-67

query I rowsort
SELECT 15 AS col1
----
15

query I rowsort
SELECT ALL - + ( - 21 )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5606
SELECT 59 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-5606
SELECT 59 / + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT ALL 23 + - 12 + + COUNT( * ) + - 61 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL 23 + - 12 + + COUNT ( * ) + - 61 AS col1
----
-49

query I rowsort
SELECT 47 AS col2
----
47

query I rowsort
SELECT + 25 AS col1
----
25

query I rowsort
SELECT 73 * - 29 col2
----
-2117

query I rowsort
SELECT ALL 63 + - 40 * - 44
----
1823

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5612
SELECT COUNT( * ) * 89 - + 61 + - CAST( NULL AS SIGNED ) + COUNT( * ) - - 74 / + - COUNT( * ) * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT COUNT ( * ) * 89 - + 61 + - CAST ( NULL AS INTEGER ) + COUNT ( * ) - - 74 / + - COUNT ( * ) * - 74
----
NULL

query I rowsort
SELECT DISTINCT 81 * - 24
----
-1944

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT + COUNT( * ) * + COUNT( * ) - 25
----
-24

skipif mysql # not compatible
query I rowsort label-5614
SELECT + COUNT ( * ) * + COUNT ( * ) - 25
----
-24

query I rowsort
SELECT + 91 AS col0
----
91

query I rowsort
SELECT ALL - 24 AS col2
----
-24

query I rowsort
SELECT ALL 16 * - 29 col1
----
-464

query I rowsort
SELECT 63 + 96
----
159

query I rowsort
SELECT ALL - 70 + - + 9
----
-79

query I rowsort
SELECT DISTINCT 51 + - - ( + - 49 )
----
2

query I rowsort
SELECT ALL 9 + - - 38 AS col2
----
47

query I rowsort
SELECT DISTINCT 52
----
52

query I rowsort
SELECT - 58 AS col2
----
-58

query I rowsort
SELECT 62 + + + 33 AS col0
----
95

query I rowsort
SELECT 98 - - 71
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT 54 * COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-5626
SELECT 54 * COUNT ( * ) AS col1
----
54

query I rowsort
SELECT ALL 18 * + ( + - 9 )
----
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5628
SELECT 56 + + COUNT( * ) DIV + 58 col1
----
56

skipif mysql # not compatible
query I rowsort label-5628
SELECT 56 + + COUNT ( * ) / + 58 col1
----
56

query I rowsort
SELECT ALL 51
----
51

query I rowsort
SELECT 2 + - + 76 + - 64
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5631
SELECT ALL COUNT( ALL - CAST( + 8 AS SIGNED ) ) - + 58 * + 15
----
-869

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL COUNT ( ALL - CAST ( + 8 AS INTEGER ) ) - + 58 * + 15
----
-869

query I rowsort
SELECT DISTINCT + 61 AS col0
----
61

query I rowsort
SELECT DISTINCT NULLIF ( - ( - 65 ), - 97 ) AS col2
----
65

query I rowsort
SELECT DISTINCT + 51 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT COUNT( * ) + - 63
----
-62

skipif mysql # not compatible
query I rowsort label-5635
SELECT COUNT ( * ) + - 63
----
-62

query I rowsort
SELECT CASE ( - 92 ) WHEN - 80 * - 88 + + 49 THEN + + 70 END * - COALESCE ( + 84, - 9, - 96 * 21 ) * + - 78 + - ( + 25 )
----
NULL

query I rowsort
SELECT DISTINCT 58
----
58

query I rowsort
SELECT ALL - ( 25 ) col2
----
-25

query I rowsort
SELECT - - 2 AS col1
----
2

query I rowsort
SELECT DISTINCT + 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT ALL - + SUM( ALL + 80 ) + + + ( - - NULLIF ( + + 72, + COALESCE ( - COUNT( * ), - + 20 / 81 ) ) ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL - + SUM ( ALL + 80 ) + + + ( - - NULLIF ( + + 72, + COALESCE ( - COUNT ( * ), - + 20 / 81 ) ) ) AS col2
----
-8

query II rowsort
SELECT 35 + - - 48 AS col2, 98 + + 57 + + NULLIF ( + 7, - + 94 ) * - + 85 AS col2
----
83
-440

query I rowsort
SELECT + 86 AS col2
----
86

query I rowsort
SELECT ALL - - 61 col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT DISTINCT - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5645
SELECT DISTINCT - + COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5646
SELECT ALL CAST( + - 79 AS SIGNED ) * 22 + - 42 + + + 97
----
-1683

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL CAST ( + - 79 AS INTEGER ) * 22 + - 42 + + + 97
----
-1683

query I rowsort
SELECT DISTINCT - - 93 AS col0
----
93

query I rowsort
SELECT + 20 AS col1
----
20

query I rowsort
SELECT + NULLIF ( + 89, - - NULLIF ( + 83, + + 44 ) + 51 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT COALESCE ( - 34, + 0, - - 18 ) * - COUNT( * ) * - - 30 + 89 + + 81 + - 54
----
1136

skipif mysql # not compatible
query I rowsort label-5650
SELECT COALESCE ( - 34, + 0, - - 18 ) * - COUNT ( * ) * - - 30 + 89 + + 81 + - 54
----
1136

onlyif mysql # DIV for integer division: 
query I rowsort label-5651
SELECT + COALESCE ( - 92, 85 * - - 32 + - - ( + 88 ) ) DIV + 8 + - - 24 + - 73 + 66
----
6

skipif mysql # not compatible
query I rowsort label-5651
SELECT + COALESCE ( - 92, 85 * - - 32 + - - ( + 88 ) ) / + 8 + - - 24 + - 73 + 66
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT 44 + MIN( 64 ) + - 92 + 91 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-5652
SELECT 44 + MIN ( 64 ) + - 92 + 91 AS col2
----
107

query I rowsort
SELECT + 80 AS col1
----
80

query I rowsort
SELECT DISTINCT - ( + 78 ) AS col1
----
-78

query I rowsort
SELECT 53 + + 31
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5656
SELECT - ( + ( - + CAST( NULL AS SIGNED ) ) ) * - - SUM( ALL + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5656
SELECT - ( + ( - + CAST ( NULL AS INTEGER ) ) ) * - - SUM ( ALL + 25 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT DISTINCT + ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT + ( - COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL 10 - - 31
----
41

query I rowsort
SELECT + 46 AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5660
SELECT - CAST( - + 81 AS SIGNED ) * 42 * - 2 * + MIN( - 45 ) + - - 26 * COUNT( * ) col2
----
306206

skipif mysql # not compatible
query I rowsort label-5660
SELECT - CAST ( - + 81 AS INTEGER ) * 42 * - 2 * + MIN ( - 45 ) + - - 26 * COUNT ( * ) col2
----
306206

onlyif mysql # DIV for integer division: 
query II rowsort label-5661
SELECT DISTINCT - 57 - 73 + - 46 AS col1, - 5 DIV 12
----
-176
0

skipif mysql # not compatible
query II rowsort label-5661
SELECT DISTINCT - 57 - 73 + - 46 AS col1, - 5 / 12
----
-176
0

query I rowsort
SELECT - 3 * - + 37 col0
----
111

query I rowsort
SELECT + 53 AS col2
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-5664
SELECT + CASE WHEN NOT 7 NOT IN ( + NULLIF ( 43, + 21 ) + 42 + COUNT( * ), 89 ) THEN 91 ELSE NULL END + - - COUNT( * ) + 96 / + 2 * ( - ( - 74 ) ) + + - ( 52 ) / - 68 * + + ( 32 ) * ( - 91 ) AS col1, 63 AS col0
----
NULL
63

skipif mysql # not compatible
query II rowsort label-5664
SELECT + CASE WHEN NOT 7 NOT IN ( + NULLIF ( 43, + 21 ) + 42 + COUNT ( * ), 89 ) THEN 91 ELSE NULL END + - - COUNT ( * ) + 96 / + 2 * ( - ( - 74 ) ) + + - ( 52 ) / - 68 * + + ( 32 ) * ( - 91 ) AS col1, 63 AS col0
----
NULL
63

query I rowsort
SELECT ALL + 39 - + + 20 AS col1
----
19

query I rowsort
SELECT - 38 * - 25
----
950

onlyif mysql # DIV for integer division: 
query I rowsort label-5667
SELECT - 56 DIV + 90 * 37 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5667
SELECT - 56 / + 90 * 37 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT ALL COUNT( * ) * 94 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL COUNT ( * ) * 94 AS col0
----
94

query I rowsort
SELECT 43 AS col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5670
SELECT ALL CASE 88 WHEN - ( - - CAST( + 37 AS SIGNED ) ) THEN - COUNT( * ) + + CAST( 67 AS SIGNED ) * - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL CASE 88 WHEN - ( - - CAST ( + 37 AS INTEGER ) ) THEN - COUNT ( * ) + + CAST ( 67 AS INTEGER ) * - 10 END
----
NULL

query I rowsort
SELECT - 35 AS col1
----
-35

query I rowsort
SELECT ALL ( 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT + 35 + - - MAX( ALL + 62 )
----
97

skipif mysql # not compatible
query I rowsort label-5673
SELECT + 35 + - - MAX ( ALL + 62 )
----
97

query I rowsort
SELECT - - 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT + COUNT( * ) + - + 3
----
-2

skipif mysql # not compatible
query I rowsort label-5675
SELECT + COUNT ( * ) + - + 3
----
-2

query I rowsort
SELECT ALL - 92 + ( + + 51 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT MAX( + 16 ) col0
----
16

skipif mysql # not compatible
query I rowsort label-5677
SELECT MAX ( + 16 ) col0
----
16

query I rowsort
SELECT DISTINCT + 1 + - 44
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT ALL COALESCE ( - CASE + 58 WHEN 5 * - 36 / + 79 THEN NULL ELSE - 87 END, + - ( + ( + 26 ) ) + 37 * MIN( - - 21 ) + + + 37 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL COALESCE ( - CASE + 58 WHEN 5 * - 36 / + 79 THEN NULL ELSE - 87 END, + - ( + ( + 26 ) ) + 37 * MIN ( - - 21 ) + + + 37 ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT ALL - COUNT( * ) + + + COUNT( - 37 )
----
0

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL - COUNT ( * ) + + + COUNT ( - 37 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5681
SELECT ALL - CASE - + 19 WHEN 18 THEN NULL WHEN COUNT( * ) + + - COUNT( * ) THEN + - 67 * - 86 + - CAST( + 58 AS SIGNED ) WHEN + 10 * 88 * - - 9 THEN MAX( - 41 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL - CASE - + 19 WHEN 18 THEN NULL WHEN COUNT ( * ) + + - COUNT ( * ) THEN + - 67 * - 86 + - CAST ( + 58 AS INTEGER ) WHEN + 10 * 88 * - - 9 THEN MAX ( - 41 ) END AS col2
----
NULL

query I rowsort
SELECT - + ( 31 )
----
-31

query I rowsort
SELECT + 51 + + 86
----
137

query I rowsort
SELECT - 65 + + + 20 AS col0
----
-45

query I rowsort
SELECT ALL + 2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT + NULLIF ( COUNT( * ), - - 31 * + 6 + + 21 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5686
SELECT + NULLIF ( COUNT ( * ), - - 31 * + 6 + + 21 ) AS col0
----
1

query I rowsort
SELECT ( + 76 ) AS col2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5688
SELECT + 70 DIV + 46
----
1

skipif mysql # not compatible
query I rowsort label-5688
SELECT + 70 / + 46
----
1

query I rowsort
SELECT + 75 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT + COUNT( * ) * 53 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5690
SELECT + COUNT ( * ) * 53 AS col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5691
SELECT ALL + CASE - - 90 WHEN + 20 * 32 THEN 59 WHEN + 20 * - COUNT( * ) + 43 THEN + 65 * CAST( NULL AS DECIMAL ) * 9 / + 80 - 41 + - 10 ELSE NULL END * - 60 - - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL + CASE - - 90 WHEN + 20 * 32 THEN 59 WHEN + 20 * - COUNT ( * ) + 43 THEN + 65 * CAST ( NULL AS REAL ) * 9 / + 80 - 41 + - 10 ELSE NULL END * - 60 - - 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT ( - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5692
SELECT ( - COUNT ( * ) ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5693
SELECT ALL 93 * - ( + - 65 ) - + 86 DIV + 64 AS col1
----
6044

skipif mysql # not compatible
query I rowsort label-5693
SELECT ALL 93 * - ( + - 65 ) - + 86 / + 64 AS col1
----
6044

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT ALL + COUNT( * ) * + + 36 * 31
----
1116

skipif mysql # not compatible
query I rowsort label-5694
SELECT ALL + COUNT ( * ) * + + 36 * 31
----
1116

query II rowsort
SELECT + 86 col2, - 57 AS col1
----
86
-57

query I rowsort
SELECT - ( - - 12 ) * - 74 col0
----
888

query I rowsort
SELECT + 41 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT ALL + COUNT( + NULLIF ( - 24, 39 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL + COUNT ( + NULLIF ( - 24, 39 ) )
----
1

query II rowsort
SELECT + 44 AS col0, + 94 AS col1
----
44
94

query I rowsort
SELECT ALL + 24 AS col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5701
SELECT COALESCE ( COUNT( * ), CASE - + 58 WHEN 95 THEN NULL WHEN 31 THEN NULL ELSE COALESCE ( - ( + COUNT( * ) ), - + 10 + + - 66 + - COALESCE ( 35, + 8, + AVG ( ALL 72 ) DIV - 63 + 10 ) - - 37 ) END + + 18 )
----
1

skipif mysql # not compatible
query I rowsort label-5701
SELECT COALESCE ( COUNT ( * ), CASE - + 58 WHEN 95 THEN NULL WHEN 31 THEN NULL ELSE COALESCE ( - ( + COUNT ( * ) ), - + 10 + + - 66 + - COALESCE ( 35, + 8, + AVG ( ALL 72 ) / - 63 + 10 ) - - 37 ) END + + 18 )
----
1

query I rowsort
SELECT + 80 * - - 12
----
960

query I rowsort
SELECT COALESCE ( - - COALESCE ( + 33, + COALESCE ( - 50, - 63 ) ), - + 12 * + 90 ) AS col1
----
33

query I rowsort
SELECT - 21 * 27 AS col0
----
-567

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5705
SELECT ALL + 52, - CAST( - 98 AS SIGNED ) + 27 col1
----
52
125

skipif mysql # not compatible
query II rowsort label-5705
SELECT ALL + 52, - CAST ( - 98 AS INTEGER ) + 27 col1
----
52
125

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT ALL 38 * SUM( 68 ) col1
----
2584

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL 38 * SUM ( 68 ) col1
----
2584

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT DISTINCT + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT - ( + + 60 ) + - + 58
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT COALESCE ( + 4, + ( + NULLIF ( 94, COUNT( * ) + - - 43 / + 25 * - + COUNT( * ) + 23 / - 1 / + - MAX( ALL + 58 ) ) ) * + + MAX( + 82 ) )
----
4

skipif mysql # not compatible
query I rowsort label-5709
SELECT COALESCE ( + 4, + ( + NULLIF ( 94, COUNT ( * ) + - - 43 / + 25 * - + COUNT ( * ) + 23 / - 1 / + - MAX ( ALL + 58 ) ) ) * + + MAX ( + 82 ) )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5710
SELECT - - CAST( + - CAST( + 55 AS SIGNED ) AS SIGNED ) + 63 * - 30
----
-1945

skipif mysql # not compatible
query I rowsort label-5710
SELECT - - CAST ( + - CAST ( + 55 AS INTEGER ) AS INTEGER ) + 63 * - 30
----
-1945

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT ALL + COALESCE ( + - 5, - COUNT( * ) )
----
-5

skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL + COALESCE ( + - 5, - COUNT ( * ) )
----
-5

query I rowsort
SELECT ALL 36 * + - 65
----
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT - 41 + + - 24 + - MAX( DISTINCT + - 11 ) - - 26 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-5713
SELECT - 41 + + - 24 + - MAX ( DISTINCT + - 11 ) - - 26 AS col0
----
-28

query II rowsort
SELECT ALL - 6 col1, 8 col2
----
-6
8

query I rowsort
SELECT - 50 * + 98 + + 59
----
-4841

query I rowsort
SELECT + 24 - 68
----
-44

onlyif mysql # DIV for integer division: 
query II rowsort label-5717
SELECT 48 col0, + 68 + + - 10 + + 16 DIV 88
----
48
58

skipif mysql # not compatible
query II rowsort label-5717
SELECT 48 col0, + 68 + + - 10 + + 16 / 88
----
48
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5718
SELECT + - 2 DIV - 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5718
SELECT + - 2 / - 55 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5719
SELECT ALL - 96 + - NULLIF ( + COUNT( * ), AVG ( DISTINCT 84 ) ) + 47 DIV 2 * - 26 AS col1
----
-695

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL - 96 + - NULLIF ( + COUNT ( * ), AVG ( DISTINCT 84 ) ) + 47 / 2 * - 26 AS col1
----
-695

query I rowsort
SELECT - + ( - 3 ) * + 37
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-5721
SELECT ALL COUNT( * ), - 13 * + + 94 AS col2
----
1
-1222

skipif mysql # not compatible
query II rowsort label-5721
SELECT ALL COUNT ( * ), - 13 * + + 94 AS col2
----
1
-1222

onlyif mysql # aggregate syntax: 
query II rowsort label-5722
SELECT DISTINCT + 47 AS col2, + NULLIF ( + 27, MAX( DISTINCT - 10 ) * 58 + + 89 + - 63 * - 70 * COUNT( * ) - 64 * - - 16 ) AS col2
----
47
27

skipif mysql # not compatible
query II rowsort label-5722
SELECT DISTINCT + 47 AS col2, + NULLIF ( + 27, MAX ( DISTINCT - 10 ) * 58 + + 89 + - 63 * - 70 * COUNT ( * ) - 64 * - - 16 ) AS col2
----
47
27

query I rowsort
SELECT - - 83 + + 0 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ALL MAX( - - 62 )
----
62

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL MAX ( - - 62 )
----
62

query I rowsort
SELECT 3 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT ALL + - CASE 33 WHEN COUNT( * ) * - 96 + - AVG ( 1 ) THEN - - 65 WHEN - 17 THEN NULL END + 45 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL + - CASE 33 WHEN COUNT ( * ) * - 96 + - AVG ( 1 ) THEN - - 65 WHEN - 17 THEN NULL END + 45 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT ALL + 3 + SUM( ALL 27 )
----
30

skipif mysql # not compatible
query I rowsort label-5727
SELECT ALL + 3 + SUM ( ALL 27 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT DISTINCT + + 81 + + + 68 + + + COUNT( * ) * 25 * + 60 AS col2
----
1649

skipif mysql # not compatible
query I rowsort label-5728
SELECT DISTINCT + + 81 + + + 68 + + + COUNT ( * ) * 25 * + 60 AS col2
----
1649

query I rowsort
SELECT - 79 + - 19 AS col0
----
-98

query I rowsort
SELECT 46 col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-5731
SELECT - - COUNT( * ) AS col2, + 89 * - + 49 * + 61 + + 52 / CASE + 26 WHEN + CASE 14 WHEN COUNT( * ) * + 33 / - 95 - + 48 - 4 - - 26 * + 69 + - ( 21 ) + - + COUNT( * ) THEN NULL WHEN - - 86 THEN 62 END - - 77 THEN 59 / 10 * + 96 END * 6 + - COUNT( * ) + + + ( - 86 )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5731
SELECT - - COUNT ( * ) AS col2, + 89 * - + 49 * + 61 + + 52 / CASE + 26 WHEN + CASE 14 WHEN COUNT ( * ) * + 33 / - 95 - + 48 - 4 - - 26 * + 69 + - ( 21 ) + - + COUNT ( * ) THEN NULL WHEN - - 86 THEN 62 END - - 77 THEN 59 / 10 * + 96 END * 6 + - COUNT ( * ) + + + ( - 86 )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT ALL + CASE - 94 WHEN - NULLIF ( - - 79, + NULLIF ( - + 40, + 44 ) * - CASE - 23 WHEN + 34 THEN + 81 END + NULLIF ( + 6, - - 3 ) + - 93 + + + COUNT( + 77 ) + 45 * AVG ( 88 ) * - + 83 / 74 - - 37 * 72 - - 53 * 77 ) * 28 + 77 THEN - 0 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL + CASE - 94 WHEN - NULLIF ( - - 79, + NULLIF ( - + 40, + 44 ) * - CASE - 23 WHEN + 34 THEN + 81 END + NULLIF ( + 6, - - 3 ) + - 93 + + + COUNT ( + 77 ) + 45 * AVG ( 88 ) * - + 83 / 74 - - 37 * 72 - - 53 * 77 ) * 28 + 77 THEN - 0 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT + MAX( DISTINCT - 75 ) + - 65
----
-140

skipif mysql # not compatible
query I rowsort label-5733
SELECT + MAX ( DISTINCT - 75 ) + - 65
----
-140

query I rowsort
SELECT + 29 * + 26
----
754

query I rowsort
SELECT 87
----
87

query I rowsort
SELECT 53 + - 58 * - 48 AS col0
----
2837

query I rowsort
SELECT DISTINCT 58 * ( 5 )
----
290

query I rowsort
SELECT DISTINCT - 95 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT 73 + - COUNT( * ) * 56 * - CASE - 82 WHEN - 64 THEN 95 * + ( 45 ) END - MAX( ALL + - 23 ) + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-5739
SELECT 73 + - COUNT ( * ) * 56 * - CASE - 82 WHEN - 64 THEN 95 * + ( 45 ) END - MAX ( ALL + - 23 ) + 17
----
NULL

query I rowsort
SELECT DISTINCT 63 - 60 * + 70
----
-4137

query I rowsort
SELECT 82 col2
----
82

query I rowsort
SELECT + 86 AS col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5743
SELECT CAST( + + COUNT( * ) AS SIGNED ) + 25 * + + 86 AS col2
----
2151

skipif mysql # not compatible
query I rowsort label-5743
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) + 25 * + + 86 AS col2
----
2151

query II rowsort
SELECT ALL 98 * - 9 AS col2, 34 AS col0
----
-882
34

query I rowsort
SELECT ALL 57 * - + 82
----
-4674

query II rowsort
SELECT 62 * - 59 AS col2, 55 AS col0
----
-3658
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT ( 11 ) * - 96 * COUNT( * ) * - 8 + 98 col2
----
8546

skipif mysql # not compatible
query I rowsort label-5747
SELECT ( 11 ) * - 96 * COUNT ( * ) * - 8 + 98 col2
----
8546

query I rowsort
SELECT DISTINCT - 40 AS col0
----
-40

query I rowsort
SELECT 14 * - 16 AS col2
----
-224

query III rowsort
SELECT 17 + + + 47 AS col2, 43 AS col1, + 22
----
64
43
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT + 88 * + ( - COUNT( * ) ) + + + 45 * - ( 86 ) AS col0
----
-3958

skipif mysql # not compatible
query I rowsort label-5751
SELECT + 88 * + ( - COUNT ( * ) ) + + + 45 * - ( 86 ) AS col0
----
-3958

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT ALL - MIN( 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL - MIN ( 45 )
----
-45

query I rowsort
SELECT DISTINCT - 30 AS col1
----
-30

query I rowsort
SELECT 4 * + 97 AS col2
----
388

query I rowsort
SELECT 98 AS col2
----
98

query I rowsort
SELECT ALL 91 + + 24 + - 47 + 25 * + + 81
----
2093

query I rowsort
SELECT DISTINCT - 46
----
-46

query II rowsort
SELECT 88 * 55, + 29 AS col0
----
4840
29

onlyif mysql # aggregate syntax: 
query II rowsort label-5759
SELECT COUNT( * ) + + 79 col1, - 22
----
80
-22

skipif mysql # not compatible
query II rowsort label-5759
SELECT COUNT ( * ) + + 79 col1, - 22
----
80
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT ALL + NULLIF ( + - ( ( + - 26 ) ), MAX( - - 74 ) * - 39 ) * + 45 - + 34 + - 56 * 20 * + MAX( - 32 ) AS col1
----
36976

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL + NULLIF ( + - ( ( + - 26 ) ), MAX ( - - 74 ) * - 39 ) * + 45 - + 34 + - 56 * 20 * + MAX ( - 32 ) AS col1
----
36976

query I rowsort
SELECT + - 18
----
-18

query I rowsort
SELECT + - ( - 72 ) col0
----
72

query I rowsort
SELECT DISTINCT + + 33 + - + 83 AS col0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5764
SELECT ALL - + ( 71 ) + + CAST( NULL AS SIGNED ) + - CAST( - 49 AS SIGNED ) - 28 * 50 / - NULLIF ( + + NULLIF ( 80, - - 49 ), + + 71 ) + + CAST( 81 AS SIGNED ) + - SUM( DISTINCT - - 17 ) + + COALESCE ( + + COUNT( * ), CASE - 43 WHEN 2 THEN NULL WHEN + 15 * 27 THEN 67 END * - 30 / + + 33 * 6 * + MIN( DISTINCT + - 51 ) - - + 1 ) * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL - + ( 71 ) + + CAST ( NULL AS INTEGER ) + - CAST ( - 49 AS INTEGER ) - 28 * 50 / - NULLIF ( + + NULLIF ( 80, - - 49 ), + + 71 ) + + CAST ( 81 AS INTEGER ) + - SUM ( DISTINCT - - 17 ) + + COALESCE ( + + COUNT ( * ), CASE - 43 WHEN 2 THEN NULL WHEN + 15 * 27 THEN 67 END * - 30 / + + 33 * 6 * + MIN ( DISTINCT + - 51 ) - - + 1 ) * 24
----
NULL

query I rowsort
SELECT DISTINCT + 23 * 41
----
943

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT DISTINCT SUM( + 17 ) + 83
----
100

skipif mysql # not compatible
query I rowsort label-5766
SELECT DISTINCT SUM ( + 17 ) + 83
----
100

query I rowsort
SELECT ALL 27 AS col2
----
27

query I rowsort
SELECT - 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT DISTINCT - - COUNT( * ) + + 59 col0
----
60

skipif mysql # not compatible
query I rowsort label-5769
SELECT DISTINCT - - COUNT ( * ) + + 59 col0
----
60

query I rowsort
SELECT ALL 11 AS col1
----
11

query I rowsort
SELECT - 54 - + + 2 * + - 34 + 23
----
37

query I rowsort
SELECT - 24 * - 97
----
2328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5773
SELECT ALL + + SUM( + 58 ) DIV ( + COUNT( * ) ) + 75
----
133

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL + + SUM ( + 58 ) / ( + COUNT ( * ) ) + 75
----
133

query I rowsort
SELECT DISTINCT 66 col0
----
66

query I rowsort
SELECT - ( + + 57 ) * 96 AS col0
----
-5472

query I rowsort
SELECT - - 59 col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5777
SELECT + 47 + + - 33 * + + SUM( + - ( + 59 ) ), + 4 * - 80 + CAST( - 89 AS SIGNED ) AS col1
----
1994
-409

skipif mysql # not compatible
query II rowsort label-5777
SELECT + 47 + + - 33 * + + SUM ( + - ( + 59 ) ), + 4 * - 80 + CAST ( - 89 AS INTEGER ) AS col1
----
1994
-409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5778
SELECT + 91 DIV + MAX( 17 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5778
SELECT + 91 / + MAX ( 17 ) AS col2
----
5

query I rowsort
SELECT 57 - - - 84
----
-27

query I rowsort
SELECT ALL 17 * ( - + 67 ) AS col0
----
-1139

query I rowsort
SELECT 35
----
35

query I rowsort
SELECT ALL 20 AS col1
----
20

query II rowsort
SELECT DISTINCT 24, 37 AS col0
----
24
37

query I rowsort
SELECT DISTINCT - 25 * 83 AS col2
----
-2075

query I rowsort
SELECT 82 * + 2
----
164

query I rowsort
SELECT - 31 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT COUNT( DISTINCT - 83 )
----
1

skipif mysql # not compatible
query I rowsort label-5787
SELECT COUNT ( DISTINCT - 83 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5788
SELECT ALL - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 84 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT COUNT( DISTINCT + 38 )
----
1

skipif mysql # not compatible
query I rowsort label-5790
SELECT COUNT ( DISTINCT + 38 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT + 4 * - NULLIF ( CASE + COUNT( * ) WHEN - 1 THEN + 65 + + - COUNT( * ) / - - COUNT( * ) + ( - + 22 ) * - COALESCE ( 83, + - 36 ) + 49 * - 22 * - + COALESCE ( - 28, COALESCE ( - 72, - MAX( - - 58 ) ) - + 20, + COUNT( * ) ) ELSE NULL END, + 17 ) - + 39 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5791
SELECT + 4 * - NULLIF ( CASE + COUNT ( * ) WHEN - 1 THEN + 65 + + - COUNT ( * ) / - - COUNT ( * ) + ( - + 22 ) * - COALESCE ( 83, + - 36 ) + 49 * - 22 * - + COALESCE ( - 28, COALESCE ( - 72, - MAX ( - - 58 ) ) - + 20, + COUNT ( * ) ) ELSE NULL END, + 17 ) - + 39 col1
----
NULL

query I rowsort
SELECT 72 * ( + COALESCE ( 29, 67 + COALESCE ( - 3, - + 89 ) ) ) * + 17
----
35496

query I rowsort
SELECT ALL - 43 col2
----
-43

query I rowsort
SELECT + 94
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT COUNT( ALL - + 42 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5795
SELECT COUNT ( ALL - + 42 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT ALL COUNT( * ) * - 3
----
-3

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL COUNT ( * ) * - 3
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT ALL + 81 + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL + 81 + COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT MIN( - 70 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-5798
SELECT MIN ( - 70 ) AS col0
----
-70

query I rowsort
SELECT ALL 97 + - + 41 * - 31 + - 38
----
1330

query I rowsort
SELECT 87 + - - 10
----
97

query I rowsort
SELECT 77 AS col2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5802
SELECT + COUNT( * ) DIV 31 + - - 2 AS col2, ( - 83 ) + - - 16 + + + MAX( DISTINCT ( 0 ) ) + - - 50 + + 92 AS col1
----
2
75

skipif mysql # not compatible
query II rowsort label-5802
SELECT + COUNT ( * ) / 31 + - - 2 AS col2, ( - 83 ) + - - 16 + + + MAX ( DISTINCT ( 0 ) ) + - - 50 + + 92 AS col1
----
2
75

query I rowsort
SELECT ALL - 96 + 49 AS col2
----
-47

query I rowsort
SELECT 23 * + 83 AS col0
----
1909

query I rowsort
SELECT 25 + - 70
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5806
SELECT + 44 AS col0, MAX( DISTINCT 90 ) DIV - 19 AS col2
----
44
-4

skipif mysql # not compatible
query II rowsort label-5806
SELECT + 44 AS col0, MAX ( DISTINCT 90 ) / - 19 AS col2
----
44
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5807
SELECT DISTINCT - + 37 AS col1, 90 * COUNT( * )
----
-37
90

skipif mysql # not compatible
query II rowsort label-5807
SELECT DISTINCT - + 37 AS col1, 90 * COUNT ( * )
----
-37
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5808
SELECT ALL 42 + + + 19 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL 42 + + + 19 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5809
SELECT DISTINCT - 74, 23 + - COUNT( * ) * + 1 * 11 AS col1
----
-74
12

skipif mysql # not compatible
query II rowsort label-5809
SELECT DISTINCT - 74, 23 + - COUNT ( * ) * + 1 * 11 AS col1
----
-74
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT 66 * - - ( - + 26 ) / + + 71 + - - 31 - + + 25 / MAX( ALL + 14 ) * + 84 + + + 98 + - - CASE - 65 WHEN COALESCE ( + 77, 33 - + 85, - COUNT( - 16 ) * - 95 ) THEN + 98 END + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-5810
SELECT 66 * - - ( - + 26 ) / + + 71 + - - 31 - + + 25 / MAX ( ALL + 14 ) * + 84 + + + 98 + - - CASE - 65 WHEN COALESCE ( + 77, 33 - + 85, - COUNT ( - 16 ) * - 95 ) THEN + 98 END + + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT ALL - 55 - + + COUNT( ALL - + 62 ) + + 63 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL - 55 - + + COUNT ( ALL - + 62 ) + + 63 AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5812
SELECT + 95 * - 56 * - 29 * - CASE - CAST( + 65 AS SIGNED ) WHEN + 41 THEN ( 18 ) WHEN 36 THEN NULL WHEN + 76 THEN NULL END + - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5812
SELECT + 95 * - 56 * - 29 * - CASE - CAST ( + 65 AS INTEGER ) WHEN + 41 THEN ( 18 ) WHEN 36 THEN NULL WHEN + 76 THEN NULL END + - 7 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT ALL - CASE - COUNT( * ) WHEN COUNT( * ) + + 36 * 0 THEN 44 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL - CASE - COUNT ( * ) WHEN COUNT ( * ) + + 36 * 0 THEN 44 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 66
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT + COALESCE ( COUNT( * ), - COUNT( + 11 ) + - COALESCE ( 43, + - COUNT( * ) * ( + 12 ) - COUNT( * ), + 47 - - 72 ) ) + + + 2
----
3

skipif mysql # not compatible
query I rowsort label-5815
SELECT + COALESCE ( COUNT ( * ), - COUNT ( + 11 ) + - COALESCE ( 43, + - COUNT ( * ) * ( + 12 ) - COUNT ( * ), + 47 - - 72 ) ) + + + 2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5816
SELECT + - SUM( - - 12 ) * NULLIF ( - - 28, 17 / - COUNT( * ) * 58 * - 14 * 90 ) - - ( - 13 ), + CAST( NULL AS SIGNED ) AS col0
----
-349
NULL

skipif mysql # not compatible
query II rowsort label-5816
SELECT + - SUM ( - - 12 ) * NULLIF ( - - 28, 17 / - COUNT ( * ) * 58 * - 14 * 90 ) - - ( - 13 ), + CAST ( NULL AS INTEGER ) AS col0
----
-349
NULL

query I rowsort
SELECT + 22 + + 2 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT - 61 * - - COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-5818
SELECT - 61 * - - COUNT ( * ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-5819
SELECT + 78 AS col1, + COUNT( * ) * - 92 - + 21
----
78
-113

skipif mysql # not compatible
query II rowsort label-5819
SELECT + 78 AS col1, + COUNT ( * ) * - 92 - + 21
----
78
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT ALL - 20 - - - 85 * - CASE + + 17 WHEN - 0 + 41 THEN NULL WHEN + COUNT( * ) / - AVG ( - 81 ) * - 83 - - 84 THEN - + 45 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL - 20 - - - 85 * - CASE + + 17 WHEN - 0 + 41 THEN NULL WHEN + COUNT ( * ) / - AVG ( - 81 ) * - 83 - - 84 THEN - + 45 END AS col2
----
NULL

query I rowsort
SELECT - 17 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT ALL - ( 53 ) * - 58 - + 26 + + COUNT( * )
----
3049

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL - ( 53 ) * - 58 - + 26 + + COUNT ( * )
----
3049

query I rowsort
SELECT DISTINCT CASE - + NULLIF ( - - 50, - + 15 + - + 96 ) WHEN - 54 THEN + - 29 WHEN + 24 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 82, 94 * + - ( - 26 ) ) AS col0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5825
SELECT - ( - 93 ) DIV 8
----
11

skipif mysql # not compatible
query I rowsort label-5825
SELECT - ( - 93 ) / 8
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT + MIN( ALL 28 ) + - + 57
----
-29

skipif mysql # not compatible
query I rowsort label-5826
SELECT + MIN ( ALL 28 ) + - + 57
----
-29

query I rowsort
SELECT - 29 AS col0
----
-29

query II rowsort
SELECT - 45 * - + 9, ( + 94 ) + + + 23 AS col0
----
405
117

onlyif mysql # aggregate syntax: 
query II rowsort label-5829
SELECT DISTINCT + COUNT( * ) * + COUNT( * ), - 64 * + + COUNT( + 33 ) col1
----
1
-64

skipif mysql # not compatible
query II rowsort label-5829
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ), - 64 * + + COUNT ( + 33 ) col1
----
1
-64

query II rowsort
SELECT DISTINCT + 67 + - 61 + - 81 * - 33, 17 * 52 + + 18 AS col1
----
2679
902

onlyif mysql # DIV for integer division: 
query I rowsort label-5831
SELECT + 49 DIV - - 12 + + NULLIF ( - 87, 52 + + 7 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-5831
SELECT + 49 / - - 12 + + NULLIF ( - 87, 52 + + 7 ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-5832
SELECT DISTINCT - 94 * COUNT( * ) AS col1, 89
----
-94
89

skipif mysql # not compatible
query II rowsort label-5832
SELECT DISTINCT - 94 * COUNT ( * ) AS col1, 89
----
-94
89

query I rowsort
SELECT - 85 + - NULLIF ( + 79, - 3 ) + ( + 89 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT ALL + COUNT( * ) * + + 64 + 3 + + 44 * + ( + - 97 )
----
-4201

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL + COUNT ( * ) * + + 64 + 3 + + 44 * + ( + - 97 )
----
-4201

query I rowsort
SELECT - 3 + - 61 col2
----
-64

query I rowsort
SELECT DISTINCT + 76 * + 45 AS col0
----
3420

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT ALL + 70 * - 36 * 64 * + 56 + 32 + COUNT( * )
----
-9031647

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL + 70 * - 36 * 64 * + 56 + 32 + COUNT ( * )
----
-9031647

query I rowsort
SELECT + 5 col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT - NULLIF ( 16, 40 - - 85 ) * - 81 - - + CASE CASE AVG ( + 41 ) WHEN + 33 THEN 75 END WHEN - 80 THEN - + NULLIF ( + 94, - + 74 ) WHEN 23 THEN - ( + - 58 ) / - - MIN( DISTINCT - - 77 ) / + 49 + + 44 WHEN + - 44 + - 72 / - COUNT( * ) THEN + 12 ELSE NULL END + + ( - + 31 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5839
SELECT - NULLIF ( 16, 40 - - 85 ) * - 81 - - + CASE CASE AVG ( + 41 ) WHEN + 33 THEN 75 END WHEN - 80 THEN - + NULLIF ( + 94, - + 74 ) WHEN 23 THEN - ( + - 58 ) / - - MIN ( DISTINCT - - 77 ) / + 49 + + 44 WHEN + - 44 + - 72 / - COUNT ( * ) THEN + 12 ELSE NULL END + + ( - + 31 ) col2
----
NULL

query I rowsort
SELECT ALL + 54 * - 79 + - 26
----
-4292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5841
SELECT NULLIF ( + 32, + CAST( NULL AS SIGNED ) ) col2
----
32

skipif mysql # not compatible
query I rowsort label-5841
SELECT NULLIF ( + 32, + CAST ( NULL AS INTEGER ) ) col2
----
32

query I rowsort
SELECT DISTINCT + + 69
----
69

query I rowsort
SELECT ALL + - 87 AS col1
----
-87

query I rowsort
SELECT + - 40 AS col0
----
-40

query I rowsort
SELECT ALL - ( + 24 ) * - - 22 - 72 + ( + 91 )
----
-509

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5846
SELECT DISTINCT + COUNT( * ) DIV - MIN( ALL - 68 )
----
0

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT + COUNT ( * ) / - MIN ( ALL - 68 )
----
0

query I rowsort
SELECT ALL - 80 * + 10 * + 75 - COALESCE ( - 86, + 36, + - 76 ) AS col2
----
-59914

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT + - 79 * - - ( - - MIN( - + 38 ) ) * 22 * - ( - 16 )
----
1056704

skipif mysql # not compatible
query I rowsort label-5848
SELECT + - 79 * - - ( - - MIN ( - + 38 ) ) * 22 * - ( - 16 )
----
1056704

query I rowsort
SELECT 16
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5850
SELECT + + ( - + NULLIF ( MAX( ALL 10 ), - - SUM( - - 95 ) / CAST( + - NULLIF ( - 39, + + 94 ) AS SIGNED ) - - + 66 - + ( - - 66 ) + ( - - 38 ) ) ) + + 64
----
54

skipif mysql # not compatible
query I rowsort label-5850
SELECT + + ( - + NULLIF ( MAX ( ALL 10 ), - - SUM ( - - 95 ) / CAST ( + - NULLIF ( - 39, + + 94 ) AS INTEGER ) - - + 66 - + ( - - 66 ) + ( - - 38 ) ) ) + + 64
----
54

query I rowsort
SELECT 91 AS col1
----
91

query I rowsort
SELECT + 20 * 93 * - - 34 + 12 - - + 55 col0
----
63307

query I rowsort
SELECT ALL + 51 * + - 34 * 65 + 87 - + + 40
----
-112663

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT + 46 * - 7 * + MAX( ALL - 52 ) AS col1
----
16744

skipif mysql # not compatible
query I rowsort label-5854
SELECT + 46 * - 7 * + MAX ( ALL - 52 ) AS col1
----
16744

query I rowsort
SELECT - 51 AS col0
----
-51

query I rowsort
SELECT DISTINCT 79
----
79

query I rowsort
SELECT DISTINCT 2 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT ALL - MAX( - 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL - MAX ( - 77 ) AS col1
----
77

query I rowsort
SELECT + 93 + - 98 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT + CASE - + COUNT( * ) WHEN + - COUNT( * ) THEN - COALESCE ( COUNT( * ), - + 63 ) * 33 * - 2 + + 5 END * - - 6 AS col1
----
426

skipif mysql # not compatible
query I rowsort label-5860
SELECT + CASE - + COUNT ( * ) WHEN + - COUNT ( * ) THEN - COALESCE ( COUNT ( * ), - + 63 ) * 33 * - 2 + + 5 END * - - 6 AS col1
----
426

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5861
SELECT - CAST( 84 AS SIGNED ) + + + 25 + + - 36
----
-95

skipif mysql # not compatible
query I rowsort label-5861
SELECT - CAST ( 84 AS INTEGER ) + + + 25 + + - 36
----
-95

query I rowsort
SELECT ALL 75 * - 49
----
-3675

query I rowsort
SELECT - ( + 3 )
----
-3

query I rowsort
SELECT - ( + 4 )
----
-4

query I rowsort
SELECT DISTINCT NULLIF ( - 42, + 20 )
----
-42

query I rowsort
SELECT ALL + 53 + 56
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT + CAST( NULL AS SIGNED ) * + - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5867
SELECT + CAST ( NULL AS INTEGER ) * + - 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT DISTINCT + COUNT( * ) + - + 75 col2
----
-74

skipif mysql # not compatible
query I rowsort label-5868
SELECT DISTINCT + COUNT ( * ) + - + 75 col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT ALL - 81 + - ( 27 ) + COUNT( * ) AS col0
----
-107

skipif mysql # not compatible
query I rowsort label-5869
SELECT ALL - 81 + - ( 27 ) + COUNT ( * ) AS col0
----
-107

query II rowsort
SELECT - 92, + 62 AS col2
----
-92
62

query I rowsort
SELECT - 3 * - ( + 11 ) AS col1
----
33

query I rowsort
SELECT - 38 * + + 85 col0
----
-3230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5873
SELECT + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5873
SELECT + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5874
SELECT - 56 DIV - ( - - 53 )
----
1

skipif mysql # not compatible
query I rowsort label-5874
SELECT - 56 / - ( - - 53 )
----
1

query I rowsort
SELECT 81 * - - 70 - 9
----
5661

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT + MIN( + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-5876
SELECT + MIN ( + 69 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5877
SELECT CAST( NULL AS SIGNED ), - COUNT( * ) + - - CAST( NULL AS SIGNED ) + + - CAST( 14 AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5877
SELECT CAST ( NULL AS INTEGER ), - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + + - CAST ( 14 AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5878
SELECT ALL - 80 * - - 2 * SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL - 80 * - - 2 * SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5879
SELECT - - 74 DIV + + 10 + + + ( - ( 8 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5879
SELECT - - 74 / + + 10 + + + ( - ( 8 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT ALL + - 84 * - 80 + + + COUNT( * ) AS col2
----
6721

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL + - 84 * - 80 + + + COUNT ( * ) AS col2
----
6721

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5881
SELECT - CAST( NULL AS SIGNED ) + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-5881
SELECT - CAST ( NULL AS INTEGER ) + + 88
----
NULL

query I rowsort
SELECT + + 32 AS col1
----
32

query I rowsort
SELECT - - 22 * - - 60
----
1320

query I rowsort
SELECT 64 * - - 87 + + 52 * + NULLIF ( - 21, 80 ) + 32
----
4508

query I rowsort
SELECT ALL + - 60 col0
----
-60

query I rowsort
SELECT + ( + 27 ) AS col0
----
27

query I rowsort
SELECT ALL - + 27 col2
----
-27

query I rowsort
SELECT - 13 col1
----
-13

query I rowsort
SELECT 3 + ( 37 ) AS col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5890
SELECT 34 DIV - - 45 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5890
SELECT 34 / - - 45 + - COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5891
SELECT ALL - + 67 DIV + - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL - + 67 / + - 88 AS col1
----
0

query I rowsort
SELECT - + 80 AS col1
----
-80

query I rowsort
SELECT - + 67
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT - 0 * - 59 + COUNT( * ) + - - SUM( + 70 ) + + 66 * + ( - + 48 )
----
-3097

skipif mysql # not compatible
query I rowsort label-5894
SELECT - 0 * - 59 + COUNT ( * ) + - - SUM ( + 70 ) + + 66 * + ( - + 48 )
----
-3097

onlyif mysql # DIV for integer division: 
query I rowsort label-5895
SELECT 63 DIV - 50 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5895
SELECT 63 / - 50 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5896
SELECT DISTINCT 20, COUNT( * ) AS col0
----
20
1

skipif mysql # not compatible
query II rowsort label-5896
SELECT DISTINCT 20, COUNT ( * ) AS col0
----
20
1

query I rowsort
SELECT 82 + + 45 AS col2
----
127

query I rowsort
SELECT ALL 28 + - 59
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-5899
SELECT 88 DIV + 19
----
4

skipif mysql # not compatible
query I rowsort label-5899
SELECT 88 / + 19
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5900
SELECT DISTINCT - 48 + + - 45 + 91 DIV - - 46
----
-92

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT - 48 + + - 45 + 91 / - - 46
----
-92

query I rowsort
SELECT ALL 35 col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5902
SELECT CASE 16 WHEN + CAST( 56 AS SIGNED ) THEN + 67 WHEN - - 66 THEN NULL ELSE NULL END + - + ( + 18 ) * - CASE ( + COUNT( CAST( NULL AS SIGNED ) ) ) WHEN + 11 THEN NULL WHEN - 44 THEN 27 ELSE NULL END * - NULLIF ( + ( - + COUNT( - 89 ) ), + CAST( - 87 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5902
SELECT CASE 16 WHEN + CAST ( 56 AS INTEGER ) THEN + 67 WHEN - - 66 THEN NULL ELSE NULL END + - + ( + 18 ) * - CASE ( + COUNT ( CAST ( NULL AS INTEGER ) ) ) WHEN + 11 THEN NULL WHEN - 44 THEN 27 ELSE NULL END * - NULLIF ( + ( - + COUNT ( - 89 ) ), + CAST ( - 87 AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5903
SELECT 61, 71 * + COUNT( * ) AS col1
----
61
71

skipif mysql # not compatible
query II rowsort label-5903
SELECT 61, 71 * + COUNT ( * ) AS col1
----
61
71

onlyif mysql # aggregate syntax: 
query II rowsort label-5904
SELECT 13 + + - 32 * SUM( - 41 ), 76 * 8 AS col0
----
1325
608

skipif mysql # not compatible
query II rowsort label-5904
SELECT 13 + + - 32 * SUM ( - 41 ), 76 * 8 AS col0
----
1325
608

query I rowsort
SELECT ALL 50 - + 26
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT NULLIF ( + 19, SUM( ALL - 33 ) ) + + SUM( DISTINCT ( + - 39 ) ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5906
SELECT NULLIF ( + 19, SUM ( ALL - 33 ) ) + + SUM ( DISTINCT ( + - 39 ) ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT ALL COUNT( * ) - + ( - 19 ) - - 59 * + 89 AS col0
----
5271

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL COUNT ( * ) - + ( - 19 ) - - 59 * + 89 AS col0
----
5271

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5908
SELECT ALL 85 * COUNT( * ) DIV 56 * + 56 col0
----
56

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL 85 * COUNT ( * ) / 56 * + 56 col0
----
56

query I rowsort
SELECT ALL - + 11 - + 91 * + 97 - - ( + - 49 ) AS col1
----
-8887

query I rowsort
SELECT - 34 * - 56
----
1904

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5911
SELECT DISTINCT + 7 * + COUNT( * ), - 99 DIV 36 AS col0, 44 AS col0
----
7
-2
44

skipif mysql # not compatible
query III rowsort label-5911
SELECT DISTINCT + 7 * + COUNT ( * ), - 99 / 36 AS col0, 44 AS col0
----
7
-2
44

query I rowsort
SELECT ALL - - ( 35 )
----
35

query I rowsort
SELECT + + 57 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT - COUNT( * ) * 73 + 5 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-5914
SELECT - COUNT ( * ) * 73 + 5 AS col2
----
-68

query I rowsort
SELECT ALL + 57 - - 12
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5916
SELECT + CAST( NULL AS SIGNED ) * - + MAX( 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5916
SELECT + CAST ( NULL AS INTEGER ) * - + MAX ( 88 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5917
SELECT + + CASE WHEN - 47 IN ( + SUM( - CAST( NULL AS SIGNED ) ) / - 92, + 75, - 83, COUNT( * ), - CASE 71 WHEN - - 36 / - - 43 + 67 THEN + - CAST( NULL AS SIGNED ) WHEN CAST( NULL AS DECIMAL ) THEN - COUNT( * ) END * 77 + - + COUNT( * ), + 17 * - 80 + + 17, CASE WHEN + COUNT( * ) IS NULL THEN MIN( ALL + 28 ) - - COUNT( * ) WHEN NOT NULL <= CAST( + 40 AS DECIMAL ) THEN NULL END ) THEN NULL ELSE - + 24 END
----
-24

skipif mysql # not compatible
query I rowsort label-5917
SELECT + + CASE WHEN - 47 IN ( + SUM ( - CAST ( NULL AS INTEGER ) ) / - 92, + 75, - 83, COUNT ( * ), - CASE 71 WHEN - - 36 / - - 43 + 67 THEN + - CAST ( NULL AS INTEGER ) WHEN CAST ( NULL AS REAL ) THEN - COUNT ( * ) END * 77 + - + COUNT ( * ), + 17 * - 80 + + 17, CASE WHEN + COUNT ( * ) IS NULL THEN MIN ( ALL + 28 ) - - COUNT ( * ) WHEN NOT NULL <= CAST ( + 40 AS REAL ) THEN NULL END ) THEN NULL ELSE - + 24 END
----
-24

query I rowsort
SELECT DISTINCT - 21 AS col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5919
SELECT ALL 97 DIV - 41
----
-2

skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL 97 / - 41
----
-2

query I rowsort
SELECT ALL - + 71
----
-71

query I rowsort
SELECT - ( + 87 ) * + + 33
----
-2871

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT 18 * + ( COUNT( + ( + + 49 ) ) ) + - ( + 82 ) * 3 AS col2
----
-228

skipif mysql # not compatible
query I rowsort label-5922
SELECT 18 * + ( COUNT ( + ( + + 49 ) ) ) + - ( + 82 ) * 3 AS col2
----
-228

query I rowsort
SELECT ALL - 72 + - + 36 * + - 26 * + 83
----
77616

query II rowsort
SELECT + 69, 20 col0
----
69
20

query I rowsort
SELECT DISTINCT - 39 + - - 31 AS col1
----
-8

query I rowsort
SELECT ALL - 38 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT + + MAX( ALL + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-5927
SELECT + + MAX ( ALL + 64 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5928
SELECT + CASE + 55 WHEN + CASE - NULLIF ( - - 35, + 36 * + 40 ) WHEN - CASE + + AVG ( + 16 ) WHEN 38 THEN NULL WHEN + 42 THEN CAST( - 15 AS SIGNED ) * - - 44 * - + 57 / 9 + - 36 ELSE NULL END + - MAX( + 98 ) * 81 + - 35 THEN + + 19 WHEN - 95 + + 2 + 33 THEN + 40 * 36 * + 78 / - - 79 END * - 99 * 60 + + 60 * - 13 THEN NULL WHEN + 56 THEN + ( 48 ) WHEN 83 * 66 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5928
SELECT + CASE + 55 WHEN + CASE - NULLIF ( - - 35, + 36 * + 40 ) WHEN - CASE + + AVG ( + 16 ) WHEN 38 THEN NULL WHEN + 42 THEN CAST ( - 15 AS INTEGER ) * - - 44 * - + 57 / 9 + - 36 ELSE NULL END + - MAX ( + 98 ) * 81 + - 35 THEN + + 19 WHEN - 95 + + 2 + 33 THEN + 40 * 36 * + 78 / - - 79 END * - 99 * 60 + + 60 * - 13 THEN NULL WHEN + 56 THEN + ( 48 ) WHEN 83 * 66 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5929
SELECT + COUNT( * ) * + CAST( NULL AS DECIMAL ) + + + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5929
SELECT + COUNT ( * ) * + CAST ( NULL AS REAL ) + + + 44 AS col2
----
NULL

query I rowsort
SELECT ALL - 53 + 84 - - ( + ( - - 60 ) ) * - + 96
----
-5729

query I rowsort
SELECT 23 AS col1
----
23

query I rowsort
SELECT ALL 69
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT 91 * + + MAX( - 3 )
----
-273

skipif mysql # not compatible
query I rowsort label-5933
SELECT 91 * + + MAX ( - 3 )
----
-273

query I rowsort
SELECT - 25 AS col0
----
-25

query I rowsort
SELECT ALL 79 col0
----
79

query I rowsort
SELECT DISTINCT 39 * 89
----
3471

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT DISTINCT - 35 + + COUNT( + + 15 ) - - MAX( ALL + 62 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT - 35 + + COUNT ( + + 15 ) - - MAX ( ALL + 62 ) AS col2
----
28

query I rowsort
SELECT 17 * + + 92 AS col1
----
1564

query I rowsort
SELECT 7 * - 26
----
-182

query I rowsort
SELECT DISTINCT 53 col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT DISTINCT 32 - + + COUNT( * ) col0
----
31

skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT 32 - + + COUNT ( * ) col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT COUNT( * ) * - + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5942
SELECT COUNT ( * ) * - + COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 62
----
62

query I rowsort
SELECT DISTINCT 62 AS col0
----
62

query I rowsort
SELECT + + ( + - 46 ) * - 31 AS col0
----
1426

query I rowsort
SELECT DISTINCT 38 * + - 60 AS col0
----
-2280

query I rowsort
SELECT ALL + 5
----
5

query I rowsort
SELECT ALL + 67 * + 9 * - 82 * ( + + 25 ) col2
----
-1236150

query I rowsort
SELECT - 91 AS col0
----
-91

query I rowsort
SELECT ALL + - 65
----
-65

query I rowsort
SELECT DISTINCT - 34 * + - 18 AS col1
----
612

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT - SUM( 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-5952
SELECT - SUM ( 38 ) AS col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5953
SELECT + CAST( 0 AS SIGNED ) * + 6 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5953
SELECT + CAST ( 0 AS INTEGER ) * + 6 AS col0
----
0

query I rowsort
SELECT ALL 25 * 54 + 75
----
1425

query I rowsort
SELECT + - ( - 60 ) + + 75
----
135

query I rowsort
SELECT 90 * 55 - + 13 AS col1
----
4937

query I rowsort
SELECT + + 21 + - ( - + 95 )
----
116

query I rowsort
SELECT + 76 AS col0
----
76

query I rowsort
SELECT ALL 12 * - 66 + + 19 AS col1
----
-773

query I rowsort
SELECT DISTINCT + 22
----
22

query II rowsort
SELECT - - 40 * 20 AS col2, 89 + + + 44 AS col0
----
800
133

query I rowsort
SELECT + 48 AS col0
----
48

query I rowsort
SELECT 22 AS col0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5964
SELECT ALL + + 0 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL + + 0 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 29 * + - 39 + 70
----
1201

query I rowsort
SELECT ALL + - 11
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-5967
SELECT DISTINCT 81 DIV + 25 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5967
SELECT DISTINCT 81 / + 25 AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5968
SELECT - ( + 13 ) + - CAST( - 47 AS SIGNED ) - + - 0 * - CAST( + 53 AS SIGNED ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-5968
SELECT - ( + 13 ) + - CAST ( - 47 AS INTEGER ) - + - 0 * - CAST ( + 53 AS INTEGER ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-5969
SELECT COUNT( * ) AS col1, - 86 AS col0
----
1
-86

skipif mysql # not compatible
query II rowsort label-5969
SELECT COUNT ( * ) AS col1, - 86 AS col0
----
1
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5970
SELECT ALL 16 DIV - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL 16 / - COUNT ( * )
----
-16

query I rowsort
SELECT DISTINCT + ( 21 ) AS col0
----
21

query I rowsort
SELECT ALL + 78 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT SUM( DISTINCT 81 )
----
81

skipif mysql # not compatible
query I rowsort label-5973
SELECT SUM ( DISTINCT 81 )
----
81

query I rowsort
SELECT - ( - 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT - 39 + + ( + 38 ) * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5975
SELECT - 39 + + ( + 38 ) * + COUNT ( * )
----
-1

query I rowsort
SELECT ALL - 31 * - 87 AS col1
----
2697

query II rowsort
SELECT - 35, 47 AS col2
----
-35
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT - COUNT( * ) + - + 65
----
-66

skipif mysql # not compatible
query I rowsort label-5978
SELECT - COUNT ( * ) + - + 65
----
-66

query I rowsort
SELECT - 44 + 92
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-5980
SELECT ALL COUNT( * ) AS col0, 59
----
1
59

skipif mysql # not compatible
query II rowsort label-5980
SELECT ALL COUNT ( * ) AS col0, 59
----
1
59

query I rowsort
SELECT 24 AS col0
----
24

query I rowsort
SELECT ALL ( 33 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5983
SELECT ALL COALESCE ( + - CAST( + - 61 AS SIGNED ), - 58 )
----
61

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL COALESCE ( + - CAST ( + - 61 AS INTEGER ), - 58 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5984
SELECT ALL CASE + NULLIF ( 34, 7 ) WHEN 18 * + 98 + - COUNT( * ) * + 14 THEN CAST( NULL AS SIGNED ) WHEN + 79 * + 61 + + + MIN( - ( + 81 ) ) + - ( + 39 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL CASE + NULLIF ( 34, 7 ) WHEN 18 * + 98 + - COUNT ( * ) * + 14 THEN CAST ( NULL AS INTEGER ) WHEN + 79 * + 61 + + + MIN ( - ( + 81 ) ) + - ( + 39 ) THEN NULL END
----
NULL

query I rowsort
SELECT - 73 * NULLIF ( + - 69, 37 ) AS col2
----
5037

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT ALL 85 * + ( - NULLIF ( - - 22, 42 * + + SUM( + + 44 ) ) ) col0
----
-1870

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL 85 * + ( - NULLIF ( - - 22, 42 * + + SUM ( + + 44 ) ) ) col0
----
-1870

query I rowsort
SELECT - 91 - 38 AS col0
----
-129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5988
SELECT - 61 + - - MAX( + 6 ) DIV - 46
----
-61

skipif mysql # not compatible
query I rowsort label-5988
SELECT - 61 + - - MAX ( + 6 ) / - 46
----
-61

query I rowsort
SELECT + + 63 + - 32 + + - NULLIF ( - 55, - - 69 + - 58 ) * + + 40 col1
----
2231

query I rowsort
SELECT ALL + 57 * - 16 * + 45 AS col0
----
-41040

query I rowsort
SELECT + 43 * 36 + + + 39 + + 68
----
1655

query I rowsort
SELECT - 63 col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT - 96 + + - COUNT( * ) * + COALESCE ( ( + ( 8 ) ), - + 64 * + COUNT( * ) * - 72, 75 + - 15 ) col2
----
-104

skipif mysql # not compatible
query I rowsort label-5993
SELECT - 96 + + - COUNT ( * ) * + COALESCE ( ( + ( 8 ) ), - + 64 * + COUNT ( * ) * - 72, 75 + - 15 ) col2
----
-104

query I rowsort
SELECT - - 32
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5995
SELECT ALL + 74 DIV - 13 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL + 74 / - 13 AS col2
----
-5

query I rowsort
SELECT ALL + - ( 6 )
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-5997
SELECT + + 11 + - 77 + - 15 + - 65 + 54 * - 89, - COUNT( * ) - - 53 + - 18 + + - 45 AS col1
----
-4952
-11

skipif mysql # not compatible
query II rowsort label-5997
SELECT + + 11 + - 77 + - 15 + - 65 + 54 * - 89, - COUNT ( * ) - - 53 + - 18 + + - 45 AS col1
----
-4952
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-5998
SELECT DISTINCT + 68 AS col1, 86 * + - COUNT( * )
----
68
-86

skipif mysql # not compatible
query II rowsort label-5998
SELECT DISTINCT + 68 AS col1, 86 * + - COUNT ( * )
----
68
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT - + COUNT( * ) * - + COALESCE ( 78, - 54 )
----
78

skipif mysql # not compatible
query I rowsort label-5999
SELECT - + COUNT ( * ) * - + COALESCE ( 78, - 54 )
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-6000
SELECT + + COUNT( * ) + 51 * - - 39 AS col1, + COUNT( * ) + + 16
----
1990
17

skipif mysql # not compatible
query II rowsort label-6000
SELECT + + COUNT ( * ) + 51 * - - 39 AS col1, + COUNT ( * ) + + 16
----
1990
17

query I rowsort
SELECT + - 19 AS col1
----
-19

query I rowsort
SELECT - ( 35 )
----
-35

query I rowsort
SELECT + 26 * + + 2 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT ALL + + SUM( DISTINCT 81 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL + + SUM ( DISTINCT 81 ) AS col2
----
81

query I rowsort
SELECT DISTINCT + 70
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6006
SELECT DISTINCT - COUNT( * ) * - 2 + - - CASE 31 WHEN + 33 * + - COUNT( * ) THEN NULL WHEN + SUM( - + CAST( - 28 AS SIGNED ) ) THEN - 26 / 50 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT - COUNT ( * ) * - 2 + - - CASE 31 WHEN + 33 * + - COUNT ( * ) THEN NULL WHEN + SUM ( - + CAST ( - 28 AS INTEGER ) ) THEN - 26 / 50 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + + 79 AS col2, - 40
----
79
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6008
SELECT + ( + COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT + 33
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT + 87 * + + SUM( - 33 )
----
-2871

skipif mysql # not compatible
query I rowsort label-6010
SELECT + 87 * + + SUM ( - 33 )
----
-2871

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT DISTINCT + COUNT( ALL 9 )
----
1

skipif mysql # not compatible
query I rowsort label-6011
SELECT DISTINCT + COUNT ( ALL 9 )
----
1

query I rowsort
SELECT + COALESCE ( - 39, + - 8 ) AS col2
----
-39

query I rowsort
SELECT ALL + 52 AS col1
----
52

query I rowsort
SELECT + ( + 78 ) AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6015
SELECT + CAST( + + ( - ( - 88 ) ) AS SIGNED ) * - 87
----
-7656

skipif mysql # not compatible
query I rowsort label-6015
SELECT + CAST ( + + ( - ( - 88 ) ) AS INTEGER ) * - 87
----
-7656

onlyif mysql # aggregate syntax: 
query II rowsort label-6016
SELECT DISTINCT + SUM( DISTINCT - 77 ) AS col1, + 0 + + - 42
----
-77
-42

skipif mysql # not compatible
query II rowsort label-6016
SELECT DISTINCT + SUM ( DISTINCT - 77 ) AS col1, + 0 + + - 42
----
-77
-42

query I rowsort
SELECT CASE + 32 WHEN - 19 THEN 32 + - 75 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6018
SELECT ALL + CAST( + 2 AS SIGNED ) DIV - CAST( COUNT( * ) AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL + CAST ( + 2 AS INTEGER ) / - CAST ( COUNT ( * ) AS INTEGER )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6019
SELECT + 3 - ( COUNT( DISTINCT + 36 ) ), ( + CAST( NULL AS SIGNED ) ) * 72 / - 8 AS col1
----
2
NULL

skipif mysql # not compatible
query II rowsort label-6019
SELECT + 3 - ( COUNT ( DISTINCT + 36 ) ), ( + CAST ( NULL AS INTEGER ) ) * 72 / - 8 AS col1
----
2
NULL

query I rowsort
SELECT ALL 88 AS col1
----
88

query I rowsort
SELECT DISTINCT 39 AS col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6022
SELECT DISTINCT COALESCE ( + + 12, + - 94 * + - 80 + MAX( 98 ), + COALESCE ( - 49, + - 85, + 98 ) * COUNT( + 3 ), + + ( - 62 ) ) DIV + + 63 * + - 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6022
SELECT DISTINCT COALESCE ( + + 12, + - 94 * + - 80 + MAX ( 98 ), + COALESCE ( - 49, + - 85, + 98 ) * COUNT ( + 3 ), + + ( - 62 ) ) / + + 63 * + - 66 AS col2
----
0

query I rowsort
SELECT ALL ( + + 39 ) * - 49
----
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT + 44 + MAX( + 17 ) * - + 94 * 34 AS col2
----
-54288

skipif mysql # not compatible
query I rowsort label-6024
SELECT + 44 + MAX ( + 17 ) * - + 94 * 34 AS col2
----
-54288

query I rowsort
SELECT + 61 * - 44 AS col2
----
-2684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6026
SELECT - MAX( 46 ) + 62 + - CAST( NULL AS SIGNED ) AS col1, COUNT( * ) * + 73
----
NULL
73

skipif mysql # not compatible
query II rowsort label-6026
SELECT - MAX ( 46 ) + 62 + - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * + 73
----
NULL
73

onlyif mysql # aggregate syntax: 
query II rowsort label-6027
SELECT ALL - 28 + - + 56 * - SUM( DISTINCT 55 ) AS col2, + MIN( ALL + 60 )
----
3052
60

skipif mysql # not compatible
query II rowsort label-6027
SELECT ALL - 28 + - + 56 * - SUM ( DISTINCT 55 ) AS col2, + MIN ( ALL + 60 )
----
3052
60

query I rowsort
SELECT - + 39 AS col0
----
-39

query I rowsort
SELECT 34
----
34

query I rowsort
SELECT - 53 col0
----
-53

query II rowsort
SELECT ALL - COALESCE ( - + 43, ( + 11 ) ) AS col0, - 40 AS col1
----
43
-40

query I rowsort
SELECT DISTINCT ( + 25 ) + - + 24
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6033
SELECT ALL + 45 * + + 58 * - - COUNT( ALL - 26 ), 66 * - - 89 AS col1
----
2610
5874

skipif mysql # not compatible
query II rowsort label-6033
SELECT ALL + 45 * + + 58 * - - COUNT ( ALL - 26 ), 66 * - - 89 AS col1
----
2610
5874

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT DISTINCT - - ( MIN( ALL - + 87 ) ) + + 71 col0
----
-16

skipif mysql # not compatible
query I rowsort label-6034
SELECT DISTINCT - - ( MIN ( ALL - + 87 ) ) + + 71 col0
----
-16

query I rowsort
SELECT DISTINCT 98 AS col0
----
98

query I rowsort
SELECT - 60 + + ( - 22 ) AS col0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6037
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6037
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT ALL + - 58 * COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL + - 58 * COUNT ( * ) AS col0
----
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-6039
SELECT 57 DIV + ( + + 2 ) + - 77 AS col1, 70 AS col1
----
-49
70

skipif mysql # not compatible
query II rowsort label-6039
SELECT 57 / + ( + + 2 ) + - 77 AS col1, 70 AS col1
----
-49
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6040
SELECT DISTINCT + 51 * + CAST( NULL AS DECIMAL ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6040
SELECT DISTINCT + 51 * + CAST ( NULL AS REAL ) * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 93 + - 45 AS col0
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6042
SELECT - CAST( NULL AS SIGNED ) * 2 - - + 91 + - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-6042
SELECT - CAST ( NULL AS INTEGER ) * 2 - - + 91 + - 79
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6043
SELECT + - 86 DIV - CAST( NULL AS DECIMAL ) - - 90 + + 98, - 51 DIV - 61 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6043
SELECT + - 86 / - CAST ( NULL AS REAL ) - - 90 + + 98, - 51 / - 61 AS col2
----
NULL
0

query I rowsort
SELECT ALL - + 49
----
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6045
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * - ( + + 10 ) + + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT - + CAST ( NULL AS REAL ) * - ( + + 10 ) + + 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT ALL + + MAX( + 21 ) - - - 56 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL + + MAX ( + 21 ) - - - 56 AS col1
----
-35

query I rowsort
SELECT - 94 AS col1
----
-94

query I rowsort
SELECT + - 72
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6049
SELECT DISTINCT + 0 - + COALESCE ( 10, - + ( + 95 ) * + ( 19 ) * - COALESCE ( + 46, + CAST( + 51 AS SIGNED ), - - 75 * - 36 DIV ( - 70 ) ) + + - 47 * + COUNT( + - 89 ) ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-6049
SELECT DISTINCT + 0 - + COALESCE ( 10, - + ( + 95 ) * + ( 19 ) * - COALESCE ( + 46, + CAST ( + 51 AS INTEGER ), - - 75 * - 36 / ( - 70 ) ) + + - 47 * + COUNT ( + - 89 ) ) AS col1
----
-10

query I rowsort
SELECT ALL - 43 AS col1
----
-43

query I rowsort
SELECT 81 + - 22
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6052
SELECT - COALESCE ( 90, + MAX( ALL + 4 ), - + ( - 56 ) * - NULLIF ( - 11, + MAX( DISTINCT + 86 ) * - COALESCE ( - COALESCE ( 42, 44 ), + CASE 85 WHEN + - ( 30 ) THEN - NULLIF ( + 17, - 65 ) * + + NULLIF ( - SUM( DISTINCT 95 ), 32 + + + NULLIF ( + COUNT( * ), - MIN( + 86 ) * - MIN( DISTINCT + 44 ) ) * - 47 + + 36 ) + - 55 + + + ( + - CASE - 21 WHEN - + 71 / + 61 * 6 THEN NULL WHEN + 86 - + 65 * - 78 THEN NULL WHEN 75 THEN + COALESCE ( - 55, 2 * ( SUM( + ( 79 ) ) ) + 27 * 51 ) * ( + 71 * 69 + + COALESCE ( + 72, - 5 / 3, + NULLIF ( 5, 4 * - COUNT( * ) ) * - COUNT( * ) - - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) ) ) + + 40 END ) - + 46 * 75 WHEN + 9 THEN + 67 * - 45 + + 12 ELSE NULL END - 41 ) + - ( - COALESCE ( 13, 43 ) + COALESCE ( + 50, + 28 + COUNT( ALL - 16 ) ) ) ) + 6 * 7 ) * 21 - - 92 col0
----
-1798

skipif mysql # not compatible
query I rowsort label-6052
SELECT - COALESCE ( 90, + MAX ( ALL + 4 ), - + ( - 56 ) * - NULLIF ( - 11, + MAX ( DISTINCT + 86 ) * - COALESCE ( - COALESCE ( 42, 44 ), + CASE 85 WHEN + - ( 30 ) THEN - NULLIF ( + 17, - 65 ) * + + NULLIF ( - SUM ( DISTINCT 95 ), 32 + + + NULLIF ( + COUNT ( * ), - MIN ( + 86 ) * - MIN ( DISTINCT + 44 ) ) * - 47 + + 36 ) + - 55 + + + ( + - CASE - 21 WHEN - + 71 / + 61 * 6 THEN NULL WHEN + 86 - + 65 * - 78 THEN NULL WHEN 75 THEN + COALESCE ( - 55, 2 * ( SUM ( + ( 79 ) ) ) + 27 * 51 ) * ( + 71 * 69 + + COALESCE ( + 72, - 5 / 3, + NULLIF ( 5, 4 * - COUNT ( * ) ) * - COUNT ( * ) - - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) ) + + 40 END ) - + 46 * 75 WHEN + 9 THEN + 67 * - 45 + + 12 ELSE NULL END - 41 ) + - ( - COALESCE ( 13, 43 ) + COALESCE ( + 50, + 28 + COUNT ( ALL - 16 ) ) ) ) + 6 * 7 ) * 21 - - 92 col0
----
-1798

query I rowsort
SELECT ALL - ( - + 45 )
----
45

onlyif mysql # aggregate syntax: 
query III rowsort label-6054
SELECT 26 - 81 + - - CASE NULLIF ( - 59, 17 ) WHEN 49 * + 80 THEN + 76 ELSE + 28 END, + 21 * ( + 71 ) AS col0, + + 18 + CASE - 51 WHEN - COALESCE ( + 0, MIN( DISTINCT + + 21 ) ) + - - 14 * - + 73 THEN - - COUNT( * ) ELSE NULL END AS col2
----
-27
1491
NULL

skipif mysql # not compatible
query III rowsort label-6054
SELECT 26 - 81 + - - CASE NULLIF ( - 59, 17 ) WHEN 49 * + 80 THEN + 76 ELSE + 28 END, + 21 * ( + 71 ) AS col0, + + 18 + CASE - 51 WHEN - COALESCE ( + 0, MIN ( DISTINCT + + 21 ) ) + - - 14 * - + 73 THEN - - COUNT ( * ) ELSE NULL END AS col2
----
-27
1491
NULL

query II rowsort
SELECT 39, + 22 * - 66 + + 34 AS col2
----
39
-1418

query I rowsort
SELECT DISTINCT - 68 AS col2
----
-68

query I rowsort
SELECT ALL - 71
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT COUNT( * ) * 63 col1
----
63

skipif mysql # not compatible
query I rowsort label-6058
SELECT COUNT ( * ) * 63 col1
----
63

query I rowsort
SELECT ALL - 45 AS col1
----
-45

query I rowsort
SELECT ALL - 87
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT ALL + COALESCE ( + 75, - + COALESCE ( 96, - 42, + 43 * - ( 31 ) ), - + COUNT( * ) ) * - ( + 11 ) AS col0
----
-825

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL + COALESCE ( + 75, - + COALESCE ( 96, - 42, + 43 * - ( 31 ) ), - + COUNT ( * ) ) * - ( + 11 ) AS col0
----
-825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6062
SELECT ( + - 83 ) * + CAST( NULL AS SIGNED ) + + 33 + - 63 * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-6062
SELECT ( + - 83 ) * + CAST ( NULL AS INTEGER ) + + 33 + - 63 * 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT 35 + + - MIN( DISTINCT 50 ) * - + 57
----
2885

skipif mysql # not compatible
query I rowsort label-6063
SELECT 35 + + - MIN ( DISTINCT 50 ) * - + 57
----
2885

query I rowsort
SELECT ALL - 77 AS col0
----
-77

query I rowsort
SELECT 49 AS col1
----
49

query I rowsort
SELECT - 97 AS col0
----
-97

query II rowsort
SELECT ALL 98 AS col1, 27
----
98
27

query I rowsort
SELECT COALESCE ( + 26, - 13 ) * + 22 AS col1
----
572

query I rowsort
SELECT 63 AS col2
----
63

query I rowsort
SELECT - 54 AS col2
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-6071
SELECT ALL 49 + + 60 DIV 80 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-6071
SELECT ALL 49 + + 60 / 80 AS col1
----
49

query I rowsort
SELECT ALL 7
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6073
SELECT 77 DIV + MIN( + 97 ) * + + 44 - + 18 + - 63 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-6073
SELECT 77 / + MIN ( + 97 ) * + + 44 - + 18 + - 63 AS col1
----
-81

query I rowsort
SELECT - - 69 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT ALL COUNT( * ) + - COUNT( 39 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL COUNT ( * ) + - COUNT ( 39 ) AS col0
----
0

query I rowsort
SELECT ALL - 58 + + 4 + + 28
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6077
SELECT DISTINCT + 47 * - NULLIF ( + - 86, CAST( NULL AS SIGNED ) )
----
4042

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT + 47 * - NULLIF ( + - 86, CAST ( NULL AS INTEGER ) )
----
4042

query I rowsort
SELECT ALL + 36 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT MIN( DISTINCT + + 67 ) + 35
----
102

skipif mysql # not compatible
query I rowsort label-6079
SELECT MIN ( DISTINCT + + 67 ) + 35
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6080
SELECT + 14 - 9 DIV 94 DIV - COUNT( * ) * + + CAST( - + 87 AS SIGNED ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-6080
SELECT + 14 - 9 / 94 / - COUNT ( * ) * + + CAST ( - + 87 AS INTEGER ) AS col0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6081
SELECT 39 * COALESCE ( + 67, - COUNT( * ), + 89 + - + 79 ), 24 - + ( CASE - 83 WHEN - ( + 74 ) THEN NULL WHEN - + CAST( NULL AS SIGNED ) THEN + 17 - + + 45 ELSE NULL END ) AS col0
----
2613
NULL

skipif mysql # not compatible
query II rowsort label-6081
SELECT 39 * COALESCE ( + 67, - COUNT ( * ), + 89 + - + 79 ), 24 - + ( CASE - 83 WHEN - ( + 74 ) THEN NULL WHEN - + CAST ( NULL AS INTEGER ) THEN + 17 - + + 45 ELSE NULL END ) AS col0
----
2613
NULL

query I rowsort
SELECT ALL 88 * 8 AS col0
----
704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6083
SELECT - 58 + 59 - + COUNT( * ) - 75 * + 11, 72 * - CASE - - CAST( NULL AS SIGNED ) WHEN + 35 + CASE + - 49 WHEN - CAST( - + COUNT( + 29 ) AS SIGNED ) - - 89 + - + 26 THEN + 58 ELSE NULL END THEN + COUNT( * ) ELSE NULL END AS col2
----
-825
NULL

skipif mysql # not compatible
query II rowsort label-6083
SELECT - 58 + 59 - + COUNT ( * ) - 75 * + 11, 72 * - CASE - - CAST ( NULL AS INTEGER ) WHEN + 35 + CASE + - 49 WHEN - CAST ( - + COUNT ( + 29 ) AS INTEGER ) - - 89 + - + 26 THEN + 58 ELSE NULL END THEN + COUNT ( * ) ELSE NULL END AS col2
----
-825
NULL

query I rowsort
SELECT - CASE - - ( + 43 ) WHEN - 51 * + 83 THEN NULL ELSE 46 END col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT ALL + 22 + - COUNT( ALL + + NULLIF ( + 33, - 70 ) ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL + 22 + - COUNT ( ALL + + NULLIF ( + 33, - 70 ) ) AS col1
----
21

query II rowsort
SELECT + 81 + - 94 + - 26 AS col1, 44 - - 80 AS col1
----
-39
124

query I rowsort
SELECT ALL 44 AS col0
----
44

query I rowsort
SELECT DISTINCT 89
----
89

query II rowsort
SELECT DISTINCT - + 0 AS col0, + 65 AS col1
----
0
65

query I rowsort
SELECT + + 74 AS col2
----
74

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6091
SELECT DISTINCT - CASE + 60 WHEN - 96 THEN NULL WHEN + 2 THEN NULL ELSE - 29 * - CAST( NULL AS DECIMAL ) END * - - 28, 67 * + + 25 AS col0
----
NULL
1675

skipif mysql # not compatible
query II rowsort label-6091
SELECT DISTINCT - CASE + 60 WHEN - 96 THEN NULL WHEN + 2 THEN NULL ELSE - 29 * - CAST ( NULL AS REAL ) END * - - 28, 67 * + + 25 AS col0
----
NULL
1675

query I rowsort
SELECT + 65 col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT 0 * MIN( 75 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6093
SELECT 0 * MIN ( 75 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6094
SELECT 8 DIV + 13 + + 75 - 64
----
11

skipif mysql # not compatible
query I rowsort label-6094
SELECT 8 / + 13 + + 75 - 64
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT ALL - 72 * + - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL - 72 * + - COUNT ( * )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6096
SELECT 7 DIV 48 DIV - + 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6096
SELECT 7 / 48 / - + 44 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6097
SELECT 42 DIV 16 * 56 * - COALESCE ( 64, - - 95, 92 * + + 68 * COUNT( * ) + - 91 ) AS col0
----
-7168

skipif mysql # not compatible
query I rowsort label-6097
SELECT 42 / 16 * 56 * - COALESCE ( 64, - - 95, 92 * + + 68 * COUNT ( * ) + - 91 ) AS col0
----
-7168

onlyif mysql # aggregate syntax: 
query II rowsort label-6098
SELECT ALL - COUNT( * ) AS col0, - CASE + - COUNT( * ) WHEN + - 36 THEN + + 9 WHEN ( + 26 ) + - - ( - 5 ) + - - 73 THEN NULL ELSE NULL END AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6098
SELECT ALL - COUNT ( * ) AS col0, - CASE + - COUNT ( * ) WHEN + - 36 THEN + + 9 WHEN ( + 26 ) + - - ( - 5 ) + - - 73 THEN NULL ELSE NULL END AS col2
----
-1
NULL

query I rowsort
SELECT DISTINCT - 90 * + 93
----
-8370

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT DISTINCT + COUNT( * ) * - 69 col1
----
-69

skipif mysql # not compatible
query I rowsort label-6100
SELECT DISTINCT + COUNT ( * ) * - 69 col1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-6101
SELECT DISTINCT 9 DIV - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6101
SELECT DISTINCT 9 / - 93 AS col2
----
0

query I rowsort
SELECT ALL - 6 AS col1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6103
SELECT + 86, - CAST( NULL AS SIGNED ) + - 93 + + 93 * - 97 col1
----
86
NULL

skipif mysql # not compatible
query II rowsort label-6103
SELECT + 86, - CAST ( NULL AS INTEGER ) + - 93 + + 93 * - 97 col1
----
86
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6104
SELECT COUNT( * ) AS col1, + 49 AS col1
----
1
49

skipif mysql # not compatible
query II rowsort label-6104
SELECT COUNT ( * ) AS col1, + 49 AS col1
----
1
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT + ( - - 58 ) * - 29 * - MAX( - 41 ) AS col0
----
-68962

skipif mysql # not compatible
query I rowsort label-6105
SELECT + ( - - 58 ) * - 29 * - MAX ( - 41 ) AS col0
----
-68962

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT ALL 8 + 69 + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL 8 + 69 + COUNT ( * )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT DISTINCT - ( - COUNT( DISTINCT 73 ) ) + - ( + 60 )
----
-59

skipif mysql # not compatible
query I rowsort label-6107
SELECT DISTINCT - ( - COUNT ( DISTINCT 73 ) ) + - ( + 60 )
----
-59

query I rowsort
SELECT ALL 2 * + 47 AS col1
----
94

query I rowsort
SELECT + 8 * 10 * 93
----
7440

query II rowsort
SELECT ALL + 9 + + 52, + 2 AS col2
----
61
2

query I rowsort
SELECT DISTINCT - - 16 * + - 88 col0
----
-1408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6112
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6112
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 18 * - - 69
----
-1242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6114
SELECT - - 12 DIV + - COUNT( - 53 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-6114
SELECT - - 12 / + - COUNT ( - 53 ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT + + 32 + COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-6115
SELECT + + 32 + COUNT ( * ) AS col1
----
33

query I rowsort
SELECT - ( - - 99 ) AS col1
----
-99

query I rowsort
SELECT - 89 col2
----
-89

query II rowsort
SELECT ALL 0, 18 col2
----
0
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6119
SELECT ALL 48 - - 16 * + - COUNT( - - 75 ) DIV - + 65 + - 56 + + + 10 * - 96 + + + 58 DIV 65 + - 34 + + 70 + + 26 * - - 31 * + 34 AS col0
----
26472

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL 48 - - 16 * + - COUNT ( - - 75 ) / - + 65 + - 56 + + + 10 * - 96 + + + 58 / 65 + - 34 + + 70 + + 26 * - - 31 * + 34 AS col0
----
26472

query I rowsort
SELECT ALL 22 * 19
----
418

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6121
SELECT + 73 col2, - CAST( NULL AS SIGNED ) AS col1
----
73
NULL

skipif mysql # not compatible
query II rowsort label-6121
SELECT + 73 col2, - CAST ( NULL AS INTEGER ) AS col1
----
73
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6122
SELECT ALL 62 DIV + 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL 62 / + 64 AS col0
----
0

query I rowsort
SELECT ALL - 22 AS col2
----
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-6124
SELECT DISTINCT - 74 DIV 80 * + 24 DIV - 97 AS col2, 80 AS col0
----
0
80

skipif mysql # not compatible
query II rowsort label-6124
SELECT DISTINCT - 74 / 80 * + 24 / - 97 AS col2, 80 AS col0
----
0
80

query I rowsort
SELECT DISTINCT - ( 62 )
----
-62

query II rowsort
SELECT - - 86, 60 AS col2
----
86
60

onlyif mysql # aggregate syntax: 
query II rowsort label-6127
SELECT - COALESCE ( COUNT( * ), - - ( + + 44 ), + MIN( DISTINCT + 4 ) ) AS col2, COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-6127
SELECT - COALESCE ( COUNT ( * ), - - ( + + 44 ), + MIN ( DISTINCT + 4 ) ) AS col2, COUNT ( * )
----
-1
1

onlyif mysql # aggregate syntax: 
query III rowsort label-6128
SELECT 86 AS col1, ( 58 ) * 69 * - ( - - 12 ) - + MIN( ALL + ( + 68 ) ) AS col1, + 30
----
86
-48092
30

skipif mysql # not compatible
query III rowsort label-6128
SELECT 86 AS col1, ( 58 ) * 69 * - ( - - 12 ) - + MIN ( ALL + ( + 68 ) ) AS col1, + 30
----
86
-48092
30

query I rowsort
SELECT ALL + 50 * - - 88 * + + 48 col1
----
211200

onlyif mysql # DIV for integer division: 
query I rowsort label-6130
SELECT - 17 DIV 42 * 47 DIV - - 96 - + + 12
----
-12

skipif mysql # not compatible
query I rowsort label-6130
SELECT - 17 / 42 * 47 / - - 96 - + + 12
----
-12

query I rowsort
SELECT ( + 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT DISTINCT + MIN( - + 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-6132
SELECT DISTINCT + MIN ( - + 65 )
----
-65

query I rowsort
SELECT - 81 + 34
----
-47

query I rowsort
SELECT ALL + 61 AS col1
----
61

query I rowsort
SELECT DISTINCT + 65
----
65

query I rowsort
SELECT ALL - 41 * - 79 AS col1
----
3239

query I rowsort
SELECT ALL + 77 col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6138
SELECT - 27 - + - CAST( NULL AS SIGNED ) / - + COUNT( * ) * + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6138
SELECT - 27 - + - CAST ( NULL AS INTEGER ) / - + COUNT ( * ) * + 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT ALL - COUNT( * ) * - 58 + + 53 AS col1
----
111

skipif mysql # not compatible
query I rowsort label-6139
SELECT ALL - COUNT ( * ) * - 58 + + 53 AS col1
----
111

query I rowsort
SELECT NULLIF ( + + 51, 44 * - - 84 ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT COALESCE ( + + COUNT( * ), + ( + 67 ), + SUM( DISTINCT - 57 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6141
SELECT COALESCE ( + + COUNT ( * ), + ( + 67 ), + SUM ( DISTINCT - 57 ) ) col0
----
1

query I rowsort
SELECT DISTINCT - 24 * + 90
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT DISTINCT - ( - - COUNT( * ) ) * + + 31 + - + 89 + + - 39 + + 86 + + 84
----
11

skipif mysql # not compatible
query I rowsort label-6143
SELECT DISTINCT - ( - - COUNT ( * ) ) * + + 31 + - + 89 + + - 39 + + 86 + + 84
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6144
SELECT ALL + CAST( NULL AS SIGNED ) * - 53 * + + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL + CAST ( NULL AS INTEGER ) * - 53 * + + 5 AS col2
----
NULL

query I rowsort
SELECT + 52 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT DISTINCT + COUNT( * ) * - 21
----
-21

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT + COUNT ( * ) * - 21
----
-21

query I rowsort
SELECT ALL - 70 * - + 66 AS col0
----
4620

query I rowsort
SELECT - + 52 * 55 AS col0
----
-2860

query I rowsort
SELECT ALL + ( + - 40 )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6150
SELECT - 18 * CAST( NULL AS SIGNED ) + + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6150
SELECT - 18 * CAST ( NULL AS INTEGER ) + + 6 AS col2
----
NULL

query I rowsort
SELECT - - 83 * + 33
----
2739

query I rowsort
SELECT - ( + 2 )
----
-2

query I rowsort
SELECT - 44 AS col0
----
-44

query I rowsort
SELECT - + 7 AS col1
----
-7

query I rowsort
SELECT DISTINCT - 81 AS col0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6156
SELECT - 54 * COUNT( * ) DIV + COUNT( * ) + - 71 + 43 DIV 99 AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-6156
SELECT - 54 * COUNT ( * ) / + COUNT ( * ) + - 71 + 43 / 99 AS col0
----
-125

query I rowsort
SELECT - + NULLIF ( 70, 24 ) + - NULLIF ( 97, + - 67 ) AS col0
----
-167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6158
SELECT ALL - - COUNT( * ) - CAST( - 59 AS SIGNED ) col2
----
60

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL - - COUNT ( * ) - CAST ( - 59 AS INTEGER ) col2
----
60

query I rowsort
SELECT - - 25 + 21 + 66 AS col1
----
112

query I rowsort
SELECT DISTINCT 73
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT - NULLIF ( - 95, + 50 * - 75 + - + 93 * + COUNT( * ) * 15 )
----
95

skipif mysql # not compatible
query I rowsort label-6161
SELECT - NULLIF ( - 95, + 50 * - 75 + - + 93 * + COUNT ( * ) * 15 )
----
95

query I rowsort
SELECT ALL - 99 AS col2
----
-99

query I rowsort
SELECT - - 88 AS col0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6164
SELECT + 83 DIV 63 * + COALESCE ( + - NULLIF ( + 28, - COALESCE ( - COUNT( * ), - 52 * + - 60 * + AVG ( - 73 ) ) + MAX( 37 ) ), 43 ) + + 5 DIV 76
----
-28

skipif mysql # not compatible
query I rowsort label-6164
SELECT + 83 / 63 * + COALESCE ( + - NULLIF ( + 28, - COALESCE ( - COUNT ( * ), - 52 * + - 60 * + AVG ( - 73 ) ) + MAX ( 37 ) ), 43 ) + + 5 / 76
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6165
SELECT ALL CASE + + 77 WHEN + 99 + 54 THEN + 99 ELSE + COUNT( * ) END DIV - 71 * + 26 + 36 * - + 39 AS col0
----
-1404

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL CASE + + 77 WHEN + 99 + 54 THEN + 99 ELSE + COUNT ( * ) END / - 71 * + 26 + 36 * - + 39 AS col0
----
-1404

query I rowsort
SELECT ALL 14 AS col0
----
14

query I rowsort
SELECT + 81 + - - 55 AS col2
----
136

query I rowsort
SELECT DISTINCT + 68
----
68

onlyif mysql # DIV for integer division: 
query II rowsort label-6169
SELECT ALL 39 + + 67 - - 71 DIV + 28 AS col2, 14 AS col2
----
108
14

skipif mysql # not compatible
query II rowsort label-6169
SELECT ALL 39 + + 67 - - 71 / + 28 AS col2, 14 AS col2
----
108
14

query I rowsort
SELECT ALL - 87 AS col0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6171
SELECT ALL CAST( NULL AS SIGNED ) + - 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6171
SELECT ALL CAST ( NULL AS INTEGER ) + - 60 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 92 * + 95 AS col1
----
8740

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT 70 + COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6173
SELECT 70 + COUNT ( * ) AS col2
----
71

query I rowsort
SELECT ALL + 83 + 13 AS col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6175
SELECT + 93 AS col1, 24 + + COUNT( * ) AS col2
----
93
25

skipif mysql # not compatible
query II rowsort label-6175
SELECT + 93 AS col1, 24 + + COUNT ( * ) AS col2
----
93
25

query I rowsort
SELECT ALL - 86 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT DISTINCT MIN( - 47 ) * - 4 AS col2
----
188

skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT MIN ( - 47 ) * - 4 AS col2
----
188

query II rowsort
SELECT DISTINCT - 99, 18 col0
----
-99
18

query I rowsort
SELECT ALL - 2 AS col2
----
-2

query II rowsort
SELECT ALL 49 + 42 * 41 AS col0, 59
----
1771
59

query II rowsort
SELECT 8, + 64 * + - 25 AS col0
----
8
-1600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6182
SELECT + 92 * - - 77 - 70 + 87 + - CAST( 63 AS SIGNED ) * - COUNT( * ) * + - 85
----
1746

skipif mysql # not compatible
query I rowsort label-6182
SELECT + 92 * - - 77 - 70 + 87 + - CAST ( 63 AS INTEGER ) * - COUNT ( * ) * + - 85
----
1746

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6183
SELECT 75 + + COUNT( * ) DIV - 82, + 62 AS col0
----
75
62

skipif mysql # not compatible
query II rowsort label-6183
SELECT 75 + + COUNT ( * ) / - 82, + 62 AS col0
----
75
62

query II rowsort
SELECT + 28 AS col0, 32
----
28
32

query I rowsort
SELECT ALL - 26 - + + 41
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-6186
SELECT DISTINCT + + COUNT( * ) * - - 0 * + ( + 60 ), - 92 * 67 AS col2
----
0
-6164

skipif mysql # not compatible
query II rowsort label-6186
SELECT DISTINCT + + COUNT ( * ) * - - 0 * + ( + 60 ), - 92 * 67 AS col2
----
0
-6164

query I rowsort
SELECT ALL - CASE + ( - 57 ) WHEN + 63 * - 81 THEN - 84 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 99 - + 96 AS col1
----
3

query I rowsort
SELECT ALL + 35 * - 30
----
-1050

query II rowsort
SELECT DISTINCT - 26 AS col2, - 62 AS col2
----
-26
-62

query I rowsort
SELECT DISTINCT 7 AS col2
----
7

query I rowsort
SELECT ALL + 90
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT + COUNT( * ) + + 13 + - - 53
----
67

skipif mysql # not compatible
query I rowsort label-6193
SELECT + COUNT ( * ) + + 13 + - - 53
----
67

query I rowsort
SELECT + 7 AS col0
----
7

query I rowsort
SELECT DISTINCT - 67 col0
----
-67

query I rowsort
SELECT 26 * + 87 AS col2
----
2262

query I rowsort
SELECT - NULLIF ( + 19, + + 46 * + - COALESCE ( 31, - 97 ) * - 20 + + 9 * - 99 ) + + 31 * + + 40
----
1221

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT 72 * - - MAX( - 39 )
----
-2808

skipif mysql # not compatible
query I rowsort label-6198
SELECT 72 * - - MAX ( - 39 )
----
-2808

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT 16 * COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-6199
SELECT 16 * COUNT ( * ) AS col2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6200
SELECT ALL - NULLIF ( 88, - 8 ) + - 8 DIV - + 12
----
-88

skipif mysql # not compatible
query I rowsort label-6200
SELECT ALL - NULLIF ( 88, - 8 ) + - 8 / - + 12
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6201
SELECT CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6201
SELECT CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 78 AS col1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-6203
SELECT ALL COUNT( * ) AS col0, 32 AS col2
----
1
32

skipif mysql # not compatible
query II rowsort label-6203
SELECT ALL COUNT ( * ) AS col0, 32 AS col2
----
1
32

query I rowsort
SELECT ALL + 8 AS col1
----
8

query I rowsort
SELECT DISTINCT - 31 + + 97 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT ALL ( COUNT( * ) ) + 66 col1
----
67

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL ( COUNT ( * ) ) + 66 col1
----
67

query I rowsort
SELECT DISTINCT + 68 * 54 * - 35 AS col0
----
-128520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6208
SELECT ALL - NULLIF ( + CAST( 26 AS SIGNED ), - - 14 ) + - 72
----
-98

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL - NULLIF ( + CAST ( 26 AS INTEGER ), - - 14 ) + - 72
----
-98

query I rowsort
SELECT DISTINCT + 59 + 55
----
114

query I rowsort
SELECT 56 AS col2
----
56

query I rowsort
SELECT 16 + - 89 + + NULLIF ( + 12, + - 98 * + + 97 ) AS col0
----
-61

query I rowsort
SELECT ALL 24 AS col0
----
24

query I rowsort
SELECT DISTINCT - 3 col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT ALL 9 + + ( ( + MAX( DISTINCT 27 ) ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL 9 + + ( ( + MAX ( DISTINCT 27 ) ) ) AS col1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-6215
SELECT - 70 DIV + 64 - - 23 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-6215
SELECT - 70 / + 64 - - 23 AS col1
----
22

query I rowsort
SELECT ALL - ( 65 ) AS col1
----
-65

query I rowsort
SELECT ALL 85 + - NULLIF ( - - 30, + 62 )
----
55

query II rowsort
SELECT 51 - - 91, 79 * + 88 + 45 col2
----
142
6997

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6219
SELECT ALL - CAST( NULLIF ( + + 55, - - 8 / + - 2 * - ( - 11 ) ) AS SIGNED ) + + 38 col2
----
-17

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL - CAST ( NULLIF ( + + 55, - - 8 / + - 2 * - ( - 11 ) ) AS INTEGER ) + + 38 col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6220
SELECT DISTINCT - CAST( - MIN( + 65 ) AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-6220
SELECT DISTINCT - CAST ( - MIN ( + 65 ) AS INTEGER )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT ALL SUM( - - 12 ) * + 73 AS col2
----
876

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL SUM ( - - 12 ) * + 73 AS col2
----
876

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT ( MIN( ALL - - 54 ) ) * + 84 AS col0
----
4536

skipif mysql # not compatible
query I rowsort label-6222
SELECT ( MIN ( ALL - - 54 ) ) * + 84 AS col0
----
4536

query I rowsort
SELECT ALL - 5 AS col1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6224
SELECT 15 DIV + 22 + - SUM( ALL + - 8 ) + 97 AS col0
----
105

skipif mysql # not compatible
query I rowsort label-6224
SELECT 15 / + 22 + - SUM ( ALL + - 8 ) + 97 AS col0
----
105

query I rowsort
SELECT 50 + + 7 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT ALL 43 * - + SUM( ALL + 58 )
----
-2494

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL 43 * - + SUM ( ALL + 58 )
----
-2494

query I rowsort
SELECT 57 * - 87 col0
----
-4959

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT + 26 * - - 63 * + + COUNT( * ) + + 20 + + COUNT( * ) - + ( COUNT( * ) )
----
1658

skipif mysql # not compatible
query I rowsort label-6228
SELECT + 26 * - - 63 * + + COUNT ( * ) + + 20 + + COUNT ( * ) - + ( COUNT ( * ) )
----
1658

query I rowsort
SELECT + 9 * + 25 - 27 AS col0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT ALL - 39 * + COUNT( * ) + + 73 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL - 39 * + COUNT ( * ) + + 73 AS col0
----
34

query I rowsort
SELECT ALL - + 53 AS col0
----
-53

query I rowsort
SELECT + 76 * + - 3 * + 30 + - 46 + 41 AS col1
----
-6845

query I rowsort
SELECT ALL - + 92 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT DISTINCT - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT ALL 14 * + COUNT( * ) * MAX( 0 )
----
0

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL 14 * + COUNT ( * ) * MAX ( 0 )
----
0

query I rowsort
SELECT ALL - 72 AS col1
----
-72

query I rowsort
SELECT ALL - - 33
----
33

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6238
SELECT 62 * - - 10 - + 7 * CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6238
SELECT 62 * - - 10 - + 7 * CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 62 col0
----
62

query I rowsort
SELECT DISTINCT + ( 50 )
----
50

query I rowsort
SELECT ALL 2 AS col2
----
2

query II rowsort
SELECT + 25 + + 93 - + - 35 * + 51 AS col1, 53 AS col2
----
1903
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT - 99 + + + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-6243
SELECT - 99 + + + COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6244
SELECT COUNT( * ) DIV 4 - - 85 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-6244
SELECT COUNT ( * ) / 4 - - 85 AS col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6245
SELECT + ( 83 ) * NULLIF ( - 12, - CAST( NULL AS SIGNED ) + - 38 ) * - 55 + - 70 AS col0
----
54710

skipif mysql # not compatible
query I rowsort label-6245
SELECT + ( 83 ) * NULLIF ( - 12, - CAST ( NULL AS INTEGER ) + - 38 ) * - 55 + - 70 AS col0
----
54710

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT DISTINCT 17 / + CASE + - 2 WHEN + 97 / + COUNT( * ) THEN NULL WHEN + + 59 THEN - 96 END * - 63 + + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-6246
SELECT DISTINCT 17 / + CASE + - 2 WHEN + 97 / + COUNT ( * ) THEN NULL WHEN + + 59 THEN - 96 END * - 63 + + + 15
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6247
SELECT 18 + AVG ( ALL - - CAST( NULL AS SIGNED ) ) * - 12 AS col2, - 39
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-6247
SELECT 18 + AVG ( ALL - - CAST ( NULL AS INTEGER ) ) * - 12 AS col2, - 39
----
NULL
-39

query I rowsort
SELECT ( + 72 )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6249
SELECT ALL + 18 * + COALESCE ( + ( + 45 ), - + 73 DIV - 73 ) AS col0
----
810

skipif mysql # not compatible
query I rowsort label-6249
SELECT ALL + 18 * + COALESCE ( + ( + 45 ), - + 73 / - 73 ) AS col0
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT DISTINCT + MIN( DISTINCT + NULLIF ( - 63, 82 * - 80 / 83 ) ) + - COUNT( * ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-6250
SELECT DISTINCT + MIN ( DISTINCT + NULLIF ( - 63, 82 * - 80 / 83 ) ) + - COUNT ( * ) AS col2
----
-64

query I rowsort
SELECT + 69 + + - 79
----
-10

query I rowsort
SELECT - 75 - - + 40
----
-35

query I rowsort
SELECT + 46 + 53 * - - 68 AS col0
----
3650

query I rowsort
SELECT ALL - COALESCE ( - 71, + 46 + + 72 - - - 43, + 98 ) + + - 1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT ALL COUNT( - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL COUNT ( - 90 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT DISTINCT CASE - 0 WHEN + 1 THEN 36 * - + 91 + + 50 WHEN + - 5 - + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6256
SELECT DISTINCT CASE - 0 WHEN + 1 THEN 36 * - + 91 + + 50 WHEN + - 5 - + COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 82 + - - 97 * 95
----
9133

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT ALL COUNT( DISTINCT 91 )
----
1

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL COUNT ( DISTINCT 91 )
----
1

query I rowsort
SELECT ALL + 10 * - 42
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT DISTINCT COUNT( + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT COUNT ( + 1 )
----
1

query II rowsort
SELECT - 38 AS col1, + 65 AS col0
----
-38
65

query I rowsort
SELECT ( 33 ) AS col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6263
SELECT - COUNT( 26 ) * - 94 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT - COUNT ( 26 ) * - 94 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - ( 91 ) * ( + + 11 )
----
-1001

query I rowsort
SELECT ALL + 11 * + 73
----
803

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6266
SELECT MIN( DISTINCT 16 ) * - 16 + - NULLIF ( - 35, CAST( NULL AS SIGNED ) ) - - 76 + + 83 * + - 43 AS col1
----
-3714

skipif mysql # not compatible
query I rowsort label-6266
SELECT MIN ( DISTINCT 16 ) * - 16 + - NULLIF ( - 35, CAST ( NULL AS INTEGER ) ) - - 76 + + 83 * + - 43 AS col1
----
-3714

query I rowsort
SELECT DISTINCT + 93 * + 53
----
4929

onlyif mysql # aggregate syntax: 
query II rowsort label-6268
SELECT NULLIF ( + + 8, - - COALESCE ( - 47, + 77, 47 ) * - + 47 + + COUNT( * ) + + SUM( DISTINCT + - 32 ) * - + 62 ) AS col1, 12 * - 69 + + 33 + + - ( - 54 ) AS col1
----
8
-741

skipif mysql # not compatible
query II rowsort label-6268
SELECT NULLIF ( + + 8, - - COALESCE ( - 47, + 77, 47 ) * - + 47 + + COUNT ( * ) + + SUM ( DISTINCT + - 32 ) * - + 62 ) AS col1, 12 * - 69 + + 33 + + - ( - 54 ) AS col1
----
8
-741

onlyif mysql # DIV for integer division: 
query I rowsort label-6269
SELECT 20 DIV - 40 * + 68 + - 90 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-6269
SELECT 20 / - 40 * + 68 + - 90 AS col1
----
-90

query I rowsort
SELECT - 26 * - 78 AS col2
----
2028

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT + 31 * - 33 * - MIN( - 58 )
----
-59334

skipif mysql # not compatible
query I rowsort label-6271
SELECT + 31 * - 33 * - MIN ( - 58 )
----
-59334

query I rowsort
SELECT DISTINCT + 37
----
37

query I rowsort
SELECT ALL + 40 AS col0
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-6274
SELECT COALESCE ( - + COUNT( * ), 85 * + 81 * - 52 + + ( - + 58 ) - 57 + + 32 * 30 ) AS col1, 58 AS col1
----
-1
58

skipif mysql # not compatible
query II rowsort label-6274
SELECT COALESCE ( - + COUNT ( * ), 85 * + 81 * - 52 + + ( - + 58 ) - 57 + + 32 * 30 ) AS col1, 58 AS col1
----
-1
58

query I rowsort
SELECT ALL + 5 AS col2
----
5

query I rowsort
SELECT DISTINCT + + 81
----
81

query I rowsort
SELECT + - 7
----
-7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6278
SELECT ALL CAST( + ( - 80 ) AS SIGNED ) DIV + 10 - + 11 + + 54 DIV + 59
----
-19

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL CAST ( + ( - 80 ) AS INTEGER ) / + 10 - + 11 + + 54 / + 59
----
-19

query I rowsort
SELECT - 24 * + 0 * + 40 + - 99 AS col0
----
-99

query I rowsort
SELECT DISTINCT + + 99
----
99

query I rowsort
SELECT ALL + 97
----
97

query I rowsort
SELECT + - 84
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6283
SELECT ALL COUNT( * ) DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL COUNT ( * ) / + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT COUNT( - - 6 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6284
SELECT COUNT ( - - 6 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6285
SELECT ALL - 58 DIV 31 + + COALESCE ( - SUM( DISTINCT + 28 ), 69 + + 23 + - 77 * - 65 * - - COALESCE ( COUNT( * ), 1 * + - MIN( ALL - 39 ) ), + + 25 ) DIV + 23 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL - 58 / 31 + + COALESCE ( - SUM ( DISTINCT + 28 ), 69 + + 23 + - 77 * - 65 * - - COALESCE ( COUNT ( * ), 1 * + - MIN ( ALL - 39 ) ), + + 25 ) / + 23 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6286
SELECT - - 52 * MIN( - 31 ) AS col2, - COALESCE ( + + 37, + 40, + + 57 ) AS col2
----
-1612
-37

skipif mysql # not compatible
query II rowsort label-6286
SELECT - - 52 * MIN ( - 31 ) AS col2, - COALESCE ( + + 37, + 40, + + 57 ) AS col2
----
-1612
-37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6287
SELECT + 69 * + SUM( 88 ) * - - 28 - CASE - 63 WHEN + 64 THEN + 72 * - CAST( - 86 AS DECIMAL ) END AS col1, 44 AS col2
----
NULL
44

skipif mysql # not compatible
query II rowsort label-6287
SELECT + 69 * + SUM ( 88 ) * - - 28 - CASE - 63 WHEN + 64 THEN + 72 * - CAST ( - 86 AS REAL ) END AS col1, 44 AS col2
----
NULL
44

query I rowsort
SELECT ALL + + 39 AS col2
----
39

query I rowsort
SELECT - + 77 * - 22 AS col1
----
1694

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT + + 72 + - - COUNT( - 43 ) - - 14 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-6290
SELECT + + 72 + - - COUNT ( - 43 ) - - 14 AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6291
SELECT DISTINCT - 3 * + ( 83 ) * 38 + + CASE + 88 WHEN - 15 * + CAST( ( + 50 ) AS DECIMAL ) + 91 + 91 / SUM( ALL + - 14 ) * + 17 + + 40 THEN + 6 WHEN + 66 * CAST( NULL AS SIGNED ) * + 78 * - + CAST( NULL AS SIGNED ) THEN NULL END - 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6291
SELECT DISTINCT - 3 * + ( 83 ) * 38 + + CASE + 88 WHEN - 15 * + CAST ( ( + 50 ) AS REAL ) + 91 + 91 / SUM ( ALL + - 14 ) * + 17 + + 40 THEN + 6 WHEN + 66 * CAST ( NULL AS INTEGER ) * + 78 * - + CAST ( NULL AS INTEGER ) THEN NULL END - 4 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6292
SELECT ALL - + COUNT( * ) * + + ( + COUNT( * ) ) + - COALESCE ( + MIN( DISTINCT + 83 ), - 74 ) - + 78 * - + MAX( ALL - 8 ) * + CASE CASE - 49 WHEN CASE + CAST( - + NULLIF ( + 13, - + ( - 26 ) / + - ( - + 56 ) + - 90 * + - 44 * - 63 ) AS SIGNED ) WHEN - 80 + - COUNT( - 56 ) * - - 29 THEN + - MIN( + + ( + 80 ) ) * + - 96 * - + COUNT( + ( 33 ) ) + + + 60 + + 34 END * 48 + - + 35 THEN - 94 - - 79 + + 58 * - 95 WHEN - 51 * - + 63 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE NULL END WHEN - 96 * 69 THEN + SUM( + 3 ) + 29 END + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL - + COUNT ( * ) * + + ( + COUNT ( * ) ) + - COALESCE ( + MIN ( DISTINCT + 83 ), - 74 ) - + 78 * - + MAX ( ALL - 8 ) * + CASE CASE - 49 WHEN CASE + CAST ( - + NULLIF ( + 13, - + ( - 26 ) / + - ( - + 56 ) + - 90 * + - 44 * - 63 ) AS INTEGER ) WHEN - 80 + - COUNT ( - 56 ) * - - 29 THEN + - MIN ( + + ( + 80 ) ) * + - 96 * - + COUNT ( + ( 33 ) ) + + + 60 + + 34 END * 48 + - + 35 THEN - 94 - - 79 + + 58 * - 95 WHEN - 51 * - + 63 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE NULL END WHEN - 96 * 69 THEN + SUM ( + 3 ) + 29 END + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 95 AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6294
SELECT ALL CAST( NULL AS SIGNED ) * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL CAST ( NULL AS INTEGER ) * - 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT DISTINCT 98 * 5 + 45 * - - 87 + 52 * COUNT( * )
----
4457

skipif mysql # not compatible
query I rowsort label-6295
SELECT DISTINCT 98 * 5 + 45 * - - 87 + 52 * COUNT ( * )
----
4457

query I rowsort
SELECT ALL + 89 AS col2
----
89

query I rowsort
SELECT - + 33 AS col0
----
-33

query I rowsort
SELECT ALL + 67 * + ( - 89 ) + + 39 + - ( - + 20 ) AS col0
----
-5904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6299
SELECT ALL - ( + 92 ) * + 71 * - COUNT( * ) * + + CAST( NULL AS SIGNED ) * 15 / - 3 + + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL - ( + 92 ) * + 71 * - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * 15 / - 3 + + 24 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 10 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT + - 45 + 75 + + - MIN( DISTINCT + 74 ) * + 45
----
-3300

skipif mysql # not compatible
query I rowsort label-6301
SELECT + - 45 + 75 + + - MIN ( DISTINCT + 74 ) * + 45
----
-3300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6302
SELECT DISTINCT - CASE ( - - CAST( 78 AS SIGNED ) ) WHEN 4 + ( - - 18 ) THEN - + NULLIF ( - 75, + - 12 * - COUNT( * ) ) + + ( + 68 ) * MAX( - + 11 ) WHEN - 40 * + 4 * + 10 * + - 86 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6302
SELECT DISTINCT - CASE ( - - CAST ( 78 AS INTEGER ) ) WHEN 4 + ( - - 18 ) THEN - + NULLIF ( - 75, + - 12 * - COUNT ( * ) ) + + ( + 68 ) * MAX ( - + 11 ) WHEN - 40 * + 4 * + 10 * + - 86 THEN NULL ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT 76 AS col2, + 53
----
76
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6304
SELECT - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-6304
SELECT - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + + - 18
----
NULL

query I rowsort
SELECT - 10 * + - 51
----
510

query I rowsort
SELECT - ( - 16 ) AS col1
----
16

query I rowsort
SELECT + 40 * - + 74 * + - 88
----
260480

query II rowsort
SELECT - 67 AS col0, 69
----
-67
69

query I rowsort
SELECT - ( 87 ) AS col2
----
-87

query I rowsort
SELECT ALL 70 AS col1
----
70

query I rowsort
SELECT DISTINCT 73 AS col2
----
73

query I rowsort
SELECT ALL - 78 * + + 24
----
-1872

query I rowsort
SELECT DISTINCT ( 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT DISTINCT COUNT( * ) * - ( - MIN( DISTINCT - 34 ) ) * + + 70 AS col0
----
-2380

skipif mysql # not compatible
query I rowsort label-6314
SELECT DISTINCT COUNT ( * ) * - ( - MIN ( DISTINCT - 34 ) ) * + + 70 AS col0
----
-2380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6315
SELECT - 44 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6315
SELECT - 44 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6316
SELECT - 62 DIV + 14
----
-4

skipif mysql # not compatible
query I rowsort label-6316
SELECT - 62 / + 14
----
-4

query II rowsort
SELECT ALL NULLIF ( + - 97, - + 23 * 99 ) col1, - ( 15 ) AS col0
----
-97
-15

query I rowsort
SELECT - 90 AS col2
----
-90

query I rowsort
SELECT 94 AS col2
----
94

query I rowsort
SELECT + 8 + + + 43 AS col1
----
51

query I rowsort
SELECT 32
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6322
SELECT ALL - 52 DIV - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL - 52 / - COUNT ( * )
----
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6323
SELECT - 32 DIV - - 94, CAST( NULL AS SIGNED ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6323
SELECT - 32 / - - 94, CAST ( NULL AS INTEGER ) AS col0
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT ALL + CASE + - ( - COUNT( * ) ) WHEN - COUNT( * ) THEN - 6 * + 82 - CASE NULLIF ( 90, + 48 ) WHEN + - 78 * + COUNT( * ) THEN - - 80 + 27 + - - 83 WHEN + MIN( DISTINCT + 32 ) * 5 * + + 6 + - 92 THEN NULL END ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6324
SELECT ALL + CASE + - ( - COUNT ( * ) ) WHEN - COUNT ( * ) THEN - 6 * + 82 - CASE NULLIF ( 90, + 48 ) WHEN + - 78 * + COUNT ( * ) THEN - - 80 + 27 + - - 83 WHEN + MIN ( DISTINCT + 32 ) * 5 * + + 6 + - 92 THEN NULL END ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT + CASE 27 WHEN + - NULLIF ( + 61, + + 31 * + 75 * + 93 ) THEN - - 23 - 51 + 5 WHEN + 22 THEN - 98 WHEN - + 8 + - ( - - COUNT( * ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6325
SELECT + CASE 27 WHEN + - NULLIF ( + 61, + + 31 * + 75 * + 93 ) THEN - - 23 - 51 + 5 WHEN + 22 THEN - 98 WHEN - + 8 + - ( - - COUNT ( * ) ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + ( - ( - 20 ) ) AS col2
----
20

query I rowsort
SELECT DISTINCT + 81 AS col2
----
81

query I rowsort
SELECT + 19 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT + COUNT( - + 82 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6329
SELECT + COUNT ( - + 82 ) AS col1
----
1

query I rowsort
SELECT ALL + ( - - 9 )
----
9

query I rowsort
SELECT + + 86 col2
----
86

query I rowsort
SELECT - + 23 + - 17 AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6333
SELECT DISTINCT + 85 DIV CAST( COUNT( * ) AS SIGNED ) + + 20 AS col1, + MIN( DISTINCT - + 22 ) DIV 18
----
105
-1

skipif mysql # not compatible
query II rowsort label-6333
SELECT DISTINCT + 85 / CAST ( COUNT ( * ) AS INTEGER ) + + 20 AS col1, + MIN ( DISTINCT - + 22 ) / 18
----
105
-1

query I rowsort
SELECT + NULLIF ( + 76, + 6 ) * + 18 + + 65 AS col2
----
1433

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT + + ( + ( - 16 ) ) + - 23 + - MAX( - 2 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-6335
SELECT + + ( + ( - 16 ) ) + - 23 + - MAX ( - 2 ) AS col0
----
-37

query II rowsort
SELECT + 76 AS col0, + 72 + + 91
----
76
163

onlyif mysql # DIV for integer division: 
query I rowsort label-6337
SELECT ALL + + 98 DIV + 70 + + - 49 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL + + 98 / + 70 + + - 49 AS col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6338
SELECT 57 * - CAST( NULL AS SIGNED ) + - - 35 * 12 - 34 - - ( 27 ) + - - 36 - 46 / + ( + + COUNT( * ) ) col1, - 12 AS col1
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-6338
SELECT 57 * - CAST ( NULL AS INTEGER ) + - - 35 * 12 - 34 - - ( 27 ) + - - 36 - 46 / + ( + + COUNT ( * ) ) col1, - 12 AS col1
----
NULL
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6339
SELECT ALL - ( CASE - 25 WHEN + CAST( - 14 AS SIGNED ) THEN - + 50 WHEN 51 THEN 84 * - + ( + - NULLIF ( - - COUNT( * ), - 81 ) ) * - 9 + 36 * + 42 - - 0 * + + COUNT( * ) END ) * ( + CAST( + - 48 AS SIGNED ) ) + 97 + + 80 / COUNT( * ) * 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL - ( CASE - 25 WHEN + CAST ( - 14 AS INTEGER ) THEN - + 50 WHEN 51 THEN 84 * - + ( + - NULLIF ( - - COUNT ( * ), - 81 ) ) * - 9 + 36 * + 42 - - 0 * + + COUNT ( * ) END ) * ( + CAST ( + - 48 AS INTEGER ) ) + 97 + + 80 / COUNT ( * ) * 43 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 43 * - - 85 + + + 95 col2
----
3750

query I rowsort
SELECT ALL + + ( + 81 ) col2
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6342
SELECT DISTINCT - 69 DIV - COUNT( * ) AS col2, 15 * + ( - + COUNT( * ) ) AS col0
----
69
-15

skipif mysql # not compatible
query II rowsort label-6342
SELECT DISTINCT - 69 / - COUNT ( * ) AS col2, 15 * + ( - + COUNT ( * ) ) AS col0
----
69
-15

query I rowsort
SELECT - 79 * - - 90 col1
----
-7110

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT + MIN( ALL + 81 ) * - 32 + - NULLIF ( + + 71, 61 - - 54 )
----
-2663

skipif mysql # not compatible
query I rowsort label-6344
SELECT + MIN ( ALL + 81 ) * - 32 + - NULLIF ( + + 71, 61 - - 54 )
----
-2663

query I rowsort
SELECT ALL COALESCE ( ( - 2 ), - 65 * - + 24, + ( + + 89 ) ) - + 20 * - + 84
----
1678

onlyif mysql # aggregate syntax: 
query II rowsort label-6346
SELECT ALL 93 * + COUNT( * ) AS col2, 56
----
93
56

skipif mysql # not compatible
query II rowsort label-6346
SELECT ALL 93 * + COUNT ( * ) AS col2, 56
----
93
56

query I rowsort
SELECT ALL 11 AS col0
----
11

query I rowsort
SELECT 42 + + - ( + 69 )
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6349
SELECT COUNT( * ) DIV - + 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6349
SELECT COUNT ( * ) / - + 81 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT ALL + ( + CASE - 93 WHEN - 8 - - 90 * + - ( + 60 ) THEN + 42 * - ( + 88 ) WHEN - 99 + MAX( + 22 ) THEN NULL ELSE NULL END ) * - - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL + ( + CASE - 93 WHEN - 8 - - 90 * + - ( + 60 ) THEN + 42 * - ( + 88 ) WHEN - 99 + MAX ( + 22 ) THEN NULL ELSE NULL END ) * - - 74
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6351
SELECT DISTINCT - COUNT( * ) * - SUM( DISTINCT CAST( - - 17 AS SIGNED ) )
----
17

skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT - COUNT ( * ) * - SUM ( DISTINCT CAST ( - - 17 AS INTEGER ) )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6352
SELECT ALL 74 * - CAST( - 83 AS SIGNED )
----
6142

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL 74 * - CAST ( - 83 AS INTEGER )
----
6142

query I rowsort
SELECT DISTINCT 26
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT ( + - 28 ) + + + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-6354
SELECT ( + - 28 ) + + + COUNT ( * )
----
-27

query I rowsort
SELECT 80 * - 18 * - 85 AS col1
----
122400

query I rowsort
SELECT - 33 AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6357
SELECT MAX( + CAST( NULL AS DECIMAL ) ) + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6357
SELECT MAX ( + CAST ( NULL AS REAL ) ) + 50 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 38
----
38

query II rowsort
SELECT DISTINCT - 48 * - 99 AS col0, + 88 - + 32 - - - 67
----
4752
-11

query I rowsort
SELECT ALL 98 col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6361
SELECT ALL 61 + - - 63 + 66 * - - SUM( ALL - 66 ) * - + CASE COUNT( * ) WHEN + + CASE CAST( - + 99 AS SIGNED ) WHEN 19 THEN NULL ELSE + + 4 END THEN 58 * + 13 - ( + + MIN( DISTINCT CAST( + 90 AS SIGNED ) ) ) END AS col1, ( 19 ) AS col1
----
NULL
19

skipif mysql # not compatible
query II rowsort label-6361
SELECT ALL 61 + - - 63 + 66 * - - SUM ( ALL - 66 ) * - + CASE COUNT ( * ) WHEN + + CASE CAST ( - + 99 AS INTEGER ) WHEN 19 THEN NULL ELSE + + 4 END THEN 58 * + 13 - ( + + MIN ( DISTINCT CAST ( + 90 AS INTEGER ) ) ) END AS col1, ( 19 ) AS col1
----
NULL
19

query I rowsort
SELECT ALL 56 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT ALL CASE + 52 WHEN - COUNT( * ) THEN + + 55 / 50 * + ( + 35 ) + 26 END * - 27 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL CASE + 52 WHEN - COUNT ( * ) THEN + + 55 / 50 * + ( + 35 ) + 26 END * - 27 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6364
SELECT 67 + - - ( 79 ) AS col2, + CASE + MAX( - 91 ) WHEN SUM( ALL 4 ) - + 54 THEN + + 97 ELSE NULL END
----
146
NULL

skipif mysql # not compatible
query II rowsort label-6364
SELECT 67 + - - ( 79 ) AS col2, + CASE + MAX ( - 91 ) WHEN SUM ( ALL 4 ) - + 54 THEN + + 97 ELSE NULL END
----
146
NULL

query I rowsort
SELECT ALL - - 94
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT - MIN( DISTINCT 37 ) * - 23
----
851

skipif mysql # not compatible
query I rowsort label-6366
SELECT - MIN ( DISTINCT 37 ) * - 23
----
851

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6367
SELECT - 81 * COALESCE ( 56, - 52 * + + COUNT( * ) * - 92 + 0 + + 8 ) + 56 DIV 76 + + 27 + + MAX( ALL - 16 ) AS col1
----
-4525

skipif mysql # not compatible
query I rowsort label-6367
SELECT - 81 * COALESCE ( 56, - 52 * + + COUNT ( * ) * - 92 + 0 + + 8 ) + 56 / 76 + + 27 + + MAX ( ALL - 16 ) AS col1
----
-4525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6368
SELECT DISTINCT + 8 DIV COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT + 8 / COUNT ( * )
----
8

query I rowsort
SELECT 24 + - - 89
----
113

query I rowsort
SELECT 62 AS col1
----
62

query I rowsort
SELECT ALL + - 6 + - + 72 AS col0
----
-78

query I rowsort
SELECT + - 16
----
-16

query I rowsort
SELECT ALL - - 10
----
10

query I rowsort
SELECT ALL - - 93 * 82 + - + 66
----
7560

query I rowsort
SELECT DISTINCT - + 28 AS col0
----
-28

query I rowsort
SELECT - + 51 * - 74 + + - 39 * + + 91 AS col2
----
225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6377
SELECT ALL - + NULLIF ( + 76, - 29 * CAST( + + ( - 86 ) AS SIGNED ) + - 54 / - - 1 * - + 95 * - MAX( + - CAST( NULL AS SIGNED ) ) / 13 ) AS col2, - 34 * - + 79 AS col1
----
-76
2686

skipif mysql # not compatible
query II rowsort label-6377
SELECT ALL - + NULLIF ( + 76, - 29 * CAST ( + + ( - 86 ) AS INTEGER ) + - 54 / - - 1 * - + 95 * - MAX ( + - CAST ( NULL AS INTEGER ) ) / 13 ) AS col2, - 34 * - + 79 AS col1
----
-76
2686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6378
SELECT ALL + CAST( + 20 AS SIGNED ) * - 11 AS col2
----
-220

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL + CAST ( + 20 AS INTEGER ) * - 11 AS col2
----
-220

query I rowsort
SELECT DISTINCT - - 95
----
95

query II rowsort
SELECT ALL - 16 AS col1, ( + + 69 ) AS col0
----
-16
69

onlyif mysql # aggregate syntax: 
query II rowsort label-6381
SELECT 33, COUNT( * ) * + + 5 AS col2
----
33
5

skipif mysql # not compatible
query II rowsort label-6381
SELECT 33, COUNT ( * ) * + + 5 AS col2
----
33
5

query I rowsort
SELECT ALL - 87 col2
----
-87

query I rowsort
SELECT ALL 64 col2
----
64

query I rowsort
SELECT ALL 80 * - + 98 AS col1
----
-7840

query I rowsort
SELECT - 20 AS col2
----
-20

query I rowsort
SELECT 44 + - 79 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT CASE + COALESCE ( - + 35, + 88 + + 6, + 43 ) WHEN + 55 - - + 51 THEN - 29 - 12 WHEN + - 97 + - 73 * - 57 * + + SUM( DISTINCT - 44 ) + - 45 + 32 THEN NULL WHEN - 15 * COUNT( * ) THEN - 14 + - 11 ELSE NULL END / + 49 * + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-6387
SELECT CASE + COALESCE ( - + 35, + 88 + + 6, + 43 ) WHEN + 55 - - + 51 THEN - 29 - 12 WHEN + - 97 + - 73 * - 57 * + + SUM ( DISTINCT - 44 ) + - 45 + 32 THEN NULL WHEN - 15 * COUNT ( * ) THEN - 14 + - 11 ELSE NULL END / + 49 * + 85
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6388
SELECT ALL + 61 DIV 87 * SUM( + + 81 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL + 61 / 87 * SUM ( + + 81 ) AS col1
----
0

query I rowsort
SELECT 51 * 57
----
2907

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT ALL + 52 * + COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL + 52 * + COUNT ( * ) AS col1
----
52

query I rowsort
SELECT 66 - - + 41 AS col1
----
107

query I rowsort
SELECT ALL + 61 * + - ( - 36 ) AS col2
----
2196

onlyif mysql # aggregate syntax: 
query II rowsort label-6393
SELECT ALL 73 + + 50 * + - SUM( 13 ) * ( + + 14 ) + - - MIN( 23 ) + + 71 + + + COUNT( * ) * + + COUNT( * ) AS col2, 16 AS col2
----
-8932
16

skipif mysql # not compatible
query II rowsort label-6393
SELECT ALL 73 + + 50 * + - SUM ( 13 ) * ( + + 14 ) + - - MIN ( 23 ) + + 71 + + + COUNT ( * ) * + + COUNT ( * ) AS col2, 16 AS col2
----
-8932
16

query I rowsort
SELECT ALL - 89 * - ( 16 ) AS col0
----
1424

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6395
SELECT - 97 AS col2, CAST( NULL AS DECIMAL )
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-6395
SELECT - 97 AS col2, CAST ( NULL AS REAL )
----
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT ALL ( + 83 ) + + 21 + - MIN( DISTINCT 76 ) + - + 88
----
-60

skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL ( + 83 ) + + 21 + - MIN ( DISTINCT 76 ) + - + 88
----
-60

query I rowsort
SELECT DISTINCT 51 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT COUNT( * ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6398
SELECT COUNT ( * ) * COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT 75 + + 74 + 45 + + 82 + ( 52 ) + - CASE + COUNT( DISTINCT - 75 ) WHEN + + 61 THEN + + COUNT( * ) + 45 * - - 10 + - 9 ELSE + COUNT( * ) END * + 52 * - SUM( DISTINCT - 52 ) + + COUNT( * ) col1
----
-2375

skipif mysql # not compatible
query I rowsort label-6399
SELECT 75 + + 74 + 45 + + 82 + ( 52 ) + - CASE + COUNT ( DISTINCT - 75 ) WHEN + + 61 THEN + + COUNT ( * ) + 45 * - - 10 + - 9 ELSE + COUNT ( * ) END * + 52 * - SUM ( DISTINCT - 52 ) + + COUNT ( * ) col1
----
-2375

onlyif mysql # aggregate syntax: 
query II rowsort label-6400
SELECT - 53 + - COUNT( * ) * + 85 AS col0, - 19
----
-138
-19

skipif mysql # not compatible
query II rowsort label-6400
SELECT - 53 + - COUNT ( * ) * + 85 AS col0, - 19
----
-138
-19

query I rowsort
SELECT ALL - 70 + - 0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT - 36 * + 16 + - 26 + + + 46 + - SUM( - 30 ) * - + 39 AS col1
----
-1726

skipif mysql # not compatible
query I rowsort label-6402
SELECT - 36 * + 16 + - 26 + + + 46 + - SUM ( - 30 ) * - + 39 AS col1
----
-1726

query I rowsort
SELECT ALL + 96 + 1
----
97

query I rowsort
SELECT - ( 76 ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT ALL - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL - - COUNT ( * )
----
1

query I rowsort
SELECT ALL + 46 * + - 67
----
-3082

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT + 2 + + SUM( - 67 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-6407
SELECT + 2 + + SUM ( - 67 ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT ALL + - COUNT( * ) * 33 + 98 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL + - COUNT ( * ) * 33 + 98 AS col1
----
65

query I rowsort
SELECT DISTINCT - + 77 AS col1
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6410
SELECT 66 * - 18 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6410
SELECT 66 * - 18 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT COALESCE ( - 53, - + 77 ) col2
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-6412
SELECT ALL 99 * + 2 * + 96, 14 * - COUNT( * ) AS col0
----
19008
-14

skipif mysql # not compatible
query II rowsort label-6412
SELECT ALL 99 * + 2 * + 96, 14 * - COUNT ( * ) AS col0
----
19008
-14

query I rowsort
SELECT - 38 * + 72 * - - 70 AS col1
----
-191520

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6414
SELECT + COUNT( * ), 73 DIV + 93 * + + COUNT( * ) AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-6414
SELECT + COUNT ( * ), 73 / + 93 * + + COUNT ( * ) AS col0
----
1
0

query I rowsort
SELECT ALL + NULLIF ( - 11, + - 80 + 29 )
----
-11

query I rowsort
SELECT 64 col2
----
64

query I rowsort
SELECT - 66 + NULLIF ( + - ( - ( ( + + 22 ) ) ), 74 ) AS col0
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6418
SELECT + - 14 DIV - 86 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6418
SELECT + - 14 / - 86 * + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6419
SELECT DISTINCT + - CAST( + 34 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-6419
SELECT DISTINCT + - CAST ( + 34 AS INTEGER )
----
-34

query I rowsort
SELECT + + 87
----
87

query I rowsort
SELECT DISTINCT + 31 AS col2
----
31

query I rowsort
SELECT ALL + 90 col1
----
90

query I rowsort
SELECT DISTINCT + 93
----
93

query I rowsort
SELECT DISTINCT + 32 AS col0
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6425
SELECT ALL + 65 * + COUNT( * ) DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL + 65 * + COUNT ( * ) / - 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT - NULLIF ( - + 10, - 29 ) * - + 77 * COUNT( * )
----
-770

skipif mysql # not compatible
query I rowsort label-6426
SELECT - NULLIF ( - + 10, - 29 ) * - + 77 * COUNT ( * )
----
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT - MIN( DISTINCT - + 26 ) * + 65 + - 61 col1
----
1629

skipif mysql # not compatible
query I rowsort label-6427
SELECT - MIN ( DISTINCT - + 26 ) * + 65 + - 61 col1
----
1629

query I rowsort
SELECT + 18 AS col0
----
18

query I rowsort
SELECT + 21 AS col2
----
21

query I rowsort
SELECT ALL + 65 * - - 42 AS col0
----
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT - NULLIF ( + 52, + COUNT( * ) ) * + - 48
----
2496

skipif mysql # not compatible
query I rowsort label-6431
SELECT - NULLIF ( + 52, + COUNT ( * ) ) * + - 48
----
2496

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6432
SELECT - CAST( NULL AS DECIMAL ) * - COALESCE ( - AVG ( + ( 36 ) ), + 53 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6432
SELECT - CAST ( NULL AS REAL ) * - COALESCE ( - AVG ( + ( 36 ) ), + 53 ) AS col2
----
NULL

query II rowsort
SELECT - NULLIF ( - 39, + 80 ) + 41 + - 15 AS col1, - 89
----
65
-89

query I rowsort
SELECT - 29 col2
----
-29

query I rowsort
SELECT - 3 + 20 col1
----
17

query I rowsort
SELECT - 83 AS col2
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6437
SELECT ALL + COUNT( * ) + + 19 DIV + ( + - ( - - 97 ) ) * - 94 * - 77 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL + COUNT ( * ) + + 19 / + ( + - ( - - 97 ) ) * - 94 * - 77 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6438
SELECT - CAST( COUNT( * ) AS SIGNED ) + - - ( - 1 ) * - 5 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6438
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + - - ( - 1 ) * - 5 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6439
SELECT ALL + 57 + + 27 AS col1, - CAST( + - 98 AS SIGNED )
----
84
98

skipif mysql # not compatible
query II rowsort label-6439
SELECT ALL + 57 + + 27 AS col1, - CAST ( + - 98 AS INTEGER )
----
84
98

query I rowsort
SELECT ALL ( + 50 ) col1
----
50

query I rowsort
SELECT DISTINCT + 48 + - - 30
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT ALL MIN( + 19 ) + + 19
----
38

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL MIN ( + 19 ) + + 19
----
38

query I rowsort
SELECT - 94 AS col0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6444
SELECT - CAST( NULL AS SIGNED ) * 37 / + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6444
SELECT - CAST ( NULL AS INTEGER ) * 37 / + 48 AS col2
----
NULL

query I rowsort
SELECT - 52 AS col1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6446
SELECT + 25 + 73 * - 8 * - + 9 AS col0, 8 * CAST( NULL AS SIGNED ) * - 57, + - 46 + - - 4 AS col0
----
5281
NULL
-42

skipif mysql # not compatible
query III rowsort label-6446
SELECT + 25 + 73 * - 8 * - + 9 AS col0, 8 * CAST ( NULL AS INTEGER ) * - 57, + - 46 + - - 4 AS col0
----
5281
NULL
-42

query I rowsort
SELECT + - 30 + - 83 AS col2
----
-113

query I rowsort
SELECT ALL + 50 + + 47
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT - MIN( 34 ) * COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-6449
SELECT - MIN ( 34 ) * COUNT ( * )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT ALL 40 - - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL 40 - - COUNT ( * )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT + - 78 * COUNT( 47 )
----
-78

skipif mysql # not compatible
query I rowsort label-6451
SELECT + - 78 * COUNT ( 47 )
----
-78

query I rowsort
SELECT ALL - 97 AS col1
----
-97

query I rowsort
SELECT ALL + - 83
----
-83

query I rowsort
SELECT + 67 AS col0
----
67

query I rowsort
SELECT + 0 col0
----
0

query I rowsort
SELECT DISTINCT + - 1 col2
----
-1

query I rowsort
SELECT + + 18 * 62
----
1116

query I rowsort
SELECT - 62 AS col0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-6459
SELECT + 47 DIV - 17 - - 88 + + 31 * - 23
----
-627

skipif mysql # not compatible
query I rowsort label-6459
SELECT + 47 / - 17 - - 88 + + 31 * - 23
----
-627

query I rowsort
SELECT ALL + 66
----
66

query I rowsort
SELECT ALL - 73 * - 47
----
3431

query I rowsort
SELECT + + 71
----
71

query I rowsort
SELECT ALL + - 56 AS col2
----
-56

query I rowsort
SELECT + + 2
----
2

query I rowsort
SELECT ALL + 45 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT ( - CASE - 62 WHEN - + 26 - + ( + - ( + 16 ) ) THEN 5 * + - 1 ELSE + COUNT( * ) END )
----
-1

skipif mysql # not compatible
query I rowsort label-6466
SELECT ( - CASE - 62 WHEN - + 26 - + ( + - ( + 16 ) ) THEN 5 * + - 1 ELSE + COUNT ( * ) END )
----
-1

query I rowsort
SELECT ALL 51 * + 94
----
4794

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT + 57 * - SUM( - 80 ) AS col1
----
4560

skipif mysql # not compatible
query I rowsort label-6468
SELECT + 57 * - SUM ( - 80 ) AS col1
----
4560

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT - 46 * CASE - 4 WHEN + 16 THEN COUNT( + 92 ) + - - 96 END + - - 19 * + AVG ( DISTINCT + ( + 3 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6469
SELECT - 46 * CASE - 4 WHEN + 16 THEN COUNT ( + 92 ) + - - 96 END + - - 19 * + AVG ( DISTINCT + ( + 3 ) ) AS col1
----
NULL

query I rowsort
SELECT ( - + 92 )
----
-92

query I rowsort
SELECT + 16 col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6472
SELECT + 10 DIV + - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-6472
SELECT + 10 / + - COUNT ( * )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT - 15 + MAX( DISTINCT + NULLIF ( + 27, 59 + 44 ) ) + - - 73
----
85

skipif mysql # not compatible
query I rowsort label-6473
SELECT - 15 + MAX ( DISTINCT + NULLIF ( + 27, 59 + 44 ) ) + - - 73
----
85

query I rowsort
SELECT DISTINCT 46 * 40 + - 84 AS col0
----
1756

query I rowsort
SELECT ALL + 15 AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6476
SELECT + 79 DIV - + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6476
SELECT + 79 / - + 96 AS col2
----
0

query I rowsort
SELECT DISTINCT + ( - 71 ) * 48 + - 11 + ( + 55 ) AS col0
----
-3364

query I rowsort
SELECT ALL ( + 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT MAX( ALL 85 )
----
85

skipif mysql # not compatible
query I rowsort label-6479
SELECT MAX ( ALL 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT MIN( ALL 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-6480
SELECT MIN ( ALL 59 ) AS col1
----
59

query I rowsort
SELECT - 42
----
-42

query I rowsort
SELECT DISTINCT NULLIF ( + 7, - - 35 ) col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT ALL ( + COUNT( ALL 26 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6483
SELECT ALL ( + COUNT ( ALL 26 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT - 13 - + - ( COUNT( * ) )
----
-12

skipif mysql # not compatible
query I rowsort label-6484
SELECT - 13 - + - ( COUNT ( * ) )
----
-12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6485
SELECT ALL CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL 95 - - 62 AS col0
----
157

query I rowsort
SELECT 20 AS col2
----
20

query I rowsort
SELECT ALL 15 AS col0
----
15

query I rowsort
SELECT 0 + - 3 * + 78 AS col2
----
-234

query I rowsort
SELECT 36 * - ( 24 )
----
-864

query I rowsort
SELECT ALL 72 AS col1
----
72

query I rowsort
SELECT 10 + - 38 col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT COUNT( * ) - - 33 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-6493
SELECT COUNT ( * ) - - 33 AS col1
----
34

query I rowsort
SELECT ALL 75 AS col0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6495
SELECT 26 DIV 7
----
3

skipif mysql # not compatible
query I rowsort label-6495
SELECT 26 / 7
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT 61 * COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-6496
SELECT 61 * COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT DISTINCT - MIN( 31 ) * 65 col1
----
-2015

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT - MIN ( 31 ) * 65 col1
----
-2015

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6498
SELECT DISTINCT - SUM( DISTINCT + 71 ) DIV - 5
----
14

skipif mysql # not compatible
query I rowsort label-6498
SELECT DISTINCT - SUM ( DISTINCT + 71 ) / - 5
----
14

query I rowsort
SELECT ALL + 91 * 13 col0
----
1183

query I rowsort
SELECT ALL 70 * 50
----
3500

query I rowsort
SELECT 45 + 87 AS col0
----
132

query I rowsort
SELECT ALL - ( + 62 ) * - 76 AS col1
----
4712

query I rowsort
SELECT DISTINCT - ( + 9 ) AS col2
----
-9

query I rowsort
SELECT ALL - 25 AS col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6505
SELECT ALL + CAST( + ( + ( + COUNT( ( + 72 ) ) ) ) AS SIGNED ) * - 2 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL + CAST ( + ( + ( + COUNT ( ( + 72 ) ) ) ) AS INTEGER ) * - 2 AS col0
----
-2

query I rowsort
SELECT + 51 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT ALL - 74 + - 73 * MAX( + 89 ) AS col0
----
-6571

skipif mysql # not compatible
query I rowsort label-6507
SELECT ALL - 74 + - 73 * MAX ( + 89 ) AS col0
----
-6571

query I rowsort
SELECT 44 + + 62
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-6509
SELECT 1 DIV + 56 + 95 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-6509
SELECT 1 / + 56 + 95 AS col2
----
95

query I rowsort
SELECT 51 * 14 AS col2
----
714

query I rowsort
SELECT 86 * 25 AS col2
----
2150

query I rowsort
SELECT ALL - 25
----
-25

query I rowsort
SELECT 44 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT DISTINCT + 20 + + MAX( + 84 ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT + 20 + + MAX ( + 84 ) AS col1
----
104

query I rowsort
SELECT ALL 98 + 85
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT 76 * COALESCE ( - 88, MIN( ALL - 47 ) ) AS col0
----
-6688

skipif mysql # not compatible
query I rowsort label-6516
SELECT 76 * COALESCE ( - 88, MIN ( ALL - 47 ) ) AS col0
----
-6688

query I rowsort
SELECT ALL - ( 27 )
----
-27

query I rowsort
SELECT DISTINCT - 18
----
-18

query I rowsort
SELECT 89 + 30
----
119

query I rowsort
SELECT ALL 50 * 21 AS col1
----
1050

query I rowsort
SELECT 73
----
73

query I rowsort
SELECT ALL 62 + - 14
----
48

query I rowsort
SELECT + 82 AS col2
----
82

query I rowsort
SELECT 81 AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6525
SELECT CAST( NULL AS SIGNED ) - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-6525
SELECT CAST ( NULL AS INTEGER ) - 10
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6526
SELECT DISTINCT MIN( - 62 ) + COUNT( * ) * CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6526
SELECT DISTINCT MIN ( - 62 ) + COUNT ( * ) * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 14 * ( 13 ) AS col1
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT 85 + COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-6528
SELECT 85 + COUNT ( * ) AS col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6529
SELECT COUNT( * ) DIV 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6529
SELECT COUNT ( * ) / 83 AS col0
----
0

query I rowsort
SELECT 68 col0
----
68

query I rowsort
SELECT ALL ( + 10 ) - - 21
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6532
SELECT ( 18 ) + + 50 DIV + 49
----
19

skipif mysql # not compatible
query I rowsort label-6532
SELECT ( 18 ) + + 50 / + 49
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6533
SELECT ALL SUM( 32 ) DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL SUM ( 32 ) / 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT COUNT( * ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6534
SELECT COUNT ( * ) + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6535
SELECT DISTINCT + 58 DIV - CASE COUNT( * ) WHEN + 2 THEN NULL ELSE 95 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT + 58 / - CASE COUNT ( * ) WHEN + 2 THEN NULL ELSE 95 END AS col0
----
0

query I rowsort
SELECT DISTINCT 50
----
50

query I rowsort
SELECT ALL - - 26 - + 69 * 45 AS col1
----
-3079

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT ALL + - ( COUNT( * ) ) * + 33
----
-33

skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL + - ( COUNT ( * ) ) * + 33
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-6539
SELECT ALL - 48 DIV 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL - 48 / 88 AS col0
----
0

query I rowsort
SELECT - 79 AS col1
----
-79

query I rowsort
SELECT 37 + - 78 * 77 col0
----
-5969

query I rowsort
SELECT ALL 61 * - 94
----
-5734

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT - COUNT( * ) + COUNT( ALL + 49 + - ( - 28 ) ) * + ( 11 )
----
10

skipif mysql # not compatible
query I rowsort label-6543
SELECT - COUNT ( * ) + COUNT ( ALL + 49 + - ( - 28 ) ) * + ( 11 )
----
10

query I rowsort
SELECT 85 * 27 AS col2
----
2295

query I rowsort
SELECT 29 + + 79 AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT ALL - 96 * COUNT( * ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL - 96 * COUNT ( * ) AS col0
----
-96

query I rowsort
SELECT ALL - 18
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT - + SUM( 89 ) col2
----
-89

skipif mysql # not compatible
query I rowsort label-6548
SELECT - + SUM ( 89 ) col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT DISTINCT 45 * + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT 45 * + COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT 8 * + SUM( - 63 ) AS col0
----
-504

skipif mysql # not compatible
query I rowsort label-6550
SELECT 8 * + SUM ( - 63 ) AS col0
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT ALL - MAX( - 97 )
----
97

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL - MAX ( - 97 )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6552
SELECT - 94 DIV COUNT( * ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-6552
SELECT - 94 / COUNT ( * ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT ALL + + CASE - MIN( - 63 ) WHEN + 41 * + COUNT( * ) THEN 79 ELSE NULL END + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-6553
SELECT ALL + + CASE - MIN ( - 63 ) WHEN + 41 * + COUNT ( * ) THEN 79 ELSE NULL END + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT + COUNT( * ) - 94 * ( + CASE 10 WHEN + COUNT( * ) THEN - 75 WHEN + COUNT( * ) + COUNT( * ) THEN - 2 * 73 WHEN 45 * - 8 THEN COUNT( * ) ELSE - 48 + COUNT( * ) END ) AS col2
----
4419

skipif mysql # not compatible
query I rowsort label-6554
SELECT + COUNT ( * ) - 94 * ( + CASE 10 WHEN + COUNT ( * ) THEN - 75 WHEN + COUNT ( * ) + COUNT ( * ) THEN - 2 * 73 WHEN 45 * - 8 THEN COUNT ( * ) ELSE - 48 + COUNT ( * ) END ) AS col2
----
4419

query I rowsort
SELECT - 97 AS col1
----
-97

query I rowsort
SELECT 88 * + 34
----
2992

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6557
SELECT ALL + + CAST( - 83 AS SIGNED ) DIV - 23
----
3

skipif mysql # not compatible
query I rowsort label-6557
SELECT ALL + + CAST ( - 83 AS INTEGER ) / - 23
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6558
SELECT - 60 DIV + 22
----
-2

skipif mysql # not compatible
query I rowsort label-6558
SELECT - 60 / + 22
----
-2

query I rowsort
SELECT + 87
----
87

query I rowsort
SELECT + - 77
----
-77

query I rowsort
SELECT + 5 AS col1
----
5

query I rowsort
SELECT 96 * ( - 36 ) AS col0
----
-3456

query I rowsort
SELECT DISTINCT 69 * + 61 * 20 + NULLIF ( 48 + 19, 53 ) col2
----
84247

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6564
SELECT ALL + 34 DIV + + COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL + 34 / + + COUNT ( * ) AS col1
----
34

query I rowsort
SELECT + 14 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT ALL - COUNT( * ) * - COALESCE ( COUNT( * ), + COUNT( * ) + - 50 * 83 )
----
1

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL - COUNT ( * ) * - COALESCE ( COUNT ( * ), + COUNT ( * ) + - 50 * 83 )
----
1

query I rowsort
SELECT DISTINCT COALESCE ( - 47, 94 * - 97 - 89 * ( + 90 ), - 88 ) * ( + 67 ) + - 59
----
-3208

query I rowsort
SELECT ALL - 60 col2
----
-60

query I rowsort
SELECT + 72 AS col0
----
72

query I rowsort
SELECT 69 + - + 62
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6571
SELECT + 0 * + + 20 + - 42 * CAST( - 7 AS SIGNED )
----
294

skipif mysql # not compatible
query I rowsort label-6571
SELECT + 0 * + + 20 + - 42 * CAST ( - 7 AS INTEGER )
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT COUNT( - 85 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6572
SELECT COUNT ( - 85 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6573
SELECT ALL - CAST( 42 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL - CAST ( 42 AS INTEGER )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT DISTINCT - SUM( - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT - SUM ( - 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT 24 * - COUNT( * ) * + 96
----
-2304

skipif mysql # not compatible
query I rowsort label-6575
SELECT 24 * - COUNT ( * ) * + 96
----
-2304

query I rowsort
SELECT + 37 col1
----
37

query I rowsort
SELECT 30 + + 8 AS col0
----
38

query I rowsort
SELECT 1 * 31
----
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6579
SELECT ALL - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT 50 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT + 49 - + + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-6581
SELECT + 49 - + + COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT ALL SUM( ALL + 56 ) * 86
----
4816

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL SUM ( ALL + 56 ) * 86
----
4816

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT DISTINCT CASE 47 WHEN + 38 / + 83 THEN NULL WHEN + SUM( + 62 ) + - 63 * 91 THEN NULL ELSE 88 * 62 END * + 36 AS col0
----
196416

skipif mysql # not compatible
query I rowsort label-6583
SELECT DISTINCT CASE 47 WHEN + 38 / + 83 THEN NULL WHEN + SUM ( + 62 ) + - 63 * 91 THEN NULL ELSE 88 * 62 END * + 36 AS col0
----
196416

query I rowsort
SELECT - ( 45 ) * 8 - + 98 AS col1
----
-458

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT - + SUM( DISTINCT - 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-6585
SELECT - + SUM ( DISTINCT - 96 ) AS col1
----
96

query I rowsort
SELECT - 46
----
-46

query I rowsort
SELECT ALL + 85 * + + COALESCE ( 54, - 12 * + 91 ) + + 36 AS col1
----
4626

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6588
SELECT DISTINCT + CAST( - + 68 AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-6588
SELECT DISTINCT + CAST ( - + 68 AS INTEGER )
----
-68

query I rowsort
SELECT + 33 * 75 col1
----
2475

query I rowsort
SELECT + - 41 * + 12 AS col0
----
-492

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT + + COUNT( * ) - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6591
SELECT + + COUNT ( * ) - - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT ALL + 25 * + MAX( ALL + 19 ) AS col1
----
475

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL + 25 * + MAX ( ALL + 19 ) AS col1
----
475

query I rowsort
SELECT ALL - ( - + 83 ) col2
----
83

query I rowsort
SELECT ALL + 18 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT ALL + MIN( - 24 ) + - 11
----
-35

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL + MIN ( - 24 ) + - 11
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT + + CASE - 52 WHEN - 36 THEN - 20 WHEN 35 THEN NULL WHEN + 79 + - 87 THEN NULL WHEN + 93 - ( 31 ) THEN 45 ELSE ( - 57 ) END * + COUNT( - 6 * - 60 )
----
-57

skipif mysql # not compatible
query I rowsort label-6596
SELECT + + CASE - 52 WHEN - 36 THEN - 20 WHEN 35 THEN NULL WHEN + 79 + - 87 THEN NULL WHEN + 93 - ( 31 ) THEN 45 ELSE ( - 57 ) END * + COUNT ( - 6 * - 60 )
----
-57

query I rowsort
SELECT ALL 39 + 60 col0
----
99

query I rowsort
SELECT + - 6 * 96 + 78 AS col1
----
-498

query I rowsort