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
SELECT - 5 - + 34
----
-39

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

query I rowsort
SELECT - 19 * - 16 + 13
----
317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6602
SELECT - CASE ( - 87 ) WHEN CAST( + 6 AS SIGNED ) THEN ( + SUM( + 87 ) ) ELSE 0 * - ( 89 ) END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6602
SELECT - CASE ( - 87 ) WHEN CAST ( + 6 AS INTEGER ) THEN ( + SUM ( + 87 ) ) ELSE 0 * - ( 89 ) END AS col2
----
0

query I rowsort
SELECT DISTINCT + - 14 + + 6 + 52 AS col0
----
44

query I rowsort
SELECT ALL - 59 + 84 AS col0
----
25

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

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

query I rowsort
SELECT + 61 col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT DISTINCT 34 * ( + - COUNT( * ) ) + 87 * - 42 AS col2
----
-3688

skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT 34 * ( + - COUNT ( * ) ) + 87 * - 42 AS col2
----
-3688

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

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

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

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

query I rowsort
SELECT + COALESCE ( - 98, + 2 ) * 56
----
-5488

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT - 33 * CASE - + 11 WHEN - 31 + + 55 THEN 14 + + CASE COUNT( * ) + + 80 WHEN COUNT( * ) THEN + 98 ELSE NULL END ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6611
SELECT - 33 * CASE - + 11 WHEN - 31 + + 55 THEN 14 + + CASE COUNT ( * ) + + 80 WHEN COUNT ( * ) THEN + 98 ELSE NULL END ELSE NULL END AS col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6613
SELECT 76 DIV + 23 + 16 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-6613
SELECT 76 / + 23 + 16 AS col1
----
19

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

query I rowsort
SELECT ( + + COALESCE ( + 0, 88 * - 4, 82 ) ) AS col2
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6617
SELECT - CAST( + - 46 AS SIGNED ) * - 7 + 11
----
-311

skipif mysql # not compatible
query I rowsort label-6617
SELECT - CAST ( + - 46 AS INTEGER ) * - 7 + 11
----
-311

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

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

query I rowsort
SELECT ALL + 67 * + COALESCE ( + 57, + NULLIF ( 42, ( 25 ) * 99 ) * 37 ) AS col2
----
3819

onlyif mysql # aggregate syntax: 
query II rowsort label-6620
SELECT + 35, + 11 * - COUNT( * ) AS col2
----
35
-11

skipif mysql # not compatible
query II rowsort label-6620
SELECT + 35, + 11 * - COUNT ( * ) AS col2
----
35
-11

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6622
SELECT DISTINCT + 85 DIV - 78 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT + 85 / - 78 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT - 67 * + MAX( DISTINCT - 54 )
----
3618

skipif mysql # not compatible
query I rowsort label-6623
SELECT - 67 * + MAX ( DISTINCT - 54 )
----
3618

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

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

query I rowsort
SELECT ALL - 96 * - 93 * + ( - 2 ) - 45 AS col2
----
-17901

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT - 55 + - - MAX( DISTINCT - CASE + 91 WHEN 10 + 88 THEN NULL WHEN + 76 - - 77 THEN - 57 ELSE NULL END ) * + COALESCE ( 33 / - 20, - NULLIF ( + 4, + ( SUM( 21 ) ) * 8 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6627
SELECT - 55 + - - MAX ( DISTINCT - CASE + 91 WHEN 10 + 88 THEN NULL WHEN + 76 - - 77 THEN - 57 ELSE NULL END ) * + COALESCE ( 33 / - 20, - NULLIF ( + 4, + ( SUM ( 21 ) ) * 8 ) )
----
NULL

query I rowsort
SELECT + 1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6629
SELECT - 19 DIV - - COUNT( + 37 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-6629
SELECT - 19 / - - COUNT ( + 37 ) AS col0
----
-19

query I rowsort
SELECT ALL + 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT 4 * + 59 + MIN( DISTINCT + 27 ) + 22 * 64 AS col2
----
1671

skipif mysql # not compatible
query I rowsort label-6631
SELECT 4 * + 59 + MIN ( DISTINCT + 27 ) + 22 * 64 AS col2
----
1671

query I rowsort
SELECT - - COALESCE ( 84, + 15 + - NULLIF ( - 88 - 74, + 45 * 84 + + 79 ) ) - 70
----
14

query II rowsort
SELECT + - 89 AS col1, 88 * - - 34
----
-89
2992

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT - - 51 + - CASE ( MAX( + 5 ) ) WHEN 91 THEN + MIN( 67 ) + + 82 WHEN 53 + - 1 THEN NULL WHEN - 63 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6634
SELECT - - 51 + - CASE ( MAX ( + 5 ) ) WHEN 91 THEN + MIN ( 67 ) + + 82 WHEN 53 + - 1 THEN NULL WHEN - 63 THEN NULL END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT - - MAX( 35 )
----
35

skipif mysql # not compatible
query I rowsort label-6636
SELECT - - MAX ( 35 )
----
35

query I rowsort
SELECT ALL + NULLIF ( + 27, + + 40 * 56 ) AS col1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6638
SELECT DISTINCT - 18 * + ( - - COUNT( * ) ) + 99 DIV COUNT( * ) + - 47 * + 65
----
-2974

skipif mysql # not compatible
query I rowsort label-6638
SELECT DISTINCT - 18 * + ( - - COUNT ( * ) ) + 99 / COUNT ( * ) + - 47 * + 65
----
-2974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6639
SELECT ALL 4 * - + 83 + + - 42 + CAST( CAST( 31 AS SIGNED ) AS SIGNED )
----
-343

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL 4 * - + 83 + + - 42 + CAST ( CAST ( 31 AS INTEGER ) AS INTEGER )
----
-343

query I rowsort
SELECT 10 * - 71 + + 32 + + 15
----
-663

onlyif mysql # DIV for integer division: 
query I rowsort label-6641
SELECT ALL - 4 + 47 - - + 27 + ( 80 ) DIV 78 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL - 4 + 47 - - + 27 + ( 80 ) / 78 AS col2
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6642
SELECT DISTINCT + - 25 DIV - SUM( DISTINCT + 45 )
----
0

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT + - 25 / - SUM ( DISTINCT + 45 )
----
0

query I rowsort
SELECT + ( 77 ) + 24 * - CASE 30 WHEN + 99 THEN - 97 END
----
NULL

query I rowsort
SELECT - + 24 * - + 16 + + + 88 col2
----
472

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT DISTINCT - COUNT( * ) * + - 32 * 30 AS col0
----
960

skipif mysql # not compatible
query I rowsort label-6646
SELECT DISTINCT - COUNT ( * ) * + - 32 * 30 AS col0
----
960

query I rowsort
SELECT + + ( - + 85 ) + + 84 - 57
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6648
SELECT - + 74 DIV 90 * + MAX( 77 ) - - 12 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-6648
SELECT - + 74 / 90 * + MAX ( 77 ) - - 12 AS col2
----
12

query I rowsort
SELECT + - 69 + - 61 AS col0
----
-130

query I rowsort
SELECT + - 58 * - - 14 + - - 74
----
-738

query I rowsort
SELECT - 43
----
-43

query I rowsort
SELECT ALL + 88 + - 24 AS col2
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-6653
SELECT + 82, + 1 + - + 34 + - 5 DIV + NULLIF ( 48 * 59 + + 46, 6 ) AS col1
----
82
-33

skipif mysql # not compatible
query II rowsort label-6653
SELECT + 82, + 1 + - + 34 + - 5 / + NULLIF ( 48 * 59 + + 46, 6 ) AS col1
----
82
-33

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6655
SELECT ALL 75 DIV - 25
----
-3

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL 75 / - 25
----
-3

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

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL MIN ( 83 )
----
83

query I rowsort
SELECT + COALESCE ( 19, + - 7, - + 96 + 28 ) * + 80 AS col2
----
1520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6658
SELECT ALL 45 - + NULLIF ( - + ( - CAST( NULL AS SIGNED ) ), 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6658
SELECT ALL 45 - + NULLIF ( - + ( - CAST ( NULL AS INTEGER ) ), 64 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6659
SELECT DISTINCT 4 DIV + + NULLIF ( + 77, + 80 + 44 * 58 ) * + 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6659
SELECT DISTINCT 4 / + + NULLIF ( + 77, + 80 + 44 * 58 ) * + 18 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT + 27 - + SUM( - 37 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-6660
SELECT + 27 - + SUM ( - 37 ) AS col0
----
64

query I rowsort
SELECT + 33 * 20
----
660

onlyif mysql # DIV for integer division: 
query II rowsort label-6662
SELECT ALL 39 DIV + 67 col1, 61 + - + 97 * - ( 88 ) AS col2
----
0
8597

skipif mysql # not compatible
query II rowsort label-6662
SELECT ALL 39 / + 67 col1, 61 + - + 97 * - ( 88 ) AS col2
----
0
8597

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

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

query I rowsort
SELECT + 9 * - 4
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT + ( MAX( - 79 ) ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-6665
SELECT + ( MAX ( - 79 ) ) AS col1
----
-79

query II rowsort
SELECT - 27 + + - 92 col1, 14 AS col2
----
-119
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT DISTINCT COUNT( * ) * - + 53 * - - 64
----
-3392

skipif mysql # not compatible
query I rowsort label-6667
SELECT DISTINCT COUNT ( * ) * - + 53 * - - 64
----
-3392

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

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

query I rowsort
SELECT + 73 * - 27 * + - 30 AS col2
----
59130

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 91 col1
----
-91

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

query I rowsort
SELECT 75 AS col1
----
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT DISTINCT - CASE - MIN( ALL - - 64 ) WHEN COUNT( * ) THEN 39 * 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6677
SELECT DISTINCT - CASE - MIN ( ALL - - 64 ) WHEN COUNT ( * ) THEN 39 * 17 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6678
SELECT - 53 * - + 99 + - + COUNT ( * ) AS col1
----
5246

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT 20 * MAX( - 28 ) * 69 + + 4 * + COUNT( * )
----
-38636

skipif mysql # not compatible
query I rowsort label-6679
SELECT 20 * MAX ( - 28 ) * 69 + + 4 * + COUNT ( * )
----
-38636

query I rowsort
SELECT 55 + 66 AS col1
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-6681
SELECT ALL - 69 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-6681
SELECT ALL - 69 / 99
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT ALL 71 + + - COUNT( * ) * - 18
----
89

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL 71 + + - COUNT ( * ) * - 18
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT ALL - + 77 * 71 * - COUNT( * )
----
5467

skipif mysql # not compatible
query I rowsort label-6684
SELECT ALL - + 77 * 71 * - COUNT ( * )
----
5467

query I rowsort
SELECT COALESCE ( - 28, + 86 )
----
-28

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

query I rowsort
SELECT - 24 * - 52 * + 60 + - 10 * + 10 AS col0
----
74780

query I rowsort
SELECT ALL - 8 + 86 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT ALL + + MAX( 6 ) * + + NULLIF ( 92, + COUNT( * ) ) * - ( 6 + ( 15 + 69 ) )
----
-49680

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL + + MAX ( 6 ) * + + NULLIF ( 92, + COUNT ( * ) ) * - ( 6 + ( 15 + 69 ) )
----
-49680

onlyif mysql # aggregate syntax: 
query II rowsort label-6690
SELECT ALL + 28 + 54, COUNT( * ) + + 65 col1
----
82
66

skipif mysql # not compatible
query II rowsort label-6690
SELECT ALL + 28 + 54, COUNT ( * ) + + 65 col1
----
82
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT DISTINCT + 17 * - 33 + - 48 * - COUNT( * ) * MAX( - 64 ) + - COUNT( DISTINCT 23 - - 45 )
----
-3634

skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT + 17 * - 33 + - 48 * - COUNT ( * ) * MAX ( - 64 ) + - COUNT ( DISTINCT 23 - - 45 )
----
-3634

query I rowsort
SELECT + 90 - - + 25
----
115

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT - CASE - 38 WHEN 26 THEN - + COUNT( * ) * + 42 WHEN + 24 THEN NULL WHEN + 37 * + 71 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6694
SELECT - CASE - 38 WHEN 26 THEN - + COUNT ( * ) * + 42 WHEN + 24 THEN NULL WHEN + 37 * + 71 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT ALL + + AVG ( 14 ) * - - CASE - - ( ( + 70 ) ) WHEN - 53 + + MIN( - 67 ) THEN 99 * - 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL + + AVG ( 14 ) * - - CASE - - ( ( + 70 ) ) WHEN - 53 + + MIN ( - 67 ) THEN 99 * - 68 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6696
SELECT 93 * MAX( - 48 ) + CASE 90 WHEN 75 THEN NULL ELSE 7 END DIV - 72
----
-4464

skipif mysql # not compatible
query I rowsort label-6696
SELECT 93 * MAX ( - 48 ) + CASE 90 WHEN 75 THEN NULL ELSE 7 END / - 72
----
-4464

query I rowsort
SELECT + 74 * + + 89 - - + 8 + + 97
----
6691

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT - - NULLIF ( + 85, 57 / + SUM( + 61 ) ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-6698
SELECT - - NULLIF ( + 85, 57 / + SUM ( + 61 ) ) AS col0
----
85

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

query I rowsort
SELECT - 88 AS col1
----
-88

query I rowsort
SELECT DISTINCT 99
----
99

query I rowsort
SELECT ALL + 23 * + + 69
----
1587

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT - 40 - + - 25 + + MAX( ALL 51 ) + + 5 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-6703
SELECT - 40 - + - 25 + + MAX ( ALL 51 ) + + 5 AS col2
----
41

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6706
SELECT ALL - 32 - + 80 DIV - - NULLIF ( - - 59, - 70 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL - 32 - + 80 / - - NULLIF ( - - 59, - 70 ) AS col0
----
-33

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

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

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

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

query I rowsort
SELECT ( 60 ) * - + 23
----
-1380

onlyif mysql # DIV for integer division: 
query I rowsort label-6710
SELECT DISTINCT - 2 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-6710
SELECT DISTINCT - 2 / + 63
----
0

query I rowsort
SELECT 69 + - 88 AS col2
----
-19

query I rowsort
SELECT 79 + + 73
----
152

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT 85 * ( - MAX( ALL + - 29 ) ) AS col1
----
2465

skipif mysql # not compatible
query I rowsort label-6714
SELECT 85 * ( - MAX ( ALL + - 29 ) ) AS col1
----
2465

query I rowsort
SELECT 88 + - CASE 41 WHEN + 96 THEN + 54 ELSE NULL END / 21
----
NULL

query I rowsort
SELECT - 68 col0
----
-68

query I rowsort
SELECT ALL - 85 * 90 AS col2
----
-7650

query I rowsort
SELECT 4 + - 34
----
-30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT COALESCE ( - - CASE ( + + COALESCE ( + + 50, + 92 * - 56 + COUNT( * ) ) ) WHEN COUNT( * ) THEN NULL ELSE 70 END, 60 * + 57, - 97 * COUNT( 69 ) ) + 31 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-6721
SELECT COALESCE ( - - CASE ( + + COALESCE ( + + 50, + 92 * - 56 + COUNT ( * ) ) ) WHEN COUNT ( * ) THEN NULL ELSE 70 END, 60 * + 57, - 97 * COUNT ( 69 ) ) + 31 AS col2
----
101

query III rowsort
SELECT 66 AS col1, - 76 + + 12 AS col2, - 44 AS col1
----
66
-64
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-6723
SELECT 85 * 35 DIV - + 23 + + 6
----
-123

skipif mysql # not compatible
query I rowsort label-6723
SELECT 85 * 35 / - + 23 + + 6
----
-123

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6725
SELECT 30 DIV ( - + 7 )
----
-4

skipif mysql # not compatible
query I rowsort label-6725
SELECT 30 / ( - + 7 )
----
-4

query I rowsort
SELECT 13 * + - 41 * - + 97 * + 3 * 33 AS col2
----
5118399

query II rowsort
SELECT DISTINCT - 97, 46 AS col0
----
-97
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT DISTINCT COUNT( * ) + NULLIF ( 6, - + NULLIF ( + - 69, 73 ) * 94 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-6728
SELECT DISTINCT COUNT ( * ) + NULLIF ( 6, - + NULLIF ( + - 69, 73 ) * 94 ) AS col2
----
7

query II rowsort
SELECT + + 6 AS col0, + 12 AS col1
----
6
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT - 4 * 83 * - 4 + + - COUNT( * ) + - 49 AS col0
----
1278

skipif mysql # not compatible
query I rowsort label-6731
SELECT - 4 * 83 * - 4 + + - COUNT ( * ) + - 49 AS col0
----
1278

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT ALL 82 * - MIN( - COALESCE ( + 48, - 76 * + 36 ) )
----
3936

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL 82 * - MIN ( - COALESCE ( + 48, - 76 * + 36 ) )
----
3936

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT + COUNT( DISTINCT + - 8 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6734
SELECT + COUNT ( DISTINCT + - 8 ) AS col1
----
1

query I rowsort
SELECT ALL + 88 + 60 + - + 37
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6736
SELECT 59 - + 86 + - + 61 + + - 91 * - CAST( NULL AS SIGNED ) + CAST( - CASE CAST( 62 AS SIGNED ) WHEN 87 + 23 * 4 THEN NULL WHEN - COUNT( * ) THEN 86 - 36 ELSE NULL END + COUNT( DISTINCT 29 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6736
SELECT 59 - + 86 + - + 61 + + - 91 * - CAST ( NULL AS INTEGER ) + CAST ( - CASE CAST ( 62 AS INTEGER ) WHEN 87 + 23 * 4 THEN NULL WHEN - COUNT ( * ) THEN 86 - 36 ELSE NULL END + COUNT ( DISTINCT 29 ) AS INTEGER )
----
NULL

query II rowsort
SELECT + COALESCE ( - + 74, - 48 ), 24 * 50 AS col2
----
-74
1200

query I rowsort
SELECT + 25 * - 54 + 98 * + 40
----
2570

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT 6 - COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-6739
SELECT 6 - COUNT ( * ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT ALL COUNT( * ) + - - ( COUNT( DISTINCT 4 ) ) + - - 33 * MAX( - 91 + - 66 )
----
-5179

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL COUNT ( * ) + - - ( COUNT ( DISTINCT 4 ) ) + - - 33 * MAX ( - 91 + - 66 )
----
-5179

query I rowsort
SELECT 39 + + 91 AS col2
----
130

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT DISTINCT 89 - 65 + - 1 / CASE - + 64 WHEN + 95 THEN NULL WHEN - 86 THEN CASE - 11 WHEN 49 THEN 67 * 67 + - 58 END * - COUNT( * ) WHEN - 80 THEN NULL ELSE NULL END / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6744
SELECT DISTINCT 89 - 65 + - 1 / CASE - + 64 WHEN + 95 THEN NULL WHEN - 86 THEN CASE - 11 WHEN 49 THEN 67 * 67 + - 58 END * - COUNT ( * ) WHEN - 80 THEN NULL ELSE NULL END / + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 61 - - 16 + - 27 * - 80 + 43 * 17
----
2968

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT ALL ( NULLIF ( + 34, - + COUNT( * ) + - - SUM( 36 ) * + 10 ) ) * + COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL ( NULLIF ( + 34, - + COUNT ( * ) + - - SUM ( 36 ) * + 10 ) ) * + COUNT ( * ) AS col1
----
34

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

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

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

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

query II rowsort
SELECT 8 * + + 95 * + 90, - 92 AS col2
----
68400
-92

query I rowsort
SELECT DISTINCT - 70 * 80 + ( - + COALESCE ( + 74, + 94, 33 ) ) * 48 AS col1
----
-9152

query II rowsort
SELECT ALL + + 53 * - 23 * 92 AS col2, 97
----
-112148
97

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

query I rowsort
SELECT 8 * + + 25 * - 39
----
-7800

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

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

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

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL MIN ( 40 )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-6757
SELECT - 57 AS col1, + 30 * - COUNT( * ) * - 28 AS col0
----
-57
840

skipif mysql # not compatible
query II rowsort label-6757
SELECT - 57 AS col1, + 30 * - COUNT ( * ) * - 28 AS col0
----
-57
840

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6759
SELECT 24 + + ( - 45 ) + + 95 + 24 - + 83 * 48 DIV 8 AS col2
----
-400

skipif mysql # not compatible
query I rowsort label-6759
SELECT 24 + + ( - 45 ) + + 95 + 24 - + 83 * 48 / 8 AS col2
----
-400

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

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

query I rowsort
SELECT 17 col2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-6762
SELECT ALL 64, + 36 * - - COUNT( * ) AS col1
----
64
36

skipif mysql # not compatible
query II rowsort label-6762
SELECT ALL 64, + 36 * - - COUNT ( * ) AS col1
----
64
36

query I rowsort
SELECT DISTINCT 16
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT ALL COALESCE ( + + 67, + 60 - COUNT( * ) - + 11 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL COALESCE ( + + 67, + 60 - COUNT ( * ) - + 11 ) AS col1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6765
SELECT DISTINCT CASE - 94 WHEN + + ( - 58 ) + + + 87 THEN + CAST( - 40 AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6765
SELECT DISTINCT CASE - 94 WHEN + + ( - 58 ) + + + 87 THEN + CAST ( - 40 AS INTEGER ) END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT MIN ( 56 )
----
56

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

skipif mysql # not compatible
query I rowsort label-6767
SELECT DISTINCT 79 * - CAST ( NULL AS REAL ) col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6769
SELECT ALL SUM( ALL 41 ) AS col0, - 69 + 15 + + + 62 + 98 * 23 AS col1
----
41
2262

skipif mysql # not compatible
query II rowsort label-6769
SELECT ALL SUM ( ALL 41 ) AS col0, - 69 + 15 + + + 62 + 98 * 23 AS col1
----
41
2262

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT - 32 * MIN( + 84 )
----
-2688

skipif mysql # not compatible
query I rowsort label-6771
SELECT - 32 * MIN ( + 84 )
----
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT CASE 88 WHEN + 71 * + 62 + - 25 + + COUNT( * ) + 25 * - 57 THEN + 45 WHEN - 0 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6772
SELECT CASE 88 WHEN + 71 * + 62 + - 25 + + COUNT ( * ) + 25 * - 57 THEN + 45 WHEN - 0 THEN NULL END AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6774
SELECT + 58 * 46 + - CAST( + NULLIF ( + 95, - 57 * SUM( DISTINCT - 2 ) ) AS SIGNED ) * - 2 AS col0
----
2858

skipif mysql # not compatible
query I rowsort label-6774
SELECT + 58 * 46 + - CAST ( + NULLIF ( + 95, - 57 * SUM ( DISTINCT - 2 ) ) AS INTEGER ) * - 2 AS col0
----
2858

query II rowsort
SELECT + 72 * - + 41 AS col2, + 58
----
-2952
58

query I rowsort
SELECT NULLIF ( + 84, + - 36 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT ALL 76 * - + 6 + + MAX( - 41 )
----
-497

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL 76 * - + 6 + + MAX ( - 41 )
----
-497

query I rowsort
SELECT - 2 * 9 - - 94 AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6779
SELECT ALL + CASE + CAST( + - 37 AS DECIMAL ) WHEN MAX( - - 61 ) + + - 0 / 2 THEN 14 * 86 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL + CASE + CAST ( + - 37 AS REAL ) WHEN MAX ( - - 61 ) + + - 0 / 2 THEN 14 * 86 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT + - ( 95 ), + 97 AS col2
----
-95
97

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6783
SELECT - COUNT( * ) * ( + - 56 ) + 66 + 39 * CAST( 21 AS SIGNED ) + 3 * COUNT( * )
----
944

skipif mysql # not compatible
query I rowsort label-6783
SELECT - COUNT ( * ) * ( + - 56 ) + 66 + 39 * CAST ( 21 AS INTEGER ) + 3 * COUNT ( * )
----
944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6784
SELECT + COUNT( * ) * - COALESCE ( - MIN( DISTINCT 92 ), - COALESCE ( - 12, + 95 ) + SUM( + CAST( + 44 AS SIGNED ) + - CAST( 87 + - 33 AS SIGNED ) ) ) * - 84 AS col0
----
-7728

skipif mysql # not compatible
query I rowsort label-6784
SELECT + COUNT ( * ) * - COALESCE ( - MIN ( DISTINCT 92 ), - COALESCE ( - 12, + 95 ) + SUM ( + CAST ( + 44 AS INTEGER ) + - CAST ( 87 + - 33 AS INTEGER ) ) ) * - 84 AS col0
----
-7728

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6786
SELECT + + 56 + MIN( DISTINCT - + 54 ) DIV 84 AS col0, SUM( 57 )
----
56
57

skipif mysql # not compatible
query II rowsort label-6786
SELECT + + 56 + MIN ( DISTINCT - + 54 ) / 84 AS col0, SUM ( 57 )
----
56
57

query I rowsort
SELECT DISTINCT 34 * + 97 * - - 79 col2
----
260542

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6789
SELECT DISTINCT + - 61 AS col2, COALESCE ( CASE + 18 WHEN CASE - 63 WHEN + 17 THEN 63 END + 70 * + 68 THEN - NULLIF ( COUNT( * ), + COALESCE ( + COALESCE ( + 80, + 87 + 44, - 27 ), - 40 ) DIV + NULLIF ( + CAST( NULL AS SIGNED ), COUNT( * ) + 44 ) ) DIV - COUNT( * ) - COUNT( * ) WHEN 69 THEN + 78 * + 21 WHEN 33 THEN NULL END, 77 * 2 ) + 80
----
-61
234

skipif mysql # not compatible
query II rowsort label-6789
SELECT DISTINCT + - 61 AS col2, COALESCE ( CASE + 18 WHEN CASE - 63 WHEN + 17 THEN 63 END + 70 * + 68 THEN - NULLIF ( COUNT ( * ), + COALESCE ( + COALESCE ( + 80, + 87 + 44, - 27 ), - 40 ) / + NULLIF ( + CAST ( NULL AS INTEGER ), COUNT ( * ) + 44 ) ) / - COUNT ( * ) - COUNT ( * ) WHEN 69 THEN + 78 * + 21 WHEN 33 THEN NULL END, 77 * 2 ) + 80
----
-61
234

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT DISTINCT COUNT( * ) * + 32 * + 12
----
384

skipif mysql # not compatible
query I rowsort label-6790
SELECT DISTINCT COUNT ( * ) * + 32 * + 12
----
384

query I rowsort
SELECT ALL + - 98 * + - 8 - - 70
----
854

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT + + MAX( ALL + 96 ) * 22
----
2112

skipif mysql # not compatible
query I rowsort label-6792
SELECT + + MAX ( ALL + 96 ) * 22
----
2112

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

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

query I rowsort
SELECT + 89 - 17 - + 27 * 90 * ( 98 )
----
-238068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6795
SELECT COALESCE ( ( - 46 ), + - NULLIF ( 6, + CAST( NULL AS SIGNED ) + 12 ), - 71 )
----
-46

skipif mysql # not compatible
query I rowsort label-6795
SELECT COALESCE ( ( - 46 ), + - NULLIF ( 6, + CAST ( NULL AS INTEGER ) + 12 ), - 71 )
----
-46

query I rowsort
SELECT + 2 + 43
----
45

query I rowsort
SELECT 49 col1
----
49

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

query I rowsort
SELECT ALL COALESCE ( + - 15, 78 ) AS col0
----
-15

query I rowsort
SELECT ALL + NULLIF ( + 83, 3 + 27 ) * - 73 + + 5 * 56 + - 69 AS col0
----
-5848

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6801
SELECT - 68 DIV - 88 AS col2, + 30 * + 7 + + + 38 * + 13 + COUNT( * ) AS col0
----
0
705

skipif mysql # not compatible
query II rowsort label-6801
SELECT - 68 / - 88 AS col2, + 30 * + 7 + + + 38 * + 13 + COUNT ( * ) AS col0
----
0
705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6802
SELECT DISTINCT MIN( - CAST( - 57 AS SIGNED ) ) + + 6
----
63

skipif mysql # not compatible
query I rowsort label-6802
SELECT DISTINCT MIN ( - CAST ( - 57 AS INTEGER ) ) + + 6
----
63

query I rowsort
SELECT + 38 + + 42
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT - 3 / - + ( 33 ) * CASE - COUNT( 83 ) WHEN 9 THEN + 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6804
SELECT - 3 / - + ( 33 ) * CASE - COUNT ( 83 ) WHEN 9 THEN + 89 END
----
NULL

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

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

query I rowsort
SELECT + 91 + + 47 AS col2
----
138

query I rowsort
SELECT - 97 - - 55 * - 27
----
-1582

query I rowsort
SELECT ALL COALESCE ( + - 36, + - 59, 63 + 30 - 45 * 55 ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-6809
SELECT - 67 + + - 65 AS col0, - MAX( DISTINCT + 42 ) AS col0
----
-132
-42

skipif mysql # not compatible
query II rowsort label-6809
SELECT - 67 + + - 65 AS col0, - MAX ( DISTINCT + 42 ) AS col0
----
-132
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT - CASE 81 WHEN - + 9 THEN - MAX( DISTINCT - + 97 ) WHEN - + 20 + + 83 * 68 THEN NULL ELSE NULL END - MIN( ALL + 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6810
SELECT - CASE 81 WHEN - + 9 THEN - MAX ( DISTINCT - + 97 ) WHEN - + 20 + + 83 * 68 THEN NULL ELSE NULL END - MIN ( ALL + 42 )
----
NULL

query I rowsort
SELECT ALL + 77 + + + 13 AS col1
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6812
SELECT - 61 + - 20 + 22 - 99 DIV + 24
----
-63

skipif mysql # not compatible
query I rowsort label-6812
SELECT - 61 + - 20 + 22 - 99 / + 24
----
-63

query I rowsort
SELECT - 78 * - 44 AS col2
----
3432

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT - NULLIF ( + + 34, + 10 * + 9 + 50 ) + + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-6814
SELECT - NULLIF ( + + 34, + 10 * + 9 + 50 ) + + COUNT ( * )
----
-33

query I rowsort
SELECT - 34 * + + 39 col2
----
-1326

query I rowsort
SELECT - 99 AS col1
----
-99

query I rowsort
SELECT - - 94 * + 66 + - 1 + COALESCE ( - 30, + 25 )
----
6173

onlyif mysql # DIV for integer division: 
query I rowsort label-6818
SELECT DISTINCT 16 DIV - - 50 * - + 40 DIV 10 + - + 37 + + 40
----
3

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT 16 / - - 50 * - + 40 / 10 + - + 37 + + 40
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6819
SELECT + COUNT( * ) DIV + 8 - - ( + 11 ) + - 80 + - - 54
----
-15

skipif mysql # not compatible
query I rowsort label-6819
SELECT + COUNT ( * ) / + 8 - - ( + 11 ) + - 80 + - - 54
----
-15

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

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

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

query I rowsort
SELECT ALL + 96 * - + 22 AS col1
----
-2112

query I rowsort
SELECT DISTINCT + 17
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT + + CASE - COALESCE ( + ( + 62 ), - 69 * - NULLIF ( + + SUM( ALL 69 ), 22 ) + + 47, - 90 * 61 ) WHEN 30 / + 15 THEN COUNT( * ) * 94 + + 24 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6824
SELECT + + CASE - COALESCE ( + ( + 62 ), - 69 * - NULLIF ( + + SUM ( ALL 69 ), 22 ) + + 47, - 90 * 61 ) WHEN 30 / + 15 THEN COUNT ( * ) * 94 + + 24 ELSE NULL END
----
NULL

query I rowsort
SELECT 99 * 78 + 98
----
7820

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

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT + COUNT ( * ) / - 2 * COUNT ( * ) + - COUNT ( - + 18 ) - + ( - COUNT ( DISTINCT 15 ) ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + COALESCE ( 98, + 43 * + 95 ) * + 55 * + - 41 * 37 * + 26 + + 82 col1
----
-212592298

query I rowsort
SELECT - + 66 * + ( 21 ) AS col0
----
-1386

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT + 20 + 31 * + 92 + + 93 * - 75 * MAX( ALL - 0 )
----
2872

skipif mysql # not compatible
query I rowsort label-6830
SELECT + 20 + 31 * + 92 + + 93 * - 75 * MAX ( ALL - 0 )
----
2872

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

query I rowsort
SELECT - - 39 + - - 8 + - 72 + 64 * ( - 44 ) * - - 89 + - 84 AS col0
----
-250733

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT 84 * - - COUNT( * ) + - 89 + - - NULLIF ( + 91, 35 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-6833
SELECT 84 * - - COUNT ( * ) + - 89 + - - NULLIF ( + 91, 35 ) AS col0
----
86

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6835
SELECT - + 14 DIV + + 28 AS col2, + 81
----
0
81

skipif mysql # not compatible
query II rowsort label-6835
SELECT - + 14 / + + 28 AS col2, + 81
----
0
81

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

query I rowsort
SELECT 86 * - 27
----
-2322

onlyif mysql # aggregate syntax: 
query II rowsort label-6838
SELECT COUNT( * ) + + NULLIF ( + 44, + 97 * + - SUM( 82 ) ) AS col1, 4 - - + 53 AS col2
----
45
57

skipif mysql # not compatible
query II rowsort label-6838
SELECT COUNT ( * ) + + NULLIF ( + 44, + 97 * + - SUM ( 82 ) ) AS col1, 4 - - + 53 AS col2
----
45
57

query I rowsort
SELECT 14 + + ( - - 70 )
----
84

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

query II rowsort
SELECT ALL 61 AS col0, 96
----
61
96

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

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

query II rowsort
SELECT 47 AS col0, 66 + + - 15 col0
----
47
51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6845
SELECT DISTINCT CASE - + 53 WHEN + 75 * - - CAST( NULL AS SIGNED ) THEN NULL WHEN + 64 - + - 23 - ( - - 57 ) / 82 * + COUNT( * ) THEN NULL ELSE + 64 END + + 45
----
109

skipif mysql # not compatible
query I rowsort label-6845
SELECT DISTINCT CASE - + 53 WHEN + 75 * - - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 64 - + - 23 - ( - - 57 ) / 82 * + COUNT ( * ) THEN NULL ELSE + 64 END + + 45
----
109

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6847
SELECT CAST( NULL AS DECIMAL ) + 13 / 56 + - 97 AS col0, - 6
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-6847
SELECT CAST ( NULL AS REAL ) + 13 / 56 + - 97 AS col0, - 6
----
NULL
-6

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6849
SELECT DISTINCT NULLIF ( - + COUNT( DISTINCT + 79 ), + + AVG ( ALL + 46 ) ) + + COUNT( * ), + 75 + + - ( - 31 ) DIV - 4 AS col2
----
0
68

skipif mysql # not compatible
query II rowsort label-6849
SELECT DISTINCT NULLIF ( - + COUNT ( DISTINCT + 79 ), + + AVG ( ALL + 46 ) ) + + COUNT ( * ), + 75 + + - ( - 31 ) / - 4 AS col2
----
0
68

query I rowsort
SELECT ALL + 91 + + - 57
----
34

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

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

query II rowsort
SELECT - 39, 61 + + 78 AS col0
----
-39
139

query I rowsort
SELECT 64 * + 14
----
896

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

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

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

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

query I rowsort
SELECT 83 - - 91 AS col1
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-6857
SELECT + 15 DIV + ( + 7 )
----
2

skipif mysql # not compatible
query I rowsort label-6857
SELECT + 15 / + ( + 7 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6858
SELECT + 10 * + 71 * + 87 + + - 11 + + COUNT( * ) * 70 DIV - + 12 + + 53 + - 10 AS col2
----
61797

skipif mysql # not compatible
query I rowsort label-6858
SELECT + 10 * + 71 * + 87 + + - 11 + + COUNT ( * ) * 70 / - + 12 + + 53 + - 10 AS col2
----
61797

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6860
SELECT DISTINCT - - 33 col1, - 27 DIV - 42 AS col0
----
33
0

skipif mysql # not compatible
query II rowsort label-6860
SELECT DISTINCT - - 33 col1, - 27 / - 42 AS col0
----
33
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT - ( - + COUNT( * ) ) * - - 83 - - 42
----
125

skipif mysql # not compatible
query I rowsort label-6862
SELECT - ( - + COUNT ( * ) ) * - - 83 - - 42
----
125

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT + + COALESCE ( 9, + + 97 + - - 3 - + 49 * + 95 + - - 48 + + 62 + - 80 * + COUNT( * ) ) * 77 - + COALESCE ( 0, + 92 * + ( - 91 ), 45 ) AS col1
----
693

skipif mysql # not compatible
query I rowsort label-6864
SELECT + + COALESCE ( 9, + + 97 + - - 3 - + 49 * + 95 + - - 48 + + 62 + - 80 * + COUNT ( * ) ) * 77 - + COALESCE ( 0, + 92 * + ( - 91 ), 45 ) AS col1
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT ALL + - COUNT( * ) * + + COALESCE ( 4, + 94 + - 13, - COUNT( * ) )
----
-4

skipif mysql # not compatible
query I rowsort label-6865
SELECT ALL + - COUNT ( * ) * + + COALESCE ( 4, + 94 + - 13, - COUNT ( * ) )
----
-4

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6869
SELECT CAST( - CAST( COALESCE ( + + 30, - 19 * + + COALESCE ( COUNT( * ), + + 23 ), - COALESCE ( + 10, 3 * 75, 75 - + 3 * + 27 ) * + COUNT( * ) ) AS SIGNED ) AS SIGNED ) * 38
----
-1140

skipif mysql # not compatible
query I rowsort label-6869
SELECT CAST ( - CAST ( COALESCE ( + + 30, - 19 * + + COALESCE ( COUNT ( * ), + + 23 ), - COALESCE ( + 10, 3 * 75, 75 - + 3 * + 27 ) * + COUNT ( * ) ) AS INTEGER ) AS INTEGER ) * 38
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT - 40 + + COUNT( * ) + - 79
----
-118

skipif mysql # not compatible
query I rowsort label-6870
SELECT - 40 + + COUNT ( * ) + - 79
----
-118

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT ALL - - NULLIF ( + 85, + 40 - COUNT( DISTINCT + - 99 ) ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL - - NULLIF ( + 85, + 40 - COUNT ( DISTINCT + - 99 ) ) AS col1
----
85

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

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

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

query I rowsort
SELECT - 7 * - + 76 * - + 80 col0
----
-42560

query I rowsort
SELECT DISTINCT - 73
----
-73

onlyif mysql # DIV for integer division: 
query II rowsort label-6877
SELECT ALL 21 DIV - + 36, - 44 col0
----
0
-44

skipif mysql # not compatible
query II rowsort label-6877
SELECT ALL 21 / - + 36, - 44 col0
----
0
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-6878
SELECT 24 DIV 2
----
12

skipif mysql # not compatible
query I rowsort label-6878
SELECT 24 / 2
----
12

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

query I rowsort
SELECT 19 col0
----
19

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

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

skipif mysql # not compatible
query I rowsort label-6882
SELECT ALL SUM ( - 16 )
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-6883
SELECT ALL - ( + 43 ) DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL - ( + 43 ) / + 88
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6884
SELECT 49 DIV - 87 AS col2, COUNT( * ) + + - 47 * 78 + + MAX( 1 )
----
0
-3664

skipif mysql # not compatible
query II rowsort label-6884
SELECT 49 / - 87 AS col2, COUNT ( * ) + + - 47 * 78 + + MAX ( 1 )
----
0
-3664

onlyif mysql # DIV for integer division: 
query I rowsort label-6885
SELECT 20 * 91 DIV + + 42
----
43

skipif mysql # not compatible
query I rowsort label-6885
SELECT 20 * 91 / + + 42
----
43

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

query I rowsort
SELECT ALL 31
----
31

query I rowsort
SELECT NULLIF ( 99, 32 ) + + ( + 80 ) AS col0
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT ALL COUNT( * ) - + SUM( DISTINCT 27 ) * - SUM( DISTINCT + + 58 ) col2
----
1567

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL COUNT ( * ) - + SUM ( DISTINCT 27 ) * - SUM ( DISTINCT + + 58 ) col2
----
1567

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT 29 + - - MAX( + 26 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-6890
SELECT 29 + - - MAX ( + 26 ) AS col1
----
55

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

skipif mysql # not compatible
query I rowsort label-6891
SELECT - SUM ( ALL 28 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT NULLIF ( - ( 67 ), + COALESCE ( - 23, - 90 * + COUNT( * ) ) ) + - 46
----
-113

skipif mysql # not compatible
query I rowsort label-6892
SELECT NULLIF ( - ( 67 ), + COALESCE ( - 23, - 90 * + COUNT ( * ) ) ) + - 46
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6893
SELECT CAST( - 92 AS SIGNED ) - - COUNT( * ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-6893
SELECT CAST ( - 92 AS INTEGER ) - - COUNT ( * ) AS col1
----
-91

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6895
SELECT 48 + - MAX( 61 ) / CAST( NULL AS SIGNED ) / + - 63 AS col1, SUM( - 90 )
----
NULL
-90

skipif mysql # not compatible
query II rowsort label-6895
SELECT 48 + - MAX ( 61 ) / CAST ( NULL AS INTEGER ) / + - 63 AS col1, SUM ( - 90 )
----
NULL
-90

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

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

query I rowsort
SELECT - 66 + - 43
----
-109

query I rowsort
SELECT ALL - + 63
----
-63

query I rowsort
SELECT ( + + 21 ) * - 21 AS col0
----
-441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6901
SELECT + - 56 * - 80 + + 77 - CASE - 13 WHEN ( 19 ) - COUNT( * ) THEN + CASE 9 WHEN 83 THEN COUNT( * ) / - 1 ELSE - 7 END WHEN + 24 + - 0 THEN NULL ELSE NULL END + 28 + - 49 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6901
SELECT + - 56 * - 80 + + 77 - CASE - 13 WHEN ( 19 ) - COUNT ( * ) THEN + CASE 9 WHEN 83 THEN COUNT ( * ) / - 1 ELSE - 7 END WHEN + 24 + - 0 THEN NULL ELSE NULL END + 28 + - 49 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 85 * - + 70 * + ( + 94 )
----
-559300

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6904
SELECT + CAST( + 7 AS SIGNED ) * + 17 * - + 14 col2
----
-1666

skipif mysql # not compatible
query I rowsort label-6904
SELECT + CAST ( + 7 AS INTEGER ) * + 17 * - + 14 col2
----
-1666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6905
SELECT ALL + ( 70 ) * 27 + - - CAST( - - 67 AS SIGNED ) * 16 AS col2
----
2962

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL + ( 70 ) * 27 + - - CAST ( - - 67 AS INTEGER ) * 16 AS col2
----
2962

query I rowsort
SELECT ALL + - 12
----
-12

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

query I rowsort
SELECT ALL + 77 * + - ( - - 74 ) + + 3 * + 13
----
-5659

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6909
SELECT ALL - 13 * + 18 + + CAST( NULL AS SIGNED ) * + 28 * - - ( - 57 ) + + + 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL - 13 * + 18 + + CAST ( NULL AS INTEGER ) * + 28 * - - ( - 57 ) + + + 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6910
SELECT - 11 * - 10 * - 67 + - COUNT( * ) AS col2, + 52 DIV COUNT( * ) * 43 AS col0
----
-7371
2236

skipif mysql # not compatible
query II rowsort label-6910
SELECT - 11 * - 10 * - 67 + - COUNT ( * ) AS col2, + 52 / COUNT ( * ) * 43 AS col0
----
-7371
2236

onlyif mysql # DIV for integer division: 
query I rowsort label-6911
SELECT ALL + - 28 * - - 32 - - + 97 + - 35 + + 10 * ( + - 14 ) DIV + 79 AS col0
----
-835

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL + - 28 * - - 32 - - + 97 + - 35 + + 10 * ( + - 14 ) / + 79 AS col0
----
-835

query II rowsort
SELECT - + 32 + 1, - 92 * + 13 AS col0
----
-31
-1196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6913
SELECT + COALESCE ( + 71, - + SUM( + + CAST( 8 AS SIGNED ) ) + - 13 )
----
71

skipif mysql # not compatible
query I rowsort label-6913
SELECT + COALESCE ( + 71, - + SUM ( + + CAST ( 8 AS INTEGER ) ) + - 13 )
----
71

query I rowsort
SELECT 90 * 63 + 34 AS col0
----
5704

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT ALL + COUNT( ALL - + 93 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL + COUNT ( ALL - + 93 ) col1
----
1

query I rowsort
SELECT DISTINCT - 4 * - 12 + + 2 AS col0
----
50

query I rowsort
SELECT - 85 + + 37 * ( 61 )
----
2172

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6922
SELECT ALL - COUNT( ALL 97 ) - + 25 * - CAST( NULL AS SIGNED ) + 22 / + 93 AS col0, - 29 + - + COUNT( * ) * + 7 * 92 * + 96 AS col1
----
NULL
-61853

skipif mysql # not compatible
query II rowsort label-6922
SELECT ALL - COUNT ( ALL 97 ) - + 25 * - CAST ( NULL AS INTEGER ) + 22 / + 93 AS col0, - 29 + - + COUNT ( * ) * + 7 * 92 * + 96 AS col1
----
NULL
-61853

query I rowsort
SELECT - 55 * 58 AS col2
----
-3190

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

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

query I rowsort
SELECT - 19 * - 26 AS col2
----
494

onlyif mysql # DIV for integer division: 
query I rowsort label-6926
SELECT DISTINCT - 46 DIV + 14
----
-3

skipif mysql # not compatible
query I rowsort label-6926
SELECT DISTINCT - 46 / + 14
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6927
SELECT ALL 66 * + ( - 84 ) * 76 + + CAST( + ( + 41 ) AS SIGNED ) * 39
----
-419745

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL 66 * + ( - 84 ) * 76 + + CAST ( + ( + 41 ) AS INTEGER ) * 39
----
-419745

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6929
SELECT ALL + - 43 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL + - 43 / - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT ALL - 18 * 48 * + CASE 80 WHEN + + 17 THEN MIN( 26 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL - 18 * 48 * + CASE 80 WHEN + + 17 THEN MIN ( 26 ) END
----
NULL

query I rowsort
SELECT + 59 + 9
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6932
SELECT - COALESCE ( - COUNT( * ), + 39 + 53 + 26 ), + 3 + + COALESCE ( + 40, - + 36 + - + MAX( 21 ) ) + - NULLIF ( 0, + 89 + - SUM( - 51 ) ) AS col0
----
1
43

skipif mysql # not compatible
query II rowsort label-6932
SELECT - COALESCE ( - COUNT ( * ), + 39 + 53 + 26 ), + 3 + + COALESCE ( + 40, - + 36 + - + MAX ( 21 ) ) + - NULLIF ( 0, + 89 + - SUM ( - 51 ) ) AS col0
----
1
43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT - 17 - - 39 * COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-6934
SELECT - 17 - - 39 * COUNT ( * ) AS col2
----
22

query I rowsort
SELECT - 25 col1
----
-25

query I rowsort
SELECT - 26 * - - 28 AS col0
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT - COALESCE ( + 37, + - COUNT( * ), + ( + 60 ) ) - + 47 + ( 38 )
----
-46

skipif mysql # not compatible
query I rowsort label-6937
SELECT - COALESCE ( + 37, + - COUNT ( * ), + ( + 60 ) ) - + 47 + ( 38 )
----
-46

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

query I rowsort
SELECT DISTINCT 74 + 73 AS col2
----
147

query I rowsort
SELECT + 44 + - + 96
----
-52

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6943
SELECT ALL - ( 43 ) DIV - COUNT( * ) + - CAST( + NULLIF ( + 12, ( + - 62 ) DIV - 41 ) AS SIGNED ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-6943
SELECT ALL - ( 43 ) / - COUNT ( * ) + - CAST ( + NULLIF ( + 12, ( + - 62 ) / - 41 ) AS INTEGER ) AS col1
----
31

query II rowsort
SELECT + 98 AS col2, - 7 AS col0
----
98
-7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6946
SELECT DISTINCT - 51 DIV + 75 * 33 + - 32 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT - 51 / + 75 * 33 + - 32 AS col1
----
-32

query I rowsort
SELECT ALL + 41 * + 8 AS col1
----
328

onlyif mysql # DIV for integer division: 
query II rowsort label-6948
SELECT ALL + - 51 DIV + 94 * 76 + - 89 * + - 86 + 66 AS col1, + 83 * 94 * - 66
----
7720
-514932

skipif mysql # not compatible
query II rowsort label-6948
SELECT ALL + - 51 / + 94 * 76 + - 89 * + - 86 + 66 AS col1, + 83 * 94 * - 66
----
7720
-514932

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6949
SELECT ALL + + 63 AS col2, 14 + - ( - + ( - - 38 ) ) / - ( CASE CAST( NULL AS SIGNED ) WHEN - 78 + - + 22 * + 55 THEN 98 END ) col1
----
63
NULL

skipif mysql # not compatible
query II rowsort label-6949
SELECT ALL + + 63 AS col2, 14 + - ( - + ( - - 38 ) ) / - ( CASE CAST ( NULL AS INTEGER ) WHEN - 78 + - + 22 * + 55 THEN 98 END ) col1
----
63
NULL

query I rowsort
SELECT + 46 * - 86 AS col0
----
-3956

query II rowsort
SELECT 13 AS col2, 64
----
13
64

query I rowsort
SELECT ALL 86 * + - 21 * + 19 AS col0
----
-34314

onlyif mysql # DIV for integer division: 
query I rowsort label-6953
SELECT - 51 DIV 32 * 41 + 63
----
22

skipif mysql # not compatible
query I rowsort label-6953
SELECT - 51 / 32 * 41 + 63
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT ( NULLIF ( - MIN( DISTINCT - + 37 ), - COUNT( + 91 ) ) )
----
37

skipif mysql # not compatible
query I rowsort label-6954
SELECT ( NULLIF ( - MIN ( DISTINCT - + 37 ), - COUNT ( + 91 ) ) )
----
37

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

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

query I rowsort
SELECT - 98 * + 59 * 5 * - - 61
----
-1763510

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6957
SELECT ALL + NULLIF ( - CAST( NULL AS SIGNED ), + 58 - + 64 ), + 25 * 92 AS col1
----
NULL
2300

skipif mysql # not compatible
query II rowsort label-6957
SELECT ALL + NULLIF ( - CAST ( NULL AS INTEGER ), + 58 - + 64 ), + 25 * 92 AS col1
----
NULL
2300

query I rowsort
SELECT ALL - 50 * 18 - + 80 + 20
----
-960

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6961
SELECT 60 * + NULLIF ( 84, - - MIN( DISTINCT - + ( + 5 ) ) ) * 31 + - CAST( - 4 AS SIGNED )
----
156244

skipif mysql # not compatible
query I rowsort label-6961
SELECT 60 * + NULLIF ( 84, - - MIN ( DISTINCT - + ( + 5 ) ) ) * 31 + - CAST ( - 4 AS INTEGER )
----
156244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6962
SELECT - 32 * + CAST( - 5 AS SIGNED ) AS col1
----
160

skipif mysql # not compatible
query I rowsort label-6962
SELECT - 32 * + CAST ( - 5 AS INTEGER ) AS col1
----
160

query II rowsort
SELECT DISTINCT + 0, - 70 col2
----
0
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6964
SELECT ALL CASE 59 WHEN + + 74 + 33 THEN NULL WHEN + 8 THEN NULL ELSE - + 18 END AS col1, 25 * + + CAST( NULL AS SIGNED ) + + 9 * + 65
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-6964
SELECT ALL CASE 59 WHEN + + 74 + 33 THEN NULL WHEN + 8 THEN NULL ELSE - + 18 END AS col1, 25 * + + CAST ( NULL AS INTEGER ) + + 9 * + 65
----
-18
NULL

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

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

query II rowsort
SELECT - 82 AS col1, - 95 * + + 2 AS col1
----
-82
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT + 78 + MIN( - + ( - + 46 ) ) - 66 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-6967
SELECT + 78 + MIN ( - + ( - + 46 ) ) - 66 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT ALL - 60 * - SUM( - + 29 ) AS col2
----
-1740

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL - 60 * - SUM ( - + 29 ) AS col2
----
-1740

query I rowsort
SELECT - 96 * ( 56 ) AS col2
----
-5376

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT - ( 55 ) - + - 37 * - + ( - 41 ) * COUNT( DISTINCT - + 34 )
----
1462

skipif mysql # not compatible
query I rowsort label-6971
SELECT - ( 55 ) - + - 37 * - + ( - 41 ) * COUNT ( DISTINCT - + 34 )
----
1462

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6972
SELECT DISTINCT CAST( + 77 AS SIGNED ) AS col0, 42 * 41
----
77
1722

skipif mysql # not compatible
query II rowsort label-6972
SELECT DISTINCT CAST ( + 77 AS INTEGER ) AS col0, 42 * 41
----
77
1722

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

query I rowsort
SELECT ALL 8
----
8

query I rowsort
SELECT DISTINCT + 19 * - - 32 - - 25
----
633

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

query II rowsort
SELECT - ( - 65 ) + 72 * 4 AS col0, 40 AS col1
----
353
40

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

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

query I rowsort
SELECT - 14 + + 31
----
17

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

query I rowsort
SELECT - ( - - 4 ) + + 39 - ( - 35 ) * 85
----
3010

query I rowsort
SELECT + NULLIF ( + + 79, + 79 / 75 )
----
79

query I rowsort
SELECT ALL + 25 + 54 col0
----
79

query I rowsort
SELECT ALL - 67 + 81 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT ALL MIN( 98 ) + 48 + + 34
----
180

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL MIN ( 98 ) + 48 + + 34
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-6986
SELECT DISTINCT - - 10 + + 23 DIV 44 + - + 2 col1
----
8

skipif mysql # not compatible
query I rowsort label-6986
SELECT DISTINCT - - 10 + + 23 / 44 + - + 2 col1
----
8

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6988
SELECT - - 37 AS col1, - NULLIF ( - 76, + - ( - 62 ) * - CAST( 49 AS SIGNED ) * - COUNT( * ) + + 74 ) DIV 3 * + 80 * 61 + + 66 + 11
----
37
122077

skipif mysql # not compatible
query II rowsort label-6988
SELECT - - 37 AS col1, - NULLIF ( - 76, + - ( - 62 ) * - CAST ( 49 AS INTEGER ) * - COUNT ( * ) + + 74 ) / 3 * + 80 * 61 + + 66 + 11
----
37
122077

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT ALL - + 60 + 62 + ( + COUNT( * ) ) * + - 26 * - 0 + COUNT( * ) + - 60 + - 10 * + 21
----
-267

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL - + 60 + 62 + ( + COUNT ( * ) ) * + - 26 * - 0 + COUNT ( * ) + - 60 + - 10 * + 21
----
-267

query I rowsort
SELECT DISTINCT - + 52
----
-52

query I rowsort
SELECT 79 * + 67 + - 59 + - 30 AS col0
----
5204

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

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

query I rowsort
SELECT + 53 + 28
----
81

query I rowsort
SELECT DISTINCT + 18 * 94 AS col0
----
1692

query I rowsort
SELECT ALL - 59 col2
----
-59

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6998
SELECT ALL 56 DIV - + SUM( DISTINCT - + 16 ) AS col1, 5 * - 98 AS col2
----
3
-490

skipif mysql # not compatible
query II rowsort label-6998
SELECT ALL 56 / - + SUM ( DISTINCT - + 16 ) AS col1, 5 * - 98 AS col2
----
3
-490

onlyif mysql # DIV for integer division: 
query I rowsort label-6999
SELECT 64 DIV - 14 + + 79
----
75

skipif mysql # not compatible
query I rowsort label-6999
SELECT 64 / - 14 + + 79
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7000
SELECT ALL 50 - 93 + 50 * + ( + 71 ), COUNT( * ) * - 32 * + 14 * + 13 col2
----
3507
-5824

skipif mysql # not compatible
query II rowsort label-7000
SELECT ALL 50 - 93 + 50 * + ( + 71 ), COUNT ( * ) * - 32 * + 14 * + 13 col2
----
3507
-5824

onlyif mysql # aggregate syntax: 
query II rowsort label-7001
SELECT COUNT( * ) * 67, - 95 AS col0
----
67
-95

skipif mysql # not compatible
query II rowsort label-7001
SELECT COUNT ( * ) * 67, - 95 AS col0
----
67
-95

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

query I rowsort
SELECT DISTINCT 55 * - 14
----
-770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7004
SELECT + CASE + - 90 WHEN + - 44 * + CAST( + + 52 AS SIGNED ) * 42 * 75 + - - 6 - + - 29 + + 10 + - 18 * 71 / 85 THEN NULL ELSE - 66 END * COUNT( * ) + + 17 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-7004
SELECT + CASE + - 90 WHEN + - 44 * + CAST ( + + 52 AS INTEGER ) * 42 * 75 + - - 6 - + - 29 + + 10 + - 18 * 71 / 85 THEN NULL ELSE - 66 END * COUNT ( * ) + + 17 AS col2
----
-49

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7008
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 83 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL 44
----
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT DISTINCT + 90 + - + 20 * COUNT( * ) - - 54 * 0 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT + 90 + - + 20 * COUNT ( * ) - - 54 * 0 AS col2
----
70

query I rowsort
SELECT - 59 * - - COALESCE ( + 62, - 67 ) + - 90 + - 55 * - + 63 + + 96
----
-187

query I rowsort
SELECT ALL + 57 + + - ( + - 83 ) + + 20
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT COALESCE ( SUM( 60 ), 81 ) * + COALESCE ( - 67, 6 )
----
-4020

skipif mysql # not compatible
query I rowsort label-7016
SELECT COALESCE ( SUM ( 60 ), 81 ) * + COALESCE ( - 67, 6 )
----
-4020

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

query I rowsort
SELECT ALL - 66 + 82 + 71 AS col1
----
87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT ALL + MAX( DISTINCT - 34 ) + + 65
----
31

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL + MAX ( DISTINCT - 34 ) + + 65
----
31

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

query II rowsort
SELECT ALL + 74 * + + 56 col2, 91 * 97 AS col2
----
4144
8827

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

query I rowsort
SELECT - 60 AS col0
----
-60

query I rowsort
SELECT ALL 71
----
71

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

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

query I rowsort
SELECT 21 * - 35
----
-735

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT + 1 * + SUM( + NULLIF ( - 28, 97 ) ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-7028
SELECT + 1 * + SUM ( + NULLIF ( - 28, 97 ) ) AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7029
SELECT ALL ( - 92 ) col0, + CAST( NULL AS SIGNED ) + + 32 + 40 AS col0
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-7029
SELECT ALL ( - 92 ) col0, + CAST ( NULL AS INTEGER ) + + 32 + 40 AS col0
----
-92
NULL

query I rowsort
SELECT 68 col1
----
68

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

query I rowsort
SELECT 1 - + 32 AS col0
----
-31

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 32 * 45 AS col1
----
-1440

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT - 17 * 14 - - 1 + - COUNT( * )
----
-238

skipif mysql # not compatible
query I rowsort label-7040
SELECT - 17 * 14 - - 1 + - COUNT ( * )
----
-238

query I rowsort
SELECT DISTINCT - 81 col1
----
-81

query I rowsort
SELECT DISTINCT 50 * + 51 AS col2
----
2550

query I rowsort
SELECT 32 * - + 56
----
-1792

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7046
SELECT ALL - 22, - COUNT( * ) * + + ( 48 ) AS col1
----
-22
-48

skipif mysql # not compatible
query II rowsort label-7046
SELECT ALL - 22, - COUNT ( * ) * + + ( 48 ) AS col1
----
-22
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT MIN( - - 46 ) * - + MIN( 35 ) * - COUNT( * ) * ( + - COUNT( * ) ) + - 30 + + + 74 AS col1
----
-1566

skipif mysql # not compatible
query I rowsort label-7047
SELECT MIN ( - - 46 ) * - + MIN ( 35 ) * - COUNT ( * ) * ( + - COUNT ( * ) ) + - 30 + + + 74 AS col1
----
-1566

query I rowsort
SELECT ALL + ( 43 ) + + ( - + 73 ) * + 52
----
-3753

query I rowsort
SELECT DISTINCT - 96
----
-96

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

query I rowsort
SELECT ALL 43 + - 89 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-7052
SELECT ALL - COUNT( * ) col2, - 17 - - 29 AS col1
----
-1
12

skipif mysql # not compatible
query II rowsort label-7052
SELECT ALL - COUNT ( * ) col2, - 17 - - 29 AS col1
----
-1
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT DISTINCT - 88 + 49 - - COALESCE ( + 12, - + COUNT( * ) - - 79 + + + 93 + - ( - COUNT( * ) ) - - + COUNT( - 32 ) * - 2 + 95 ) + ( 83 )
----
56

skipif mysql # not compatible
query I rowsort label-7053
SELECT DISTINCT - 88 + 49 - - COALESCE ( + 12, - + COUNT ( * ) - - 79 + + + 93 + - ( - COUNT ( * ) ) - - + COUNT ( - 32 ) * - 2 + 95 ) + ( 83 )
----
56

query I rowsort
SELECT 63 + + 11 AS col2
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-7055
SELECT + COUNT( * ) AS col2, - 4 * + 98 * + - 11
----
1
4312

skipif mysql # not compatible
query II rowsort label-7055
SELECT + COUNT ( * ) AS col2, - 4 * + 98 * + - 11
----
1
4312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7056
SELECT + 83 + 12 + + - MIN( ALL - 87 ) DIV 29 DIV + - 49 * + 93
----
95

skipif mysql # not compatible
query I rowsort label-7056
SELECT + 83 + 12 + + - MIN ( ALL - 87 ) / 29 / + - 49 * + 93
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT ALL COUNT( * ) * - 71 + - - 50 + - 89
----
-110

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL COUNT ( * ) * - 71 + - - 50 + - 89
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7058
SELECT + + 6 + - + ( COUNT( - - 89 ) ) DIV + - 18
----
6

skipif mysql # not compatible
query I rowsort label-7058
SELECT + + 6 + - + ( COUNT ( - - 89 ) ) / + - 18
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT DISTINCT + 67 + + NULLIF ( - 34, - COUNT( - - 79 ) ) - - 68
----
101

skipif mysql # not compatible
query I rowsort label-7059
SELECT DISTINCT + 67 + + NULLIF ( - 34, - COUNT ( - - 79 ) ) - - 68
----
101

query II rowsort
SELECT ALL 63 + - - 87 * + - 18 * + 28 * - 36 * 66 AS col0, 78 col0
----
104182911
78

query I rowsort
SELECT + 33 + 24
----
57

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7064
SELECT - 89 AS col2, 83 * SUM( DISTINCT 10 ) col0
----
-89
830

skipif mysql # not compatible
query II rowsort label-7064
SELECT - 89 AS col2, 83 * SUM ( DISTINCT 10 ) col0
----
-89
830

query I rowsort
SELECT + - 90 + - ( - 94 ) col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7066
SELECT + - 79 + - 90 DIV COUNT( * ) - - 86
----
-83

skipif mysql # not compatible
query I rowsort label-7066
SELECT + - 79 + - 90 / COUNT ( * ) - - 86
----
-83

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7068
SELECT + + 4 + + + COALESCE ( - 61, + - 64 ) + + + 13 DIV 7 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-7068
SELECT + + 4 + + + COALESCE ( - 61, + - 64 ) + + + 13 / 7 AS col0
----
-56

query I rowsort
SELECT ALL - 57 col1
----
-57

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

query I rowsort
SELECT ALL + - 68 * + 30
----
-2040

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

query I rowsort
SELECT - + COALESCE ( + ( + 30 ), - ( + 33 ) + 96 * 5, + 2 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT - COUNT( * ) + - 15 + - 99 * - - COUNT( * ) AS col0
----
-115

skipif mysql # not compatible
query I rowsort label-7074
SELECT - COUNT ( * ) + - 15 + - 99 * - - COUNT ( * ) AS col0
----
-115

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

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

query I rowsort
SELECT ALL 45 * + + NULLIF ( + 81, 31 * - 47 * - 7 )
----
3645

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7077
SELECT + CASE - + 91 WHEN 32 + 66 THEN + CASE + 77 WHEN - AVG ( DISTINCT + - 82 ) + - COALESCE ( + ( 43 ), - 26, - + 87, - 26 ) THEN + 12 ELSE 48 END ELSE CAST( 31 AS SIGNED ) DIV 8 END
----
3

skipif mysql # not compatible
query I rowsort label-7077
SELECT + CASE - + 91 WHEN 32 + 66 THEN + CASE + 77 WHEN - AVG ( DISTINCT + - 82 ) + - COALESCE ( + ( 43 ), - 26, - + 87, - 26 ) THEN + 12 ELSE 48 END ELSE CAST ( 31 AS INTEGER ) / 8 END
----
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7079
SELECT ALL + MAX( - + 48 ), + CAST( + 8 AS SIGNED ) * 92 AS col2
----
-48
736

skipif mysql # not compatible
query II rowsort label-7079
SELECT ALL + MAX ( - + 48 ), + CAST ( + 8 AS INTEGER ) * 92 AS col2
----
-48
736

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7081
SELECT 1 DIV + 25 + - 69
----
-69

skipif mysql # not compatible
query I rowsort label-7081
SELECT 1 / + 25 + - 69
----
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-7082
SELECT ( - 55 ), + 89 DIV NULLIF ( + ( - 91 ), + 16 ) * + 61 AS col2
----
-55
0

skipif mysql # not compatible
query II rowsort label-7082
SELECT ( - 55 ), + 89 / NULLIF ( + ( - 91 ), + 16 ) * + 61 AS col2
----
-55
0

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7084
SELECT - MAX( + 98 ) + - 54 - - COUNT( * ) + + - NULLIF ( - - 81, + 12 + + 88 + + CAST( 45 AS DECIMAL ) * 92 * + - 14 )
----
-232

skipif mysql # not compatible
query I rowsort label-7084
SELECT - MAX ( + 98 ) + - 54 - - COUNT ( * ) + + - NULLIF ( - - 81, + 12 + + 88 + + CAST ( 45 AS REAL ) * 92 * + - 14 )
----
-232

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT + 75 * - MAX( + 87 ) + - 8
----
-6533

skipif mysql # not compatible
query I rowsort label-7086
SELECT + 75 * - MAX ( + 87 ) + - 8
----
-6533

onlyif mysql # aggregate syntax: 
query II rowsort label-7087
SELECT DISTINCT + 29 * + 31 AS col1, 17 * - - COUNT( * ) AS col2
----
899
17

skipif mysql # not compatible
query II rowsort label-7087
SELECT DISTINCT + 29 * + 31 AS col1, 17 * - - COUNT ( * ) AS col2
----
899
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT DISTINCT COUNT( * ) * + + 95 * COUNT( * ) * - ( + 14 ) + 50
----
-1280

skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT COUNT ( * ) * + + 95 * COUNT ( * ) * - ( + 14 ) + 50
----
-1280

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT ALL 93 * - 45 + + - MAX( + 80 ) * COUNT( * )
----
-4265

skipif mysql # not compatible
query I rowsort label-7089
SELECT ALL 93 * - 45 + + - MAX ( + 80 ) * COUNT ( * )
----
-4265

query I rowsort
SELECT NULLIF ( - - 18, 10 )
----
18

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

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

query II rowsort
SELECT ALL 99 * 72 + - 18 + - 47 * + + 35 + COALESCE ( - 68, 14 + + + 95 ), 43 * + NULLIF ( - 30, - 28 + + + 90 ) * + 45 col1
----
5397
-58050

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

query I rowsort
SELECT + 95 + + 51
----
146

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

query I rowsort
SELECT - 29 * - 4 + + 2
----
118

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

query I rowsort
SELECT ALL + 21 * - 54 + 42 - - 24 + - + ( + - 37 ) * 71 - + 73 + - 9 + - 31
----
1446

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

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

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

query I rowsort
SELECT - + 69 * - 17 + + - 41 AS col1
----
1132

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7105
SELECT ALL - SUM( ALL 79 ) * + + 6 - - CAST( - + COUNT( * ) AS SIGNED ) - - 7 + 79 AS col1
----
-389

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL - SUM ( ALL 79 ) * + + 6 - - CAST ( - + COUNT ( * ) AS INTEGER ) - - 7 + 79 AS col1
----
-389

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7107
SELECT ALL + 14 DIV + - CAST( + 24 AS SIGNED ) + - + 61 + - - 65 + + + 75
----
79

skipif mysql # not compatible
query I rowsort label-7107
SELECT ALL + 14 / + - CAST ( + 24 AS INTEGER ) + - + 61 + - - 65 + + + 75
----
79

query I rowsort
SELECT + 53 * - 28 AS col0
----
-1484

query I rowsort
SELECT ALL 23 * - 46 AS col0
----
-1058

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT - + CASE - 19 WHEN - + COUNT( ALL - 34 ) THEN NULL WHEN - - 41 THEN + 13 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7111
SELECT - + CASE - 19 WHEN - + COUNT ( ALL - 34 ) THEN NULL WHEN - - 41 THEN + 13 ELSE NULL END AS col2
----
NULL

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

query I rowsort
SELECT DISTINCT 23
----
23

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

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

query I rowsort
SELECT ALL + 62 * - 92 AS col2
----
-5704

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT DISTINCT 7 * 86 + + - 77 + COUNT( * ) * + 94 AS col0
----
619

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT 7 * 86 + + - 77 + COUNT ( * ) * + 94 AS col0
----
619

query I rowsort
SELECT - NULLIF ( + 80, 7 ) AS col1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7118
SELECT ALL + CAST( NULLIF ( 53, + - 82 - + MAX( DISTINCT + 82 ) * + 98 * - 51 ) AS SIGNED ) DIV - 2 + - 1 + + 1 * - 1 + + 19 * + 35 - 35 AS col0
----
602

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL + CAST ( NULLIF ( 53, + - 82 - + MAX ( DISTINCT + 82 ) * + 98 * - 51 ) AS INTEGER ) / - 2 + - 1 + + 1 * - 1 + + 19 * + 35 - 35 AS col0
----
602

query I rowsort
SELECT + 55 + + 5 * 6 AS col2
----
85

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

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

query I rowsort
SELECT + 86 - + 34 AS col1
----
52

query I rowsort
SELECT 94 col1
----
94

query I rowsort
SELECT ALL 55
----
55

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7127
SELECT 2, MAX( - 45 ) * 85 AS col2
----
2
-3825

skipif mysql # not compatible
query II rowsort label-7127
SELECT 2, MAX ( - 45 ) * 85 AS col2
----
2
-3825

query I rowsort
SELECT + 80 * 86
----
6880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7129
SELECT ALL NULLIF ( - ( + + CASE - 91 WHEN - + 67 * + 7 + + 46 * + COALESCE ( MAX( + 20 ), - 95 ) * - + CAST( - - 36 AS SIGNED ) THEN ( - 39 ) + + COUNT( - 66 ) * COUNT( ALL 70 * - 31 ) ELSE NULL END ), + 70 ) + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL NULLIF ( - ( + + CASE - 91 WHEN - + 67 * + 7 + + 46 * + COALESCE ( MAX ( + 20 ), - 95 ) * - + CAST ( - - 36 AS INTEGER ) THEN ( - 39 ) + + COUNT ( - 66 ) * COUNT ( ALL 70 * - 31 ) ELSE NULL END ), + 70 ) + + COUNT ( * ) AS col0
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7132
SELECT DISTINCT CAST( NULL AS SIGNED ) / 89 * ( - - 96 ) + - 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7132
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 89 * ( - - 96 ) + - 86 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7133
SELECT + 33 / - SUM( + 74 ) * - 90 * + 35 + ( + 75 ) / 15 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7133
SELECT + 33 / - SUM ( + 74 ) * - 90 * + 35 + ( + 75 ) / 15 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT + 31 AS col0, 87
----
31
87

query I rowsort
SELECT + 13 * - - 92
----
1196

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

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

query II rowsort
SELECT DISTINCT + 34, - ( 83 ) * + + 42 * + 45 AS col1
----
34
-156870

query I rowsort
SELECT 88 col0
----
88

query I rowsort
SELECT 12 * - - 45
----
540

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

query II rowsort
SELECT + 42 AS col1, 58 - - 18 * - ( + + 35 ) AS col2
----
42
-572

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

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

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

query I rowsort
SELECT ALL + + 93 - 88
----
5

query II rowsort
SELECT ALL - 79 col1, + 68 * ( + 90 )
----
-79
6120

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT ALL + + COUNT( ALL - 18 ) * - 74 + + ( - 70 )
----
-144

skipif mysql # not compatible
query I rowsort label-7147
SELECT ALL + + COUNT ( ALL - 18 ) * - 74 + + ( - 70 )
----
-144

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

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

query II rowsort
SELECT ALL - 71 AS col1, 7
----
-71
7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT 61 + 10 + - - 15 + + + 14 * COUNT( * ) + - 34 * 55 AS col1
----
-1770

skipif mysql # not compatible
query I rowsort label-7151
SELECT 61 + 10 + - - 15 + + + 14 * COUNT ( * ) + - 34 * 55 AS col1
----
-1770

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT ALL - NULLIF ( + NULLIF ( 91, + MIN( ALL + 32 ) ), 4 )
----
-91

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL - NULLIF ( + NULLIF ( 91, + MIN ( ALL + 32 ) ), 4 )
----
-91

query I rowsort
SELECT ALL - + 26 * 77
----
-2002

query I rowsort
SELECT 7 + - 85 * + 46 * + 69 AS col2
----
-269783

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - 59 * - 88 col1
----
-5192

query I rowsort
SELECT ALL - 27 col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT 96 * - 68 + 99 + + - COUNT( * ) + 53
----
-6377

skipif mysql # not compatible
query I rowsort label-7160
SELECT 96 * - 68 + 99 + + - COUNT ( * ) + 53
----
-6377

onlyif mysql # DIV for integer division: 
query II rowsort label-7161
SELECT DISTINCT 63 AS col1, + 49 DIV 79 * + + COALESCE ( - + 61, - + 86 ) AS col0
----
63
0

skipif mysql # not compatible
query II rowsort label-7161
SELECT DISTINCT 63 AS col1, + 49 / 79 * + + COALESCE ( - + 61, - + 86 ) AS col0
----
63
0

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

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

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

query I rowsort
SELECT DISTINCT - ( + 64 ) * 65 * 56 * 57 col0
----
-13278720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7165
SELECT - 44 + + ( 73 ) + + - ( + + COUNT( * ) ) DIV 61 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-7165
SELECT - 44 + + ( 73 ) + + - ( + + COUNT ( * ) ) / 61 AS col1
----
29

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

query I rowsort
SELECT - 58
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7168
SELECT - MAX( - 42 ) DIV + - 78
----
0

skipif mysql # not compatible
query I rowsort label-7168
SELECT - MAX ( - 42 ) / + - 78
----
0

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

query I rowsort
SELECT DISTINCT 57 + + 89 AS col0
----
146

query I rowsort
SELECT 42 * + + 96
----
4032

onlyif mysql # DIV for integer division: 
query I rowsort label-7172
SELECT 48 DIV + - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7172
SELECT 48 / + - 98 AS col0
----
0

query I rowsort
SELECT DISTINCT 91 + + 92
----
183

query I rowsort
SELECT DISTINCT + 28 * + 60 * 95 AS col0
----
159600

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7176
SELECT ALL 26 + - 27 DIV - 35
----
26

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL 26 + - 27 / - 35
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT MAX( + + 34 ) * + - 47 col2
----
-1598

skipif mysql # not compatible
query I rowsort label-7177
SELECT MAX ( + + 34 ) * + - 47 col2
----
-1598

query I rowsort
SELECT ALL + 10 * 73 AS col2
----
730

query I rowsort
SELECT DISTINCT - 56 + - 74 + + 49
----
-81

query II rowsort
SELECT DISTINCT + 1 + - + 49, 77 AS col1
----
-48
77

query I rowsort
SELECT 79 AS col0
----
79

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

query I rowsort
SELECT 38 * - - 57 - + + 71 * - 54 AS col2
----
6000

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7185
SELECT MAX( + 40 ) DIV + 36 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7185
SELECT MAX ( + 40 ) / + 36 AS col0
----
1

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

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

query I rowsort
SELECT 73 + + 46
----
119

query II rowsort
SELECT DISTINCT - 16 AS col0, 82
----
-16
82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT - MIN( - - 67 ) * + 9 + 32
----
-571

skipif mysql # not compatible
query I rowsort label-7190
SELECT - MIN ( - - 67 ) * + 9 + 32
----
-571

onlyif mysql # DIV for integer division: 
query III rowsort label-7191
SELECT 6 DIV + 8, - 72 + - + 41 AS col1, + 6 AS col2
----
0
-113
6

skipif mysql # not compatible
query III rowsort label-7191
SELECT 6 / + 8, - 72 + - + 41 AS col1, + 6 AS col2
----
0
-113
6

query I rowsort
SELECT DISTINCT - 93
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-7193
SELECT COUNT( * ), 91 col1
----
1
91

skipif mysql # not compatible
query II rowsort label-7193
SELECT COUNT ( * ), 91 col1
----
1
91

onlyif mysql # aggregate syntax: 
query II rowsort label-7194
SELECT ALL - 96 col2, + 77 + MAX( DISTINCT + 6 )
----
-96
83

skipif mysql # not compatible
query II rowsort label-7194
SELECT ALL - 96 col2, + 77 + MAX ( DISTINCT + 6 )
----
-96
83

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

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL - ( - ( MIN ( - - 43 ) ) )
----
43

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7198
SELECT DISTINCT - ( + 33 ) + - - COALESCE ( - 38, 44, + 79 * CAST( NULL AS SIGNED ) * 38 * + 29 ) + + 99 * - 15 col2, 69 * - - NULLIF ( + + 32, + - COUNT( * ) ) - + 82 AS col2
----
-1556
2126

skipif mysql # not compatible
query II rowsort label-7198
SELECT DISTINCT - ( + 33 ) + - - COALESCE ( - 38, 44, + 79 * CAST ( NULL AS INTEGER ) * 38 * + 29 ) + + 99 * - 15 col2, 69 * - - NULLIF ( + + 32, + - COUNT ( * ) ) - + 82 AS col2
----
-1556
2126

onlyif mysql # aggregate syntax: 
query II rowsort label-7199
SELECT ALL COUNT( ALL 20 ) AS col1, - 87 col0
----
1
-87

skipif mysql # not compatible
query II rowsort label-7199
SELECT ALL COUNT ( ALL 20 ) AS col1, - 87 col0
----
1
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7200
SELECT CASE + 97 WHEN - 11 + - CAST( NULL AS SIGNED ) THEN + COALESCE ( - - 58, + 75, - - 54 ) - + 85 END * - 9 + - + 12 * + 52 / ( - 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7200
SELECT CASE + 97 WHEN - 11 + - CAST ( NULL AS INTEGER ) THEN + COALESCE ( - - 58, + 75, - - 54 ) - + 85 END * - 9 + - + 12 * + 52 / ( - 78 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7201
SELECT - CAST( NULL AS SIGNED ) * 16 * 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7201
SELECT - CAST ( NULL AS INTEGER ) * 16 * 54 AS col2
----
NULL

query I rowsort
SELECT + 68 - - 41 + ( 86 ) * - 30 * - + 32
----
82669

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7204
SELECT + ( + CASE - 44 WHEN - + ( - - COALESCE ( - CASE - 49 WHEN + NULLIF ( - + 36, CASE + 78 WHEN - 85 THEN + + CAST( + 77 AS SIGNED ) * + 25 ELSE NULL END ) THEN 14 ELSE NULL END, - 82 ) ) * - 69 + COUNT( * ) * - 11 THEN NULL WHEN + MIN( DISTINCT 8 ) + - COUNT( * ) THEN NULL ELSE 85 + - 25 END ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7204
SELECT + ( + CASE - 44 WHEN - + ( - - COALESCE ( - CASE - 49 WHEN + NULLIF ( - + 36, CASE + 78 WHEN - 85 THEN + + CAST ( + 77 AS INTEGER ) * + 25 ELSE NULL END ) THEN 14 ELSE NULL END, - 82 ) ) * - 69 + COUNT ( * ) * - 11 THEN NULL WHEN + MIN ( DISTINCT 8 ) + - COUNT ( * ) THEN NULL ELSE 85 + - 25 END ) AS col0
----
60

query II rowsort
SELECT ALL - - 82 * - 36 AS col0, - ( - 8 )
----
-2952
8

query I rowsort
SELECT 55 * + - 12
----
-660

query II rowsort
SELECT - + 70 AS col2, 3 AS col1
----
-70
3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7209
SELECT 51 * 74 col1, + 48 * + + 37 * MIN( DISTINCT + - 39 ) AS col0
----
3774
-69264

skipif mysql # not compatible
query II rowsort label-7209
SELECT 51 * 74 col1, + 48 * + + 37 * MIN ( DISTINCT + - 39 ) AS col0
----
3774
-69264

query I rowsort
SELECT ALL + 14 + 46 AS col1
----
60

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

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL + ( - 95 ) * - COUNT ( * ) + 74 AS col1
----
169

onlyif mysql # DIV for integer division: 
query I rowsort label-7212
SELECT ALL - 87 + + 23 + COALESCE ( - ( 97 ), ( - 5 ) * + 22 DIV 51 ) AS col2
----
-161

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL - 87 + + 23 + COALESCE ( - ( 97 ), ( - 5 ) * + 22 / 51 ) AS col2
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT 67 - CASE 26 WHEN + 54 THEN NULL WHEN 52 * 73 + ( + COUNT( * ) ) THEN 78 ELSE - 10 END + + - 68
----
9

skipif mysql # not compatible
query I rowsort label-7213
SELECT 67 - CASE 26 WHEN + 54 THEN NULL WHEN 52 * 73 + ( + COUNT ( * ) ) THEN 78 ELSE - 10 END + + - 68
----
9

query I rowsort
SELECT ALL NULLIF ( - 58, - 79 ) AS col2
----
-58

query I rowsort
SELECT 74 + + 42
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7216
SELECT DISTINCT - 69 + - COUNT( * ) + + 9 * CASE 9 WHEN - + ( - CAST( NULL AS SIGNED ) ) THEN 62 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT - 69 + - COUNT ( * ) + + 9 * CASE 9 WHEN - + ( - CAST ( NULL AS INTEGER ) ) THEN 62 ELSE NULL END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT ALL - 52 + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL - 52 + COUNT ( * )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT DISTINCT MAX( 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT MAX ( 40 ) AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7220
SELECT - CASE - MIN( DISTINCT + 7 ) WHEN - 60 * + 48 * - + COUNT( * ) THEN 46 * - - 0 * + 11 + 58 WHEN - COALESCE ( + 14, 24, - 87 + - CASE 18 WHEN + + 74 THEN 0 DIV 27 ELSE + 16 + - 37 END + - CAST( + 33 + 2 AS SIGNED ) * COUNT( * ) ) THEN NULL WHEN 27 THEN - 39 DIV + 95 ELSE - 3 - MAX( 56 + + 81 * ( 41 ) ) * 23 END + - 30 * + ( + 53 - 74 ) AS col2
----
78304

skipif mysql # not compatible
query I rowsort label-7220
SELECT - CASE - MIN ( DISTINCT + 7 ) WHEN - 60 * + 48 * - + COUNT ( * ) THEN 46 * - - 0 * + 11 + 58 WHEN - COALESCE ( + 14, 24, - 87 + - CASE 18 WHEN + + 74 THEN 0 / 27 ELSE + 16 + - 37 END + - CAST ( + 33 + 2 AS INTEGER ) * COUNT ( * ) ) THEN NULL WHEN 27 THEN - 39 / + 95 ELSE - 3 - MAX ( 56 + + 81 * ( 41 ) ) * 23 END + - 30 * + ( + 53 - 74 ) AS col2
----
78304

query I rowsort
SELECT + 79 * 98 * - ( - 16 )
----
123872

query I rowsort
SELECT 27 col1
----
27

query II rowsort
SELECT + 96 + + + 17 - - + 7 AS col0, 51 AS col1
----
120
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7224
SELECT DISTINCT + 70 - CASE + 51 WHEN - + 79 + - 61 + + 54 * - - 51 + COUNT( * ) THEN - COALESCE ( - 18, 8 ) ELSE NULL END + + - 60, + 95 AS col2
----
NULL
95

skipif mysql # not compatible
query II rowsort label-7224
SELECT DISTINCT + 70 - CASE + 51 WHEN - + 79 + - 61 + + 54 * - - 51 + COUNT ( * ) THEN - COALESCE ( - 18, 8 ) ELSE NULL END + + - 60, + 95 AS col2
----
NULL
95

query I rowsort
SELECT - 29 col0
----
-29

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

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

query II rowsort
SELECT ALL + 80 * 8 AS col1, 19 * - 3 - 32
----
640
-89

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7229
SELECT CASE + 91 WHEN - COALESCE ( - COUNT( * ), - COUNT( * ) * + 43 + - - 42 - - CAST( NULL AS DECIMAL ) * - + NULLIF ( - 7, MAX( 40 ) * ( - 73 ) + - 65 ) + - - 47 ) * + CAST( NULL AS SIGNED ) + - 33 THEN NULL WHEN 58 THEN + 84 + + MIN( DISTINCT + 37 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7229
SELECT CASE + 91 WHEN - COALESCE ( - COUNT ( * ), - COUNT ( * ) * + 43 + - - 42 - - CAST ( NULL AS REAL ) * - + NULLIF ( - 7, MAX ( 40 ) * ( - 73 ) + - 65 ) + - - 47 ) * + CAST ( NULL AS INTEGER ) + - 33 THEN NULL WHEN 58 THEN + 84 + + MIN ( DISTINCT + 37 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7230
SELECT DISTINCT + COUNT( 2 ) * CAST( + 76 AS SIGNED ) col2
----
76

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT + COUNT ( 2 ) * CAST ( + 76 AS INTEGER ) col2
----
76

query I rowsort
SELECT ALL - 7 * + 34
----
-238

query I rowsort
SELECT - - 12 * - 76 + + - 52 * 85 AS col0
----
-5332

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 11
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-7240
SELECT + + 80 * + COUNT( * ) AS col1, + 81
----
80
81

skipif mysql # not compatible
query II rowsort label-7240
SELECT + + 80 * + COUNT ( * ) AS col1, + 81
----
80
81

query I rowsort
SELECT DISTINCT + - 73
----
-73

query I rowsort
SELECT + + 16
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT - NULLIF ( - 24, 28 ) * + 53 + - COUNT( * ) AS col0
----
1271

skipif mysql # not compatible
query I rowsort label-7243
SELECT - NULLIF ( - 24, 28 ) * + 53 + - COUNT ( * ) AS col0
----
1271

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7245
SELECT ALL + - ( + + 40 ) * + NULLIF ( 96, + 8 ) * CAST( NULL AS SIGNED ) * + COUNT( * ) + - 79 + COUNT( * ) * + 8 + - 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL + - ( + + 40 ) * + NULLIF ( 96, + 8 ) * CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - 79 + COUNT ( * ) * + 8 + - 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT + - ( - COUNT( - 88 ) ) + 70 * 50 col2
----
3501

skipif mysql # not compatible
query I rowsort label-7246
SELECT + - ( - COUNT ( - 88 ) ) + 70 * 50 col2
----
3501

query I rowsort
SELECT + 50 * + 86 - + + 12 AS col1
----
4288

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT - ( - 45 ) - - + ( + - MIN( + + 53 ) ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-7248
SELECT - ( - 45 ) - - + ( + - MIN ( + + 53 ) ) col1
----
-8

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

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

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

query II rowsort
SELECT ALL 97 AS col1, 11 * + - 15 + - - 37
----
97
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT ALL COALESCE ( + - 34, + 2 * + - 4, + - 51 * + + NULLIF ( - + 68, - 10 / SUM( ALL - + 31 ) + 15 ) * - 81 ) + + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL COALESCE ( + - 34, + 2 * + - 4, + - 51 * + + NULLIF ( - + 68, - 10 / SUM ( ALL - + 31 ) + 15 ) * - 81 ) + + COUNT ( * )
----
-33

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

query I rowsort
SELECT ALL CASE + 27 WHEN - 9 THEN NULL WHEN + 21 THEN - + 50 END AS col2
----
NULL

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

query I rowsort
SELECT - 9 + - + 67
----
-76

query I rowsort
SELECT - ( 73 )
----
-73

query II rowsort
SELECT 18 AS col1, - 60
----
18
-60

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

skipif mysql # not compatible
query I rowsort label-7259
SELECT ALL MAX ( 85 )
----
85

query I rowsort
SELECT ALL - 56 * + - 60 AS col1
----
3360

query II rowsort
SELECT - 16, 88 AS col2
----
-16
88

query II rowsort
SELECT 96, - 49 AS col0
----
96
-49

query I rowsort
SELECT 99 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT - 55 + + 80 + 33 + - 10 + - + MAX( 30 ) + 40 * 9 AS col0
----
378

skipif mysql # not compatible
query I rowsort label-7264
SELECT - 55 + + 80 + 33 + - 10 + - + MAX ( 30 ) + 40 * 9 AS col0
----
378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7265
SELECT ALL + MAX( ALL - 16 ) * + CAST( NULL AS SIGNED ) AS col1, 19 + + MIN( - 31 ) AS col2
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-7265
SELECT ALL + MAX ( ALL - 16 ) * + CAST ( NULL AS INTEGER ) AS col1, 19 + + MIN ( - 31 ) AS col2
----
NULL
-12

query I rowsort
SELECT 4 col1
----
4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT - SUM( ALL - 48 ) - + 38 * ( 67 ) - - + 62 + - 93
----
-2529

skipif mysql # not compatible
query I rowsort label-7268
SELECT - SUM ( ALL - 48 ) - + 38 * ( 67 ) - - + 62 + - 93
----
-2529

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT ALL NULLIF ( - ( - - COALESCE ( - - SUM( DISTINCT - 63 ), COUNT( * ) * + 70 + - - NULLIF ( - - 53, - + 51 ) ) ), 99 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL NULLIF ( - ( - - COALESCE ( - - SUM ( DISTINCT - 63 ), COUNT ( * ) * + 70 + - - NULLIF ( - - 53, - + 51 ) ) ), 99 ) AS col0
----
63

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

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

query I rowsort
SELECT - 89 * + 33 AS col1
----
-2937

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

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

query I rowsort
SELECT - 90 - - 0
----
-90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT - - COUNT( * ) * - 45 - 95 + + - 78
----
-218

skipif mysql # not compatible
query I rowsort label-7277
SELECT - - COUNT ( * ) * - 45 - 95 + + - 78
----
-218

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

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL - 81 * + COUNT ( * ) + - - 39 AS col1
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-7279
SELECT ALL + 39 DIV 66 + + + 12 - - - 85 * - 82 * + 17
----
118502

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL + 39 / 66 + + + 12 - - - 85 * - 82 * + 17
----
118502

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7280
SELECT ALL - 75 / - 45 * - CAST( NULL AS SIGNED ) + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL - 75 / - 45 * - CAST ( NULL AS INTEGER ) + - 50
----
NULL

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

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

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

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

query II rowsort
SELECT DISTINCT + 2 AS col2, 99 + + 98
----
2
197

query I rowsort
SELECT + 20 + 62 - + - 86
----
168

query I rowsort
SELECT - 63 * - - 8
----
-504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7287
SELECT ALL - 59 * + - CASE ( ( 23 ) ) WHEN + 26 THEN NULL WHEN + + 17 THEN NULL ELSE 62 END * - COUNT( * ) + - - ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL - 59 * + - CASE ( ( 23 ) ) WHEN + 26 THEN NULL WHEN + + 17 THEN NULL ELSE 62 END * - COUNT ( * ) + - - ( + - CAST ( NULL AS INTEGER ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT ALL - COUNT( * ) * 87 + 26 + - 60 * 96 AS col1
----
-5821

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL - COUNT ( * ) * 87 + 26 + - 60 * 96 AS col1
----
-5821

query II rowsort
SELECT + 10 col0, 26 * - + 95 + 43 + + ( - 8 ) AS col0
----
10
-2435

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7291
SELECT ALL - 45 * + 38 + 49 + + - 41 - - + 77 * + CAST( NULL AS DECIMAL ) * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL - 45 * + 38 + 49 + + - 41 - - + 77 * + CAST ( NULL AS REAL ) * + 84
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7292
SELECT + + COUNT( * ) * 39 - + + 98 * - 12 * 94 * + ( - + CASE CAST( NULL AS SIGNED ) WHEN - 67 THEN SUM( 31 ) END ) / + 92 + + + 78 + + + ( - 10 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7292
SELECT + + COUNT ( * ) * 39 - + + 98 * - 12 * 94 * + ( - + CASE CAST ( NULL AS INTEGER ) WHEN - 67 THEN SUM ( 31 ) END ) / + 92 + + + 78 + + + ( - 10 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT COALESCE ( + + COUNT( * ), + SUM( ALL + 18 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7293
SELECT COALESCE ( + + COUNT ( * ), + SUM ( ALL + 18 ) )
----
1

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

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

query I rowsort
SELECT CASE 5 WHEN - 49 THEN NULL ELSE - + ( - 18 ) END AS col2
----
18

query I rowsort
SELECT 57 - + 27 * - 36 + + ( + 56 ) * + 49 AS col2
----
3773

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7297
SELECT 93 * 51 * - + COALESCE ( + + COUNT( * ), - - ( + + 69 ) * + 34 * - 43 DIV + 41 + - - COUNT( * ) )
----
-4743

skipif mysql # not compatible
query I rowsort label-7297
SELECT 93 * 51 * - + COALESCE ( + + COUNT ( * ), - - ( + + 69 ) * + 34 * - 43 / + 41 + - - COUNT ( * ) )
----
-4743

query I rowsort
SELECT ALL 9 * - 19
----
-171

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

query I rowsort
SELECT 83 * - - 94
----
7802

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT ALL 73 * + COUNT( * ) * + 33 * - 8 * - 86
----
1657392

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL 73 * + COUNT ( * ) * + 33 * - 8 * - 86
----
1657392

onlyif mysql # DIV for integer division: 
query I rowsort label-7302
SELECT DISTINCT 96 DIV + ( - 53 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7302
SELECT DISTINCT 96 / + ( - 53 ) AS col0
----
-1

query I rowsort
SELECT 2 - - - 23
----
-21

query I rowsort
SELECT ALL 26
----
26

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7306
SELECT CASE - 23 WHEN + 92 + - 45 * + - COUNT( * ) THEN CAST( - + MIN( ALL + 73 ) AS SIGNED ) + 73 ELSE NULL END * + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7306
SELECT CASE - 23 WHEN + 92 + - 45 * + - COUNT ( * ) THEN CAST ( - + MIN ( ALL + 73 ) AS INTEGER ) + 73 ELSE NULL END * + 8 AS col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7308
SELECT 27 DIV + + 11 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7308
SELECT 27 / + + 11 AS col0
----
2

query I rowsort
SELECT ALL 95 * + 79 AS col0
----
7505

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

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

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

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

query II rowsort
SELECT + 88 + - 35 * - - 42 - - 15 AS col1, ( + + 4 ) AS col0
----
-1367
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT DISTINCT + MIN( + - 3 ) * 23 + + 95 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT + MIN ( + - 3 ) * 23 + + 95 AS col1
----
26

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7315
SELECT - + NULLIF ( - 34, - + COUNT( DISTINCT 39 ) - + + CAST( NULL AS SIGNED ) * + - NULLIF ( - 58, COUNT( * ) ) )
----
34

skipif mysql # not compatible
query I rowsort label-7315
SELECT - + NULLIF ( - 34, - + COUNT ( DISTINCT 39 ) - + + CAST ( NULL AS INTEGER ) * + - NULLIF ( - 58, COUNT ( * ) ) )
----
34

query I rowsort
SELECT ALL + 99 + - 26 * + 82 AS col0
----
-2033

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7318
SELECT - 54 * - 25 * + SUM( ALL - - 52 ) * + 17 + + 88 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7318
SELECT - 54 * - 25 * + SUM ( ALL - - 52 ) * + 17 + + 88 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7320
SELECT DISTINCT - 85 + + + CAST( - + 64 AS SIGNED )
----
-149

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT - 85 + + + CAST ( - + 64 AS INTEGER )
----
-149

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

query I rowsort
SELECT - ( - - 0 ) * + 76
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7323
SELECT + 67 DIV - COUNT( * ) DIV + COUNT( * ) - - 18 * - COUNT( * ) * - - COUNT( * ) col1
----
-85

skipif mysql # not compatible
query I rowsort label-7323
SELECT + 67 / - COUNT ( * ) / + COUNT ( * ) - - 18 * - COUNT ( * ) * - - COUNT ( * ) col1
----
-85

query I rowsort
SELECT + + 43 col1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-7325
SELECT 30 - - 19 AS col1, - COUNT( * ) AS col0
----
49
-1

skipif mysql # not compatible
query II rowsort label-7325
SELECT 30 - - 19 AS col1, - COUNT ( * ) AS col0
----
49
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7327
SELECT + ( 45 ) DIV - + 76
----
0

skipif mysql # not compatible
query I rowsort label-7327
SELECT + ( 45 ) / - + 76
----
0

query I rowsort
SELECT ( 39 ) * - NULLIF ( 79, - 66 * - - 57 + - 61 )
----
-3081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7329
SELECT ALL - CASE COUNT( * ) WHEN 12 + + COUNT( * ) - + ( - CAST( + + 9 AS SIGNED ) ) THEN - 67 * + 25 * - COUNT( * ) * + 90 * - - 57 WHEN + + COALESCE ( + 88, + 62 / - + 86, 83, - + 93 / CAST( NULL AS SIGNED ) ) * 51 THEN - 25 END + + SUM( 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL - CASE COUNT ( * ) WHEN 12 + + COUNT ( * ) - + ( - CAST ( + + 9 AS INTEGER ) ) THEN - 67 * + 25 * - COUNT ( * ) * + 90 * - - 57 WHEN + + COALESCE ( + 88, + 62 / - + 86, 83, - + 93 / CAST ( NULL AS INTEGER ) ) * 51 THEN - 25 END + + SUM ( 5 )
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7333
SELECT 99 - - COALESCE ( - - 0, - 86 * - - ( + 34 ) + + 9 * - CAST( + MAX( - + ( - 66 ) ) AS SIGNED ) * - 11 * 15 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-7333
SELECT 99 - - COALESCE ( - - 0, - 86 * - - ( + 34 ) + + 9 * - CAST ( + MAX ( - + ( - 66 ) ) AS INTEGER ) * - 11 * 15 ) AS col0
----
99

query I rowsort
SELECT ALL - 31 * + + CASE - 40 WHEN 73 - - 98 THEN NULL ELSE + - 73 END - - 78
----
2341

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT - SUM( - + 19 ) - + 14 * 4 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-7336
SELECT - SUM ( - + 19 ) - + 14 * 4 AS col2
----
-37

query I rowsort
SELECT DISTINCT - 65 * + 34
----
-2210

query I rowsort
SELECT 51 * - - 60 AS col2
----
3060

query I rowsort
SELECT + 46 col0
----
46

query I rowsort
SELECT 93 * ( + - 28 ) AS col2
----
-2604

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

query II rowsort
SELECT ALL - 31 AS col2, - 5 + - 30 * + ( - 65 ) * + 19 AS col0
----
-31
37045

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT 67 + + 66 * + 35 * CASE - 77 WHEN 9 THEN - COUNT( + 57 ) + + COALESCE ( - 94, - + 40, + ( - 67 ) + - + 82 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7343
SELECT 67 + + 66 * + 35 * CASE - 77 WHEN 9 THEN - COUNT ( + 57 ) + + COALESCE ( - 94, - + 40, + ( - 67 ) + - + 82 ) END col0
----
NULL

query I rowsort
SELECT 20 * - 69 - + 30 + - 7
----
-1417

query I rowsort
SELECT ALL - 38 col0
----
-38

query I rowsort
SELECT 76 + + - 71 * 13 * - 4
----
3768

query I rowsort
SELECT COALESCE ( - 37, + - 50 ) - + - ( - 22 ) AS col1
----
-59

query II rowsort
SELECT 43 col2, - 44 AS col1
----
43
-44

query I rowsort
SELECT ALL 61
----
61

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

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

query I rowsort
SELECT 92 * 11 AS col2
----
1012

query I rowsort
SELECT DISTINCT 73 * 99
----
7227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7353
SELECT 11 + + NULLIF ( COUNT( * ), - + 45 ) DIV 65
----
11

skipif mysql # not compatible
query I rowsort label-7353
SELECT 11 + + NULLIF ( COUNT ( * ), - + 45 ) / 65
----
11

query I rowsort
SELECT 82 * + 33
----
2706

query I rowsort
SELECT ALL 19 * - 53 col0
----
-1007

query II rowsort
SELECT - 80 AS col1, 33
----
-80
33

query I rowsort
SELECT ALL 72 * 14 col1
----
1008

query I rowsort
SELECT 8 * + 3
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT ALL CASE + + MIN( + 7 ) WHEN - 57 THEN + 93 END + + 79 - - 59 * + SUM( + - 14 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL CASE + + MIN ( + 7 ) WHEN - 57 THEN + 93 END + + 79 - - 59 * + SUM ( + - 14 ) AS col0
----
NULL

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

query II rowsort
SELECT ALL 69 + + ( 65 ) AS col0, 42
----
134
42

onlyif mysql # aggregate syntax: 
query II rowsort label-7364
SELECT DISTINCT 8 + + - SUM( + 61 ) AS col1, 96 AS col0
----
-53
96

skipif mysql # not compatible
query II rowsort label-7364
SELECT DISTINCT 8 + + - SUM ( + 61 ) AS col1, 96 AS col0
----
-53
96

query I rowsort
SELECT 34 * - - 99 + - - 85 AS col2
----
3451

query II rowsort
SELECT - + 21 col1, + 46 AS col1
----
-21
46

query II rowsort
SELECT + 5 + + 42 - 99 AS col1, + 55 AS col1
----
-52
55

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

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

query I rowsort
SELECT ALL - 37 * - - 4
----
-148

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

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

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

query I rowsort
SELECT ALL + 44 * + 0 - - 93
----
93

query I rowsort
SELECT - 54 + - - 57
----
3

query I rowsort
SELECT DISTINCT 24 * + 19 AS col1
----
456

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT + + MAX( ALL - 73 ) * 51 + - 47 AS col0
----
-3770

skipif mysql # not compatible
query I rowsort label-7376
SELECT + + MAX ( ALL - 73 ) * 51 + - 47 AS col0
----
-3770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7377
SELECT DISTINCT - CASE + 73 WHEN - - CAST( + - 59 AS SIGNED ) DIV + MIN( - + 62 ) THEN + SUM( ALL + + 21 ) DIV 14 * 4 + 20 WHEN + - 15 THEN NULL ELSE + COUNT( * ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7377
SELECT DISTINCT - CASE + 73 WHEN - - CAST ( + - 59 AS INTEGER ) / + MIN ( - + 62 ) THEN + SUM ( ALL + + 21 ) / 14 * 4 + 20 WHEN + - 15 THEN NULL ELSE + COUNT ( * ) END AS col0
----
-1

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

query I rowsort
SELECT + 21 * - + 78 AS col2
----
-1638

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT + ( - COALESCE ( + 13, + + 21 - SUM( - 66 ) ) ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-7381
SELECT + ( - COALESCE ( + 13, + + 21 - SUM ( - 66 ) ) ) AS col0
----
-13

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7383
SELECT - CASE - 57 WHEN + + 28 THEN - - 85 + - MIN( DISTINCT 70 ) * + 95 * - CAST( NULL AS DECIMAL ) + + 6 WHEN - ( + 10 ) * + 59 THEN NULL ELSE NULL END * - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-7383
SELECT - CASE - 57 WHEN + + 28 THEN - - 85 + - MIN ( DISTINCT 70 ) * + 95 * - CAST ( NULL AS REAL ) + + 6 WHEN - ( + 10 ) * + 59 THEN NULL ELSE NULL END * - 41
----
NULL

query I rowsort
SELECT + COALESCE ( 29, - 52 ) AS col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7385
SELECT ALL + COUNT( * ) col2, 98 DIV SUM( ALL - 26 )
----
1
-3

skipif mysql # not compatible
query II rowsort label-7385
SELECT ALL + COUNT ( * ) col2, 98 / SUM ( ALL - 26 )
----
1
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7386
SELECT 25 * - 65 * + 29 * 44 + CAST( NULL AS DECIMAL ) + + - 17 + - CASE 37 WHEN + NULLIF ( + 10, NULLIF ( - CASE WHEN NULL = NULL THEN 42 ELSE NULL END, + CAST( 0 AS SIGNED ) ) ) * + + MAX( ALL 42 ) THEN - 79 END * + - ( 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7386
SELECT 25 * - 65 * + 29 * 44 + CAST ( NULL AS REAL ) + + - 17 + - CASE 37 WHEN + NULLIF ( + 10, NULLIF ( - CASE WHEN NULL = NULL THEN 42 ELSE NULL END, + CAST ( 0 AS INTEGER ) ) ) * + + MAX ( ALL 42 ) THEN - 79 END * + - ( 49 )
----
NULL

query I rowsort
SELECT DISTINCT + 34 * - - ( 17 )
----
578

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT - COALESCE ( - + 93, + 26 ) * + - COUNT( * ) + - 55 AS col0
----
-148

skipif mysql # not compatible
query I rowsort label-7388
SELECT - COALESCE ( - + 93, + 26 ) * + - COUNT ( * ) + - 55 AS col0
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7389
SELECT ALL + 25 * - CAST( - + 43 AS SIGNED ) AS col2
----
1075

skipif mysql # not compatible
query I rowsort label-7389
SELECT ALL + 25 * - CAST ( - + 43 AS INTEGER ) AS col2
----
1075

onlyif mysql # DIV for integer division: 
query I rowsort label-7390
SELECT ALL + 52 DIV + 20 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL + 52 / + 20 AS col0
----
2

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

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

query II rowsort
SELECT ALL + 73, + 58 AS col0
----
73
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT DISTINCT - 80 + + 42 * + COALESCE ( + 18, + 61 ) * MAX( ALL - 19 ) AS col1
----
-14444

skipif mysql # not compatible
query I rowsort label-7393
SELECT DISTINCT - 80 + + 42 * + COALESCE ( + 18, + 61 ) * MAX ( ALL - 19 ) AS col1
----
-14444

query I rowsort
SELECT DISTINCT + 17 + + + 64 + - 19 AS col0
----
62

query I rowsort
SELECT - 84 - - - 7 col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT - 60 - + + SUM( - - 19 ) * - + 88 * + ( + + 52 ) * + 82
----
7129348

skipif mysql # not compatible
query I rowsort label-7396
SELECT - 60 - + + SUM ( - - 19 ) * - + 88 * + ( + + 52 ) * + 82
----
7129348

onlyif mysql # DIV for integer division: 
query I rowsort label-7397
SELECT - 78 DIV - - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7397
SELECT - 78 / - - 82 AS col0
----
0

query I rowsort
SELECT 31
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-7399
SELECT ALL - 63 + - 54 * - COUNT( * ) + 29, 53 AS col2
----
20
53

skipif mysql # not compatible
query II rowsort label-7399
SELECT ALL - 63 + - 54 * - COUNT ( * ) + 29, 53 AS col2
----
20
53

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT + NULLIF ( - 51, - COUNT( * ) ) - - ( + 49 )
----
-2

skipif mysql # not compatible
query I rowsort label-7402
SELECT + NULLIF ( - 51, - COUNT ( * ) ) - - ( + 49 )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7403
SELECT ALL - 91 + - - 1 DIV 51 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL - 91 + - - 1 / 51 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT ALL + 58 + - 52 + - - COUNT( * ) * + COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL + 58 + - 52 + - - COUNT ( * ) * + COUNT ( * ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT - - MAX( ALL - - 56 ) * + 42 * 25 AS col1
----
58800

skipif mysql # not compatible
query I rowsort label-7405
SELECT - - MAX ( ALL - - 56 ) * + 42 * 25 AS col1
----
58800

onlyif mysql # DIV for integer division: 
query II rowsort label-7406
SELECT + 21 AS col0, - 14 DIV - + 15
----
21
0

skipif mysql # not compatible
query II rowsort label-7406
SELECT + 21 AS col0, - 14 / - + 15
----
21
0

query I rowsort
SELECT NULLIF ( + 8, + 67 ) col0
----
8

query I rowsort
SELECT + 72 + + - 65 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT DISTINCT COUNT( * ) + 22 + - - 73 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT COUNT ( * ) + 22 + - - 73 AS col0
----
96

query I rowsort
SELECT - + 13
----
-13

query I rowsort
SELECT + 86 + + 9 AS col2
----
95

query I rowsort
SELECT ALL + ( + 64 ) - 63 AS col1
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT DISTINCT + 64 * + MIN( - 8 ) AS col0
----
-512

skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT + 64 * + MIN ( - 8 ) AS col0
----
-512

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7415
SELECT ALL + - NULLIF ( - - CASE + CAST( - ( 85 ) AS DECIMAL ) WHEN + COUNT( * ) / COUNT( * ) - COUNT( ALL 45 ) + - 49 THEN 12 + - 56 ELSE NULL END, + - 12 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL + - NULLIF ( - - CASE + CAST ( - ( 85 ) AS REAL ) WHEN + COUNT ( * ) / COUNT ( * ) - COUNT ( ALL 45 ) + - 49 THEN 12 + - 56 ELSE NULL END, + - 12 ) AS col2
----
NULL

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

query I rowsort
SELECT - - 3 * 97 - 15
----
276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7418
SELECT + COUNT( * ) AS col1, - 27 * + CAST( 61 AS SIGNED ) AS col1
----
1
-1647

skipif mysql # not compatible
query II rowsort label-7418
SELECT + COUNT ( * ) AS col1, - 27 * + CAST ( 61 AS INTEGER ) AS col1
----
1
-1647

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT + - 59 + MAX( - 4 ) col0
----
-63

skipif mysql # not compatible
query I rowsort label-7421
SELECT + - 59 + MAX ( - 4 ) col0
----
-63

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

query I rowsort
SELECT ALL 72 * + 35 AS col1
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT COUNT( * ) * 25 * + 29 + - + 74
----
651

skipif mysql # not compatible
query I rowsort label-7424
SELECT COUNT ( * ) * 25 * + 29 + - + 74
----
651

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

query II rowsort
SELECT + ( - 77 ), - ( + ( 53 ) ) + + - 7 AS col0
----
-77
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7427
SELECT MIN( - ( 24 ) ) * - - 35 + + CAST( NULL AS SIGNED ) - + 19 + 66 + + CASE - 44 WHEN - CASE - 31 WHEN - + 78 + ( 43 ) + + MIN( DISTINCT + - 54 ) * + ( + 77 ) THEN - 9 * - ( - - CAST( NULL AS SIGNED ) ) * 75 ELSE COUNT( * ) + + 61 END THEN - COUNT( ALL - 15 ) END * CASE 52 WHEN - 29 * COUNT( * ) + - 63 THEN - COALESCE ( - MIN( 23 ), - MIN( 10 ) - - 23 ) + - ( - 50 + CASE - 63 + 48 * + ( 52 ) WHEN 82 / - 94 THEN 90 END * - 12 ) / AVG ( ALL + 77 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7427
SELECT MIN ( - ( 24 ) ) * - - 35 + + CAST ( NULL AS INTEGER ) - + 19 + 66 + + CASE - 44 WHEN - CASE - 31 WHEN - + 78 + ( 43 ) + + MIN ( DISTINCT + - 54 ) * + ( + 77 ) THEN - 9 * - ( - - CAST ( NULL AS INTEGER ) ) * 75 ELSE COUNT ( * ) + + 61 END THEN - COUNT ( ALL - 15 ) END * CASE 52 WHEN - 29 * COUNT ( * ) + - 63 THEN - COALESCE ( - MIN ( 23 ), - MIN ( 10 ) - - 23 ) + - ( - 50 + CASE - 63 + 48 * + ( 52 ) WHEN 82 / - 94 THEN 90 END * - 12 ) / AVG ( ALL + 77 ) END AS col2
----
NULL

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

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

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

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

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

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

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

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

query II rowsort
SELECT ALL + 97 * + 9 + + 45 AS col0, - CASE + 36 WHEN - 20 THEN NULL ELSE - 26 END + - - 38
----
918
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7435
SELECT + CAST( + 1 AS SIGNED ) * 66 * + + CAST( NULL AS SIGNED ) + 95 + COALESCE ( 39, - 81 ) * - 23 + + + COUNT( * ) + + + ( + + 5 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7435
SELECT + CAST ( + 1 AS INTEGER ) * 66 * + + CAST ( NULL AS INTEGER ) + 95 + COALESCE ( 39, - 81 ) * - 23 + + + COUNT ( * ) + + + ( + + 5 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT + 61 + + + 84 + 30 * + - ( + COUNT( * ) )
----
115

skipif mysql # not compatible
query I rowsort label-7436
SELECT + 61 + + + 84 + 30 * + - ( + COUNT ( * ) )
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT 94 * - COUNT( * ) - + 30
----
-124

skipif mysql # not compatible
query I rowsort label-7437
SELECT 94 * - COUNT ( * ) - + 30
----
-124

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7439
SELECT CASE + + 39 WHEN - 26 * COUNT( ALL + + 64 ) + - 7 / 37 THEN NULL WHEN 4 THEN NULL ELSE - 7 + + - CAST( + 79 AS SIGNED ) END
----
-86

skipif mysql # not compatible
query I rowsort label-7439
SELECT CASE + + 39 WHEN - 26 * COUNT ( ALL + + 64 ) + - 7 / 37 THEN NULL WHEN 4 THEN NULL ELSE - 7 + + - CAST ( + 79 AS INTEGER ) END
----
-86

query I rowsort
SELECT ALL 16 * + COALESCE ( + - 90, - 47 * - + 35, + 75 ) + - 90 + 95 AS col2
----
-1435

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT COALESCE ( NULLIF ( - - 20, + 77 * 37 ), + COUNT( * ), 98 )
----
20

skipif mysql # not compatible
query I rowsort label-7441
SELECT COALESCE ( NULLIF ( - - 20, + 77 * 37 ), + COUNT ( * ), 98 )
----
20

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7443
SELECT ALL CAST( 50 AS SIGNED ), - COALESCE ( + MIN( 11 ), - - 52 + + 43 ) col0
----
50
-11

skipif mysql # not compatible
query II rowsort label-7443
SELECT ALL CAST ( 50 AS INTEGER ), - COALESCE ( + MIN ( 11 ), - - 52 + + 43 ) col0
----
50
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7444
SELECT - 83 + 69 + 20 - - COUNT( * ) + + + 19 + - + 12 * - 42 * 36 * CAST( - + SUM( ALL + CAST( NULL AS SIGNED ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7444
SELECT - 83 + 69 + 20 - - COUNT ( * ) + + + 19 + - + 12 * - 42 * 36 * CAST ( - + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7445
SELECT ALL - 62 + CAST( 75 AS SIGNED ), 21 - - 99 AS col2
----
13
120

skipif mysql # not compatible
query II rowsort label-7445
SELECT ALL - 62 + CAST ( 75 AS INTEGER ), 21 - - 99 AS col2
----
13
120

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

query II rowsort
SELECT - ( - - 22 ) AS col0, - 63 + 30 AS col0
----
-22
-33

query II rowsort
SELECT - + 81 * - 6, 74 * - 87 AS col0
----
486
-6438

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7450
SELECT - 87 + CAST( NULL AS SIGNED ) * ( + 30 ) + - - 68 + - + COUNT( * ) + - - NULLIF ( 80, 29 + - - 99 * ( - 54 ) ) AS col2, - 32 col0
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-7450
SELECT - 87 + CAST ( NULL AS INTEGER ) * ( + 30 ) + - - 68 + - + COUNT ( * ) + - - NULLIF ( 80, 29 + - - 99 * ( - 54 ) ) AS col2, - 32 col0
----
NULL
-32

query II rowsort
SELECT - - COALESCE ( + 98, + + 69, - 24 ) * - - 89 col2, + 27 col0
----
8722
27

query I rowsort
SELECT - - 95 AS col2
----
95

query I rowsort
SELECT ALL + 38
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7454
SELECT - COUNT( * ) + COALESCE ( - 34, SUM( 35 ), + 76 * - + 14 * + 8 ) * CASE - + 92 WHEN + CAST( 87 AS SIGNED ) * 43 THEN NULL WHEN - 81 THEN COUNT( * ) * - + 19 ELSE - + COUNT( * ) * + 3 + + + 66 END
----
-2143

skipif mysql # not compatible
query I rowsort label-7454
SELECT - COUNT ( * ) + COALESCE ( - 34, SUM ( 35 ), + 76 * - + 14 * + 8 ) * CASE - + 92 WHEN + CAST ( 87 AS INTEGER ) * 43 THEN NULL WHEN - 81 THEN COUNT ( * ) * - + 19 ELSE - + COUNT ( * ) * + 3 + + + 66 END
----
-2143

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7455
SELECT DISTINCT - CAST( + 1 AS SIGNED ) col0, - 66 * - 76 + 38 AS col2, 50
----
-1
5054
50

skipif mysql # not compatible
query III rowsort label-7455
SELECT DISTINCT - CAST ( + 1 AS INTEGER ) col0, - 66 * - 76 + 38 AS col2, 50
----
-1
5054
50

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7457
SELECT ALL CASE - 39 WHEN + CASE - COUNT( * ) WHEN + 94 * 86 THEN - 97 ELSE NULL END / - NULLIF ( + 29, + 96 ) + - 17 - - COUNT( * ) * - COALESCE ( - + 31, + + 36 / - 56 * - CASE - 30 WHEN + COUNT( * ) + - 66 + - - ( 90 ) + 33 / SUM( DISTINCT 58 + 20 ) * + COUNT( * ) THEN CAST( 13 AS SIGNED ) - - 91 END * - 24 + COUNT( * ) ) THEN NULL ELSE ( 81 ) END AS col2
----
81

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL CASE - 39 WHEN + CASE - COUNT ( * ) WHEN + 94 * 86 THEN - 97 ELSE NULL END / - NULLIF ( + 29, + 96 ) + - 17 - - COUNT ( * ) * - COALESCE ( - + 31, + + 36 / - 56 * - CASE - 30 WHEN + COUNT ( * ) + - 66 + - - ( 90 ) + 33 / SUM ( DISTINCT 58 + 20 ) * + COUNT ( * ) THEN CAST ( 13 AS INTEGER ) - - 91 END * - 24 + COUNT ( * ) ) THEN NULL ELSE ( 81 ) END AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT - + 24 + - - 19 * - ( + COUNT( * ) )
----
-43

skipif mysql # not compatible
query I rowsort label-7458
SELECT - + 24 + - - 19 * - ( + COUNT ( * ) )
----
-43

query I rowsort
SELECT DISTINCT 76 * 80 * - - 55 col1
----
334400

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

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

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

query I rowsort
SELECT ALL + NULLIF ( 25, 57 ) AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7463
SELECT ( + + COALESCE ( + CAST( - + 9 AS SIGNED ), ( - 16 ) DIV + 59 + + COUNT( DISTINCT + 54 ) * + - 62 ) ) * - 73 * 7, 32 AS col2
----
4599
32

skipif mysql # not compatible
query II rowsort label-7463
SELECT ( + + COALESCE ( + CAST ( - + 9 AS INTEGER ), ( - 16 ) / + 59 + + COUNT ( DISTINCT + 54 ) * + - 62 ) ) * - 73 * 7, 32 AS col2
----
4599
32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7464
SELECT + CAST( - 50 AS SIGNED ) * - - 5 DIV - 5 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-7464
SELECT + CAST ( - 50 AS INTEGER ) * - - 5 / - 5 AS col0
----
50

query I rowsort
SELECT 84 + - 59 + + 25
----
50

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

query I rowsort
SELECT - - 43 AS col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-7468
SELECT - 93 DIV + 98 + - 46 col0
----
-46

skipif mysql # not compatible
query I rowsort label-7468
SELECT - 93 / + 98 + - 46 col0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7469
SELECT + CAST( NULLIF ( + - 48, - NULLIF ( + COUNT( * ), - 57 + + - 83 ) * - 28 ) AS SIGNED ) * - - 67 * COALESCE ( + 86, + + COALESCE ( - - MIN( + 58 ), + 33 * - - CAST( 92 AS SIGNED ) DIV + + 82 + 54 + - 59 * - + 62 + + + CASE - 71 WHEN + 44 * + SUM( ALL + 55 * + ( + 38 ) ) THEN NULL WHEN COUNT( * ) THEN + 1 DIV 34 END + 71 * - 74 ), 55 ) * COUNT( ALL - 14 * + 96 ) - 24 * + 27
----
-277224

skipif mysql # not compatible
query I rowsort label-7469
SELECT + CAST ( NULLIF ( + - 48, - NULLIF ( + COUNT ( * ), - 57 + + - 83 ) * - 28 ) AS INTEGER ) * - - 67 * COALESCE ( + 86, + + COALESCE ( - - MIN ( + 58 ), + 33 * - - CAST ( 92 AS INTEGER ) / + + 82 + 54 + - 59 * - + 62 + + + CASE - 71 WHEN + 44 * + SUM ( ALL + 55 * + ( + 38 ) ) THEN NULL WHEN COUNT ( * ) THEN + 1 / 34 END + 71 * - 74 ), 55 ) * COUNT ( ALL - 14 * + 96 ) - 24 * + 27
----
-277224

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7470
SELECT - CAST( 15 AS SIGNED ) DIV - 45 * + NULLIF ( 93, - 71 )
----
0

skipif mysql # not compatible
query I rowsort label-7470
SELECT - CAST ( 15 AS INTEGER ) / - 45 * + NULLIF ( 93, - 71 )
----
0

query II rowsort
SELECT - 30 * - 11, + 64 AS col2
----
330
64

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

query II rowsort
SELECT DISTINCT + + 72 * - 21 AS col0, - NULLIF ( 15, - 70 - + 80 ) + + - 48 AS col1
----
-1512
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL 39 + - 53 * COUNT( - 76 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL 39 + - 53 * COUNT ( - 76 ) AS col2
----
-14

query I rowsort
SELECT 92 + + 71 col1
----
163

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

query II rowsort
SELECT DISTINCT 68 + ( + + 62 ), - 12 col0
----
130
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-7478
SELECT ALL 32 DIV - - 16
----
2

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL 32 / - - 16
----
2

query I rowsort
SELECT 45 AS col0
----
45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT 21 + - 12 - - + COUNT( * ) * - 27
----
-18

skipif mysql # not compatible
query I rowsort label-7481
SELECT 21 + - 12 - - + COUNT ( * ) * - 27
----
-18

query I rowsort
SELECT 92 * + - 58 AS col0
----
-5336

query I rowsort
SELECT ALL CASE - 34 WHEN + AVG ( 2 ) THEN NULL WHEN - 82 THEN NULL ELSE + 57 * + 73 END + - 17 - 57 AS col2
----
4087

query II rowsort
SELECT + 65, 72 AS col0
----
65
72

query II rowsort
SELECT ( - 70 ) + - 33, - 91 - + 13 AS col2
----
-103
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-7486
SELECT ALL 49 + - 75 * 39 DIV 54 DIV + 95 * 45 + 13
----
62

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL 49 + - 75 * 39 / 54 / + 95 * 45 + 13
----
62

query I rowsort
SELECT 17 * - 72 AS col1
----
-1224

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT ALL ( 80 ) + + MIN( - - 46 ) AS col2
----
126

skipif mysql # not compatible
query I rowsort label-7489
SELECT ALL ( 80 ) + + MIN ( - - 46 ) AS col2
----
126

query II rowsort
SELECT 83 AS col1, - 59
----
83
-59

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7493
SELECT ( - 11 ) * COUNT( * ) DIV ( 52 ) * + + COUNT( * ) * + + 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7493
SELECT ( - 11 ) * COUNT ( * ) / ( 52 ) * + + COUNT ( * ) * + + 25 AS col0
----
0

query II rowsort
SELECT - 89 AS col0, + 59 * - - ( - 11 )
----
-89
-649

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7496
SELECT CAST( + ( + 17 ) AS SIGNED ), ( - - 0 ) AS col2
----
17
0

skipif mysql # not compatible
query II rowsort label-7496
SELECT CAST ( + ( + 17 ) AS INTEGER ), ( - - 0 ) AS col2
----
17
0

query I rowsort
SELECT - 58 * + 40 - - 44 + + 75
----
-2201

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT - 89 + + 57 * 14 * + 98 * - COUNT( * ) + + ( 73 ) AS col2
----
-78220

skipif mysql # not compatible
query I rowsort label-7499
SELECT - 89 + + 57 * 14 * + 98 * - COUNT ( * ) + + ( 73 ) AS col2
----
-78220

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

query I rowsort
SELECT ALL 67
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT ALL - + MIN( + 23 ) * + 33 * - + 65
----
49335

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL - + MIN ( + 23 ) * + 33 * - + 65
----
49335

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT 43 * COUNT( * ) + + - COALESCE ( 71, 10 ) + MIN( + 47 )
----
19

skipif mysql # not compatible
query I rowsort label-7503
SELECT 43 * COUNT ( * ) + + - COALESCE ( 71, 10 ) + MIN ( + 47 )
----
19

query I rowsort
SELECT ALL - 58 * + 9 * + ( + 55 )
----
-28710

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

query I rowsort
SELECT DISTINCT 90 * 38 AS col0
----
3420

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

query I rowsort
SELECT ALL - 14 * - 16
----
224

onlyif mysql # DIV for integer division: 
query I rowsort label-7509
SELECT 22 DIV - - 95 + - + COALESCE ( + 55, - 18 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-7509
SELECT 22 / - - 95 + - + COALESCE ( + 55, - 18 ) AS col2
----
-55

query I rowsort
SELECT - 48 * 74 * + 3 AS col1
----
-10656

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7512
SELECT 12 * - + 63 - - CAST( + + ( + 45 ) AS SIGNED ) * - + ( 5 ) + 23 AS col2
----
-958

skipif mysql # not compatible
query I rowsort label-7512
SELECT 12 * - + 63 - - CAST ( + + ( + 45 ) AS INTEGER ) * - + ( 5 ) + 23 AS col2
----
-958

onlyif mysql # aggregate syntax: 
query II rowsort label-7513
SELECT + 13 AS col1, MAX( ALL - 10 )
----
13
-10

skipif mysql # not compatible
query II rowsort label-7513
SELECT + 13 AS col1, MAX ( ALL - 10 )
----
13
-10

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

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

query II rowsort
SELECT 35, - 92 - 3 AS col2
----
35
-95

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

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

query II rowsort
SELECT ALL 3, 55 * 50 AS col0
----
3
2750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7518
SELECT 91 * - CAST( NULL AS SIGNED ) * 50 / CASE + + COUNT( * ) WHEN - MIN( + 57 ) + - + COUNT( * ) THEN - MAX( DISTINCT + - NULLIF ( 40, + + 28 ) ) ELSE NULL END + - - 84 / COALESCE ( + 18, 56 ) * + COALESCE ( + 68, - + 64 ) * - ( + 34 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7518
SELECT 91 * - CAST ( NULL AS INTEGER ) * 50 / CASE + + COUNT ( * ) WHEN - MIN ( + 57 ) + - + COUNT ( * ) THEN - MAX ( DISTINCT + - NULLIF ( 40, + + 28 ) ) ELSE NULL END + - - 84 / COALESCE ( + 18, 56 ) * + COALESCE ( + 68, - + 64 ) * - ( + 34 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT ALL + SUM( - - COALESCE ( + - 18, - + 43 + - 21 + + 1 ) ) + - - 57 * + - MAX( ALL + 24 ) + - COUNT( * ) AS col2
----
-1387

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL + SUM ( - - COALESCE ( + - 18, - + 43 + - 21 + + 1 ) ) + - - 57 * + - MAX ( ALL + 24 ) + - COUNT ( * ) AS col2
----
-1387

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT ALL COUNT( * ) + + 71 * 24 AS col2
----
1705

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL COUNT ( * ) + + 71 * 24 AS col2
----
1705

query I rowsort
SELECT ALL - 93 + COALESCE ( + 87, - - ( 4 ) * - CASE 82 WHEN + + 78 THEN + + 38 * + + 1 * - + 91 END ) col2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7523
SELECT COALESCE ( 55, - 48 DIV - - 25 * + 14 + + + 25, - 65 ) * - + 91
----
-5005

skipif mysql # not compatible
query I rowsort label-7523
SELECT COALESCE ( 55, - 48 / - - 25 * + 14 + + + 25, - 65 ) * - + 91
----
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT ALL + 30 + - + CASE CASE + + 27 WHEN + 5 * - + COUNT( ALL 37 ) THEN NULL ELSE + 70 END WHEN - + 79 / 73 - - CASE - - 14 WHEN + + 3 THEN + COUNT( DISTINCT - 84 ) - + 80 + 21 WHEN + CASE - - ( + COUNT( * ) ) WHEN - + 45 * - - 78 - - 83 * - MIN( 52 ) * - 6 + 21 * 3 THEN 42 + MIN( - 22 ) ELSE NULL END * + ( COUNT( * ) ) THEN - COUNT( * ) WHEN 63 * + 24 - - 46 THEN + 28 END THEN - 22 END - - 79 * 81
----
NULL

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL + 30 + - + CASE CASE + + 27 WHEN + 5 * - + COUNT ( ALL 37 ) THEN NULL ELSE + 70 END WHEN - + 79 / 73 - - CASE - - 14 WHEN + + 3 THEN + COUNT ( DISTINCT - 84 ) - + 80 + 21 WHEN + CASE - - ( + COUNT ( * ) ) WHEN - + 45 * - - 78 - - 83 * - MIN ( 52 ) * - 6 + 21 * 3 THEN 42 + MIN ( - 22 ) ELSE NULL END * + ( COUNT ( * ) ) THEN - COUNT ( * ) WHEN 63 * + 24 - - 46 THEN + 28 END THEN - 22 END - - 79 * 81
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7525
SELECT 94 DIV + 92 - + 6 + + 75 + - - ( 28 ) + 36 AS col0
----
134

skipif mysql # not compatible
query I rowsort label-7525
SELECT 94 / + 92 - + 6 + + 75 + - - ( 28 ) + 36 AS col0
----
134

query II rowsort
SELECT 92 + + 77, 13 AS col1
----
169
13

query I rowsort
SELECT + 55
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7528
SELECT ALL - COUNT( * ) + + - 12 + - - CAST( NULL AS SIGNED ) * + 10 + + - COALESCE ( + SUM( ALL - 66 ), + + COUNT( - ( + - 5 ) ) / + 61 + - 11 ), - 18 AS col2
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-7528
SELECT ALL - COUNT ( * ) + + - 12 + - - CAST ( NULL AS INTEGER ) * + 10 + + - COALESCE ( + SUM ( ALL - 66 ), + + COUNT ( - ( + - 5 ) ) / + 61 + - 11 ), - 18 AS col2
----
NULL
-18

query I rowsort
SELECT 2 + - + 41 + + 89 * + + 34 * + ( 37 ) * 39
----
4366479

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7531
SELECT ALL NULLIF ( - - NULLIF ( NULLIF ( + - 12, + COALESCE ( - 56, + 68 + CAST( NULL AS SIGNED ) * - 70 ) * + - MIN( ALL + 43 ) ), - 9 ), COUNT( * ) ) + 50
----
38

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL NULLIF ( - - NULLIF ( NULLIF ( + - 12, + COALESCE ( - 56, + 68 + CAST ( NULL AS INTEGER ) * - 70 ) * + - MIN ( ALL + 43 ) ), - 9 ), COUNT ( * ) ) + 50
----
38

query I rowsort
SELECT DISTINCT - CASE - + 77 WHEN - 20 THEN + + 21 + - 91 END AS col2
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-7534
SELECT 31 * + 4 * COUNT ( * ) - - - 63 AS col0
----
61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT DISTINCT - MIN( DISTINCT 34 ) - 36
----
-70

skipif mysql # not compatible
query I rowsort label-7536
SELECT DISTINCT - MIN ( DISTINCT 34 ) - 36
----
-70

query I rowsort
SELECT ALL 89 - 14 + - 49 AS col0
----
26

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

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

query I rowsort
SELECT 52 * 78 col0
----
4056

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7541
SELECT ALL - 79 - - 64 + + - 61 + NULLIF ( - + COALESCE ( + - 83, - 10 + + 31 * - 51 DIV 11 + + - 79 * - + 38 * + CASE WHEN NULL > NULL THEN 86 ELSE NULL END + CAST( + 40 AS SIGNED ), - - COUNT( + 17 ), + + 29 DIV - COUNT( * ) ), + 54 ) * - + 34 AS col2
----
-2898

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL - 79 - - 64 + + - 61 + NULLIF ( - + COALESCE ( + - 83, - 10 + + 31 * - 51 / 11 + + - 79 * - + 38 * + CASE WHEN NULL > NULL THEN 86 ELSE NULL END + CAST ( + 40 AS INTEGER ), - - COUNT ( + 17 ), + + 29 / - COUNT ( * ) ), + 54 ) * - + 34 AS col2
----
-2898

query I rowsort
SELECT 65 * + COALESCE ( - + 68, - 84 + 44 ) AS col1
----
-4420

query I rowsort
SELECT ALL 23
----
23

query I rowsort
SELECT ALL - 10 * 25 + 79
----
-171

query I rowsort
SELECT ALL - 14
----
-14

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

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

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

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

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

query I rowsort
SELECT + 23 + 78 AS col1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT - + SUM( COALESCE ( - 89, + 6 * - 19 - + ( + 99 ) - 16 ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-7550
SELECT - + SUM ( COALESCE ( - 89, + 6 * - 19 - + ( + 99 ) - 16 ) ) AS col2
----
89

query I rowsort
SELECT + - 21 + + 27
----
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT + + ( + - ( - CASE - 45 WHEN + + ( + CASE - 17 WHEN 1 THEN AVG ( - 10 ) WHEN + 85 THEN NULL ELSE - 44 + 74 END ) THEN - 8 / ( - 15 ) * - 88 + - + 97 * 73 * - - 86 + - 20 * - - COUNT( * ) * - ( - - 92 ) / + 78 + + 38 END ) ) + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-7553
SELECT + + ( + - ( - CASE - 45 WHEN + + ( + CASE - 17 WHEN 1 THEN AVG ( - 10 ) WHEN + 85 THEN NULL ELSE - 44 + 74 END ) THEN - 8 / ( - 15 ) * - 88 + - + 97 * 73 * - - 86 + - 20 * - - COUNT ( * ) * - ( - - 92 ) / + 78 + + 38 END ) ) + 86
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 55
----
-55

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7558
SELECT ALL 82 + + ( - - MIN( - + 55 ) ), 57 AS col0
----
27
57

skipif mysql # not compatible
query II rowsort label-7558
SELECT ALL 82 + + ( - - MIN ( - + 55 ) ), 57 AS col0
----
27
57

query I rowsort
SELECT DISTINCT + 33 + 46
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT ALL + ( ( + COALESCE ( + 89, - 23 * + - 5 + NULLIF ( - - 57, + 13 ) * + 67 * + 12, - COUNT( * ) - 80 + + SUM( - ( + 67 ) ) ) ) ) + - 67 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL + ( ( + COALESCE ( + 89, - 23 * + - 5 + NULLIF ( - - 57, + 13 ) * + 67 * + 12, - COUNT ( * ) - 80 + + SUM ( - ( + 67 ) ) ) ) ) + - 67 AS col1
----
22

query I rowsort
SELECT ALL NULLIF ( + 5, ( + 28 ) ) + ( + CASE 35 WHEN 59 / + 12 * + 81 THEN + 56 ELSE + 46 END )
----
51

query I rowsort
SELECT + 93
----
93

query I rowsort
SELECT - 97 + - ( - 32 ) + - - 96
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT + COUNT( * ) + - + COALESCE ( 88, 86 ) * 93 * + - ( - 84 )
----
-687455

skipif mysql # not compatible
query I rowsort label-7564
SELECT + COUNT ( * ) + - + COALESCE ( 88, 86 ) * 93 * + - ( - 84 )
----
-687455

query I rowsort
SELECT - 74 + + 73 * + 76 * + + 39
----
216298

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT ALL + COALESCE ( + + 94, + 84 ) + COUNT( * ) * + + 6 * 67 * - 63
----
-25232

skipif mysql # not compatible
query I rowsort label-7566
SELECT ALL + COALESCE ( + + 94, + 84 ) + COUNT ( * ) * + + 6 * 67 * - 63
----
-25232

query II rowsort
SELECT - 91 - - - 13 * + 99 AS col1, - 40 AS col0
----
-1378
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT ALL SUM( DISTINCT + + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL SUM ( DISTINCT + + 4 )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7569
SELECT - 80 DIV - 99 + - COALESCE ( - 95, + 94, + 18 ) + + - 74 - + SUM( DISTINCT 39 ) + 73 * + 29 * + 36 + + 54 - - 43 AS col1
----
76291

skipif mysql # not compatible
query I rowsort label-7569
SELECT - 80 / - 99 + - COALESCE ( - 95, + 94, + 18 ) + + - 74 - + SUM ( DISTINCT 39 ) + 73 * + 29 * + 36 + + 54 - - 43 AS col1
----
76291

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT ALL + SUM( ALL - 59 ) col0
----
-59

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL + SUM ( ALL - 59 ) col0
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7571
SELECT ALL - 99 * + + 90 - + 61 DIV + 96 * 68 + + SUM( ALL 82 ) + + 63 AS col2
----
-8765

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL - 99 * + + 90 - + 61 / + 96 * 68 + + SUM ( ALL 82 ) + + 63 AS col2
----
-8765

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7574
SELECT DISTINCT + 55 * + 38 - 37 + + + 1 + - CASE 69 WHEN COALESCE ( - - 95, + 40, - CAST( + 76 AS SIGNED ) ) THEN NULL WHEN + CAST( + + NULLIF ( + 18, AVG ( DISTINCT + + 44 ) + - 34 ) AS SIGNED ) - + 53 + + 17 THEN + CASE - 28 WHEN ( 1 ) * - - 33 THEN + 28 + 62 * + 97 ELSE 89 END + SUM( DISTINCT - ( + 89 ) ) ELSE NULL END / - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT + 55 * + 38 - 37 + + + 1 + - CASE 69 WHEN COALESCE ( - - 95, + 40, - CAST ( + 76 AS INTEGER ) ) THEN NULL WHEN + CAST ( + + NULLIF ( + 18, AVG ( DISTINCT + + 44 ) + - 34 ) AS INTEGER ) - + 53 + + 17 THEN + CASE - 28 WHEN ( 1 ) * - - 33 THEN + 28 + 62 * + 97 ELSE 89 END + SUM ( DISTINCT - ( + 89 ) ) ELSE NULL END / - 62
----
NULL

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

query I rowsort
SELECT 36 * - 99 + + ( + 88 ) + + 71 * - 41 - 30
----
-6417

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT ALL + CASE - - 5 WHEN - - 64 THEN - + 57 WHEN + + COUNT( * ) THEN + 42 + 76 WHEN - 10 THEN NULL ELSE + 26 END AS col2
----
26

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL + CASE - - 5 WHEN - - 64 THEN - + 57 WHEN + + COUNT ( * ) THEN + 42 + 76 WHEN - 10 THEN NULL ELSE + 26 END AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT COALESCE ( COUNT( * ), - ( + 97 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7578
SELECT COALESCE ( COUNT ( * ), - ( + 97 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7579
SELECT COALESCE ( - - 43, NULLIF ( - 6, + CAST( NULL AS DECIMAL ) ) + - CASE 26 WHEN - + 64 THEN 95 WHEN COUNT( * ) THEN - 44 WHEN + 36 THEN NULL WHEN + 15 * - 45 + 57 THEN 77 * - 36 + ( - 37 ) END, 24 )
----
43

skipif mysql # not compatible
query I rowsort label-7579
SELECT COALESCE ( - - 43, NULLIF ( - 6, + CAST ( NULL AS REAL ) ) + - CASE 26 WHEN - + 64 THEN 95 WHEN COUNT ( * ) THEN - 44 WHEN + 36 THEN NULL WHEN + 15 * - 45 + 57 THEN 77 * - 36 + ( - 37 ) END, 24 )
----
43

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

skipif mysql # not compatible
query I rowsort label-7580
SELECT + MIN ( - 16 )
----
-16

query I rowsort
SELECT DISTINCT + ( + 61 ) AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7582
SELECT ALL - ( + + CASE 49 WHEN - ( 77 ) + + + 34 THEN NULL ELSE + - 2 * - 34 END ) * CASE - COUNT( ALL + + 82 ) WHEN - - CAST( NULL AS SIGNED ) THEN NULL ELSE COALESCE ( - 92, + 42, - 92 DIV 42 DIV COUNT( * ) DIV - 44 ) END
----
6256

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL - ( + + CASE 49 WHEN - ( 77 ) + + + 34 THEN NULL ELSE + - 2 * - 34 END ) * CASE - COUNT ( ALL + + 82 ) WHEN - - CAST ( NULL AS INTEGER ) THEN NULL ELSE COALESCE ( - 92, + 42, - 92 / 42 / COUNT ( * ) / - 44 ) END
----
6256

query I rowsort
SELECT + 78 * + 42 AS col0
----
3276

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

skipif mysql # not compatible
query I rowsort label-7584
SELECT + SUM ( - 26 )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7585
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, 25
----
NULL
25

skipif mysql # not compatible
query II rowsort label-7585
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, 25
----
NULL
25

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

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

query I rowsort
SELECT DISTINCT - 82 * - - 68
----
-5576

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

query I rowsort
SELECT - 67 * 58 * 39 + + 77
----
-151477

query I rowsort
SELECT DISTINCT - 80 * + ( 68 ) AS col0
----
-5440

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

query II rowsort
SELECT + + 26 AS col2, 49 * - 6
----
26
-294

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7594
SELECT - + 42 DIV + 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7594
SELECT - + 42 / + 47 AS col0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7596
SELECT ALL + 1 * + - 61 * + CAST( + 66 AS SIGNED ) + + 0 + + 62 + COUNT( DISTINCT 19 ) AS col2
----
-3963

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL + 1 * + - 61 * + CAST ( + 66 AS INTEGER ) + + 0 + + 62 + COUNT ( DISTINCT 19 ) AS col2
----
-3963

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT - + 92 - + - 89 + - + 90 * - 70 * + + 12 * COUNT( * )
----
75597

skipif mysql # not compatible
query I rowsort label-7597
SELECT - + 92 - + - 89 + - + 90 * - 70 * + + 12 * COUNT ( * )
----
75597

onlyif mysql # DIV for integer division: 
query I rowsort label-7598
SELECT - 69 DIV + - 95
----
0

skipif mysql # not compatible
query I rowsort label-7598
SELECT - 69 / + - 95
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7599
SELECT COUNT( * ) * 49 - + 26 - + - ( - 95 ) DIV - + NULLIF ( 37, - 39 * - 18 + + 22 + + - MAX( ALL 24 ) + + COUNT( * ) - + - 73 DIV - 71 * - - 76 * + 73 * - 38 - NULLIF ( 28, SUM( DISTINCT + - 95 ) * + + 93 * + ( - + CAST( + ( 1 ) AS SIGNED ) ) ) - 75 * + 73 )
----
25

skipif mysql # not compatible
query I rowsort label-7599
SELECT COUNT ( * ) * 49 - + 26 - + - ( - 95 ) / - + NULLIF ( 37, - 39 * - 18 + + 22 + + - MAX ( ALL 24 ) + + COUNT ( * ) - + - 73 / - 71 * - - 76 * + 73 * - 38 - NULLIF ( 28, SUM ( DISTINCT + - 95 ) * + + 93 * + ( - + CAST ( + ( 1 ) AS INTEGER ) ) ) - 75 * + 73 )
----
25

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7601
SELECT DISTINCT + - 40 DIV + 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT + - 40 / + 44 AS col0
----
0

query I rowsort
SELECT ALL - - CASE - 14 WHEN 29 THEN - + 78 WHEN - 32 THEN - 81 END + - 59 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7603
SELECT DISTINCT - 73 * 11 + NULLIF ( + - ( + 98 ), - 72 * CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * - COALESCE ( COUNT( * ), - 40 + + 82 ) / - 54 + + ( 79 ) + + - 86 + + COUNT( * ) ) col2
----
-901

skipif mysql # not compatible
query I rowsort label-7603
SELECT DISTINCT - 73 * 11 + NULLIF ( + - ( + 98 ), - 72 * CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * - COALESCE ( COUNT ( * ), - 40 + + 82 ) / - 54 + + ( 79 ) + + - 86 + + COUNT ( * ) ) col2
----
-901

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

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

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

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

query I rowsort
SELECT + - 35 * + 58 + + + 64 AS col0
----
-1966

query I rowsort
SELECT - - 8 AS col0
----
8

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

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

query I rowsort
SELECT - - 97
----
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT + SUM( + - 85 ) * + NULLIF ( + 36, + 99 )
----
-3060

skipif mysql # not compatible
query I rowsort label-7612
SELECT + SUM ( + - 85 ) * + NULLIF ( + 36, + 99 )
----
-3060

onlyif mysql # aggregate syntax: 
query II rowsort label-7613
SELECT 99 AS col2, ( - COUNT( * ) ) * SUM( 45 ) AS col1
----
99
-45

skipif mysql # not compatible
query II rowsort label-7613
SELECT 99 AS col2, ( - COUNT ( * ) ) * SUM ( 45 ) AS col1
----
99
-45

query I rowsort
SELECT 70 AS col0
----
70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT ALL SUM( + 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL SUM ( + 72 ) AS col1
----
72

query I rowsort
SELECT - ( 29 ) col2
----
-29

query II rowsort
SELECT DISTINCT 9 AS col2, + 30 - 34
----
9
-4

query I rowsort
SELECT ALL + 40 * + 59 AS col2
----
2360

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7621
SELECT 68 DIV - 35 + + 10
----
9

skipif mysql # not compatible
query I rowsort label-7621
SELECT 68 / - 35 + + 10
----
9

query I rowsort
SELECT + 72 + + 67 AS col2
----
139

query I rowsort
SELECT 41 * 57 + - + 41 + - - 62 AS col2
----
2358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7624
SELECT CAST( NULL AS SIGNED ) AS col1, 12 AS col1, 80 + COALESCE ( - + MAX( 2 ), + 50 )
----
NULL
12
78

skipif mysql # not compatible
query III rowsort label-7624
SELECT CAST ( NULL AS INTEGER ) AS col1, 12 AS col1, 80 + COALESCE ( - + MAX ( 2 ), + 50 )
----
NULL
12
78

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7627
SELECT DISTINCT 71 * + ( + ( - + 60 ) ) AS col2, + COUNT( * ) * + - 64
----
-4260
-64

skipif mysql # not compatible
query II rowsort label-7627
SELECT DISTINCT 71 * + ( + ( - + 60 ) ) AS col2, + COUNT ( * ) * + - 64
----
-4260
-64

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7629
SELECT - COALESCE ( - 19, - - 26 * - ( + - AVG ( DISTINCT + + 4 ) ) ) DIV - - 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7629
SELECT - COALESCE ( - 19, - - 26 * - ( + - AVG ( DISTINCT + + 4 ) ) ) / - - 74 AS col1
----
0

query I rowsort
SELECT - 1 * + 64 AS col1
----
-64

query I rowsort
SELECT DISTINCT + CASE - + 23 WHEN 78 * - - 25 THEN + COALESCE ( - 65, + 11 + + 47 * - 17 * - + 73 ) ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT 94 + + 55 + 8 * 34 + 23 col0
----
444

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT MAX( 27 ) * + 78 AS col1
----
2106

skipif mysql # not compatible
query I rowsort label-7634
SELECT MAX ( 27 ) * + 78 AS col1
----
2106

query II rowsort
SELECT + 8 AS col1, ( - - 99 )
----
8
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7636
SELECT 32 * - - 9 - COUNT( * ) / - CAST( NULL AS SIGNED ) * COALESCE ( + COUNT( * ), - COUNT( * ), - 72 ) + - - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-7636
SELECT 32 * - - 9 - COUNT ( * ) / - CAST ( NULL AS INTEGER ) * COALESCE ( + COUNT ( * ), - COUNT ( * ), - 72 ) + - - 43
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7637
SELECT ALL - 27 + - + 6 + - - 21 + + CAST( NULL AS DECIMAL ) * + COUNT( * ) / - 19, + 67 col2
----
NULL
67

skipif mysql # not compatible
query II rowsort label-7637
SELECT ALL - 27 + - + 6 + - - 21 + + CAST ( NULL AS REAL ) * + COUNT ( * ) / - 19, + 67 col2
----
NULL
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT CASE - 19 WHEN - 94 THEN NULL WHEN + + 58 * + 50 + 97 THEN NULL WHEN - + 42 THEN 72 + + 16 - + 57 * + 88 * - 80 - + 45 / 49 END + + + 36 * SUM( 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7638
SELECT CASE - 19 WHEN - 94 THEN NULL WHEN + + 58 * + 50 + 97 THEN NULL WHEN - + 42 THEN 72 + + 16 - + 57 * + 88 * - 80 - + 45 / 49 END + + + 36 * SUM ( 76 )
----
NULL

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

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

query I rowsort
SELECT - 58 + + 12 * - 95
----
-1198

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT 64 - - - NULLIF ( 39, + MAX( DISTINCT + 41 ) + - - 0 + - 74 + + - CASE - 32 WHEN - + 82 THEN - 53 END ) + + + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-7641
SELECT 64 - - - NULLIF ( 39, + MAX ( DISTINCT + 41 ) + - - 0 + - 74 + + - CASE - 32 WHEN - + 82 THEN - 53 END ) + + + COUNT ( * )
----
26

query I rowsort
SELECT ALL + 36 * + 38
----
1368

query II rowsort
SELECT DISTINCT - 77 + + 87 AS col0, 34 * 58 + 29
----
10
2001

query I rowsort
SELECT ALL - - 75 + + 44 + - 22 + + + 42 col0
----
139

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

query I rowsort
SELECT ALL - 44 + 94 - + 16 * - CASE 64 WHEN 77 THEN + + 81 WHEN - 74 THEN NULL END * + 85 + 9
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7647
SELECT ALL 24 + + - 41 DIV 6 * 49 + - 87 * 1 col2, MAX( ALL + 27 )
----
-357
27

skipif mysql # not compatible
query II rowsort label-7647
SELECT ALL 24 + + - 41 / 6 * 49 + - 87 * 1 col2, MAX ( ALL + 27 )
----
-357
27

query I rowsort
SELECT 43 * + 28 - - 21 AS col2
----
1225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7649
SELECT + CAST( NULL AS SIGNED ) + - + 9 + - 61 * - 92 * COUNT( * ) * + 27 * + 15 AS col0, + CAST( COALESCE ( + + 41, 7 + + + 37 + - SUM( - + COALESCE ( + 31, 57 ) ) ) AS SIGNED ) AS col1
----
NULL
41

skipif mysql # not compatible
query II rowsort label-7649
SELECT + CAST ( NULL AS INTEGER ) + - + 9 + - 61 * - 92 * COUNT ( * ) * + 27 * + 15 AS col0, + CAST ( COALESCE ( + + 41, 7 + + + 37 + - SUM ( - + COALESCE ( + 31, 57 ) ) ) AS INTEGER ) AS col1
----
NULL
41

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT - MAX( DISTINCT - + 81 ) + - - 61
----
142

skipif mysql # not compatible
query I rowsort label-7652
SELECT - MAX ( DISTINCT - + 81 ) + - - 61
----
142

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

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

query I rowsort
SELECT NULLIF ( + - 95, - - 97 ) + + 58
----
-37

query I rowsort
SELECT DISTINCT - 17 - 68 + - ( - 74 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT ALL COALESCE ( + 34, + 30 * - 59 - - 24 + + + 1 ) * COUNT( - 25 ) + - + 20 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL COALESCE ( + 34, + 30 * - 59 - - 24 + + + 1 ) * COUNT ( - 25 ) + - + 20 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT COUNT( * ) + + CASE 94 WHEN - 57 * 1 THEN NULL WHEN + 99 THEN + COUNT( * ) * - 50 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7657
SELECT COUNT ( * ) + + CASE 94 WHEN - 57 * 1 THEN NULL WHEN + 99 THEN + COUNT ( * ) * - 50 ELSE NULL END col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7659
SELECT 37 + - + CAST( + SUM( + 4 ) AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-7659
SELECT 37 + - + CAST ( + SUM ( + 4 ) AS INTEGER )
----
33

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7661
SELECT COALESCE ( - 23, - 41 ) + + MIN( DISTINCT - 39 ) + + 19 + - 13, + 10 + + MIN( 46 ) + + - 92 AS col0
----
-56
-36

skipif mysql # not compatible
query II rowsort label-7661
SELECT COALESCE ( - 23, - 41 ) + + MIN ( DISTINCT - 39 ) + + 19 + - 13, + 10 + + MIN ( 46 ) + + - 92 AS col0
----
-56
-36

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7665
SELECT + COUNT( * ) * 76 * - 30 + + COALESCE ( 66, 67 * - COALESCE ( - ( CASE - + 61 WHEN - 65 * 22 * - - 8 THEN NULL WHEN + - ( + 33 ) + 40 THEN + 74 ELSE + 41 * + NULLIF ( + 58, - ( + - 92 ) * + - 73 * - 55 + - - 12 + + - CAST( NULL AS SIGNED ) * + + 96 ) END ), - 87 ), - COUNT( DISTINCT 61 ) * 55, 19 - + 81 ) + - COALESCE ( COUNT( * ), CAST( NULL AS SIGNED ) + - 99 ) * 91 AS col2
----
-2305

skipif mysql # not compatible
query I rowsort label-7665
SELECT + COUNT ( * ) * 76 * - 30 + + COALESCE ( 66, 67 * - COALESCE ( - ( CASE - + 61 WHEN - 65 * 22 * - - 8 THEN NULL WHEN + - ( + 33 ) + 40 THEN + 74 ELSE + 41 * + NULLIF ( + 58, - ( + - 92 ) * + - 73 * - 55 + - - 12 + + - CAST ( NULL AS INTEGER ) * + + 96 ) END ), - 87 ), - COUNT ( DISTINCT 61 ) * 55, 19 - + 81 ) + - COALESCE ( COUNT ( * ), CAST ( NULL AS INTEGER ) + - 99 ) * 91 AS col2
----
-2305

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

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

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

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

query I rowsort
SELECT ( - 64 ) * + + 40
----
-2560

onlyif mysql # DIV for integer division: 
query I rowsort label-7671
SELECT + 83 * 47 DIV - 38 + 64 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7671
SELECT + 83 * 47 / - 38 + 64 AS col2
----
-38

query I rowsort
SELECT ALL - 97
----
-97

query I rowsort
SELECT ALL - 0 col1
----
0

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

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

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

query I rowsort
SELECT + - 43
----
-43

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

query I rowsort
SELECT 89 * + 60
----
5340

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7683
SELECT ALL - + 40 + COUNT( 29 ) DIV - 88
----
-40

skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL - + 40 + COUNT ( 29 ) / - 88
----
-40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT COUNT( + - 3 ) * - - 60 * + ( - + ( 60 ) ) col2
----
-3600

skipif mysql # not compatible
query I rowsort label-7685
SELECT COUNT ( + - 3 ) * - - 60 * + ( - + ( 60 ) ) col2
----
-3600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7686
SELECT - - 63 * + NULLIF ( 3, 34 * - COUNT( * ) + + COUNT( DISTINCT + - 33 ) + + 10 ) + + - COUNT( * ) / 50 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7686
SELECT - - 63 * + NULLIF ( 3, 34 * - COUNT ( * ) + + COUNT ( DISTINCT + - 33 ) + + 10 ) + + - COUNT ( * ) / 50 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT ALL - - COUNT( * ) - - 37 * - + 50 * - 62 AS col1
----
114701

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL - - COUNT ( * ) - - 37 * - + 50 * - 62 AS col1
----
114701

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

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

query I rowsort
SELECT 37 - + 89 * 99 AS col2
----
-8774

query I rowsort
SELECT 81 * 5
----
405

query II rowsort
SELECT ALL + - ( 27 ) * 57 AS col1, 3
----
-1539
3

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

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

query I rowsort
SELECT - NULLIF ( - + 83, - ( 17 ) + - 18 ) AS col1
----
83

query I rowsort
SELECT ALL + 85 * - 35
----
-2975

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

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

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

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

query II rowsort
SELECT DISTINCT 97 AS col1, + 85 * + + 69 AS col1
----
97
5865

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT 11 * - NULLIF ( + 45, + SUM( + 87 ) )
----
-495

skipif mysql # not compatible
query I rowsort label-7700
SELECT 11 * - NULLIF ( + 45, + SUM ( + 87 ) )
----
-495

query I rowsort
SELECT 46 * + 89 AS col0
----
4094

query I rowsort
SELECT 17 - - 30 + + + 25 AS col0
----
72

query I rowsort
SELECT 19 AS col1
----
19

query I rowsort
SELECT - 59 AS col0
----
-59

query I rowsort
SELECT 30 + + 96
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-7706
SELECT 65 DIV + 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7706
SELECT 65 / + 91 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7707
SELECT ALL - 13 DIV + MAX( + + 38 ) AS col0, ( COUNT( * ) ) + + - ( + 0 )
----
0
1

skipif mysql # not compatible
query II rowsort label-7707
SELECT ALL - 13 / + MAX ( + + 38 ) AS col0, ( COUNT ( * ) ) + + - ( + 0 )
----
0
1

query I rowsort
SELECT 36 * + 70
----
2520

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

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

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

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

query I rowsort
SELECT + 19 * 39
----
741

query I rowsort
SELECT 56 col2
----
56

query I rowsort
SELECT DISTINCT - 96 + - + 27
----
-123

query I rowsort
SELECT - 65 + - - 22 + - 53 + 48 + 79 AS col2
----
31

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7716
SELECT NULLIF ( - + 94, 97 * 81 ) DIV + COALESCE ( + 71, + 29 ) + + 36 + - CASE WHEN NULL IS NULL THEN 43 END AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-7716
SELECT NULLIF ( - + 94, 97 * 81 ) / + COALESCE ( + 71, + 29 ) + + 36 + - CASE WHEN NULL IS NULL THEN 43 END AS col2
----
-8

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

query II rowsort
SELECT + 37, 24 col1
----
37
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7719
SELECT + + NULLIF ( - 21, - - 67 ) DIV + + MAX( DISTINCT 11 ) - - 16 AS col2, 1 col2
----
15
1

skipif mysql # not compatible
query II rowsort label-7719
SELECT + + NULLIF ( - 21, - - 67 ) / + + MAX ( DISTINCT 11 ) - - 16 AS col2, 1 col2
----
15
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT 5 * + 63 + - MAX( 82 )
----
233

skipif mysql # not compatible
query I rowsort label-7722
SELECT 5 * + 63 + - MAX ( 82 )
----
233

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

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

query II rowsort
SELECT ALL - - NULLIF ( 72, + - 38 * - + 22 ) * + - 81 + + - 37, + 36 AS col0
----
-5869
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT + COUNT( * ) * + 74 - COUNT( * ) * - 48
----
122

skipif mysql # not compatible
query I rowsort label-7725
SELECT + COUNT ( * ) * + 74 - COUNT ( * ) * - 48
----
122

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT DISTINCT - 59 * 97 - - + COALESCE ( - - 39, + 12, - 81 ) + + COUNT( * ) - ( - + ( - 8 ) ) + + 33 * - - 98
----
-2457

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT - 59 * 97 - - + COALESCE ( - - 39, + 12, - 81 ) + + COUNT ( * ) - ( - + ( - 8 ) ) + + 33 * - - 98
----
-2457

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT SUM( + + NULLIF ( + 74, + + COALESCE ( - - 20, + 99 ) * - 21 + 13 ) )
----
74

skipif mysql # not compatible
query I rowsort label-7729
SELECT SUM ( + + NULLIF ( + 74, + + COALESCE ( - - 20, + 99 ) * - 21 + 13 ) )
----
74

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

query I rowsort
SELECT - - 98 * + 80 + + 63 + - 99 * + + 46
----
3349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7732
SELECT ALL - CAST( 64 AS SIGNED ) * - CAST( - + 4 AS SIGNED ) AS col1
----
-256

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL - CAST ( 64 AS INTEGER ) * - CAST ( - + 4 AS INTEGER ) AS col1
----
-256

query I rowsort
SELECT + + 87 * + - 30 AS col0
----
-2610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7734
SELECT + + COUNT( * ) + - NULLIF ( + 45, - 44 + + CASE CAST( + 79 AS SIGNED ) WHEN - 19 THEN 36 ELSE NULL END )
----
-44

skipif mysql # not compatible
query I rowsort label-7734
SELECT + + COUNT ( * ) + - NULLIF ( + 45, - 44 + + CASE CAST ( + 79 AS INTEGER ) WHEN - 19 THEN 36 ELSE NULL END )
----
-44

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

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

query II rowsort
SELECT 95, + ( - 46 ) AS col1
----
95
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-7737
SELECT + 79 DIV - 65 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7737
SELECT + 79 / - 65 AS col1
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT ALL CASE - - MIN( ( - ( - 32 ) ) ) WHEN - - 13 * - 46 * - COUNT( ALL + + 40 ) + 10 * ( - ( - - CASE + 34 WHEN - 42 * + 41 * - 65 THEN NULL WHEN - 43 * - 67 + 16 THEN + CASE - - ( - + 80 ) WHEN MIN( ALL - + 13 ) THEN + 15 * MAX( DISTINCT - - 38 ) - + 66 ELSE NULL END END ) ) THEN 32 + + 10 WHEN SUM( - 96 ) THEN NULL ELSE 50 * - ( 89 ) END AS col1
----
-4450

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL CASE - - MIN ( ( - ( - 32 ) ) ) WHEN - - 13 * - 46 * - COUNT ( ALL + + 40 ) + 10 * ( - ( - - CASE + 34 WHEN - 42 * + 41 * - 65 THEN NULL WHEN - 43 * - 67 + 16 THEN + CASE - - ( - + 80 ) WHEN MIN ( ALL - + 13 ) THEN + 15 * MAX ( DISTINCT - - 38 ) - + 66 ELSE NULL END END ) ) THEN 32 + + 10 WHEN SUM ( - 96 ) THEN NULL ELSE 50 * - ( 89 ) END AS col1
----
-4450

query I rowsort
SELECT - NULLIF ( - 1, + - 40 ) AS col2
----
1

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

query I rowsort
SELECT + 73 + + + 4 + - 64 AS col0
----
13

query I rowsort
SELECT 96 AS col1
----
96

query II rowsort
SELECT - 25 * + + COALESCE ( + - 37, - 56, + 61 * NULLIF ( - - 96, 3 ) + 22 + + + 42 * - 88 ) * - 77 AS col2, 61 * - 16 + - 58
----
-71225
-1034

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7746
SELECT DISTINCT - NULLIF ( + 73, + 62 ) * - 48 AS col0, COALESCE ( + 3, - COALESCE ( CAST( - + 30 AS SIGNED ), - 40 ) )
----
3504
3

skipif mysql # not compatible
query II rowsort label-7746
SELECT DISTINCT - NULLIF ( + 73, + 62 ) * - 48 AS col0, COALESCE ( + 3, - COALESCE ( CAST ( - + 30 AS INTEGER ), - 40 ) )
----
3504
3

query I rowsort
SELECT ALL + 82 + + + 38 AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT - NULLIF ( ( NULLIF ( 23, - - 35 + + 24 + 51 ) ), 18 ) + - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-7748
SELECT - NULLIF ( ( NULLIF ( 23, - - 35 + + 24 + 51 ) ), 18 ) + - COUNT ( * )
----
-24

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7751
SELECT ALL - 10 + + COALESCE ( + COUNT( * ), + 32 + - ( - COUNT( * ) ) + + 85 DIV + - 38 * - + 73 DIV - 96 + + - ( - 89 ) + 95 )
----
-9

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL - 10 + + COALESCE ( + COUNT ( * ), + 32 + - ( - COUNT ( * ) ) + + 85 / + - 38 * - + 73 / - 96 + + - ( - 89 ) + 95 )
----
-9

query I rowsort
SELECT - ( 24 ) + + 0 AS col1
----
-24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT - + 34 * - + MIN( ALL - NULLIF ( + 8, + - 64 ) ) col1
----
-272

skipif mysql # not compatible
query I rowsort label-7755
SELECT - + 34 * - + MIN ( ALL - NULLIF ( + 8, + - 64 ) ) col1
----
-272

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7756
SELECT ALL + 63 DIV CAST( 72 AS SIGNED ) + 7
----
7

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL + 63 / CAST ( 72 AS INTEGER ) + 7
----
7

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

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

query I rowsort
SELECT - 16 AS col1
----
-16

query I rowsort
SELECT - 33 * 8
----
-264

onlyif mysql # DIV for integer division: 
query I rowsort label-7760
SELECT ALL - - 31 DIV - 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL - - 31 / - 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT ALL - MAX( 76 ) * + 84 + 56 * + 18
----
-5376

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL - MAX ( 76 ) * + 84 + 56 * + 18
----
-5376

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

query I rowsort
SELECT - + 82 * 11
----
-902

query I rowsort
SELECT + + 77 * 30 + + 45 AS col1
----
2355

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

query I rowsort
SELECT + - ( + 44 ) * 63
----
-2772

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

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

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

query II rowsort
SELECT ( + 63 ) AS col1, 93 AS col0
----
63
93

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

query I rowsort
SELECT ALL + - 37
----
-37

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

query I rowsort
SELECT ALL + 80 * + 88 AS col2
----
7040

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7775
SELECT + + ( + - NULLIF ( 12, - 83 * + CASE - 21 WHEN + + 35 * 51 THEN NULL WHEN + - 96 THEN - AVG ( - + 59 ) * + - 56 / - 73 END ) ) + + 40 col0, - 40 + - + CAST( NULL AS SIGNED ) * 96 / - 67 * + ( + 33 ) * + - 41 * 10 - - 66 - + + 41 + - - 65
----
28
NULL

skipif mysql # not compatible
query II rowsort label-7775
SELECT + + ( + - NULLIF ( 12, - 83 * + CASE - 21 WHEN + + 35 * 51 THEN NULL WHEN + - 96 THEN - AVG ( - + 59 ) * + - 56 / - 73 END ) ) + + 40 col0, - 40 + - + CAST ( NULL AS INTEGER ) * 96 / - 67 * + ( + 33 ) * + - 41 * 10 - - 66 - + + 41 + - - 65
----
28
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT COALESCE ( - - 59, SUM( - 18 ) + + ( - - 21 ) ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-7778
SELECT COALESCE ( - - 59, SUM ( - 18 ) + + ( - - 21 ) ) AS col0
----
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT CASE + COUNT( * ) WHEN - 38 THEN - 70 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7780
SELECT CASE + COUNT ( * ) WHEN - 38 THEN - 70 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7781
SELECT + 62 DIV + - 21 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7781
SELECT + 62 / + - 21 AS col2
----
-2

query I rowsort
SELECT + 73 * - - 81 AS col1
----
5913

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7783
SELECT - 78 * - NULLIF ( - ( 19 ), - MAX( DISTINCT + 94 ) ) + - - 47 + + 34 DIV - 52 * + 67 + 45 * + 95 AS col1
----
2840

skipif mysql # not compatible
query I rowsort label-7783
SELECT - 78 * - NULLIF ( - ( 19 ), - MAX ( DISTINCT + 94 ) ) + - - 47 + + 34 / - 52 * + 67 + 45 * + 95 AS col1
----
2840

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT - ( - NULLIF ( - COUNT( DISTINCT - 93 ), 41 + ( - 41 ) ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7784
SELECT - ( - NULLIF ( - COUNT ( DISTINCT - 93 ), 41 + ( - 41 ) ) ) col0
----
-1

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

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

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

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

query I rowsort
SELECT DISTINCT 6 col1
----
6

query I rowsort
SELECT ALL - 23 + 35 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT ALL 8 * - COUNT( * ) * 42 AS col2
----
-336

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL 8 * - COUNT ( * ) * 42 AS col2
----
-336

query I rowsort
SELECT ( 88 ) * - 53
----
-4664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7791
SELECT ALL + MIN( - 85 ) DIV COALESCE ( 38, - COUNT( * ), - CAST( - - 55 AS SIGNED ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL + MIN ( - 85 ) / COALESCE ( 38, - COUNT ( * ), - CAST ( - - 55 AS INTEGER ) ) AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7792
SELECT 71 DIV - + 85
----
0

skipif mysql # not compatible
query I rowsort label-7792
SELECT 71 / - + 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT ALL 1 + + - COUNT( + ( + - 71 ) ) + - - SUM( DISTINCT + 5 ) + + COUNT( * ) * - - 65
----
70

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL 1 + + - COUNT ( + ( + - 71 ) ) + - - SUM ( DISTINCT + 5 ) + + COUNT ( * ) * - - 65
----
70

query I rowsort
SELECT 52 - - 10 * 47 AS col1
----
522

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

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

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

skipif mysql # not compatible
query I rowsort label-7797
SELECT DISTINCT - SUM ( - 68 )
----
68

query I rowsort
SELECT + 18 - - - 52
----
-34

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7800
SELECT ALL 92 * COUNT( 10 ), + 47 + + + 84 AS col0
----
92
131

skipif mysql # not compatible
query II rowsort label-7800
SELECT ALL 92 * COUNT ( 10 ), + 47 + + + 84 AS col0
----
92
131

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

query I rowsort
SELECT ALL - 17 - 95
----
-112

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT - MAX( 19 ) * + MIN( DISTINCT - 47 ) * + 56 + COUNT( * ) + - 46 AS col0
----
49963

skipif mysql # not compatible
query I rowsort label-7804
SELECT - MAX ( 19 ) * + MIN ( DISTINCT - 47 ) * + 56 + COUNT ( * ) + - 46 AS col0
----
49963

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

query I rowsort
SELECT - 11 + 93
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7807
SELECT ( 2 ) DIV + 53 + + 7 + + COUNT( 32 ) - + 15 DIV - 75 + + 56 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-7807
SELECT ( 2 ) / + 53 + + 7 + + COUNT ( 32 ) - + 15 / - 75 + + 56 AS col2
----
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7808
SELECT + 34 DIV - + 91 * - CAST( - 19 AS SIGNED ) + - + 65 + + - 63 * - 59 AS col0
----
3652

skipif mysql # not compatible
query I rowsort label-7808
SELECT + 34 / - + 91 * - CAST ( - 19 AS INTEGER ) + - + 65 + + - 63 * - 59 AS col0
----
3652

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

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

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

query II rowsort
SELECT DISTINCT - - 26 AS col1, 64
----
26
64

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7814
SELECT ALL COUNT( * ) + + 12 + + 70 DIV + 21 - + 63
----
-47

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL COUNT ( * ) + + 12 + + 70 / + 21 - + 63
----
-47

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7818
SELECT MAX( 68 ) - + + COUNT( * ) + 91 * + 6 + + 68 + + - ( - + 2 ) DIV + 32 AS col2
----
681

skipif mysql # not compatible
query I rowsort label-7818
SELECT MAX ( 68 ) - + + COUNT ( * ) + 91 * + 6 + + 68 + + - ( - + 2 ) / + 32 AS col2
----
681

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7819
SELECT DISTINCT + 9 + 27 + + + CASE - COUNT( * ) WHEN 86 THEN NULL ELSE + COUNT( * ) * - 90 + + + 31 DIV - 38 END DIV + - 69 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-7819
SELECT DISTINCT + 9 + 27 + + + CASE - COUNT ( * ) WHEN 86 THEN NULL ELSE + COUNT ( * ) * - 90 + + + 31 / - 38 END / + - 69 AS col1
----
37

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7821
SELECT CASE - - 52 WHEN - + 8 * - + ( ( + 46 ) ) / 23 + - 43 THEN 53 WHEN - 31 * - 36 + 1 THEN NULL WHEN 39 THEN NULL END + + - 74 AS col0, - COUNT( ALL 21 )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-7821
SELECT CASE - - 52 WHEN - + 8 * - + ( ( + 46 ) ) / 23 + - 43 THEN 53 WHEN - 31 * - 36 + 1 THEN NULL WHEN 39 THEN NULL END + + - 74 AS col0, - COUNT ( ALL 21 )
----
NULL
-1

query I rowsort
SELECT 78 col0
----
78

onlyif mysql # DIV for integer division: 
query II rowsort label-7823
SELECT - 20 AS col2, + 33 * - + 28 - + 40 DIV + 61
----
-20
-924

skipif mysql # not compatible
query II rowsort label-7823
SELECT - 20 AS col2, + 33 * - + 28 - + 40 / + 61
----
-20
-924

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7825
SELECT 61 + COALESCE ( - 37, - 25 ) + COUNT( * ) * - 37 * - 78 + - COUNT( * ) + + + 62 - - 75 + + COUNT( * ) DIV + COUNT( * )
----
3047

skipif mysql # not compatible
query I rowsort label-7825
SELECT 61 + COALESCE ( - 37, - 25 ) + COUNT ( * ) * - 37 * - 78 + - COUNT ( * ) + + + 62 - - 75 + + COUNT ( * ) / + COUNT ( * )
----
3047

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT DISTINCT 59 * + SUM( ALL - 11 ) * 63
----
-40887

skipif mysql # not compatible
query I rowsort label-7827
SELECT DISTINCT 59 * + SUM ( ALL - 11 ) * 63
----
-40887

query I rowsort
SELECT 87 + + 94
----
181

query I rowsort
SELECT ALL 85 - - 47 AS col2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT ( - COUNT( * ) ) + - 96
----
-97

skipif mysql # not compatible
query I rowsort label-7830
SELECT ( - COUNT ( * ) ) + - 96
----
-97

query I rowsort
SELECT 19 * - 93 AS col0
----
-1767

query I rowsort
SELECT + 73 * - - 49 + + 56 AS col1
----
3633

query II rowsort
SELECT + 34 col2, 33
----
34
33

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

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

query II rowsort
SELECT - 13 AS col0, ( + 76 ) + + 46 * + 51 AS col2
----
-13
2422

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7839
SELECT ALL + + 22 * CAST( - 67 AS SIGNED ) + - 51
----
-1525

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL + + 22 * CAST ( - 67 AS INTEGER ) + - 51
----
-1525

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

query II rowsort
SELECT + 91 AS col2, + 39 AS col2
----
91
39

query I rowsort
SELECT + 89 * - 4 col2
----
-356

query I rowsort
SELECT + 59 * - 23 AS col2
----
-1357

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7845
SELECT + 13 * + 96 * + ( - + 88 ) - - COUNT( * ) DIV - 88 - + 17
----
-109841

skipif mysql # not compatible
query I rowsort label-7845
SELECT + 13 * + 96 * + ( - + 88 ) - - COUNT ( * ) / - 88 - + 17
----
-109841

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

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

query I rowsort
SELECT - 25 * - NULLIF ( - 97, - ( + + 84 ) + 20 )
----
-2425

query I rowsort
SELECT ALL - 50 * 70 AS col1
----
-3500

query I rowsort
SELECT ALL + 96 + + ( + - 2 ) AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7850
SELECT + CASE 40 WHEN + 6 THEN + NULLIF ( 69, NULLIF ( COUNT( * ), - + MIN( - - 75 ) + + MAX( DISTINCT 57 ) * - + 37 * - COALESCE ( + 69, - 25 + - - 41 ) ) / - - 8 + + ( + + 44 ) ) * 18 + 60 * + 45 / - + ( + ( + 42 ) ) + + 79 * - + ( CAST( + 84 AS SIGNED ) ) * + + 56 + + 19 END * + 19 * 52 - - 10 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7850
SELECT + CASE 40 WHEN + 6 THEN + NULLIF ( 69, NULLIF ( COUNT ( * ), - + MIN ( - - 75 ) + + MAX ( DISTINCT 57 ) * - + 37 * - COALESCE ( + 69, - 25 + - - 41 ) ) / - - 8 + + ( + + 44 ) ) * 18 + 60 * + 45 / - + ( + ( + 42 ) ) + + 79 * - + ( CAST ( + 84 AS INTEGER ) ) * + + 56 + + 19 END * + 19 * 52 - - 10 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT - MIN( - 59 ) + + 46 + - - 80
----
185

skipif mysql # not compatible
query I rowsort label-7851
SELECT - MIN ( - 59 ) + + 46 + - - 80
----
185

query I rowsort
SELECT + 10 col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ALL - 51 * 49 * - - COUNT( * ) col0
----
-2499

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL - 51 * 49 * - - COUNT ( * ) col0
----
-2499

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

query II rowsort
SELECT DISTINCT NULLIF ( - + 92, AVG ( DISTINCT + - ( + 76 ) ) ), 62 AS col0
----
-92
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT 97 * - COUNT( * ) + - + 75
----
-172

skipif mysql # not compatible
query I rowsort label-7856
SELECT 97 * - COUNT ( * ) + - + 75
----
-172

onlyif mysql # aggregate syntax: 
query II rowsort label-7857
SELECT DISTINCT + 6 * - COUNT( * ), - 12 AS col1
----
-6
-12

skipif mysql # not compatible
query II rowsort label-7857
SELECT DISTINCT + 6 * - COUNT ( * ), - 12 AS col1
----
-6
-12

query I rowsort
SELECT - 76 AS col2
----
-76

query I rowsort
SELECT ALL + 88 * + - 8
----
-704

query I rowsort
SELECT DISTINCT NULLIF ( + 20, + + 37 )
----
20

query I rowsort
SELECT 50
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7862
SELECT DISTINCT CASE - COUNT( * ) WHEN 43 THEN NULL WHEN - 73 THEN + - 17 + 74 * 19 * + COUNT( * ) + - 75 * + MAX( + - CAST( NULL AS SIGNED ) ) + COUNT( * ) * - 53 ELSE 66 END * - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-7862
SELECT DISTINCT CASE - COUNT ( * ) WHEN 43 THEN NULL WHEN - 73 THEN + - 17 + 74 * 19 * + COUNT ( * ) + - 75 * + MAX ( + - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) * - 53 ELSE 66 END * - COUNT ( * )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7863
SELECT + CAST( + 12 AS SIGNED ) * - - 9 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-7863
SELECT + CAST ( + 12 AS INTEGER ) * - - 9 AS col2
----
108

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

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

query I rowsort
SELECT - + 95 - - + 60 AS col1
----
-35

query I rowsort
SELECT + 40 * 18 + NULLIF ( + 22, + + 52 - + 15 )
----
742

query I rowsort
SELECT - COALESCE ( + 47, - 77 + + - 72 ) AS col1
----
-47

query I rowsort
SELECT DISTINCT + 9 * 85 * + + ( + - 37 )
----
-28305

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7870
SELECT + - 70 * - MAX( ALL 21 ) + + 76 * 0 * + COUNT( * ) * 94 * 35 AS col1, 9 * + 12
----
1470
108

skipif mysql # not compatible
query II rowsort label-7870
SELECT + - 70 * - MAX ( ALL 21 ) + + 76 * 0 * + COUNT ( * ) * 94 * 35 AS col1, 9 * + 12
----
1470
108

query I rowsort
SELECT ALL + 65 + - - 60 * 73 col2
----
4445

query I rowsort
SELECT + 16 - + 36
----
-20

query I rowsort
SELECT + + 95 * - + 4 * + 56 + - + 5 AS col1
----
-21285

query I rowsort
SELECT ALL 60 + - - 99 * - 39 col0
----
-3801

query I rowsort
SELECT ALL + NULLIF ( - 71, + 15 ) AS col0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7876
SELECT + CAST( NULL AS SIGNED ) * CASE - CAST( - 96 AS SIGNED ) WHEN + 89 * - 54 THEN NULL WHEN - 87 THEN NULL ELSE + + 93 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7876
SELECT + CAST ( NULL AS INTEGER ) * CASE - CAST ( - 96 AS INTEGER ) WHEN + 89 * - 54 THEN NULL WHEN - 87 THEN NULL ELSE + + 93 END AS col2
----
NULL

query I rowsort
SELECT + - 18 + + 78
----
60

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

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

query I rowsort
SELECT + + 43 + + 84
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-7880
SELECT 38 DIV - + 21 - - + NULLIF ( 90, + 43 * + NULLIF ( + + 49, - 36 ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-7880
SELECT 38 / - + 21 - - + NULLIF ( 90, + 43 * + NULLIF ( + + 49, - 36 ) ) AS col2
----
89

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7882
SELECT DISTINCT + - SUM( ALL - CAST( NULL AS SIGNED ) ) * 54 * + AVG ( ALL - - 84 ) + - + CAST( 12 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT + - SUM ( ALL - CAST ( NULL AS INTEGER ) ) * 54 * + AVG ( ALL - - 84 ) + - + CAST ( 12 AS INTEGER ) AS col0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7884
SELECT ALL COALESCE ( + 17, - 38 + - 37 * + ( CAST( NULL AS SIGNED ) ) * - + 18 * - - 69 + 33 + - + 49 ) * 56 + - 4 + - 93 + 76 + + - CAST( NULL AS SIGNED ) + 17 * 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7884
SELECT ALL COALESCE ( + 17, - 38 + - 37 * + ( CAST ( NULL AS INTEGER ) ) * - + 18 * - - 69 + 33 + - + 49 ) * 56 + - 4 + - 93 + 76 + + - CAST ( NULL AS INTEGER ) + 17 * 9 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7885
SELECT - ( - + 57 ) + + 56 AS col2, CASE + 95 WHEN 73 / - 28 * + 1 THEN 36 + - 91 + - CASE NULLIF ( + 15, - COUNT( * ) ) WHEN CAST( - 7 AS SIGNED ) THEN - - 24 ELSE - NULLIF ( + - 62, - 37 * + 83 - + + 99 ) END + + 18 * + MIN( + 79 ) + COUNT( * ) * 21 * + 39 / - + 44 * 28 + COALESCE ( + 14, - 20, + CAST( + 14 AS SIGNED ) + + 13 ) - + 39 WHEN + 46 THEN + 46 / ( 38 ) ELSE NULL END + - 28 AS col0
----
113
NULL

skipif mysql # not compatible
query II rowsort label-7885
SELECT - ( - + 57 ) + + 56 AS col2, CASE + 95 WHEN 73 / - 28 * + 1 THEN 36 + - 91 + - CASE NULLIF ( + 15, - COUNT ( * ) ) WHEN CAST ( - 7 AS INTEGER ) THEN - - 24 ELSE - NULLIF ( + - 62, - 37 * + 83 - + + 99 ) END + + 18 * + MIN ( + 79 ) + COUNT ( * ) * 21 * + 39 / - + 44 * 28 + COALESCE ( + 14, - 20, + CAST ( + 14 AS INTEGER ) + + 13 ) - + 39 WHEN + 46 THEN + 46 / ( 38 ) ELSE NULL END + - 28 AS col0
----
113
NULL

query I rowsort
SELECT ALL 85 * - + ( - COALESCE ( + 95, + 37 ) )
----
8075

onlyif mysql # aggregate syntax: 
query II rowsort label-7887
SELECT ( + COUNT( 94 ) ), 61 col0
----
1
61

skipif mysql # not compatible
query II rowsort label-7887
SELECT ( + COUNT ( 94 ) ), 61 col0
----
1
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT COALESCE ( - MAX( ALL - 16 ), + 28 + + - ( + 38 ), - COUNT( * ) * 19 + 74 )
----
16

skipif mysql # not compatible
query I rowsort label-7890
SELECT COALESCE ( - MAX ( ALL - 16 ), + 28 + + - ( + 38 ), - COUNT ( * ) * 19 + 74 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT ALL 40 * + + 31 - ( - COUNT( * ) ) + - 70 AS col2
----
1171

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL 40 * + + 31 - ( - COUNT ( * ) ) + - 70 AS col2
----
1171

query I rowsort
SELECT + 43 * 67 AS col2
----
2881

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT CASE - COUNT( * ) WHEN 26 THEN + - 16 ELSE 37 * - + ( + COUNT( * ) ) END
----
-37

skipif mysql # not compatible
query I rowsort label-7893
SELECT CASE - COUNT ( * ) WHEN 26 THEN + - 16 ELSE 37 * - + ( + COUNT ( * ) ) END
----
-37

query I rowsort
SELECT ALL + NULLIF ( - + ( + + 95 ), + CASE - + 44 WHEN 72 THEN + 42 ELSE 90 * - 44 + + 34 * + - 50 END + 5 ) AS col1
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7895
SELECT COALESCE ( 57, - + 19 DIV - COUNT( * ) * + 39 + + 97, 60 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-7895
SELECT COALESCE ( 57, - + 19 / - COUNT ( * ) * + 39 + + 97, 60 ) AS col2
----
57

query I rowsort
SELECT ALL + 6
----
6

query I rowsort
SELECT - 13 * - ( + + 91 ) * - 30 - - 97 AS col0
----
-35393

query I rowsort
SELECT ALL - 20 * + 45
----
-900

query II rowsort
SELECT + 74 AS col0, + 61 col2
----
74
61

onlyif mysql # DIV for integer division: 
query I rowsort label-7900
SELECT ALL - 29 DIV 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL - 29 / 45 AS col0
----
0

query I rowsort
SELECT + 77 * - 12
----
-924

query I rowsort
SELECT - 83 * + 80
----
-6640

query I rowsort
SELECT - ( 70 ) * + 2
----
-140

onlyif mysql # DIV for integer division: 
query I rowsort label-7904
SELECT - + 60 DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-7904
SELECT - + 60 / 63
----
0

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

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

query II rowsort
SELECT DISTINCT + 36, - 9 AS col1
----
36
-9

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7908
SELECT DISTINCT - 47 + + 83 DIV - COUNT( * ) + 43 + + 50 + + 72 * + 20 + 19 + - 52 + + ( + - NULLIF ( 92, + NULLIF ( + 6, + - 73 * - ( - 40 ) + 18 ) + + 73 ) ) DIV CAST( SUM( 56 ) AS SIGNED ) AS col0
----
1369

skipif mysql # not compatible
query I rowsort label-7908
SELECT DISTINCT - 47 + + 83 / - COUNT ( * ) + 43 + + 50 + + 72 * + 20 + 19 + - 52 + + ( + - NULLIF ( 92, + NULLIF ( + 6, + - 73 * - ( - 40 ) + 18 ) + + 73 ) ) / CAST ( SUM ( 56 ) AS INTEGER ) AS col0
----
1369

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

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

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

query I rowsort
SELECT - 14 + + - CASE 88 WHEN - 9 THEN NULL WHEN - 21 * - - NULLIF ( 18, + ( + + 98 ) * - AVG ( + 40 ) + - - 15 + - 62 ) THEN 29 ELSE NULL END
----
NULL

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7916
SELECT - - CAST( NULL AS SIGNED ) * 49 + + + 4 + + + 41 * + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7916
SELECT - - CAST ( NULL AS INTEGER ) * 49 + + + 4 + + + 41 * + + 92
----
NULL

query I rowsort
SELECT + 15
----
15

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

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

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

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

query II rowsort
SELECT ALL - 92 + + 57 * + 19 AS col2, - COALESCE ( + 10, 60 ) * 7 col2
----
991
-70

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7924
SELECT SUM( ALL - + 8 ) DIV 44
----
0

skipif mysql # not compatible
query I rowsort label-7924
SELECT SUM ( ALL - + 8 ) / 44
----
0

query I rowsort
SELECT 36 * - 87
----
-3132

query I rowsort
SELECT DISTINCT - 7
----
-7

query I rowsort
SELECT 50 AS col1
----
50

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7929
SELECT ALL 37 DIV + 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL 37 / + 71 AS col0
----
0

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

query I rowsort
SELECT 75 col2
----
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT 90 * + SUM( DISTINCT ( + 56 ) ) * + NULLIF ( 9, 20 - + 1 - + + CASE + COUNT( * ) WHEN - 35 THEN NULL WHEN - - 75 * - AVG ( + - 81 ) * 36 THEN - + 28 * + 66 * - - 58 + ( - + 65 ) END - COUNT( * ) + + + 0 )
----
45360

skipif mysql # not compatible
query I rowsort label-7933
SELECT 90 * + SUM ( DISTINCT ( + 56 ) ) * + NULLIF ( 9, 20 - + 1 - + + CASE + COUNT ( * ) WHEN - 35 THEN NULL WHEN - - 75 * - AVG ( + - 81 ) * 36 THEN - + 28 * + 66 * - - 58 + ( - + 65 ) END - COUNT ( * ) + + + 0 )
----
45360

query I rowsort
SELECT ALL 95 * - + 91 AS col0
----
-8645

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT 96 + + + MIN( DISTINCT - 8 ) + + 52 AS col2
----
140

skipif mysql # not compatible
query I rowsort label-7935
SELECT 96 + + + MIN ( DISTINCT - 8 ) + + 52 AS col2
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7936
SELECT + 41 * - + 37 - + + CAST( - ( - 33 ) AS SIGNED ) AS col2, + 82 * + - 58 col0
----
-1550
-4756

skipif mysql # not compatible
query II rowsort label-7936
SELECT + 41 * - + 37 - + + CAST ( - ( - 33 ) AS INTEGER ) AS col2, + 82 * + - 58 col0
----
-1550
-4756

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT ALL - MAX( DISTINCT + + 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL - MAX ( DISTINCT + + 1 ) AS col0
----
-1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT ALL 36 + COUNT( + 68 ) col0
----
37

skipif mysql # not compatible
query I rowsort label-7942
SELECT ALL 36 + COUNT ( + 68 ) col0
----
37

query I rowsort
SELECT DISTINCT 47
----
47

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7947
SELECT - 2 + - COALESCE ( - 56, MAX( - 94 ), - MAX( DISTINCT CAST( NULL AS SIGNED ) ) * - 49 * + 36 + + 67 - - + 32 + + 1 DIV + 0, - COUNT( ALL - + 57 ) )
----
54

skipif mysql # not compatible
query I rowsort label-7947
SELECT - 2 + - COALESCE ( - 56, MAX ( - 94 ), - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 49 * + 36 + + 67 - - + 32 + + 1 / + 0, - COUNT ( ALL - + 57 ) )
----
54

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

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

query I rowsort
SELECT - 34 * + - 35
----
1190

query I rowsort
SELECT - 78 + + - 53 AS col0
----
-131

onlyif mysql # DIV for integer division: 
query I rowsort label-7951
SELECT ALL 47 + 10 DIV - 74 * + 27 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL 47 + 10 / - 74 * + 27 AS col2
----
47

query I rowsort
SELECT DISTINCT + NULLIF ( - 97, - 45 + - 80 )
----
-97

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7958
SELECT 39 + - 62 + - + CAST( NULL AS SIGNED ) + + 26 * + 88 * + 77 * COUNT( * ) + 60 * MAX( DISTINCT - 50 ) * + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-7958
SELECT 39 + - 62 + - + CAST ( NULL AS INTEGER ) + + 26 * + 88 * + 77 * COUNT ( * ) + 60 * MAX ( DISTINCT - 50 ) * + 24
----
NULL

query I rowsort
SELECT - 38 AS col2
----
-38

query I rowsort
SELECT 45 * - - 13
----
585

query I rowsort
SELECT 81 * + - 81 AS col1
----
-6561

onlyif mysql # aggregate syntax: 
query II rowsort label-7962
SELECT + 93 AS col2, - ( + - 82 ) + - 53 + MIN( - - 45 ) + ( + 76 ) - + + 35 + - + 36
----
93
79

skipif mysql # not compatible
query II rowsort label-7962
SELECT + 93 AS col2, - ( + - 82 ) + - 53 + MIN ( - - 45 ) + ( + 76 ) - + + 35 + - + 36
----
93
79

query I rowsort
SELECT 55 + 17
----
72

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

query I rowsort
SELECT 1 * 21 + - 95 * - + 4 * 13 AS col0
----
4961

query I rowsort
SELECT 71 * 95 AS col1
----
6745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7967
SELECT CAST( NULL AS SIGNED ) * - 69 + - + AVG ( + - 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7967
SELECT CAST ( NULL AS INTEGER ) * - 69 + - + AVG ( + - 75 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7968
SELECT DISTINCT + 47 * 65 DIV + 88, ( - - COALESCE ( 9, - - 53 - - MIN( - 37 ) + 17 * + 16, 36 * - - 20 ) ) * - MIN( DISTINCT ( - 13 ) ) * + - 85 + ( - COUNT( * ) ) DIV + 68 + 29 AS col0
----
34
-9916

skipif mysql # not compatible
query II rowsort label-7968
SELECT DISTINCT + 47 * 65 / + 88, ( - - COALESCE ( 9, - - 53 - - MIN ( - 37 ) + 17 * + 16, 36 * - - 20 ) ) * - MIN ( DISTINCT ( - 13 ) ) * + - 85 + ( - COUNT ( * ) ) / + 68 + 29 AS col0
----
34
-9916

onlyif mysql # aggregate syntax: 
query II rowsort label-7969
SELECT ALL - 54 AS col2, 16 * - - 92 + - COUNT( * )
----
-54
1471

skipif mysql # not compatible
query II rowsort label-7969
SELECT ALL - 54 AS col2, 16 * - - 92 + - COUNT ( * )
----
-54
1471

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

query I rowsort
SELECT DISTINCT - 74 * + 76
----
-5624

query I rowsort
SELECT 99 + + 1 + 4
----
104

query I rowsort
SELECT DISTINCT 89 + + 23
----
112

query I rowsort
SELECT ALL - 44
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-7975
SELECT ( + 58 ) DIV 7
----
8

skipif mysql # not compatible
query I rowsort label-7975
SELECT ( + 58 ) / 7
----
8

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

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

query I rowsort
SELECT DISTINCT + 21 + + ( - 69 )
----
-48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT ALL - 52 + - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL - 52 + - COUNT ( * )
----
-53

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

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

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

skipif mysql # not compatible
query I rowsort label-7981
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 93 * - 70
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7982
SELECT 1 + - ( + ( + 76 ) ) - + 33 DIV - 44 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-7982
SELECT 1 + - ( + ( + 76 ) ) - + 33 / - 44 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT ALL 65 + - 68 + - + CASE - - COUNT( 28 ) WHEN + + 79 * - 54 - + 39 - + + MIN( + 67 ) THEN - 66 END * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL 65 + - 68 + - + CASE - - COUNT ( 28 ) WHEN + + 79 * - 54 - + 39 - + + MIN ( + 67 ) THEN - 66 END * + - COUNT ( * )
----
NULL

query I rowsort
SELECT - 48 + + + ( + 70 ) AS col1
----
22

query I rowsort
SELECT 50 * - 52 col0
----
-2600

query I rowsort
SELECT - 44 AS col2
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7987
SELECT ALL + 25 - 97 * - ( - 34 ) * 79 col2, CAST( NULL AS SIGNED )
----
-260517
NULL

skipif mysql # not compatible
query II rowsort label-7987
SELECT ALL + 25 - 97 * - ( - 34 ) * 79 col2, CAST ( NULL AS INTEGER )
----
-260517
NULL

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

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

query I rowsort
SELECT DISTINCT 61
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7991
SELECT DISTINCT + MIN( - + CAST( NULL AS SIGNED ) ) * - ( MIN( + - NULLIF ( + 17, + ( - + ( 82 ) ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT + MIN ( - + CAST ( NULL AS INTEGER ) ) * - ( MIN ( + - NULLIF ( + 17, + ( - + ( 82 ) ) ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT + + COUNT( * ) * + 26 + + 71 + 98 + - 83
----
112

skipif mysql # not compatible
query I rowsort label-7992
SELECT + + COUNT ( * ) * + 26 + + 71 + 98 + - 83
----
112

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT ALL + COUNT( * ) * + - 69 * + - 51 AS col2
----
3519

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL + COUNT ( * ) * + - 69 * + - 51 AS col2
----
3519

onlyif mysql # DIV for integer division: 
query I rowsort label-7995
SELECT + 65 DIV 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7995
SELECT + 65 / 86 AS col2
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT - COALESCE ( - - MAX( ALL - 17 ), 24 )
----
17

skipif mysql # not compatible
query I rowsort label-7998
SELECT - COALESCE ( - - MAX ( ALL - 17 ), 24 )
----
17

query I rowsort
SELECT ALL - 60 * + 56
----
-3360

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8001
SELECT ALL 26 * COALESCE ( 56, + 27 * ( 34 ) DIV - - CAST( NULL AS SIGNED ) + - - ( 89 ), + 24, - CAST( + - 81 AS SIGNED ) ) AS col0
----
1456

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL 26 * COALESCE ( 56, + 27 * ( 34 ) / - - CAST ( NULL AS INTEGER ) + - - ( 89 ), + 24, - CAST ( + - 81 AS INTEGER ) ) AS col0
----
1456

query II rowsort
SELECT 13, 3 AS col1
----
13
3

query I rowsort
SELECT ALL NULLIF ( 55, + + 89 )
----
55

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8009
SELECT - NULLIF ( - - 62, + SUM( + 8 ) ) * - 62 + + + CAST( + 92 AS SIGNED )
----
3936

skipif mysql # not compatible
query I rowsort label-8009
SELECT - NULLIF ( - - 62, + SUM ( + 8 ) ) * - 62 + + + CAST ( + 92 AS INTEGER )
----
3936

query I rowsort
SELECT NULLIF ( + 39, - 68 ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT NULLIF ( + + CASE 44 WHEN 51 THEN + 87 + - 63 WHEN 57 THEN NULL ELSE NULL END, + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8011
SELECT NULLIF ( + + CASE 44 WHEN 51 THEN + 87 + - 63 WHEN 57 THEN NULL ELSE NULL END, + COUNT ( * ) ) AS col2
----
NULL

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

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

query I rowsort
SELECT + 19 * - 20 AS col2
----
-380

onlyif mysql # aggregate syntax: 
query II rowsort label-8014
SELECT + 33 * + COUNT( * ) - - COALESCE ( MIN( 28 ), COUNT( * ) ) AS col2, 37 AS col0
----
61
37

skipif mysql # not compatible
query II rowsort label-8014
SELECT + 33 * + COUNT ( * ) - - COALESCE ( MIN ( 28 ), COUNT ( * ) ) AS col2, 37 AS col0
----
61
37

query I rowsort
SELECT ALL + 98 * + + 31 col0
----
3038

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT DISTINCT 83 * + - 11 * - 9 * + 64 * - 87 * - - COUNT( * ) + - - CASE - 15 WHEN 5 THEN NULL ELSE - 16 * COUNT( * ) * 88 END
----
-45753664

skipif mysql # not compatible
query I rowsort label-8016
SELECT DISTINCT 83 * + - 11 * - 9 * + 64 * - 87 * - - COUNT ( * ) + - - CASE - 15 WHEN 5 THEN NULL ELSE - 16 * COUNT ( * ) * 88 END
----
-45753664

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT ALL 52 * - - ( - COUNT( * ) ) + - + 98
----
-150

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL 52 * - - ( - COUNT ( * ) ) + - + 98
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT - 83 * SUM( - 56 )
----
4648

skipif mysql # not compatible
query I rowsort label-8018
SELECT - 83 * SUM ( - 56 )
----
4648

query I rowsort
SELECT ALL ( + - 39 ) * - 16 AS col2
----
624

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

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

query I rowsort
SELECT ALL + 98 * + 48
----
4704

query II rowsort
SELECT CASE - - 59 WHEN 71 THEN NULL WHEN - 7 THEN + + 23 ELSE 51 END AS col2, 16
----
51
16

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

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

query II rowsort
SELECT DISTINCT + + 59 col2, + 59 * - 13
----
59
-767

query I rowsort
SELECT - + 35 * + 88 AS col1
----
-3080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8026
SELECT - 37 + 50 * - CAST( 6 AS SIGNED ) * - - 74 col1
----
-22237

skipif mysql # not compatible
query I rowsort label-8026
SELECT - 37 + 50 * - CAST ( 6 AS INTEGER ) * - - 74 col1
----
-22237

query I rowsort
SELECT + ( - 99 ) * 69 AS col0
----
-6831

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

skipif mysql # not compatible
query I rowsort label-8028
SELECT MAX ( + 15 )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8029
SELECT DISTINCT - - 93 DIV + + 49
----
1

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT - - 93 / + + 49
----
1

query I rowsort
SELECT ALL + 67 * + 57 * + 74 - + + 85
----
282521

query II rowsort
SELECT DISTINCT 17 AS col0, - 41 AS col0
----
17
-41

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8034
SELECT - CAST( NULL AS SIGNED ) + + CAST( + 6 AS SIGNED ) * 66 * - 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8034
SELECT - CAST ( NULL AS INTEGER ) + + CAST ( + 6 AS INTEGER ) * 66 * - 28 AS col1
----
NULL

query I rowsort
SELECT + 6
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8036
SELECT ALL 66 * ( + 5 ) DIV - - ( - 76 ) - + COUNT( * ) AS col0
----
-5

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

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

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

query I rowsort
SELECT + + 33 - + 32
----
1

query I rowsort
SELECT + 23 * + - 24 + - + 2 col1
----
-554

query I rowsort
SELECT 4
----
4

query I rowsort
SELECT DISTINCT 85 * ( - 94 )
----
-7990

query I rowsort
SELECT DISTINCT 40
----
40

query I rowsort
SELECT ALL CASE + 84 WHEN - 81 - 97 * 46 * 20 THEN NULL ELSE 71 END
----
71

query II rowsort
SELECT DISTINCT ( - 75 ) AS col0, + 20
----
-75
20

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

query I rowsort
SELECT - 66 - - 27
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-8048
SELECT ALL 72 DIV 47 * - 13 * - - 96 AS col2
----
-1248

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL 72 / 47 * - 13 * - - 96 AS col2
----
-1248

onlyif mysql # aggregate syntax: 
query II rowsort label-8049
SELECT - ( - 28 ) AS col2, MAX( ALL + 53 ) AS col0
----
28
53

skipif mysql # not compatible
query II rowsort label-8049
SELECT - ( - 28 ) AS col2, MAX ( ALL + 53 ) AS col0
----
28
53

onlyif mysql # aggregate syntax: 
query II rowsort label-8050
SELECT - ( 72 ) AS col0, COALESCE ( 0, - COUNT( + 13 ) ) * - 90
----
-72
0

skipif mysql # not compatible
query II rowsort label-8050
SELECT - ( 72 ) AS col0, COALESCE ( 0, - COUNT ( + 13 ) ) * - 90
----
-72
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8051
SELECT - CAST( 80 AS SIGNED ) AS col1, 54 * + + 53 + + COUNT( * )
----
-80
2863

skipif mysql # not compatible
query II rowsort label-8051
SELECT - CAST ( 80 AS INTEGER ) AS col1, 54 * + + 53 + + COUNT ( * )
----
-80
2863

onlyif mysql # DIV for integer division: 
query I rowsort label-8052
SELECT DISTINCT + 59 DIV + 47 + + 6
----
7

skipif mysql # not compatible
query I rowsort label-8052
SELECT DISTINCT + 59 / + 47 + + 6
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT + 31 + + SUM( + 10 ) - + + 54 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-8053
SELECT + 31 + + SUM ( + 10 ) - + + 54 AS col0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-8054
SELECT ALL - 26 DIV - - 21 + + 54 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL - 26 / - - 21 + + 54 AS col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8055
SELECT ALL 79 DIV - 86 + + - 66 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-8055
SELECT ALL 79 / - 86 + + - 66 AS col0
----
-66

query I rowsort
SELECT DISTINCT 71 * - 37 * - 66 AS col0
----
173382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8057
SELECT DISTINCT 16 DIV - - NULLIF ( - + CASE CAST( 6 AS SIGNED ) WHEN + - COUNT( * ) * 19 DIV 73 + - 6 THEN 18 ELSE 85 + + - 20 END, + - 31 ) + + 95 + 70 * + 72 AS col2
----
5135

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT 16 / - - NULLIF ( - + CASE CAST ( 6 AS INTEGER ) WHEN + - COUNT ( * ) * 19 / 73 + - 6 THEN 18 ELSE 85 + + - 20 END, + - 31 ) + + 95 + 70 * + 72 AS col2
----
5135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8058
SELECT ALL + COUNT( * ) DIV + + 54 + 29 * - 69 * ( + + 43 ) AS col0
----
-86043

skipif mysql # not compatible
query I rowsort label-8058
SELECT ALL + COUNT ( * ) / + + 54 + 29 * - 69 * ( + + 43 ) AS col0
----
-86043

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8059
SELECT DISTINCT + ( + + COALESCE ( - + 33, - CAST( - - 91 AS SIGNED ) + - 21 ) ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT + ( + + COALESCE ( - + 33, - CAST ( - - 91 AS INTEGER ) + - 21 ) ) AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8060
SELECT ALL + 49 / - COUNT( + 15 ) + + NULLIF ( + ( - ( - + 51 ) ), - SUM( ALL + + 41 ) ) * 25 * - - CAST( NULL AS SIGNED ) + COALESCE ( + - 25, SUM( - 73 ), + MAX( ( - 94 ) ) ) * - 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL + 49 / - COUNT ( + 15 ) + + NULLIF ( + ( - ( - + 51 ) ), - SUM ( ALL + + 41 ) ) * 25 * - - CAST ( NULL AS INTEGER ) + COALESCE ( + - 25, SUM ( - 73 ), + MAX ( ( - 94 ) ) ) * - 93 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT - 55 + + 26 + + + 67 * - + NULLIF ( + 3, - SUM( - 82 ) - - - 69 + + - AVG ( + + 19 ) ) AS col1
----
-230

skipif mysql # not compatible
query I rowsort label-8062
SELECT - 55 + + 26 + + + 67 * - + NULLIF ( + 3, - SUM ( - 82 ) - - - 69 + + - AVG ( + + 19 ) ) AS col1
----
-230

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8064
SELECT - + 28 * + 23 + - COUNT( DISTINCT - - 57 ) + 2 DIV - + 27 col0
----
-645

skipif mysql # not compatible
query I rowsort label-8064
SELECT - + 28 * + 23 + - COUNT ( DISTINCT - - 57 ) + 2 / - + 27 col0
----
-645

query II rowsort
SELECT - + 80 * + 93 AS col0, 5 col1
----
-7440
5

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8069
SELECT + 31 + - - 46 DIV - - 97 + + - 72 col1
----
-41

skipif mysql # not compatible
query I rowsort label-8069
SELECT + 31 + - - 46 / - - 97 + + - 72 col1
----
-41

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

query I rowsort
SELECT 64 + - 41 AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8072
SELECT ALL - 9 DIV + - 80
----
0

skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL - 9 / + - 80
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8074
SELECT DISTINCT + COUNT( * ) - + NULLIF ( - COUNT( * ), + CASE COUNT( * ) WHEN - + 31 THEN NULL WHEN + ( + 94 ) * + 38 + - + 23 THEN + 34 ELSE - 76 END - + 59 DIV + 33 * 52 ) DIV - + 59
----
1

skipif mysql # not compatible
query I rowsort label-8074
SELECT DISTINCT + COUNT ( * ) - + NULLIF ( - COUNT ( * ), + CASE COUNT ( * ) WHEN - + 31 THEN NULL WHEN + ( + 94 ) * + 38 + - + 23 THEN + 34 ELSE - 76 END - + 59 / + 33 * 52 ) / - + 59
----
1

query I rowsort
SELECT 44 * 79 col0
----
3476

query I rowsort
SELECT ALL - - 91 * + 35 + + 49
----
3234

query I rowsort
SELECT - - 90
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8078
SELECT 33 + + ( - 35 ) DIV NULLIF ( - + ( - ( + COUNT( * ) ) ), CASE - ( + + 44 ) WHEN + 27 + - 24 - - + ( - 91 ) THEN - 82 WHEN - 64 THEN NULL ELSE NULL END )
----
-2

skipif mysql # not compatible
query I rowsort label-8078
SELECT 33 + + ( - 35 ) / NULLIF ( - + ( - ( + COUNT ( * ) ) ), CASE - ( + + 44 ) WHEN + 27 + - 24 - - + ( - 91 ) THEN - 82 WHEN - 64 THEN NULL ELSE NULL END )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT COUNT( * ) + - 66 + - 88
----
-153

skipif mysql # not compatible
query I rowsort label-8079
SELECT COUNT ( * ) + - 66 + - 88
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-8080
SELECT + 38 DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-8080
SELECT + 38 / - 58
----
0

query I rowsort
SELECT 10 - + + 35
----
-25

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

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

query I rowsort
SELECT DISTINCT 84
----
84

query I rowsort
SELECT ALL - 6 + - 21
----
-27

query I rowsort
SELECT ALL 88
----
88

query I rowsort
SELECT DISTINCT - 88 + + COALESCE ( 97, - + 62 * - 54 + ( + - 65 ) ) * 29 * - - 33 * + 50
----
4641362

query I rowsort
SELECT ALL 93
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-8088
SELECT 38, COALESCE ( - + 82, 49 + + CASE - COALESCE ( + 12, - 82 * + + COUNT( * ) + - + 0 ) WHEN - - COUNT( ALL - 71 ) THEN NULL WHEN - 35 + + 3 THEN - + MIN( DISTINCT + 64 ) ELSE NULL END ) AS col2
----
38
-82

skipif mysql # not compatible
query II rowsort label-8088
SELECT 38, COALESCE ( - + 82, 49 + + CASE - COALESCE ( + 12, - 82 * + + COUNT ( * ) + - + 0 ) WHEN - - COUNT ( ALL - 71 ) THEN NULL WHEN - 35 + + 3 THEN - + MIN ( DISTINCT + 64 ) ELSE NULL END ) AS col2
----
38
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8089
SELECT ALL 73 + + 99 * SUM( ALL - - CAST( 22 AS SIGNED ) ) AS col2
----
2251

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL 73 + + 99 * SUM ( ALL - - CAST ( 22 AS INTEGER ) ) AS col2
----
2251

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

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

query I rowsort
SELECT 74 * + 63 * - 17
----
-79254

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT ALL COUNT( * ) + 8
----
9

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

query I rowsort
SELECT 95 AS col2
----
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT DISTINCT 30 * - MIN( DISTINCT + 66 )
----
-1980

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT 30 * - MIN ( DISTINCT + 66 )
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT ALL MIN( + 22 ) + + ( + 34 ) * + 97 * - 15
----
-49448

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL MIN ( + 22 ) + + ( + 34 ) * + 97 * - 15
----
-49448

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

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

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

query II rowsort
SELECT ALL - 60 AS col1, - 94 AS col0
----
-60
-94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT ALL CASE 74 WHEN + 25 - - 20 THEN NULL ELSE + - 50 END - - MIN( 19 ) * 80 AS col2
----
1470

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL CASE 74 WHEN + 25 - - 20 THEN NULL ELSE + - 50 END - - MIN ( 19 ) * 80 AS col2
----
1470

onlyif mysql # DIV for integer division: 
query I rowsort label-8105
SELECT DISTINCT 18 DIV - + 94 col0
----
0

skipif mysql # not compatible
query I rowsort label-8105
SELECT DISTINCT 18 / - + 94 col0
----
0

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

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

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

query I rowsort
SELECT - - 52 * + + 43 - 32 AS col0
----
2204

onlyif mysql # DIV for integer division: 
query I rowsort label-8109
SELECT DISTINCT - 71 DIV 31 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT - 71 / 31 AS col0
----
-2

query I rowsort
SELECT + 19 - + 30 * + 40 AS col0
----
-1181

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

query I rowsort
SELECT - 28 * + 30 + - 6 * + - 37
----
-618

query I rowsort
SELECT ALL 3 * + + 89 + - 61 AS col2
----
206

query I rowsort
SELECT 79 * 13 * + 41 + + 83 AS col1
----
42190

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

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL - COUNT ( DISTINCT + + 19 ) AS col2
----
-1

query I rowsort
SELECT + + 12 col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT COALESCE ( - 98, - ( - ( + ( - + 15 ) ) ) ) * + - 0 - - - COUNT( * ) + COUNT( * ) * - MAX( + 83 ) + 4 + - 68 + 85 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-8117
SELECT COALESCE ( - 98, - ( - ( + ( - + 15 ) ) ) ) * + - 0 - - - COUNT ( * ) + COUNT ( * ) * - MAX ( + 83 ) + 4 + - 68 + 85 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT + 78 * - 33 + + 1 * - COALESCE ( MIN( - - 57 ), - 78 )
----
-2631

skipif mysql # not compatible
query I rowsort label-8118
SELECT + 78 * - 33 + + 1 * - COALESCE ( MIN ( - - 57 ), - 78 )
----
-2631

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8119
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, 70 + + - 87
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-8119
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 70 + + - 87
----
NULL
-17

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

query I rowsort
SELECT + 5 * + 6 * + 3 + + + 20
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT - CASE + + 27 WHEN + + 43 - - 70 THEN NULL ELSE MAX( DISTINCT + 3 ) * + + COUNT( 62 ) + - 65 END
----
62

skipif mysql # not compatible
query I rowsort label-8122
SELECT - CASE + + 27 WHEN + + 43 - - 70 THEN NULL ELSE MAX ( DISTINCT + 3 ) * + + COUNT ( 62 ) + - 65 END
----
62

query I rowsort
SELECT DISTINCT + 95 + - 35 AS col0
----
60

query II rowsort
SELECT DISTINCT - ( 47 ) * + 78, + 5 + + 66 * 91 + - - 21 AS col2
----
-3666
6032

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

query I rowsort
SELECT - - 27 col1
----
27

query I rowsort
SELECT + 92 col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8128
SELECT ALL 85 + - 99 - 85 * CAST( NULL AS SIGNED ) / - 10 * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL 85 + - 99 - 85 * CAST ( NULL AS INTEGER ) / - 10 * + - COUNT ( * )
----
NULL

query II rowsort
SELECT 90 * - + NULLIF ( + 23, + 35 ) AS col0, - 10 * + 58
----
-2070
-580

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8131
SELECT 64 + + ( + - CAST( - AVG ( DISTINCT 92 ) AS SIGNED ) ) AS col1
----
156

skipif mysql # not compatible
query I rowsort label-8131
SELECT 64 + + ( + - CAST ( - AVG ( DISTINCT 92 ) AS INTEGER ) ) AS col1
----
156

query I rowsort
SELECT ALL - 84 * - + 84
----
7056

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

skipif mysql # not compatible
query I rowsort label-8133
SELECT DISTINCT + COUNT ( * ) + 30 + + COUNT ( * ) AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8134
SELECT ALL - 75 + - 39 - + CAST( + 50 AS SIGNED ) * + - 0 col1
----
-114

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL - 75 + - 39 - + CAST ( + 50 AS INTEGER ) * + - 0 col1
----
-114

query I rowsort
SELECT 90 + 91
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT ALL MAX( DISTINCT + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-8136
SELECT ALL MAX ( DISTINCT + 50 )
----
50

query I rowsort
SELECT 99 + + 1 + - 14 AS col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8138
SELECT ALL COUNT( * ) DIV + 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8138
SELECT ALL COUNT ( * ) / + 30 AS col0
----
0

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

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

query I rowsort
SELECT DISTINCT + 57 + + - 32
----
25

query I rowsort
SELECT 53 AS col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8142
SELECT ALL ( CASE + + CASE + ( NULLIF ( 24, - + CAST( + + 69 AS DECIMAL ) * + + 11 + + + 27 + + COUNT( * ) ) ) WHEN + + 34 THEN NULL WHEN + - 84 + + ( - 91 ) - - 29 + + 1 + + + 43 * + 60 THEN 49 ELSE 3 / 18 END WHEN - 2 * MIN( - 56 ) * + 58 + - - CAST( NULL AS DECIMAL ) + ( + 56 ) + 26 / 54 THEN - ( + 76 ) - + COALESCE ( - + 19, 77 ) * + ( - + 75 ) - + - 44 * + ( 14 ) WHEN 87 + - COALESCE ( + CAST( 73 AS SIGNED ) - - 21, - 14 - - 45 * MIN( ( + CAST( NULL AS SIGNED ) ) * 36 ), - 48 ) THEN NULL ELSE - 36 END ) - 26
----
-62

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL ( CASE + + CASE + ( NULLIF ( 24, - + CAST ( + + 69 AS REAL ) * + + 11 + + + 27 + + COUNT ( * ) ) ) WHEN + + 34 THEN NULL WHEN + - 84 + + ( - 91 ) - - 29 + + 1 + + + 43 * + 60 THEN 49 ELSE 3 / 18 END WHEN - 2 * MIN ( - 56 ) * + 58 + - - CAST ( NULL AS REAL ) + ( + 56 ) + 26 / 54 THEN - ( + 76 ) - + COALESCE ( - + 19, 77 ) * + ( - + 75 ) - + - 44 * + ( 14 ) WHEN 87 + - COALESCE ( + CAST ( 73 AS INTEGER ) - - 21, - 14 - - 45 * MIN ( ( + CAST ( NULL AS INTEGER ) ) * 36 ), - 48 ) THEN NULL ELSE - 36 END ) - 26
----
-62

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

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

query I rowsort
SELECT 29 col0
----
29

query I rowsort
SELECT 5 * - 5
----
-25

query I rowsort
SELECT 40 AS col2
----
40

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8149
SELECT + MIN( 47 ) AS col0, + ( - 99 ) * COUNT( * )
----
47
-99

skipif mysql # not compatible
query II rowsort label-8149
SELECT + MIN ( 47 ) AS col0, + ( - 99 ) * COUNT ( * )
----
47
-99

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8152
SELECT DISTINCT - ( + 10 ) * - ( - CAST( NULL AS SIGNED ) ) * + 85 * - CAST( NULL AS SIGNED ) * + + 83 + + - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT - ( + 10 ) * - ( - CAST ( NULL AS INTEGER ) ) * + 85 * - CAST ( NULL AS INTEGER ) * + + 83 + + - 60 AS col0
----
NULL

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

query I rowsort
SELECT DISTINCT + 73
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT + - COUNT( * ) + + 43 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-8157
SELECT + - COUNT ( * ) + + 43 AS col0
----
42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT + + ( - MAX( DISTINCT + 86 ) ) + + - 77 AS col1
----
-163

skipif mysql # not compatible
query I rowsort label-8159
SELECT + + ( - MAX ( DISTINCT + 86 ) ) + + - 77 AS col1
----
-163

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT + + 48 + - CASE - COUNT( * ) WHEN - + 2 THEN NULL WHEN - - ( - ( + - 37 ) ) THEN 4 / - 16 ELSE + - 54 + - CASE - + 64 WHEN - 73 THEN + 41 * COUNT( * ) + + 19 + 8 + - + 56 WHEN + NULLIF ( + 42, 65 * + - 99 ) THEN - CASE - 91 WHEN - 91 / + 58 + - NULLIF ( COUNT( * ), + 8 ) THEN + - 31 WHEN + 23 THEN 31 ELSE NULL END END END + 30 * + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8161
SELECT + + 48 + - CASE - COUNT ( * ) WHEN - + 2 THEN NULL WHEN - - ( - ( + - 37 ) ) THEN 4 / - 16 ELSE + - 54 + - CASE - + 64 WHEN - 73 THEN + 41 * COUNT ( * ) + + 19 + 8 + - + 56 WHEN + NULLIF ( + 42, 65 * + - 99 ) THEN - CASE - 91 WHEN - 91 / + 58 + - NULLIF ( COUNT ( * ), + 8 ) THEN + - 31 WHEN + 23 THEN 31 ELSE NULL END END END + 30 * + 4 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8162
SELECT + 93 DIV 64 * + - COUNT( * ) + + + COUNT( * ) + - 33
----
-33

skipif mysql # not compatible
query I rowsort label-8162
SELECT + 93 / 64 * + - COUNT ( * ) + + + COUNT ( * ) + - 33
----
-33

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

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

query I rowsort
SELECT - 28 * ( + - 7 ) + - 16 AS col0
----
180

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

query I rowsort
SELECT ALL 44 * 81 + - - 50
----
3614

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

skipif mysql # not compatible
query I rowsort label-8168
SELECT DISTINCT COUNT ( * ) * - - 82 + + - 56 / 80
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT DISTINCT COUNT( * ) * + + 88 + - 14 * - 51
----
802

skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT COUNT ( * ) * + + 88 + - 14 * - 51
----
802

query I rowsort
SELECT ALL - 41 * - - 36
----
-1476

query I rowsort
SELECT 43 * - 88 + + 8
----
-3776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8172
SELECT - 44 + + + COALESCE ( + 63, + + 76 + + + 81 * - 76 + + 59 ) + + CASE CAST( NULL AS SIGNED ) WHEN - + COUNT( * ) + + - 61 THEN NULL ELSE - + 80 * - 10 + 36 + + 13 END
----
868

skipif mysql # not compatible
query I rowsort label-8172
SELECT - 44 + + + COALESCE ( + 63, + + 76 + + + 81 * - 76 + + 59 ) + + CASE CAST ( NULL AS INTEGER ) WHEN - + COUNT ( * ) + + - 61 THEN NULL ELSE - + 80 * - 10 + 36 + + 13 END
----
868

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8174
SELECT + CAST( 99 AS SIGNED ) + 99 - 74 / - - COUNT( 35 ) * + CASE - 13 WHEN - + 84 THEN - 52 WHEN + 16 * - 9 * 17 + + - 64 THEN + COUNT( * ) END * ( - 0 ) + 78 + - ( + + 46 ) + 67 * + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8174
SELECT + CAST ( 99 AS INTEGER ) + 99 - 74 / - - COUNT ( 35 ) * + CASE - 13 WHEN - + 84 THEN - 52 WHEN + 16 * - 9 * 17 + + - 64 THEN + COUNT ( * ) END * ( - 0 ) + 78 + - ( + + 46 ) + 67 * + + 52
----
NULL

query I rowsort
SELECT - ( 29 )
----
-29

query I rowsort
SELECT - 20 + - 40 AS col1
----
-60

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

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

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

query I rowsort
SELECT ALL 13 - 34 AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8180
SELECT ALL + ( - COALESCE ( 0, - + NULLIF ( - CAST( NULL AS SIGNED ), + 44 ), + + 73 - + 25 ) ) * CASE - COUNT( * ) WHEN 8 + - 20 THEN - COUNT( * ) WHEN - 17 * - MIN( 45 ) + + + 38 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL + ( - COALESCE ( 0, - + NULLIF ( - CAST ( NULL AS INTEGER ), + 44 ), + + 73 - + 25 ) ) * CASE - COUNT ( * ) WHEN 8 + - 20 THEN - COUNT ( * ) WHEN - 17 * - MIN ( 45 ) + + + 38 THEN NULL END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT ALL MIN( DISTINCT - 9 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL MIN ( DISTINCT - 9 ) AS col1
----
-9

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

query I rowsort
SELECT DISTINCT + 71 * 49 * + 40 col1
----
139160

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

query II rowsort
SELECT 1 AS col0, - 99 + + + ( + + 10 )
----
1
-89

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8193
SELECT ALL COALESCE ( - - 48, + + CAST( + COALESCE ( + 25, - 91 * - 95 + - + 94 + - 3 + 5 + ( 43 ), + ( + 56 ) ) AS SIGNED ) * + 93, + 4 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL COALESCE ( - - 48, + + CAST ( + COALESCE ( + 25, - 91 * - 95 + - + 94 + - 3 + 5 + ( 43 ), + ( + 56 ) ) AS INTEGER ) * + 93, + 4 ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT - + ( - 18 ) * + COUNT( * ) * + 96
----
1728

skipif mysql # not compatible
query I rowsort label-8194
SELECT - + ( - 18 ) * + COUNT ( * ) * + 96
----
1728

query I rowsort
SELECT - - 43 * + 8
----
344

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

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

skipif mysql # not compatible
query I rowsort label-8197
SELECT ALL + 58 * - COUNT ( * ) / + 87
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8199
SELECT - 63 * - COUNT( * ) * + 40, + 3 AS col0
----
2520
3

skipif mysql # not compatible
query II rowsort label-8199
SELECT - 63 * - COUNT ( * ) * + 40, + 3 AS col0
----
2520
3

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8202
SELECT - + CAST( + SUM( DISTINCT 0 ) AS SIGNED ) * + 31
----
0

skipif mysql # not compatible
query I rowsort label-8202
SELECT - + CAST ( + SUM ( DISTINCT 0 ) AS INTEGER ) * + 31
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8204
SELECT DISTINCT - 64 DIV - - COALESCE ( + 71, CASE + MIN( DISTINCT + 35 ) WHEN + 36 * + COUNT( * ) THEN + 1 * 66 WHEN - 40 THEN NULL END ) + - + 7
----
-7

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT - 64 / - - COALESCE ( + 71, CASE + MIN ( DISTINCT + 35 ) WHEN + 36 * + COUNT ( * ) THEN + 1 * 66 WHEN - 40 THEN NULL END ) + - + 7
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT + 17 + COUNT( * ) - + 59 * + COUNT( * ) + - 15
----
-56

skipif mysql # not compatible
query I rowsort label-8205
SELECT + 17 + COUNT ( * ) - + 59 * + COUNT ( * ) + - 15
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-8206
SELECT ALL + 21 * 91 + + NULLIF ( + COUNT( * ), 44 / + 64 ), 62 AS col0
----
1912
62

skipif mysql # not compatible
query II rowsort label-8206
SELECT ALL + 21 * 91 + + NULLIF ( + COUNT ( * ), 44 / + 64 ), 62 AS col0
----
1912
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT ALL - + MAX( ALL 8 ) * - + COUNT( - 89 ) + + 53 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL - + MAX ( ALL 8 ) * - + COUNT ( - 89 ) + + 53 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT + + MAX( - + CASE 43 WHEN + 16 * 58 * - - NULLIF ( + 26, + 48 ) THEN + - 46 ELSE NULL END ) * + 54 + - + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8208
SELECT + + MAX ( - + CASE 43 WHEN + 16 * 58 * - - NULLIF ( + 26, + 48 ) THEN + - 46 ELSE NULL END ) * + 54 + - + 12 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL 4 * - - 29 + + + ( + 47 ) * - 38 + - 5 - 94 + 75 + 28 AS col1
----
-1666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8212
SELECT ALL 51 * - CAST( 90 AS SIGNED ) + - - COUNT( * ) - - 77
----
-4512

skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL 51 * - CAST ( 90 AS INTEGER ) + - - COUNT ( * ) - - 77
----
-4512

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT CASE 80 WHEN 88 - 87 THEN + 30 WHEN + - 28 * - - COUNT( * ) + - + 66 - + - 98 * - COUNT( * ) THEN + 45 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8213
SELECT CASE 80 WHEN 88 - 87 THEN + 30 WHEN + - 28 * - - COUNT ( * ) + - + 66 - + - 98 * - COUNT ( * ) THEN + 45 ELSE NULL END
----
NULL

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

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

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

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

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

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

query I rowsort
SELECT ALL 88 * + - 90 - 52 AS col2
----
-7972

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT ALL MIN( DISTINCT - 97 ) * COUNT( * ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL MIN ( DISTINCT - 97 ) * COUNT ( * ) AS col2
----
-97

query I rowsort
SELECT + 84 * + 55 AS col1
----
4620

query I rowsort
SELECT ALL CASE WHEN NOT ( + + 34 > 86 * 13 ) THEN NULL ELSE - - 80 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8221
SELECT + 2 DIV - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8221
SELECT + 2 / - 58 AS col0
----
0

query I rowsort
SELECT DISTINCT 7 * 60
----
420

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

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

query I rowsort
SELECT + 48 + + 55 AS col2
----
103

query I rowsort
SELECT + 42 + + 10
----
52

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

skipif mysql # not compatible
query I rowsort label-8226
SELECT 50 * COUNT ( * )
----
50

query II rowsort
SELECT ALL 22 AS col2, 47
----
22
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT 34 + - CASE + 33 WHEN + 80 THEN NULL WHEN ( - COUNT( * ) ) THEN + 89 * + COALESCE ( + 13, COUNT( * ) * + - 1 + - COUNT( ALL - 48 ) + 59, - 9 ) * - COUNT( * ) * - 99 END + + 5 / 83 + - COUNT( * ) * - - 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8228
SELECT 34 + - CASE + 33 WHEN + 80 THEN NULL WHEN ( - COUNT ( * ) ) THEN + 89 * + COALESCE ( + 13, COUNT ( * ) * + - 1 + - COUNT ( ALL - 48 ) + 59, - 9 ) * - COUNT ( * ) * - 99 END + + 5 / 83 + - COUNT ( * ) * - - 99 AS col0
----
NULL

query I rowsort
SELECT 43 + + 55 + + 73 AS col1
----
171

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8231
SELECT ALL + COUNT( + 56 ) + + - COUNT( * ) - 74 + - AVG ( DISTINCT + - 91 ) / - + CASE + 65 WHEN + + 90 + + CASE 51 WHEN ( - 27 ) + + - 7 THEN NULL WHEN - 12 THEN + + 0 - + 8 * 21 WHEN - 16 THEN NULL ELSE NULL END / - - 78 + - ( + 22 ) + - - 65 + + 70 THEN + ( + - 60 ) WHEN + - 23 * + COALESCE ( + 55, + 81 ) / CASE - - 42 WHEN + + 58 THEN NULL WHEN + - 89 THEN COALESCE ( - 5, - 30 * + 69 ) / - 70 END * - 61 + - 58 * COALESCE ( + CAST( COALESCE ( 75, 13 ) AS DECIMAL ), CAST( NULL AS SIGNED ) + 13 ) THEN + 4 * - 9 END - + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL + COUNT ( + 56 ) + + - COUNT ( * ) - 74 + - AVG ( DISTINCT + - 91 ) / - + CASE + 65 WHEN + + 90 + + CASE 51 WHEN ( - 27 ) + + - 7 THEN NULL WHEN - 12 THEN + + 0 - + 8 * 21 WHEN - 16 THEN NULL ELSE NULL END / - - 78 + - ( + 22 ) + - - 65 + + 70 THEN + ( + - 60 ) WHEN + - 23 * + COALESCE ( + 55, + 81 ) / CASE - - 42 WHEN + + 58 THEN NULL WHEN + - 89 THEN COALESCE ( - 5, - 30 * + 69 ) / - 70 END * - 61 + - 58 * COALESCE ( + CAST ( COALESCE ( 75, 13 ) AS REAL ), CAST ( NULL AS INTEGER ) + 13 ) THEN + 4 * - 9 END - + 79
----
NULL

query I rowsort
SELECT - 8 + + 8 * + + 82
----
648

onlyif mysql # DIV for integer division: 
query I rowsort label-8233
SELECT - 48 DIV - 71 * - 28 col2
----
0

skipif mysql # not compatible
query I rowsort label-8233
SELECT - 48 / - 71 * - 28 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT DISTINCT + - COALESCE ( 30, - 80 + - 96 + - 34 + + 87 * - - 91 * 56 * COUNT( * ) * COUNT( ALL + - 78 ) - 84 + 13 * + COUNT( * ) ) + - 51 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT + - COALESCE ( 30, - 80 + - 96 + - 34 + + 87 * - - 91 * 56 * COUNT ( * ) * COUNT ( ALL + - 78 ) - 84 + 13 * + COUNT ( * ) ) + - 51 AS col0
----
-81

query I rowsort
SELECT ALL 14
----
14

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

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

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

query I rowsort
SELECT 23 + + + 66
----
89

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

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

query I rowsort
SELECT + 75 + - ( + 33 )
----
42

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

query I rowsort
SELECT ALL + + 57 + 76 * 68 + - 30 col2
----
5195

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT + 88 + - CASE - 81 WHEN 33 * + + 80 THEN - + 88 END + + - MIN( DISTINCT 67 ) * + - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8243
SELECT + 88 + - CASE - 81 WHEN 33 * + + 80 THEN - + 88 END + + - MIN ( DISTINCT 67 ) * + - 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT ALL - NULLIF ( + + 97, 77 * COUNT( * ) / 19 )
----
-97

skipif mysql # not compatible
query I rowsort label-8244
SELECT ALL - NULLIF ( + + 97, 77 * COUNT ( * ) / 19 )
----
-97

query II rowsort
SELECT - 59 AS col1, 29 * + COALESCE ( + 3, + + 5 ) + 22 AS col1
----
-59
109

query II rowsort
SELECT DISTINCT + - 52 + + 22 + - 60 + - 92, - 54 * + 98 AS col2
----
-182
-5292

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8247
SELECT DISTINCT + + 44 + + 34 * CAST( - + 9 AS SIGNED ) DIV - 33 + - + ( 68 ) + - 23 + + - 38 + + + ( NULLIF ( 26, - - 12 ) ) + ( + 85 ) DIV - 23 + + + 68 * + + ( 75 ) + 47
----
5094

skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT + + 44 + + 34 * CAST ( - + 9 AS INTEGER ) / - 33 + - + ( 68 ) + - 23 + + - 38 + + + ( NULLIF ( 26, - - 12 ) ) + ( + 85 ) / - 23 + + + 68 * + + ( 75 ) + 47
----
5094

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

query I rowsort
SELECT DISTINCT - 43 + - 79 * + - 83
----
6514

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8250
SELECT ALL 55 + + NULLIF ( + - ( + 29 ), + + 59 ) + NULLIF ( - COALESCE ( + + CASE - 64 WHEN + 89 THEN NULL ELSE - COUNT( * ) END, + - 65 DIV - CAST( NULL AS SIGNED ) + + 24 + 47 ), - COUNT( * ) ) + - 36 * - COUNT( * ) DIV 54 + 97
----
124

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL 55 + + NULLIF ( + - ( + 29 ), + + 59 ) + NULLIF ( - COALESCE ( + + CASE - 64 WHEN + 89 THEN NULL ELSE - COUNT ( * ) END, + - 65 / - CAST ( NULL AS INTEGER ) + + 24 + 47 ), - COUNT ( * ) ) + - 36 * - COUNT ( * ) / 54 + 97
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-8251
SELECT 82 DIV - 8
----
-10

skipif mysql # not compatible
query I rowsort label-8251
SELECT 82 / - 8
----
-10

query I rowsort
SELECT - 38 + + - 23 + + 8 - - + 43 * + 71 AS col0
----
3000

query II rowsort
SELECT + + 56, + 98 + + - 55 + + - 30 * - 69 AS col1
----
56
2113

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

skipif mysql # not compatible
query I rowsort label-8254
SELECT DISTINCT - - 65 + + COUNT ( * ) AS col0
----
66

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8256
SELECT + 82 AS col2, + COUNT( * ) + 89 + - 95 * - COUNT( * ) AS col1
----
82
185

skipif mysql # not compatible
query II rowsort label-8256
SELECT + 82 AS col2, + COUNT ( * ) + 89 + - 95 * - COUNT ( * ) AS col1
----
82
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8257
SELECT 66 AS col0, - CASE - 1 WHEN - 95 THEN 85 - + - CAST( NULL AS SIGNED ) + + COUNT( * ) WHEN - 74 + - 79 + SUM( DISTINCT + + CAST( 11 AS DECIMAL ) ) + + - NULLIF ( - 15, + + 86 ) + - 51 THEN NULL END + 17 * - - 45 / + 95 AS col2
----
66
NULL

skipif mysql # not compatible
query II rowsort label-8257
SELECT 66 AS col0, - CASE - 1 WHEN - 95 THEN 85 - + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) WHEN - 74 + - 79 + SUM ( DISTINCT + + CAST ( 11 AS REAL ) ) + + - NULLIF ( - 15, + + 86 ) + - 51 THEN NULL END + 17 * - - 45 / + 95 AS col2
----
66
NULL

query I rowsort
SELECT ALL - 50 - + - 4 + - 98
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT + NULLIF ( - MAX( - 90 ), - 3 )
----
90

skipif mysql # not compatible
query I rowsort label-8259
SELECT + NULLIF ( - MAX ( - 90 ), - 3 )
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-8260
SELECT + COUNT( * ), - 69 + - + 35 AS col2
----
1
-104

skipif mysql # not compatible
query II rowsort label-8260
SELECT + COUNT ( * ), - 69 + - + 35 AS col2
----
1
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT DISTINCT - 43 - + - MIN( - 76 )
----
-119

skipif mysql # not compatible
query I rowsort label-8261
SELECT DISTINCT - 43 - + - MIN ( - 76 )
----
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8262
SELECT DISTINCT ( - 83 ) - + + 66 + + - 8 * 54 * + COALESCE ( + - CAST( NULL AS SIGNED ), - - 73 ) AS col1, + SUM( - 45 ) * CASE SUM( ALL - + 25 ) WHEN + 74 + - 6 - + 52 + - - 63 THEN + 86 WHEN + 54 THEN NULL END + 42 AS col2
----
-31685
NULL

skipif mysql # not compatible
query II rowsort label-8262
SELECT DISTINCT ( - 83 ) - + + 66 + + - 8 * 54 * + COALESCE ( + - CAST ( NULL AS INTEGER ), - - 73 ) AS col1, + SUM ( - 45 ) * CASE SUM ( ALL - + 25 ) WHEN + 74 + - 6 - + 52 + - - 63 THEN + 86 WHEN + 54 THEN NULL END + 42 AS col2
----
-31685
NULL

query I rowsort
SELECT DISTINCT + 71 * + 5
----
355

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

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

query I rowsort
SELECT ( + 41 ) * + 75
----
3075

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8270
SELECT 44 + + 73 - CASE - COUNT( * ) WHEN + MAX( - 39 ) + - + 1 * + - 33 THEN NULL WHEN - 39 * 8 + CAST( 44 AS SIGNED ) THEN 90 ELSE NULL END * 13 + - 8 + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-8270
SELECT 44 + + 73 - CASE - COUNT ( * ) WHEN + MAX ( - 39 ) + - + 1 * + - 33 THEN NULL WHEN - 39 * 8 + CAST ( 44 AS INTEGER ) THEN 90 ELSE NULL END * 13 + - 8 + + 70
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL 6 * - - 66 * - + 4 * + + COUNT( * ) AS col0
----
-1584

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL 6 * - - 66 * - + 4 * + + COUNT ( * ) AS col0
----
-1584

query I rowsort
SELECT DISTINCT 18 * + 60 AS col0
----
1080

onlyif mysql # aggregate syntax: 
query II rowsort label-8276
SELECT ALL ( + CASE + + 22 WHEN + - COUNT( * ) THEN NULL WHEN + 61 THEN - ( + 41 ) WHEN 59 THEN - + 37 ELSE NULL END ) * + - AVG ( ALL - + 9 ) - + 51 AS col1, 4 - + + COALESCE ( + 81, COALESCE ( + COUNT( * ), COUNT( * ) * + CASE + + 72 WHEN + 53 THEN + 84 ELSE ( + 74 ) * - 39 END * - - 56 + - 56 + - MIN( + 58 ) + + 32, + - 43 - + 92 ), - + 32 ) + - - 1 + - 94
----
NULL
-170

skipif mysql # not compatible
query II rowsort label-8276
SELECT ALL ( + CASE + + 22 WHEN + - COUNT ( * ) THEN NULL WHEN + 61 THEN - ( + 41 ) WHEN 59 THEN - + 37 ELSE NULL END ) * + - AVG ( ALL - + 9 ) - + 51 AS col1, 4 - + + COALESCE ( + 81, COALESCE ( + COUNT ( * ), COUNT ( * ) * + CASE + + 72 WHEN + 53 THEN + 84 ELSE ( + 74 ) * - 39 END * - - 56 + - 56 + - MIN ( + 58 ) + + 32, + - 43 - + 92 ), - + 32 ) + - - 1 + - 94
----
NULL
-170

query I rowsort
SELECT ALL 53 + - + 54 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT 24 * + MAX( ALL - + 45 ) AS col1
----
-1080

skipif mysql # not compatible
query I rowsort label-8278
SELECT 24 * + MAX ( ALL - + 45 ) AS col1
----
-1080

query I rowsort
SELECT 59 + - 76 - - + 37 AS col2
----
20

query I rowsort
SELECT ALL + ( - 73 ) + 24
----
-49

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

query I rowsort
SELECT - 31 AS col1
----
-31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT ALL + + 55 + + 45 + + 48 * + MIN( + 46 )
----
2308

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL + + 55 + + 45 + + 48 * + MIN ( + 46 )
----
2308

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT + 72 * - - MIN( ALL - 80 ) col2
----
-5760

skipif mysql # not compatible
query I rowsort label-8285
SELECT + 72 * - - MIN ( ALL - 80 ) col2
----
-5760

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

query I rowsort
SELECT DISTINCT - 47 + + + 20 + + - 16 + + + 20
----
-23

query I rowsort
SELECT DISTINCT 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT 48 * + NULLIF ( + 27, + + 98 - CASE + COUNT( * ) WHEN ( + 39 ) THEN 40 ELSE + - 34 END ) AS col0
----
1296

skipif mysql # not compatible
query I rowsort label-8289
SELECT 48 * + NULLIF ( + 27, + + 98 - CASE + COUNT ( * ) WHEN ( + 39 ) THEN 40 ELSE + - 34 END ) AS col0
----
1296

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

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

query I rowsort
SELECT - 52 + - + 67 + - 4 + + 14 * - 63 AS col0
----
-1005

query II rowsort
SELECT + + ( + 84 ), 34 AS col2
----
84
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT - 33 * + 22 + 98 + - 20 + COUNT( * )
----
-647

skipif mysql # not compatible
query I rowsort label-8293
SELECT - 33 * + 22 + 98 + - 20 + COUNT ( * )
----
-647

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8294
SELECT ALL - COUNT( * ) * - - 1 DIV + + COUNT( * ) - - COUNT( * ) - + 18 - + 33 + + - 74 * - 57 * 89
----
375351

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL - COUNT ( * ) * - - 1 / + + COUNT ( * ) - - COUNT ( * ) - + 18 - + 33 + + - 74 * - 57 * 89
----
375351

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT COUNT( * ) * - 25 + + 46
----
21

skipif mysql # not compatible
query I rowsort label-8295
SELECT COUNT ( * ) * - 25 + + 46
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8296
SELECT + CAST( + NULLIF ( - 87, - + 43 ) AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-8296
SELECT + CAST ( + NULLIF ( - 87, - + 43 ) AS INTEGER )
----
-87

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

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

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

query I rowsort
SELECT 2 + + + 53
----
55

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8303
SELECT DISTINCT - ( + MAX( 28 ) ) AS col1, - 54 + 94
----
-28
40

skipif mysql # not compatible
query II rowsort label-8303
SELECT DISTINCT - ( + MAX ( 28 ) ) AS col1, - 54 + 94
----
-28
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8304
SELECT + 95 AS col2, COUNT( * ) * + AVG ( DISTINCT + + 87 ) * - 53 * 76 + - CAST( NULL AS SIGNED )
----
95
NULL

skipif mysql # not compatible
query II rowsort label-8304
SELECT + 95 AS col2, COUNT ( * ) * + AVG ( DISTINCT + + 87 ) * - 53 * 76 + - CAST ( NULL AS INTEGER )
----
95
NULL

query II rowsort
SELECT + 96, 21 AS col1
----
96
21

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8307
SELECT COUNT( * ) AS col1, - 13 * - 77 + + 24
----
1
1025

skipif mysql # not compatible
query II rowsort label-8307
SELECT COUNT ( * ) AS col1, - 13 * - 77 + + 24
----
1
1025

onlyif mysql # aggregate syntax: 
query III rowsort label-8308
SELECT ALL - 22 * 67 * + + 5 col1, ( COUNT( * ) ) * + 89 AS col0, + 61 * - - 33 + 67 + + + ( 75 )
----
-7370
89
2155

skipif mysql # not compatible
query III rowsort label-8308
SELECT ALL - 22 * 67 * + + 5 col1, ( COUNT ( * ) ) * + 89 AS col0, + 61 * - - 33 + 67 + + + ( 75 )
----
-7370
89
2155

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

query I rowsort
SELECT + 62
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT DISTINCT - NULLIF ( - + 89, - COUNT( * ) ) * + COUNT( * ) * + 0 * + 63 * + + CASE WHEN NOT NULL BETWEEN + 90 AND + COUNT( * ) + - 3 - - + ( SUM( ALL + - 17 ) ) * + 62 THEN + SUM( DISTINCT + 58 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT - NULLIF ( - + 89, - COUNT ( * ) ) * + COUNT ( * ) * + 0 * + 63 * + + CASE WHEN NOT NULL BETWEEN + 90 AND + COUNT ( * ) + - 3 - - + ( SUM ( ALL + - 17 ) ) * + 62 THEN + SUM ( DISTINCT + 58 ) END
----
NULL

query I rowsort
SELECT - 71 * - + 22 AS col0
----
1562

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8313
SELECT ALL - ( + 23 ) + + - 6, + CAST( NULL AS SIGNED ) + - COUNT( * ) * - 67 * + + 23 * - 58 AS col0
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-8313
SELECT ALL - ( + 23 ) + + - 6, + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - 67 * + + 23 * - 58 AS col0
----
-29
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8314
SELECT CASE + + ( - - NULLIF ( 58, - 89 - - 64 ) ) WHEN + 36 THEN - 50 + CASE CASE - 63 WHEN - ( - - ( COUNT( * ) ) ) * - 91 * - - 52 * 93 * + 88 THEN - AVG ( 36 ) WHEN + 46 * + CAST( NULL AS SIGNED ) + - + 69 THEN NULL END WHEN - COUNT( * ) THEN - 31 + + - ( + - 56 ) + 31 * 91 * 61 END WHEN + 96 * - 39 THEN 67 + + - 15 + COUNT( * ) + + CASE + 19 WHEN + + 19 - + 58 THEN NULL WHEN - - COUNT( * ) THEN NULL ELSE 77 END * - 90 * + MAX( DISTINCT - 2 ) / + 36 WHEN 27 THEN 8 END * COUNT( * ) - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-8314
SELECT CASE + + ( - - NULLIF ( 58, - 89 - - 64 ) ) WHEN + 36 THEN - 50 + CASE CASE - 63 WHEN - ( - - ( COUNT ( * ) ) ) * - 91 * - - 52 * 93 * + 88 THEN - AVG ( 36 ) WHEN + 46 * + CAST ( NULL AS INTEGER ) + - + 69 THEN NULL END WHEN - COUNT ( * ) THEN - 31 + + - ( + - 56 ) + 31 * 91 * 61 END WHEN + 96 * - 39 THEN 67 + + - 15 + COUNT ( * ) + + CASE + 19 WHEN + + 19 - + 58 THEN NULL WHEN - - COUNT ( * ) THEN NULL ELSE 77 END * - 90 * + MAX ( DISTINCT - 2 ) / + 36 WHEN 27 THEN 8 END * COUNT ( * ) - 85
----
NULL

query I rowsort
SELECT 55 AS col2
----
55

query I rowsort
SELECT - 59 + - - 79
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-8317
SELECT 60 AS col2, - SUM( ALL - ( 71 ) ) / 65 * 82 * - - 13 * - - 83 + + 23 * 24 + + + 95 + 20 * + COUNT( * ) * + CASE 40 WHEN + + ( 74 ) THEN + 46 END * - - 7 * + + 11 + + - 63
----
60
NULL

skipif mysql # not compatible
query II rowsort label-8317
SELECT 60 AS col2, - SUM ( ALL - ( 71 ) ) / 65 * 82 * - - 13 * - - 83 + + 23 * 24 + + + 95 + 20 * + COUNT ( * ) * + CASE 40 WHEN + + ( 74 ) THEN + 46 END * - - 7 * + + 11 + + - 63
----
60
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8318
SELECT ALL + ( 91 ) + - + 33 + + COALESCE ( + 60, + - 51, 5 * - - 95 + + - ( + 1 ) ) * 46 * COUNT( * ) + - 71 DIV - 78 * + 87
----
2818

skipif mysql # not compatible
query I rowsort label-8318
SELECT ALL + ( 91 ) + - + 33 + + COALESCE ( + 60, + - 51, 5 * - - 95 + + - ( + 1 ) ) * 46 * COUNT ( * ) + - 71 / - 78 * + 87
----
2818

onlyif mysql # DIV for integer division: 
query II rowsort label-8319
SELECT + 41 * + ( 20 ) AS col1, + 47 DIV + - 81 AS col1
----
820
0

skipif mysql # not compatible
query II rowsort label-8319
SELECT + 41 * + ( 20 ) AS col1, + 47 / + - 81 AS col1
----
820
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8320
SELECT ALL 47 + + ( - + 98 ) DIV - + 41 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL 47 + + ( - + 98 ) / - + 41 AS col2
----
49

query II rowsort
SELECT DISTINCT 42 AS col0, + 97
----
42
97

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

query II rowsort
SELECT DISTINCT 9, ( 61 ) AS col2
----
9
61

query II rowsort
SELECT ALL 87 + 57 + 34, - 5 + + 7 * + ( - 45 ) * - + 99 AS col0
----
178
31180

onlyif mysql # DIV for integer division: 
query I rowsort label-8325
SELECT ALL - 99 + - 56 + - 44 + - - 19 DIV 93
----
-199

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL - 99 + - 56 + - 44 + - - 19 / 93
----
-199

query I rowsort
SELECT ALL - 18 + - 76 + + 83
----
-11

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

query I rowsort
SELECT DISTINCT 32
----
32

query I rowsort
SELECT ALL 53 + - 39 AS col2
----
14

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

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

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

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

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

query I rowsort
SELECT + + 88 + 75
----
163

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

query I rowsort
SELECT DISTINCT - 83 col0
----
-83

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8338
SELECT + 78 col0, COUNT( * ) DIV NULLIF ( + 22, - + 11 ) AS col0
----
78
0

skipif mysql # not compatible
query II rowsort label-8338
SELECT + 78 col0, COUNT ( * ) / NULLIF ( + 22, - + 11 ) AS col0
----
78
0

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

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

query I rowsort
SELECT ALL - - 35 * 16 AS col0
----
560

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

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

query II rowsort
SELECT DISTINCT - 7 * + 1 AS col1, 67 * + + 44 AS col1
----
-7
2948

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

skipif mysql # not compatible
query I rowsort label-8345
SELECT + CAST ( - 69 AS INTEGER ) + - - COUNT ( * )
----
-68

query I rowsort
SELECT - 55 * - 1
----
55

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

skipif mysql # not compatible
query I rowsort label-8347
SELECT - 82 * 7 + + - 83 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + CASE + - 81 WHEN + 37 THEN + - 83 END
----
NULL

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

query I rowsort
SELECT ALL - 74 * - - 87 + 11 AS col0
----
-6427

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

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

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

skipif mysql # not compatible
query I rowsort label-8352
SELECT - 7 / 82 * + COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8353
SELECT - 51 * 42 + ( 17 ) DIV 52 + + - 22
----
-2164

skipif mysql # not compatible
query I rowsort label-8353
SELECT - 51 * 42 + ( 17 ) / 52 + + - 22
----
-2164

query I rowsort
SELECT NULLIF ( - 89, - - 10 ) AS col2
----
-89

query I rowsort
SELECT ALL 84 * - 22 * + - 44 AS col2
----
81312

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT DISTINCT COUNT( * ) * + 73 * - ( ( + 78 ) ) AS col1
----
-5694

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT COUNT ( * ) * + 73 * - ( ( + 78 ) ) AS col1
----
-5694

query I rowsort
SELECT ALL 82 * 88 + + - 91 AS col0
----
7125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8358
SELECT DISTINCT 19 * ( MAX( - CASE - 70 WHEN 21 THEN - 85 WHEN + 11 THEN NULL ELSE - 16 END ) ) + - 54 * + + CASE + + 76 WHEN - CAST( + 4 AS SIGNED ) THEN 40 + + + 88 WHEN + 79 * + 23 * - 37 THEN NULL WHEN + 87 THEN - NULLIF ( - 96, + - 3 ) / + 26 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8358
SELECT DISTINCT 19 * ( MAX ( - CASE - 70 WHEN 21 THEN - 85 WHEN + 11 THEN NULL ELSE - 16 END ) ) + - 54 * + + CASE + + 76 WHEN - CAST ( + 4 AS INTEGER ) THEN 40 + + + 88 WHEN + 79 * + 23 * - 37 THEN NULL WHEN + 87 THEN - NULLIF ( - 96, + - 3 ) / + 26 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT DISTINCT - 64 * 27 + + + ( + COUNT( * ) ) AS col1
----
-1727

skipif mysql # not compatible
query I rowsort label-8359
SELECT DISTINCT - 64 * 27 + + + ( + COUNT ( * ) ) AS col1
----
-1727

query I rowsort
SELECT DISTINCT + 45 * 88 AS col0
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT ALL + 31 * - SUM( DISTINCT + 99 ) * ( + 83 ) + - 69 + 16 AS col2
----
-254780

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL + 31 * - SUM ( DISTINCT + 99 ) * ( + 83 ) + - 69 + 16 AS col2
----
-254780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8362
SELECT ALL + COUNT( 19 ) DIV - 23 + 96 * - ( + + 99 ) + - ( - 27 )
----
-9477

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL + COUNT ( 19 ) / - 23 + 96 * - ( + + 99 ) + - ( - 27 )
----
-9477

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT - COALESCE ( - + 89, - 58 + - - 62 ) + NULLIF ( 92, - - 6 * - ( COUNT( * ) ) - AVG ( 87 ) + + 1 * - 53 )
----
181

skipif mysql # not compatible
query I rowsort label-8363
SELECT - COALESCE ( - + 89, - 58 + - - 62 ) + NULLIF ( 92, - - 6 * - ( COUNT ( * ) ) - AVG ( 87 ) + + 1 * - 53 )
----
181

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8365
SELECT ALL 31 * + COUNT( * ) + - NULLIF ( COUNT( * ), + COALESCE ( - CASE COALESCE ( 4, + 66, - MAX( ALL - 1 ) ) WHEN 88 THEN 84 WHEN 1 THEN NULL END, 40 - COUNT( * ), - 50, 54 * - - CASE - 46 WHEN - + 71 THEN - + 57 ELSE NULL END + - 6 ) ) + - 25 col0, - 46 * - COUNT( * ) * 63
----
5
2898

skipif mysql # not compatible
query II rowsort label-8365
SELECT ALL 31 * + COUNT ( * ) + - NULLIF ( COUNT ( * ), + COALESCE ( - CASE COALESCE ( 4, + 66, - MAX ( ALL - 1 ) ) WHEN 88 THEN 84 WHEN 1 THEN NULL END, 40 - COUNT ( * ), - 50, 54 * - - CASE - 46 WHEN - + 71 THEN - + 57 ELSE NULL END + - 6 ) ) + - 25 col0, - 46 * - COUNT ( * ) * 63
----
5
2898

onlyif mysql # aggregate syntax: 
query II rowsort label-8366
SELECT MAX( ALL 17 ) AS col2, + 20
----
17
20

skipif mysql # not compatible
query II rowsort label-8366
SELECT MAX ( ALL 17 ) AS col2, + 20
----
17
20

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

query I rowsort
SELECT ALL 82
----
82

query I rowsort
SELECT ALL - 69 * - 41 - + - 27 AS col0
----
2856

query I rowsort
SELECT - + 42 * - - 76 * - 80
----
255360

query I rowsort
SELECT DISTINCT - + 46 * - 47 col1
----
2162

query I rowsort
SELECT DISTINCT - 20 - + - 9 AS col2
----
-11

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT - 30 * + MAX( DISTINCT 73 ) AS col1
----
-2190

skipif mysql # not compatible
query I rowsort label-8375
SELECT - 30 * + MAX ( DISTINCT 73 ) AS col1
----
-2190

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

query I rowsort
SELECT + - 26 * - + 48
----
1248

query I rowsort
SELECT - - 57 col2
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-8379
SELECT ALL MIN( 44 ) AS col0, - 75
----
44
-75

skipif mysql # not compatible
query II rowsort label-8379
SELECT ALL MIN ( 44 ) AS col0, - 75
----
44
-75

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

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

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

query II rowsort
SELECT ALL + CASE + 1 WHEN - 34 / - 96 THEN + 76 ELSE NULL END * - 26 / + - NULLIF ( - - ( - 93 ), + 5 ), - 97 col2
----
NULL
-97

query I rowsort
SELECT ALL + CASE - 56 WHEN 23 THEN NULL ELSE 63 * - 9 + 59 END AS col0
----
-508

query I rowsort
SELECT DISTINCT 72 * + 54 AS col2
----
3888

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8386
SELECT + CAST( + 7 AS SIGNED ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-8386
SELECT + CAST ( + 7 AS INTEGER ) AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8387
SELECT - CAST( NULL AS SIGNED ) / - + 82 * - + 93 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8387
SELECT - CAST ( NULL AS INTEGER ) / - + 82 * - + 93 * + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT - 41 * + + 90 + - - 94
----
-3596

query I rowsort
SELECT DISTINCT - 76 col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT ALL COUNT( * ) + 17
----
18

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL COUNT ( * ) + 17
----
18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8391
SELECT ALL CAST( - - 88 AS SIGNED ) + 28 DIV - - 16
----
89

skipif mysql # not compatible
query I rowsort label-8391
SELECT ALL CAST ( - - 88 AS INTEGER ) + 28 / - - 16
----
89

query II rowsort
SELECT 69 AS col0, + 4 + 30
----
69
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8393
SELECT 67 DIV COUNT( * ) + - - 57, 53 AS col2
----
124
53

skipif mysql # not compatible
query II rowsort label-8393
SELECT 67 / COUNT ( * ) + - - 57, 53 AS col2
----
124
53

query I rowsort
SELECT ALL - 98 col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT COUNT( * ) * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8395
SELECT COUNT ( * ) * + - COUNT ( * )
----
-1

query I rowsort
SELECT ALL - 8 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT DISTINCT + 77 * + ( ( - COUNT( + NULLIF ( + 78, - 74 * - 7 / - 33 + - 60 + + + 47 + - 61 * - 30 ) ) ) )
----
-77

skipif mysql # not compatible
query I rowsort label-8397
SELECT DISTINCT + 77 * + ( ( - COUNT ( + NULLIF ( + 78, - 74 * - 7 / - 33 + - 60 + + + 47 + - 61 * - 30 ) ) ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT ALL - 22 + + COUNT( * ) + - - COUNT( 6 ) + 2
----
-18

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL - 22 + + COUNT ( * ) + - - COUNT ( 6 ) + 2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT COUNT( * ) * + 49 * + 7 AS col0
----
343

skipif mysql # not compatible
query I rowsort label-8399
SELECT COUNT ( * ) * + 49 * + 7 AS col0
----
343

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT ( COUNT( * ) ) * + 60 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-8400
SELECT ( COUNT ( * ) ) * + 60 AS col1
----
60

query I rowsort
SELECT DISTINCT ( 28 ) + - 16
----
12

query I rowsort
SELECT DISTINCT 89 * + + 99
----
8811

query II rowsort
SELECT + 70 AS col1, 2 AS col1
----
70
2

query I rowsort
SELECT ALL - 88 AS col0
----
-88

query I rowsort
SELECT DISTINCT + 41 - 42
----
-1

query I rowsort
SELECT ALL - 30
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT ALL - ( CASE 95 WHEN - MIN( - - 25 ) * - 27 THEN + - 38 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL - ( CASE 95 WHEN - MIN ( - - 25 ) * - 27 THEN + - 38 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8408
SELECT + + CAST( + SUM( ALL - + 25 ) AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-8408
SELECT + + CAST ( + SUM ( ALL - + 25 ) AS INTEGER )
----
-25

query I rowsort
SELECT - 48 * - 97 + 6
----
4662

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT + MAX( ALL + + 6 ) col2
----
6

skipif mysql # not compatible
query I rowsort label-8410
SELECT + MAX ( ALL + + 6 ) col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT DISTINCT + 49 - COUNT( * ) + - 78 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-8411
SELECT DISTINCT + 49 - COUNT ( * ) + - 78 AS col0
----
-30

query I rowsort
SELECT - 5 + - 77
----
-82

query I rowsort
SELECT + 34
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT ALL + 16 - + 59 + + COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL + 16 - + 59 + + COUNT ( * ) AS col1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8415
SELECT + NULLIF ( - + 99, - MIN( 44 ) * - 28 ) DIV 30
----
-3

skipif mysql # not compatible
query I rowsort label-8415
SELECT + NULLIF ( - + 99, - MIN ( 44 ) * - 28 ) / 30
----
-3

query I rowsort
SELECT 33 * 16 AS col0
----
528

query I rowsort
SELECT + 97 * 97
----
9409

query I rowsort
SELECT DISTINCT + 20 AS col0
----
20

query I rowsort
SELECT ALL NULLIF ( - - 86, + 51 + + 50 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8420
SELECT ALL + NULLIF ( - COUNT( ALL - 21 ), + CAST( - 56 AS SIGNED ) ) col1, - MAX( ALL - 16 )
----
-1
16

skipif mysql # not compatible
query II rowsort label-8420
SELECT ALL + NULLIF ( - COUNT ( ALL - 21 ), + CAST ( - 56 AS INTEGER ) ) col1, - MAX ( ALL - 16 )
----
-1
16

query I rowsort
SELECT + 55 + + 54 * - 67
----
-3563

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT ALL + 75 * COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL + 75 * COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT - 64 * - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-8423
SELECT - 64 * - COUNT ( * )
----
64

query I rowsort
SELECT DISTINCT + - 26 * - - 34 AS col1
----
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT ALL + ( + MIN( DISTINCT + 22 ) )
----
22

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL + ( + MIN ( DISTINCT + 22 ) )
----
22

query I rowsort
SELECT + 82 + + 46
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT ALL + COUNT( * ) * - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT DISTINCT COALESCE ( - 98, - 58 )
----
-98

query I rowsort
SELECT ALL + + 51 * - 86
----
-4386

query I rowsort
SELECT - 80 AS col2
----
-80

query I rowsort
SELECT - - 82
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8432
SELECT DISTINCT - ( 72 ) + + 78 * - 58 * + - 51 + + - ( - 19 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT - ( 72 ) + + 78 * - 58 * + - 51 + + - ( - 19 ) / + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 60 AS col0, 13 * - ( - 98 )
----
60
1274

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT ALL + COUNT( ALL 30 ) + 43
----
44

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL + COUNT ( ALL 30 ) + 43
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8435
SELECT DISTINCT CAST( - CASE - - 24 WHEN + + 68 * - + CAST( NULL AS SIGNED ) THEN + - COUNT( * ) ELSE NULL END AS SIGNED ) / - 83 * - CAST( + + 43 AS SIGNED ) * + - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2, - 68
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-8435
SELECT DISTINCT CAST ( - CASE - - 24 WHEN + + 68 * - + CAST ( NULL AS INTEGER ) THEN + - COUNT ( * ) ELSE NULL END AS INTEGER ) / - 83 * - CAST ( + + 43 AS INTEGER ) * + - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2, - 68
----
NULL
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8436
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8437
SELECT COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8437
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 49 + 73 AS col0
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8439
SELECT + 44, 91 + + - CAST( NULL AS SIGNED ) col1
----
44
NULL

skipif mysql # not compatible
query II rowsort label-8439
SELECT + 44, 91 + + - CAST ( NULL AS INTEGER ) col1
----
44
NULL

query II rowsort
SELECT + 47, 94 AS col2
----
47
94

query I rowsort
SELECT ALL 84 + CASE 41 WHEN - - 50 THEN + 20 / + 94 * 46 ELSE NULL END * + 50
----
NULL

query I rowsort
SELECT ALL 42 + - - 87
----
129

query I rowsort
SELECT 53 * + 79 * 86 AS col2
----
360082

query I rowsort
SELECT 24 + + 39
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8445
SELECT SUM( 77 ) / - - 38 + + ( + - NULLIF ( + 56, + 88 + + - 49 - - COALESCE ( + CAST( + 95 AS SIGNED ), - 89 / - + 10 - 96 ) ) ) * - ( + ( + 95 ) ) * NULLIF ( + CASE + + COUNT( * ) WHEN - 77 THEN - - 88 + - + COUNT( * ) * 26 END, + 86 + + 5 * - + 64 * + 32 * + 44 ) * + 79 + + - COUNT( * ) + + - 0 * - COUNT( ALL + - 95 ) * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-8445
SELECT SUM ( 77 ) / - - 38 + + ( + - NULLIF ( + 56, + 88 + + - 49 - - COALESCE ( + CAST ( + 95 AS INTEGER ), - 89 / - + 10 - 96 ) ) ) * - ( + ( + 95 ) ) * NULLIF ( + CASE + + COUNT ( * ) WHEN - 77 THEN - - 88 + - + COUNT ( * ) * 26 END, + 86 + + 5 * - + 64 * + 32 * + 44 ) * + 79 + + - COUNT ( * ) + + - 0 * - COUNT ( ALL + - 95 ) * 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8446
SELECT ALL NULLIF ( - + SUM( 37 ), - CAST( NULL AS SIGNED ) + - + 64 ) * + - 18 * - 17
----
-11322

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL NULLIF ( - + SUM ( 37 ), - CAST ( NULL AS INTEGER ) + - + 64 ) * + - 18 * - 17
----
-11322

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8447
SELECT 76 AS col0, - 4 + - CAST( NULL AS DECIMAL ) * - - ( MIN( ALL + 67 ) ) AS col0
----
76
NULL

skipif mysql # not compatible
query II rowsort label-8447
SELECT 76 AS col0, - 4 + - CAST ( NULL AS REAL ) * - - ( MIN ( ALL + 67 ) ) AS col0
----
76
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8448
SELECT ALL 48 + + 33 + - 55 DIV - 25
----
83

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL 48 + + 33 + - 55 / - 25
----
83

query I rowsort
SELECT 43 * + 50 AS col0
----
2150

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8450
SELECT ALL + CAST( NULL AS DECIMAL ) * 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL + CAST ( NULL AS REAL ) * 93 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 91 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT 68 + COALESCE ( - 57, 71 * - 21 + + + SUM( DISTINCT ( 56 ) ) ) * - + COUNT( * ) AS col1
----
125

skipif mysql # not compatible
query I rowsort label-8452
SELECT 68 + COALESCE ( - 57, 71 * - 21 + + + SUM ( DISTINCT ( 56 ) ) ) * - + COUNT ( * ) AS col1
----
125

query II rowsort
SELECT ALL - 4 AS col2, 19
----
-4
19

onlyif mysql # DIV for integer division: 
query II rowsort label-8454
SELECT DISTINCT 47 - + + 47 DIV 28 * - - 82, 49 * 59 + 22 AS col2
----
-35
2913

skipif mysql # not compatible
query II rowsort label-8454
SELECT DISTINCT 47 - + + 47 / 28 * - - 82, 49 * 59 + 22 AS col2
----
-35
2913

query I rowsort
SELECT DISTINCT - + 71 col1
----
-71

query I rowsort
SELECT ALL 76 * 42 + 31 AS col1
----
3223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8457
SELECT + 46 + 1 + - CAST( NULL AS SIGNED ) + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8457
SELECT + 46 + 1 + - CAST ( NULL AS INTEGER ) + 72 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8458
SELECT DISTINCT - + COUNT( * ), 31 * - - ( - 67 ) * - 51 + + + CAST( - - CASE + + 6 WHEN - - ( + 8 ) / - 13 THEN + ( - 44 ) WHEN + 30 + + 81 THEN NULL ELSE 33 END AS SIGNED ) col1
----
-1
105960

skipif mysql # not compatible
query II rowsort label-8458
SELECT DISTINCT - + COUNT ( * ), 31 * - - ( - 67 ) * - 51 + + + CAST ( - - CASE + + 6 WHEN - - ( + 8 ) / - 13 THEN + ( - 44 ) WHEN + 30 + + 81 THEN NULL ELSE 33 END AS INTEGER ) col1
----
-1
105960

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT - MAX( DISTINCT - + 40 ) col0
----
40

skipif mysql # not compatible
query I rowsort label-8459
SELECT - MAX ( DISTINCT - + 40 ) col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT + COUNT( DISTINCT + 81 ) * + 2 + 62 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-8460
SELECT + COUNT ( DISTINCT + 81 ) * + 2 + 62 AS col0
----
64

query I rowsort
SELECT ALL 33 * - 67 AS col2
----
-2211

query I rowsort
SELECT 71 * 96 AS col2
----
6816

query I rowsort
SELECT + 73 + + - 13 AS col2
----
60

query I rowsort
SELECT ALL + 70 * 22 AS col2
----
1540

query I rowsort
SELECT ( + - 77 ) + + + 80 col1
----
3

query I rowsort
SELECT DISTINCT - 37 * + + 75
----
-2775

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT DISTINCT MAX( + + 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-8467
SELECT DISTINCT MAX ( + + 95 ) AS col0
----
95

query I rowsort
SELECT DISTINCT NULLIF ( + - 37, 12 * + COALESCE ( + 99, + 60 ) + 35 + + 50 ) AS col2
----
-37

query II rowsort
SELECT DISTINCT 41 AS col1, - 21 AS col1
----
41
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-8470
SELECT 86 DIV + 69 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8470
SELECT 86 / + 69 AS col1
----
1

query I rowsort
SELECT ALL 49 + - 49 * + 4
----
-147

onlyif mysql # aggregate syntax: 
query II rowsort label-8472
SELECT - COUNT( * ) col0, - 44
----
-1
-44

skipif mysql # not compatible
query II rowsort label-8472
SELECT - COUNT ( * ) col0, - 44
----
-1
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8473
SELECT + CAST( - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8473
SELECT + CAST ( - COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8474
SELECT + + 5 DIV - - 44 + - - 95
----
95

skipif mysql # not compatible
query I rowsort label-8474
SELECT + + 5 / - - 44 + - - 95
----
95

query I rowsort
SELECT - + 99 * 89 AS col1
----
-8811

onlyif mysql # aggregate syntax: 
query II rowsort label-8476
SELECT - - 24 * + - COUNT( * ) * - + ( + COUNT( - CASE + 94 WHEN - 52 - - ( 13 ) * - 33 THEN NULL ELSE 46 + 22 - + 56 END ) ) * - + 85 AS col2, + 85 + 49
----
-2040
134

skipif mysql # not compatible
query II rowsort label-8476
SELECT - - 24 * + - COUNT ( * ) * - + ( + COUNT ( - CASE + 94 WHEN - 52 - - ( 13 ) * - 33 THEN NULL ELSE 46 + 22 - + 56 END ) ) * - + 85 AS col2, + 85 + 49
----
-2040
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8477
SELECT ALL + + 48 + - COUNT( * ) - COUNT( * ) + + 14 DIV + 33 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-8477
SELECT ALL + + 48 + - COUNT ( * ) - COUNT ( * ) + + 14 / + 33 AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8478
SELECT - 2 - - 71 * 63 + 92 - 1 * - 24 + - 23 + + - CASE COALESCE ( + 89, + - 12 - 62 ) WHEN 79 / + - 74 / + + 46 THEN - + CAST( - - 23 AS SIGNED ) / + COUNT( * ) / - - 54 + - 14 + + 86 + - MIN( + + 43 ) + - COUNT( * ) ELSE NULL END + + 83 - + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT - 2 - - 71 * 63 + 92 - 1 * - 24 + - 23 + + - CASE COALESCE ( + 89, + - 12 - 62 ) WHEN 79 / + - 74 / + + 46 THEN - + CAST ( - - 23 AS INTEGER ) / + COUNT ( * ) / - - 54 + - 14 + + 86 + - MIN ( + + 43 ) + - COUNT ( * ) ELSE NULL END + + 83 - + 81
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8479
SELECT ALL + 94 * 11 AS col0, + CAST( NULL AS DECIMAL ) * - 76
----
1034
NULL

skipif mysql # not compatible
query II rowsort label-8479
SELECT ALL + 94 * 11 AS col0, + CAST ( NULL AS REAL ) * - 76
----
1034
NULL

query I rowsort
SELECT ALL COALESCE ( 2, 47 ) AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8481
SELECT ALL + NULLIF ( - CAST( NULL AS SIGNED ), - 63 + - 30 + + - 54 + CAST( NULL AS SIGNED ) * + - 20 / + 16 + + 61 + - COUNT( * ) * - - 34 ) + + 20 + 30, 84 + 13 - MIN( DISTINCT + 48 ) AS col1
----
NULL
49

skipif mysql # not compatible
query II rowsort label-8481
SELECT ALL + NULLIF ( - CAST ( NULL AS INTEGER ), - 63 + - 30 + + - 54 + CAST ( NULL AS INTEGER ) * + - 20 / + 16 + + 61 + - COUNT ( * ) * - - 34 ) + + 20 + 30, 84 + 13 - MIN ( DISTINCT + 48 ) AS col1
----
NULL
49

onlyif mysql # DIV for integer division: 
query I rowsort label-8482
SELECT ALL - 4 + - 92 + + 82 DIV - 83 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL - 4 + - 92 + + 82 / - 83 AS col0
----
-96

query II rowsort
SELECT DISTINCT + 77 * + 94 AS col1, 8 AS col1
----
7238
8

onlyif mysql # DIV for integer division: 
query II rowsort label-8484
SELECT - 19 + - 89, + 55 DIV NULLIF ( - - ( 3 ), + 71 ) col0
----
-108
18

skipif mysql # not compatible
query II rowsort label-8484
SELECT - 19 + - 89, + 55 / NULLIF ( - - ( 3 ), + 71 ) col0
----
-108
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8485
SELECT - ( + CAST( - 15 AS SIGNED ) ) * 4 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-8485
SELECT - ( + CAST ( - 15 AS INTEGER ) ) * 4 AS col2
----
60

query I rowsort
SELECT NULLIF ( - 8, - 83 )
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-8487
SELECT COALESCE ( + 61, - 4, 34 + 18 DIV - 44 )
----
61

skipif mysql # not compatible
query I rowsort label-8487
SELECT COALESCE ( + 61, - 4, 34 + 18 / - 44 )
----
61

query I rowsort
SELECT ALL 75 * - - 94 * - 29 - 44 + 27 * + 93
----
-201983

onlyif mysql # aggregate syntax: 
query II rowsort label-8489
SELECT + SUM( 17 ), - 0 AS col1
----
17
0

skipif mysql # not compatible
query II rowsort label-8489
SELECT + SUM ( 17 ), - 0 AS col1
----
17
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT COALESCE ( COUNT( * ), 52 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8490
SELECT COALESCE ( COUNT ( * ), 52 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8491
SELECT ALL - 32 DIV + COUNT( * ) AS col0, 33 * + + 23 + - 27 AS col0
----
-32
732

skipif mysql # not compatible
query II rowsort label-8491
SELECT ALL - 32 / + COUNT ( * ) AS col0, 33 * + + 23 + - 27 AS col0
----
-32
732

query I rowsort
SELECT ALL + 33 AS col0
----
33

query I rowsort
SELECT ALL + 39 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT DISTINCT + ( + COUNT( - - 3 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT + ( + COUNT ( - - 3 ) )
----
1

query I rowsort
SELECT ALL 70 * + 3 * - 55 AS col0
----
-11550

onlyif mysql # aggregate syntax: 
query II rowsort label-8496
SELECT DISTINCT - 24 * - - 5, 57 + - 64 + 46 + + COUNT( * ) AS col2
----
-120
40

skipif mysql # not compatible
query II rowsort label-8496
SELECT DISTINCT - 24 * - - 5, 57 + - 64 + 46 + + COUNT ( * ) AS col2
----
-120
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8497
SELECT ALL + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 34 col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT - + COUNT( * ) * + - 30 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8499
SELECT - + COUNT ( * ) * + - 30 AS col1
----
30

query I rowsort
SELECT ALL + - 27 AS col0
----
-27

query I rowsort
SELECT - - 36 * + + 95 * + - 26 * - 23 AS col0
----
2045160

query I rowsort
SELECT + ( + 98 ) AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8503
SELECT - 10 - + COALESCE ( ( 15 ), - CAST( NULL AS SIGNED ) * 39 + + ( + COALESCE ( - - 87, 30 DIV + 0 - - - COALESCE ( 52, - CASE + COUNT( * ) WHEN - - COUNT( * ) THEN NULL WHEN + 46 * COUNT( - 82 ) + 37 - - - 34 THEN - 83 * + 9 WHEN - + 10 THEN - - 39 + 3 ELSE + 89 * - + 87 END, - + 53 ) ) ) DIV 79 * - + 65 ) - 12
----
-37

skipif mysql # not compatible
query I rowsort label-8503
SELECT - 10 - + COALESCE ( ( 15 ), - CAST ( NULL AS INTEGER ) * 39 + + ( + COALESCE ( - - 87, 30 / + 0 - - - COALESCE ( 52, - CASE + COUNT ( * ) WHEN - - COUNT ( * ) THEN NULL WHEN + 46 * COUNT ( - 82 ) + 37 - - - 34 THEN - 83 * + 9 WHEN - + 10 THEN - - 39 + 3 ELSE + 89 * - + 87 END, - + 53 ) ) ) / 79 * - + 65 ) - 12
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT DISTINCT + NULLIF ( COUNT( * ), 25 )
----
1

skipif mysql # not compatible
query I rowsort label-8504
SELECT DISTINCT + NULLIF ( COUNT ( * ), 25 )
----
1

query I rowsort
SELECT ALL + - 54 col0
----
-54

query I rowsort
SELECT + - 63
----
-63

query I rowsort
SELECT ALL + - 93
----
-93

query I rowsort
SELECT DISTINCT - 83
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT ALL + + ( - 94 ) * + - COUNT( * ) * 66 + 24 * - - 42 * ( - 68 ) + + + 12
----
-62328

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL + + ( - 94 ) * + - COUNT ( * ) * 66 + 24 * - - 42 * ( - 68 ) + + + 12
----
-62328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8510
SELECT + + CASE 11 WHEN 74 THEN + 31 * + - COUNT( * ) WHEN NULLIF ( COUNT( * ), 28 + ( + 57 ) ) THEN - COALESCE ( - - COUNT( ALL - ( + 13 ) ), 12 + - + 71, + + 72 * + 78 + + 52 * + 42 + - - 47 ) ELSE ( + 89 ) * 39 END - - 14 * + COUNT( * ) - - 49 * - + 91, - COUNT( * ) + + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-974
-2

skipif mysql # not compatible
query II rowsort label-8510
SELECT + + CASE 11 WHEN 74 THEN + 31 * + - COUNT ( * ) WHEN NULLIF ( COUNT ( * ), 28 + ( + 57 ) ) THEN - COALESCE ( - - COUNT ( ALL - ( + 13 ) ), 12 + - + 71, + + 72 * + 78 + + 52 * + 42 + - - 47 ) ELSE ( + 89 ) * 39 END - - 14 * + COUNT ( * ) - - 49 * - + 91, - COUNT ( * ) + + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-974
-2

query II rowsort
SELECT ALL + ( + - 13 ), 98 AS col0
----
-13
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8512
SELECT ALL + 14 + + 51 col0, + 53 * - ( - 96 ) * + ( + ( - COALESCE ( + 68, + NULLIF ( + SUM( - 77 ), + ( + + 97 ) ) * - 54 ) ) ) * CAST( NULL AS SIGNED ) + + 25 / + 93 + - 59
----
65
NULL

skipif mysql # not compatible
query II rowsort label-8512
SELECT ALL + 14 + + 51 col0, + 53 * - ( - 96 ) * + ( + ( - COALESCE ( + 68, + NULLIF ( + SUM ( - 77 ), + ( + + 97 ) ) * - 54 ) ) ) * CAST ( NULL AS INTEGER ) + + 25 / + 93 + - 59
----
65
NULL

query I rowsort
SELECT - + 19
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT ALL 56 + 28 + - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL 56 + 28 + - COUNT ( * )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8515
SELECT + NULLIF ( CAST( NULL AS SIGNED ), + 11 ) + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8515
SELECT + NULLIF ( CAST ( NULL AS INTEGER ), + 11 ) + 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT + 39 + - COUNT( DISTINCT 67 )
----
38

skipif mysql # not compatible
query I rowsort label-8516
SELECT + 39 + - COUNT ( DISTINCT 67 )
----
38

query I rowsort
SELECT 85 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT - NULLIF ( ( - COUNT( 92 ) ), 9 ) + ( 22 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-8518
SELECT - NULLIF ( ( - COUNT ( 92 ) ), 9 ) + ( 22 ) AS col0
----
23

query I rowsort
SELECT - ( 15 ) AS col0
----
-15

query I rowsort
SELECT - 25 + - NULLIF ( + 59, - 23 ) * ( - + 32 ) + 67 AS col0
----
1930

query I rowsort
SELECT + 37 * 95
----
3515

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8522
SELECT DISTINCT - 27 DIV + COUNT( ALL - 44 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT - 27 / + COUNT ( ALL - 44 ) AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8523
SELECT ALL + 73 - - 25 + + - 24 + - 50 + - 6 * + 12 * - 78 * + COUNT( * ) * + CAST( NULL AS SIGNED ) + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL + 73 - - 25 + + - 24 + - 50 + - 6 * + 12 * - 78 * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - 69
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8524
SELECT + SUM( + 10 ) DIV 28
----
0

skipif mysql # not compatible
query I rowsort label-8524
SELECT + SUM ( + 10 ) / 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT ALL ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL ( COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT + 94
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT DISTINCT - COUNT( * ) * + - 54
----
54

skipif mysql # not compatible
query I rowsort label-8527
SELECT DISTINCT - COUNT ( * ) * + - 54
----
54

query I rowsort
SELECT + 66 AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8529
SELECT CAST( - + CASE 32 WHEN + - 16 THEN 85 * + 84 WHEN - COALESCE ( + 74, + 89 * 28 - 88, + 4 * + 56, 39 * + + 32 + 25 - - + 76 * + 45 * 94 + + - 78 ) THEN NULL END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8529
SELECT CAST ( - + CASE 32 WHEN + - 16 THEN 85 * + 84 WHEN - COALESCE ( + 74, + 89 * 28 - 88, + 4 * + 56, 39 * + + 32 + 25 - - + 76 * + 45 * 94 + + - 78 ) THEN NULL END AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT - 35 * + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-8530
SELECT - 35 * + COUNT ( * )
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-8531
SELECT DISTINCT + 29 AS col0, - COUNT( * ) * + 3
----
29
-3

skipif mysql # not compatible
query II rowsort label-8531
SELECT DISTINCT + 29 AS col0, - COUNT ( * ) * + 3
----
29
-3

query I rowsort
SELECT ALL + - ( - 51 )
----
51

query II rowsort
SELECT ALL + 11, 63 AS col2
----
11
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8534
SELECT - CASE - 74 WHEN + 31 + - 54 THEN - - 51 WHEN + 99 + + 83 THEN NULL ELSE 9 END DIV 65 * COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8534
SELECT - CASE - 74 WHEN + 31 + - 54 THEN - - 51 WHEN + 99 + + 83 THEN NULL ELSE 9 END / 65 * COUNT ( * ) AS col2
----
0

query I rowsort
SELECT - 55 * - + 96
----
5280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8536
SELECT CAST( NULL AS SIGNED ) * - 86 * - COUNT( * ) + + - COUNT( * ) + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8536
SELECT CAST ( NULL AS INTEGER ) * - 86 * - COUNT ( * ) + + - COUNT ( * ) + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT - + 73 + + COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-8537
SELECT - + 73 + + COUNT ( * )
----
-72

query I rowsort
SELECT ALL + 90 AS col1
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8539
SELECT - - 98 DIV - 15 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-8539
SELECT - - 98 / - 15 AS col0
----
-6

query I rowsort
SELECT 1 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8541
SELECT DISTINCT - + 19 DIV 43 + + + COUNT( * ) * + + NULLIF ( + - 78, + COUNT( * ) ) * + 31 AS col0
----
-2418

skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT - + 19 / 43 + + + COUNT ( * ) * + + NULLIF ( + - 78, + COUNT ( * ) ) * + 31 AS col0
----
-2418

query I rowsort
SELECT ALL - 79 * 36 + + + 17 AS col2
----
-2827

query I rowsort
SELECT 7 * + 92 + - 23 + + - 17 col0
----
604

onlyif mysql # DIV for integer division: 
query I rowsort label-8544
SELECT 57 DIV - 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8544
SELECT 57 / - 94 AS col1
----
0

query I rowsort
SELECT ALL + - 44 + - + 9 AS col1
----
-53

query I rowsort
SELECT + 81 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT ALL - MIN( DISTINCT + 97 ) + 73
----
-24

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL - MIN ( DISTINCT + 97 ) + 73
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8548
SELECT DISTINCT - 5, + COUNT( ALL - 15 ) DIV - 28 - + - ( + - 42 ) + 49 + 16 * + - 3 - + + COUNT( * ) * - MAX( - 9 ) - + 53 + + + 38 + + 61 * - 14 - + 23 * + + COUNT( * ) + CASE - + COUNT( * ) WHEN - 82 THEN NULL ELSE - NULLIF ( + 50, - 6 + - + 18 - - COUNT( * ) ) END + + COUNT( 5 ) * - 24 + - 62 AS col1
----
-5
-1078

skipif mysql # not compatible
query II rowsort label-8548
SELECT DISTINCT - 5, + COUNT ( ALL - 15 ) / - 28 - + - ( + - 42 ) + 49 + 16 * + - 3 - + + COUNT ( * ) * - MAX ( - 9 ) - + 53 + + + 38 + + 61 * - 14 - + 23 * + + COUNT ( * ) + CASE - + COUNT ( * ) WHEN - 82 THEN NULL ELSE - NULLIF ( + 50, - 6 + - + 18 - - COUNT ( * ) ) END + + COUNT ( 5 ) * - 24 + - 62 AS col1
----
-5
-1078

query I rowsort
SELECT ( - 24 ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-8550
SELECT DISTINCT - - 15 + - MAX( 20 ), + COALESCE ( 82, 47 + + 26 ) AS col1
----
-5
82

skipif mysql # not compatible
query II rowsort label-8550
SELECT DISTINCT - - 15 + - MAX ( 20 ), + COALESCE ( 82, 47 + + 26 ) AS col1
----
-5
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8551
SELECT ALL - MIN( 63 ) DIV - COUNT( - - 35 ) - - 14 * COUNT( ALL - 73 )
----
77

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL - MIN ( 63 ) / - COUNT ( - - 35 ) - - 14 * COUNT ( ALL - 73 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT 26 * COUNT( * ) * + 55 * + + 78 - - - 49 AS col0
----
111491

skipif mysql # not compatible
query I rowsort label-8552
SELECT 26 * COUNT ( * ) * + 55 * + + 78 - - - 49 AS col0
----
111491

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT ALL - 91 + + 83 * + + 29 * COUNT( * )
----
2316

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL - 91 + + 83 * + + 29 * COUNT ( * )
----
2316

query I rowsort
SELECT DISTINCT 60 AS col0
----
60

query I rowsort
SELECT DISTINCT 28
----
28

query I rowsort
SELECT 18 - + - 42 AS col2
----
60

query I rowsort
SELECT 53 * - 38
----
-2014

query I rowsort
SELECT DISTINCT 36 AS col1
----
36

query I rowsort
SELECT 49 AS col2
----
49

query I rowsort
SELECT - 90 AS col1
----
-90

query I rowsort
SELECT 43 * ( 63 ) AS col2
----
2709

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8562
SELECT DISTINCT - COUNT( + 70 ) DIV 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT - COUNT ( + 70 ) / 21 AS col2
----
0

query I rowsort
SELECT 73 AS col2
----
73

query I rowsort
SELECT DISTINCT 57
----
57

query I rowsort
SELECT ALL 9
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT MAX( DISTINCT - - 82 ) + - 1 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-8566
SELECT MAX ( DISTINCT - - 82 ) + - 1 AS col0
----
81

query I rowsort
SELECT - 64 AS col0
----
-64

query I rowsort
SELECT + 42 * + - 74 + + 46
----
-3062

query I rowsort
SELECT DISTINCT - 29 col2
----
-29

query I rowsort
SELECT + 21
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8571
SELECT ALL SUM( 29 ) DIV - 38 * - - 22 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL SUM ( 29 ) / - 38 * - - 22 AS col2
----
0

query I rowsort
SELECT 81 AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8573
SELECT 13 / 17 * + - MAX( + - ( 34 ) ) / CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8573
SELECT 13 / 17 * + - MAX ( + - ( 34 ) ) / CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ( - 37 ) * - - 26
----
-962

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT DISTINCT - + COUNT( + 2 ) + - 99
----
-100

skipif mysql # not compatible
query I rowsort label-8575
SELECT DISTINCT - + COUNT ( + 2 ) + - 99
----
-100

query I rowsort
SELECT DISTINCT - 74 col2
----
-74

query I rowsort
SELECT DISTINCT - 64 AS col0
----
-64

query I rowsort
SELECT 23 * + 16
----
368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8579
SELECT ALL - 56 + - COALESCE ( + 33, - 67 DIV - COUNT( * ), - 62 ) - 83 col2
----
-172

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL - 56 + - COALESCE ( + 33, - 67 / - COUNT ( * ), - 62 ) - 83 col2
----
-172

query I rowsort
SELECT ALL - - 16 AS col0
----
16

query I rowsort
SELECT + 65
----
65

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8582
SELECT - CAST( NULL AS DECIMAL ) * CAST( + - ( - 79 ) AS SIGNED ) - + 1 + + 79 * - 56 + 48 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8582
SELECT - CAST ( NULL AS REAL ) * CAST ( + - ( - 79 ) AS INTEGER ) - + 1 + + 79 * - 56 + 48 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 73 + - 81 * + 49 AS col2
----
-3896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8584
SELECT ALL - CAST( + 16 AS SIGNED ) + - + 15
----
-31

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL - CAST ( + 16 AS INTEGER ) + - + 15
----
-31

query I rowsort
SELECT - - 67 * - + 22 + + 75 AS col0
----
-1399

query I rowsort
SELECT DISTINCT - - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT ALL - - COUNT( * ) - - - COUNT( * ) + + + 12
----
12

skipif mysql # not compatible
query I rowsort label-8587
SELECT ALL - - COUNT ( * ) - - - COUNT ( * ) + + + 12
----
12

query I rowsort
SELECT - - 71
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8589
SELECT + CAST( NULL AS SIGNED ) * + 7 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8589
SELECT + CAST ( NULL AS INTEGER ) * + 7 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8590
SELECT 74 + + + CAST( NULL AS SIGNED ) * + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8590
SELECT 74 + + + CAST ( NULL AS INTEGER ) * + + 20
----
NULL

query I rowsort
SELECT - 57 - + - 50
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8592
SELECT DISTINCT + 18 * + CAST( - - 57 AS SIGNED ) AS col0
----
1026

skipif mysql # not compatible
query I rowsort label-8592
SELECT DISTINCT + 18 * + CAST ( - - 57 AS INTEGER ) AS col0
----
1026

query I rowsort
SELECT 37 * + 74 AS col2
----
2738

query I rowsort
SELECT - 85 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT DISTINCT + COUNT( * ) * 38 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-8595
SELECT DISTINCT + COUNT ( * ) * 38 AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8596
SELECT ALL - CAST( 6 AS SIGNED ) * - COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL - CAST ( 6 AS INTEGER ) * - COUNT ( * ) AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8597
SELECT ALL 60 DIV + - 62 * + - 63
----
0

skipif mysql # not compatible
query I rowsort label-8597
SELECT ALL 60 / + - 62 * + - 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT SUM( - ( - 88 ) ) + - - 48 col2
----
136

skipif mysql # not compatible
query I rowsort label-8598
SELECT SUM ( - ( - 88 ) ) + - - 48 col2
----
136

query I rowsort
SELECT 48 col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8600
SELECT 72 + 46 + - CAST( + ( - - 17 ) AS SIGNED ) - SUM( - 69 ) DIV + 17 * - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-8600
SELECT 72 + 46 + - CAST ( + ( - - 17 ) AS INTEGER ) - SUM ( - 69 ) / + 17 * - COUNT ( * )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8601
SELECT SUM( ALL - 0 ) * + 67 * + + CAST( + - 96 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8601
SELECT SUM ( ALL - 0 ) * + 67 * + + CAST ( + - 96 AS INTEGER )
----
0

query I rowsort
SELECT 49 + + 77
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT DISTINCT MAX( ALL 80 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-8603
SELECT DISTINCT MAX ( ALL 80 ) AS col0
----
80

query I rowsort
SELECT 62 * 1
----
62

query I rowsort
SELECT DISTINCT 15
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8606
SELECT 6 + ( - 96 ) DIV 98
----
6

skipif mysql # not compatible
query I rowsort label-8606
SELECT 6 + ( - 96 ) / 98
----
6

query I rowsort
SELECT - 19 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT 84 + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-8608
SELECT 84 + COUNT ( * )
----
85

query I rowsort
SELECT ALL + 11 * + - 32 * + 88 AS col0
----
-30976

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8610
SELECT CASE - + 56 WHEN 19 / + ( 50 ) + 84 - 76 THEN - + COALESCE ( - COUNT( * ), + 43 + - + 80 ) * + + CAST( 20 AS DECIMAL ) * + 92 + SUM( + 44 ) * - COUNT( * ) + - ( MIN( - 63 ) ) / + 19 END + + - 68 * - - 88 * + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT CASE - + 56 WHEN 19 / + ( 50 ) + 84 - 76 THEN - + COALESCE ( - COUNT ( * ), + 43 + - + 80 ) * + + CAST ( 20 AS REAL ) * + 92 + SUM ( + 44 ) * - COUNT ( * ) + - ( MIN ( - 63 ) ) / + 19 END + + - 68 * - - 88 * + 15 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 9 * - 29 + - 65 AS col0
----
196

query I rowsort
SELECT ALL - 67 AS col0
----
-67

query I rowsort
SELECT CASE + 63 WHEN ( - 30 ) THEN + 70 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT - 61 * 65 + - 48 * + COALESCE ( ( 86 ), 45 * - COUNT( * ) + 30 )
----
-8093

skipif mysql # not compatible
query I rowsort label-8614
SELECT - 61 * 65 + - 48 * + COALESCE ( ( 86 ), 45 * - COUNT ( * ) + 30 )
----
-8093

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT DISTINCT + NULLIF ( COUNT( DISTINCT + 21 ), 59 ) * - 33 + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-8615
SELECT DISTINCT + NULLIF ( COUNT ( DISTINCT + 21 ), 59 ) * - 33 + COUNT ( * )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT CASE + 43 WHEN - ( + COUNT( * ) ) THEN - 41 * 0 + 4 ELSE 55 + 78 END
----
133

skipif mysql # not compatible
query I rowsort label-8616
SELECT CASE + 43 WHEN - ( + COUNT ( * ) ) THEN - 41 * 0 + 4 ELSE 55 + 78 END
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8617
SELECT 39 DIV + 91 + + COUNT( * ) * COUNT( DISTINCT 96 DIV 72 )
----
1

skipif mysql # not compatible
query I rowsort label-8617
SELECT 39 / + 91 + + COUNT ( * ) * COUNT ( DISTINCT 96 / 72 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT - 99 * COALESCE ( - COUNT( * ), 89 * 1, COUNT( * ) + - COUNT( * ) ) + COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-8618
SELECT - 99 * COALESCE ( - COUNT ( * ), 89 * 1, COUNT ( * ) + - COUNT ( * ) ) + COUNT ( * )
----
100

query I rowsort
SELECT ALL + 83 col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT - 5 * - 81 + + NULLIF ( - 1 - 44 * 57, COUNT( * ) )
----
-2104

skipif mysql # not compatible
query I rowsort label-8620
SELECT - 5 * - 81 + + NULLIF ( - 1 - 44 * 57, COUNT ( * ) )
----
-2104

query I rowsort
SELECT ALL - 5 * + 63 - 27 col1
----
-342

onlyif mysql # DIV for integer division: 
query I rowsort label-8622
SELECT ALL 68 DIV 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL 68 / 76 AS col0
----
0

query I rowsort
SELECT + 80 + 55 AS col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT ALL + 66 * - COUNT( 65 ) - - 46 * 8
----
302

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL + 66 * - COUNT ( 65 ) - - 46 * 8
----
302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8625
SELECT ALL + 49 * CASE CAST( 10 AS SIGNED ) WHEN 47 THEN NULL WHEN - 5 * - ( 5 / + 47 ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL + 49 * CASE CAST ( 10 AS INTEGER ) WHEN 47 THEN NULL WHEN - 5 * - ( 5 / + 47 ) THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT SUM( 6 )
----
6

skipif mysql # not compatible
query I rowsort label-8626
SELECT SUM ( 6 )
----
6

query I rowsort
SELECT ALL + 73 AS col0
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8628
SELECT DISTINCT + COALESCE ( + 35, ( - 50 ) DIV + CASE 31 DIV 66 WHEN 51 THEN 59 * + 91 + + 88 * COUNT( * ) WHEN CASE 91 WHEN 54 THEN NULL WHEN SUM( 38 ) + - 85 * 70 THEN 41 END DIV 61 THEN NULL END + 18, + 64 )
----
35

skipif mysql # not compatible
query I rowsort label-8628
SELECT DISTINCT + COALESCE ( + 35, ( - 50 ) / + CASE 31 / 66 WHEN 51 THEN 59 * + 91 + + 88 * COUNT ( * ) WHEN CASE 91 WHEN 54 THEN NULL WHEN SUM ( 38 ) + - 85 * 70 THEN 41 END / 61 THEN NULL END + 18, + 64 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT - COUNT( * ) * - 46
----
46

skipif mysql # not compatible
query I rowsort label-8629
SELECT - COUNT ( * ) * - 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT SUM( - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-8630
SELECT SUM ( - 96 )
----
-96

query I rowsort
SELECT + 66 * 14 + - 41
----
883

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT + NULLIF ( - 97, - 97 + - COUNT( * ) ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-8632
SELECT + NULLIF ( - 97, - 97 + - COUNT ( * ) ) AS col1
----
-97

query I rowsort
SELECT - 2 + + 18
----
16

query I rowsort
SELECT + ( 28 )
----
28

query I rowsort
SELECT - 85 col0
----
-85

query I rowsort
SELECT DISTINCT 37 AS col2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8637
SELECT DISTINCT + 96 DIV - 26 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT + 96 / - 26 AS col2
----
-3

query I rowsort
SELECT ALL NULLIF ( + 45, - 73 + - 11 * - 55 ) AS col1
----
45

query I rowsort
SELECT DISTINCT + 87 * 79
----
6873

query I rowsort
SELECT - ( 76 ) * + 61
----
-4636

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT DISTINCT ( - MAX( DISTINCT ( - 32 ) ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT ( - MAX ( DISTINCT ( - 32 ) ) ) AS col2
----
32

query I rowsort
SELECT + 30 - 18
----
12

query I rowsort
SELECT - 51 AS col1
----
-51

query I rowsort
SELECT - 53 AS col2
----
-53

query I rowsort
SELECT - 6 * + ( 32 ) col0
----
-192

query I rowsort
SELECT DISTINCT + 24 * 59 col1
----
1416

query I rowsort
SELECT DISTINCT - 69 + 5 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT ALL + 6 + COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL + 6 + COUNT ( * ) AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8649
SELECT ALL - COUNT( DISTINCT 3 ) + + CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL - COUNT ( DISTINCT 3 ) + + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

query I rowsort
SELECT - 76 - 77
----
-153

query I rowsort
SELECT ALL - 79 * 21 AS col0
----
-1659

query I rowsort
SELECT DISTINCT + 24 * - 13 AS col2
----
-312

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT - ( - COUNT( * ) ) - - 1
----
2

skipif mysql # not compatible
query I rowsort label-8653
SELECT - ( - COUNT ( * ) ) - - 1
----
2

query I rowsort
SELECT ALL 73 col1
----
73

query I rowsort
SELECT ALL - 22 + 9 * - 70
----
-652

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT MIN( 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-8656
SELECT MIN ( 96 ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT - - NULLIF ( 7, + COALESCE ( + 75, - COUNT( * ), 12, + 29 + - 34 ) )
----
7

skipif mysql # not compatible
query I rowsort label-8657
SELECT - - NULLIF ( 7, + COALESCE ( + 75, - COUNT ( * ), 12, + 29 + - 34 ) )
----
7

query I rowsort
SELECT - 31 + COALESCE ( + 94 - 27, 52, + 59 + NULLIF ( + 31, 54 ) ) AS col0
----
36

query I rowsort
SELECT + + 36 - + 6 * - 49
----
330

query I rowsort
SELECT ALL NULLIF ( + 42, + 43 / 33 )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8661
SELECT 61 DIV + 40 - + 37 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-8661
SELECT 61 / + 40 - + 37 AS col2
----
-36

query I rowsort
SELECT ALL + 96 AS col0
----
96

query I rowsort
SELECT 32 col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT - 79 / CASE + 64 + 1 WHEN - 82 + - 65 THEN NULL ELSE ( MAX( DISTINCT 5 ) ) / CASE 1 + + 87 WHEN - 44 THEN 10 WHEN 14 * 31 THEN - 44 ELSE NULL END END + MIN( + 67 + 71 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT - 79 / CASE + 64 + 1 WHEN - 82 + - 65 THEN NULL ELSE ( MAX ( DISTINCT 5 ) ) / CASE 1 + + 87 WHEN - 44 THEN 10 WHEN 14 * 31 THEN - 44 ELSE NULL END END + MIN ( + 67 + 71 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 45 col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT DISTINCT - + 8 * COUNT( DISTINCT 51 + 46 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-8666
SELECT DISTINCT - + 8 * COUNT ( DISTINCT 51 + 46 ) AS col0
----
-8

query I rowsort
SELECT ALL + 34
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT + COUNT( * ) * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8668
SELECT + COUNT ( * ) * COUNT ( * ) AS col2
----
1

query I rowsort
SELECT ALL + 4 * + 76 AS col1
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT DISTINCT + - MIN( DISTINCT + 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT + - MIN ( DISTINCT + 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT - 62 * 91 + - COUNT( * ) * + COUNT( ALL + 33 )
----
-5643

skipif mysql # not compatible
query I rowsort label-8671
SELECT - 62 * 91 + - COUNT ( * ) * + COUNT ( ALL + 33 )
----
-5643

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8672
SELECT ALL + - 96 * + COALESCE ( ( - 93 ) DIV CASE 18 + 42 WHEN + 49 THEN + COALESCE ( - 23, + COUNT( * ) ) WHEN MIN( - 82 ) * - 30 + MIN( + 26 ) DIV 34 THEN NULL WHEN + 16 - 52 * - ( 85 ) THEN NULL ELSE NULL END, 27 * + 10 + - COUNT( * ) ) - 81 AS col0
----
-25905

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL + - 96 * + COALESCE ( ( - 93 ) / CASE 18 + 42 WHEN + 49 THEN + COALESCE ( - 23, + COUNT ( * ) ) WHEN MIN ( - 82 ) * - 30 + MIN ( + 26 ) / 34 THEN NULL WHEN + 16 - 52 * - ( 85 ) THEN NULL ELSE NULL END, 27 * + 10 + - COUNT ( * ) ) - 81 AS col0
----
-25905

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT + + COUNT( * ) * - 76
----
-76

skipif mysql # not compatible
query I rowsort label-8673
SELECT + + COUNT ( * ) * - 76
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-8674
SELECT + 79 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-8674
SELECT + 79 / 86
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8675
SELECT DISTINCT 18 DIV 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT 18 / 64 AS col1
----
0

query I rowsort
SELECT ALL + 91
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT + 92 - COUNT( * ) * + 45 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8677
SELECT + 92 - COUNT ( * ) * + 45 AS col1
----
47

query I rowsort
SELECT + 90 + 37
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT ALL 2 * + - CASE + 70 WHEN - COUNT( * ) * MAX( - 56 ) THEN NULL WHEN 11 THEN - 10 * + 80 - 30 * - 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL 2 * + - CASE + 70 WHEN - COUNT ( * ) * MAX ( - 56 ) THEN NULL WHEN 11 THEN - 10 * + 80 - 30 * - 73 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT DISTINCT 99 * + COUNT( * ) * 43 + - 62 col0
----
4195

skipif mysql # not compatible
query I rowsort label-8680
SELECT DISTINCT 99 * + COUNT ( * ) * 43 + - 62 col0
----
4195

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT + COALESCE ( - 84, + 54 + ( - 31 ) ) + + COALESCE ( 33, COUNT( * ) * 64, + 90 + - 5 )
----
-51

skipif mysql # not compatible
query I rowsort label-8681
SELECT + COALESCE ( - 84, + 54 + ( - 31 ) ) + + COALESCE ( 33, COUNT ( * ) * 64, + 90 + - 5 )
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8682
SELECT - CAST( NULL AS SIGNED ) - - + 53 * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-8682
SELECT - CAST ( NULL AS INTEGER ) - - + 53 * 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT ALL 42 * ( COUNT( * ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL 42 * ( COUNT ( * ) ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT COUNT( ALL 43 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8684
SELECT COUNT ( ALL 43 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8685
SELECT - COALESCE ( - + COUNT( * ), + 22 + COUNT( * ) DIV 53 ) + - 20
----
-19

skipif mysql # not compatible
query I rowsort label-8685
SELECT - COALESCE ( - + COUNT ( * ), + 22 + COUNT ( * ) / 53 ) + - 20
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8686
SELECT - CAST( - - 3 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-8686
SELECT - CAST ( - - 3 AS INTEGER )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT + 83 * + ( - COUNT( * ) ) col2
----
-83

skipif mysql # not compatible
query I rowsort label-8687
SELECT + 83 * + ( - COUNT ( * ) ) col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT - 89 + - + 16 - - ( + NULLIF ( - MIN( ALL 97 ), COALESCE ( 34, - 54 + 80 * + 14, + COUNT( * ) ) ) ) AS col2
----
-202

skipif mysql # not compatible
query I rowsort label-8688
SELECT - 89 + - + 16 - - ( + NULLIF ( - MIN ( ALL 97 ), COALESCE ( 34, - 54 + 80 * + 14, + COUNT ( * ) ) ) ) AS col2
----
-202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8689
SELECT ALL CAST( NULL AS SIGNED ) * + + COUNT( * ) + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + 9 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT + 0 + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8690
SELECT + 0 + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT - 7
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT + CASE 12 WHEN 99 THEN 48 / 45 ELSE NULL END + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8692
SELECT + CASE 12 WHEN 99 THEN 48 / 45 ELSE NULL END + - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL ( + 29 ) col2
----
29

query I rowsort
SELECT DISTINCT 0 + + 30 AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8695
SELECT DISTINCT CAST( - 16 AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT CAST ( - 16 AS INTEGER )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT - 29 + + - COUNT( * ) + + MIN( + 95 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-8696
SELECT - 29 + + - COUNT ( * ) + + MIN ( + 95 ) AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8697
SELECT ALL COUNT( * ) + - ( NULLIF ( + CASE + CASE + CAST( NULL AS SIGNED ) WHEN 88 / 19 THEN + 60 WHEN 79 + 76 THEN + 76 * + 87 ELSE NULL END WHEN 68 + - COUNT( * ) * 54 THEN - 2 * 30 END, + ( 67 ) * - 25 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL COUNT ( * ) + - ( NULLIF ( + CASE + CASE + CAST ( NULL AS INTEGER ) WHEN 88 / 19 THEN + 60 WHEN 79 + 76 THEN + 76 * + 87 ELSE NULL END WHEN 68 + - COUNT ( * ) * 54 THEN - 2 * 30 END, + ( 67 ) * - 25 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT ( - 82 ) + - 83 * - MIN( ( 4 ) * 34 )
----
11206

skipif mysql # not compatible
query I rowsort label-8698
SELECT ( - 82 ) + - 83 * - MIN ( ( 4 ) * 34 )
----
11206

onlyif mysql # DIV for integer division: 
query I rowsort label-8699
SELECT 1 DIV 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8699
SELECT 1 / 73 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT + 85 + COUNT( * ) col2
----
86

skipif mysql # not compatible
query I rowsort label-8700
SELECT + 85 + COUNT ( * ) col2
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8701
SELECT ALL - + COUNT( * ) * - + 77 + - 19 DIV - 66 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-8701
SELECT ALL - + COUNT ( * ) * - + 77 + - 19 / - 66 AS col2
----
77

query I rowsort
SELECT - + ( 72 )
----
-72

query I rowsort
SELECT ALL - + 35 - - 11 + 1
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8704
SELECT - 52 * 60 * CAST( 69 AS SIGNED ) AS col2
----
-215280

skipif mysql # not compatible
query I rowsort label-8704
SELECT - 52 * 60 * CAST ( 69 AS INTEGER ) AS col2
----
-215280

query I rowsort
SELECT + 61 + - CASE + 14 WHEN - 43 THEN + 29 ELSE - 83 + - 24 END
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT 70 * - - 92 * + CASE 23 WHEN - 82 + - 76 / + COUNT( * ) THEN NULL WHEN 97 THEN + 29 * 43 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8706
SELECT 70 * - - 92 * + CASE 23 WHEN - 82 + - 76 / + COUNT ( * ) THEN NULL WHEN 97 THEN + 29 * 43 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + - 6 * + 10 * 14
----
-840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8708
SELECT 46 * - 8 * ( MIN( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8708
SELECT 46 * - 8 * ( MIN ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT DISTINCT - + 62 AS col2
----
-62

query I rowsort
SELECT + COALESCE ( - + 88, - 17, - 15 ) * 71
----
-6248

query I rowsort
SELECT ALL - + 84 AS col1
----
-84

query I rowsort
SELECT DISTINCT - 98 AS col2
----
-98

query I rowsort
SELECT - ( 9 ) * + 45 col1
----
-405

query I rowsort
SELECT - 37 + + 74 * + ( 70 + 24 ) AS col0
----
6919

query I rowsort
SELECT ALL - 92 * - 66
----
6072

query I rowsort
SELECT ALL - - 51
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8717
SELECT + 34 DIV - + ( + 82 ) + + 36 * ( 58 * - 87 )
----
-181656

skipif mysql # not compatible
query I rowsort label-8717
SELECT + 34 / - + ( + 82 ) + + 36 * ( 58 * - 87 )
----
-181656

query I rowsort
SELECT ALL 61 * + - 83 AS col1
----
-5063

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT 62 * + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-8719
SELECT 62 * + COUNT ( * )
----
62

query I rowsort
SELECT + 81 AS col2
----
81

query I rowsort
SELECT + 36 AS col2
----
36

query I rowsort
SELECT 52 * + 92 AS col2
----
4784

query I rowsort
SELECT ALL - NULLIF ( ( + - 72 ), - 12 * 1 )
----
72

query I rowsort
SELECT - 4 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT ALL COUNT( * ) * + 4
----
4

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL COUNT ( * ) * + 4
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8726
SELECT ALL 59 + - COALESCE ( - 17, - 21 DIV 25 ) + 23 * 91
----
2169

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL 59 + - COALESCE ( - 17, - 21 / 25 ) + 23 * 91
----
2169

query I rowsort
SELECT DISTINCT 63 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT ALL - COUNT( 42 ) - - 40
----
39

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL - COUNT ( 42 ) - - 40
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8729
SELECT ALL 17, COUNT( 70 ) * 50 AS col1
----
17
50

skipif mysql # not compatible
query II rowsort label-8729
SELECT ALL 17, COUNT ( 70 ) * 50 AS col1
----
17
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT DISTINCT 88 * + SUM( + 47 )
----
4136

skipif mysql # not compatible
query I rowsort label-8730
SELECT DISTINCT 88 * + SUM ( + 47 )
----
4136

query I rowsort
SELECT 96 + 17 AS col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT COUNT( * ) * MIN( DISTINCT 33 )
----
33

skipif mysql # not compatible
query I rowsort label-8732
SELECT COUNT ( * ) * MIN ( DISTINCT 33 )
----
33

query I rowsort
SELECT ALL + 49 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT - 36 - - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-8734
SELECT - 36 - - COUNT ( * )
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8735
SELECT DISTINCT COUNT( * ) * - 57 DIV - 55 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT COUNT ( * ) * - 57 / - 55 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT + COUNT( * ) - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8736
SELECT + COUNT ( * ) - COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8737
SELECT ALL - 25 AS col0, CAST( NULL AS SIGNED ) / + 27 * 60 AS col0
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-8737
SELECT ALL - 25 AS col0, CAST ( NULL AS INTEGER ) / + 27 * 60 AS col0
----
-25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT + 58 * 19 + + COUNT( * )
----
1103

skipif mysql # not compatible
query I rowsort label-8738
SELECT + 58 * 19 + + COUNT ( * )
----
1103

query I rowsort
SELECT ALL - 13
----
-13

query I rowsort
SELECT ALL ( - 95 ) col1
----
-95

query II rowsort
SELECT 99 AS col2, + 15
----
99
15

query I rowsort
SELECT ALL - 98 * 63 - + 77 * - 31 col0
----
-3787

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8743
SELECT - 86 DIV + + MIN( - + 35 )
----
2

skipif mysql # not compatible
query I rowsort label-8743
SELECT - 86 / + + MIN ( - + 35 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8744
SELECT ALL 55 DIV + + 73 + COUNT( 41 )
----
1

skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL 55 / + + 73 + COUNT ( 41 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT - 25 * + 18 * COUNT( * ) AS col2
----
-450

skipif mysql # not compatible
query I rowsort label-8745
SELECT - 25 * + 18 * COUNT ( * ) AS col2
----
-450

onlyif mysql # aggregate syntax: 
query II rowsort label-8746
SELECT + 46 col2, - COUNT( * ) + NULLIF ( - 56, 62 ) AS col1
----
46
-57

skipif mysql # not compatible
query II rowsort label-8746
SELECT + 46 col2, - COUNT ( * ) + NULLIF ( - 56, 62 ) AS col1
----
46
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT - 99 - + 89 + + ( MAX( 42 ) ) * + 52
----
1996

skipif mysql # not compatible
query I rowsort label-8747
SELECT - 99 - + 89 + + ( MAX ( 42 ) ) * + 52
----
1996

query I rowsort
SELECT - 85 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT - MAX( - + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-8749
SELECT - MAX ( - + 10 )
----
10

query I rowsort
SELECT ALL - 82 col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT - 52 / 99 * - + 1 * CASE 53 WHEN + ( + 60 ) * 62 THEN - 17 WHEN MIN( DISTINCT 63 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8751
SELECT - 52 / 99 * - + 1 * CASE 53 WHEN + ( + 60 ) * 62 THEN - 17 WHEN MIN ( DISTINCT 63 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT 84 * NULLIF ( + 16, - 2 / COUNT( * ) ) AS col1
----
1344

skipif mysql # not compatible
query I rowsort label-8752
SELECT 84 * NULLIF ( + 16, - 2 / COUNT ( * ) ) AS col1
----
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT CASE - 92 WHEN - COALESCE ( - ( - 27 ), 2 ) + - MIN( 67 ) THEN + NULLIF ( - 32, + COUNT( * ) ) WHEN 14 THEN - COUNT( * ) WHEN 44 + + 3 THEN - MAX( 20 ) END * - SUM( ALL 76 * 27 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8753
SELECT CASE - 92 WHEN - COALESCE ( - ( - 27 ), 2 ) + - MIN ( 67 ) THEN + NULLIF ( - 32, + COUNT ( * ) ) WHEN 14 THEN - COUNT ( * ) WHEN 44 + + 3 THEN - MAX ( 20 ) END * - SUM ( ALL 76 * 27 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT + + SUM( ALL ( - 21 ) ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-8754
SELECT + + SUM ( ALL ( - 21 ) ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT + ( + + 49 ) / + CASE - 57 WHEN - NULLIF ( 26, - 28 ) * MAX( - 92 ) THEN 52 / + 87 END + 32 + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-8755
SELECT + ( + + 49 ) / + CASE - 57 WHEN - NULLIF ( 26, - 28 ) * MAX ( - 92 ) THEN 52 / + 87 END + 32 + - 10
----
NULL

query I rowsort
SELECT ALL - + 18 AS col1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-8757
SELECT ( NULLIF ( + 64, - 83 ) ) DIV COALESCE ( 17, - 37 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8757
SELECT ( NULLIF ( + 64, - 83 ) ) / COALESCE ( 17, - 37 ) AS col1
----
3

query I rowsort
SELECT ALL + + ( - 50 ) * + 90 + + 11
----
-4489

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT ALL NULLIF ( 56, + 99 + + - 61 + + SUM( ALL + 72 ) ) * - 22 + 67
----
-1165

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL NULLIF ( 56, + 99 + + - 61 + + SUM ( ALL + 72 ) ) * - 22 + 67
----
-1165

query I rowsort
SELECT + 28 AS col1
----
28

query I rowsort
SELECT DISTINCT - 14 AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8762
SELECT ALL 16 * + 74 + + CAST( NULL AS SIGNED ) * + CAST( - 96 AS DECIMAL ) - 59 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL 16 * + 74 + + CAST ( NULL AS INTEGER ) * + CAST ( - 96 AS REAL ) - 59 * - COUNT ( * )
----
NULL

query I rowsort
SELECT + 28 * - 74 + + 98 + - + 75 * - 20 * - 47 AS col2
----
-72474

query I rowsort
SELECT 97 * 27
----
2619

query I rowsort
SELECT ALL - 83 + - NULLIF ( - + 34, + 31 ) * 99 col2
----
3283

query I rowsort
SELECT + 44 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT ALL - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL - COUNT ( * ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT ALL - 20 - + 98 - COUNT( * ) col1
----
-119

skipif mysql # not compatible
query I rowsort label-8768
SELECT ALL - 20 - + 98 - COUNT ( * ) col1
----
-119

query I rowsort
SELECT DISTINCT + 65 * + - 38 AS col2
----
-2470

query I rowsort
SELECT DISTINCT + 74 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT ALL NULLIF ( 98, + 35 + + 55 ) - + 41 * MAX( DISTINCT ( - 47 ) + 87 )
----
-1542

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL NULLIF ( 98, + 35 + + 55 ) - + 41 * MAX ( DISTINCT ( - 47 ) + 87 )
----
-1542

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT - COUNT( * ) * COUNT( * ) - 21 * 48
----
-1009

skipif mysql # not compatible
query I rowsort label-8772
SELECT - COUNT ( * ) * COUNT ( * ) - 21 * 48
----
-1009

query I rowsort
SELECT ALL + 48 * 23 AS col1
----
1104

query I rowsort
SELECT + 23 - + + 62 AS col1
----
-39

query I rowsort
SELECT - 67 col1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8776
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), SUM( 6 ) ) - + ( 61 ) * + COALESCE ( + SUM( + 20 ), - 73 * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), SUM ( 6 ) ) - + ( 61 ) * + COALESCE ( + SUM ( + 20 ), - 73 * COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT - 11 * + SUM( + 10 ) AS col0
----
-110

skipif mysql # not compatible
query I rowsort label-8777
SELECT - 11 * + SUM ( + 10 ) AS col0
----
-110

query I rowsort
SELECT + 76 + + 85 + + ( + 19 ) + 91 * + 71 AS col2
----
6641

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT + + 63 + + + COUNT( DISTINCT + ( + + 6 ) ) * 31
----
94

skipif mysql # not compatible
query I rowsort label-8779
SELECT + + 63 + + + COUNT ( DISTINCT + ( + + 6 ) ) * 31
----
94

query I rowsort
SELECT ALL - 48 AS col1
----
-48

query I rowsort
SELECT DISTINCT 29
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT + 43 * - + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-8782
SELECT + 43 * - + COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT + + 13 + COUNT( * ) * - 42
----
-29

skipif mysql # not compatible
query I rowsort label-8783
SELECT + + 13 + COUNT ( * ) * - 42
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8784
SELECT DISTINCT - 50 DIV - 66 + - - COUNT( * ) + 71 - 57 DIV - 49 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-8784
SELECT DISTINCT - 50 / - 66 + - - COUNT ( * ) + 71 - 57 / - 49 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT DISTINCT - ( - + SUM( ALL - 26 ) ) * + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT - ( - + SUM ( ALL - 26 ) ) * + COUNT ( * )
----
-26

query I rowsort
SELECT 20 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT ALL SUM( 36 )
----
36

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL SUM ( 36 )
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8788
SELECT + + 11 + + + 27 + + 79 + + 24 DIV 61 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-8788
SELECT + + 11 + + + 27 + + 79 + + 24 / 61 AS col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT + 83 + + COUNT( * ) * + COUNT( * ) col1
----
84

skipif mysql # not compatible
query I rowsort label-8789
SELECT + 83 + + COUNT ( * ) * + COUNT ( * ) col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT DISTINCT + COUNT( * ) + + + 48 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-8790
SELECT DISTINCT + COUNT ( * ) + + + 48 AS col1
----
49

query I rowsort
SELECT - - ( + 77 )
----
77

query I rowsort
SELECT ALL 89 + + ( 22 ) * + + 71 AS col1
----
1651

query I rowsort
SELECT + ( - + 86 ) + - 80
----
-166

query I rowsort
SELECT DISTINCT 28 + 87
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8795
SELECT + 72 + + 17 * 76 - + - 33 * - CAST( 7 * ( + 1 ) AS SIGNED ) AS col1
----
1133

skipif mysql # not compatible
query I rowsort label-8795
SELECT + 72 + + 17 * 76 - + - 33 * - CAST ( 7 * ( + 1 ) AS INTEGER ) AS col1
----
1133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8796
SELECT DISTINCT 51 * - - 33 * + CAST( 11 AS SIGNED ) + 66 AS col2
----
18579

skipif mysql # not compatible
query I rowsort label-8796
SELECT DISTINCT 51 * - - 33 * + CAST ( 11 AS INTEGER ) + 66 AS col2
----
18579

onlyif mysql # DIV for integer division: 
query I rowsort label-8797
SELECT DISTINCT + COALESCE ( + NULLIF ( + 15, + 46 + - 29 * - 32 ), + 13 DIV - COALESCE ( + 53, + 61 * - 75 ) )
----
15

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT + COALESCE ( + NULLIF ( + 15, + 46 + - 29 * - 32 ), + 13 / - COALESCE ( + 53, + 61 * - 75 ) )
----
15

query I rowsort
SELECT ALL - 45 * - ( NULLIF ( + 16, - ( + 61 ) ) ) + + NULLIF ( - 89 - 79 * 48, 73 ) col0
----
-3161

query I rowsort
SELECT ( - 24 ) AS col0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8800
SELECT - ( - 54 ) * + CAST( + 84 AS SIGNED ) - - 53
----
4589

skipif mysql # not compatible
query I rowsort label-8800
SELECT - ( - 54 ) * + CAST ( + 84 AS INTEGER ) - - 53
----
4589

query I rowsort
SELECT ( + 9 )
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8802
SELECT - CAST( NULL AS DECIMAL ) + 26 + - + MIN( DISTINCT + + 27 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8802
SELECT - CAST ( NULL AS REAL ) + 26 + - + MIN ( DISTINCT + + 27 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8803
SELECT ALL 87 * 9 * - 52 + + ( - - 77 ) + + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL 87 * 9 * - 52 + + ( - - 77 ) + + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + ( 95 ) AS col2
----
95

query I rowsort
SELECT - 90 + - 83
----
-173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8806
SELECT + CAST( - 73 AS SIGNED ) * 3 + + CAST( 35 AS SIGNED ) + 65 * - 41 * - COUNT( DISTINCT 83 ) col1
----
2481

skipif mysql # not compatible
query I rowsort label-8806
SELECT + CAST ( - 73 AS INTEGER ) * 3 + + CAST ( 35 AS INTEGER ) + 65 * - 41 * - COUNT ( DISTINCT 83 ) col1
----
2481

query I rowsort
SELECT ALL + ( 36 ) AS col1
----
36

query I rowsort
SELECT ALL NULLIF ( + 35, COALESCE ( - - NULLIF ( + + 79, + 48 ), COALESCE ( 50, - 31 ) ) * - 55 ) * 77 - - 47
----
2742

query I rowsort
SELECT NULLIF ( 89, + - 66 * + + AVG ( + 78 ) ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT NULLIF ( - MAX( DISTINCT 75 ), + 40 ) col0
----
-75

skipif mysql # not compatible
query I rowsort label-8810
SELECT NULLIF ( - MAX ( DISTINCT 75 ), + 40 ) col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT DISTINCT + SUM( + + 13 ) * - + MAX( ALL + + NULLIF ( - 27, + 49 + - 88 ) ) - + 52
----
299

skipif mysql # not compatible
query I rowsort label-8811
SELECT DISTINCT + SUM ( + + 13 ) * - + MAX ( ALL + + NULLIF ( - 27, + 49 + - 88 ) ) - + 52
----
299

query I rowsort
SELECT + ( + + 90 ) AS col0
----
90

query I rowsort
SELECT - 47 + - - 51 AS col2
----
4

query I rowsort
SELECT - 67 * + 96 + - ( + ( + 18 ) ) AS col0
----
-6450

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT - 0 + + 9 + + NULLIF ( - CASE + - COUNT( * ) WHEN - 2 + + 46 THEN + 80 WHEN - 15 THEN + 19 + COUNT( * ) WHEN + 34 THEN NULL END, 70 ) + 66 / - MIN( DISTINCT + 13 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8815
SELECT - 0 + + 9 + + NULLIF ( - CASE + - COUNT ( * ) WHEN - 2 + + 46 THEN + 80 WHEN - 15 THEN + 19 + COUNT ( * ) WHEN + 34 THEN NULL END, 70 ) + 66 / - MIN ( DISTINCT + 13 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT NULLIF ( + + 58, + MAX( DISTINCT + 1 ) / + 14 ) col2
----
58

skipif mysql # not compatible
query I rowsort label-8816
SELECT NULLIF ( + + 58, + MAX ( DISTINCT + 1 ) / + 14 ) col2
----
58

query I rowsort
SELECT DISTINCT + 44
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8818
SELECT ALL + CAST( NULL AS SIGNED ) * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL + CAST ( NULL AS INTEGER ) * 3
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8819
SELECT ALL CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT - - 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT DISTINCT - SUM( DISTINCT - - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-8821
SELECT DISTINCT - SUM ( DISTINCT - - 65 )
----
-65

query I rowsort
SELECT - + 26 * 51 AS col2
----
-1326

query I rowsort
SELECT ALL + + 99 * - 21
----
-2079

query I rowsort
SELECT - 84 - - 33
----
-51

query I rowsort
SELECT ALL + + 49 + - - 51
----
100

query I rowsort
SELECT - + 82 + 16
----
-66

query II rowsort
SELECT - 74, - 1 AS col1
----
-74
-1

query I rowsort
SELECT + 77 + - 56 AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8829
SELECT + COALESCE ( - CAST( NULL AS SIGNED ), - 96 + + + 27 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-8829
SELECT + COALESCE ( - CAST ( NULL AS INTEGER ), - 96 + + + 27 ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT + + COUNT( * ) * - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8830
SELECT + + COUNT ( * ) * - COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8831
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - SUM( + + 12 ) - - COUNT( * ) * 12 - - 9 * - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-8831
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - SUM ( + + 12 ) - - COUNT ( * ) * 12 - - 9 * - 99
----
NULL

query I rowsort
SELECT - NULLIF ( + 31, + + COALESCE ( - 67, 5 * 1 ) )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8833
SELECT ALL - COUNT( * ) DIV 41 + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL - COUNT ( * ) / 41 + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8834
SELECT - 82 col1, MIN( ( - - 52 ) ) * - 68 * + 34 + - 33
----
-82
-120257

skipif mysql # not compatible
query II rowsort label-8834
SELECT - 82 col1, MIN ( ( - - 52 ) ) * - 68 * + 34 + - 33
----
-82
-120257

query I rowsort
SELECT + - 58 * - 78 AS col2
----
4524

query I rowsort
SELECT DISTINCT 62 + - + 36 AS col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8837
SELECT - CAST( + 29 AS SIGNED ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-8837
SELECT - CAST ( + 29 AS INTEGER ) AS col0
----
-29

query II rowsort
SELECT ALL 78 * + - 55 col0, ( 40 ) col0
----
-4290
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8839
SELECT DISTINCT 45 DIV 5 - + ( - + 77 ) * + - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-8839
SELECT DISTINCT 45 / 5 - + ( - + 77 ) * + - COUNT ( * )
----
-68

query I rowsort
SELECT ALL + 52 AS col2
----
52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8841
SELECT + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8841
SELECT + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8842
SELECT ALL 51 DIV 90 - + - 28
----
28

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL 51 / 90 - + - 28
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT ALL 42 * - + COUNT( - 0 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL 42 * - + COUNT ( - 0 ) AS col1
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8844
SELECT + CAST( + AVG ( + 84 ) AS SIGNED ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-8844
SELECT + CAST ( + AVG ( + 84 ) AS INTEGER ) AS col2
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8845
SELECT ALL + COALESCE ( - + 33, + 29, - 63 ) - - - 39 + + CAST( - 9 AS SIGNED ) + + 76 * NULLIF ( 11, ( + 98 ) + 50 )
----
755

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL + COALESCE ( - + 33, + 29, - 63 ) - - - 39 + + CAST ( - 9 AS INTEGER ) + + 76 * NULLIF ( 11, ( + 98 ) + 50 )
----
755

query II rowsort
SELECT ALL - 71, 44 AS col0
----
-71
44

query I rowsort
SELECT 90
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT 77 + - - COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-8848
SELECT 77 + - - COUNT ( * ) AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8849
SELECT 93 * + CAST( NULL AS SIGNED ) * - - 69 + + ( 81 ) * + 52 * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-8849
SELECT 93 * + CAST ( NULL AS INTEGER ) * - - 69 + + ( 81 ) * + 52 * 56
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8850
SELECT + 88 DIV 62 + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8850
SELECT + 88 / 62 + - COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8851
SELECT 6 * + 47 * + NULLIF ( - CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) + + - 63 + + 22 * - 26 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8851
SELECT 6 * + 47 * + NULLIF ( - CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) + + - 63 + + 22 * - 26 ) AS col0
----
NULL

query I rowsort
SELECT 41 * - ( + 85 ) AS col1
----
-3485

onlyif mysql # aggregate syntax: 
query II rowsort label-8853
SELECT DISTINCT - 44, + 53 + - + COUNT( DISTINCT 22 ) col1
----
-44
52

skipif mysql # not compatible
query II rowsort label-8853
SELECT DISTINCT - 44, + 53 + - + COUNT ( DISTINCT 22 ) col1
----
-44
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8854
SELECT ALL 94 DIV 71
----
1

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL 94 / 71
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT ALL - MIN( - - 48 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-8855
SELECT ALL - MIN ( - - 48 ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT ( + 35 ) + COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-8856
SELECT ( + 35 ) + COUNT ( * ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query III rowsort label-8857
SELECT ALL - 57 AS col1, + COUNT( * ), 93 * - - COUNT( * ) AS col1
----
-57
1
93

skipif mysql # not compatible
query III rowsort label-8857
SELECT ALL - 57 AS col1, + COUNT ( * ), 93 * - - COUNT ( * ) AS col1
----
-57
1
93

query I rowsort
SELECT DISTINCT 29 * - 32
----
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT 30 * + NULLIF ( + 42, + COUNT( * ) * 66 + - ( - 48 ) + 4 * - COUNT( * ) ) + + 19 * COUNT( * )
----
1279

skipif mysql # not compatible
query I rowsort label-8859
SELECT 30 * + NULLIF ( + 42, + COUNT ( * ) * 66 + - ( - 48 ) + 4 * - COUNT ( * ) ) + + 19 * COUNT ( * )
----
1279

query I rowsort
SELECT ALL - + 55 AS col1
----
-55

query I rowsort
SELECT DISTINCT - + 94 AS col1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8862
SELECT ALL + CAST( - 48 AS SIGNED ) + 13
----
-35

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL + CAST ( - 48 AS INTEGER ) + 13
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT - - ( - - COUNT( * ) ) * - 35 - + 5
----
-40

skipif mysql # not compatible
query I rowsort label-8863
SELECT - - ( - - COUNT ( * ) ) * - 35 - + 5
----
-40

query I rowsort
SELECT 70 + NULLIF ( - 27, ( - 90 ) + - 95 )
----
43

query I rowsort
SELECT + 52 + + 68 + + 44 AS col0
----
164

query I rowsort
SELECT ALL 42 AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8867
SELECT - 53, - CAST( NULL AS SIGNED ) col2
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-8867
SELECT - 53, - CAST ( NULL AS INTEGER ) col2
----
-53
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT + 96 * COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-8868
SELECT + 96 * COUNT ( * )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8869
SELECT CAST( + 55 AS SIGNED ) + + - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-8869
SELECT CAST ( + 55 AS INTEGER ) + + - COUNT ( * )
----
54

query I rowsort
SELECT - 14 AS col2
----
-14

query II rowsort
SELECT DISTINCT - 98 + + 74, - 55 * - - 8 AS col2
----
-24
-440

query I rowsort
SELECT + ( - 26 )
----
-26

query I rowsort
SELECT 39 + + 34 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT ALL + 65 + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL + 65 + COUNT ( * )
----
66

query I rowsort
SELECT DISTINCT 31 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT - COALESCE ( 9, - 90 + - - 5 ) + + + SUM( DISTINCT + 46 ) + 42 * - ( COUNT( * ) + ( COUNT( * ) - 11 ) ) * 81
----
30655

skipif mysql # not compatible
query I rowsort label-8876
SELECT - COALESCE ( 9, - 90 + - - 5 ) + + + SUM ( DISTINCT + 46 ) + 42 * - ( COUNT ( * ) + ( COUNT ( * ) - 11 ) ) * 81
----
30655

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT ALL ( - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL ( - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8878
SELECT - 94 + - + MIN( - + 84 ) * - + CAST( - SUM( ALL - 15 ) AS SIGNED ) + - 77 / NULLIF ( CAST( NULL AS SIGNED ) * - 51, 42 * 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT - 94 + - + MIN ( - + 84 ) * - + CAST ( - SUM ( ALL - 15 ) AS INTEGER ) + - 77 / NULLIF ( CAST ( NULL AS INTEGER ) * - 51, 42 * 5 )
----
NULL

query I rowsort
SELECT 18 * - CASE - 18 WHEN 7 THEN - 80 ELSE - + 83 - - 0 END
----
1494

query I rowsort
SELECT + 68 * 10 col1
----
680

query I rowsort
SELECT 49 + - - 60 + + 72 AS col1
----
181

onlyif mysql # DIV for integer division: 
query I rowsort label-8882
SELECT - ( 14 ) DIV - 11 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8882
SELECT - ( 14 ) / - 11 AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8883
SELECT DISTINCT - - AVG ( ALL - - 35 ) + CAST( NULL AS DECIMAL ) - + + 15 * - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8883
SELECT DISTINCT - - AVG ( ALL - - 35 ) + CAST ( NULL AS REAL ) - + + 15 * - 62 AS col0
----
NULL

query I rowsort
SELECT - 10 AS col0
----
-10

query I rowsort
SELECT + 95 + - 39 AS col2
----
56

query I rowsort
SELECT - 34 * + 10 * - + ( - - ( ( + 45 ) ) )
----
15300

query I rowsort
SELECT COALESCE ( - - 42, - 87 * + 5 + - 61 + - + ( 13 ) + - 97 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT 78 + + COUNT( DISTINCT + 34 ) col1
----
79

skipif mysql # not compatible
query I rowsort label-8888
SELECT 78 + + COUNT ( DISTINCT + 34 ) col1
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8889
SELECT DISTINCT - 51 - CASE + 49 WHEN + - 12 + + COUNT( * ) THEN SUM( DISTINCT - CAST( NULL AS SIGNED ) ) DIV - 22 ELSE - 62 * - ( + COUNT( * ) ) END AS col2
----
-113

skipif mysql # not compatible
query I rowsort label-8889
SELECT DISTINCT - 51 - CASE + 49 WHEN + - 12 + + COUNT ( * ) THEN SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - 22 ELSE - 62 * - ( + COUNT ( * ) ) END AS col2
----
-113

onlyif mysql # DIV for integer division: 
query I rowsort label-8890
SELECT 90 DIV + 87 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8890
SELECT 90 / + 87 AS col1
----
1

query I rowsort
SELECT 97 + + - 71 * - - 33 AS col2
----
-2246

query II rowsort
SELECT DISTINCT 83 * - - 86 AS col1, 44 * - 48 AS col2
----
7138
-2112

query I rowsort
SELECT 80 - + + 99
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8894
SELECT COUNT( * ) DIV 93 * - ( - 87 ) * CAST( 95 AS SIGNED ) col0
----
0

skipif mysql # not compatible
query I rowsort label-8894
SELECT COUNT ( * ) / 93 * - ( - 87 ) * CAST ( 95 AS INTEGER ) col0
----
0

query I rowsort
SELECT 87 * 99
----
8613

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8896
SELECT 25 DIV 95 + + SUM( + + 50 ) - + + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-8896
SELECT 25 / 95 + + SUM ( + + 50 ) - + + COUNT ( * )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8897
SELECT CAST( NULL AS SIGNED ) + CAST( 4 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8897
SELECT CAST ( NULL AS INTEGER ) + CAST ( 4 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 24 * 82 AS col2
----
1968

query I rowsort
SELECT DISTINCT - 44 * + 62 col2
----
-2728

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT ALL - COALESCE ( - NULLIF ( + 76, - + COUNT( * ) ), - 73, 67 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-8900
SELECT ALL - COALESCE ( - NULLIF ( + 76, - + COUNT ( * ) ), - 73, 67 ) AS col2
----
76

query I rowsort
SELECT ALL - 93 col0
----
-93

query I rowsort
SELECT DISTINCT 88 * + 63 * - 75
----
-415800

query I rowsort
SELECT DISTINCT - 5
----
-5

query II rowsort
SELECT 41 * 91, + 93 AS col2
----
3731
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT 12 * - COUNT( - 77 ) col1
----
-12

skipif mysql # not compatible
query I rowsort label-8905
SELECT 12 * - COUNT ( - 77 ) col1
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-8906
SELECT ALL 6 + + + COUNT( * ), 54 * + - 28 * - 52 AS col2
----
7
78624

skipif mysql # not compatible
query II rowsort label-8906
SELECT ALL 6 + + + COUNT ( * ), 54 * + - 28 * - 52 AS col2
----
7
78624

onlyif mysql # DIV for integer division: 
query I rowsort label-8907
SELECT DISTINCT 10 DIV + + 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8907
SELECT DISTINCT 10 / + + 48 AS col2
----
0

query II rowsort
SELECT - 50 * + + 6 col2, 46 AS col1
----
-300
46

query I rowsort
SELECT - ( + 9 )
----
-9

query I rowsort
SELECT DISTINCT + 38 * - 22 AS col1
----
-836

query I rowsort
SELECT ALL 33 + - 76 * + 80 AS col2
----
-6047

query I rowsort
SELECT ALL - 5 AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8913
SELECT DISTINCT 77 * 67 - + CAST( NULL AS SIGNED ) + - 81 + + 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT 77 * 67 - + CAST ( NULL AS INTEGER ) + - 81 + + 72 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8914
SELECT COUNT( * ) DIV + COALESCE ( - 75, - ( - 98 ) ) - - 87 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-8914
SELECT COUNT ( * ) / + COALESCE ( - 75, - ( - 98 ) ) - - 87 AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8915
SELECT ALL - CAST( + 88 AS SIGNED ) AS col0, 54
----
-88
54

skipif mysql # not compatible
query II rowsort label-8915
SELECT ALL - CAST ( + 88 AS INTEGER ) AS col0, 54
----
-88
54

query I rowsort
SELECT - + 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT DISTINCT - SUM( ALL 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-8917
SELECT DISTINCT - SUM ( ALL 10 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT ALL + 44 + 54 + - NULLIF ( + 6, - 78 + 12 ) + - 72 + - COUNT( * ) * 1
----
19

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL + 44 + 54 + - NULLIF ( + 6, - 78 + 12 ) + - 72 + - COUNT ( * ) * 1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT - + COUNT( * ) * COUNT( * ) + - + ( - + 99 )
----
98

skipif mysql # not compatible
query I rowsort label-8919
SELECT - + COUNT ( * ) * COUNT ( * ) + - + ( - + 99 )
----
98

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8920
SELECT 33 + 49 + 14 * + + 40 + - 69 AS col1, CAST( NULL AS DECIMAL ) / - - 48
----
573
NULL

skipif mysql # not compatible
query II rowsort label-8920
SELECT 33 + 49 + 14 * + + 40 + - 69 AS col1, CAST ( NULL AS REAL ) / - - 48
----
573
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8921
SELECT 76 * + - COUNT( ALL + 57 ) - - 81 + 92 * + CASE - 89 WHEN 19 + - 43 * - NULLIF ( + 44, 92 - 12 * 38 ) THEN 46 END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT 76 * + - COUNT ( ALL + 57 ) - - 81 + 92 * + CASE - 89 WHEN 19 + - 43 * - NULLIF ( + 44, 92 - 12 * 38 ) THEN 46 END * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 35
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-8923
SELECT ALL + MIN( DISTINCT + + 1 ) AS col0, - 58 AS col2
----
1
-58

skipif mysql # not compatible
query II rowsort label-8923
SELECT ALL + MIN ( DISTINCT + + 1 ) AS col0, - 58 AS col2
----
1
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT ALL + CASE SUM( DISTINCT + - 43 ) WHEN + + 17 THEN NULL WHEN ( - - 70 ) THEN - MIN( - 30 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL + CASE SUM ( DISTINCT + - 43 ) WHEN + + 17 THEN NULL WHEN ( - - 70 ) THEN - MIN ( - 30 ) END
----
NULL

query I rowsort
SELECT - 22 col2
----
-22

query I rowsort
SELECT 90 + - 36 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT ALL CASE + 85 WHEN + 19 THEN - 47 + + - COUNT( DISTINCT - 17 ) - - COUNT( * ) * - NULLIF ( 99, - NULLIF ( - 48, + 64 ) ) WHEN - 58 THEN + 38 * 30 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL CASE + 85 WHEN + 19 THEN - 47 + + - COUNT ( DISTINCT - 17 ) - - COUNT ( * ) * - NULLIF ( 99, - NULLIF ( - 48, + 64 ) ) WHEN - 58 THEN + 38 * 30 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT ALL MAX( DISTINCT - 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL MAX ( DISTINCT - 70 ) AS col2
----
-70

query II rowsort
SELECT 99, + 72 AS col0
----
99
72

query I rowsort
SELECT - 87 AS col1
----
-87

query II rowsort
SELECT 42 AS col2, 23 * + 94
----
42
2162

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT - 83 - + 9 - + COUNT( * ) * - 31 + + ( + + 61 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-8932
SELECT - 83 - + 9 - + COUNT ( * ) * - 31 + + ( + + 61 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT - SUM( COALESCE ( - 63, 92 ) ) * - 57 AS col2
----
-3591

skipif mysql # not compatible
query I rowsort label-8933
SELECT - SUM ( COALESCE ( - 63, 92 ) ) * - 57 AS col2
----
-3591

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8934
SELECT + 1 * + SUM( DISTINCT COALESCE ( + + 77, - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - + - 24 ) )
----
77

skipif mysql # not compatible
query I rowsort label-8934
SELECT + 1 * + SUM ( DISTINCT COALESCE ( + + 77, - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - + - 24 ) )
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8935
SELECT COALESCE ( - 5, 38, + 12 * 62 * 55 DIV + + SUM( - 59 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-8935
SELECT COALESCE ( - 5, 38, + 12 * 62 * 55 / + + SUM ( - 59 ) )
----
-5

query II rowsort
SELECT ALL + 96 * + 27 + - + 38, ( - - 19 ) col2
----
2554
19

query I rowsort
SELECT ALL + 48 col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT ALL + MIN( - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL + MIN ( - 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT ALL - 19 * + - 35 + + CASE + 15 WHEN + 94 THEN - COUNT( * ) WHEN - 5 + + 87 THEN + 26 * 64 ELSE 40 * 14 + COUNT( * ) * 35 END AS col0
----
1260

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL - 19 * + - 35 + + CASE + 15 WHEN + 94 THEN - COUNT ( * ) WHEN - 5 + + 87 THEN + 26 * 64 ELSE 40 * 14 + COUNT ( * ) * 35 END AS col0
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT CASE + + 71 WHEN - ( 81 ) THEN NULL WHEN 33 * 72 / - + COALESCE ( + + ( 56 ), + 36 * - ( + 99 / + 16 ) ) THEN 91 * + 10 WHEN - 40 * 19 THEN CASE SUM( + 29 ) WHEN 51 * + COUNT( * ) THEN NULL WHEN 41 * + 31 THEN - AVG ( DISTINCT 42 ) WHEN COUNT( * ) - 80 THEN NULL ELSE + 64 END * 74 ELSE - 20 END
----
-20

skipif mysql # not compatible
query I rowsort label-8940
SELECT CASE + + 71 WHEN - ( 81 ) THEN NULL WHEN 33 * 72 / - + COALESCE ( + + ( 56 ), + 36 * - ( + 99 / + 16 ) ) THEN 91 * + 10 WHEN - 40 * 19 THEN CASE SUM ( + 29 ) WHEN 51 * + COUNT ( * ) THEN NULL WHEN 41 * + 31 THEN - AVG ( DISTINCT 42 ) WHEN COUNT ( * ) - 80 THEN NULL ELSE + 64 END * 74 ELSE - 20 END
----
-20

query I rowsort
SELECT 67 * 22 * 89 + - 26
----
131160

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT + CASE + 27 WHEN 75 THEN + NULLIF ( + + COALESCE ( + ( - + 46 ), MAX( - 19 ) ), + 73 * 89 ) + - 97 ELSE - 24 END
----
-24

skipif mysql # not compatible
query I rowsort label-8942
SELECT + CASE + 27 WHEN 75 THEN + NULLIF ( + + COALESCE ( + ( - + 46 ), MAX ( - 19 ) ), + 73 * 89 ) + - 97 ELSE - 24 END
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT - CASE - - 8 WHEN + + 93 THEN + 11 WHEN + COUNT( * ) + ( + 25 ) THEN NULL ELSE + - ( + COUNT( * ) ) + - NULLIF ( - 21, SUM( 31 ) ) END + + 25
----
5

skipif mysql # not compatible
query I rowsort label-8943
SELECT - CASE - - 8 WHEN + + 93 THEN + 11 WHEN + COUNT ( * ) + ( + 25 ) THEN NULL ELSE + - ( + COUNT ( * ) ) + - NULLIF ( - 21, SUM ( 31 ) ) END + + 25
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8944
SELECT - + 36 DIV + - 83 - + + 26 * 43 + + 16
----
-1102

skipif mysql # not compatible
query I rowsort label-8944
SELECT - + 36 / + - 83 - + + 26 * 43 + + 16
----
-1102

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT + NULLIF ( MAX( DISTINCT - + 67 ), - 30 )
----
-67

skipif mysql # not compatible
query I rowsort label-8945
SELECT + NULLIF ( MAX ( DISTINCT - + 67 ), - 30 )
----
-67

query I rowsort
SELECT + + 3 + + 21
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT ALL + ( + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL + ( + COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8948
SELECT DISTINCT + + 36 * - 89 * - - CAST( SUM( DISTINCT + 47 ) AS SIGNED ) + - 56 * + COUNT( * ) * - ( + 61 )
----
-147172

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT + + 36 * - 89 * - - CAST ( SUM ( DISTINCT + 47 ) AS INTEGER ) + - 56 * + COUNT ( * ) * - ( + 61 )
----
-147172

query I rowsort
SELECT ALL + - 40
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT + NULLIF ( - 90, - - 95 ) * + 10 * + - MAX( + 45 )
----
40500

skipif mysql # not compatible
query I rowsort label-8950
SELECT + NULLIF ( - 90, - - 95 ) * + 10 * + - MAX ( + 45 )
----
40500

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT + 27 + - COUNT( * ) + + 72 * 10 * - + 39 AS col1
----
-28054

skipif mysql # not compatible
query I rowsort label-8951
SELECT + 27 + - COUNT ( * ) + + 72 * 10 * - + 39 AS col1
----
-28054

query I rowsort
SELECT ALL + + 6 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT - COUNT( DISTINCT + 71 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8953
SELECT - COUNT ( DISTINCT + 71 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT - - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8954
SELECT - - COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT + 50 + - 84 * - MAX( ALL 24 ) AS col1
----
2066

skipif mysql # not compatible
query I rowsort label-8955
SELECT + 50 + - 84 * - MAX ( ALL 24 ) AS col1
----
2066

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT + - MAX( 49 ) * - 36
----
1764

skipif mysql # not compatible
query I rowsort label-8956
SELECT + - MAX ( 49 ) * - 36
----
1764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8957
SELECT - COALESCE ( - CAST( NULL AS SIGNED ), - 67 ), - CAST( - 74 AS SIGNED ) * - - COUNT( * ) AS col0
----
67
74

skipif mysql # not compatible
query II rowsort label-8957
SELECT - COALESCE ( - CAST ( NULL AS INTEGER ), - 67 ), - CAST ( - 74 AS INTEGER ) * - - COUNT ( * ) AS col0
----
67
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT - - CASE - 84 WHEN - ( 10 ) + - + 72 + + MIN( + 22 ) / COUNT( * ) + 84 * 42 THEN NULL WHEN 86 * 86 + - COUNT( * ) * - 20 THEN + NULLIF ( 63, ( + 71 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8958
SELECT - - CASE - 84 WHEN - ( 10 ) + - + 72 + + MIN ( + 22 ) / COUNT ( * ) + 84 * 42 THEN NULL WHEN 86 * 86 + - COUNT ( * ) * - 20 THEN + NULLIF ( 63, ( + 71 ) ) END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8959
SELECT ALL + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8959
SELECT ALL + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT ALL - COUNT( * ) * + 35 col0
----
-35

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL - COUNT ( * ) * + 35 col0
----
-35

query I rowsort
SELECT ALL 95 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT DISTINCT ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT ( - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT + 14 * + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-8963
SELECT + 14 * + COUNT ( * )
----
14

query I rowsort
SELECT ALL 20 * + 11
----
220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8965
SELECT DISTINCT 78 * + NULLIF ( - COUNT( * ), + + CAST( NULL AS SIGNED ) + 99 )
----
-78

skipif mysql # not compatible
query I rowsort label-8965
SELECT DISTINCT 78 * + NULLIF ( - COUNT ( * ), + + CAST ( NULL AS INTEGER ) + 99 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT + 19 + 35 + 25 + + 94 * - + 29 * 45 + 68 - 54 + ( COUNT( * ) ) * 8 col1
----
-122569

skipif mysql # not compatible
query I rowsort label-8966
SELECT + 19 + 35 + 25 + + 94 * - + 29 * 45 + 68 - 54 + ( COUNT ( * ) ) * 8 col1
----
-122569

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT - 84 + - SUM( DISTINCT 60 )
----
-144

skipif mysql # not compatible
query I rowsort label-8967
SELECT - 84 + - SUM ( DISTINCT 60 )
----
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-8968
SELECT ALL + 61 + + 54 + + 20 DIV ( - 46 ) AS col2
----
115

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL + 61 + + 54 + + 20 / ( - 46 ) AS col2
----
115

query II rowsort
SELECT + 89 + - + 51, - 53 + - + CASE CASE WHEN NOT ( + 94 ) >= NULL THEN - 72 ELSE NULL END WHEN + 43 THEN NULL ELSE + 26 END AS col2
----
38
-79

query II rowsort
SELECT DISTINCT 12 + - 16 AS col0, 13 + - 44
----
-4
-31

query II rowsort
SELECT - 41 + + - 20 + 20 + - - 55, ( + 18 ) AS col2
----
14
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT ALL COUNT( * ) + ( - 3 ) + + + 38 * - SUM( ALL - + ( - 54 ) ) col1
----
-2054

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL COUNT ( * ) + ( - 3 ) + + + 38 * - SUM ( ALL - + ( - 54 ) ) col1
----
-2054

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT DISTINCT + CASE + CASE + SUM( ALL NULLIF ( 20, NULLIF ( - 69, + 39 * 89 ) ) ) WHEN + 74 THEN - 27 WHEN - 8 THEN NULL WHEN COUNT( * ) * 81 THEN NULL ELSE + 26 END WHEN - 21 THEN + 85 WHEN 9 THEN NULL WHEN + 99 * - COUNT( + 41 ) THEN NULL END * MAX( ALL 52 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8973
SELECT DISTINCT + CASE + CASE + SUM ( ALL NULLIF ( 20, NULLIF ( - 69, + 39 * 89 ) ) ) WHEN + 74 THEN - 27 WHEN - 8 THEN NULL WHEN COUNT ( * ) * 81 THEN NULL ELSE + 26 END WHEN - 21 THEN + 85 WHEN 9 THEN NULL WHEN + 99 * - COUNT ( + 41 ) THEN NULL END * MAX ( ALL 52 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 83
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL + 72 * + MAX( + ( 34 ) ) AS col0
----
2448

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL + 72 * + MAX ( + ( 34 ) ) AS col0
----
2448

onlyif mysql # DIV for integer division: 
query I rowsort label-8976
SELECT - 5 DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-8976
SELECT - 5 / + 45
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8977
SELECT + 75 DIV - 25 + + 65 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-8977
SELECT + 75 / - 25 + + 65 AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8978
SELECT CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8978
SELECT CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + - ( + 84 )
----
-84

query I rowsort
SELECT ALL + - 98 * - - 41
----
-4018

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8981
SELECT - 71 * 27 + 33 * - + 36, ( - - 5 ) * 50 * 87 + - 5 + + CAST( 62 AS SIGNED ) AS col0
----
-3105
21807

skipif mysql # not compatible
query II rowsort label-8981
SELECT - 71 * 27 + 33 * - + 36, ( - - 5 ) * 50 * 87 + - 5 + + CAST ( 62 AS INTEGER ) AS col0
----
-3105
21807

query I rowsort
SELECT DISTINCT + 86
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-8983
SELECT ALL 28 DIV - 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL 28 / - 88 AS col0
----
0

query I rowsort
SELECT - 22 col0
----
-22

query I rowsort
SELECT ALL + 34 col0
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-8986
SELECT DISTINCT + 67 DIV + 61 - - + 16 DIV + - 65 + - + 3
----
-2

skipif mysql # not compatible
query I rowsort label-8986
SELECT DISTINCT + 67 / + 61 - - + 16 / + - 65 + - + 3
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8987
SELECT DISTINCT + + CASE - - 32 WHEN + 86 THEN NULL ELSE + - 0 END DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT + + CASE - - 32 WHEN + 86 THEN NULL ELSE + - 0 END / 46
----
0

query I rowsort
SELECT ALL + + 90 AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8989
SELECT ALL + 28 * + CAST( NULL AS SIGNED ) - - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL + 28 * + CAST ( NULL AS INTEGER ) - - 11 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8990
SELECT + COALESCE ( 95, - 47 DIV ( - - ( - + 47 ) ) + 80, + 91 )
----
95

skipif mysql # not compatible
query I rowsort label-8990
SELECT + COALESCE ( 95, - 47 / ( - - ( - + 47 ) ) + 80, + 91 )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-8991
SELECT - + 6 DIV + ( + 57 )
----
0

skipif mysql # not compatible
query I rowsort label-8991
SELECT - + 6 / + ( + 57 )
----
0

query I rowsort
SELECT + - ( - + 89 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT CASE + 97 WHEN - COUNT( * ) + + 73 + - NULLIF ( 31, + 32 ) THEN + + 24 * + SUM( 36 ) ELSE - 85 - + ( 26 ) END
----
-111

skipif mysql # not compatible
query I rowsort label-8993
SELECT CASE + 97 WHEN - COUNT ( * ) + + 73 + - NULLIF ( 31, + 32 ) THEN + + 24 * + SUM ( 36 ) ELSE - 85 - + ( 26 ) END
----
-111

query I rowsort
SELECT ALL - 36 * - 46
----
1656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8995
SELECT - 87 * CAST( + + NULLIF ( + + ( - ( - 94 ) ), - 60 ) AS SIGNED )
----
-8178

skipif mysql # not compatible
query I rowsort label-8995
SELECT - 87 * CAST ( + + NULLIF ( + + ( - ( - 94 ) ), - 60 ) AS INTEGER )
----
-8178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8996
SELECT ALL + - MAX( DISTINCT + + COALESCE ( - NULLIF ( CAST( 90 AS SIGNED ), - ( - 5 ) ), 27 DIV + 6 + 42, + ( 97 ) - + 15 ) ) col1
----
90

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL + - MAX ( DISTINCT + + COALESCE ( - NULLIF ( CAST ( 90 AS INTEGER ), - ( - 5 ) ), 27 / + 6 + 42, + ( 97 ) - + 15 ) ) col1
----
90

query I rowsort
SELECT ALL + COALESCE ( - NULLIF ( 11, + 77 * + 70 * - - 47 * 19 + - + 81 - 33 * 9 ), - 32 * - 1 ) AS col0
----
-11

query I rowsort
SELECT + - 93
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT DISTINCT + MIN( DISTINCT + - 23 ) * + - 92 AS col2
----
2116

skipif mysql # not compatible
query I rowsort label-8999
SELECT DISTINCT + MIN ( DISTINCT + - 23 ) * + - 92 AS col2
----
2116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9000
SELECT ALL + ( + COUNT( ALL 24 ) ) * - CASE - 33 WHEN + + CAST( + - 95 AS SIGNED ) THEN + 77 * 36 + - AVG ( + 89 ) * 78 ELSE 76 DIV - 51 END DIV + 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL + ( + COUNT ( ALL 24 ) ) * - CASE - 33 WHEN + + CAST ( + - 95 AS INTEGER ) THEN + 77 * 36 + - AVG ( + 89 ) * 78 ELSE 76 / - 51 END / + 26 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9001
SELECT + COALESCE ( 71, - + 1 * - 57 + - + SUM( - 14 ) * + + 10 + - 67 ) * - CASE 35 WHEN + 91 / 86 - + 2 * + 22 THEN NULL WHEN CASE CAST( 58 AS SIGNED ) WHEN 4 THEN 97 - NULLIF ( AVG ( 36 ), + 77 / 76 ) END + 78 / 21 THEN - CAST( NULL AS SIGNED ) * + 9 END - - ( 9 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9001
SELECT + COALESCE ( 71, - + 1 * - 57 + - + SUM ( - 14 ) * + + 10 + - 67 ) * - CASE 35 WHEN + 91 / 86 - + 2 * + 22 THEN NULL WHEN CASE CAST ( 58 AS INTEGER ) WHEN 4 THEN 97 - NULLIF ( AVG ( 36 ), + 77 / 76 ) END + 78 / 21 THEN - CAST ( NULL AS INTEGER ) * + 9 END - - ( 9 ) AS col1
----
NULL

query I rowsort
SELECT 23 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT ALL COALESCE ( - 7, + NULLIF ( 52, - 7 * - 22 ) * + + NULLIF ( - CASE ( 28 ) WHEN - 60 THEN 8 * 10 WHEN + 56 THEN NULL WHEN 5 THEN - 98 * 0 - - 70 END, COALESCE ( + 20, - CASE WHEN NOT 31 NOT IN ( 74 ) THEN - 23 END + + 32 ) * - COUNT( 43 ) ) ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL COALESCE ( - 7, + NULLIF ( 52, - 7 * - 22 ) * + + NULLIF ( - CASE ( 28 ) WHEN - 60 THEN 8 * 10 WHEN + 56 THEN NULL WHEN 5 THEN - 98 * 0 - - 70 END, COALESCE ( + 20, - CASE WHEN NOT 31 NOT IN ( 74 ) THEN - 23 END + + 32 ) * - COUNT ( 43 ) ) ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-9004
SELECT + 54 * - COUNT( * ) + 86 AS col1, + 87
----
32
87

skipif mysql # not compatible
query II rowsort label-9004
SELECT + 54 * - COUNT ( * ) + 86 AS col1, + 87
----
32
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9005
SELECT NULLIF ( - COUNT( * ), - ( - + 54 ) / AVG ( DISTINCT - CAST( + 13 AS SIGNED ) ) ) - + 15 * + - 71
----
1064

skipif mysql # not compatible
query I rowsort label-9005
SELECT NULLIF ( - COUNT ( * ), - ( - + 54 ) / AVG ( DISTINCT - CAST ( + 13 AS INTEGER ) ) ) - + 15 * + - 71
----
1064

query I rowsort
SELECT ALL 74 AS col2
----
74

query I rowsort
SELECT ( + 44 ) + + 37
----
81

query II rowsort
SELECT - 27, 63 AS col0
----
-27
63

query I rowsort
SELECT ALL 7 + + - CASE 89 WHEN - - 9 THEN COALESCE ( - 91, - 10 ) WHEN + - 76 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL ( 71 ) * - 93 AS col1
----
-6603

query I rowsort
SELECT 15 + - - 84 + + - 94 * + - 85 + 53 * + 33 * ( + COALESCE ( 27, 59 ) ) AS col0
----
55312

onlyif mysql # DIV for integer division: 
query I rowsort label-9012
SELECT DISTINCT COALESCE ( - - 31, - 64 * - 97 + + 24 DIV 40 DIV + 10 + 38 DIV 69 * - - 27, + 14 * 40 ) + + 68 * 3
----
235

skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT COALESCE ( - - 31, - 64 * - 97 + + 24 / 40 / + 10 + 38 / 69 * - - 27, + 14 * 40 ) + + 68 * 3
----
235

query I rowsort
SELECT ALL 71 + + - 51 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT ALL ( 42 ) + + CASE 21 WHEN + 92 / - 11 THEN - 10 + SUM( ALL + - 94 ) ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9014
SELECT ALL ( 42 ) + + CASE 21 WHEN + 92 / - 11 THEN - 10 + SUM ( ALL + - 94 ) ELSE NULL END + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT ALL COUNT( * ) * 65 col0
----
65

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL COUNT ( * ) * 65 col0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9016
SELECT COUNT( * ) * 19 DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-9016
SELECT COUNT ( * ) * 19 / - 60
----
0

query I rowsort
SELECT 97 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT 50 * + ( 6 ) * - 98 + - COUNT( * ) + COUNT( * )
----
-29400

skipif mysql # not compatible
query I rowsort label-9018
SELECT 50 * + ( 6 ) * - 98 + - COUNT ( * ) + COUNT ( * )
----
-29400

query I rowsort
SELECT ALL 5 AS col2
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9020
SELECT 60 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9020
SELECT 60 - + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT 78 AS col1, ( + 87 ) AS col1
----
78
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT ALL 94 + - 4 + - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL 94 + - 4 + - COUNT ( * )
----
89

query I rowsort
SELECT COALESCE ( + 90, 22 + - 54 * ( + 10 ) ) - 1 AS col2
----
89

query I rowsort
SELECT ALL - 70 col2
----
-70

query I rowsort
SELECT + - 13 AS col0
----
-13

query I rowsort
SELECT ALL - 81 - + 53 col2
----
-134

query I rowsort
SELECT ALL - 72
----
-72

query I rowsort
SELECT - - 84 * 41 + 4 + + 5
----
3453

query II rowsort
SELECT + 5 - - 49 + + 95 col2, 47 col0
----
149
47

query I rowsort
SELECT + 12 AS col2
----
12

query I rowsort
SELECT - 71 + - + 4 * - - 60 + + 29 * + 33 AS col0
----
646

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9032
SELECT ALL ( + - SUM( DISTINCT - - 34 ) ) * 74 * 4 * + 56 * ( CAST( NULL AS SIGNED ) ) * - + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL ( + - SUM ( DISTINCT - - 34 ) ) * 74 * 4 * + 56 * ( CAST ( NULL AS INTEGER ) ) * - + 4
----
NULL

query I rowsort
SELECT ALL - - 46 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT DISTINCT - NULLIF ( - + 80, 35 ) * + - 71 * 28 + ( + + COUNT( * ) )
----
-159039

skipif mysql # not compatible
query I rowsort label-9034
SELECT DISTINCT - NULLIF ( - + 80, 35 ) * + - 71 * 28 + ( + + COUNT ( * ) )
----
-159039

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9035
SELECT ALL - - NULLIF ( 40, + COUNT( * ) - + CAST( NULL AS SIGNED ) )
----
40

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL - - NULLIF ( 40, + COUNT ( * ) - + CAST ( NULL AS INTEGER ) )
----
40

query I rowsort
SELECT - 87 * + 15 + 63 + - 34 col2
----
-1276

query I rowsort
SELECT DISTINCT - - 73
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT - - SUM( 37 ) * 63 + - ( + COUNT( + - 97 ) ) AS col0
----
2330

skipif mysql # not compatible
query I rowsort label-9038
SELECT - - SUM ( 37 ) * 63 + - ( + COUNT ( + - 97 ) ) AS col0
----
2330

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT ALL - COALESCE ( + - 50, ( - 58 ), - 29 * + 54 * - - COALESCE ( - + 0, 58, 55 ) * - MIN( - 4 ) )
----
50

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL - COALESCE ( + - 50, ( - 58 ), - 29 * + 54 * - - COALESCE ( - + 0, 58, 55 ) * - MIN ( - 4 ) )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9040
SELECT + ( + CAST( + COUNT( * ) AS SIGNED ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9040
SELECT + ( + CAST ( + COUNT ( * ) AS INTEGER ) ) col0
----
1

query I rowsort
SELECT 87 * + + 51 + + 66 AS col2
----
4503

query I rowsort
SELECT 31 + + 76
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9043
SELECT 18 DIV - ( ( + COUNT( * ) ) ) + + CAST( - + COALESCE ( - 47, 94 ) AS SIGNED ) col0
----
29

skipif mysql # not compatible
query I rowsort label-9043
SELECT 18 / - ( ( + COUNT ( * ) ) ) + + CAST ( - + COALESCE ( - 47, 94 ) AS INTEGER ) col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT - + COALESCE ( 91, COUNT( DISTINCT 5 ) ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-9044
SELECT - + COALESCE ( 91, COUNT ( DISTINCT 5 ) ) AS col2
----
-91

query II rowsort
SELECT - 73 col0, 14 + 69
----
-73
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT NULLIF ( + + COALESCE ( + 30, 17 + - 34, + 42 * + NULLIF ( - COUNT( * ), 88 ) * + NULLIF ( 91, SUM( + 56 ) ) ), COUNT( * ) + - COUNT( * ) ) * + NULLIF ( + COALESCE ( 58, - 39 ), - MAX( ALL + 43 ) * + ( + 27 ) ) AS col0
----
1740

skipif mysql # not compatible
query I rowsort label-9046
SELECT NULLIF ( + + COALESCE ( + 30, 17 + - 34, + 42 * + NULLIF ( - COUNT ( * ), 88 ) * + NULLIF ( 91, SUM ( + 56 ) ) ), COUNT ( * ) + - COUNT ( * ) ) * + NULLIF ( + COALESCE ( 58, - 39 ), - MAX ( ALL + 43 ) * + ( + 27 ) ) AS col0
----
1740

query II rowsort
SELECT 80 * - 74 * + 7 + 17 AS col0, + 5 col0
----
-41423
5

query I rowsort
SELECT DISTINCT + 16 + + 49
----
65

query I rowsort
SELECT ALL - 44 + 23
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9050
SELECT DISTINCT + ( - + 78 ) * CAST( + 58 AS SIGNED ) AS col0
----
-4524

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT + ( - + 78 ) * CAST ( + 58 AS INTEGER ) AS col0
----
-4524

query I rowsort
SELECT DISTINCT 54 + - + 50
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9052
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9052
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 0 AS col2
----
0

query I rowsort
SELECT - 4
----
-4

query I rowsort
SELECT ALL 53 - + - 87
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-9056
SELECT ALL SUM( ALL 66 ) AS col2, 62 + - ( - 62 ) col1
----
66
124

skipif mysql # not compatible
query II rowsort label-9056
SELECT ALL SUM ( ALL 66 ) AS col2, 62 + - ( - 62 ) col1
----
66
124

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT COUNT( * ) + - - 37
----
38

skipif mysql # not compatible
query I rowsort label-9057
SELECT COUNT ( * ) + - - 37
----
38

query II rowsort
SELECT DISTINCT + ( + ( - - 30 ) ) - + 58 AS col2, + 17 + + - 57
----
-28
-40

query I rowsort
SELECT ALL 46 * 60
----
2760

query I rowsort
SELECT ALL 58 * 38 col2
----
2204

query I rowsort
SELECT DISTINCT 32 * + 70 * - + 71
----
-159040

query I rowsort
SELECT 59 + 23 AS col2
----
82

query I rowsort
SELECT DISTINCT 45 * 63
----
2835

query I rowsort
SELECT ALL + 61 * + ( 49 ) + + 51 - 29 * - 10 AS col2
----
3330

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT DISTINCT - 2 * + + 22 - NULLIF ( + + 21, SUM( ALL - - 1 ) ) + - - 93
----
28

skipif mysql # not compatible
query I rowsort label-9065
SELECT DISTINCT - 2 * + + 22 - NULLIF ( + + 21, SUM ( ALL - - 1 ) ) + - - 93
----
28

query I rowsort
SELECT + 94 * + 33
----
3102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9067
SELECT + - 66 DIV + 21 + CAST( - COALESCE ( 13, - 53 * - - ( 45 ), + SUM( 73 ) * - + 8 DIV MIN( COALESCE ( + 18, - 75 + 69, - 76 * - 48 + 91 ) ) + + 93 ) AS SIGNED ) * - MIN( + 72 ) AS col1
----
933

skipif mysql # not compatible
query I rowsort label-9067
SELECT + - 66 / + 21 + CAST ( - COALESCE ( 13, - 53 * - - ( 45 ), + SUM ( 73 ) * - + 8 / MIN ( COALESCE ( + 18, - 75 + 69, - 76 * - 48 + 91 ) ) + + 93 ) AS INTEGER ) * - MIN ( + 72 ) AS col1
----
933

query I rowsort
SELECT NULLIF ( - 77, 82 ) * 43 * - 11
----
36421

query I rowsort
SELECT 53 * - 94 AS col2
----
-4982

query I rowsort
SELECT 97 + 70
----
167

query II rowsort
SELECT + - 84 AS col1, - 41 AS col0
----
-84
-41

query I rowsort
SELECT - 60 * 54
----
-3240

query I rowsort
SELECT ALL - 43
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9074
SELECT DISTINCT + - COALESCE ( ( - - COALESCE ( + 9, - COUNT( * ) DIV 97 ) ), + 86 ) AS col0, 65
----
-9
65

skipif mysql # not compatible
query II rowsort label-9074
SELECT DISTINCT + - COALESCE ( ( - - COALESCE ( + 9, - COUNT ( * ) / 97 ) ), + 86 ) AS col0, 65
----
-9
65

query I rowsort
SELECT - 41 AS col1
----
-41

query II rowsort
SELECT ALL + + 52, - 48 AS col2
----
52
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9077
SELECT ALL ( 87 ) * + + 21 + + COALESCE ( + 21, - COUNT( * ) ) DIV + - 90 + ( + 92 )
----
1919

skipif mysql # not compatible
query I rowsort label-9077
SELECT ALL ( 87 ) * + + 21 + + COALESCE ( + 21, - COUNT ( * ) ) / + - 90 + ( + 92 )
----
1919

query I rowsort
SELECT + 97 AS col0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9079
SELECT - 32 * + MIN( - 15 ) * + + 59 + + - 15 DIV - 11 AS col2
----
28321

skipif mysql # not compatible
query I rowsort label-9079
SELECT - 32 * + MIN ( - 15 ) * + + 59 + + - 15 / - 11 AS col2
----
28321

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT - 72 - - - COUNT( 54 ) * + 80 AS col1
----
-152

skipif mysql # not compatible
query I rowsort label-9080
SELECT - 72 - - - COUNT ( 54 ) * + 80 AS col1
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT DISTINCT MAX( - 46 ) + MAX( ALL - 37 ) * 4 * + - 2
----
250

skipif mysql # not compatible
query I rowsort label-9081
SELECT DISTINCT MAX ( - 46 ) + MAX ( ALL - 37 ) * 4 * + - 2
----
250

onlyif mysql # aggregate syntax: 
query II rowsort label-9082
SELECT ALL 54 * + + COUNT( * ) AS col2, - MIN( + 31 )
----
54
-31

skipif mysql # not compatible
query II rowsort label-9082
SELECT ALL 54 * + + COUNT ( * ) AS col2, - MIN ( + 31 )
----
54
-31

query I rowsort
SELECT ALL + 84 + + 87 + 53 * ( 6 ) - 88 * - ( 80 ) + 15 AS col0
----
7544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9084
SELECT DISTINCT - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9084
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT DISTINCT COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9085
SELECT DISTINCT COUNT ( * ) col1
----
1

query I rowsort
SELECT - 18 * - - 35 AS col2
----
-630

onlyif mysql # DIV for integer division: 
query II rowsort label-9087
SELECT ALL - 39 DIV + 65 AS col0, 73 AS col2
----
0
73

skipif mysql # not compatible
query II rowsort label-9087
SELECT ALL - 39 / + 65 AS col0, 73 AS col2
----
0
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9088
SELECT ALL CASE WHEN NULLIF ( + - CAST( NULL AS SIGNED ), COUNT( * ) ) >= - - 31 THEN NULL ELSE 31 END AS col2, + COUNT( * )
----
31
1

skipif mysql # not compatible
query II rowsort label-9088
SELECT ALL CASE WHEN NULLIF ( + - CAST ( NULL AS INTEGER ), COUNT ( * ) ) >= - - 31 THEN NULL ELSE 31 END AS col2, + COUNT ( * )
----
31
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9089
SELECT - CASE CASE WHEN NOT 18 IN ( + 11, - ( 55 ) + + 1, - 88 * + + 92 ) THEN NULL ELSE COUNT( * ) * + + COUNT( ALL 32 ) END WHEN ( - 95 ) + COUNT( * ) THEN - CAST( NULL AS SIGNED ) * + 76 WHEN NULLIF ( 0, - 21 * - 51 ) * + 42 THEN NULL END - 13 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9089
SELECT - CASE CASE WHEN NOT 18 IN ( + 11, - ( 55 ) + + 1, - 88 * + + 92 ) THEN NULL ELSE COUNT ( * ) * + + COUNT ( ALL 32 ) END WHEN ( - 95 ) + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) * + 76 WHEN NULLIF ( 0, - 21 * - 51 ) * + 42 THEN NULL END - 13 * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9090
SELECT - NULLIF ( - 82, - 51 * + 25 * + 28 * 18 ) + - CASE COALESCE ( + 93, - CAST( NULL AS DECIMAL ) ) WHEN - - 30 * + ( 18 ) - - 64 + - 23 THEN NULL WHEN ( 36 ) * 66 + - ( COUNT( * ) ) * - 47 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9090
SELECT - NULLIF ( - 82, - 51 * + 25 * + 28 * 18 ) + - CASE COALESCE ( + 93, - CAST ( NULL AS REAL ) ) WHEN - - 30 * + ( 18 ) - - 64 + - 23 THEN NULL WHEN ( 36 ) * 66 + - ( COUNT ( * ) ) * - 47 THEN COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9091
SELECT DISTINCT + 67 - - + 89 - + COUNT( * ) * - 66 + - - 22 col2, + 66 AS col0
----
244
66

skipif mysql # not compatible
query II rowsort label-9091
SELECT DISTINCT + 67 - - + 89 - + COUNT ( * ) * - 66 + - - 22 col2, + 66 AS col0
----
244
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9092
SELECT ALL - CAST( NULL AS SIGNED ) * - MIN( ALL - + 48 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9092
SELECT ALL - CAST ( NULL AS INTEGER ) * - MIN ( ALL - + 48 ) AS col0
----
NULL

query I rowsort
SELECT - 82 * + + 66 AS col2
----
-5412

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9094
SELECT - 59 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9094
SELECT - 59 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 40 * + + 40
----
-1600

query I rowsort
SELECT DISTINCT - ( - 52 ) - 18
----
34

query I rowsort
SELECT ALL CASE + - 24 WHEN 77 THEN 86 WHEN 39 THEN NULL ELSE NULL END col0
----
NULL

query I rowsort
SELECT DISTINCT 10
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9099
SELECT ALL - 50 - - 62 * 36 * - 85 + + 99 + - 58 DIV - 67
----
-189671

skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL - 50 - - 62 * 36 * - 85 + + 99 + - 58 / - 67
----
-189671

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT ALL - 41 * - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL - 41 * - COUNT ( * )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9101
SELECT - 40 - SUM( - 76 ) - - 90 - + 89 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9101
SELECT - 40 - SUM ( - 76 ) - - 90 - + 89 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 51 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT DISTINCT CASE + 57 WHEN 19 + COUNT( * ) THEN - ( - COUNT( - 80 ) ) * 72 * 22 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9103
SELECT DISTINCT CASE + 57 WHEN 19 + COUNT ( * ) THEN - ( - COUNT ( - 80 ) ) * 72 * 22 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9104
SELECT - 17 * 81 + + 1 DIV MAX( + - 40 ) + + 73 + 93
----
-1211

skipif mysql # not compatible
query I rowsort label-9104
SELECT - 17 * 81 + + 1 / MAX ( + - 40 ) + + 73 + 93
----
-1211

query I rowsort
SELECT - - 20 AS col0
----
20

query I rowsort
SELECT ALL + 78 AS col0
----
78

query I rowsort
SELECT - + CASE + ( + + 44 ) WHEN - 73 THEN - 90 WHEN 93 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 91 AS col1
----
91

query I rowsort
SELECT DISTINCT + 19
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9110
SELECT ALL NULLIF ( + 56, + COALESCE ( 59, 38 + + 91 - + COALESCE ( + + 29, + 80 ) * + AVG ( DISTINCT - 77 ) ) DIV + COUNT( * ) + - 88 ) DIV 51 + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL NULLIF ( + 56, + COALESCE ( 59, 38 + + 91 - + COALESCE ( + + 29, + 80 ) * + AVG ( DISTINCT - 77 ) ) / + COUNT ( * ) + - 88 ) / 51 + COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT - COALESCE ( - COUNT( * ), + NULLIF ( - 33, - MIN( 28 ) ), - - 46 ) + - 71 + + 4 * + - 57
----
-298

skipif mysql # not compatible
query I rowsort label-9111
SELECT - COALESCE ( - COUNT ( * ), + NULLIF ( - 33, - MIN ( 28 ) ), - - 46 ) + - 71 + + 4 * + - 57
----
-298

onlyif mysql # DIV for integer division: 
query I rowsort label-9112
SELECT - ( + + 67 ) DIV 66 - 18 * 21 + - + 6 DIV + ( - - ( 96 ) ) * - 36 + + 94 + + + 85
----
-200

skipif mysql # not compatible
query I rowsort label-9112
SELECT - ( + + 67 ) / 66 - 18 * 21 + - + 6 / + ( - - ( 96 ) ) * - 36 + + 94 + + + 85
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT ALL + 3 * + 58 + + - 7 + + COUNT( 92 )
----
168

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL + 3 * + 58 + + - 7 + + COUNT ( 92 )
----
168

query I rowsort
SELECT 8 * 4 + 24
----
56

query I rowsort
SELECT + 3 - + 6 AS col2
----
-3

query I rowsort
SELECT ALL + 12 col0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9117
SELECT + - 39 DIV 44 * - + 92 + + 37
----
37

skipif mysql # not compatible
query I rowsort label-9117
SELECT + - 39 / 44 * - + 92 + + 37
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT + + 28 * - MIN( ALL - 48 ) - - - 74 col2
----
1270

skipif mysql # not compatible
query I rowsort label-9118
SELECT + + 28 * - MIN ( ALL - 48 ) - - - 74 col2
----
1270

query I rowsort
SELECT + - 1 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9120
SELECT DISTINCT - ( - 20 ) * - 8 + + 37 * - 67 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9120
SELECT DISTINCT - ( - 20 ) * - 8 + + 37 * - 67 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + - 9
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9122
SELECT + 49 + + + ( + 1 ) DIV 82 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-9122
SELECT + 49 + + + ( + 1 ) / 82 AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9123
SELECT ALL + 15 * + CAST( + 43 AS SIGNED ) + COUNT( * ) + - 26 * 11, + COUNT( * ) * 44 - + - 64 AS col0
----
360
108

skipif mysql # not compatible
query II rowsort label-9123
SELECT ALL + 15 * + CAST ( + 43 AS INTEGER ) + COUNT ( * ) + - 26 * 11, + COUNT ( * ) * 44 - + - 64 AS col0
----
360
108

query I rowsort
SELECT 16 * + 73 * 13 + + 82 * - + ( + - 16 )
----
16496

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT ALL - COUNT( * ) * 49
----
-49

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL - COUNT ( * ) * 49
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9126
SELECT ALL + 67, - 62 + CAST( NULL AS SIGNED ) AS col2
----
67
NULL

skipif mysql # not compatible
query II rowsort label-9126
SELECT ALL + 67, - 62 + CAST ( NULL AS INTEGER ) AS col2
----
67
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9127
SELECT ALL - 16 * + 89 * COUNT( ALL - ( 66 ) ) + - 72 + 64 + - - COUNT( * ) AS col1, - NULLIF ( + SUM( DISTINCT + 68 ), 81 ) * - CAST( NULL AS SIGNED )
----
-1431
NULL

skipif mysql # not compatible
query II rowsort label-9127
SELECT ALL - 16 * + 89 * COUNT ( ALL - ( 66 ) ) + - 72 + 64 + - - COUNT ( * ) AS col1, - NULLIF ( + SUM ( DISTINCT + 68 ), 81 ) * - CAST ( NULL AS INTEGER )
----
-1431
NULL

query I rowsort
SELECT + 30 + + + 63 * - + ( + 44 ) * 45 AS col2
----
-124710

query I rowsort
SELECT + 89 * 56 AS col1
----
4984

query I rowsort
SELECT - 95 + 4 * NULLIF ( - 21, + - ( 91 ) )
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT ALL COUNT( * ) * 35 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL COUNT ( * ) * 35 AS col1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-9132
SELECT NULLIF ( - 87, COUNT( * ) + COUNT( * ) ) AS col1, SUM( - - 24 ) - 91 AS col1
----
-87
-67

skipif mysql # not compatible
query II rowsort label-9132
SELECT NULLIF ( - 87, COUNT ( * ) + COUNT ( * ) ) AS col1, SUM ( - - 24 ) - 91 AS col1
----
-87
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9133
SELECT - CAST( + + 28 AS SIGNED ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-9133
SELECT - CAST ( + + 28 AS INTEGER ) AS col2
----
-28

query I rowsort
SELECT DISTINCT - 6 * + ( 20 ) - + 55 AS col1
----
-175

query I rowsort
SELECT ALL ( 2 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9136
SELECT DISTINCT MAX( CAST( NULL AS SIGNED ) ) * - ( 55 ) / + - 17 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9136
SELECT DISTINCT MAX ( CAST ( NULL AS INTEGER ) ) * - ( 55 ) / + - 17 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9137
SELECT DISTINCT NULLIF ( - 9, + COALESCE ( + NULLIF ( CAST( + 45 AS SIGNED ), - + ( - 76 ) ), 95 * + 56 + COUNT( * ) ) ) * - + 79 DIV - COUNT( * )
----
-711

skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT NULLIF ( - 9, + COALESCE ( + NULLIF ( CAST ( + 45 AS INTEGER ), - + ( - 76 ) ), 95 * + 56 + COUNT ( * ) ) ) * - + 79 / - COUNT ( * )
----
-711

onlyif mysql # DIV for integer division: 
query I rowsort label-9138
SELECT ALL + 82 DIV - 72
----
-1

skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL + 82 / - 72
----
-1

query I rowsort
SELECT + 41 + + - 66 * 4
----
-223

query I rowsort
SELECT + 99 - + 0
----
99

query I rowsort
SELECT - 12 AS col1
----
-12

query I rowsort
SELECT + 17 + 4 - + 85 * + + 88 AS col1
----
-7459

query II rowsort
SELECT - 23 + - - 67 * + 1 AS col0, 67 AS col0
----
44
67

query I rowsort
SELECT DISTINCT ( 8 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9145
SELECT ALL + 82 DIV + + 54
----
1

skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL + 82 / + + 54
----
1

query I rowsort
SELECT - + 39 * - - 18
----
-702

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9147
SELECT - + COALESCE ( - 53, + - COALESCE ( - 73, 16, - + COUNT( * ) ) ) AS col1, + 78 * + + COUNT( * ) * + + 67 + + - 9 - - 33 + - + COUNT( * ) + - + CASE 56 WHEN - 82 THEN - 24 + 85 WHEN COUNT( * ) + - 58 THEN + CAST( NULL AS DECIMAL ) + + 90 END
----
53
NULL

skipif mysql # not compatible
query II rowsort label-9147
SELECT - + COALESCE ( - 53, + - COALESCE ( - 73, 16, - + COUNT ( * ) ) ) AS col1, + 78 * + + COUNT ( * ) * + + 67 + + - 9 - - 33 + - + COUNT ( * ) + - + CASE 56 WHEN - 82 THEN - 24 + 85 WHEN COUNT ( * ) + - 58 THEN + CAST ( NULL AS REAL ) + + 90 END
----
53
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9148
SELECT ALL - 47, + COUNT( * ) DIV + ( + 40 ) + + + MAX( - + 69 ) AS col2
----
-47
-69

skipif mysql # not compatible
query II rowsort label-9148
SELECT ALL - 47, + COUNT ( * ) / + ( + 40 ) + + + MAX ( - + 69 ) AS col2
----
-47
-69

query I rowsort
SELECT - - 64 * - - 1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT MAX( - + 29 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-9150
SELECT MAX ( - + 29 ) AS col0
----
-29

query II rowsort
SELECT - 24 + ( 72 ) AS col1, 70 AS col2
----
48
70

query I rowsort
SELECT DISTINCT - 65 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT ALL + - CASE + ( + + 39 ) WHEN 62 THEN + 3 WHEN + - 1 THEN + COALESCE ( + + 70, - MAX( DISTINCT 32 ) * MIN( DISTINCT + ( + + 3 ) ) - - 64 + - 53 ) END + + 43 * NULLIF ( 18 + - COUNT( * ), + 49 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL + - CASE + ( + + 39 ) WHEN 62 THEN + 3 WHEN + - 1 THEN + COALESCE ( + + 70, - MAX ( DISTINCT 32 ) * MIN ( DISTINCT + ( + + 3 ) ) - - 64 + - 53 ) END + + 43 * NULLIF ( 18 + - COUNT ( * ), + 49 ) AS col2
----
NULL

query I rowsort
SELECT 68 + - 21
----
47

query I rowsort
SELECT DISTINCT + 50 + 79
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT ALL + 87 + + NULLIF ( + - 81, + 36 - - - COUNT( * ) + 69 + - 5 * + - 40 + + 65 ) col1
----
6

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL + 87 + + NULLIF ( + - 81, + 36 - - - COUNT ( * ) + 69 + - 5 * + - 40 + + 65 ) col1
----
6

query I rowsort
SELECT DISTINCT - + 34 * - 61 AS col2
----
2074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9158
SELECT ALL + 17 + + + CAST( + - COUNT( * ) AS SIGNED ) * 93 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL + 17 + + + CAST ( + - COUNT ( * ) AS INTEGER ) * 93 AS col0
----
-76

query I rowsort
SELECT DISTINCT - 59 + - - 50 AS col1
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-9160
SELECT + 42 AS col0, + 0 DIV - 82 AS col0
----
42
0

skipif mysql # not compatible
query II rowsort label-9160
SELECT + 42 AS col0, + 0 / - 82 AS col0
----
42
0

query I rowsort
SELECT + - 6 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT CASE - CASE - + COALESCE ( + NULLIF ( - COALESCE ( + 89, + + 84 ), - + COUNT( * ) + 0 / + + CASE WHEN NOT COUNT( * ) IS NULL THEN - + 89 ELSE NULL END ), 86 * + 38 + COUNT( * ) * - 84 ) WHEN + COUNT( * ) * 56 + 98 THEN NULL WHEN - CASE 66 WHEN - 59 / 67 THEN - 56 * 30 END THEN + COALESCE ( 82, 13, - COUNT( * ) - - 94 ) * - 8 + - 21 END WHEN - 53 THEN AVG ( 11 ) - - 14 END * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-9162
SELECT CASE - CASE - + COALESCE ( + NULLIF ( - COALESCE ( + 89, + + 84 ), - + COUNT ( * ) + 0 / + + CASE WHEN NOT COUNT ( * ) IS NULL THEN - + 89 ELSE NULL END ), 86 * + 38 + COUNT ( * ) * - 84 ) WHEN + COUNT ( * ) * 56 + 98 THEN NULL WHEN - CASE 66 WHEN - 59 / 67 THEN - 56 * 30 END THEN + COALESCE ( 82, 13, - COUNT ( * ) - - 94 ) * - 8 + - 21 END WHEN - 53 THEN AVG ( 11 ) - - 14 END * + 52
----
NULL

query I rowsort
SELECT ALL - + 59 + + 0
----
-59

query I rowsort
SELECT ALL - 96 col1
----
-96

query I rowsort
SELECT + ( - 39 ) AS col0
----
-39

query I rowsort
SELECT + 59 AS col1
----
59

query I rowsort
SELECT + - ( - 62 ) col0
----
62

query I rowsort
SELECT ALL - + 14 AS col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9169
SELECT ALL CAST( ( 82 ) AS SIGNED ) + 34 * - 45
----
-1448

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL CAST ( ( 82 ) AS INTEGER ) + 34 * - 45
----
-1448

query I rowsort
SELECT ALL - - 23 AS col2
----
23

query II rowsort
SELECT ALL - - 98, 82 AS col1
----
98
82

onlyif mysql # aggregate syntax: 
query II rowsort label-9172
SELECT + 60 col2, 71 + SUM( + 29 ) + - + 16 * + 81 AS col2
----
60
-1196

skipif mysql # not compatible
query II rowsort label-9172
SELECT + 60 col2, 71 + SUM ( + 29 ) + - + 16 * + 81 AS col2
----
60
-1196

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT ALL ( 58 ) - - - 40 + + COUNT( * ) + + 51 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-9173
SELECT ALL ( 58 ) - - - 40 + + COUNT ( * ) + + 51 AS col0
----
70

query I rowsort
SELECT ALL - 70
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9175
SELECT 48 * + CAST( NULL AS SIGNED ) * + 5 - - + 79 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9175
SELECT 48 * + CAST ( NULL AS INTEGER ) * + 5 - - + 79 col2
----
NULL

query I rowsort
SELECT 42 AS col2
----
42

query I rowsort
SELECT DISTINCT - 89 AS col2
----
-89

query I rowsort
SELECT DISTINCT - 99
----
-99

query I rowsort
SELECT DISTINCT - 2 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9180
SELECT ALL 53 DIV + 77, NULLIF ( 96, - CAST( NULL AS SIGNED ) ) * - 16 + 88 DIV - - 12 AS col2
----
0
-1529

skipif mysql # not compatible
query II rowsort label-9180
SELECT ALL 53 / + 77, NULLIF ( 96, - CAST ( NULL AS INTEGER ) ) * - 16 + 88 / - - 12 AS col2
----
0
-1529

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT - COUNT( * ) * - 44 - COUNT( * ) - COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-9181
SELECT - COUNT ( * ) * - 44 - COUNT ( * ) - COUNT ( * ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT 86 * COUNT( * ) - - NULLIF ( - + 13, - COUNT( * ) ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-9182
SELECT 86 * COUNT ( * ) - - NULLIF ( - + 13, - COUNT ( * ) ) AS col1
----
73

query I rowsort
SELECT ALL - 85
----
-85

query I rowsort
SELECT DISTINCT 48 AS col2
----
48

query I rowsort
SELECT - 54 * 48 + - - 93
----
-2499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9186
SELECT CASE NULLIF ( 68, + 56 ) WHEN COUNT( 65 ) + + - CASE - 89 WHEN - 29 + - 94 - NULLIF ( + + 71, MAX( - - 65 ) ) THEN + 79 * + CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN COUNT( + 82 ) * 53 ELSE ( - 47 ) END THEN 27 + CASE ( + 89 ) + + CAST( NULL AS SIGNED ) WHEN - 57 THEN - NULLIF ( 14, 86 * - 62 + - 27 * + MAX( DISTINCT - 55 ) ) + + 89 / 63 ELSE COUNT( * ) * COUNT( * ) + 69 * - CASE 85 * - 19 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE 24 END END * 77 ELSE NULL END * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-9186
SELECT CASE NULLIF ( 68, + 56 ) WHEN COUNT ( 65 ) + + - CASE - 89 WHEN - 29 + - 94 - NULLIF ( + + 71, MAX ( - - 65 ) ) THEN + 79 * + CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN COUNT ( + 82 ) * 53 ELSE ( - 47 ) END THEN 27 + CASE ( + 89 ) + + CAST ( NULL AS INTEGER ) WHEN - 57 THEN - NULLIF ( 14, 86 * - 62 + - 27 * + MAX ( DISTINCT - 55 ) ) + + 89 / 63 ELSE COUNT ( * ) * COUNT ( * ) + 69 * - CASE 85 * - 19 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE 24 END END * 77 ELSE NULL END * - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT COUNT( * ) * ( + ( + 91 ) ) * COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-9187
SELECT COUNT ( * ) * ( + ( + 91 ) ) * COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT 49 + + - COUNT( * ) + + 5
----
53

skipif mysql # not compatible
query I rowsort label-9188
SELECT 49 + + - COUNT ( * ) + + 5
----
53

query I rowsort
SELECT - 12 AS col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-9190
SELECT 91 + + + 32 DIV + 61
----
91

skipif mysql # not compatible
query I rowsort label-9190
SELECT 91 + + + 32 / + 61
----
91

query I rowsort
SELECT 94 - + - 18 + + - ( 92 ) AS col0
----
20

query I rowsort
SELECT DISTINCT 17
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT ALL COALESCE ( COUNT( ALL 40 ), 94 + 11 ) + + 60 - - - 81 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL COALESCE ( COUNT ( ALL 40 ), 94 + 11 ) + + 60 - - - 81 AS col2
----
-20

query I rowsort
SELECT ALL - 24 + 33
----
9

query I rowsort
SELECT 52 + - + 1 AS col2
----
51

query I rowsort
SELECT ALL - 21 + + - 28 AS col0
----
-49

query I rowsort
SELECT + 88 + ( + - 28 ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT - MIN( ALL - 5 )
----
5

skipif mysql # not compatible
query I rowsort label-9198
SELECT - MIN ( ALL - 5 )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9199
SELECT CAST( + - 69 AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-9199
SELECT CAST ( + - 69 AS INTEGER )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT ALL + ( + COALESCE ( COUNT( * ), + 83 + - 76 + + ( - - 13 ) * - 96 + - MAX( ALL + 57 ) * 31 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL + ( + COALESCE ( COUNT ( * ), + 83 + - 76 + + ( - - 13 ) * - 96 + - MAX ( ALL + 57 ) * 31 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9201
SELECT DISTINCT + + 94 DIV + - COUNT( * ) + + 0 + - - 75 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-9201
SELECT DISTINCT + + 94 / + - COUNT ( * ) + + 0 + - - 75 AS col2
----
-19

query I rowsort
SELECT 39 - + 79
----
-40

query I rowsort
SELECT ALL - - 44 + - 0 col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9204
SELECT ALL + 94 DIV 4 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL + 94 / 4 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT - 48 * - ( 0 ) * + + COUNT( * ) + - - 99 col1
----
99

skipif mysql # not compatible
query I rowsort label-9205
SELECT - 48 * - ( 0 ) * + + COUNT ( * ) + - - 99 col1
----
99

query II rowsort
SELECT ALL + 14 * - 98 AS col1, 78 * - - 84 + 35
----
-1372
6587

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT DISTINCT + - 15 * 1 * + 72 * - COUNT( * ) AS col2
----
1080

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT + - 15 * 1 * + 72 * - COUNT ( * ) AS col2
----
1080

onlyif mysql # aggregate syntax: 
query II rowsort label-9208
SELECT ALL - 80 * + COUNT( * ) - MAX( - - 83 ), 37 * - 33 AS col0
----
-163
-1221

skipif mysql # not compatible
query II rowsort label-9208
SELECT ALL - 80 * + COUNT ( * ) - MAX ( - - 83 ), 37 * - 33 AS col0
----
-163
-1221

onlyif mysql # aggregate syntax: 
query II rowsort label-9209
SELECT COUNT( * ) + - + COUNT( * ), + 0
----
0
0

skipif mysql # not compatible
query II rowsort label-9209
SELECT COUNT ( * ) + - + COUNT ( * ), + 0
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9210
SELECT - 96 DIV + + 57 - + - 37 * + 87 DIV + + 86 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-9210
SELECT - 96 / + + 57 - + - 37 * + 87 / + + 86 AS col0
----
36

query I rowsort
SELECT ALL + 44 * 44
----
1936

query I rowsort
SELECT 53 * + 71 * - 86 + + - 33
----
-323651

query I rowsort
SELECT ALL - ( + 84 )
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9214
SELECT - ( - 21 ) DIV - - COUNT( * ) + 97 + - 51 + - 61 DIV - 24 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-9214
SELECT - ( - 21 ) / - - COUNT ( * ) + 97 + - 51 + - 61 / - 24 AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9215
SELECT + COUNT( * ) * - + CAST( NULL AS DECIMAL ) + - 55 * 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9215
SELECT + COUNT ( * ) * - + CAST ( NULL AS REAL ) + - 55 * 58 AS col0
----
NULL

query I rowsort
SELECT 31 * + + 19
----
589

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9217
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9217
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9218
SELECT DISTINCT 13 DIV + 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT 13 / + 57 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9219
SELECT ALL - ( + CASE + 46 WHEN + 75 THEN - CAST( + + 19 AS SIGNED ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9219
SELECT ALL - ( + CASE + 46 WHEN + 75 THEN - CAST ( + + 19 AS INTEGER ) ELSE NULL END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9220
SELECT DISTINCT + COALESCE ( - - COALESCE ( - 44, 14 ), - AVG ( ALL + 71 ) * 50 * + - 6 + - 66 ) DIV + NULLIF ( + 27, - NULLIF ( - 80, 14 + - 70 ) DIV - CAST( + 71 AS SIGNED ) + - 18 * 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT + COALESCE ( - - COALESCE ( - 44, 14 ), - AVG ( ALL + 71 ) * 50 * + - 6 + - 66 ) / + NULLIF ( + 27, - NULLIF ( - 80, 14 + - 70 ) / - CAST ( + 71 AS INTEGER ) + - 18 * 96 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT CASE 19 WHEN + + 38 THEN NULL WHEN - MIN( DISTINCT - 35 ) THEN ( - 52 ) END + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-9221
SELECT CASE 19 WHEN + + 38 THEN NULL WHEN - MIN ( DISTINCT - 35 ) THEN ( - 52 ) END + + 35
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9222
SELECT 27 AS col1, 56 - - 85 * + 96 + + 53 - 63 - + 12 * 61 / CAST( NULL AS SIGNED ) / + + CAST( NULL AS DECIMAL )
----
27
NULL

skipif mysql # not compatible
query II rowsort label-9222
SELECT 27 AS col1, 56 - - 85 * + 96 + + 53 - 63 - + 12 * 61 / CAST ( NULL AS INTEGER ) / + + CAST ( NULL AS REAL )
----
27
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9223
SELECT ALL - 82 * 7 DIV + + 10
----
-57

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL - 82 * 7 / + + 10
----
-57

query I rowsort
SELECT 46 + - 28
----
18

query I rowsort
SELECT + 53 col2
----
53

query I rowsort
SELECT ALL - 20 AS col2
----
-20

query I rowsort
SELECT 75 col1
----
75

query I rowsort
SELECT DISTINCT 5 + - 61
----
-56

query I rowsort
SELECT - 11 AS col0
----
-11

query I rowsort
SELECT ALL 81 + - 14
----
67

query I rowsort
SELECT ALL 40 + - 64 AS col2
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-9232
SELECT DISTINCT 99 DIV - 17
----
-5

skipif mysql # not compatible
query I rowsort label-9232
SELECT DISTINCT 99 / - 17
----
-5

query I rowsort
SELECT DISTINCT - 83 + - 6
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT + 11 * - COUNT( * ) * + 1 * 10 AS col2
----
-110

skipif mysql # not compatible
query I rowsort label-9234
SELECT + 11 * - COUNT ( * ) * + 1 * 10 AS col2
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9235
SELECT ALL + 61 DIV + + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL + 61 / + + COUNT ( * )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9236
SELECT + + 56 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9236
SELECT + + 56 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9237
SELECT ALL + CAST( - 10 AS DECIMAL ) + + - CASE + 90 WHEN - - 53 - + - 27 - SUM( ALL + 70 ) THEN + 24 * CAST( NULL AS SIGNED ) * - + 50 END + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL + CAST ( - 10 AS REAL ) + + - CASE + 90 WHEN - - 53 - + - 27 - SUM ( ALL + 70 ) THEN + 24 * CAST ( NULL AS INTEGER ) * - + 50 END + + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL + 92 + 16 + 74 + 32 col0
----
214

query I rowsort
SELECT + + 12 - 72
----
-60

query I rowsort
SELECT - + ( + - 20 )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9241
SELECT + CAST( 44 AS SIGNED ) + + - 67
----
-23

skipif mysql # not compatible
query I rowsort label-9241
SELECT + CAST ( 44 AS INTEGER ) + + - 67
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT + - NULLIF ( 67, - 49 * 98 - + + COUNT( * ) ) * - - COUNT( * ) col2
----
-67

skipif mysql # not compatible
query I rowsort label-9242
SELECT + - NULLIF ( 67, - 49 * 98 - + + COUNT ( * ) ) * - - COUNT ( * ) col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT ALL 30 * - COUNT( * ) * - ( - + 60 ) AS col2
----
-1800

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL 30 * - COUNT ( * ) * - ( - + 60 ) AS col2
----
-1800

query I rowsort
SELECT - - 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT + 69 + ( + COUNT( * ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9245
SELECT + 69 + ( + COUNT ( * ) ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT ALL COUNT( * ) + + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL COUNT ( * ) + + - COUNT ( * )
----
0

query I rowsort
SELECT ALL + 10 AS col1
----
10

query I rowsort
SELECT ALL 96 * - + CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE - 86 END AS col1
----
8256

query I rowsort
SELECT DISTINCT - 28
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-9250
SELECT ALL COUNT( * ), + 0 + - 22 - + 16 * + MIN( - + 33 ) + - 84 - - 27 * 74 col0
----
1
2420

skipif mysql # not compatible
query II rowsort label-9250
SELECT ALL COUNT ( * ), + 0 + - 22 - + 16 * + MIN ( - + 33 ) + - 84 - - 27 * 74 col0
----
1
2420

query I rowsort
SELECT + - 80 + + 14
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9252
SELECT ALL CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 16 - 79 * + 14 AS col2
----
-1090

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9254
SELECT + + NULLIF ( - - COUNT( * ), + 55 + + 25 + + - ( + 52 ) DIV + MAX( DISTINCT - 18 ) * + - 15 ) * + 75, 13 DIV - 64 * - 1 col0
----
75
0

skipif mysql # not compatible
query II rowsort label-9254
SELECT + + NULLIF ( - - COUNT ( * ), + 55 + + 25 + + - ( + 52 ) / + MAX ( DISTINCT - 18 ) * + - 15 ) * + 75, 13 / - 64 * - 1 col0
----
75
0

query I rowsort
SELECT - 95 AS col0
----
-95

query I rowsort
SELECT - 72 + 80 AS col2
----
8

query I rowsort
SELECT DISTINCT 17 AS col0
----
17

query I rowsort
SELECT ALL + - 46
----
-46

query I rowsort
SELECT + 66 * - 95
----
-6270

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9260
SELECT ALL - CAST( - 70 AS SIGNED ) DIV 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL - CAST ( - 70 AS INTEGER ) / 95 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9261
SELECT + 84 DIV 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9261
SELECT + 84 / 93 AS col2
----
0

query I rowsort
SELECT DISTINCT + 66 AS col1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9263
SELECT ALL + COALESCE ( - 84, - 0 * - 73 * COALESCE ( + 92, + 34 * NULLIF ( + 73, - + 50 + + 50 * - - AVG ( ALL - ( - 48 ) ) * - - 74 + - 18 ) ) + - CASE + 35 WHEN 9 + - 76 * - 29 THEN NULL ELSE 72 END DIV 44 - 11 * 57 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL + COALESCE ( - 84, - 0 * - 73 * COALESCE ( + 92, + 34 * NULLIF ( + 73, - + 50 + + 50 * - - AVG ( ALL - ( - 48 ) ) * - - 74 + - 18 ) ) + - CASE + 35 WHEN 9 + - 76 * - 29 THEN NULL ELSE 72 END / 44 - 11 * 57 ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT ALL + SUM( - 8 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL + SUM ( - 8 ) AS col1
----
-8

query I rowsort
SELECT DISTINCT + 13 * - + 51 AS col1
----
-663

query II rowsort
SELECT ALL + 21, - 63 AS col0
----
21
-63

query I rowsort
SELECT ALL + 95 * + 53 AS col1
----
5035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9268
SELECT COALESCE ( - COALESCE ( - NULLIF ( - NULLIF ( + + 91, - ( - COUNT( * ) ) ), COALESCE ( MIN( + + 0 ), - 13 + - - CAST( NULL AS SIGNED ) + + 93 + + + 51, - + 20 ) ), 49 - + 31 ), 30 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-9268
SELECT COALESCE ( - COALESCE ( - NULLIF ( - NULLIF ( + + 91, - ( - COUNT ( * ) ) ), COALESCE ( MIN ( + + 0 ), - 13 + - - CAST ( NULL AS INTEGER ) + + 93 + + + 51, - + 20 ) ), 49 - + 31 ), 30 ) AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9269
SELECT DISTINCT + 98 AS col0, ( - - ( - CASE + 32 WHEN + 26 + - 5 * COUNT( * ) / COALESCE ( - - 18, + 22 / + ( + ( + 80 ) ) + 83 + 43 ) * 63 THEN 62 + - CAST( ( - ( + 60 ) ) AS SIGNED ) * 27 WHEN 68 THEN NULL END ) ) AS col1
----
98
NULL

skipif mysql # not compatible
query II rowsort label-9269
SELECT DISTINCT + 98 AS col0, ( - - ( - CASE + 32 WHEN + 26 + - 5 * COUNT ( * ) / COALESCE ( - - 18, + 22 / + ( + ( + 80 ) ) + 83 + 43 ) * 63 THEN 62 + - CAST ( ( - ( + 60 ) ) AS INTEGER ) * 27 WHEN 68 THEN NULL END ) ) AS col1
----
98
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9270
SELECT + 40 col2, - MAX( 26 )
----
40
-26

skipif mysql # not compatible
query II rowsort label-9270
SELECT + 40 col2, - MAX ( 26 )
----
40
-26

query I rowsort
SELECT 23 * 48 - 96 - + 11 + COALESCE ( + 94, - 50 ) AS col0
----
1091

query I rowsort
SELECT NULLIF ( - 73, - + 69 )
----
-73

query I rowsort
SELECT ALL ( + 31 ) * - + 59 + - - 92 + 10 AS col0
----
-1727

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT + COUNT( ALL + ( + + ( + 83 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9274
SELECT + COUNT ( ALL + ( + + ( + 83 ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9275
SELECT NULLIF ( + - NULLIF ( - 72, CASE - 30 WHEN AVG ( - + 23 ) * 47 / + ( + ( 83 ) ) THEN + 63 WHEN + - CAST( - + COUNT( * ) AS SIGNED ) THEN NULL ELSE - 89 END + + - ( + ( 62 ) ) + - CAST( - 63 AS SIGNED ) * - COUNT( * ) ), 54 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-9275
SELECT NULLIF ( + - NULLIF ( - 72, CASE - 30 WHEN AVG ( - + 23 ) * 47 / + ( + ( 83 ) ) THEN + 63 WHEN + - CAST ( - + COUNT ( * ) AS INTEGER ) THEN NULL ELSE - 89 END + + - ( + ( 62 ) ) + - CAST ( - 63 AS INTEGER ) * - COUNT ( * ) ), 54 ) AS col2
----
72

query I rowsort
SELECT 14 * - - 63 + + 75
----
957

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT DISTINCT 77 * - ( - - 72 ) + + COUNT( * ) * + - 13
----
-5557

skipif mysql # not compatible
query I rowsort label-9277
SELECT DISTINCT 77 * - ( - - 72 ) + + COUNT ( * ) * + - 13
----
-5557

query I rowsort
SELECT ALL 46 * + + 83 + + 1 * 39 * + 89
----
7289

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT COALESCE ( + + 83, COUNT( * ), 49 * - 94 + + MAX( + + 69 ) ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9279
SELECT COALESCE ( + + 83, COUNT ( * ), 49 * - 94 + + MAX ( + + 69 ) ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-9280
SELECT COUNT( * ) * - + 42 * - + 3 - SUM( + 97 ) + + - 64 + - SUM( ALL 40 ) + - 17 + MIN( - + 10 ), 34 AS col1
----
-102
34

skipif mysql # not compatible
query II rowsort label-9280
SELECT COUNT ( * ) * - + 42 * - + 3 - SUM ( + 97 ) + + - 64 + - SUM ( ALL 40 ) + - 17 + MIN ( - + 10 ), 34 AS col1
----
-102
34

query II rowsort
SELECT ALL + 10 col1, + 37 AS col0
----
10
37

query I rowsort
SELECT ALL - 51 * + 35 AS col0
----
-1785

query I rowsort
SELECT DISTINCT COALESCE ( 29, + 50 ) * + + 93 + - + 85 * - + 81 + - 0
----
9582

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9284
SELECT ALL + COUNT( * ) * 12 + + - ( 43 ) + - 33 DIV + COUNT( * ) * - ( + + COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL + COUNT ( * ) * 12 + + - ( 43 ) + - 33 / + COUNT ( * ) * - ( + + COUNT ( * ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT DISTINCT - COUNT( ALL - 39 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9285
SELECT DISTINCT - COUNT ( ALL - 39 ) AS col2
----
-1

query I rowsort
SELECT + + 19 + 71 * - + 2
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT + COUNT( * ) - - 52 - + - 92 * + 90 AS col0
----
8333

skipif mysql # not compatible
query I rowsort label-9287
SELECT + COUNT ( * ) - - 52 - + - 92 * + 90 AS col0
----
8333

query II rowsort
SELECT - + 89 AS col1, 15 AS col1
----
-89
15

query II rowsort
SELECT ALL - 39 - - 72 AS col2, 43 col0
----
33
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9290
SELECT ALL 28 - - 28 DIV - 31 - - 3 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL 28 - - 28 / - 31 - - 3 AS col0
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-9291
SELECT 95 AS col1, COUNT( * ) AS col0
----
95
1

skipif mysql # not compatible
query II rowsort label-9291
SELECT 95 AS col1, COUNT ( * ) AS col0
----
95
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT + + 0 DIV - - 10 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9292
SELECT + + 0 / - - 10 AS col2
----
0

query II rowsort
SELECT ALL 5 col2, 3 * 91
----
5
273

query II rowsort
SELECT ALL 67 AS col2, + 98 AS col1
----
67
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9295
SELECT DISTINCT + ( + - CAST( + 16 AS SIGNED ) ) DIV 32 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT + ( + - CAST ( + 16 AS INTEGER ) ) / 32 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9296
SELECT ALL 0, - COUNT( * ) AS col0
----
0
-1

skipif mysql # not compatible
query II rowsort label-9296
SELECT ALL 0, - COUNT ( * ) AS col0
----
0
-1

query I rowsort
SELECT - 86 + 42
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT ALL - MAX( DISTINCT 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL - MAX ( DISTINCT 10 )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9299
SELECT - + 53 AS col0, + CAST( 43 AS SIGNED )
----
-53
43

skipif mysql # not compatible
query II rowsort label-9299
SELECT - + 53 AS col0, + CAST ( 43 AS INTEGER )
----
-53
43

query II rowsort
SELECT DISTINCT 48 * - 5 AS col2, 49 AS col0
----
-240
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9301
SELECT ALL + COALESCE ( - 48, + CASE COUNT( * ) WHEN 71 THEN CASE + 84 WHEN 78 THEN 85 * + 85 ELSE - COUNT( * ) * 49 DIV + 52 * + 51 END * + 8 * 79 - - 36 END * - 39, 2 * NULLIF ( + 91, - ( AVG ( DISTINCT 48 ) ) + - 5 ) ) col0
----
-48

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL + COALESCE ( - 48, + CASE COUNT ( * ) WHEN 71 THEN CASE + 84 WHEN 78 THEN 85 * + 85 ELSE - COUNT ( * ) * 49 / + 52 * + 51 END * + 8 * 79 - - 36 END * - 39, 2 * NULLIF ( + 91, - ( AVG ( DISTINCT 48 ) ) + - 5 ) ) col0
----
-48

query I rowsort
SELECT + + 57 - + 53
----
4

query I rowsort
SELECT ALL 49 * - 45
----
-2205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9304
SELECT + 60 - - 71 - + MIN( - - 23 ) * + + CAST( NULL AS SIGNED ) / + MIN( ALL + 67 ) * - - 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9304
SELECT + 60 - - 71 - + MIN ( - - 23 ) * + + CAST ( NULL AS INTEGER ) / + MIN ( ALL + 67 ) * - - 93 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 12 AS col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9306
SELECT DISTINCT + 80 DIV - + 87 * 66 + - - 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT + 80 / - + 87 * 66 + - - 0 AS col1
----
0

query I rowsort
SELECT ALL + 86
----
86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9308
SELECT 27 DIV 88 + - + 57 + - + NULLIF ( - 29, - CASE + 41 WHEN - + 6 THEN + + CAST( 52 AS SIGNED ) END ) * + NULLIF ( 51, + NULLIF ( COALESCE ( + 83, 22, - + ( - 24 ) ), 87 + CAST( NULL AS SIGNED ) * - 90 ) - - 63 ) + 6 * + 21 AS col0
----
1548

skipif mysql # not compatible
query I rowsort label-9308
SELECT 27 / 88 + - + 57 + - + NULLIF ( - 29, - CASE + 41 WHEN - + 6 THEN + + CAST ( 52 AS INTEGER ) END ) * + NULLIF ( 51, + NULLIF ( COALESCE ( + 83, 22, - + ( - 24 ) ), 87 + CAST ( NULL AS INTEGER ) * - 90 ) - - 63 ) + 6 * + 21 AS col0
----
1548

onlyif mysql # DIV for integer division: 
query I rowsort label-9309
SELECT ALL - 47 DIV - - 63 + - - 76
----
76

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL - 47 / - - 63 + - - 76
----
76

query I rowsort
SELECT DISTINCT + 98 AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9311
SELECT + CASE - + 5 WHEN - 53 * - + 69 + + + 88 - - 21 THEN - 38 + - + ( - + 31 ) ELSE NULL END + + - ( - CAST( NULL AS SIGNED ) ) * - - COUNT( 41 ) / + ( - 88 ) * - 11 * 40 * - CASE WHEN - MIN( DISTINCT + 27 ) IS NULL THEN - 97 * - 75 ELSE CAST( NULL AS SIGNED ) END + - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9311
SELECT + CASE - + 5 WHEN - 53 * - + 69 + + + 88 - - 21 THEN - 38 + - + ( - + 31 ) ELSE NULL END + + - ( - CAST ( NULL AS INTEGER ) ) * - - COUNT ( 41 ) / + ( - 88 ) * - 11 * 40 * - CASE WHEN - MIN ( DISTINCT + 27 ) IS NULL THEN - 97 * - 75 ELSE CAST ( NULL AS INTEGER ) END + - 20 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT + 61 * 19 + - 58 + - 26 * - 35 * + + 74 + COUNT( * ) col1
----
68442

skipif mysql # not compatible
query I rowsort label-9312
SELECT + 61 * 19 + - 58 + - 26 * - 35 * + + 74 + COUNT ( * ) col1
----
68442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9313
SELECT ALL + 91 + 16 - - + CAST( + + 2 AS SIGNED ) - 63
----
46

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL + 91 + 16 - - + CAST ( + + 2 AS INTEGER ) - 63
----
46

query II rowsort
SELECT DISTINCT - 37 * - 45 AS col1, 17
----
1665
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9315
SELECT ALL 35 + 60 * + 35 * ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL 35 + 60 * + 35 * ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT ALL + 19 * MAX( ALL 30 ) AS col2
----
570

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL + 19 * MAX ( ALL 30 ) AS col2
----
570

query II rowsort
SELECT ALL - 64 + + 96, - 59 AS col0
----
32
-59

query II rowsort
SELECT ALL 29 + - - 18 AS col2, 54 AS col0
----
47
54

query II rowsort
SELECT ALL 5 + 65 AS col0, + ( + - 99 ) col2
----
70
-99

query I rowsort
SELECT DISTINCT 64 * + - 84 * 30
----
-161280

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT - ( - 72 ) * 11 + - COUNT( * ) - - + 12
----
803

skipif mysql # not compatible
query I rowsort label-9321
SELECT - ( - 72 ) * 11 + - COUNT ( * ) - - + 12
----
803

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9322
SELECT CAST( + + CAST( - + 32 AS SIGNED ) AS SIGNED ) + - + 3 * - + COUNT( * ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-9322
SELECT CAST ( + + CAST ( - + 32 AS INTEGER ) AS INTEGER ) + - + 3 * - + COUNT ( * ) AS col1
----
-29

query I rowsort
SELECT + + 83 col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT 26 + 10 + 9 - - 28 * COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-9324
SELECT 26 + 10 + 9 - - 28 * COUNT ( * )
----
73

query I rowsort
SELECT DISTINCT - - 8 AS col2
----
8

query II rowsort
SELECT ALL - - 50 - 42 AS col2, 67 AS col0
----
8
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9327
SELECT + 82 * 22, - CAST( NULL AS SIGNED ) * - 6 AS col2
----
1804
NULL

skipif mysql # not compatible
query II rowsort label-9327
SELECT + 82 * 22, - CAST ( NULL AS INTEGER ) * - 6 AS col2
----
1804
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT ALL - 98 * COUNT( * ) * + - ( - 82 ) * - 19
----
152684

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL - 98 * COUNT ( * ) * + - ( - 82 ) * - 19
----
152684

query I rowsort
SELECT DISTINCT - CASE + 7 WHEN + + 38 THEN - 7 WHEN + + 26 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - - 75 * + 29 * - 81 * 95 AS col2
----
-16736625

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT - COUNT( * ) + + COUNT( ALL + 1 )
----
0

skipif mysql # not compatible
query I rowsort label-9331
SELECT - COUNT ( * ) + + COUNT ( ALL + 1 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9332
SELECT DISTINCT + COUNT( * ) * + 97 + - + CAST( + 43 AS SIGNED ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT + COUNT ( * ) * + 97 + - + CAST ( + 43 AS INTEGER ) AS col0
----
54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9333
SELECT DISTINCT - + 8 DIV 11 + 24 DIV - COALESCE ( 76, + 45 - + CAST( NULL AS SIGNED ) ) AS col2, 40
----
0
40

skipif mysql # not compatible
query II rowsort label-9333
SELECT DISTINCT - + 8 / 11 + 24 / - COALESCE ( 76, + 45 - + CAST ( NULL AS INTEGER ) ) AS col2, 40
----
0
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT ALL SUM( 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL SUM ( 57 ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9335
SELECT 16 + - 73 + + - 12 - - 94 + - + 42 + - - 31 * + 49 * + + COUNT( * ) AS col0, - ( - 33 )
----
1502
33

skipif mysql # not compatible
query II rowsort label-9335
SELECT 16 + - 73 + + - 12 - - 94 + - + 42 + - - 31 * + 49 * + + COUNT ( * ) AS col0, - ( - 33 )
----
1502
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9336
SELECT 75 DIV 8 + - - 2 + - 25 - + 61 - - MAX( DISTINCT 95 ) * - - 4 * + + 5 * - 66 AS col0
----
-125475

skipif mysql # not compatible
query I rowsort label-9336
SELECT 75 / 8 + - - 2 + - 25 - + 61 - - MAX ( DISTINCT 95 ) * - - 4 * + + 5 * - 66 AS col0
----
-125475

query I rowsort
SELECT ALL + 83 * - 53 + - 39 + + + 13
----
-4425

query I rowsort
SELECT ALL + - 33 * + 68 + + + 11
----
-2233

query I rowsort
SELECT - + 8 AS col1
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9340
SELECT + 67 + 73 * SUM( + + 36 ) - 34 DIV + 96
----
2695

skipif mysql # not compatible
query I rowsort label-9340
SELECT + 67 + 73 * SUM ( + + 36 ) - 34 / + 96
----
2695

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9341
SELECT - 7 + - ( - CAST( + 25 AS SIGNED ) )
----
18

skipif mysql # not compatible
query I rowsort label-9341
SELECT - 7 + - ( - CAST ( + 25 AS INTEGER ) )
----
18

query I rowsort
SELECT CASE - 21 WHEN - + 74 THEN - 44 END / + NULLIF ( - + 1, - + 23 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT ALL + + 66 * + COALESCE ( - + CASE + + 4 WHEN - ( - + SUM( DISTINCT 49 ) ) + - 79 THEN + 8 * + 66 + 71 * - 17 + COUNT( * ) - SUM( 98 ) WHEN 46 THEN NULL END, 7 ) * 12 AS col1
----
5544

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL + + 66 * + COALESCE ( - + CASE + + 4 WHEN - ( - + SUM ( DISTINCT 49 ) ) + - 79 THEN + 8 * + 66 + 71 * - 17 + COUNT ( * ) - SUM ( 98 ) WHEN 46 THEN NULL END, 7 ) * 12 AS col1
----
5544

query I rowsort
SELECT DISTINCT - - NULLIF ( - 31, + + 7 ) + - 17
----
-48

query I rowsort
SELECT 50 + + 79
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT ALL - COUNT( * ) + - 30 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL - COUNT ( * ) + - 30 AS col0
----
-31

query I rowsort
SELECT 31 * + 20
----
620

query I rowsort
SELECT 69 * - + 70
----
-4830

query I rowsort
SELECT 76 + + - 29 + - 5 * 49 AS col1
----
-198

query II rowsort
SELECT 73 col2, - ( + 19 ) col0
----
73
-19

query I rowsort
SELECT ALL - 14 AS col0
----
-14

query I rowsort
SELECT ALL 89 + 55 AS col2
----
144

query I rowsort
SELECT 48 col2
----
48

query I rowsort
SELECT + 38 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT MIN( DISTINCT - 6 ) + - COALESCE ( + + 92, 64, - 71 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-9355
SELECT MIN ( DISTINCT - 6 ) + - COALESCE ( + + 92, 64, - 71 ) AS col1
----
-98

query I rowsort
SELECT ALL 65 + + 21
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9357
SELECT DISTINCT - 78 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9357
SELECT DISTINCT - 78 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9358
SELECT ALL - COUNT( * ) AS col2, + 48
----
-1
48

skipif mysql # not compatible
query II rowsort label-9358
SELECT ALL - COUNT ( * ) AS col2, + 48
----
-1
48

query I rowsort
SELECT DISTINCT 70 + + ( - - 56 ) AS col0
----
126

query I rowsort
SELECT DISTINCT - 23 AS col0
----
-23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9361
SELECT + CAST( + - ( + - 2 ) AS SIGNED ) DIV + ( + 32 ) - + 18 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-9361
SELECT + CAST ( + - ( + - 2 ) AS INTEGER ) / + ( + 32 ) - + 18 AS col2
----
-18

query I rowsort
SELECT ( - 52 ) * - 0
----
0

query I rowsort
SELECT + + ( - COALESCE ( - 28, + - 91 + + 21 ) )
----
28

query I rowsort
SELECT + 5 AS col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9365
SELECT ALL - CAST( NULL AS SIGNED ) - 81 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL - CAST ( NULL AS INTEGER ) - 81 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9366
SELECT - 66 DIV 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9366
SELECT - 66 / 80 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9367
SELECT DISTINCT - 11 / + 26 * + CAST( NULL AS SIGNED ) * + 80 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9367
SELECT DISTINCT - 11 / + 26 * + CAST ( NULL AS INTEGER ) * + 80 + + COUNT ( * )
----
NULL

query I rowsort
SELECT + + 5 AS col0
----
5

query II rowsort
SELECT DISTINCT - + 58, 90 + 80 col1
----
-58
170

query II rowsort
SELECT DISTINCT - 80 AS col2, - 50
----
-80
-50

query I rowsort
SELECT DISTINCT - + 41 AS col2
----
-41

query I rowsort
SELECT - + 54
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9373
SELECT - CAST( - - 91 AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-9373
SELECT - CAST ( - - 91 AS INTEGER )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9374
SELECT - 35 * - - 73 + - - 40 * - - ( CAST( NULL AS SIGNED ) ) * - 82 + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-9374
SELECT - 35 * - - 73 + - - 40 * - - ( CAST ( NULL AS INTEGER ) ) * - 82 + + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT - + ( - COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9375
SELECT - + ( - COUNT ( * ) ) col0
----
1

query I rowsort
SELECT - - 31 AS col2
----
31

query I rowsort
SELECT DISTINCT 35
----
35

query I rowsort
SELECT ALL - 46 + + - ( + 7 )
----
-53

query I rowsort
SELECT NULLIF ( - + 77, - 44 + + - 20 ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT ALL + + COUNT( * ) + - ( + 89 ) + - 64 + 22 + 23 + + - COUNT( * ) * + 38 * + - 26 + - ( - 87 ) AS col0
----
968

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL + + COUNT ( * ) + - ( + 89 ) + - 64 + 22 + 23 + + - COUNT ( * ) * + 38 * + - 26 + - ( - 87 ) AS col0
----
968

query I rowsort
SELECT 31 + + - 65
----
-34

query I rowsort
SELECT 34 col0
----
34

query I rowsort
SELECT ALL + 63 + - 42
----
21

query I rowsort
SELECT 40 + - - 63 - + + 62 * - ( + 83 ) * 72 * - 9 + - - 61
----
-3334444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9385
SELECT 50 + CAST( - - 50 AS SIGNED ) * MIN( ALL 6 ) AS col2, 20 * ( - 32 ) AS col1
----
350
-640

skipif mysql # not compatible
query II rowsort label-9385
SELECT 50 + CAST ( - - 50 AS INTEGER ) * MIN ( ALL 6 ) AS col2, 20 * ( - 32 ) AS col1
----
350
-640

onlyif mysql # aggregate syntax: 
query II rowsort label-9386
SELECT ALL - 91 + 71, - COUNT( * ) + 0 AS col2
----
-20
-1

skipif mysql # not compatible
query II rowsort label-9386
SELECT ALL - 91 + 71, - COUNT ( * ) + 0 AS col2
----
-20
-1

query I rowsort
SELECT ALL + 36 * - 91 * - - 67
----
-219492

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9388
SELECT - CASE - - 74 WHEN + 31 THEN 43 * - COUNT( - - 42 ) DIV - 9 ELSE + 18 END + + 64 AS col2, 37 * + 95 * + 79 AS col2
----
46
277685

skipif mysql # not compatible
query II rowsort label-9388
SELECT - CASE - - 74 WHEN + 31 THEN 43 * - COUNT ( - - 42 ) / - 9 ELSE + 18 END + + 64 AS col2, 37 * + 95 * + 79 AS col2
----
46
277685

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9389
SELECT + CAST( - 62 AS SIGNED ) DIV + 45 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9389
SELECT + CAST ( - 62 AS INTEGER ) / + 45 AS col0
----
-1

query I rowsort
SELECT - CASE - + 45 WHEN 49 + - 1 * + + 59 + 51 THEN + 35 END - 75 * + 16
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9391
SELECT DISTINCT CASE 5 WHEN + + COUNT( * ) + - 18 THEN - - 89 + + 11 WHEN COUNT( * ) - + - CAST( + COUNT( * ) AS SIGNED ) / - + 28 - 30 THEN NULL ELSE + 42 END AS col1
----
42

skipif mysql # not compatible
query I rowsort label-9391
SELECT DISTINCT CASE 5 WHEN + + COUNT ( * ) + - 18 THEN - - 89 + + 11 WHEN COUNT ( * ) - + - CAST ( + COUNT ( * ) AS INTEGER ) / - + 28 - 30 THEN NULL ELSE + 42 END AS col1
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9392
SELECT ALL - 64 + SUM( ALL + 58 ) + 75 AS col0, + 38 + - 92 col2
----
69
-54

skipif mysql # not compatible
query II rowsort label-9392
SELECT ALL - 64 + SUM ( ALL + 58 ) + 75 AS col0, + 38 + - 92 col2
----
69
-54

query I rowsort
SELECT ALL - 91 * - 76 AS col0
----
6916

onlyif mysql # DIV for integer division: 
query I rowsort label-9394
SELECT ALL NULLIF ( - 33, - 12 DIV 90 ) DIV + + 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL NULLIF ( - 33, - 12 / 90 ) / + + 34 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT + 53 * + 76 * + 83 + - COUNT( - - 80 ) AS col1
----
334323

skipif mysql # not compatible
query I rowsort label-9395
SELECT + 53 * + 76 * + 83 + - COUNT ( - - 80 ) AS col1
----
334323

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT ALL 65 * - COUNT( * ) - + 38
----
-103

skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL 65 * - COUNT ( * ) - + 38
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-9397
SELECT ALL COALESCE ( 0, + 87, 58 * - - 58 + 24 ) DIV + - 13 + 74 + - + 76
----
-2

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL COALESCE ( 0, + 87, 58 * - - 58 + 24 ) / + - 13 + 74 + - + 76
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9398
SELECT 1 DIV - - 82 + 32
----
32

skipif mysql # not compatible
query I rowsort label-9398
SELECT 1 / - - 82 + 32
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT - COUNT( * ) + COUNT( DISTINCT 97 )
----
0

skipif mysql # not compatible
query I rowsort label-9399
SELECT - COUNT ( * ) + COUNT ( DISTINCT 97 )
----
0

query I rowsort
SELECT DISTINCT + NULLIF ( - - 59, - + 44 + - + 52 * 7 + + 74 ) AS col0
----
59

query I rowsort
SELECT ALL + 39 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT + 93 - - - COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-9402
SELECT + 93 - - - COUNT ( * ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT - ( COUNT( * ) ) * - 23
----
23

skipif mysql # not compatible
query I rowsort label-9403
SELECT - ( COUNT ( * ) ) * - 23
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9404
SELECT CASE ( + 22 ) WHEN 34 + 33 THEN + - 32 + - 70 - 42 / + - MIN( ALL 76 ) + - AVG ( DISTINCT + + 55 ) + - COUNT( * ) * + 75 WHEN + 78 + + 78 THEN - 61 + + - COUNT( * ) + 19 WHEN - 70 * + 11 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9404
SELECT CASE ( + 22 ) WHEN 34 + 33 THEN + - 32 + - 70 - 42 / + - MIN ( ALL 76 ) + - AVG ( DISTINCT + + 55 ) + - COUNT ( * ) * + 75 WHEN + 78 + + 78 THEN - 61 + + - COUNT ( * ) + 19 WHEN - 70 * + 11 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + - 97 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT ALL + + MIN( - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL + + MIN ( - 15 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT ALL + + 66 * + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL + + 66 * + COUNT ( * )
----
66

query I rowsort
SELECT ALL + + 47
----
47

query I rowsort
SELECT ALL + 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT ALL + - COUNT( ALL - + 67 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL + - COUNT ( ALL - + 67 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT + CASE 93 WHEN - + 84 THEN COUNT( * ) WHEN + + 18 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9411
SELECT + CASE 93 WHEN - + 84 THEN COUNT ( * ) WHEN + + 18 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9412
SELECT + + 21 DIV + + COALESCE ( - - 14, 98 + - + 27 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9412
SELECT + + 21 / + + COALESCE ( - - 14, 98 + - + 27 ) AS col1
----
1

query I rowsort
SELECT ALL + - 70
----
-70

query I rowsort
SELECT - 39 + 16
----
-23

query I rowsort
SELECT DISTINCT + - 79 AS col2
----
-79

query I rowsort
SELECT + + 77 * ( + + 97 ) AS col0
----
7469

query I rowsort
SELECT + ( - 75 ) + + + 46 AS col0
----
-29

query I rowsort
SELECT ALL + - 97 col0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9419
SELECT + 66 DIV + SUM( DISTINCT + 11 )
----
6

skipif mysql # not compatible
query I rowsort label-9419
SELECT + 66 / + SUM ( DISTINCT + 11 )
----
6

query I rowsort
SELECT - 36 * + 7
----
-252

query I rowsort
SELECT - 69 col2
----
-69

query I rowsort
SELECT ALL + 75 + - 5 AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9423
SELECT - ( - - 71 ) * - CASE + CAST( NULL AS SIGNED ) WHEN + 29 THEN + COUNT( * ) + - - 74 WHEN - + 4 + + + 88 THEN NULL ELSE - 34 * + + 13 + - COUNT( * ) END + + - COUNT( * ) * - 79 + - 80 AS col1
----
-31454

skipif mysql # not compatible
query I rowsort label-9423
SELECT - ( - - 71 ) * - CASE + CAST ( NULL AS INTEGER ) WHEN + 29 THEN + COUNT ( * ) + - - 74 WHEN - + 4 + + + 88 THEN NULL ELSE - 34 * + + 13 + - COUNT ( * ) END + + - COUNT ( * ) * - 79 + - 80 AS col1
----
-31454

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT DISTINCT - SUM( DISTINCT 55 ) + - 34 + - CASE + 40 WHEN - 91 * - ( - + 48 ) + - 3 - + 9 + + + 15 * 42 THEN MIN( 46 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9424
SELECT DISTINCT - SUM ( DISTINCT 55 ) + - 34 + - CASE + 40 WHEN - 91 * - ( - + 48 ) + - 3 - + 9 + + + 15 * 42 THEN MIN ( 46 ) END col0
----
NULL

query I rowsort
SELECT ALL 81
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT ALL + + 3 * + + ( - + SUM( ALL - 77 ) )
----
231

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL + + 3 * + + ( - + SUM ( ALL - 77 ) )
----
231

query I rowsort
SELECT - 15 col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9428
SELECT ALL 96 * CAST( - 78 AS SIGNED )
----
-7488

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL 96 * CAST ( - 78 AS INTEGER )
----
-7488

query I rowsort
SELECT - 7 + + - 28
----
-35

query I rowsort
SELECT 11 col0
----
11

query I rowsort
SELECT - ( + 5 ) + + 7
----
2

query I rowsort
SELECT ALL + 59 + - + 83 + - 81 AS col1
----
-105

query I rowsort
SELECT - ( - + 16 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9434
SELECT - 60 + + - CASE CAST( - - 45 AS DECIMAL ) WHEN - 7 - + MIN( + 89 ) THEN + - 85 END + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9434
SELECT - 60 + + - CASE CAST ( - - 45 AS REAL ) WHEN - 7 - + MIN ( + 89 ) THEN + - 85 END + 38
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9435
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9436
SELECT - CAST( - - ( - 13 ) AS SIGNED ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-9436
SELECT - CAST ( - - ( - 13 ) AS INTEGER ) AS col1
----
13

query II rowsort
SELECT - ( - ( + - 29 ) ) + 15 - 24, + 30 AS col0
----
-38
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT ALL 53 - + COUNT( * ) + - - 44 * - - 34
----
1548

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL 53 - + COUNT ( * ) + - - 44 * - - 34
----
1548

query I rowsort
SELECT ALL - 60 - + 70 AS col2
----
-130

query II rowsort
SELECT 19 AS col2, - 93 AS col2
----
19
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9441
SELECT + ( - + 14 ) DIV + 64 * + + COUNT( * ) * + ( - + 37 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9441
SELECT + ( - + 14 ) / + 64 * + + COUNT ( * ) * + ( - + 37 ) AS col2
----
0

query I rowsort
SELECT - 17 * - 85 AS col2
----
1445

query I rowsort
SELECT ALL NULLIF ( - 78, 42 ) AS col1
----
-78

query II rowsort
SELECT 97, 38 * 54 * - + 6 AS col0
----
97
-12312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9445
SELECT - 94 + + COUNT( * ) + - MAX( ALL - 28 ) + + ( - 11 ) DIV 20 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-9445
SELECT - 94 + + COUNT ( * ) + - MAX ( ALL - 28 ) + + ( - 11 ) / 20 AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9446
SELECT 33 / ( - CAST( NULL AS SIGNED ) ) * + 69 + - + MIN( 98 ) * 27 - + + 30 + SUM( 51 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9446
SELECT 33 / ( - CAST ( NULL AS INTEGER ) ) * + 69 + - + MIN ( 98 ) * 27 - + + 30 + SUM ( 51 ) AS col1
----
NULL

query I rowsort
SELECT - 81 * + 28
----
-2268

query I rowsort
SELECT DISTINCT - ( + + ( 4 ) ) * 39 AS col0
----
-156

query I rowsort
SELECT DISTINCT + 84 col0
----
84

query I rowsort
SELECT DISTINCT + 53 * + + 63
----
3339

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9451
SELECT - 71 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT - 71 * + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 32
----
32

query I rowsort
SELECT ALL + + 45 AS col2
----
45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9454
SELECT 56 * 86 + + 74 - + CAST( + 52 AS SIGNED ) DIV + - ( - + ( + - 7 ) ) - + - 91 + + - 3
----
4985

skipif mysql # not compatible
query I rowsort label-9454
SELECT 56 * 86 + + 74 - + CAST ( + 52 AS INTEGER ) / + - ( - + ( + - 7 ) ) - + - 91 + + - 3
----
4985

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9455
SELECT ALL + + 82 / + 21 * - SUM( DISTINCT 73 ) + COUNT( * ) + COUNT( * ) * + + 4 + CAST( NULL AS SIGNED ) + MIN( + - CAST( NULL AS SIGNED ) ) * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT ALL + + 82 / + 21 * - SUM ( DISTINCT 73 ) + COUNT ( * ) + COUNT ( * ) * + + 4 + CAST ( NULL AS INTEGER ) + MIN ( + - CAST ( NULL AS INTEGER ) ) * 17
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9456
SELECT - COUNT( * ) + - 28 + - + COUNT( * ) * + + 84 * + COUNT( * ) AS col0, + 21 - + 26 AS col0
----
-113
-5

skipif mysql # not compatible
query II rowsort label-9456
SELECT - COUNT ( * ) + - 28 + - + COUNT ( * ) * + + 84 * + COUNT ( * ) AS col0, + 21 - + 26 AS col0
----
-113
-5

query I rowsort
SELECT + - 81 AS col2
----
-81

query I rowsort
SELECT - - 65 * + 88
----
5720

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT - COUNT( * ) + + 93 + + - 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9459
SELECT - COUNT ( * ) + + 93 + + - 92 AS col0
----
0

query I rowsort
SELECT + + 27
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT ALL + COUNT( DISTINCT + 52 )
----
1

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL + COUNT ( DISTINCT + 52 )
----
1

query I rowsort
SELECT ( 20 ) AS col0
----
20

query I rowsort
SELECT ALL 38 * - 59 + - 2 AS col1
----
-2244

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT ALL - COUNT( * ) * - - ( - 45 ) + + 10 + + ( - + 66 ) * 33
----
-2123

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL - COUNT ( * ) * - - ( - 45 ) + + 10 + + ( - + 66 ) * 33
----
-2123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9465
SELECT - SUM( - 68 ) * + + CAST( CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) * - - 10 - 8 DIV + 11 AS col0
----
680

skipif mysql # not compatible
query I rowsort label-9465
SELECT - SUM ( - 68 ) * + + CAST ( CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) * - - 10 - 8 / + 11 AS col0
----
680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT ALL + CAST( + + 28 AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL + CAST ( + + 28 AS INTEGER )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT + - CASE + + 16 WHEN 33 THEN NULL WHEN + - ( - 63 ) THEN - COUNT( DISTINCT - 57 ) END + + 89 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9467
SELECT + - CASE + + 16 WHEN 33 THEN NULL WHEN + - ( - 63 ) THEN - COUNT ( DISTINCT - 57 ) END + + 89 col1
----
NULL

query I rowsort
SELECT ALL + 40
----
40

query I rowsort
SELECT - 59 AS col1
----
-59

query I rowsort
SELECT ALL - - 99 * + - 97 - 44 + 29 AS col1
----
-9618

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT DISTINCT + 82 * 61 + - 1 + 27 * + + ( - + COUNT( * ) ) + - + ( 81 ) AS col1
----
4893

skipif mysql # not compatible
query I rowsort label-9471
SELECT DISTINCT + 82 * 61 + - 1 + 27 * + + ( - + COUNT ( * ) ) + - + ( 81 ) AS col1
----
4893

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT + COALESCE ( + 42, + - NULLIF ( - + COUNT( * ), + 35 / - MAX( DISTINCT 16 ) * - 29 ) * + 95 + + 67 * - - 34 * COUNT( + 85 ) + 82 + + 56 + 25 + - COUNT( * ) * + 5 * + 31 * + 63 * - 34 ) * 24
----
1008

skipif mysql # not compatible
query I rowsort label-9472
SELECT + COALESCE ( + 42, + - NULLIF ( - + COUNT ( * ), + 35 / - MAX ( DISTINCT 16 ) * - 29 ) * + 95 + + 67 * - - 34 * COUNT ( + 85 ) + 82 + + 56 + 25 + - COUNT ( * ) * + 5 * + 31 * + 63 * - 34 ) * 24
----
1008

query I rowsort
SELECT ALL - 19 col0
----
-19

query II rowsort
SELECT - 15 AS col1, 36 * + + 18 + 7 * - 44 + + 1
----
-15
341

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9475
SELECT 85 / + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9475
SELECT 85 / + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + 33 * - 27 - - - 59
----
-950

query I rowsort
SELECT ALL 42 * 71 col2
----
2982

onlyif mysql # aggregate syntax: 
query II rowsort label-9478
SELECT 72, + COUNT( * ) AS col1
----
72
1

skipif mysql # not compatible
query II rowsort label-9478
SELECT 72, + COUNT ( * ) AS col1
----
72
1

query I rowsort
SELECT DISTINCT 59 * - 89 col2
----
-5251

onlyif mysql # DIV for integer division: 
query I rowsort label-9480
SELECT DISTINCT 71 DIV 47 * + 68 col2
----
68

skipif mysql # not compatible
query I rowsort label-9480
SELECT DISTINCT 71 / 47 * + 68 col2
----
68

query I rowsort
SELECT ALL + 28 - ( - 82 ) AS col1
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9482
SELECT ALL 6 * + NULLIF ( - ( + + COALESCE ( + - 8, + CAST( NULL AS SIGNED ) * - 41 DIV + 89 - - COUNT( * ) ) ), 19 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL 6 * + NULLIF ( - ( + + COALESCE ( + - 8, + CAST ( NULL AS INTEGER ) * - 41 / + 89 - - COUNT ( * ) ) ), 19 ) AS col0
----
48

query I rowsort
SELECT 96 AS col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9484
SELECT ( 41 ) + + 98 + - 38 * + + 0 DIV + - ( - 95 ) + - - 57 * + - ( + 45 ) col0
----
-2426

skipif mysql # not compatible
query I rowsort label-9484
SELECT ( 41 ) + + 98 + - 38 * + + 0 / + - ( - 95 ) + - - 57 * + - ( + 45 ) col0
----
-2426

onlyif mysql # aggregate syntax: 
query II rowsort label-9485
SELECT ALL 46, + COUNT( DISTINCT - NULLIF ( - 55, + + 90 ) ) col2
----
46
1

skipif mysql # not compatible
query II rowsort label-9485
SELECT ALL 46, + COUNT ( DISTINCT - NULLIF ( - 55, + + 90 ) ) col2
----
46
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT SUM( - - 65 ) + COUNT( * ) * + CASE - 8 WHEN - 65 THEN + 16 * + + 3 WHEN - 43 * - COUNT( * ) * 17 * + - 55 THEN + 69 * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9486
SELECT SUM ( - - 65 ) + COUNT ( * ) * + CASE - 8 WHEN - 65 THEN + 16 * + + 3 WHEN - 43 * - COUNT ( * ) * 17 * + - 55 THEN + 69 * - COUNT ( * ) END
----
NULL

query I rowsort
SELECT 94 + + 13
----
107

query I rowsort
SELECT DISTINCT 54
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT NULLIF ( - 29, - + COUNT( + + 26 ) + - + 45 * 16 ) + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-9489
SELECT NULLIF ( - 29, - + COUNT ( + + 26 ) + - + 45 * 16 ) + COUNT ( * )
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-9490
SELECT ALL 60 AS col0, MIN( DISTINCT - 73 ) * - 11
----
60
803

skipif mysql # not compatible
query II rowsort label-9490
SELECT ALL 60 AS col0, MIN ( DISTINCT - 73 ) * - 11
----
60
803

query I rowsort
SELECT DISTINCT - 51 AS col0
----
-51

query I rowsort
SELECT ALL - 60 * - 63 + 94 * - 17 - 89
----
2093

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT ALL 29 + - - 50 - 20 + COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL 29 + - - 50 - 20 + COUNT ( * ) AS col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9494
SELECT 19 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9494
SELECT 19 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 10 * - 92 + + 29 AS col1
----
-891

query II rowsort
SELECT 81 AS col2, + 74 * 9 + + 21 * + 64 AS col2
----
81
2010

query I rowsort
SELECT + + 83
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9498
SELECT ALL ( + 40 ) * - 87 + 21 * CASE - 65 WHEN - ( + - 67 ) * - - COUNT( * ) + - 88 THEN + - 96 * + MAX( ALL + + 55 ) * - 70 + MIN( DISTINCT - - CASE + 34 WHEN + COALESCE ( 91, 30 * + 88, + 47 ) THEN NULL ELSE - CAST( NULL AS SIGNED ) * + 96 END ) - COUNT( * ) * 56 * + CASE 86 * + 28 WHEN - 38 + 8 THEN + 92 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL ( + 40 ) * - 87 + 21 * CASE - 65 WHEN - ( + - 67 ) * - - COUNT ( * ) + - 88 THEN + - 96 * + MAX ( ALL + + 55 ) * - 70 + MIN ( DISTINCT - - CASE + 34 WHEN + COALESCE ( 91, 30 * + 88, + 47 ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) * + 96 END ) - COUNT ( * ) * 56 * + CASE 86 * + 28 WHEN - 38 + 8 THEN + 92 END END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9499
SELECT ALL + MAX( DISTINCT + 20 ) + COALESCE ( + ( - - CAST( NULL AS SIGNED ) ), + 82, + + 54 ) AS col1
----
102

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL + MAX ( DISTINCT + 20 ) + COALESCE ( + ( - - CAST ( NULL AS INTEGER ) ), + 82, + + 54 ) AS col1
----
102

query I rowsort
SELECT DISTINCT - - 57 * - 89 + - - 24
----
-5049

onlyif mysql # DIV for integer division: 
query II rowsort label-9501
SELECT ALL - 83 DIV 59 + + ( 99 ), ( ( + + 14 ) ) col1
----
98
14

skipif mysql # not compatible
query II rowsort label-9501
SELECT ALL - 83 / 59 + + ( 99 ), ( ( + + 14 ) ) col1
----
98
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9502
SELECT + COUNT ( * ) col0
----
1

query I rowsort
SELECT ALL - 14 + - - 0 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-9504
SELECT COUNT( * ) AS col0, 93
----
1
93

skipif mysql # not compatible
query II rowsort label-9504
SELECT COUNT ( * ) AS col0, 93
----
1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT + - COUNT( 75 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9505
SELECT + - COUNT ( 75 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT ( 97 ) + + - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-9506
SELECT ( 97 ) + + - COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT 44 * + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-9507
SELECT 44 * + COUNT ( * )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9508
SELECT ALL + CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + NULLIF ( - NULLIF ( - 44, - 59 ), - 32 ) AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9510
SELECT + ( + ( - 46 ) ) + - + NULLIF ( + COALESCE ( - CASE + COUNT( * ) WHEN + ( - + COUNT( * ) ) THEN - 24 ELSE - - CASE 51 WHEN 45 THEN 62 END END, 50 ), - + COUNT( * ) + + COUNT( * ) ) + - - 25 DIV - NULLIF ( - 29, COUNT( * ) ) * + ( + 76 * - ( + COUNT( * ) * - ( ( - 95 ) ) ) + NULLIF ( + 55, COALESCE ( 99, - 75, 49 ) * - 57 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-9510
SELECT + ( + ( - 46 ) ) + - + NULLIF ( + COALESCE ( - CASE + COUNT ( * ) WHEN + ( - + COUNT ( * ) ) THEN - 24 ELSE - - CASE 51 WHEN 45 THEN 62 END END, 50 ), - + COUNT ( * ) + + COUNT ( * ) ) + - - 25 / - NULLIF ( - 29, COUNT ( * ) ) * + ( + 76 * - ( + COUNT ( * ) * - ( ( - 95 ) ) ) + NULLIF ( + 55, COALESCE ( 99, - 75, 49 ) * - 57 ) )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9511
SELECT + - CAST( CASE + CAST( NULL AS SIGNED ) WHEN - - MAX( ALL - 86 ) THEN + COUNT( - 3 ) WHEN 62 THEN + - 20 ELSE NULL END AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9511
SELECT + - CAST ( CASE + CAST ( NULL AS INTEGER ) WHEN - - MAX ( ALL - 86 ) THEN + COUNT ( - 3 ) WHEN 62 THEN + - 20 ELSE NULL END AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT ALL 25 - + 39 + + + 23 + - 53 * - 67 * - + 58 * COUNT( * ) AS col1
----
-205949

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL 25 - + 39 + + + 23 + - 53 * - 67 * - + 58 * COUNT ( * ) AS col1
----
-205949

query I rowsort
SELECT + 29 * + - 1 + - - 99 * - + 6
----
-623

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9514
SELECT 78 * + 12 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9514
SELECT 78 * + 12 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 18 * - ( - 48 )
----
864

query I rowsort
SELECT ALL 78 AS col0
----
78

query I rowsort
SELECT 10 + + 63
----
73

query I rowsort
SELECT 74 AS col2
----
74

query I rowsort
SELECT 44 col0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9520
SELECT CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) AS col1, + 94
----
NULL
94

skipif mysql # not compatible
query II rowsort label-9520
SELECT CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) AS col1, + 94
----
NULL
94

query I rowsort
SELECT DISTINCT 98 AS col2
----
98

query I rowsort
SELECT 60 AS col2
----
60

query I rowsort
SELECT DISTINCT 4 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT ALL COUNT( * ) + - ( - - 42 )
----
-41

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL COUNT ( * ) + - ( - - 42 )
----
-41

query I rowsort
SELECT - 10 col0
----
-10

query I rowsort
SELECT 29 * - NULLIF ( 14, 27 )
----
-406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9527
SELECT 75 * - COUNT( * ) * - + 30 + + - 25 * - - CASE - 59 WHEN - 75 * + 72 + + 89 THEN 70 END * + + CAST( + 92 AS SIGNED ) * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9527
SELECT 75 * - COUNT ( * ) * - + 30 + + - 25 * - - CASE - 59 WHEN - 75 * + 72 + + 89 THEN 70 END * + + CAST ( + 92 AS INTEGER ) * - 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT COUNT( * ) * - 17 * - 50 * + 7 + 36
----
5986

skipif mysql # not compatible
query I rowsort label-9528
SELECT COUNT ( * ) * - 17 * - 50 * + 7 + 36
----
5986

query I rowsort
SELECT ( - 74 ) * + + 32 * 4 * - 76 + 5
----
719877

query I rowsort
SELECT 14 AS col1
----
14

query I rowsort
SELECT + ( 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT - - CASE + 32 WHEN - COUNT( * ) THEN - COUNT( * ) END * + - COUNT( * ) - - 76 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT - - CASE + 32 WHEN - COUNT ( * ) THEN - COUNT ( * ) END * + - COUNT ( * ) - - 76 + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT ALL COUNT( * ) * - 10 col0
----
-10

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL COUNT ( * ) * - 10 col0
----
-10

query I rowsort
SELECT 44 * 46 - + 43 AS col1
----
1981

query I rowsort
SELECT ALL - 31 col1
----
-31

query I rowsort
SELECT + ( + 97 ) col1
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9537
SELECT 38 * - 27 + + 13 - + COUNT( * ) + - 57, + 58 AS col1
----
-1071
58

skipif mysql # not compatible
query II rowsort label-9537
SELECT 38 * - 27 + + 13 - + COUNT ( * ) + - 57, + 58 AS col1
----
-1071
58

query I rowsort
SELECT + 44 AS col2
----
44

query I rowsort
SELECT + + 63 + + - 1 + 71 AS col0
----
133

query I rowsort
SELECT + - ( + 91 )
----
-91

query I rowsort
SELECT + - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT 41 * + 62 * + 43 + - ( - - 33 ) + 55 * COUNT( * ) + 9 - - + 99 * 87 * - 16
----
-28471

skipif mysql # not compatible
query I rowsort label-9542
SELECT 41 * + 62 * + 43 + - ( - - 33 ) + 55 * COUNT ( * ) + 9 - - + 99 * 87 * - 16
----
-28471

query I rowsort
SELECT DISTINCT + - 74
----
-74

query I rowsort
SELECT + 49 * + 68 AS col1
----
3332

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT ALL + - CASE 91 WHEN - + COUNT( * ) THEN - 50 * 12 + + 16 * + - 51 * + 31 ELSE - COUNT( * ) END * 16 * 83 + - SUM( - 44 )
----
1372

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL + - CASE 91 WHEN - + COUNT ( * ) THEN - 50 * 12 + + 16 * + - 51 * + 31 ELSE - COUNT ( * ) END * 16 * 83 + - SUM ( - 44 )
----
1372

query I rowsort
SELECT + 95 col0
----
95

query I rowsort
SELECT ALL + - 32 AS col0
----
-32

query I rowsort
SELECT DISTINCT 95 * 61 AS col1
----
5795

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9549
SELECT + 25 * 2 - 42 AS col2, - CASE + 15 WHEN - ( CASE - - 38 WHEN + + 42 THEN NULL WHEN 65 THEN - 94 ELSE + + CAST( NULL AS SIGNED ) END ) + - CAST( - 51 AS SIGNED ) THEN NULL ELSE + 94 + + + 17 END AS col2
----
8
-111

skipif mysql # not compatible
query II rowsort label-9549
SELECT + 25 * 2 - 42 AS col2, - CASE + 15 WHEN - ( CASE - - 38 WHEN + + 42 THEN NULL WHEN 65 THEN - 94 ELSE + + CAST ( NULL AS INTEGER ) END ) + - CAST ( - 51 AS INTEGER ) THEN NULL ELSE + 94 + + + 17 END AS col2
----
8
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT ALL + ( COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL + ( COUNT ( * ) ) col2
----
1

query I rowsort
SELECT - ( - - 87 ) * ( + + 77 ) AS col1
----
-6699

query I rowsort
SELECT ALL + 1 * + + 41
----
41

query I rowsort
SELECT ALL + 23 AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9554
SELECT - 77 DIV - 22 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9554
SELECT - 77 / - 22 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT ALL MAX( DISTINCT 70 )
----
70

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL MAX ( DISTINCT 70 )
----
70

query I rowsort
SELECT - ( - 75 ) * - - 76
----
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT ALL NULLIF ( + + 53, - 15 + - + ( + COUNT( * ) ) )
----
53

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL NULLIF ( + + 53, - 15 + - + ( + COUNT ( * ) ) )
----
53

query I rowsort
SELECT 21 AS col0
----
21

query I rowsort
SELECT DISTINCT ( + 55 ) AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9560
SELECT - 93 + + CASE - 89 WHEN MIN( ALL + 58 ) + CASE + 96 WHEN - ( + COUNT( * ) ) THEN + 20 END * 24 - - + 70 + - CAST( NULL AS SIGNED ) * + 0 THEN NULL ELSE + 91 * - CAST( 81 AS SIGNED ) * - - CAST( + 25 AS SIGNED ) END AS col2
----
-184368

skipif mysql # not compatible
query I rowsort label-9560
SELECT - 93 + + CASE - 89 WHEN MIN ( ALL + 58 ) + CASE + 96 WHEN - ( + COUNT ( * ) ) THEN + 20 END * 24 - - + 70 + - CAST ( NULL AS INTEGER ) * + 0 THEN NULL ELSE + 91 * - CAST ( 81 AS INTEGER ) * - - CAST ( + 25 AS INTEGER ) END AS col2
----
-184368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9561
SELECT ALL CAST( NULL AS SIGNED ) + 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL CAST ( NULL AS INTEGER ) + 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9562
SELECT 16 col1, 38 * + SUM( ALL 81 )
----
16
3078

skipif mysql # not compatible
query II rowsort label-9562
SELECT 16 col1, 38 * + SUM ( ALL 81 )
----
16
3078

query I rowsort
SELECT + 87 * - 78
----
-6786

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT - 99 + - 97 * + 87 + - COUNT( * ) + + + COUNT( DISTINCT + 17 ) AS col1
----
-8538

skipif mysql # not compatible
query I rowsort label-9564
SELECT - 99 + - 97 * + 87 + - COUNT ( * ) + + + COUNT ( DISTINCT + 17 ) AS col1
----
-8538

query I rowsort
SELECT + 5 - 30
----
-25

query I rowsort
SELECT DISTINCT + 66 * 48 AS col1
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT ALL - COALESCE ( + 89, - 41 - + 25 * - 13 + - - CASE ( + - 6 ) WHEN + 95 * - SUM( - 90 ) THEN - 88 WHEN - COUNT( * ) + + 83 + - 80 * ( + + 24 ) * COUNT( * ) + 31 + - 5 THEN + + 22 END, COUNT( * ) ) + 0 * + 22
----
-89

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL - COALESCE ( + 89, - 41 - + 25 * - 13 + - - CASE ( + - 6 ) WHEN + 95 * - SUM ( - 90 ) THEN - 88 WHEN - COUNT ( * ) + + 83 + - 80 * ( + + 24 ) * COUNT ( * ) + 31 + - 5 THEN + + 22 END, COUNT ( * ) ) + 0 * + 22
----
-89

query I rowsort
SELECT - 75 + + + CASE 63 WHEN - 22 * + 82 - - 34 THEN - 76 + + 75 + 52 + - + 23 * 97 END + + - 48 + 54 / + + 66 - 42
----
NULL

query II rowsort
SELECT 64, 65 + - + 9 AS col0
----
64
56

query I rowsort
SELECT ALL CASE ( + + 51 ) WHEN - 25 / - 11 THEN - 91 + + 56 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT - 94 + + MIN( 78 ) * - + COUNT( * ) AS col1
----
-172

skipif mysql # not compatible
query I rowsort label-9571
SELECT - 94 + + MIN ( 78 ) * - + COUNT ( * ) AS col1
----
-172

onlyif mysql # aggregate syntax: 
query II rowsort label-9572
SELECT + 64 * - COUNT( 32 ) AS col2, COUNT( * )
----
-64
1

skipif mysql # not compatible
query II rowsort label-9572
SELECT + 64 * - COUNT ( 32 ) AS col2, COUNT ( * )
----
-64
1

query I rowsort
SELECT ALL 34 + - + 65 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT DISTINCT + + COALESCE ( 93, + 9 ) * MAX( ALL + + 94 ) col0
----
8742

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT + + COALESCE ( 93, + 9 ) * MAX ( ALL + + 94 ) col0
----
8742

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9575
SELECT ALL 47 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL 47 + - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + ( - 84 ) + - + 30 AS col0
----
-114

query II rowsort
SELECT DISTINCT + 53 AS col2, - 60 AS col1
----
53
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-9578
SELECT + 61 DIV - + COALESCE ( - 61, + 85 + 80 * - 50, - + 26 ) + - 91
----
-90

skipif mysql # not compatible
query I rowsort label-9578
SELECT + 61 / - + COALESCE ( - 61, + 85 + 80 * - 50, - + 26 ) + - 91
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9579
SELECT ALL - 35 DIV + 98 - - 2 - - 15 + - 36 DIV 67 * - - COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL - 35 / + 98 - - 2 - - 15 + - 36 / 67 * - - COUNT ( * ) AS col0
----
17

query I rowsort
SELECT ALL ( ( - - 85 ) ) * + 6
----
510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9581
SELECT ALL - SUM( 71 ) * + 39 + + 55 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL - SUM ( 71 ) * + 39 + + 55 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9582
SELECT + - 38, ( + 1 ) + + - COUNT( ALL - NULLIF ( + - 6, 69 ) ) * + + COALESCE ( MAX( 36 ), ( + 29 ) ) col2
----
-38
-35

skipif mysql # not compatible
query II rowsort label-9582
SELECT + - 38, ( + 1 ) + + - COUNT ( ALL - NULLIF ( + - 6, 69 ) ) * + + COALESCE ( MAX ( 36 ), ( + 29 ) ) col2
----
-38
-35

query II rowsort
SELECT + 50 AS col1, - 7 * 80 - - 28
----
50
-532

onlyif mysql # aggregate syntax: 
query II rowsort label-9584
SELECT + 67 AS col2, - COUNT( * ) * + + 69 AS col0
----
67
-69

skipif mysql # not compatible
query II rowsort label-9584
SELECT + 67 AS col2, - COUNT ( * ) * + + 69 AS col0
----
67
-69

query II rowsort
SELECT + 73 * + 62 + + 12 AS col2, - 77
----
4538
-77

query I rowsort
SELECT + - 15
----
-15

query II rowsort
SELECT ALL + 58, - 2 AS col1
----
58
-2

query I rowsort
SELECT ALL + 17 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT + COUNT( * ) * 51 + 51
----
102

skipif mysql # not compatible
query I rowsort label-9589
SELECT + COUNT ( * ) * 51 + 51
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9590
SELECT ALL + COALESCE ( + + 62, + - 40 DIV - COUNT( * ), 52 )
----
62

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL + COALESCE ( + + 62, + - 40 / - COUNT ( * ), 52 )
----
62

query I rowsort
SELECT DISTINCT + 4 * + 67 col2
----
268

query I rowsort
SELECT ALL + 94 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT DISTINCT + SUM( ALL 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-9593
SELECT DISTINCT + SUM ( ALL 83 ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT + CASE + NULLIF ( + SUM( ALL + + 35 ), - COUNT( * ) ) WHEN + 89 THEN + 16 ELSE NULL END * 5 * + 21 + + + 47 + - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9594
SELECT + CASE + NULLIF ( + SUM ( ALL + + 35 ), - COUNT ( * ) ) WHEN + 89 THEN + 16 ELSE NULL END * 5 * + 21 + + + 47 + - 24 AS col1
----
NULL

query I rowsort
SELECT ALL + 23 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT + SUM( DISTINCT ( - - 89 ) ) * + MAX( ALL - + 31 ) AS col0
----
-2759

skipif mysql # not compatible
query I rowsort label-9596
SELECT + SUM ( DISTINCT ( - - 89 ) ) * + MAX ( ALL - + 31 ) AS col0
----
-2759

query I rowsort
SELECT + ( + + 1 ) * - - 40 AS col1
----
40

query II rowsort
SELECT + 89 + - 50 AS col1, - 88
----
39
-88

query I rowsort
SELECT + ( - 0 ) AS col0
----
0

query I rowsort
SELECT - 53 + + 1
----
-52

query I rowsort
SELECT + ( 48 ) * - 44 col2
----
-2112

query I rowsort
SELECT - 71 * + 7
----
-497

onlyif mysql # DIV for integer division: 
query I rowsort label-9603
SELECT DISTINCT 88 DIV + 9
----
9

skipif mysql # not compatible
query I rowsort label-9603
SELECT DISTINCT 88 / + 9
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT ALL 51 * + CASE + 30 WHEN + 43 THEN NULL WHEN - 23 - 16 + + 51 * MIN( ALL + - 65 ) THEN 76 END / + 80 + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL 51 * + CASE + 30 WHEN + 43 THEN NULL WHEN - 23 - 16 + + 51 * MIN ( ALL + - 65 ) THEN 76 END / + 80 + + 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT ALL - 97 * COUNT( * ) + - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL - 97 * COUNT ( * ) + - COUNT ( * )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9606
SELECT CASE + - 67 WHEN + 90 THEN + ( - 64 ) WHEN + ( - ( + CAST( - 0 AS SIGNED ) ) ) + - CAST( NULL AS SIGNED ) THEN ( CASE + + ( + CAST( + 89 AS SIGNED ) ) WHEN + ( + 89 ) THEN NULL ELSE - - 37 END ) + + 73 ELSE 72 END AS col0
----
72

skipif mysql # not compatible
query I rowsort label-9606
SELECT CASE + - 67 WHEN + 90 THEN + ( - 64 ) WHEN + ( - ( + CAST ( - 0 AS INTEGER ) ) ) + - CAST ( NULL AS INTEGER ) THEN ( CASE + + ( + CAST ( + 89 AS INTEGER ) ) WHEN + ( + 89 ) THEN NULL ELSE - - 37 END ) + + 73 ELSE 72 END AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT ALL - COUNT( * ) * + 19 + + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL - COUNT ( * ) * + 19 + + COUNT ( * )
----
-18

query I rowsort
SELECT ALL ( + + 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT - 11 + + - 74 + + COUNT( * ) * - 18 AS col0
----
-103

skipif mysql # not compatible
query I rowsort label-9609
SELECT - 11 + + - 74 + + COUNT ( * ) * - 18 AS col0
----
-103

query I rowsort
SELECT - 5 + - + 12 AS col0
----
-17

query I rowsort
SELECT ALL ( + 67 ) col1
----
67

query I rowsort
SELECT + 75 * + 96 AS col0
----
7200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9613
SELECT - 81 + + 68 AS col2, COUNT( * ) + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-9613
SELECT - 81 + + 68 AS col2, COUNT ( * ) + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
-13
NULL

query I rowsort
SELECT - 57 + - + 61 AS col2
----
-118

query I rowsort
SELECT ALL - ( 23 ) + + - 30 AS col1
----
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9616
SELECT - + CAST( NULL AS DECIMAL ) * 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT - + CAST ( NULL AS REAL ) * 47 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 32 AS col0
----
-32

query II rowsort
SELECT - - 31 * + - 29 AS col0, 33 * - - 2
----
-899
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9619
SELECT DISTINCT + - 79 * + CAST( NULL AS SIGNED ) / + AVG ( DISTINCT + 3 ) * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9619
SELECT DISTINCT + - 79 * + CAST ( NULL AS INTEGER ) / + AVG ( DISTINCT + 3 ) * 24
----
NULL

query I rowsort
SELECT ALL CASE - 88 WHEN 48 THEN + 58 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT - COUNT( - ( - ( + + 90 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9621
SELECT - COUNT ( - ( - ( + + 90 ) ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9622
SELECT ALL - 51 - 6 + - 96 * - + 30 * + 0 DIV ( + COUNT( * ) ) * + - 70 * + 61 * - 89 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL - 51 - 6 + - 96 * - + 30 * + 0 / ( + COUNT ( * ) ) * + - 70 * + 61 * - 89 AS col2
----
-57

query I rowsort
SELECT + ( 75 ) col1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9624
SELECT - 68 - 33 AS col0, COUNT( ALL - - 63 ) AS col1
----
-101
1

skipif mysql # not compatible
query II rowsort label-9624
SELECT - 68 - 33 AS col0, COUNT ( ALL - - 63 ) AS col1
----
-101
1

query I rowsort
SELECT - COALESCE ( + 72, - 47 * + 86 * + 26 + - 23 ) * - - 30 + - - 19 col2
----
-2141

query I rowsort
SELECT DISTINCT + - 88 * + 17 - - - ( - ( + - 58 ) ) AS col2
----
-1554

query I rowsort
SELECT - - 60 AS col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9628
SELECT ALL + + 37 * - + COUNT( * ) AS col1, - ( + COALESCE ( ( CAST( + + COALESCE ( 93, - 55, 27 ) AS SIGNED ) ), - + 73, + - 14 + 5 ) ) AS col1
----
-37
-93

skipif mysql # not compatible
query II rowsort label-9628
SELECT ALL + + 37 * - + COUNT ( * ) AS col1, - ( + COALESCE ( ( CAST ( + + COALESCE ( 93, - 55, 27 ) AS INTEGER ) ), - + 73, + - 14 + 5 ) ) AS col1
----
-37
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9629
SELECT COALESCE ( + COUNT( * ), - - 59 * - ( + - 93 ) + - - COUNT( * ) * - CAST( NULL AS SIGNED ) * - 34, + - 86 ) AS col2, 88 * 71 - - + COUNT( * ) + - ( - CASE 67 WHEN - 70 THEN NULL WHEN - - 11 / - - MIN( DISTINCT - 5 ) + + + 60 THEN + + 78 END ) * - 1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9629
SELECT COALESCE ( + COUNT ( * ), - - 59 * - ( + - 93 ) + - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - 34, + - 86 ) AS col2, 88 * 71 - - + COUNT ( * ) + - ( - CASE 67 WHEN - 70 THEN NULL WHEN - - 11 / - - MIN ( DISTINCT - 5 ) + + + 60 THEN + + 78 END ) * - 1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT + 4 * + SUM( ALL 8 ) * 86 AS col1
----
2752

skipif mysql # not compatible
query I rowsort label-9630
SELECT + 4 * + SUM ( ALL 8 ) * 86 AS col1
----
2752

query I rowsort
SELECT ALL - 40
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-9632
SELECT DISTINCT - - SUM( DISTINCT - + 89 ), + 99 col0
----
-89
99

skipif mysql # not compatible
query II rowsort label-9632
SELECT DISTINCT - - SUM ( DISTINCT - + 89 ), + 99 col0
----
-89
99

query I rowsort
SELECT + 29 * 86 + 10 * - + 67 - 86
----
1738

query I rowsort
SELECT DISTINCT - 4
----
-4

query I rowsort
SELECT ALL - ( - 49 ) AS col0
----
49

query I rowsort
SELECT + - 9 AS col2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9637
SELECT 52 / + 90 * + - 9 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9637
SELECT 52 / + 90 * + - 9 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT + ( + 42 ) / - + 32 + COUNT( * ) + + + CASE - 83 WHEN + 7 * + MAX( ALL - - 49 ) + - 60 + + 60 * + 41 THEN - + 85 * + 14 + + - NULLIF ( - NULLIF ( + 10, 21 ), - COUNT( * ) * + - 11 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9638
SELECT + ( + 42 ) / - + 32 + COUNT ( * ) + + + CASE - 83 WHEN + 7 * + MAX ( ALL - - 49 ) + - 60 + + 60 * + 41 THEN - + 85 * + 14 + + - NULLIF ( - NULLIF ( + 10, 21 ), - COUNT ( * ) * + - 11 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 67 col1
----
67

query I rowsort
SELECT 78 + + 99
----
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9641
SELECT 83 * + 90 * CAST( NULL AS SIGNED ) - + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-9641
SELECT 83 * + 90 * CAST ( NULL AS INTEGER ) - + 17
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9642
SELECT 84 DIV - 34
----
-2

skipif mysql # not compatible
query I rowsort label-9642
SELECT 84 / - 34
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9643
SELECT 74 * + - 6 + + - AVG ( + - 86 ) + + 75 * + CAST( NULL AS SIGNED ) * COUNT( * ) / - ( + 35 ) - - - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-9643
SELECT 74 * + - 6 + + - AVG ( + - 86 ) + + 75 * + CAST ( NULL AS INTEGER ) * COUNT ( * ) / - ( + 35 ) - - - 85
----
NULL

query I rowsort
SELECT 60 AS col1
----
60

query I rowsort
SELECT ALL + 11 + 58
----
69

query I rowsort
SELECT DISTINCT - 56 + + 39
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT DISTINCT - SUM( ALL - 14 ) col0
----
14

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT - SUM ( ALL - 14 ) col0
----
14

query I rowsort
SELECT ALL 29 + - 11 AS col0
----
18

query II rowsort
SELECT DISTINCT ( - COALESCE ( - 97, 29 ) ) + + 87, ( + + 43 ) col1
----
184
43

query I rowsort
SELECT - 78 * - 63 + + + 28
----
4942

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9651
SELECT ALL COUNT( * ) * + CAST( - - 58 AS SIGNED ) * - + CASE 55 WHEN + - 39 * - 12 THEN NULL ELSE + COUNT( * ) END AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-9651
SELECT ALL COUNT ( * ) * + CAST ( - - 58 AS INTEGER ) * - + CASE 55 WHEN + - 39 * - 12 THEN NULL ELSE + COUNT ( * ) END AS col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9652
SELECT CAST( NULL AS SIGNED ) * 64 / - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9652
SELECT CAST ( NULL AS INTEGER ) * 64 / - 46
----
NULL

query I rowsort
SELECT + 41 col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9654
SELECT ALL 94 + 54 + CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL 94 + 54 + CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9655
SELECT 0 - + 15 DIV COUNT( * ) * - NULLIF ( 7, 39 ) + + + ( + COUNT( * ) ) AS col1
----
106

skipif mysql # not compatible
query I rowsort label-9655
SELECT 0 - + 15 / COUNT ( * ) * - NULLIF ( 7, 39 ) + + + ( + COUNT ( * ) ) AS col1
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9656
SELECT DISTINCT COUNT( * ) + + 34 + + - 95 + + - ( - 39 ) AS col0, + 84 DIV - 45
----
-21
-1

skipif mysql # not compatible
query II rowsort label-9656
SELECT DISTINCT COUNT ( * ) + + 34 + + - 95 + + - ( - 39 ) AS col0, + 84 / - 45
----
-21
-1

query I rowsort
SELECT DISTINCT 87 + + - 11
----
76

query I rowsort
SELECT 76 AS col1
----
76

query I rowsort
SELECT ALL 22 * + 14
----
308

query I rowsort
SELECT DISTINCT 58 col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT DISTINCT COUNT( - 22 ) - - - 22
----
-21

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT COUNT ( - 22 ) - - - 22
----
-21

query I rowsort
SELECT DISTINCT - 50 * - 63
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT ALL NULLIF ( COUNT( * ), + 51 * - 90 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL NULLIF ( COUNT ( * ), + 51 * - 90 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT ALL ( - 32 ) - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL ( - 32 ) - COUNT ( * )
----
-33

query I rowsort
SELECT ALL + 22 * + - ( NULLIF ( + 54, + 63 * + + 12 + - 20 ) ) + + - 89 AS col1
----
-1277

query I rowsort
SELECT - - 96
----
96

query I rowsort
SELECT - 52 + - 0
----
-52

query I rowsort
SELECT - - 98 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT COUNT( * ) + + + 82
----
83

skipif mysql # not compatible
query I rowsort label-9669
SELECT COUNT ( * ) + + + 82
----
83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9670
SELECT + ( + ( - - 30 ) ) - + CAST( - CAST( + 97 AS SIGNED ) AS SIGNED ) DIV - 95
----
29

skipif mysql # not compatible
query I rowsort label-9670
SELECT + ( + ( - - 30 ) ) - + CAST ( - CAST ( + 97 AS INTEGER ) AS INTEGER ) / - 95
----
29

query I rowsort
SELECT 88 * - 28 * - - 62
----
-152768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9672
SELECT + 79 + NULLIF ( + + 55, CASE + - 93 WHEN + 71 THEN + 66 * + + 76 ELSE + CAST( NULL AS SIGNED ) + - 51 END * 30 + - 70 ) * - - 40 col2
----
2279

skipif mysql # not compatible
query I rowsort label-9672
SELECT + 79 + NULLIF ( + + 55, CASE + - 93 WHEN + 71 THEN + 66 * + + 76 ELSE + CAST ( NULL AS INTEGER ) + - 51 END * 30 + - 70 ) * - - 40 col2
----
2279

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT 19 - + COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-9673
SELECT 19 - + COUNT ( * ) AS col2
----
18

query I rowsort
SELECT + 92 + 66
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT - SUM( DISTINCT 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-9675
SELECT - SUM ( DISTINCT 47 )
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9676
SELECT ALL - 95 DIV + 76
----
-1

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL - 95 / + 76
----
-1

query I rowsort
SELECT DISTINCT - 26 AS col1
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9678
SELECT ALL + 15 * - CAST( 67 AS SIGNED ) * + ( + - 12 ) - - ( + + COUNT( * ) ) AS col1
----
12061

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL + 15 * - CAST ( 67 AS INTEGER ) * + ( + - 12 ) - - ( + + COUNT ( * ) ) AS col1
----
12061

query I rowsort
SELECT - 29 + - 87 + - 32 * + 95 AS col0
----
-3156

query I rowsort
SELECT ALL 24 AS col2
----
24

query I rowsort
SELECT 75 * 80 - - 69 AS col1
----
6069

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9682
SELECT + - 54 DIV - COALESCE ( + + 52, + 20 ) + + - COALESCE ( - - 98, - 57 + + 49 ) AS col1, - COUNT( * )
----
-97
-1

skipif mysql # not compatible
query II rowsort label-9682
SELECT + - 54 / - COALESCE ( + + 52, + 20 ) + + - COALESCE ( - - 98, - 57 + + 49 ) AS col1, - COUNT ( * )
----
-97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT + MAX( ALL 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-9683
SELECT + MAX ( ALL 97 ) AS col2
----
97

query I rowsort
SELECT 36 + ( + 41 ) * + 80 * 1 AS col0
----
3316

query I rowsort
SELECT ALL - 54 + - ( - + ( 33 ) ) + - 64 * - 1 + + 1 AS col0
----
44

onlyif mysql # DIV for integer division: 
query II rowsort label-9686
SELECT + 62 AS col1, - 86 DIV + 5
----
62
-17

skipif mysql # not compatible
query II rowsort label-9686
SELECT + 62 AS col1, - 86 / + 5
----
62
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT COUNT( * ) + + + 7 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-9687
SELECT COUNT ( * ) + + + 7 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT SUM( + 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-9688
SELECT SUM ( + 33 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-9689
SELECT + 19 AS col2, + COUNT( * ) AS col2
----
19
1

skipif mysql # not compatible
query II rowsort label-9689
SELECT + 19 AS col2, + COUNT ( * ) AS col2
----
19
1

query I rowsort
SELECT DISTINCT - 70 + ( + + ( - - 40 ) )
----
-30

query I rowsort
SELECT ALL - 74
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT COUNT( * ) + + 40
----
41

skipif mysql # not compatible
query I rowsort label-9692
SELECT COUNT ( * ) + + 40
----
41

query I rowsort
SELECT 13 * + 60
----
780

query I rowsort
SELECT DISTINCT - ( - + 99 ) AS col1
----
99

query I rowsort
SELECT 24 col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9696
SELECT 3 - SUM( ALL 61 ) * + COUNT( - 42 ) + - 93 AS col0, 58 * - - CAST( NULL AS SIGNED ) AS col1
----
-151
NULL

skipif mysql # not compatible
query II rowsort label-9696
SELECT 3 - SUM ( ALL 61 ) * + COUNT ( - 42 ) + - 93 AS col0, 58 * - - CAST ( NULL AS INTEGER ) AS col1
----
-151
NULL

query I rowsort
SELECT 38 * + 96 * - 17 AS col2
----
-62016

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT 9 + MIN( - + 57 ) * - 65
----
3714

skipif mysql # not compatible
query I rowsort label-9698
SELECT 9 + MIN ( - + 57 ) * - 65
----
3714

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT COUNT( * ) * - + 74 + + - 74 AS col0
----
-148

skipif mysql # not compatible
query I rowsort label-9699
SELECT COUNT ( * ) * - + 74 + + - 74 AS col0
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9700
SELECT ALL CAST( NULL AS SIGNED ) * + 25 AS col0, 17 + - 79 * + 1
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-9700
SELECT ALL CAST ( NULL AS INTEGER ) * + 25 AS col0, 17 + - 79 * + 1
----
NULL
-62

query II rowsort
SELECT 80 AS col2, 68 * - 51
----
80
-3468

query I rowsort
SELECT 28 * - 9 AS col0
----
-252

query I rowsort
SELECT ALL - 99
----
-99

query I rowsort
SELECT - 29 * + + 85 + - - 92
----
-2373

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT + COUNT( * ) - COUNT( * ) + + 12 + COUNT( * ) - 29 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) + + 12 + COUNT ( * ) - 29 AS col1
----
-16

query II rowsort
SELECT ALL 61 col0, 94
----
61
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT - MIN( 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-9707
SELECT - MIN ( 54 )
----
-54

query I rowsort
SELECT - 41 * + - 94 - - 76
----
3930

query I rowsort
SELECT - + 97 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT + - 49 + 49 + + 33 + + + SUM( + + 53 )
----
86

skipif mysql # not compatible
query I rowsort label-9710
SELECT + - 49 + 49 + + 33 + + + SUM ( + + 53 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT - + MAX( DISTINCT + 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-9711
SELECT - + MAX ( DISTINCT + 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT + + MIN( 12 ) + + 68 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-9712
SELECT + + MIN ( 12 ) + + 68 AS col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9713
SELECT + - ( + 91 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9713
SELECT + - ( + 91 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9714
SELECT ALL 46, - 12 * - - 98 + 23 * - - MAX( ALL - 75 ) * - 70 AS col0
----
46
119574

skipif mysql # not compatible
query II rowsort label-9714
SELECT ALL 46, - 12 * - - 98 + 23 * - - MAX ( ALL - 75 ) * - 70 AS col0
----
46
119574

onlyif mysql # aggregate syntax: 
query II rowsort label-9715
SELECT + 68, - 39 * - 9 * - COUNT( * ) AS col0
----
68
-351

skipif mysql # not compatible
query II rowsort label-9715
SELECT + 68, - 39 * - 9 * - COUNT ( * ) AS col0
----
68
-351

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9716
SELECT - CAST( - 84 AS SIGNED ) AS col1, - 17 * - 51
----
84
867

skipif mysql # not compatible
query II rowsort label-9716
SELECT - CAST ( - 84 AS INTEGER ) AS col1, - 17 * - 51
----
84
867

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9717
SELECT DISTINCT - ( + COALESCE ( 48, 5 * + 10 + + + 85 * - + COUNT( - - 80 ) ) ) DIV - 6
----
8

skipif mysql # not compatible
query I rowsort label-9717
SELECT DISTINCT - ( + COALESCE ( 48, 5 * + 10 + + + 85 * - + COUNT ( - - 80 ) ) ) / - 6
----
8

query I rowsort
SELECT ALL 29
----
29

query I rowsort
SELECT ALL - + 70 + - - 2
----
-68

query I rowsort
SELECT + 13 * + 56
----
728

query II rowsort
SELECT DISTINCT - 72 col0, + 21 + - 86 + 65 * CASE - 85 WHEN - 98 THEN + 42 END
----
-72
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9722
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 40 / + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 40 / + 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT + - MIN( ALL - 29 ) - + 94 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-9723
SELECT + - MIN ( ALL - 29 ) - + 94 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT - COUNT( - 33 )
----
-1

skipif mysql # not compatible
query I rowsort label-9724
SELECT - COUNT ( - 33 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9725
SELECT - 40 DIV + + 67 col0
----
0

skipif mysql # not compatible
query I rowsort label-9725
SELECT - 40 / + + 67 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9726
SELECT + + CAST( + - 24 AS SIGNED ) - - 45
----
21

skipif mysql # not compatible
query I rowsort label-9726
SELECT + + CAST ( + - 24 AS INTEGER ) - - 45
----
21

query I rowsort
SELECT - NULLIF ( + 91, + 39 ) AS col0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9728
SELECT + 75 AS col1, - SUM( ALL + 60 ) * - ( + 99 ) * - 72 * + 81 + - 69
----
75
-34642149

skipif mysql # not compatible
query II rowsort label-9728
SELECT + 75 AS col1, - SUM ( ALL + 60 ) * - ( + 99 ) * - 72 * + 81 + - 69
----
75
-34642149

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT ALL 96 * 95 + 34 + + SUM( DISTINCT - - 63 ) * - ( 88 )
----
3610

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL 96 * 95 + 34 + + SUM ( DISTINCT - - 63 ) * - ( 88 )
----
3610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9730
SELECT + ( + 26 ) * + - 35 + 93 + - + 86 + CAST( NULL AS SIGNED ) * + CASE 14 WHEN NULLIF ( + 28, 28 + - 94 ) THEN - - 72 + - + 51 WHEN - - 43 * + + 72 + + 44 THEN + 36 + - + 40 ELSE NULL END * - 6 + - - MAX( - - 7 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9730
SELECT + ( + 26 ) * + - 35 + 93 + - + 86 + CAST ( NULL AS INTEGER ) * + CASE 14 WHEN NULLIF ( + 28, 28 + - 94 ) THEN - - 72 + - + 51 WHEN - - 43 * + + 72 + + 44 THEN + 36 + - + 40 ELSE NULL END * - 6 + - - MAX ( - - 7 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 65 * 61 * + 31 + 93 AS col0
----
-122822

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9732
SELECT 20 DIV + ( - 94 ) - - + COUNT( * ) + + + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9732
SELECT 20 / + ( - 94 ) - - + COUNT ( * ) + + + COUNT ( * ) AS col0
----
2

query I rowsort
SELECT ALL + 15 * + ( ( 95 ) ) + 52 * 77 AS col1
----
5429

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9734
SELECT ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9734
SELECT ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9735
SELECT ALL + ( + ( + COALESCE ( - + 66, - COUNT( * ) ) ) ) AS col0, 94 AS col1
----
-66
94

skipif mysql # not compatible
query II rowsort label-9735
SELECT ALL + ( + ( + COALESCE ( - + 66, - COUNT ( * ) ) ) ) AS col0, 94 AS col1
----
-66
94

query I rowsort
SELECT + 83 * + 22 * + + 27 AS col0
----
49302

query I rowsort
SELECT NULLIF ( + - 79, 6 * + - 77 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT ALL + NULLIF ( - MIN( ALL + 0 ), + + 29 ) * - ( - 96 ) + + 21 + + COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL + NULLIF ( - MIN ( ALL + 0 ), + + 29 ) * - ( - 96 ) + + 21 + + COUNT ( * ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT ALL + MIN( - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL + MIN ( - 91 )
----
-91

query I rowsort
SELECT NULLIF ( - 91, - - AVG ( + 42 ) / - 33 ) AS col1
----
-91

query I rowsort
SELECT COALESCE ( 81, + - 72 * + - 88, - 36 + - + 57 )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9742
SELECT ALL + COALESCE ( - COUNT( * ), - 62 DIV - 59 + + 5 DIV 65 )
----
-1

skipif mysql # not compatible
query I rowsort label-9742
SELECT ALL + COALESCE ( - COUNT ( * ), - 62 / - 59 + + 5 / 65 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9743
SELECT - 5 * - 34 * CAST( NULL AS SIGNED ) * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT - 5 * - 34 * CAST ( NULL AS INTEGER ) * 0
----
NULL

query I rowsort
SELECT + 52
----
52

query I rowsort
SELECT - 81 + - + 28 + 78
----
-31

query I rowsort
SELECT ALL + 18 AS col0
----
18

query I rowsort
SELECT ALL + 89
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT - 10 - + MAX( + 21 )
----
-31

skipif mysql # not compatible
query I rowsort label-9748
SELECT - 10 - + MAX ( + 21 )
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-9749
SELECT - 69 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-9749
SELECT - 69 / + 85
----
0

query I rowsort
SELECT - ( - + ( + - 33 ) ) + - 89 + - + 4 * 35
----
-262

query I rowsort
SELECT + - 20 * - 10 AS col2
----
200

query I rowsort
SELECT - + 12
----
-12

query I rowsort
SELECT + 51 AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9754
SELECT - CAST( - CASE - 98 WHEN + 74 * + - AVG ( DISTINCT + 30 ) THEN 42 WHEN + 70 THEN + + 79 WHEN - 69 THEN - 78 ELSE NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9754
SELECT - CAST ( - CASE - 98 WHEN + 74 * + - AVG ( DISTINCT + 30 ) THEN 42 WHEN + 70 THEN + + 79 WHEN - 69 THEN - 78 ELSE NULL END AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL + 39 * 33 * COUNT( * ) - + 74 + - 61 AS col1
----
1152

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL + 39 * 33 * COUNT ( * ) - + 74 + - 61 AS col1
----
1152

onlyif mysql # DIV for integer division: 
query I rowsort label-9756
SELECT ALL + 28 DIV + 69 + + - 93 + + ( - 92 )
----
-185

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL + 28 / + 69 + + - 93 + + ( - 92 )
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9757
SELECT + + 67 * + + 23 + - 46 - - 24 + + 55 * CAST( + - CAST( + - 61 AS SIGNED ) AS SIGNED ) + + 53 AS col1
----
4927

skipif mysql # not compatible
query I rowsort label-9757
SELECT + + 67 * + + 23 + - 46 - - 24 + + 55 * CAST ( + - CAST ( + - 61 AS INTEGER ) AS INTEGER ) + + 53 AS col1
----
4927

query I rowsort
SELECT ALL ( + 44 ) + + NULLIF ( - 27, 6 ) + - 9 * - - 83 * - 10 AS col2
----
7487

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT + + COUNT( * ) - - 89 col0
----
90

skipif mysql # not compatible
query I rowsort label-9759
SELECT + + COUNT ( * ) - - 89 col0
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-9760
SELECT ALL - + 1 * + 41, - COUNT( * ) - + 22 AS col0
----
-41
-23

skipif mysql # not compatible
query II rowsort label-9760
SELECT ALL - + 1 * + 41, - COUNT ( * ) - + 22 AS col0
----
-41
-23

query I rowsort
SELECT ALL + 94 AS col2
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9762
SELECT ALL + MIN( ALL + 89 ) AS col2, 21
----
89
21

skipif mysql # not compatible
query II rowsort label-9762
SELECT ALL + MIN ( ALL + 89 ) AS col2, 21
----
89
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT + + 93 * SUM( 40 ) AS col0
----
3720

skipif mysql # not compatible
query I rowsort label-9763
SELECT + + 93 * SUM ( 40 ) AS col0
----
3720

query II rowsort
SELECT - + 82 + 91, 30 AS col0
----
9
30

query I rowsort
SELECT - + 30 AS col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9766
SELECT - - COUNT( * ) + 30 + CASE + COUNT( * ) WHEN + 57 THEN - + 22 WHEN 25 * 73 THEN NULL END - 66 - + CAST( + COUNT( DISTINCT - - 38 ) AS SIGNED ) * + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT - - COUNT ( * ) + 30 + CASE + COUNT ( * ) WHEN + 57 THEN - + 22 WHEN 25 * 73 THEN NULL END - 66 - + CAST ( + COUNT ( DISTINCT - - 38 ) AS INTEGER ) * + 35
----
NULL

query II rowsort
SELECT + 33 - - 59 AS col2, + 75
----
92
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9768
SELECT - CAST( - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9768
SELECT - CAST ( - COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT + 77 + MIN( 17 )
----
94

skipif mysql # not compatible
query I rowsort label-9769
SELECT + 77 + MIN ( 17 )
----
94

query I rowsort
SELECT - - 38 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT + 91 + - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-9771
SELECT + 91 + - COUNT ( * )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT ALL - + COUNT( * ) + 60 + - - 31
----
90

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL - + COUNT ( * ) + 60 + - - 31
----
90

query I rowsort
SELECT DISTINCT + 94 + - + 74
----
20

query I rowsort
SELECT ALL 43 + - NULLIF ( + 28, + + ( - 84 ) ) * - + 74 AS col0
----
2115

query I rowsort
SELECT ALL 25 * + - 13 * - + ( 77 ) AS col1
----
25025

query I rowsort
SELECT + 95 + + 71
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT ALL COALESCE ( + + 10, + SUM( - ( + + 51 ) ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL COALESCE ( + + 10, + SUM ( - ( + + 51 ) ) ) AS col0
----
10

query I rowsort
SELECT 57 col2
----
57

query II rowsort
SELECT + ( - - 92 ) * - ( 33 ) AS col2, 94
----
-3036
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9780
SELECT + 89 * - COUNT( - + 89 ) AS col2, + MIN( 84 )
----
-89
84

skipif mysql # not compatible
query II rowsort label-9780
SELECT + 89 * - COUNT ( - + 89 ) AS col2, + MIN ( 84 )
----
-89
84

query I rowsort
SELECT ALL + 74 AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9782
SELECT + CAST( - 72 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-9782
SELECT + CAST ( - 72 AS INTEGER )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT - 16 * - + 33 + 73 + 21 * - COUNT( * ) AS col1
----
580

skipif mysql # not compatible
query I rowsort label-9783
SELECT - 16 * - + 33 + 73 + 21 * - COUNT ( * ) AS col1
----
580

query I rowsort
SELECT + 53 * - - 22
----
1166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9785
SELECT DISTINCT + ( - COUNT( * ) ) DIV - + ( - + 12 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT + ( - COUNT ( * ) ) / - + ( - + 12 ) AS col2
----
0

query I rowsort
SELECT + 29 * - - 7 AS col2
----
203

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9787
SELECT - COUNT( * ) DIV + 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9787
SELECT - COUNT ( * ) / + 21 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9788
SELECT ALL ( - 49 ) DIV - 84 * - ( - + 55 ) - - 65 + + ( - 89 )
----
-24

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL ( - 49 ) / - 84 * - ( - + 55 ) - - 65 + + ( - 89 )
----
-24

query I rowsort
SELECT DISTINCT + 77 AS col0
----
77

query I rowsort
SELECT ALL - 90 * + - 90
----
8100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9791
SELECT CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9791
SELECT CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL - 89
----
-89

query I rowsort
SELECT ALL - 92 AS col0
----
-92

query I rowsort
SELECT + 5 col0
----
5

query I rowsort
SELECT 34 + - 13
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9796
SELECT DISTINCT - CAST( NULL AS SIGNED ), - 20 * - 76 AS col0
----
NULL
1520

skipif mysql # not compatible
query II rowsort label-9796
SELECT DISTINCT - CAST ( NULL AS INTEGER ), - 20 * - 76 AS col0
----
NULL
1520

query I rowsort
SELECT DISTINCT - 91
----
-91

query I rowsort
SELECT DISTINCT + + 36 + + 12 AS col0
----
48

query I rowsort
SELECT - - 53
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9800
SELECT ALL + 16 + + SUM( + 66 ) AS col1, - CAST( + 22 AS SIGNED ) AS col2
----
82
-22

skipif mysql # not compatible
query II rowsort label-9800
SELECT ALL + 16 + + SUM ( + 66 ) AS col1, - CAST ( + 22 AS INTEGER ) AS col2
----
82
-22

query I rowsort
SELECT + ( COALESCE ( - 91, - 43 + - - 46 * + 98 ) ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT 73 + - COUNT( * ) + - 20 * 42 - - 89
----
-679

skipif mysql # not compatible
query I rowsort label-9802
SELECT 73 + - COUNT ( * ) + - 20 * 42 - - 89
----
-679

query I rowsort
SELECT DISTINCT + 17 AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9804
SELECT - SUM( - 82 ) / - 75 - - NULLIF ( + - 90, - + 97 * - CAST( - + 7 AS SIGNED ) + 72 + + - 41 * - 4 + + 86 * 76 * - + COUNT( ALL - 33 ) + ( + COUNT( * ) ) + - 30 + + MIN( - - 56 ) * + 87 ) * - CASE + 20 WHEN CAST( COUNT( * ) AS DECIMAL ) THEN NULL WHEN + 22 THEN + + 29 * - - 2 + 46 WHEN COALESCE ( + 18, CAST( NULL AS SIGNED ) * + COUNT( * ) - 84 ) THEN NULL WHEN + 55 THEN 2 * - ( - 91 ) + MIN( - 20 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9804
SELECT - SUM ( - 82 ) / - 75 - - NULLIF ( + - 90, - + 97 * - CAST ( - + 7 AS INTEGER ) + 72 + + - 41 * - 4 + + 86 * 76 * - + COUNT ( ALL - 33 ) + ( + COUNT ( * ) ) + - 30 + + MIN ( - - 56 ) * + 87 ) * - CASE + 20 WHEN CAST ( COUNT ( * ) AS REAL ) THEN NULL WHEN + 22 THEN + + 29 * - - 2 + 46 WHEN COALESCE ( + 18, CAST ( NULL AS INTEGER ) * + COUNT ( * ) - 84 ) THEN NULL WHEN + 55 THEN 2 * - ( - 91 ) + MIN ( - 20 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9805
SELECT - 31 + + 52 * - 45 DIV + + 15
----
-187

skipif mysql # not compatible
query I rowsort label-9805
SELECT - 31 + + 52 * - 45 / + + 15
----
-187

query I rowsort
SELECT - 37 col2
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9807
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 10 AS col2
----
10

onlyif mysql # DIV for integer division: 
query II rowsort label-9809
SELECT DISTINCT 32 col2, + 18 DIV 81 * - + 23 AS col0
----
32
0

skipif mysql # not compatible
query II rowsort label-9809
SELECT DISTINCT 32 col2, + 18 / 81 * - + 23 AS col0
----
32
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT ALL - CASE 62 WHEN - 31 * - - 34 THEN NULL ELSE - - CASE + - COUNT( - 26 ) WHEN - - COUNT( * ) THEN + 22 END + + 19 END - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9810
SELECT ALL - CASE 62 WHEN - 31 * - - 34 THEN NULL ELSE - - CASE + - COUNT ( - 26 ) WHEN - - COUNT ( * ) THEN + 22 END + + 19 END - - COUNT ( * )
----
NULL

query I rowsort
SELECT 94 - + + 70 * - 5 AS col2
----
444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9812
SELECT 3 - NULLIF ( + - 19, - - COALESCE ( ( - + 86 ), - COALESCE ( - 82, - 42 * 14 ) / - + 62 + 38 + - 29 * + + 61 / + 50 - + - 97 + + CAST( NULL AS SIGNED ) + + + COUNT( * ) * 13 * - + 74, + - 24 * ( + + 3 ) - CAST( - 65 AS SIGNED ) ) * 32 * + 58 + + 72 ) + + + 31 * 50
----
1572

skipif mysql # not compatible
query I rowsort label-9812
SELECT 3 - NULLIF ( + - 19, - - COALESCE ( ( - + 86 ), - COALESCE ( - 82, - 42 * 14 ) / - + 62 + 38 + - 29 * + + 61 / + 50 - + - 97 + + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * 13 * - + 74, + - 24 * ( + + 3 ) - CAST ( - 65 AS INTEGER ) ) * 32 * + 58 + + 72 ) + + + 31 * 50
----
1572

query I rowsort
SELECT ALL 23 AS col0
----
23

query I rowsort
SELECT DISTINCT 29 AS col2
----
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9815
SELECT ALL CAST( NULL AS DECIMAL ) * - - ( 78 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL CAST ( NULL AS REAL ) * - - ( 78 ) AS col0
----
NULL

query I rowsort
SELECT NULLIF ( - + 84, + 33 ) * - - 18 col2
----
-1512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9817
SELECT ALL - CAST( + NULLIF ( - 38, - - 20 * + ( ( + 83 ) ) + + - 75 * - - 17 + + SUM( + - 24 ) ) AS SIGNED ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL - CAST ( + NULLIF ( - 38, - - 20 * + ( ( + 83 ) ) + + - 75 * - - 17 + + SUM ( + - 24 ) ) AS INTEGER ) AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9818
SELECT ( - ( + 87 ) ) - + 79 - - 25 + CASE - ( - + 99 ) WHEN - CASE - + 61 WHEN + 69 * - 84 THEN + + 5 WHEN + 20 / - 32 * + 7 THEN 66 WHEN - COUNT( * ) + + 9 - - + 52 THEN - 17 - CAST( NULL AS SIGNED ) - - 19 * - CAST( + 63 AS SIGNED ) * - AVG ( - 9 ) * - 62 + - 27 * - 39 + - 36 / 29 WHEN + 31 + 59 THEN NULL ELSE - CAST( NULL AS SIGNED ) END THEN NULL WHEN + 16 - NULLIF ( + 62, + 76 ) THEN 30 ELSE 41 * - 86 END
----
-3667

skipif mysql # not compatible
query I rowsort label-9818
SELECT ( - ( + 87 ) ) - + 79 - - 25 + CASE - ( - + 99 ) WHEN - CASE - + 61 WHEN + 69 * - 84 THEN + + 5 WHEN + 20 / - 32 * + 7 THEN 66 WHEN - COUNT ( * ) + + 9 - - + 52 THEN - 17 - CAST ( NULL AS INTEGER ) - - 19 * - CAST ( + 63 AS INTEGER ) * - AVG ( - 9 ) * - 62 + - 27 * - 39 + - 36 / 29 WHEN + 31 + 59 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END THEN NULL WHEN + 16 - NULLIF ( + 62, + 76 ) THEN 30 ELSE 41 * - 86 END
----
-3667

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9819
SELECT CAST( - + 45 AS SIGNED ) * 57 * 20 * + ( + - 1 )
----
51300

skipif mysql # not compatible
query I rowsort label-9819
SELECT CAST ( - + 45 AS INTEGER ) * 57 * 20 * + ( + - 1 )
----
51300

onlyif mysql # DIV for integer division: 
query I rowsort label-9820
SELECT 31 DIV - 99 + + 97 + + 7 * - 49
----
-246

skipif mysql # not compatible
query I rowsort label-9820
SELECT 31 / - 99 + + 97 + + 7 * - 49
----
-246

query I rowsort
SELECT + 3 AS col1
----
3

query I rowsort
SELECT 44 * - - 48 AS col2
----
2112

query I rowsort
SELECT CASE + 31 WHEN 5 + - 40 * + + 72 - 7 + - - 27 + 21 THEN - 29 ELSE NULL END * + 17 + + NULLIF ( + 4, + 10 ) * - 91 * 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT ALL - ( + 83 ) + + CASE + 1 WHEN - 73 THEN + COUNT( * ) WHEN - 70 THEN + - 66 + 60 / MIN( DISTINCT + + 20 ) ELSE NULL END * + + 53 + - - ( + 17 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL - ( + 83 ) + + CASE + 1 WHEN - 73 THEN + COUNT ( * ) WHEN - 70 THEN + - 66 + 60 / MIN ( DISTINCT + + 20 ) ELSE NULL END * + + 53 + - - ( + 17 ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9825
SELECT ALL - CAST( NULL AS DECIMAL ) / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL - CAST ( NULL AS REAL ) / + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - ( 12 ) col1
----
-12

query I rowsort
SELECT - ( + - 38 ) * - - 59 AS col0
----
2242

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT + + COUNT( * ) * + CASE - + SUM( DISTINCT - 82 ) WHEN + 61 THEN - - 61 ELSE NULL END + - COALESCE ( - + 49, + + 8, - AVG ( + - 61 ) * + + 70 + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9828
SELECT + + COUNT ( * ) * + CASE - + SUM ( DISTINCT - 82 ) WHEN + 61 THEN - - 61 ELSE NULL END + - COALESCE ( - + 49, + + 8, - AVG ( + - 61 ) * + + 70 + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9829
SELECT ALL + CAST( NULL AS SIGNED ) + - 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL + CAST ( NULL AS INTEGER ) + - 10 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT ALL COUNT( * ) + + + 21
----
22

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL COUNT ( * ) + + + 21
----
22

query I rowsort
SELECT + + 65 AS col1
----
65

query I rowsort
SELECT - 18 - - 61 AS col2
----
43

query I rowsort
SELECT DISTINCT - 39 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT + COUNT( * ) * - 29 + - + 23 * 76 * + - 87 AS col0
----
152047

skipif mysql # not compatible
query I rowsort label-9834
SELECT + COUNT ( * ) * - 29 + - + 23 * 76 * + - 87 AS col0
----
152047

query I rowsort
SELECT + 87 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT ALL CASE - 85 WHEN + NULLIF ( - 83, + ( + COUNT( * ) ) ) THEN 31 + - + CASE - COUNT( * ) WHEN 83 THEN NULL ELSE 12 + 96 / + 79 + - ( + 92 ) END WHEN - AVG ( - + 56 ) * - COUNT( * ) + - COALESCE ( + - 18, 45, - COUNT( 97 ) * - 63 * 36 + - 36 ) + 96 - - + 79 + 47 - 19 * + 40 * - COUNT( * ) THEN + 68 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL CASE - 85 WHEN + NULLIF ( - 83, + ( + COUNT ( * ) ) ) THEN 31 + - + CASE - COUNT ( * ) WHEN 83 THEN NULL ELSE 12 + 96 / + 79 + - ( + 92 ) END WHEN - AVG ( - + 56 ) * - COUNT ( * ) + - COALESCE ( + - 18, 45, - COUNT ( 97 ) * - 63 * 36 + - 36 ) + 96 - - + 79 + 47 - 19 * + 40 * - COUNT ( * ) THEN + 68 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT 90 * - 79 + + COUNT( * ) AS col0
----
-7109

skipif mysql # not compatible
query I rowsort label-9837
SELECT 90 * - 79 + + COUNT ( * ) AS col0
----
-7109

query I rowsort
SELECT - ( 60 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT ALL + + 59 + - 89 + 88 * - COUNT( * ) - 36 * 80 col0
----
-2998

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL + + 59 + - 89 + 88 * - COUNT ( * ) - 36 * 80 col0
----
-2998

query I rowsort
SELECT 67 - - + 47 col1
----
114

query I rowsort
SELECT DISTINCT 66 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT ALL - COUNT( * ) - 63 * ( - CASE + COUNT( * ) WHEN - COUNT( * ) + + + SUM( 31 ) THEN + AVG ( ALL - 81 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL - COUNT ( * ) - 63 * ( - CASE + COUNT ( * ) WHEN - COUNT ( * ) + + + SUM ( 31 ) THEN + AVG ( ALL - 81 ) END ) AS col0
----
NULL

query I rowsort
SELECT 94 + + 42
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT DISTINCT SUM( DISTINCT + + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT SUM ( DISTINCT + + 52 )
----
52

query I rowsort
SELECT 39 - - 57 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT ALL SUM( - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL SUM ( - 0 ) AS col0
----
0

query I rowsort
SELECT 13 + 36 * 4
----
157

onlyif mysql # aggregate syntax: 
query II rowsort label-9848
SELECT COUNT( * ) - + 61 + 63 col0, - 41 AS col0
----
3
-41

skipif mysql # not compatible
query II rowsort label-9848
SELECT COUNT ( * ) - + 61 + 63 col0, - 41 AS col0
----
3
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-9849
SELECT DISTINCT - 7 DIV NULLIF ( - - 10, + 20 )
----
0

skipif mysql # not compatible
query I rowsort label-9849
SELECT DISTINCT - 7 / NULLIF ( - - 10, + 20 )
----
0

query I rowsort
SELECT DISTINCT 72 AS col0
----
72

query I rowsort
SELECT ALL - 62 * - - 89 AS col1
----
-5518

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9852
SELECT 29 / - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9852
SELECT 29 / - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT ALL - 89 * - COUNT( * ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL - 89 * - COUNT ( * ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT ALL SUM( ALL 2 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL SUM ( ALL 2 ) col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT COUNT( * ) + + 73
----
74

skipif mysql # not compatible
query I rowsort label-9855
SELECT COUNT ( * ) + + 73
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT ALL COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9856
SELECT ALL COUNT ( * ) col0
----
1

query I rowsort
SELECT - 37 col1
----
-37

query I rowsort
SELECT COALESCE ( - 2, + - 0 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT + SUM( ALL - - 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-9859
SELECT + SUM ( ALL - - 88 ) AS col0
----
88

query I rowsort
SELECT - 22 * 84
----
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT DISTINCT + COUNT( + 58 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT + COUNT ( + 58 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9862
SELECT ALL 88 * + + 48 + - COUNT( ALL - + 87 ) + CAST( NULL AS SIGNED ) + - + 55 * 63 / + 15 * + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL 88 * + + 48 + - COUNT ( ALL - + 87 ) + CAST ( NULL AS INTEGER ) + - + 55 * 63 / + 15 * + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT CASE 9 WHEN - COALESCE ( - 19, + 7, - NULLIF ( ( + ( 3 ) ), + COUNT( * ) ) - + 18 - + + 9 ) THEN NULL ELSE + - 7 + - - 55 END AS col0
----
48

skipif mysql # not compatible
query I rowsort label-9863
SELECT CASE 9 WHEN - COALESCE ( - 19, + 7, - NULLIF ( ( + ( 3 ) ), + COUNT ( * ) ) - + 18 - + + 9 ) THEN NULL ELSE + - 7 + - - 55 END AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ALL SUM( 81 ) * + 11 AS col0
----
891

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL SUM ( 81 ) * + 11 AS col0
----
891

query I rowsort
SELECT DISTINCT 94 * - 27 * 1 + 7 - + 91 + - 34 AS col1
----
-2656

query I rowsort
SELECT + + 90 AS col1
----
90

query I rowsort
SELECT + - 33 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT - COUNT( * ) * + NULLIF ( 37, + COALESCE ( 63, 68 + + - 7, + 60 ) + - 1 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-9868
SELECT - COUNT ( * ) * + NULLIF ( 37, + COALESCE ( 63, 68 + + - 7, + 60 ) + - 1 ) AS col2
----
-37

query I rowsort
SELECT ALL - 0 * + 61 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9870
SELECT + - 94 + + 49 + - 69, 35 DIV - - COUNT( * ) AS col0
----
-114
35

skipif mysql # not compatible
query II rowsort label-9870
SELECT + - 94 + + 49 + - 69, 35 / - - COUNT ( * ) AS col0
----
-114
35

query I rowsort
SELECT 89 * + 82 * + 49 * + 4 + - 62 + - 49 * - 23 AS col0
----
1431473

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT DISTINCT + SUM( DISTINCT 94 )
----
94

skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT + SUM ( DISTINCT 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT DISTINCT 8 * + COUNT( * ) * - 4 * + 62 AS col1
----
-1984

skipif mysql # not compatible
query I rowsort label-9873
SELECT DISTINCT 8 * + COUNT ( * ) * - 4 * + 62 AS col1
----
-1984

onlyif mysql # DIV for integer division: 
query I rowsort label-9874
SELECT DISTINCT + ( + - 7 ) DIV - + 20 - 62
----
-62

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT + ( + - 7 ) / - + 20 - 62
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9875
SELECT DISTINCT + CAST( - - 20 AS SIGNED ) col0
----
20

skipif mysql # not compatible
query I rowsort label-9875
SELECT DISTINCT + CAST ( - - 20 AS INTEGER ) col0
----
20

query I rowsort
SELECT ALL - 84 * + 70 AS col2
----
-5880

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT + SUM( ( ( 27 ) ) ) + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-9877
SELECT + SUM ( ( ( 27 ) ) ) + COUNT ( * )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-9878
SELECT ALL + 73 DIV + 28 col2
----
2

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL + 73 / + 28 col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9879
SELECT + + 68 DIV - 57
----
-1

skipif mysql # not compatible
query I rowsort label-9879
SELECT + + 68 / - 57
----
-1

query I rowsort
SELECT - + 28 AS col1
----
-28

query I rowsort
SELECT - + 15
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-9882
SELECT - - 87 * 3 + - 35 DIV - - 35
----
260

skipif mysql # not compatible
query I rowsort label-9882
SELECT - - 87 * 3 + - 35 / - - 35
----
260

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT - + 13 + + COUNT( * ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-9883
SELECT - + 13 + + COUNT ( * ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT - 24 * + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-9884
SELECT - 24 * + COUNT ( * )
----
-24

query I rowsort
SELECT + 54 * - 49 AS col2
----
-2646

query I rowsort
SELECT DISTINCT 59 * 11
----
649

onlyif mysql # aggregate syntax: 
query II rowsort label-9887
SELECT ALL 67 AS col0, + 50 + + SUM( - - 73 ) + + - 86 AS col2
----
67
37

skipif mysql # not compatible
query II rowsort label-9887
SELECT ALL 67 AS col0, + 50 + + SUM ( - - 73 ) + + - 86 AS col2
----
67
37

onlyif mysql # aggregate syntax: 
query II rowsort label-9888
SELECT - 69, + 38 - + - ( 46 ) + COUNT( * ) * + 76 * + 79 AS col0
----
-69
6088

skipif mysql # not compatible
query II rowsort label-9888
SELECT - 69, + 38 - + - ( 46 ) + COUNT ( * ) * + 76 * + 79 AS col0
----
-69
6088

query I rowsort
SELECT - 89 * + 54 AS col0
----
-4806

query I rowsort
SELECT ALL 94 * + 21
----
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT DISTINCT SUM( ALL + 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT SUM ( ALL + 82 ) AS col1
----
82

query I rowsort
SELECT ALL ( - 97 )
----
-97

query I rowsort
SELECT DISTINCT ( + 48 )
----
48

query I rowsort
SELECT 86 AS col2
----
86

query II rowsort
SELECT 21 AS col1, + 14 + + + 67
----
21
81

query I rowsort
SELECT - 58 * 26 AS col1
----
-1508

query I rowsort
SELECT ALL + 4 + 3 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT - COUNT( * ) - - - 53 * 30
----
-1591

skipif mysql # not compatible
query I rowsort label-9898
SELECT - COUNT ( * ) - - - 53 * 30
----
-1591

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9899
SELECT - MIN( 33 ) * - 51 * COALESCE ( + CASE + - 77 WHEN - 98 + - + NULLIF ( 39, - 76 * 63 * - COUNT( * ) + + - CASE 18 WHEN CAST( NULL AS SIGNED ) * - 0 THEN 70 * + - 54 + - + COUNT( * ) * + COUNT( DISTINCT + 37 ) + + + 27 + + - 31 - + + 85 WHEN + 91 THEN + 83 ELSE - COUNT( * ) END + CAST( + COUNT( * ) AS SIGNED ) - - + 13 * - 97 ) THEN NULL WHEN + MIN( ALL - 38 ) THEN + COUNT( * ) ELSE NULL END, 75 * 95, 69 + - 12 )
----
11991375

skipif mysql # not compatible
query I rowsort label-9899
SELECT - MIN ( 33 ) * - 51 * COALESCE ( + CASE + - 77 WHEN - 98 + - + NULLIF ( 39, - 76 * 63 * - COUNT ( * ) + + - CASE 18 WHEN CAST ( NULL AS INTEGER ) * - 0 THEN 70 * + - 54 + - + COUNT ( * ) * + COUNT ( DISTINCT + 37 ) + + + 27 + + - 31 - + + 85 WHEN + 91 THEN + 83 ELSE - COUNT ( * ) END + CAST ( + COUNT ( * ) AS INTEGER ) - - + 13 * - 97 ) THEN NULL WHEN + MIN ( ALL - 38 ) THEN + COUNT ( * ) ELSE NULL END, 75 * 95, 69 + - 12 )
----
11991375

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT - COUNT( * ) * + + CASE + 93 WHEN - - 84 THEN + 63 * + - 19 END * - 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9900
SELECT - COUNT ( * ) * + + CASE + 93 WHEN - - 84 THEN + 63 * + - 19 END * - 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT ALL + 4 + + COUNT( * ) - + 60 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL + 4 + + COUNT ( * ) - + 60 AS col1
----
-55

query II rowsort
SELECT + 1 AS col0, 20 AS col1
----
1
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT ALL - 59 * + 95 * - 70 * - SUM( - 64 ) * - + 21 + 5 AS col2
----
-527318395

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL - 59 * + 95 * - 70 * - SUM ( - 64 ) * - + 21 + 5 AS col2
----
-527318395

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT ALL + 32 * + COUNT( * ) / CASE - 24 WHEN - - COUNT( * ) THEN + + 37 * - COUNT( * ) * - 30 * 99 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL + 32 * + COUNT ( * ) / CASE - 24 WHEN - - COUNT ( * ) THEN + + 37 * - COUNT ( * ) * - 30 * 99 END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9905
SELECT DISTINCT 9 / + 99 + + 43 * - 76 * - + 12 * - 50 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT 9 / + 99 + + 43 * - 76 * - + 12 * - 50 + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9906
SELECT - NULLIF ( 62, - - 24 * MAX( ALL - + 29 ) - - CAST( NULL AS DECIMAL ) ) - + 45 + - - ( - 95 ) + - 99 * + 71 AS col2
----
-7231

skipif mysql # not compatible
query I rowsort label-9906
SELECT - NULLIF ( 62, - - 24 * MAX ( ALL - + 29 ) - - CAST ( NULL AS REAL ) ) - + 45 + - - ( - 95 ) + - 99 * + 71 AS col2
----
-7231

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9907
SELECT + 87 AS col2, - 54 / + CAST( NULL AS SIGNED ) AS col1
----
87
NULL

skipif mysql # not compatible
query II rowsort label-9907
SELECT + 87 AS col2, - 54 / + CAST ( NULL AS INTEGER ) AS col1
----
87
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9908
SELECT + CAST( MAX( + 13 ) AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-9908
SELECT + CAST ( MAX ( + 13 ) AS INTEGER )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT - + 65 + + COUNT( ALL + - 13 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-9909
SELECT - + 65 + + COUNT ( ALL + - 13 ) AS col2
----
-64

query II rowsort
SELECT + + ( - 65 ) * 60 * 13 AS col1, - 70
----
-50700
-70

query I rowsort
SELECT + + 25 AS col1
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9912
SELECT DISTINCT + 86 DIV 67 - - 43
----
44

skipif mysql # not compatible
query I rowsort label-9912
SELECT DISTINCT + 86 / 67 - - 43
----
44

query I rowsort
SELECT - 72
----
-72

query I rowsort
SELECT ALL + - ( + 18 )
----
-18

query I rowsort
SELECT - 41 * - 59
----
2419

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT DISTINCT 75 * + - 6 - COALESCE ( - ( + 8 ), - + 17 + COUNT( DISTINCT - - 69 ) ) AS col0
----
-442

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT 75 * + - 6 - COALESCE ( - ( + 8 ), - + 17 + COUNT ( DISTINCT - - 69 ) ) AS col0
----
-442

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-9917
SELECT ALL + - NULLIF ( + SUM( DISTINCT + CASE + 36 WHEN + + CAST( NULL AS DECIMAL ) THEN NULL ELSE - 36 END ), + 82 ), + 64 * - 12 AS col0, + 21 AS col2
----
36
-768
21

skipif mysql # not compatible
query III rowsort label-9917
SELECT ALL + - NULLIF ( + SUM ( DISTINCT + CASE + 36 WHEN + + CAST ( NULL AS REAL ) THEN NULL ELSE - 36 END ), + 82 ), + 64 * - 12 AS col0, + 21 AS col2
----
36
-768
21

onlyif mysql # DIV for integer division: 
query II rowsort label-9918
SELECT + + 50 AS col0, 33 DIV + 73
----
50
0

skipif mysql # not compatible
query II rowsort label-9918
SELECT + + 50 AS col0, 33 / + 73
----
50
0

query I rowsort
SELECT ALL - 44 * 42
----
-1848

query I rowsort
SELECT - - 39 * ( - - 83 ) AS col2
----
3237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9921
SELECT + + CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED ) * ( - 35 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9921
SELECT + + CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) * ( - 35 ) AS col1
----
NULL

query II rowsort
SELECT ALL + 86 AS col1, - 30 - - ( + 85 ) AS col1
----
86
55

query I rowsort
SELECT - 30 + + 35 AS col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9924
SELECT + + 83 DIV 48 - - + 45 * + 9 AS col0
----
406

skipif mysql # not compatible
query I rowsort label-9924
SELECT + + 83 / 48 - - + 45 * + 9 AS col0
----
406

query II rowsort
SELECT ALL 1 col2, 2 AS col1
----
1
2

query I rowsort
SELECT ALL 9 AS col0
----
9

query I rowsort
SELECT DISTINCT 62 col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9928
SELECT + 6 + - - COUNT( * ) * COUNT( * ) DIV - - 90 * - 66 * 94 col1
----
6

skipif mysql # not compatible
query I rowsort label-9928
SELECT + 6 + - - COUNT ( * ) * COUNT ( * ) / - - 90 * - 66 * 94 col1
----
6

query I rowsort
SELECT 48 + + 34 + - 18
----
64

query I rowsort
SELECT - 79 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT ( + + COALESCE ( - COUNT( * ), + 21 ) ) + + 46 * + + 75 * - - 56 + + 26 * + COALESCE ( 17, + - 38 - - 66 + - CASE - + COUNT( * ) WHEN - CASE - 46 WHEN + + NULLIF ( + ( + 76 ), ( + ( + - 69 ) ) ) THEN 75 ELSE NULL END THEN NULL WHEN + + 78 THEN NULL ELSE 35 * + 96 * + + 5 * - 42 END ) + + COUNT( * ) col0
----
193642

skipif mysql # not compatible
query I rowsort label-9931
SELECT ( + + COALESCE ( - COUNT ( * ), + 21 ) ) + + 46 * + + 75 * - - 56 + + 26 * + COALESCE ( 17, + - 38 - - 66 + - CASE - + COUNT ( * ) WHEN - CASE - 46 WHEN + + NULLIF ( + ( + 76 ), ( + ( + - 69 ) ) ) THEN 75 ELSE NULL END THEN NULL WHEN + + 78 THEN NULL ELSE 35 * + 96 * + + 5 * - 42 END ) + + COUNT ( * ) col0
----
193642

query I rowsort
SELECT ALL + 99 + - 1 AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9933
SELECT DISTINCT - 45 * + 10, ( + CAST( 3 AS SIGNED ) ) AS col2
----
-450
3

skipif mysql # not compatible
query II rowsort label-9933
SELECT DISTINCT - 45 * + 10, ( + CAST ( 3 AS INTEGER ) ) AS col2
----
-450
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT 73 + - - 37 * + SUM( DISTINCT - 65 ) + + - 5 AS col1
----
-2337

skipif mysql # not compatible
query I rowsort label-9934
SELECT 73 + - - 37 * + SUM ( DISTINCT - 65 ) + + - 5 AS col1
----
-2337

query I rowsort
SELECT DISTINCT 51
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9936
SELECT 82 + 18 * + CAST( + COUNT( * ) AS SIGNED )
----
100

skipif mysql # not compatible
query I rowsort label-9936
SELECT 82 + 18 * + CAST ( + COUNT ( * ) AS INTEGER )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT CASE 5 WHEN COUNT( * ) + - COUNT( ALL 52 ) / - - 63 THEN 58 ELSE NULL END * + - SUM( + 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9937
SELECT CASE 5 WHEN COUNT ( * ) + - COUNT ( ALL 52 ) / - - 63 THEN 58 ELSE NULL END * + - SUM ( + 70 )
----
NULL

query I rowsort
SELECT - 56 col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT + SUM( DISTINCT + 65 )
----
65

skipif mysql # not compatible
query I rowsort label-9939
SELECT + SUM ( DISTINCT + 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT 4 + - SUM( ( + + 4 ) ) * + 90
----
-356

skipif mysql # not compatible
query I rowsort label-9940
SELECT 4 + - SUM ( ( + + 4 ) ) * + 90
----
-356

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9941
SELECT - 89 DIV + SUM( ALL - 82 )
----
1

skipif mysql # not compatible
query I rowsort label-9941
SELECT - 89 / + SUM ( ALL - 82 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT 63 + - + NULLIF ( + 81, + - 38 ) * 86 + COUNT( * ) * - - 89 * + + 37 AS col2
----
-3610

skipif mysql # not compatible
query I rowsort label-9942
SELECT 63 + - + NULLIF ( + 81, + - 38 ) * 86 + COUNT ( * ) * - - 89 * + + 37 AS col2
----
-3610

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9943
SELECT + + COUNT( * ) * 32 + + - COALESCE ( 27, - 94 * 0 DIV - - 58, COUNT( * ) ) col2, + 39
----
5
39

skipif mysql # not compatible
query II rowsort label-9943
SELECT + + COUNT ( * ) * 32 + + - COALESCE ( 27, - 94 * 0 / - - 58, COUNT ( * ) ) col2, + 39
----
5
39

query I rowsort
SELECT 54 col2
----
54

query I rowsort
SELECT ALL - 52
----
-52

query I rowsort
SELECT ALL - + 65
----
-65

query I rowsort
SELECT DISTINCT + 6 * 63
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT + - COALESCE ( - - MIN( + - CASE 38 WHEN + 82 * - 38 THEN ( + 46 ) * - 37 + 66 ELSE + - 74 END ), - 18, - + 29 * + CASE - SUM( ALL - 92 ) WHEN - ( - 17 ) / + COUNT( * ) THEN 76 * + 80 END - - 0 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-9948
SELECT + - COALESCE ( - - MIN ( + - CASE 38 WHEN + 82 * - 38 THEN ( + 46 ) * - 37 + 66 ELSE + - 74 END ), - 18, - + 29 * + CASE - SUM ( ALL - 92 ) WHEN - ( - 17 ) / + COUNT ( * ) THEN 76 * + 80 END - - 0 ) AS col2
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-9949
SELECT 22 DIV + 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9949
SELECT 22 / + 28 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9950
SELECT - + NULLIF ( 17, - + 92 ) * + 79 + + 39 DIV COUNT( * ) * 13 + + 0 * 80 DIV - 61
----
-836

skipif mysql # not compatible
query I rowsort label-9950
SELECT - + NULLIF ( 17, - + 92 ) * + 79 + + 39 / COUNT ( * ) * 13 + + 0 * 80 / - 61
----
-836

query I rowsort
SELECT ALL - - 31 col0
----
31

query I rowsort
SELECT + - 31 * + 11 + - 48 * - 79 AS col2
----
3451

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9953
SELECT DISTINCT - CAST( 95 AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT - CAST ( 95 AS INTEGER )
----
-95

query I rowsort
SELECT ALL + - 81 + - - 78 * - + 0 + + 55
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT - 64 * NULLIF ( - + COUNT( * ), - - 8 + 14 * - 67 * 83 * - 95 ) * - 2 + - - 16 * 37 AS col2
----
464

skipif mysql # not compatible
query I rowsort label-9955
SELECT - 64 * NULLIF ( - + COUNT ( * ), - - 8 + 14 * - 67 * 83 * - 95 ) * - 2 + - - 16 * 37 AS col2
----
464

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT DISTINCT - MAX( DISTINCT + + ( + 49 ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT - MAX ( DISTINCT + + ( + 49 ) ) AS col2
----
-49

query I rowsort
SELECT 67 * + 45 + 21 col0
----
3036

onlyif mysql # aggregate syntax: 
query II rowsort label-9958
SELECT - 20 AS col0, COUNT( * ) AS col0
----
-20
1

skipif mysql # not compatible
query II rowsort label-9958
SELECT - 20 AS col0, COUNT ( * ) AS col0
----
-20
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9959
SELECT ALL - ( + - 19 ) + - 64 col0, CAST( - - 59 AS SIGNED ) + - 45 * - CAST( NULL AS SIGNED ) AS col2
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-9959
SELECT ALL - ( + - 19 ) + - 64 col0, CAST ( - - 59 AS INTEGER ) + - 45 * - CAST ( NULL AS INTEGER ) AS col2
----
-45
NULL

query II rowsort
SELECT 68, - 5 AS col1
----
68
-5

query I rowsort
SELECT - 74 AS col0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT ( 10 ) + - CAST( NULL AS SIGNED ) + + ( - + 9 ) - + ( + 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9962
SELECT ( 10 ) + - CAST ( NULL AS INTEGER ) + + ( - + 9 ) - + ( + 98 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT ALL - 4 + - NULLIF ( + + ( COUNT( * ) ), 17 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL - 4 + - NULLIF ( + + ( COUNT ( * ) ), 17 ) AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9964
SELECT - 85 col1, CASE + 4 WHEN - + COALESCE ( + + 12, + 43, - 53 ) + + - 46 - + - 28 + 45 THEN NULL WHEN - CASE 30 WHEN + NULLIF ( + 28, 92 * - COALESCE ( + COUNT( * ), + COALESCE ( + 97, 35 * + COALESCE ( - 77, 76 ) / 38 + + ( - 73 ) + - + CAST( NULL AS SIGNED ) ) + - - 56 - + 91 * - + 63 / - 56, - - 61 + + - 63 * 53 ) + + 18 ) THEN COUNT( DISTINCT + 22 ) * 66 ELSE NULL END THEN NULL WHEN - 29 THEN - 67 END * 74 col2
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-9964
SELECT - 85 col1, CASE + 4 WHEN - + COALESCE ( + + 12, + 43, - 53 ) + + - 46 - + - 28 + 45 THEN NULL WHEN - CASE 30 WHEN + NULLIF ( + 28, 92 * - COALESCE ( + COUNT ( * ), + COALESCE ( + 97, 35 * + COALESCE ( - 77, 76 ) / 38 + + ( - 73 ) + - + CAST ( NULL AS INTEGER ) ) + - - 56 - + 91 * - + 63 / - 56, - - 61 + + - 63 * 53 ) + + 18 ) THEN COUNT ( DISTINCT + 22 ) * 66 ELSE NULL END THEN NULL WHEN - 29 THEN - 67 END * 74 col2
----
-85
NULL

query I rowsort
SELECT ALL + 40 + 15 col0
----
55

query I rowsort
SELECT ALL 87 + - 68
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT COUNT( + 58 ) * - 35 + - NULLIF ( + 19, + + COUNT( * ) ) + + 15
----
-39

skipif mysql # not compatible
query I rowsort label-9967
SELECT COUNT ( + 58 ) * - 35 + - NULLIF ( + 19, + + COUNT ( * ) ) + + 15
----
-39

query I rowsort
SELECT ALL 99 + 36 AS col1
----
135

query I rowsort
SELECT DISTINCT 46
----
46

query I rowsort
SELECT 88 * - + 80 AS col0
----
-7040

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT DISTINCT 92 / - - 93 * + 57 * - - MIN( ALL - - CASE 62 WHEN - 54 + 39 / + - 15 + + ( + + 90 ) / + 86 + + 96 * + + 36 + + 54 + + 48 * 69 THEN - 61 / - 14 * + 62 WHEN - + 84 * + 17 THEN NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9971
SELECT DISTINCT 92 / - - 93 * + 57 * - - MIN ( ALL - - CASE 62 WHEN - 54 + 39 / + - 15 + + ( + + 90 ) / + 86 + + 96 * + + 36 + + 54 + + 48 * 69 THEN - 61 / - 14 * + 62 WHEN - + 84 * + 17 THEN NULL END ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT MIN( - 77 ) - + COUNT( ALL + + 23 )
----
-78

skipif mysql # not compatible
query I rowsort label-9972
SELECT MIN ( - 77 ) - + COUNT ( ALL + + 23 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT CASE - COUNT( * ) WHEN + + 61 + + - 36 / 32 * - 69 THEN + + 20 * 66 * - 24 END * MAX( ALL + 73 ) + + 25 - + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-9973
SELECT CASE - COUNT ( * ) WHEN + + 61 + + - 36 / 32 * - 69 THEN + + 20 * 66 * - 24 END * MAX ( ALL + 73 ) + + 25 - + 77
----
NULL

query I rowsort
SELECT 88 + 1 AS col1
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-9975
SELECT ALL COUNT( * ) AS col0, ( MIN( 66 ) )
----
1
66

skipif mysql # not compatible
query II rowsort label-9975
SELECT ALL COUNT ( * ) AS col0, ( MIN ( 66 ) )
----
1
66

onlyif mysql # aggregate syntax: 
query II rowsort label-9976
SELECT ALL 61 AS col1, COUNT( * ) * 79 + COUNT( * )
----
61
80

skipif mysql # not compatible
query II rowsort label-9976
SELECT ALL 61 AS col1, COUNT ( * ) * 79 + COUNT ( * )
----
61
80

query I rowsort
SELECT DISTINCT 35 * + 75 AS col2
----
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT DISTINCT 83 * - - COUNT( DISTINCT + - 58 ) - + + 35
----
48

skipif mysql # not compatible
query I rowsort label-9978
SELECT DISTINCT 83 * - - COUNT ( DISTINCT + - 58 ) - + + 35
----
48

query I rowsort
SELECT - 15 + - 45 + - 48 AS col2
----
-108

query I rowsort
SELECT DISTINCT + 21 * - ( 96 ) * - - 25 + 92 AS col2
----
-50308

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT + + 83 * + + COUNT( * ) * - - 6 * - - MAX( 76 ) col0
----
37848

skipif mysql # not compatible
query I rowsort label-9981
SELECT + + 83 * + + COUNT ( * ) * - - 6 * - - MAX ( 76 ) col0
----
37848

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT DISTINCT 23 * COUNT( * ) - + 62 * + 44 AS col2
----
-2705

skipif mysql # not compatible
query I rowsort label-9982
SELECT DISTINCT 23 * COUNT ( * ) - + 62 * + 44 AS col2
----
-2705

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9983
SELECT + CASE 9 WHEN + - COALESCE ( + 31, 65 ) + - COUNT( * ) THEN NULL WHEN 53 THEN NULL ELSE 43 * - 11 + - ( 26 ) DIV - 70 END
----
-473

skipif mysql # not compatible
query I rowsort label-9983
SELECT + CASE 9 WHEN + - COALESCE ( + 31, 65 ) + - COUNT ( * ) THEN NULL WHEN 53 THEN NULL ELSE 43 * - 11 + - ( 26 ) / - 70 END
----
-473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9984
SELECT ALL + CAST( + NULLIF ( + - CAST( NULL AS SIGNED ), - + 32 + - COUNT( * ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL + CAST ( + NULLIF ( + - CAST ( NULL AS INTEGER ), - + 32 + - COUNT ( * ) ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT + 17 * COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9985
SELECT + 17 * COUNT ( * ) AS col1
----
17

query I rowsort
SELECT DISTINCT 57 * 76 * + 15 + + 72 * 10
----
65700

query I rowsort
SELECT + 84 * + + 89 * 23 AS col1
----
171948

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT + - SUM( 9 ) + - + 21 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9988
SELECT + - SUM ( 9 ) + - + 21 AS col0
----
-30

query II rowsort
SELECT DISTINCT + 45 * + 82 AS col2, 35
----
3690
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT CASE 52 WHEN - COUNT( * ) THEN NULL WHEN - 20 / 82 THEN - 19 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9990
SELECT CASE 52 WHEN - COUNT ( * ) THEN NULL WHEN - 20 / 82 THEN - 19 END AS col2
----
NULL

query I rowsort
SELECT ALL - 70 * + 62 AS col1
----
-4340

onlyif mysql # DIV for integer division: 
query I rowsort label-9992
SELECT - 54 DIV 60 * - - 60
----
0

skipif mysql # not compatible
query I rowsort label-9992
SELECT - 54 / 60 * - - 60
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9993
SELECT + CAST( NULL AS SIGNED ) - COUNT( * ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9993
SELECT + CAST ( NULL AS INTEGER ) - COUNT ( * ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9994
SELECT + CAST( NULL AS SIGNED ) * + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-9994
SELECT + CAST ( NULL AS INTEGER ) * + 36
----
NULL

query I rowsort
SELECT ALL 47 * 84
----
3948

query II rowsort
SELECT ALL + 37, 87 AS col2
----
37
87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9997
SELECT + 18 DIV ( + CAST( - 96 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9997
SELECT + 18 / ( + CAST ( - 96 AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT ALL - 28 + - NULLIF ( 46, + MIN( ALL - - 1 ) + 36 ) col2
----
-74

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL - 28 + - NULLIF ( 46, + MIN ( ALL - - 1 ) + 36 ) col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9999
SELECT + CAST( NULL AS SIGNED ) * 4 * ( + 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9999
SELECT + CAST ( NULL AS INTEGER ) * 4 * ( + 87 )
----
NULL

