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 ALL - + 71 * + + 65 + 99 * + CASE ( - 59 ) WHEN + 91 THEN 48 END * + 33 AS col0
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 3, AVG ( DISTINCT + 24 ) + - 47 * - - 6 ) * 22 + - 19 * - 4 AS col2
----
142

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT + - COALESCE ( + - 3, ( + + COUNT( * ) ) ) * - MAX( 86 ) + - 0 AS col2
----
-258

skipif mysql # not compatible
query I rowsort label-3
SELECT + - COALESCE ( + - 3, ( + + COUNT ( * ) ) ) * - MAX ( 86 ) + - 0 AS col2
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT ALL - 46 * - MIN( - 69 ) + + ( - 48 ) AS col2
----
-3222

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL - 46 * - MIN ( - 69 ) + + ( - 48 ) AS col2
----
-3222

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT - 91 - + + 23 + 88 + - COUNT( * ) * + 98 * - 4 + 32 AS col2
----
398

skipif mysql # not compatible
query I rowsort label-5
SELECT - 91 - + + 23 + 88 + - COUNT ( * ) * + 98 * - 4 + 32 AS col2
----
398

query I rowsort
SELECT + 56 + - 97
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7
SELECT ALL CASE 21 WHEN + 89 + ( 10 ) + + ( - + 75 ) THEN NULL WHEN - - 24 THEN CAST( NULL AS SIGNED ) END - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL CASE 21 WHEN + 89 + ( 10 ) + + ( - + 75 ) THEN NULL WHEN - - 24 THEN CAST ( NULL AS INTEGER ) END - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 38 * - 82
----
-3116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9
SELECT + 50 + + + 69 + COALESCE ( - 98, + COALESCE ( - - 67, + 73 + - - 50, - 23 * + NULLIF ( - COUNT( * ) * - ( 28 * 85 ), + 82 ) ) * + 33, + CAST( + 87 AS SIGNED ) )
----
21

skipif mysql # not compatible
query I rowsort label-9
SELECT + 50 + + + 69 + COALESCE ( - 98, + COALESCE ( - - 67, + 73 + - - 50, - 23 * + NULLIF ( - COUNT ( * ) * - ( 28 * 85 ), + 82 ) ) * + 33, + CAST ( + 87 AS INTEGER ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT ALL CASE 50 WHEN 97 THEN NULL WHEN + 63 + + - ( + - 91 ) - - 99 * - + ( COALESCE ( COUNT( * ), - 19 / 30 ) ) / 25 THEN - 31 + + 99 * COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL CASE 50 WHEN 97 THEN NULL WHEN + 63 + + - ( + - 91 ) - - 99 * - + ( COALESCE ( COUNT ( * ), - 19 / 30 ) ) / 25 THEN - 31 + + 99 * COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT + COUNT( * ) + + - 51 * - NULLIF ( + 34, + - 96 ) * + - 67 + - 58 + 64 + NULLIF ( COALESCE ( - 44, - 21 ), + SUM( ALL + 92 ) ) AS col2
----
-116215

skipif mysql # not compatible
query I rowsort label-11
SELECT + COUNT ( * ) + + - 51 * - NULLIF ( + 34, + - 96 ) * + - 67 + - 58 + 64 + NULLIF ( COALESCE ( - 44, - 21 ), + SUM ( ALL + 92 ) ) AS col2
----
-116215

query II rowsort
SELECT - 65 AS col2, 98 + + 31
----
-65
129

query I rowsort
SELECT - 2 + + 57
----
55

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

skipif mysql # not compatible
query I rowsort label-14
SELECT + 14 / + 60
----
0

query I rowsort
SELECT - 19 * 80
----
-1520

onlyif mysql # DIV for integer division: 
query I rowsort label-16
SELECT ALL 25 DIV - - ( 79 )
----
0

skipif mysql # not compatible
query I rowsort label-16
SELECT ALL 25 / - - ( 79 )
----
0

query I rowsort
SELECT + 90 * + 64 AS col1
----
5760

query II rowsort
SELECT - 74 col2, 67 AS col2
----
-74
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT DISTINCT CASE 65 WHEN - 26 THEN NULL WHEN ( + - 87 ) - + CASE - - COUNT( * ) WHEN + + 4 THEN - 85 WHEN - 78 * - COUNT( * ) THEN - 60 WHEN 34 THEN - 15 END THEN 31 * - 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-20
SELECT DISTINCT CASE 65 WHEN - 26 THEN NULL WHEN ( + - 87 ) - + CASE - - COUNT ( * ) WHEN + + 4 THEN - 85 WHEN - 78 * - COUNT ( * ) THEN - 60 WHEN 34 THEN - 15 END THEN 31 * - 80 END
----
NULL

query I rowsort
SELECT + 83 * CASE - + 28 WHEN + 54 THEN 42 WHEN 30 THEN NULL ELSE 84 END * + 38
----
264936

query I rowsort
SELECT ALL + 90 * ( - + 43 ) AS col0
----
-3870

onlyif mysql # aggregate syntax: 
query II rowsort label-23
SELECT ALL COUNT( ALL ( ( + + 25 ) ) ), + 88 AS col1
----
1
88

skipif mysql # not compatible
query II rowsort label-23
SELECT ALL COUNT ( ALL ( ( + + 25 ) ) ), + 88 AS col1
----
1
88

query II rowsort
SELECT DISTINCT + 13 AS col2, + 75
----
13
75

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

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

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

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

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

query I rowsort
SELECT - CASE 24 WHEN - 56 + + 28 THEN NULL ELSE - + 54 * + + 4 END
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-29
SELECT ALL + 74 / COUNT( * ) + - - CASE - - 90 WHEN - - COUNT( * ) + CAST( NULL AS SIGNED ) THEN NULL WHEN + CASE 8 WHEN CAST( NULL AS SIGNED ) * - COUNT( * ) + + 84 THEN 88 END THEN - 59 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL + 74 / COUNT ( * ) + - - CASE - - 90 WHEN - - COUNT ( * ) + CAST ( NULL AS INTEGER ) THEN NULL WHEN + CASE 8 WHEN CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + 84 THEN 88 END THEN - 59 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-30
SELECT + 22 * NULLIF ( + 69, CAST( 11 AS SIGNED ) ) * + 73 + + COUNT( * ) AS col2
----
110815

skipif mysql # not compatible
query I rowsort label-30
SELECT + 22 * NULLIF ( + 69, CAST ( 11 AS INTEGER ) ) * + 73 + + COUNT ( * ) AS col2
----
110815

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-31
SELECT 62 DIV + - 13 - - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-31
SELECT 62 / + - 13 - - COUNT ( * )
----
-3

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

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

onlyif mysql # DIV for integer division: 
query III rowsort label-33
SELECT DISTINCT 17 DIV + 38 + 50, + NULLIF ( + 15, + - 7 ) AS col2, + CASE - - 81 WHEN 59 + + 92 * 94 THEN NULL WHEN + 52 * + 12 THEN NULL ELSE - 36 END + - 72 AS col1
----
50
15
-108

skipif mysql # not compatible
query III rowsort label-33
SELECT DISTINCT 17 / + 38 + 50, + NULLIF ( + 15, + - 7 ) AS col2, + CASE - - 81 WHEN 59 + + 92 * 94 THEN NULL WHEN + 52 * + 12 THEN NULL ELSE - 36 END + - 72 AS col1
----
50
15
-108

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT - 46 * + 13 + - CASE - + 59 WHEN COUNT( * ) * NULLIF ( - 64, - 91 ) + - 57 THEN NULL WHEN 47 + - 85 THEN - 48 / 84 ELSE NULL END / + 72 + CASE - 10 WHEN 86 * 35 THEN NULL WHEN - 89 * + MAX( DISTINCT 8 ) THEN COUNT( * ) WHEN - ( 45 ) THEN + 94 END * SUM( - 46 * 63 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-35
SELECT - 46 * + 13 + - CASE - + 59 WHEN COUNT ( * ) * NULLIF ( - 64, - 91 ) + - 57 THEN NULL WHEN 47 + - 85 THEN - 48 / 84 ELSE NULL END / + 72 + CASE - 10 WHEN 86 * 35 THEN NULL WHEN - 89 * + MAX ( DISTINCT 8 ) THEN COUNT ( * ) WHEN - ( 45 ) THEN + 94 END * SUM ( - 46 * 63 ) AS col2
----
NULL

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

query I rowsort
SELECT + 59 * + 0 + 90 + - 18
----
72

query II rowsort
SELECT - CASE 65 WHEN - 22 THEN - - 99 WHEN - 87 THEN NULL END * + + 33 AS col0, NULLIF ( + 56, + 24 / 71 + - 98 ) * 14 AS col0
----
NULL
784

query II rowsort
SELECT + - 64 AS col1, + 84
----
-64
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-40
SELECT ALL + COUNT( * ) * - - 98 * 67 - - 71 + 6 DIV - 49
----
6637

skipif mysql # not compatible
query I rowsort label-40
SELECT ALL + COUNT ( * ) * - - 98 * 67 - - 71 + 6 / - 49
----
6637

query I rowsort
SELECT + 62 + - 91
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-42
SELECT + + 41, + CASE 7 WHEN + 69 THEN 3 / COUNT( * ) + + + 13 WHEN - - 84 + 17 * + 31 THEN COALESCE ( - ( 59 ), - 6 ) ELSE NULL END * + COUNT( 67 + - 2 ) AS col0
----
41
NULL

skipif mysql # not compatible
query II rowsort label-42
SELECT + + 41, + CASE 7 WHEN + 69 THEN 3 / COUNT ( * ) + + + 13 WHEN - - 84 + 17 * + 31 THEN COALESCE ( - ( 59 ), - 6 ) ELSE NULL END * + COUNT ( 67 + - 2 ) AS col0
----
41
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-43
SELECT DISTINCT + 6 * + 47 * 59 + - 8 - + 72 + + ( - 26 ) + + NULLIF ( + 95, - ( + 52 ) ) DIV ( - 76 ) * 84
----
16448

skipif mysql # not compatible
query I rowsort label-43
SELECT DISTINCT + 6 * + 47 * 59 + - 8 - + 72 + + ( - 26 ) + + NULLIF ( + 95, - ( + 52 ) ) / ( - 76 ) * 84
----
16448

query I rowsort
SELECT - + NULLIF ( - 7, - 40 + 21 * + 70 ) AS col2
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-45
SELECT 31 * 64 col1, ( 15 ) DIV - 71 + + SUM( 53 ) + - - 92 AS col0
----
1984
145

skipif mysql # not compatible
query II rowsort label-45
SELECT 31 * 64 col1, ( 15 ) / - 71 + + SUM ( 53 ) + - - 92 AS col0
----
1984
145

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

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

query I rowsort
SELECT ALL 20 * + - 27
----
-540

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

skipif mysql # not compatible
query I rowsort label-48
SELECT COUNT ( * ) - + 3 AS col0
----
-2

query I rowsort
SELECT 36 - - 84 + + 40 * + 28
----
1240

query I rowsort
SELECT 72 * - + 10
----
-720

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

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

query I rowsort
SELECT DISTINCT 19 * + CASE - + 98 WHEN + - 6 * - 80 * - ( + - AVG ( - 62 ) ) / + 96 * 67 THEN + 57 - + 91 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 31 * 39
----
1209

onlyif mysql # DIV for integer division: 
query I rowsort label-54
SELECT 62 DIV - ( - 56 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-54
SELECT 62 / - ( - 56 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-55
SELECT DISTINCT 83 * - - 69, - 43 - - + 72 + + - ( COUNT( * ) ) + - ( + + 25 ) + + COUNT( * ) + 98 * COUNT( * ) AS col2
----
5727
102

skipif mysql # not compatible
query II rowsort label-55
SELECT DISTINCT 83 * - - 69, - 43 - - + 72 + + - ( COUNT ( * ) ) + - ( + + 25 ) + + COUNT ( * ) + 98 * COUNT ( * ) AS col2
----
5727
102

query I rowsort
SELECT ALL - 32 + - + 89 AS col0
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-57
SELECT MAX( ALL + - 37 ) DIV + - 56 * 75 AS col1, 53 + 64 AS col1
----
0
117

skipif mysql # not compatible
query II rowsort label-57
SELECT MAX ( ALL + - 37 ) / + - 56 * 75 AS col1, 53 + 64 AS col1
----
0
117

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

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

query I rowsort
SELECT ALL 71 + 59 + 31 AS col2
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-60
SELECT - 60 DIV + 25
----
-2

skipif mysql # not compatible
query I rowsort label-60
SELECT - 60 / + 25
----
-2

query I rowsort
SELECT DISTINCT + 64 + ( 54 ) AS col2
----
118

query I rowsort
SELECT ALL - 6 * + 13 * + 8 * - 82 AS col0
----
51168

query I rowsort
SELECT - ( 54 ) * + 31 AS col2
----
-1674

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-64
SELECT - 44 * + COUNT( * ) * + 31 + - - 67 DIV + ( ( - 15 ) ), 39 - + 90 AS col0
----
-1368
-51

skipif mysql # not compatible
query II rowsort label-64
SELECT - 44 * + COUNT ( * ) * + 31 + - - 67 / + ( ( - 15 ) ), 39 - + 90 AS col0
----
-1368
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-65
SELECT + COUNT( * ) * 74 + 64 * + 79 + 64 - + - 67 - + CAST( 25 AS SIGNED ) DIV + COUNT( * ) - COUNT( * )
----
5235

skipif mysql # not compatible
query I rowsort label-65
SELECT + COUNT ( * ) * 74 + 64 * + 79 + 64 - + - 67 - + CAST ( 25 AS INTEGER ) / + COUNT ( * ) - COUNT ( * )
----
5235

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT + 46 * - 38 * - 38 + 15 * - MIN( ALL 39 ) * 67
----
27229

skipif mysql # not compatible
query I rowsort label-66
SELECT + 46 * - 38 * - 38 + 15 * - MIN ( ALL 39 ) * 67
----
27229

onlyif mysql # DIV for integer division: 
query I rowsort label-67
SELECT 10 + + 87 DIV 8
----
20

skipif mysql # not compatible
query I rowsort label-67
SELECT 10 + + 87 / 8
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT ALL + + 10 - + COUNT( - + 90 ) + 30 + - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL + + 10 - + COUNT ( - + 90 ) + 30 + - COUNT ( * )
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-69
SELECT ALL - - 48 DIV + + 36 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-69
SELECT ALL - - 48 / + + 36 AS col0
----
1

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

query I rowsort
SELECT + ( COALESCE ( + COALESCE ( + 27, + + 28 ), - 54, + 0 * + 57 - 59 + - 31 ) )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT ALL - ( - NULLIF ( - 30, - 62 * + COUNT( * ) / + 40 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL - ( - NULLIF ( - 30, - 62 * + COUNT ( * ) / + 40 ) )
----
-30

query I rowsort
SELECT - 27 * 70 + - 72 - + 34 + - + 67
----
-2063

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

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

query I rowsort
SELECT 46 + 78
----
124

query I rowsort
SELECT 17 * 13 * + 54 AS col1
----
11934

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-77
SELECT - 3, + 45 * + 77 - + 41 - - 88 DIV + - SUM( + 7 ) AS col1
----
-3
3412

skipif mysql # not compatible
query II rowsort label-77
SELECT - 3, + 45 * + 77 - + 41 - - 88 / + - SUM ( + 7 ) AS col1
----
-3
3412

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

query II rowsort
SELECT ALL 59, - 15 AS col2
----
59
-15

query I rowsort
SELECT - 39 * + 16 + - 30
----
-654

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT COUNT( DISTINCT + 47 ) - - - 69
----
-68

skipif mysql # not compatible
query I rowsort label-81
SELECT COUNT ( DISTINCT + 47 ) - - - 69
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT 46 + 69 * ( - 44 ) * + CASE 67 WHEN - COUNT( * ) THEN - 23 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-82
SELECT 46 + 69 * ( - 44 ) * + CASE 67 WHEN - COUNT ( * ) THEN - 23 END col1
----
NULL

query II rowsort
SELECT ALL 17, - 67 + - 24 AS col1
----
17
-91

query I rowsort
SELECT 52 * + 6
----
312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-85
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + 9 * - + MIN( ALL 26 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-85
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + 9 * - + MIN ( ALL 26 ) AS col1
----
NULL

query II rowsort
SELECT ALL 70 AS col1, - 98
----
70
-98

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-88
SELECT 27 AS col0, CAST( 74 AS SIGNED ) * - 23 * NULLIF ( + 75, 30 ) * + - 32 - 95 + + 91 - + CAST( NULL AS SIGNED ) AS col2
----
27
NULL

skipif mysql # not compatible
query II rowsort label-88
SELECT 27 AS col0, CAST ( 74 AS INTEGER ) * - 23 * NULLIF ( + 75, 30 ) * + - 32 - 95 + + 91 - + CAST ( NULL AS INTEGER ) AS col2
----
27
NULL

query II rowsort
SELECT DISTINCT 33, 35 col1
----
33
35

query I rowsort
SELECT DISTINCT 36 + + 30 col1
----
66

query I rowsort
SELECT DISTINCT 30 + + 2 * 70
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT DISTINCT + 19 + - 74 * - NULLIF ( + - 23, + 16 / 11 * - MAX( ALL - 5 ) * COUNT( * ) ) + ( + 15 ) + - NULLIF ( 78, 57 - - 1 ) * + ( 51 + + 23 * 72 )
----
-134814

skipif mysql # not compatible
query I rowsort label-92
SELECT DISTINCT + 19 + - 74 * - NULLIF ( + - 23, + 16 / 11 * - MAX ( ALL - 5 ) * COUNT ( * ) ) + ( + 15 ) + - NULLIF ( 78, 57 - - 1 ) * + ( 51 + + 23 * 72 )
----
-134814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-93
SELECT ALL + CAST( NULL AS SIGNED ) * - 70 - 5 AS col2, CAST( 38 AS SIGNED ) + ( - + 19 ) + - COUNT( * ) AS col0
----
NULL
18

skipif mysql # not compatible
query II rowsort label-93
SELECT ALL + CAST ( NULL AS INTEGER ) * - 70 - 5 AS col2, CAST ( 38 AS INTEGER ) + ( - + 19 ) + - COUNT ( * ) AS col0
----
NULL
18

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-96
SELECT DISTINCT 37 * CAST( 2 AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-96
SELECT DISTINCT 37 * CAST ( 2 AS INTEGER ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT - + COUNT( * ) * + COUNT( * ) * 37 - + 81 + 87 + + 75 + - + 5
----
39

skipif mysql # not compatible
query I rowsort label-97
SELECT - + COUNT ( * ) * + COUNT ( * ) * 37 - + 81 + 87 + + 75 + - + 5
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-98
SELECT 99, + COUNT( * ) + - 16 col0
----
99
-15

skipif mysql # not compatible
query II rowsort label-98
SELECT 99, + COUNT ( * ) + - 16 col0
----
99
-15

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

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

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

query I rowsort
SELECT 45 * 22 AS col0
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT ALL + 58 * 57 * - MIN( - - 45 ) AS col2
----
-148770

skipif mysql # not compatible
query I rowsort label-102
SELECT ALL + 58 * 57 * - MIN ( - - 45 ) AS col2
----
-148770

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-103
SELECT ALL + COUNT( * ) DIV - + 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL + COUNT ( * ) / - + 27 AS col0
----
0

query I rowsort
SELECT DISTINCT - + 33 * + 1 - - 39 AS col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-105
SELECT ALL - 67 * - - 87 * 87 - - 84 + - 13 DIV + COUNT( * ) + 54 * - 50 * - 79 + - - COALESCE ( 83, + 53 * 22 )
----
-293669

skipif mysql # not compatible
query I rowsort label-105
SELECT ALL - 67 * - - 87 * 87 - - 84 + - 13 / + COUNT ( * ) + 54 * - 50 * - 79 + - - COALESCE ( 83, + 53 * 22 )
----
-293669

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT ALL + + 68 * + 13 + COUNT( * ) / + CASE - + 34 WHEN NULLIF ( - 34, - 13 ) THEN NULL WHEN + - COALESCE ( - + 9, 75 * + NULLIF ( NULLIF ( 12, COUNT( * ) ), + 81 ), - 53 ) THEN + 45 ELSE - 53 END - - 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL + + 68 * + 13 + COUNT ( * ) / + CASE - + 34 WHEN NULLIF ( - 34, - 13 ) THEN NULL WHEN + - COALESCE ( - + 9, 75 * + NULLIF ( NULLIF ( 12, COUNT ( * ) ), + 81 ), - 53 ) THEN + 45 ELSE - 53 END - - 50 AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-108
SELECT + 67 * 36 DIV + - 74
----
-32

skipif mysql # not compatible
query I rowsort label-108
SELECT + 67 * 36 / + - 74
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-109
SELECT 30 * ( - 78 ) + COUNT( * ) * + 5 * 38 + - ( MAX( ALL 85 ) ) - + 86 + + 24 - CAST( 72 AS SIGNED ) * + 55 * - 5
----
17503

skipif mysql # not compatible
query I rowsort label-109
SELECT 30 * ( - 78 ) + COUNT ( * ) * + 5 * 38 + - ( MAX ( ALL 85 ) ) - + 86 + + 24 - CAST ( 72 AS INTEGER ) * + 55 * - 5
----
17503

query I rowsort
SELECT ALL - 94 * 28 AS col0
----
-2632

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

skipif mysql # not compatible
query I rowsort label-111
SELECT MIN ( - + 63 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT - COUNT( * ) * + CASE - CASE - 17 WHEN - 31 THEN - + 14 END WHEN 3 THEN - 84 WHEN + ( + AVG ( DISTINCT 89 ) ) THEN 16 * 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-112
SELECT - COUNT ( * ) * + CASE - CASE - 17 WHEN - 31 THEN - + 14 END WHEN 3 THEN - 84 WHEN + ( + AVG ( DISTINCT 89 ) ) THEN 16 * 21 END
----
NULL

query I rowsort
SELECT - 67 * - 3 col2
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT - MAX( - ( - 40 ) ) * + 84 col1
----
-3360

skipif mysql # not compatible
query I rowsort label-114
SELECT - MAX ( - ( - 40 ) ) * + 84 col1
----
-3360

query I rowsort
SELECT DISTINCT + 49 + + 76 AS col0
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-116
SELECT DISTINCT 65 AS col1, - CASE - 5 WHEN - 8 * - 19 - - - 91 THEN 71 + + ( 75 ) + - - 17 / COUNT( * ) * 90 + + COALESCE ( 28, + ( - 69 ) ) END * 31
----
65
NULL

skipif mysql # not compatible
query II rowsort label-116
SELECT DISTINCT 65 AS col1, - CASE - 5 WHEN - 8 * - 19 - - - 91 THEN 71 + + ( 75 ) + - - 17 / COUNT ( * ) * 90 + + COALESCE ( 28, + ( - 69 ) ) END * 31
----
65
NULL

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

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

query I rowsort
SELECT ALL + 31 + + ( + + 54 ) col1
----
85

query I rowsort
SELECT DISTINCT NULLIF ( - - 57, + 33 * + - 93 + 65 ) AS col1
----
57

query I rowsort
SELECT ALL - 4 + - - 80 AS col0
----
76

query II rowsort
SELECT - 28 AS col1, - 85
----
-28
-85

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-125
SELECT - 65 * + 24 AS col1, + 42 * - NULLIF ( + COUNT( * ), - 64 / 77 * + COUNT( * ) + 3 ) * - ( - COUNT( * ) ) + + 34 AS col0
----
-1560
-8

skipif mysql # not compatible
query II rowsort label-125
SELECT - 65 * + 24 AS col1, + 42 * - NULLIF ( + COUNT ( * ), - 64 / 77 * + COUNT ( * ) + 3 ) * - ( - COUNT ( * ) ) + + 34 AS col0
----
-1560
-8

query I rowsort
SELECT - 77 - - 37
----
-40

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

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

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

query I rowsort
SELECT ALL + 32 + 90 AS col1
----
122

query II rowsort
SELECT - 93 AS col0, 0 * - 1 AS col1
----
-93
0

query I rowsort
SELECT ALL 0 + + 36 AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-132
SELECT - CASE + - 58 WHEN 81 * + 23 * CASE WHEN - COUNT( * ) < NULL THEN - - NULLIF ( - COALESCE ( + 75, 97 ), 61 - - 50 * 6 ) + NULLIF ( 3 + 69 * 42, 60 + - 80 ) WHEN NOT ( - 17 * COUNT( * ) + COUNT( * ) ) NOT BETWEEN ( 23 ) AND ( - 51 ) THEN + MAX( DISTINCT 51 ) END + 54 * + 9 THEN 43 + CAST( NULL AS SIGNED ) * 46 WHEN NULLIF ( - 14, - 98 ) THEN NULL WHEN CASE 87 WHEN COALESCE ( 65, COUNT( * ) * ( + 28 ), 45 ) THEN COUNT( * ) / 59 END * 35 + 35 / COUNT( * ) THEN 91 + ( 1 + 85 ) * + 60 END - + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-132
SELECT - CASE + - 58 WHEN 81 * + 23 * CASE WHEN - COUNT ( * ) < NULL THEN - - NULLIF ( - COALESCE ( + 75, 97 ), 61 - - 50 * 6 ) + NULLIF ( 3 + 69 * 42, 60 + - 80 ) WHEN NOT ( - 17 * COUNT ( * ) + COUNT ( * ) ) NOT BETWEEN ( 23 ) AND ( - 51 ) THEN + MAX ( DISTINCT 51 ) END + 54 * + 9 THEN 43 + CAST ( NULL AS INTEGER ) * 46 WHEN NULLIF ( - 14, - 98 ) THEN NULL WHEN CASE 87 WHEN COALESCE ( 65, COUNT ( * ) * ( + 28 ), 45 ) THEN COUNT ( * ) / 59 END * 35 + 35 / COUNT ( * ) THEN 91 + ( 1 + 85 ) * + 60 END - + 8
----
NULL

query II rowsort
SELECT + 75 AS col1, + NULLIF ( - 43, 86 )
----
75
-43

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-135
SELECT + - 68 * - 41 + SUM( + COALESCE ( + - 84, + 28 ) ) * AVG ( ALL - CAST( NULL AS SIGNED ) ) + + - SUM( + 98 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-135
SELECT + - 68 * - 41 + SUM ( + COALESCE ( + - 84, + 28 ) ) * AVG ( ALL - CAST ( NULL AS INTEGER ) ) + + - SUM ( + 98 ) AS col2
----
NULL

query II rowsort
SELECT ALL - 62 * + 18, ( + 77 ) col1
----
-1116
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-137
SELECT ALL - CAST( NULL AS DECIMAL ) / - 55 - + 35 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL - CAST ( NULL AS REAL ) / - 55 - + 35 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT ALL + + 64 * - 52 * + 83 * - + SUM( 21 ) AS col0
----
5800704

skipif mysql # not compatible
query I rowsort label-138
SELECT ALL + + 64 * - 52 * + 83 * - + SUM ( 21 ) AS col0
----
5800704

onlyif mysql # aggregate syntax: 
query II rowsort label-139
SELECT 19, 42 + - COUNT( * ) AS col2
----
19
41

skipif mysql # not compatible
query II rowsort label-139
SELECT 19, 42 + - COUNT ( * ) AS col2
----
19
41

query I rowsort
SELECT - + 46 * + 95 * 62 AS col1
----
-270940

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

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

query II rowsort
SELECT ALL + + 91, + 51 AS col2
----
91
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-143
SELECT + 91 + + + CAST( NULL AS SIGNED ) + + 26 - + - 68 + + - 17 * 13 / + 81 * - - 68 + + 63 * - COUNT( * ) * + + SUM( - 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-143
SELECT + 91 + + + CAST ( NULL AS INTEGER ) + + 26 - + - 68 + + - 17 * 13 / + 81 * - - 68 + + 63 * - COUNT ( * ) * + + SUM ( - 46 )
----
NULL

query I rowsort
SELECT NULLIF ( - ( - + 46 ), + 45 ) AS col1
----
46

query I rowsort
SELECT + 67 + + 76 - + CASE - 88 WHEN + + 2 THEN NULL WHEN - + 94 THEN - 66 END / 6 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT ALL COUNT( * ) * + - 78 * 49 + - 49 AS col2
----
-3871

skipif mysql # not compatible
query I rowsort label-146
SELECT ALL COUNT ( * ) * + - 78 * 49 + - 49 AS col2
----
-3871

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT + 43 * - 67 * - 4 - + COUNT( * ) AS col2
----
11523

skipif mysql # not compatible
query I rowsort label-147
SELECT + 43 * - 67 * - 4 - + COUNT ( * ) AS col2
----
11523

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

onlyif mysql # aggregate syntax: 
query II rowsort label-149
SELECT ALL 24 * COALESCE ( 83, + 90 + 13, 69, - + 35 + - 60 * + + 82 ) + - + COUNT( * ) col1, + 71
----
1991
71

skipif mysql # not compatible
query II rowsort label-149
SELECT ALL 24 * COALESCE ( 83, + 90 + 13, 69, - + 35 + - 60 * + + 82 ) + - + COUNT ( * ) col1, + 71
----
1991
71

onlyif mysql # aggregate syntax: 
query II rowsort label-150
SELECT ALL 2 * - + 19 * 86 col1, COUNT( + + 4 ) col0
----
-3268
1

skipif mysql # not compatible
query II rowsort label-150
SELECT ALL 2 * - + 19 * 86 col1, COUNT ( + + 4 ) col0
----
-3268
1

query I rowsort
SELECT - 89 + + + 43 + - 87 AS col1
----
-133

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

skipif mysql # not compatible
query I rowsort label-152
SELECT 64 * + COUNT ( * ) * + 12 + - 33 AS col1
----
735

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT + CASE - + 96 WHEN - + 23 THEN + ( + 64 ) * + 21 + - ( - COUNT( * ) ) + 34 ELSE - 64 END + ( - 73 ) AS col0
----
-137

skipif mysql # not compatible
query I rowsort label-153
SELECT + CASE - + 96 WHEN - + 23 THEN + ( + 64 ) * + 21 + - ( - COUNT ( * ) ) + 34 ELSE - 64 END + ( - 73 ) AS col0
----
-137

onlyif mysql # aggregate syntax: 
query III rowsort label-154
SELECT - 83 - 51, + COUNT( * ) AS col1, COUNT( * ) AS col2
----
-134
1
1

skipif mysql # not compatible
query III rowsort label-154
SELECT - 83 - 51, + COUNT ( * ) AS col1, COUNT ( * ) AS col2
----
-134
1
1

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

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

query I rowsort
SELECT DISTINCT 1 * - - 56 * - - 27
----
1512

query I rowsort
SELECT ALL 10 * + 93 + - - 96 AS col1
----
1026

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-160
SELECT ALL NULLIF ( 96, + + CAST( NULL AS SIGNED ) * 13 / - - NULLIF ( + + 85, SUM( - + 32 ) * 53 ) * + ( - - 39 ) + + 45 - - 67 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL NULLIF ( 96, + + CAST ( NULL AS INTEGER ) * 13 / - - NULLIF ( + + 85, SUM ( - + 32 ) * 53 ) * + ( - - 39 ) + + 45 - - 67 ) AS col0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-161
SELECT DISTINCT + 74 DIV + 75 col1
----
0

skipif mysql # not compatible
query I rowsort label-161
SELECT DISTINCT + 74 / + 75 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-162
SELECT DISTINCT CASE - - 39 WHEN 0 * - - 76 THEN + COUNT( * ) + + CAST( 51 AS DECIMAL ) WHEN - - 57 THEN + 62 * ( - MAX( - 21 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT CASE - - 39 WHEN 0 * - - 76 THEN + COUNT ( * ) + + CAST ( 51 AS REAL ) WHEN - - 57 THEN + 62 * ( - MAX ( - 21 ) ) END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-163
SELECT + + 52 * CAST ( NULL AS INTEGER ) + + AVG ( ALL + 71 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-164
SELECT - + 46 * ( + ( - 17 ) ) * - MIN( 50 ) - - + 0 + 30 * + NULLIF ( + CAST( NULL AS SIGNED ), - COUNT( * ) / + 43 + 87 ) + 16 * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-164
SELECT - + 46 * ( + ( - 17 ) ) * - MIN ( 50 ) - - + 0 + 30 * + NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) / + 43 + 87 ) + 16 * 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT - - MAX( ALL - 11 ) + - 49 col0
----
-60

skipif mysql # not compatible
query I rowsort label-165
SELECT - - MAX ( ALL - 11 ) + - 49 col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT - 3 / - + CASE + COALESCE ( + + 64, - 1 * SUM( DISTINCT 8 ) + 45 + - COUNT( * ) * + 51 + + 14, + 57 ) WHEN - 21 / NULLIF ( - 1, COALESCE ( - 35, 81 - 99, + 95 * - 66 ) ) THEN 39 END + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-166
SELECT - 3 / - + CASE + COALESCE ( + + 64, - 1 * SUM ( DISTINCT 8 ) + 45 + - COUNT ( * ) * + 51 + + 14, + 57 ) WHEN - 21 / NULLIF ( - 1, COALESCE ( - 35, 81 - 99, + 95 * - 66 ) ) THEN 39 END + 38 AS col1
----
NULL

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

query I rowsort
SELECT ALL - 80 * - 68
----
5440

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT ALL + 22 * COUNT( * ) + 38 + 49 * - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL + 22 * COUNT ( * ) + 38 + 49 * - COUNT ( * )
----
11

query I rowsort
SELECT DISTINCT - + 74 * + 29 * + 8
----
-17168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-171
SELECT ALL + COALESCE ( + 59, - - 35 DIV - + 41 + - COUNT( * ) * + 53, ( + 74 ) * + - CASE WHEN NOT COUNT( * ) IS NOT NULL THEN - - 94 ELSE NULL END + 13 ) col0
----
59

skipif mysql # not compatible
query I rowsort label-171
SELECT ALL + COALESCE ( + 59, - - 35 / - + 41 + - COUNT ( * ) * + 53, ( + 74 ) * + - CASE WHEN NOT COUNT ( * ) IS NOT NULL THEN - - 94 ELSE NULL END + 13 ) col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-172
SELECT 8 DIV - ( - 29 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-172
SELECT 8 / - ( - 29 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 18 * - 11 * + - 31 + + - 13 * + ( - 46 ) AS col0
----
6736

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-175
SELECT - + 69 / - 80 + - CAST( NULL AS SIGNED ) * + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-175
SELECT - + 69 / - 80 + - CAST ( NULL AS INTEGER ) * + 38 AS col1
----
NULL

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

query I rowsort
SELECT 77 * 71 + + 54 AS col1
----
5521

query I rowsort
SELECT - 28 + + - 64 col2
----
-92

query II rowsort
SELECT + 46, 35 col2
----
46
35

query I rowsort
SELECT DISTINCT + 76 * - 60
----
-4560

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT DISTINCT - COUNT( - CASE + 47 WHEN + 65 THEN - 77 END )
----
0

skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT - COUNT ( - CASE + 47 WHEN + 65 THEN - 77 END )
----
0

query I rowsort
SELECT 62 + + - 25 * - 92 * + 23
----
52962

query I rowsort
SELECT DISTINCT - ( 49 ) * - 95 + 72 AS col0
----
4727

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT ALL + 4 + + COUNT( * ) + - COALESCE ( + + 60, ( - MAX( - 15 ) ), - 49 * + + 1 * + 64 ) + + 44 * + COUNT( * ) + + + 59 * 37 AS col1
----
2172

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL + 4 + + COUNT ( * ) + - COALESCE ( + + 60, ( - MAX ( - 15 ) ), - 49 * + + 1 * + 64 ) + + 44 * + COUNT ( * ) + + + 59 * 37 AS col1
----
2172

onlyif mysql # aggregate syntax: 
query II rowsort label-185
SELECT DISTINCT - 50 + + 0 - 5 AS col1, - COUNT( - 74 )
----
-55
-1

skipif mysql # not compatible
query II rowsort label-185
SELECT DISTINCT - 50 + + 0 - 5 AS col1, - COUNT ( - 74 )
----
-55
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-186
SELECT 46 DIV + ( 61 )
----
0

skipif mysql # not compatible
query I rowsort label-186
SELECT 46 / + ( 61 )
----
0

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

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

query I rowsort
SELECT ALL 19 + - 69 + ( + 0 ) AS col2
----
-50

query II rowsort
SELECT 43 AS col1, - COALESCE ( - 68, + + 85 ) - - - 50 * - - 81 AS col0
----
43
-3982

query I rowsort
SELECT DISTINCT 54 + 91
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-191
SELECT DISTINCT 18 / CAST( NULL AS SIGNED ) * - + AVG ( ALL - 51 ) col0, 28 AS col1
----
NULL
28

skipif mysql # not compatible
query II rowsort label-191
SELECT DISTINCT 18 / CAST ( NULL AS INTEGER ) * - + AVG ( ALL - 51 ) col0, 28 AS col1
----
NULL
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-192
SELECT ALL 42 - - CAST( NULL AS SIGNED ) + 54 - + 7 * CAST( + - 23 AS SIGNED ) * + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-192
SELECT ALL 42 - - CAST ( NULL AS INTEGER ) + 54 - + 7 * CAST ( + - 23 AS INTEGER ) * + - 16
----
NULL

query I rowsort
SELECT 96 * 24
----
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT DISTINCT 71 - + + CASE + 55 WHEN - - 7 THEN - 60 / 78 - 33 - - 6 WHEN - 73 + - - 39 THEN NULL WHEN + - AVG ( ALL - + 33 ) - - COUNT( * ) THEN - 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT 71 - + + CASE + 55 WHEN - - 7 THEN - 60 / 78 - 33 - - 6 WHEN - 73 + - - 39 THEN NULL WHEN + - AVG ( ALL - + 33 ) - - COUNT ( * ) THEN - 64 END
----
NULL

query I rowsort
SELECT DISTINCT - 28 * 24
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT SUM( - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-196
SELECT SUM ( - 95 )
----
-95

query I rowsort
SELECT - 4 - - - 8 + + 69 AS col0
----
57

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

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

query I rowsort
SELECT NULLIF ( - + 6, + ( + 84 ) )
----
-6

query I rowsort
SELECT 0 + 62
----
62

query I rowsort
SELECT 30 * - 28
----
-840

query I rowsort
SELECT 23 - + + 84 * 50 AS col2
----
-4177

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT - SUM( ALL 64 ) * COUNT( * ) + 90 * + - ( + 92 ) AS col0
----
-8344

skipif mysql # not compatible
query I rowsort label-203
SELECT - SUM ( ALL 64 ) * COUNT ( * ) + 90 * + - ( + 92 ) AS col0
----
-8344

query I rowsort
SELECT DISTINCT - 52 * 10 AS col1
----
-520

query I rowsort
SELECT DISTINCT ( - + NULLIF ( - 31, + 24 ) )
----
31

query I rowsort
SELECT ALL - + 97 + - 90
----
-187

query II rowsort
SELECT 54, + 58 AS col2
----
54
58

query I rowsort
SELECT ALL + + 84 + + - 25 - + - 6 AS col0
----
65

query I rowsort
SELECT DISTINCT + + 67 * + ( + + 57 ) AS col1
----
3819

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT 62 * + NULLIF ( - COUNT( * ), - 80 + + 69 ) * - COUNT( * ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-211
SELECT 62 * + NULLIF ( - COUNT ( * ), - 80 + + 69 ) * - COUNT ( * ) AS col2
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-212
SELECT DISTINCT - 90 DIV + ( + - 65 )
----
1

skipif mysql # not compatible
query I rowsort label-212
SELECT DISTINCT - 90 / + ( + - 65 )
----
1

query I rowsort
SELECT DISTINCT + 18 + - 63 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT ALL - 63 + CASE COUNT( * ) WHEN AVG ( DISTINCT + + 0 ) * - + 47 THEN 9 * - COUNT( * ) WHEN + 48 THEN - 83 ELSE COUNT( * ) * - NULLIF ( + 43, + - 95 ) END + - 86
----
-192

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL - 63 + CASE COUNT ( * ) WHEN AVG ( DISTINCT + + 0 ) * - + 47 THEN 9 * - COUNT ( * ) WHEN + 48 THEN - 83 ELSE COUNT ( * ) * - NULLIF ( + 43, + - 95 ) END + - 86
----
-192

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

query I rowsort
SELECT DISTINCT - NULLIF ( + 96, + - 22 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT 81 + + + 31 * COUNT( * ) * + - 45 AS col1
----
-1314

skipif mysql # not compatible
query I rowsort label-217
SELECT 81 + + + 31 * COUNT ( * ) * + - 45 AS col1
----
-1314

query II rowsort
SELECT ALL 66 - 47 AS col1, - 39
----
19
-39

query I rowsort
SELECT 87 * + 49
----
4263

query I rowsort
SELECT DISTINCT - 28 * 68
----
-1904

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT + 96 * + - SUM( - 61 ) - ( - ( 16 ) ) + 11 * + 28
----
6180

skipif mysql # not compatible
query I rowsort label-221
SELECT + 96 * + - SUM ( - 61 ) - ( - ( 16 ) ) + 11 * + 28
----
6180

query I rowsort
SELECT ALL - 10 * + + ( - 24 ) AS col0
----
240

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

skipif mysql # not compatible
query I rowsort label-223
SELECT 37 * COUNT ( * ) + - 32 AS col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-224
SELECT ALL - 1 * ( 78 ) DIV - NULLIF ( - 8, - 10 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL - 1 * ( 78 ) / - NULLIF ( - 8, - 10 ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-225
SELECT 77 * 43 * + 99 * + 58 AS col2, 46 * - COUNT( * ) AS col2
----
19011762
-46

skipif mysql # not compatible
query II rowsort label-225
SELECT 77 * 43 * + 99 * + 58 AS col2, 46 * - COUNT ( * ) AS col2
----
19011762
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-226
SELECT NULLIF ( 84, - + MAX( + + 56 ) ) + - + 11 DIV + 33
----
84

skipif mysql # not compatible
query I rowsort label-226
SELECT NULLIF ( 84, - + MAX ( + + 56 ) ) + - + 11 / + 33
----
84

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-230
SELECT CASE + 49 WHEN - 3 + 64 + 21 + 40 / + CASE + 59 WHEN + CAST( - 63 AS SIGNED ) * + COALESCE ( - - 18, + 23 ) THEN - - 78 - + ( 47 ) END THEN 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-230
SELECT CASE + 49 WHEN - 3 + 64 + 21 + 40 / + CASE + 59 WHEN + CAST ( - 63 AS INTEGER ) * + COALESCE ( - - 18, + 23 ) THEN - - 78 - + ( 47 ) END THEN 39 END
----
NULL

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

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

skipif mysql # not compatible
query II rowsort label-232
SELECT + + 69 / COUNT ( * ), - 4 AS col0
----
69
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-233
SELECT ALL + - ( - 61 ) DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL + - ( - 61 ) / - 71
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-234
SELECT DISTINCT - 42 * + 50 + 43 + 18 AS col1, CAST( NULL AS SIGNED ) * + - 97
----
-2039
NULL

skipif mysql # not compatible
query II rowsort label-234
SELECT DISTINCT - 42 * + 50 + 43 + 18 AS col1, CAST ( NULL AS INTEGER ) * + - 97
----
-2039
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-236
SELECT - 91 DIV - 49
----
1

skipif mysql # not compatible
query I rowsort label-236
SELECT - 91 / - 49
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-237
SELECT + 65 + + + 80 + - CAST( NULL AS SIGNED ) + - 16 * - - 60 / + COUNT( * ) + COUNT( * ) / 40
----
NULL

skipif mysql # not compatible
query I rowsort label-237
SELECT + 65 + + + 80 + - CAST ( NULL AS INTEGER ) + - 16 * - - 60 / + COUNT ( * ) + COUNT ( * ) / 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT ALL COUNT( * ) * 73 + + 47 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL COUNT ( * ) * 73 + + 47 AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT DISTINCT - CASE COALESCE ( - 97, - MIN( ALL 92 ) / 62 ) WHEN - - 8 THEN - 88 * - 46 + - 6 + - + 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-239
SELECT DISTINCT - CASE COALESCE ( - 97, - MIN ( ALL 92 ) / 62 ) WHEN - - 8 THEN - 88 * - 46 + - 6 + - + 98 END
----
NULL

query I rowsort
SELECT ALL + 23 + + 6 * - + 66 AS col0
----
-373

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT ALL - COUNT( * ) + 17 * - - 55 * + 85 + - + MIN( + 92 )
----
79382

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL - COUNT ( * ) + 17 * - - 55 * + 85 + - + MIN ( + 92 )
----
79382

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-243
SELECT ALL + 79 * - CASE 38 WHEN + 73 THEN CASE COUNT( * ) WHEN - 6 THEN + COUNT( * ) + COUNT( * ) + CAST( NULL AS SIGNED ) END ELSE NULL END + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-243
SELECT ALL + 79 * - CASE 38 WHEN + 73 THEN CASE COUNT ( * ) WHEN - 6 THEN + COUNT ( * ) + COUNT ( * ) + CAST ( NULL AS INTEGER ) END ELSE NULL END + - 51
----
NULL

query I rowsort
SELECT DISTINCT 80 + COALESCE ( + 45, + 0 + + 99 ) AS col1
----
125

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

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

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

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

query I rowsort
SELECT ALL 43 * 26
----
1118

query I rowsort
SELECT DISTINCT 78 * - - 21 * - 99 AS col1
----
-162162

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT ALL 36 * MIN( DISTINCT + - 84 ) AS col2
----
-3024

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL 36 * MIN ( DISTINCT + - 84 ) AS col2
----
-3024

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-251
SELECT ALL + 42 DIV NULLIF ( - + 67, 85 )
----
0

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL + 42 / NULLIF ( - + 67, 85 )
----
0

query I rowsort
SELECT - 30 * + + 9 + + 86 * - - 33 AS col1
----
2568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-253
SELECT CASE + + 21 WHEN 95 THEN NULL WHEN CAST( - 70 AS SIGNED ) * - COUNT( * ) * + 12 + + + 75 THEN - CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-253
SELECT CASE + + 21 WHEN 95 THEN NULL WHEN CAST ( - 70 AS INTEGER ) * - COUNT ( * ) * + 12 + + + 75 THEN - CAST ( NULL AS INTEGER ) END AS col0
----
NULL

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

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

query I rowsort
SELECT - 18 * 43 AS col2
----
-774

query I rowsort
SELECT COALESCE ( - 80, ( + 43 ) * + 17 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT + MAX( DISTINCT - ( - 75 ) )
----
75

skipif mysql # not compatible
query I rowsort label-257
SELECT + MAX ( DISTINCT - ( - 75 ) )
----
75

query I rowsort
SELECT - 53 * 78 col0
----
-4134

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT ALL + MIN( DISTINCT + 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL + MIN ( DISTINCT + 95 ) AS col0
----
95

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

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

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

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

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

query I rowsort
SELECT - + 40 * 45 + + 46 AS col1
----
-1754

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT ALL COUNT( * ) * 25 + 93 * MIN( DISTINCT + 42 ) AS col1
----
3931

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL COUNT ( * ) * 25 + 93 * MIN ( DISTINCT + 42 ) AS col1
----
3931

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

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

query I rowsort
SELECT + 49 * - 66 * 69 AS col2
----
-223146

query I rowsort
SELECT ALL + 52 + - + 56
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-268
SELECT ALL + 19 + + 94 * 63 DIV + COUNT( * ) AS col0
----
5941

skipif mysql # not compatible
query I rowsort label-268
SELECT ALL + 19 + + 94 * 63 / + COUNT ( * ) AS col0
----
5941

query I rowsort
SELECT - - 13 + - 45
----
-32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT DISTINCT NULLIF ( - - SUM( ALL + 9 ), - 74 ) col2
----
9

skipif mysql # not compatible
query I rowsort label-271
SELECT DISTINCT NULLIF ( - - SUM ( ALL + 9 ), - 74 ) col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT ALL + 58 + 96 * COUNT( * )
----
154

skipif mysql # not compatible
query I rowsort label-272
SELECT ALL + 58 + 96 * COUNT ( * )
----
154

query I rowsort
SELECT DISTINCT - 0 + 79 col2
----
79

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

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

query II rowsort
SELECT ALL 3 AS col1, - 51 * 94 AS col1
----
3
-4794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-276
SELECT + CAST( + + 63 AS SIGNED ) - + 85 col0
----
-22

skipif mysql # not compatible
query I rowsort label-276
SELECT + CAST ( + + 63 AS INTEGER ) - + 85 col0
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-277
SELECT ALL 98, + COUNT( * ) + + ( - + 65 ) + + - 30 DIV 23 AS col2
----
98
-65

skipif mysql # not compatible
query II rowsort label-277
SELECT ALL 98, + COUNT ( * ) + + ( - + 65 ) + + - 30 / 23 AS col2
----
98
-65

query II rowsort
SELECT ALL + 10, 97 * 72 AS col0
----
10
6984

query I rowsort
SELECT DISTINCT 2 * - 22
----
-44

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

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

query II rowsort
SELECT ALL + 45 AS col1, - 40
----
45
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT + 88 * CASE NULLIF ( 3, - + 9 ) WHEN - - 0 THEN NULL WHEN - 61 * COUNT( * ) THEN 24 END * + 96 + + - 57 * - ( + 64 ) * 45 * - - 69 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-282
SELECT + 88 * CASE NULLIF ( 3, - + 9 ) WHEN - - 0 THEN NULL WHEN - 61 * COUNT ( * ) THEN 24 END * + 96 + + - 57 * - ( + 64 ) * 45 * - - 69 + COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT ALL + 61 AS col1, + 93 - - 22 + + + 51 AS col0
----
61
166

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-285
SELECT ALL + ( COUNT( * ) ) * 5 * - - 71 * - + 22 + - + 27, 31 * - + COUNT( * ) * - 60 AS col0
----
-7837
1860

skipif mysql # not compatible
query II rowsort label-285
SELECT ALL + ( COUNT ( * ) ) * 5 * - - 71 * - + 22 + - + 27, 31 * - + COUNT ( * ) * - 60 AS col0
----
-7837
1860

query I rowsort
SELECT ALL 47 + - + 54 AS col2
----
-7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT ALL 67 + - 59 * + 78 * COUNT( * )
----
-4535

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL 67 + - 59 * + 78 * COUNT ( * )
----
-4535

onlyif mysql # aggregate syntax: 
query II rowsort label-289
SELECT DISTINCT - 5 + ( 94 ) + COALESCE ( - + 35, - - COUNT( * ) - + - 72 ) AS col2, - ( + 6 ) + COUNT( * ) col0
----
54
-5

skipif mysql # not compatible
query II rowsort label-289
SELECT DISTINCT - 5 + ( 94 ) + COALESCE ( - + 35, - - COUNT ( * ) - + - 72 ) AS col2, - ( + 6 ) + COUNT ( * ) col0
----
54
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT ALL + + COUNT( DISTINCT 50 ) + - + 44 * - 61 * + 96
----
257665

skipif mysql # not compatible
query I rowsort label-290
SELECT ALL + + COUNT ( DISTINCT 50 ) + - + 44 * - 61 * + 96
----
257665

query II rowsort
SELECT DISTINCT - 87 AS col0, 27 AS col1
----
-87
27

onlyif mysql # DIV for integer division: 
query I rowsort label-292
SELECT - 64 DIV 97 * + NULLIF ( 3, - 42 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-292
SELECT - 64 / 97 * + NULLIF ( 3, - 42 ) AS col0
----
0

query II rowsort
SELECT 75 + - + 1 AS col2, 74
----
74
74

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-295
SELECT DISTINCT - - 65 DIV - SUM( + CAST( + - ( - + 1 ) AS SIGNED ) ) - COUNT( * ) AS col2, + COUNT( + - 70 )
----
-66
1

skipif mysql # not compatible
query II rowsort label-295
SELECT DISTINCT - - 65 / - SUM ( + CAST ( + - ( - + 1 ) AS INTEGER ) ) - COUNT ( * ) AS col2, + COUNT ( + - 70 )
----
-66
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-297
SELECT - 94 * - + SUM( - 8 ) * - + 83 + - CAST( + 55 AS SIGNED ) + - COALESCE ( - 97, + SUM( DISTINCT + 97 ) ) + + 5 AS col0, COALESCE ( - + 48, + 21 * - 64 * + 11 - ( - 0 + + 47 DIV + 62 ) )
----
62463
-48

skipif mysql # not compatible
query II rowsort label-297
SELECT - 94 * - + SUM ( - 8 ) * - + 83 + - CAST ( + 55 AS INTEGER ) + - COALESCE ( - 97, + SUM ( DISTINCT + 97 ) ) + + 5 AS col0, COALESCE ( - + 48, + 21 * - 64 * + 11 - ( - 0 + + 47 / + 62 ) )
----
62463
-48

query II rowsort
SELECT DISTINCT - 28 AS col1, - ( - + 32 ) AS col0
----
-28
32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT DISTINCT + COALESCE ( - 57, + MIN( DISTINCT + 42 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-300
SELECT DISTINCT + COALESCE ( - 57, + MIN ( DISTINCT + 42 ) )
----
-57

query I rowsort
SELECT DISTINCT + - 77 * + 44 AS col1
----
-3388

query I rowsort
SELECT ALL NULLIF ( - 47, 86 + 62 + + 14 )
----
-47

query I rowsort
SELECT 23 + 60 AS col0
----
83

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

skipif mysql # not compatible
query I rowsort label-304
SELECT ALL + + 10 * - 34 + + COUNT ( - - 7 ) - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-305
SELECT DISTINCT + + 85 * + + ( + 60 ) + 82, - COUNT( * ) AS col0
----
5182
-1

skipif mysql # not compatible
query II rowsort label-305
SELECT DISTINCT + + 85 * + + ( + 60 ) + 82, - COUNT ( * ) AS col0
----
5182
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT 87 + - + COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-306
SELECT 87 + - + COUNT ( * ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-307
SELECT ( + 9 ) * + + NULLIF ( + COUNT( * ), + 12 ) AS col2, + 91 * + - ( + - 15 ) + + 63 col2
----
9
1428

skipif mysql # not compatible
query II rowsort label-307
SELECT ( + 9 ) * + + NULLIF ( + COUNT ( * ), + 12 ) AS col2, + 91 * + - ( + - 15 ) + + 63 col2
----
9
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT SUM( - 80 ) + 49 col0
----
-31

skipif mysql # not compatible
query I rowsort label-308
SELECT SUM ( - 80 ) + 49 col0
----
-31

query I rowsort
SELECT 81 + - 5 * - ( + 77 ) + - 67 * 92 + - NULLIF ( - + COALESCE ( 66, + 68 ), + 46 ) AS col0
----
-5632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-310
SELECT 90 * + 51, CAST( NULL AS SIGNED ) + + MIN( DISTINCT + 71 ) col0, 66 col2
----
4590
NULL
66

skipif mysql # not compatible
query III rowsort label-310
SELECT 90 * + 51, CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT + 71 ) col0, 66 col2
----
4590
NULL
66

query I rowsort
SELECT ALL 43 * - 73
----
-3139

query I rowsort
SELECT 97 + - 62 + - 71 col1
----
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-313
SELECT 80 DIV - 32 AS col1, - 91
----
-2
-91

skipif mysql # not compatible
query II rowsort label-313
SELECT 80 / - 32 AS col1, - 91
----
-2
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-314
SELECT 78 DIV - - 66 + ( + 75 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-314
SELECT 78 / - - 66 + ( + 75 ) AS col0
----
76

query II rowsort
SELECT ALL 7 * 34 * + 86 AS col0, 12 * + COALESCE ( 58, - 48 * - 39 - 30 ) * - 15 * + + 12 AS col0
----
20468
-125280

query I rowsort
SELECT ( + 69 ) + 70 * - 41
----
-2801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-317
SELECT DISTINCT COALESCE ( 57, + COUNT( * ) DIV 87 ) * + 78 AS col0
----
4446

skipif mysql # not compatible
query I rowsort label-317
SELECT DISTINCT COALESCE ( 57, + COUNT ( * ) / 87 ) * + 78 AS col0
----
4446

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-318
SELECT ALL COALESCE ( 4, NULLIF ( - 69, 96 - SUM( - 20 ) ) - - 91 - + 20 + + + 44 DIV 27 DIV + 66 * + + CASE + 34 WHEN + - COUNT( * ) THEN NULL ELSE - 5 END * 21 ) + 12 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL COALESCE ( 4, NULLIF ( - 69, 96 - SUM ( - 20 ) ) - - 91 - + 20 + + + 44 / 27 / + 66 * + + CASE + 34 WHEN + - COUNT ( * ) THEN NULL ELSE - 5 END * 21 ) + 12 AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-319
SELECT DISTINCT CAST( - 77 AS SIGNED ) + 35
----
-42

skipif mysql # not compatible
query I rowsort label-319
SELECT DISTINCT CAST ( - 77 AS INTEGER ) + 35
----
-42

query I rowsort
SELECT 53 * 28 AS col2
----
1484

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-321
SELECT + NULLIF ( + CAST( NULL AS DECIMAL ), + - 0 * COUNT( * ) / + AVG ( + 29 ) ) * 69 AS col2, ( 31 )
----
NULL
31

skipif mysql # not compatible
query II rowsort label-321
SELECT + NULLIF ( + CAST ( NULL AS REAL ), + - 0 * COUNT ( * ) / + AVG ( + 29 ) ) * 69 AS col2, ( 31 )
----
NULL
31

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT ALL - + MIN( DISTINCT + + ( + 95 ) )
----
-95

skipif mysql # not compatible
query I rowsort label-322
SELECT ALL - + MIN ( DISTINCT + + ( + 95 ) )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-323
SELECT CASE + 68 WHEN CAST( NULL AS SIGNED ) / - MAX( - 92 ) THEN NULL WHEN 97 + - + 49 THEN - COUNT( * ) + - 16 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-323
SELECT CASE + 68 WHEN CAST ( NULL AS INTEGER ) / - MAX ( - 92 ) THEN NULL WHEN 97 + - + 49 THEN - COUNT ( * ) + - 16 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL 88 + 44 + - + 82 AS col0, 85 AS col0
----
50
85

query I rowsort
SELECT 30 - + 75
----
-45

query I rowsort
SELECT + COALESCE ( + 63, + NULLIF ( - + 88, 6 * + 6 ) )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-327
SELECT 20 * 25 * + - CAST( - - 10 AS SIGNED ) * - 59 + NULLIF ( - CAST( - + ( + COALESCE ( - - CASE + - COUNT( * ) WHEN - + 2 * + ( + - 31 ) THEN NULL ELSE + 96 END, - 96 * - 70, 21 * - 34 ) ) AS SIGNED ), - CAST( NULL AS SIGNED ) ) + + 59 * 0 AS col0
----
295096

skipif mysql # not compatible
query I rowsort label-327
SELECT 20 * 25 * + - CAST ( - - 10 AS INTEGER ) * - 59 + NULLIF ( - CAST ( - + ( + COALESCE ( - - CASE + - COUNT ( * ) WHEN - + 2 * + ( + - 31 ) THEN NULL ELSE + 96 END, - 96 * - 70, 21 * - 34 ) ) AS INTEGER ), - CAST ( NULL AS INTEGER ) ) + + 59 * 0 AS col0
----
295096

query I rowsort
SELECT ALL ( + 96 ) * + - 26 + - 97
----
-2593

query I rowsort
SELECT DISTINCT - 24 + ( - 52 )
----
-76

onlyif mysql # aggregate syntax: 
query III rowsort label-330
SELECT + - COUNT( ALL + 22 ), - 75 + - 93 + 6 AS col0, - - 49 + - 11 * 19 * + 44 col2
----
-1
-162
-9147

skipif mysql # not compatible
query III rowsort label-330
SELECT + - COUNT ( ALL + 22 ), - 75 + - 93 + 6 AS col0, - - 49 + - 11 * 19 * + 44 col2
----
-1
-162
-9147

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

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT DISTINCT + - 25 + - - 89 * - + 46 + + CASE + + 64 WHEN + SUM( + 99 ) THEN NULL ELSE + COUNT( * ) - - 65 END AS col0
----
-4053

skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT + - 25 + - - 89 * - + 46 + + CASE + + 64 WHEN + SUM ( + 99 ) THEN NULL ELSE + COUNT ( * ) - - 65 END AS col0
----
-4053

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-333
SELECT 99 * 9 * + 92 * COALESCE ( CAST( + 76 AS SIGNED ), + + 14, - COALESCE ( + 36, - + 47 ) * + + 9 + ( + - 44 ) * + 25 - - + CAST( + COUNT( * ) AS SIGNED ) * + 7 DIV 79 ) + 92 DIV - SUM( DISTINCT 28 ) AS col2
----
6229869

skipif mysql # not compatible
query I rowsort label-333
SELECT 99 * 9 * + 92 * COALESCE ( CAST ( + 76 AS INTEGER ), + + 14, - COALESCE ( + 36, - + 47 ) * + + 9 + ( + - 44 ) * + 25 - - + CAST ( + COUNT ( * ) AS INTEGER ) * + 7 / 79 ) + 92 / - SUM ( DISTINCT 28 ) AS col2
----
6229869

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-334
SELECT + 20 - - 92 AS col1, 18 / 85 * 62 - + + CAST( NULL AS SIGNED ) AS col1
----
112
NULL

skipif mysql # not compatible
query II rowsort label-334
SELECT + 20 - - 92 AS col1, 18 / 85 * 62 - + + CAST ( NULL AS INTEGER ) AS col1
----
112
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT DISTINCT + COALESCE ( - COUNT( * ), NULLIF ( - 65, + 79 + - 98 + + + ( + AVG ( DISTINCT + 4 ) ) + - 62 + - 61 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-335
SELECT DISTINCT + COALESCE ( - COUNT ( * ), NULLIF ( - 65, + 79 + - 98 + + + ( + AVG ( DISTINCT + 4 ) ) + - 62 + - 61 ) ) AS col2
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-337
SELECT 92 DIV - 60 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-337
SELECT 92 / - 60 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT 22 * - 52 * COUNT( * ) AS col2
----
-1144

skipif mysql # not compatible
query I rowsort label-338
SELECT 22 * - 52 * COUNT ( * ) AS col2
----
-1144

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

onlyif mysql # aggregate syntax: 
query II rowsort label-340
SELECT ALL + + 83 - + COUNT( * ) AS col1, NULLIF ( - 44, - + COUNT( * ) + - - 72 ) col0
----
82
-44

skipif mysql # not compatible
query II rowsort label-340
SELECT ALL + + 83 - + COUNT ( * ) AS col1, NULLIF ( - 44, - + COUNT ( * ) + - - 72 ) col0
----
82
-44

query I rowsort
SELECT - 87 * - 10
----
870

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-342
SELECT ALL - 76 DIV + - COUNT( * ) AS col1, - 75 + + COUNT( * ) + 84
----
76
10

skipif mysql # not compatible
query II rowsort label-342
SELECT ALL - 76 / + - COUNT ( * ) AS col1, - 75 + + COUNT ( * ) + 84
----
76
10

query I rowsort
SELECT 71 + - 84
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-344
SELECT DISTINCT + COALESCE ( + + 9, 60 + - + 62 + - + 62 + + 64 + - - 24 * - COUNT( * ) * CAST( + - 38 AS SIGNED ) ) col0
----
9

skipif mysql # not compatible
query I rowsort label-344
SELECT DISTINCT + COALESCE ( + + 9, 60 + - + 62 + - + 62 + + 64 + - - 24 * - COUNT ( * ) * CAST ( + - 38 AS INTEGER ) ) col0
----
9

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

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL + 82 * + 8 / COUNT ( * ) AS col1
----
656

query I rowsort
SELECT 81 * - + 12
----
-972

query II rowsort
SELECT - 50 AS col2, 22
----
-50
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-348
SELECT ALL - 55 * + + COALESCE ( CAST( + 36 AS SIGNED ), - 19 )
----
-1980

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL - 55 * + + COALESCE ( CAST ( + 36 AS INTEGER ), - 19 )
----
-1980

query I rowsort
SELECT 71 * - 53 AS col1
----
-3763

query I rowsort
SELECT 9 - + 92 * 38 - - 39 AS col1
----
-3448

onlyif mysql # aggregate syntax: 
query III rowsort label-351
SELECT - 61 col0, COUNT( * ) * - SUM( DISTINCT + 58 ) * 96 - - 31 - 95 + 7 * + 3 * SUM( ALL - - 42 ), + 65 * - + 51 col0
----
-61
-4750
-3315

skipif mysql # not compatible
query III rowsort label-351
SELECT - 61 col0, COUNT ( * ) * - SUM ( DISTINCT + 58 ) * 96 - - 31 - 95 + 7 * + 3 * SUM ( ALL - - 42 ), + 65 * - + 51 col0
----
-61
-4750
-3315

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

onlyif mysql # DIV for integer division: 
query II rowsort label-353
SELECT 25 * + 80 * 5, + 59 DIV - 36 AS col1
----
10000
-1

skipif mysql # not compatible
query II rowsort label-353
SELECT 25 * + 80 * 5, + 59 / - 36 AS col1
----
10000
-1

query I rowsort
SELECT 96 * - + 65
----
-6240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-355
SELECT DISTINCT COALESCE ( - 72, - 58 * 45 * + CAST( NULL AS SIGNED ) * - + COUNT( * ) ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-355
SELECT DISTINCT COALESCE ( - 72, - 58 * 45 * + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT ALL + MIN( - 68 ) + - 85 AS col0
----
-153

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL + MIN ( - 68 ) + - 85 AS col0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT ALL + COUNT( * ) + 75
----
76

skipif mysql # not compatible
query I rowsort label-357
SELECT ALL + COUNT ( * ) + 75
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-358
SELECT - 42 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-358
SELECT - 42 / + 72
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-359
SELECT ALL - COUNT( NULLIF ( - + 30, 89 * 89 ) ) * - - 18 + - ( - 61 ) AS col0, + ( - + ( + MAX( ALL - - 21 ) ) )
----
43
-21

skipif mysql # not compatible
query II rowsort label-359
SELECT ALL - COUNT ( NULLIF ( - + 30, 89 * 89 ) ) * - - 18 + - ( - 61 ) AS col0, + ( - + ( + MAX ( ALL - - 21 ) ) )
----
43
-21

query I rowsort
SELECT ALL - COALESCE ( 51, + COALESCE ( + 36, 47 + + - 6 ) ) * - 79 + - + 11 AS col1
----
4018

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-361
SELECT DISTINCT + CAST( 39 AS SIGNED ) col1
----
39

skipif mysql # not compatible
query I rowsort label-361
SELECT DISTINCT + CAST ( 39 AS INTEGER ) col1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-362
SELECT ALL - 20 DIV + 11
----
-1

skipif mysql # not compatible
query I rowsort label-362
SELECT ALL - 20 / + 11
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-363
SELECT + 12 DIV CAST( - 3 AS SIGNED ) * 99 + 89
----
-307

skipif mysql # not compatible
query I rowsort label-363
SELECT + 12 / CAST ( - 3 AS INTEGER ) * 99 + 89
----
-307

query I rowsort
SELECT DISTINCT - 14 * + 43 * 30 col1
----
-18060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-365
SELECT - - 94 * - + 19 + + + 42 + - 50 * CAST( 46 AS SIGNED ) * + - 99 + + CASE MIN( ALL - 43 ) WHEN + CAST( - - 37 AS DECIMAL ) * + + 39 THEN NULL WHEN 60 THEN NULL ELSE 92 * 48 - - 84 END + 73 * + CAST( COUNT( * ) AS SIGNED ) * 62
----
234982

skipif mysql # not compatible
query I rowsort label-365
SELECT - - 94 * - + 19 + + + 42 + - 50 * CAST ( 46 AS INTEGER ) * + - 99 + + CASE MIN ( ALL - 43 ) WHEN + CAST ( - - 37 AS REAL ) * + + 39 THEN NULL WHEN 60 THEN NULL ELSE 92 * 48 - - 84 END + 73 * + CAST ( COUNT ( * ) AS INTEGER ) * 62
----
234982

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-366
SELECT - COUNT( * ) DIV + 24 + + 70 + - + 60 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-366
SELECT - COUNT ( * ) / + 24 + + 70 + - + 60 AS col1
----
10

query I rowsort
SELECT + - 30 * + + 14 - + ( - 64 ) + - 0 AS col0
----
-356

onlyif mysql # aggregate syntax: 
query II rowsort label-368
SELECT ALL + + 94 col1, COUNT( * ) + COUNT( * ) col1
----
94
2

skipif mysql # not compatible
query II rowsort label-368
SELECT ALL + + 94 col1, COUNT ( * ) + COUNT ( * ) col1
----
94
2

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-371
SELECT 35 * - 32 + 65 DIV - NULLIF ( ( + - 52 ), 29 + + 10 ) + - - 91 col2
----
-1028

skipif mysql # not compatible
query I rowsort label-371
SELECT 35 * - 32 + 65 / - NULLIF ( ( + - 52 ), 29 + + 10 ) + - - 91 col2
----
-1028

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-373
SELECT + + 63 col1, COALESCE ( 21, CAST( NULL AS SIGNED ) )
----
63
21

skipif mysql # not compatible
query II rowsort label-373
SELECT + + 63 col1, COALESCE ( 21, CAST ( NULL AS INTEGER ) )
----
63
21

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-375
SELECT DISTINCT 20 - COUNT( * ) * + 58 + - + COUNT( * ) * - 52 * + + CAST( + 25 AS SIGNED ) + ( 41 ) AS col0
----
1303

skipif mysql # not compatible
query I rowsort label-375
SELECT DISTINCT 20 - COUNT ( * ) * + 58 + - + COUNT ( * ) * - 52 * + + CAST ( + 25 AS INTEGER ) + ( 41 ) AS col0
----
1303

query II rowsort
SELECT - + 70 AS col2, - 26 + + 76 * 61 AS col2
----
-70
4610

onlyif mysql # DIV for integer division: 
query I rowsort label-377
SELECT ALL - 19 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL - 19 / + 85
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-379
SELECT ALL MIN( + 25 ) col1, SUM( 71 ) * 38 - + 41 * - 14 DIV 1
----
25
3272

skipif mysql # not compatible
query II rowsort label-379
SELECT ALL MIN ( + 25 ) col1, SUM ( 71 ) * 38 - + 41 * - 14 / 1
----
25
3272

query I rowsort
SELECT DISTINCT CASE + 35 WHEN - 2 * 71 THEN NULL ELSE - 89 END AS col0
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-381
SELECT + COUNT( * ) DIV 70 DIV - 59 * - 16, - 93 * 93 AS col1
----
0
-8649

skipif mysql # not compatible
query II rowsort label-381
SELECT + COUNT ( * ) / 70 / - 59 * - 16, - 93 * 93 AS col1
----
0
-8649

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT - 26 * - ( + + CASE 45 WHEN 89 * - - MIN( DISTINCT 31 ) * + 31 + + + 2 - - + COALESCE ( + + MAX( ALL - - 80 ), 59 ) * 10 + - 86 - + + 29 / + ( + + 17 ) THEN - 19 WHEN - 30 * ( 14 / 24 ) + ( 60 ) * 19 THEN - 62 * 23 ELSE - COUNT( + 94 ) END )
----
-26

skipif mysql # not compatible
query I rowsort label-382
SELECT - 26 * - ( + + CASE 45 WHEN 89 * - - MIN ( DISTINCT 31 ) * + 31 + + + 2 - - + COALESCE ( + + MAX ( ALL - - 80 ), 59 ) * 10 + - 86 - + + 29 / + ( + + 17 ) THEN - 19 WHEN - 30 * ( 14 / 24 ) + ( 60 ) * 19 THEN - 62 * 23 ELSE - COUNT ( + 94 ) END )
----
-26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT + 96 * - - MIN( 7 ) * + - COUNT( * ) + 3 * - 90 col0
----
-942

skipif mysql # not compatible
query I rowsort label-384
SELECT + 96 * - - MIN ( 7 ) * + - COUNT ( * ) + 3 * - 90 col0
----
-942

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-387
SELECT + ( 35 ) + + - COALESCE ( - 8, + 12 ) DIV - + 42
----
35

skipif mysql # not compatible
query I rowsort label-387
SELECT + ( 35 ) + + - COALESCE ( - 8, + 12 ) / - + 42
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-388
SELECT DISTINCT + 6 / CAST( NULL AS SIGNED ) * + 6 * + - 46 AS col1, + 68 AS col1
----
NULL
68

skipif mysql # not compatible
query II rowsort label-388
SELECT DISTINCT + 6 / CAST ( NULL AS INTEGER ) * + 6 * + - 46 AS col1, + 68 AS col1
----
NULL
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-389
SELECT ALL COALESCE ( - + 47, + 84 * 27 + - 15 * + + 38 DIV + 97, + 95 + - CASE - 80 WHEN - ( CAST( NULL AS SIGNED ) ) THEN NULL WHEN 35 THEN 94 DIV - 9 ELSE NULL END, - ( - 82 ) * SUM( ALL 40 ) )
----
-47

skipif mysql # not compatible
query I rowsort label-389
SELECT ALL COALESCE ( - + 47, + 84 * 27 + - 15 * + + 38 / + 97, + 95 + - CASE - 80 WHEN - ( CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 35 THEN 94 / - 9 ELSE NULL END, - ( - 82 ) * SUM ( ALL 40 ) )
----
-47

query I rowsort
SELECT + 66 + + 78
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-391
SELECT ALL 72 + - + 6 + + - 8 / - COALESCE ( 49, 88, + COUNT( * ) ) * + CAST( NULL AS SIGNED ) * - 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-391
SELECT ALL 72 + - + 6 + + - 8 / - COALESCE ( 49, 88, + COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) * - 81 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-392
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 97 + + 29 - 54 + + + 49 * + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 97 + + 29 - 54 + + + 49 * + 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT DISTINCT - 7 * - + SUM( ALL + - NULLIF ( - 51, + 29 ) )
----
357

skipif mysql # not compatible
query I rowsort label-393
SELECT DISTINCT - 7 * - + SUM ( ALL + - NULLIF ( - 51, + 29 ) )
----
357

query I rowsort
SELECT ALL + 80 + + 85 * 80
----
6880

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-398
SELECT ALL - COUNT( * ) DIV - + 23 - COUNT( * ) * + - COUNT( 29 ) + - MAX( - 17 ) * + ( + 70 ), COALESCE ( - - 12, - COUNT( * ) DIV 93 - - - MIN( + - 50 ) - - SUM( - 83 ) * + 72 + 33 * - 14 ) AS col0
----
1191
12

skipif mysql # not compatible
query II rowsort label-398
SELECT ALL - COUNT ( * ) / - + 23 - COUNT ( * ) * + - COUNT ( 29 ) + - MAX ( - 17 ) * + ( + 70 ), COALESCE ( - - 12, - COUNT ( * ) / 93 - - - MIN ( + - 50 ) - - SUM ( - 83 ) * + 72 + 33 * - 14 ) AS col0
----
1191
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-399
SELECT DISTINCT - 86 * 97 AS col2, 45 DIV - CAST( - NULLIF ( ( 80 ), - 57 + - 90 DIV - + 4 + - - COUNT( * ) + + 59 * 39 + + + 93 DIV - MIN( - 87 ) ) AS SIGNED ) * - 57 + - 22 - - 88 - COALESCE ( - NULLIF ( COUNT( * ), - ( COUNT( * ) ) + - ( - COUNT( * ) ) ) + - 76, - NULLIF ( - 57, + 44 ) * 93 + 53 ) * + ( COUNT( * ) )
----
-8342
143

skipif mysql # not compatible
query II rowsort label-399
SELECT DISTINCT - 86 * 97 AS col2, 45 / - CAST ( - NULLIF ( ( 80 ), - 57 + - 90 / - + 4 + - - COUNT ( * ) + + 59 * 39 + + + 93 / - MIN ( - 87 ) ) AS INTEGER ) * - 57 + - 22 - - 88 - COALESCE ( - NULLIF ( COUNT ( * ), - ( COUNT ( * ) ) + - ( - COUNT ( * ) ) ) + - 76, - NULLIF ( - 57, + 44 ) * 93 + 53 ) * + ( COUNT ( * ) )
----
-8342
143

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

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

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

query I rowsort
SELECT - 46 * - 42 * + 14
----
27048

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-403
SELECT + + 98 DIV + 15 AS col1, COALESCE ( - MAX( - + 99 ), 63 )
----
6
99

skipif mysql # not compatible
query II rowsort label-403
SELECT + + 98 / + 15 AS col1, COALESCE ( - MAX ( - + 99 ), 63 )
----
6
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-404
SELECT DISTINCT + CASE WHEN NOT NULL = - 49 THEN - - NULLIF ( + 37, - 96 + 0 ) * 51 DIV 28 WHEN 84 * - + 68 * 84 * + - 40 > ( + COUNT( * ) ) THEN + 82 ELSE NULL END * COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-404
SELECT DISTINCT + CASE WHEN NOT NULL = - 49 THEN - - NULLIF ( + 37, - 96 + 0 ) * 51 / 28 WHEN 84 * - + 68 * 84 * + - 40 > ( + COUNT ( * ) ) THEN + 82 ELSE NULL END * COUNT ( * )
----
82

query I rowsort
SELECT ALL + 17 * + + 50
----
850

query I rowsort
SELECT DISTINCT - 90 * + 70 col1
----
-6300

query II rowsort
SELECT DISTINCT + ( - + 48 ), + 44 * 76 AS col1
----
-48
3344

query I rowsort
SELECT + 8 - 0
----
8

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

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

query II rowsort
SELECT ALL 47, 15 col1
----
47
15

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT - COALESCE ( - COUNT( * ), - ( - 33 ) )
----
1

skipif mysql # not compatible
query I rowsort label-411
SELECT - COALESCE ( - COUNT ( * ), - ( - 33 ) )
----
1

query I rowsort
SELECT + 2 * + + NULLIF ( + 91, + 79 ) * - + ( 94 ) * + 54
----
-923832

onlyif mysql # DIV for integer division: 
query I rowsort label-413
SELECT ALL 84 + + 15 DIV + 63 * 30 * 62 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL 84 + + 15 / + 63 * 30 * 62 AS col0
----
84

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-415
SELECT ALL 72 + - COUNT( * ) + - 27 + - CAST( CAST( 67 AS SIGNED ) AS SIGNED ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-415
SELECT ALL 72 + - COUNT ( * ) + - 27 + - CAST ( CAST ( 67 AS INTEGER ) AS INTEGER ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT ALL 54 + + 8 + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL 54 + + 8 + COUNT ( * )
----
63

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

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

query I rowsort
SELECT DISTINCT 83 + + - 75
----
8

query I rowsort
SELECT 41 * + 40
----
1640

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

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

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

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT COUNT( * ) - - + 20 * - 38 AS col1
----
-759

skipif mysql # not compatible
query I rowsort label-422
SELECT COUNT ( * ) - - + 20 * - 38 AS col1
----
-759

query I rowsort
SELECT 66 * - 10
----
-660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-424
SELECT ALL + 58 / + MIN( DISTINCT - 12 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL + 58 / + MIN ( DISTINCT - 12 ) * - CAST ( NULL AS INTEGER )
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT - NULLIF ( + + ( + 34 ), 38 )
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-428
SELECT MIN( DISTINCT - NULLIF ( + 73, + 54 + - 47 * - - 89 - - 83 ) ) DIV + + 53 - - 21 + - 70 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-428
SELECT MIN ( DISTINCT - NULLIF ( + 73, + 54 + - 47 * - - 89 - - 83 ) ) / + + 53 - - 21 + - 70 AS col1
----
-50

query I rowsort
SELECT 67 * - 52 + 79
----
-3405

query I rowsort
SELECT - - 35 * NULLIF ( 43, + - 30 ) * - - 68 * + 7 - + 77 * - 37 + ( 81 )
----
719310

query II rowsort
SELECT + 71 AS col1, 31
----
71
31

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT 32 * + 78 + 82 + + COUNT( * ) AS col0
----
2579

skipif mysql # not compatible
query I rowsort label-432
SELECT 32 * + 78 + 82 + + COUNT ( * ) AS col0
----
2579

query II rowsort
SELECT + 55 AS col1, 43 AS col0
----
55
43

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT + ( 20 ) * 86 * + 16 * + - 65 + - COUNT( * )
----
-1788801

skipif mysql # not compatible
query I rowsort label-434
SELECT + ( 20 ) * 86 * + 16 * + - 65 + - COUNT ( * )
----
-1788801

query I rowsort
SELECT 77 + - 58
----
19

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

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

query II rowsort
SELECT ALL - - 6 AS col1, + 59 * 51 AS col0
----
6
3009

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT DISTINCT - CASE MAX( DISTINCT - 65 ) WHEN + + 81 THEN + NULLIF ( 35, + 40 / - + 2 * 49 + ( + CASE - 33 WHEN + 3 + + 29 + + 94 * - - 73 THEN + COUNT( * ) WHEN - 35 THEN NULL END ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-438
SELECT DISTINCT - CASE MAX ( DISTINCT - 65 ) WHEN + + 81 THEN + NULLIF ( 35, + 40 / - + 2 * 49 + ( + CASE - 33 WHEN + 3 + + 29 + + 94 * - - 73 THEN + COUNT ( * ) WHEN - 35 THEN NULL END ) ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( - 20, + 91 * - 89 * - 52 * + - 10 ) AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-440
SELECT DISTINCT + + NULLIF ( + 71, 13 * - ( + ( CAST( - COUNT( - 5 ) AS SIGNED ) ) ) / + + 36 + COUNT( * ) + + - COUNT( * ) * - 12 / 47 * 68 * - + COUNT( * ) + + - 46 ) + NULLIF ( + COALESCE ( - + 16, - COUNT( * ) * + 81, + 68 ), 37 + 65 ) - 15
----
40

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT + + NULLIF ( + 71, 13 * - ( + ( CAST ( - COUNT ( - 5 ) AS INTEGER ) ) ) / + + 36 + COUNT ( * ) + + - COUNT ( * ) * - 12 / 47 * 68 * - + COUNT ( * ) + + - 46 ) + NULLIF ( + COALESCE ( - + 16, - COUNT ( * ) * + 81, + 68 ), 37 + 65 ) - 15
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-441
SELECT + 47 * NULLIF ( - CAST( + 24 AS SIGNED ), - + 46 ) * 56 + + - 8 * 10 * 83
----
-69808

skipif mysql # not compatible
query I rowsort label-441
SELECT + 47 * NULLIF ( - CAST ( + 24 AS INTEGER ), - + 46 ) * 56 + + - 8 * 10 * 83
----
-69808

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-442
SELECT ALL + COUNT( * ) + - ( - 83 ) + + COALESCE ( 87, - COUNT( * ) ) DIV - COUNT( * ) + + 40
----
37

skipif mysql # not compatible
query I rowsort label-442
SELECT ALL + COUNT ( * ) + - ( - 83 ) + + COALESCE ( 87, - COUNT ( * ) ) / - COUNT ( * ) + + 40
----
37

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

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT 19 + COUNT( * ) * + - 37
----
-18

skipif mysql # not compatible
query I rowsort label-444
SELECT 19 + COUNT ( * ) * + - 37
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT ALL - 97 + - + MIN( - 42 ) * - 2 + - 35
----
-216

skipif mysql # not compatible
query I rowsort label-445
SELECT ALL - 97 + - + MIN ( - 42 ) * - 2 + - 35
----
-216

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

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL - 24 * 82 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 9 * - 26
----
-234

query I rowsort
SELECT ALL 13 + + 88
----
101

query I rowsort
SELECT NULLIF ( 10, - 23 ) + - + 13 + - 78 * - 94 * + 96 AS col0
----
703869

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT DISTINCT + 16 - + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-450
SELECT DISTINCT + 16 - + COUNT ( * )
----
15

onlyif mysql # DIV for integer division: 
query II rowsort label-451
SELECT ALL 22 AS col2, - 7 DIV + COALESCE ( 31, 0 ) * 64
----
22
0

skipif mysql # not compatible
query II rowsort label-451
SELECT ALL 22 AS col2, - 7 / + COALESCE ( 31, 0 ) * 64
----
22
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT ( + 93 ) * 33 * + - 43 + - 13 - + + SUM( ALL 9 )
----
-131989

skipif mysql # not compatible
query I rowsort label-453
SELECT ( + 93 ) * 33 * + - 43 + - 13 - + + SUM ( ALL 9 )
----
-131989

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-454
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * + 73 + + - 96 col2
----
-169

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * + 73 + + - 96 col2
----
-169

query I rowsort
SELECT 34 - - + 65 * - 95 + - 86
----
-6227

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT ( SUM( DISTINCT + 94 ) ) * - 15
----
-1410

skipif mysql # not compatible
query I rowsort label-457
SELECT ( SUM ( DISTINCT + 94 ) ) * - 15
----
-1410

query I rowsort
SELECT ALL - 8 * - 11 AS col1
----
88

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

query I rowsort
SELECT + 58 + 50
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-461
SELECT + SUM( - 63 ) / - + CAST( NULL AS SIGNED ) * 98 * + 4 / - NULLIF ( 81, + 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-461
SELECT + SUM ( - 63 ) / - + CAST ( NULL AS INTEGER ) * 98 * + 4 / - NULLIF ( 81, + 40 )
----
NULL

query I rowsort
SELECT 23 * COALESCE ( + 88, + 68 )
----
2024

query I rowsort
SELECT + 71 + + 15
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-464
SELECT 15 DIV COUNT( DISTINCT + 58 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-464
SELECT 15 / COUNT ( DISTINCT + 58 ) AS col0
----
15

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

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

query II rowsort
SELECT + 0 AS col1, 35
----
0
35

query I rowsort
SELECT ALL - 23 * + 38 + - 87 AS col2
----
-961

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT ALL - 58 * + COUNT( * ) + - + COUNT( * ) + + 78
----
19

skipif mysql # not compatible
query I rowsort label-468
SELECT ALL - 58 * + COUNT ( * ) + - + COUNT ( * ) + + 78
----
19

query I rowsort
SELECT + CASE 12 WHEN + 90 THEN - ( ( 39 ) ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT DISTINCT + 7 * - MIN( DISTINCT - 51 )
----
357

skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT + 7 * - MIN ( DISTINCT - 51 )
----
357

query II rowsort
SELECT + 24 AS col2, 99 AS col1
----
24
99

query I rowsort
SELECT - - 96 * + 39
----
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT - 25 * - + MAX( ALL + 67 )
----
1675

skipif mysql # not compatible
query I rowsort label-474
SELECT - 25 * - + MAX ( ALL + 67 )
----
1675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-475
SELECT ALL + 65 + + - CAST( SUM( DISTINCT 55 ) AS SIGNED ) + + 57 + + + 10 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL + 65 + + - CAST ( SUM ( DISTINCT 55 ) AS INTEGER ) + + 57 + + + 10 AS col0
----
77

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

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

query I rowsort
SELECT ALL CASE ( 2 ) WHEN - 71 THEN 47 WHEN + ( - - 47 ) THEN NULL WHEN 82 + + + 96 THEN + 37 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT - 95 - - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-478
SELECT - 95 - - COUNT ( * )
----
-94

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

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

query I rowsort
SELECT + 7 * - + 3
----
-21

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-483
SELECT - 59 DIV MIN( DISTINCT - + 77 ) DIV + 45 * 84 AS col2, - ( + - 8 ) + - COUNT( * )
----
0
7

skipif mysql # not compatible
query II rowsort label-483
SELECT - 59 / MIN ( DISTINCT - + 77 ) / + 45 * 84 AS col2, - ( + - 8 ) + - COUNT ( * )
----
0
7

query I rowsort
SELECT ALL - ( + - 83 ) * - 22 * + 96 AS col2
----
-175296

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

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

query I rowsort
SELECT - 36 + - - 89 + 12 + - 58
----
7

query I rowsort
SELECT DISTINCT - 76 * 54 * 36 AS col0
----
-147744

query III rowsort
SELECT - 12 + 44 AS col2, 47 * - 29 * + - 20 AS col2, 26 col1
----
32
27260
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT ALL - COUNT( DISTINCT 49 ) * + - 7
----
7

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL - COUNT ( DISTINCT 49 ) * + - 7
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-491
SELECT - NULLIF ( - 54, - COUNT( 43 ) / + - 58 * - 16 - + 70 ) * + CAST( NULL AS SIGNED ) AS col2, + NULLIF ( - CAST( - - CASE + AVG ( ALL - - 5 ) WHEN - 72 / 94 THEN - 32 END AS SIGNED ), + - 28 ) * + + ( - + 75 ) - + 57 * + 8 + + COALESCE ( 59, - 2 * ( COUNT( 62 ) ), 38 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-491
SELECT - NULLIF ( - 54, - COUNT ( 43 ) / + - 58 * - 16 - + 70 ) * + CAST ( NULL AS INTEGER ) AS col2, + NULLIF ( - CAST ( - - CASE + AVG ( ALL - - 5 ) WHEN - 72 / 94 THEN - 32 END AS INTEGER ), + - 28 ) * + + ( - + 75 ) - + 57 * + 8 + + COALESCE ( 59, - 2 * ( COUNT ( 62 ) ), 38 )
----
NULL
NULL

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-494
SELECT + 69 * 2 + + COUNT ( * ) AS col2
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-495
SELECT ALL 39 + 39 DIV + 12
----
42

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL 39 + 39 / + 12
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-496
SELECT - COUNT( * ) - - - CAST( 12 AS SIGNED ) DIV - - 66 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-496
SELECT - COUNT ( * ) - - - CAST ( 12 AS INTEGER ) / - - 66 AS col1
----
-1

query I rowsort
SELECT - - 16 + 74 * - 38 AS col2
----
-2796

query I rowsort
SELECT DISTINCT + + 55 + - 37 + + ( 81 )
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-499
SELECT ALL + COUNT( * ) + - + 78 AS col2, 92
----
-77
92

skipif mysql # not compatible
query II rowsort label-499
SELECT ALL + COUNT ( * ) + - + 78 AS col2, 92
----
-77
92

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

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

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

skipif mysql # not compatible
query I rowsort label-501
SELECT DISTINCT + - 65 / ( - COUNT ( * ) ) + - 27 AS col0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-502
SELECT DISTINCT - 33 DIV 63 + 3 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-502
SELECT DISTINCT - 33 / 63 + 3 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT + CASE - 7 WHEN + + 60 THEN + 22 * + COUNT( * ) + - COUNT( * ) * - 12 + - 50 * 84 + - + 59 + + + 33 WHEN - 56 THEN NULL WHEN - - 15 THEN + 13 * + COUNT( ALL 93 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-503
SELECT + CASE - 7 WHEN + + 60 THEN + 22 * + COUNT ( * ) + - COUNT ( * ) * - 12 + - 50 * 84 + - + 59 + + + 33 WHEN - 56 THEN NULL WHEN - - 15 THEN + 13 * + COUNT ( ALL 93 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-504
SELECT ALL - 4 DIV 3 + + 20 AS col1, COUNT( * )
----
19
1

skipif mysql # not compatible
query II rowsort label-504
SELECT ALL - 4 / 3 + + 20 AS col1, COUNT ( * )
----
19
1

onlyif mysql # DIV for integer division: 
query I rowsort label-505
SELECT + NULLIF ( + + 23, + 80 ) DIV + 75 + + - ( 87 ) - + NULLIF ( + 64, 38 ) - 24 * - 71
----
1553

skipif mysql # not compatible
query I rowsort label-505
SELECT + NULLIF ( + + 23, + 80 ) / + 75 + + - ( 87 ) - + NULLIF ( + 64, 38 ) - 24 * - 71
----
1553

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-506
SELECT ALL 41 * + + CAST( NULL AS DECIMAL ) - + + 88
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT + - 97 * COUNT( * ) * - + 33 + 67 + + 56
----
3324

skipif mysql # not compatible
query I rowsort label-507
SELECT + - 97 * COUNT ( * ) * - + 33 + 67 + + 56
----
3324

onlyif mysql # aggregate syntax: 
query II rowsort label-508
SELECT + 85 + 50 AS col1, + 78 + COUNT( * )
----
135
79

skipif mysql # not compatible
query II rowsort label-508
SELECT + 85 + 50 AS col1, + 78 + COUNT ( * )
----
135
79

onlyif mysql # DIV for integer division: 
query I rowsort label-509
SELECT + ( 5 ) DIV 2 col1
----
2

skipif mysql # not compatible
query I rowsort label-509
SELECT + ( 5 ) / 2 col1
----
2

query I rowsort
SELECT ALL + - 80 * + - 2 + 75 AS col2
----
235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-511
SELECT 14 * 51 + 19 + - - CAST( 67 AS SIGNED )
----
800

skipif mysql # not compatible
query I rowsort label-511
SELECT 14 * 51 + 19 + - - CAST ( 67 AS INTEGER )
----
800

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT + - 9 * + 76 + - 88 * + + 12 * 92 - CASE - 86 WHEN 80 * - 15 THEN 56 / + + ( - COUNT( * ) ) END / + 93 / - - 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-512
SELECT + - 9 * + 76 + - 88 * + + 12 * 92 - CASE - 86 WHEN 80 * - 15 THEN 56 / + + ( - COUNT ( * ) ) END / + 93 / - - 87 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-513
SELECT + + 39 + + 57 - + 40 DIV - + 39 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-513
SELECT + + 39 + + 57 - + 40 / - + 39 AS col1
----
97

query I rowsort
SELECT + 26 + + 59 + - 85
----
0

query II rowsort
SELECT + 43 * 62 * 97 AS col2, + 44
----
258602
44

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT DISTINCT - MAX( ( + 24 ) ) * + 65 * 8 col0
----
-12480

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT - MAX ( ( + 24 ) ) * + 65 * 8 col0
----
-12480

query I rowsort
SELECT - 72 + - 99 AS col2
----
-171

query I rowsort
SELECT + 83 * - 11 AS col1
----
-913

query I rowsort
SELECT NULLIF ( - - 85, + ( 70 ) )
----
85

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

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

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

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

query I rowsort
SELECT ALL NULLIF ( - 29, - 81 + 52 - 4 )
----
-29

query I rowsort
SELECT + 53 * 90
----
4770

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT DISTINCT 59 * - SUM( - - 95 ) AS col1
----
-5605

skipif mysql # not compatible
query I rowsort label-524
SELECT DISTINCT 59 * - SUM ( - - 95 ) AS col1
----
-5605

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-526
SELECT ALL - 26 * + 88 * COALESCE ( - 39, ( + 62 ) DIV - 62 )
----
89232

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL - 26 * + 88 * COALESCE ( - 39, ( + 62 ) / - 62 )
----
89232

query I rowsort
SELECT - 23 + 48 * ( - 41 ) AS col2
----
-1991

query I rowsort
SELECT DISTINCT NULLIF ( + 71, 32 * + - ( - 93 ) * 70 + - 2 * - 48 )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-529
SELECT ALL CASE 58 WHEN COUNT( * ) - + - CASE + 1 WHEN + 60 * + - 81 * - CASE + MIN( ALL + CAST( + + 7 AS SIGNED ) ) WHEN - + 28 * + 22 THEN NULL ELSE - ( 19 ) * - SUM( - 48 ) END THEN + 68 END + - + 81 + - 55 / + 81 * - 1 * 51 * - COALESCE ( 8, + 35 + - 16 * 97 ) THEN NULL ELSE 15 * - 45 END AS col1
----
-675

skipif mysql # not compatible
query I rowsort label-529
SELECT ALL CASE 58 WHEN COUNT ( * ) - + - CASE + 1 WHEN + 60 * + - 81 * - CASE + MIN ( ALL + CAST ( + + 7 AS INTEGER ) ) WHEN - + 28 * + 22 THEN NULL ELSE - ( 19 ) * - SUM ( - 48 ) END THEN + 68 END + - + 81 + - 55 / + 81 * - 1 * 51 * - COALESCE ( 8, + 35 + - 16 * 97 ) THEN NULL ELSE 15 * - 45 END AS col1
----
-675

query II rowsort
SELECT - ( NULLIF ( - 41, 33 ) ) + - 54 * 16 col0, + 24 + + 17
----
-823
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-531
SELECT - 83 DIV 64 + + - 57 * 55 * + + ( COUNT( * ) )
----
-3136

skipif mysql # not compatible
query I rowsort label-531
SELECT - 83 / 64 + + - 57 * 55 * + + ( COUNT ( * ) )
----
-3136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-532
SELECT - + 31 DIV - + CASE ( ( COUNT( * ) ) ) WHEN - + COUNT( * ) * + 47 * - 94 + - 71 THEN - + CASE + 22 WHEN CAST( NULL AS SIGNED ) + - 63 + - 45 + 84 + 26 THEN MIN( DISTINCT 21 ) END WHEN + 80 * - - 87 + 28 + + + COUNT( * ) * + + NULLIF ( - 84, COUNT( - 16 ) * - 55 ) DIV 69 THEN NULL ELSE - CASE CASE + 35 WHEN 26 THEN NULL WHEN COUNT( * ) THEN 73 ELSE NULL END WHEN 67 + COUNT( * ) THEN NULL ELSE + 66 END END
----
0

skipif mysql # not compatible
query I rowsort label-532
SELECT - + 31 / - + CASE ( ( COUNT ( * ) ) ) WHEN - + COUNT ( * ) * + 47 * - 94 + - 71 THEN - + CASE + 22 WHEN CAST ( NULL AS INTEGER ) + - 63 + - 45 + 84 + 26 THEN MIN ( DISTINCT 21 ) END WHEN + 80 * - - 87 + 28 + + + COUNT ( * ) * + + NULLIF ( - 84, COUNT ( - 16 ) * - 55 ) / 69 THEN NULL ELSE - CASE CASE + 35 WHEN 26 THEN NULL WHEN COUNT ( * ) THEN 73 ELSE NULL END WHEN 67 + COUNT ( * ) THEN NULL ELSE + 66 END END
----
0

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

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL - 25 + - - COUNT ( * ) AS col2
----
-24

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-535
SELECT - 28 col2, CASE + COUNT( * ) WHEN + + COUNT( * ) THEN + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) END
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-535
SELECT - 28 col2, CASE + COUNT ( * ) WHEN + + COUNT ( * ) THEN + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) END
----
-28
NULL

query I rowsort
SELECT ALL + ( 96 ) + - 89 AS col0
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-537
SELECT DISTINCT + - COUNT( * ) + ( - SUM( DISTINCT 11 ) ) + + + COUNT( * ) DIV + 61 AS col1, - 83 col1
----
-12
-83

skipif mysql # not compatible
query II rowsort label-537
SELECT DISTINCT + - COUNT ( * ) + ( - SUM ( DISTINCT 11 ) ) + + + COUNT ( * ) / + 61 AS col1, - 83 col1
----
-12
-83

query I rowsort
SELECT - 42 + + - 55 * 87
----
-4827

query I rowsort
SELECT DISTINCT - 73 * + 9
----
-657

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

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

query II rowsort
SELECT ALL - 11, - 99 + + - 2 col1
----
-11
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-542
SELECT DISTINCT - MIN( - - NULLIF ( + - 45, + 39 ) ) AS col0, - 13 + + 36 - + NULLIF ( - + COUNT( * ), + 17 ) + + + 27 * - COUNT( * ) * CASE - 19 WHEN + 11 - + COUNT( * ) THEN NULL WHEN - 2 THEN + + 40 * CAST( - 55 AS SIGNED ) WHEN - - CAST( NULL AS DECIMAL ) THEN NULL ELSE + - 99 + - 52 + - - 39 END col0
----
45
3048

skipif mysql # not compatible
query II rowsort label-542
SELECT DISTINCT - MIN ( - - NULLIF ( + - 45, + 39 ) ) AS col0, - 13 + + 36 - + NULLIF ( - + COUNT ( * ), + 17 ) + + + 27 * - COUNT ( * ) * CASE - 19 WHEN + 11 - + COUNT ( * ) THEN NULL WHEN - 2 THEN + + 40 * CAST ( - 55 AS INTEGER ) WHEN - - CAST ( NULL AS REAL ) THEN NULL ELSE + - 99 + - 52 + - - 39 END col0
----
45
3048

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT DISTINCT - - COALESCE ( + 30, + + ( + + 69 ) ) + - - COUNT( * ) * - 78 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-544
SELECT DISTINCT - - COALESCE ( + 30, + + ( + + 69 ) ) + - - COUNT ( * ) * - 78 AS col0
----
-48

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

skipif mysql # not compatible
query I rowsort label-545
SELECT + MIN ( + + 37 )
----
37

query II rowsort
SELECT 56 col2, 46
----
56
46

query I rowsort
SELECT ALL 75 * + + 18
----
1350

onlyif mysql # DIV for integer division: 
query I rowsort label-548
SELECT ALL + + 85 - - 95 + - 17 DIV + + 8
----
178

skipif mysql # not compatible
query I rowsort label-548
SELECT ALL + + 85 - - 95 + - 17 / + + 8
----
178

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

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

query I rowsort
SELECT 25 * - ( + - ( - 48 ) )
----
-1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-551
SELECT + 24 * - + CASE + 79 WHEN - 0 * + - COUNT( * ) * - 63 * - - 21 THEN - 51 WHEN - 1 THEN - - 23 ELSE NULL END + - 8 + CAST( NULL AS SIGNED ) * - COUNT( * ) - - COALESCE ( + COUNT( * ), + - 80 * COUNT( * ) * 67 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-551
SELECT + 24 * - + CASE + 79 WHEN - 0 * + - COUNT ( * ) * - 63 * - - 21 THEN - 51 WHEN - 1 THEN - - 23 ELSE NULL END + - 8 + CAST ( NULL AS INTEGER ) * - COUNT ( * ) - - COALESCE ( + COUNT ( * ), + - 80 * COUNT ( * ) * 67 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT ALL SUM( + 57 ) * - 73 AS col0
----
-4161

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL SUM ( + 57 ) * - 73 AS col0
----
-4161

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

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

query I rowsort
SELECT 24 - + 68 + - + 29 * - + 68 + 41 col0
----
1969

onlyif mysql # DIV for integer division: 
query II rowsort label-555
SELECT ALL 48 DIV + 32 AS col2, + 57
----
1
57

skipif mysql # not compatible
query II rowsort label-555
SELECT ALL 48 / + 32 AS col2, + 57
----
1
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-556
SELECT COALESCE ( + 5, - CAST( - + 17 AS SIGNED ), 4 - - COUNT( * ) ) * + + COUNT( * ) * - 77
----
-385

skipif mysql # not compatible
query I rowsort label-556
SELECT COALESCE ( + 5, - CAST ( - + 17 AS INTEGER ), 4 - - COUNT ( * ) ) * + + COUNT ( * ) * - 77
----
-385

query I rowsort
SELECT 50 * - 14
----
-700

query I rowsort
SELECT ALL 0 * 26
----
0

query I rowsort
SELECT 40 * 43 + + 96 - + 19 * + 2 * - 84
----
5008

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

query I rowsort
SELECT 40 * - 94
----
-3760

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT DISTINCT 6 + - MAX( - 2 ) * + 20 + + 87 + - 77 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-562
SELECT DISTINCT 6 + - MAX ( - 2 ) * + 20 + + 87 + - 77 AS col2
----
56

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

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

query I rowsort
SELECT ALL + 96 + 94 - + - 36
----
226

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-565
SELECT - + CAST( + NULLIF ( MAX( DISTINCT + 31 ), - 81 + - 46 ) AS SIGNED ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-565
SELECT - + CAST ( + NULLIF ( MAX ( DISTINCT + 31 ), - 81 + - 46 ) AS INTEGER ) AS col1
----
-31

query I rowsort
SELECT 67 + 83 - + 48 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT DISTINCT - + 67 + + + 23 + + + 65 + 51 * - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-567
SELECT DISTINCT - + 67 + + + 23 + + + 65 + 51 * - COUNT ( * )
----
-30

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

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

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL - - SUM ( DISTINCT 16 ) + - 25 AS col2
----
-9

query II rowsort
SELECT - ( + 59 ) AS col1, 11
----
-59
11

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT 36 * - SUM( 48 ) * 72 + 31 + + 18
----
-124367

skipif mysql # not compatible
query I rowsort label-571
SELECT 36 * - SUM ( 48 ) * 72 + 31 + + 18
----
-124367

query I rowsort
SELECT ALL + - 25 + 10 + - NULLIF ( - 41, - - 9 )
----
26

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

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

query I rowsort
SELECT - 6 - 71 AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT COUNT( * ) * - 65 * 74
----
-4810

skipif mysql # not compatible
query I rowsort label-575
SELECT COUNT ( * ) * - 65 * 74
----
-4810

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT CASE + + 11 WHEN - 3 THEN NULL ELSE 21 * + 51 + + MAX( - 92 ) END * 27 AS col0
----
26433

skipif mysql # not compatible
query I rowsort label-576
SELECT CASE + + 11 WHEN - 3 THEN NULL ELSE 21 * + 51 + + MAX ( - 92 ) END * 27 AS col0
----
26433

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-577
SELECT DISTINCT + - COALESCE ( - COUNT( * ), - + COUNT( * ), + - 99 / - + COUNT( * ) ) * - CASE - 35 WHEN - ( + 46 ) THEN CAST( NULL AS SIGNED ) * - + 9 + 22 END * - 63 + + - 4 + + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-577
SELECT DISTINCT + - COALESCE ( - COUNT ( * ), - + COUNT ( * ), + - 99 / - + COUNT ( * ) ) * - CASE - 35 WHEN - ( + 46 ) THEN CAST ( NULL AS INTEGER ) * - + 9 + 22 END * - 63 + + - 4 + + 28 AS col0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT 38 * MAX( ALL - 14 )
----
-532

skipif mysql # not compatible
query I rowsort label-580
SELECT 38 * MAX ( ALL - 14 )
----
-532

query I rowsort
SELECT - + 16 * - 78 - - 36 col0
----
1284

query I rowsort
SELECT ALL - NULLIF ( - 10, + 74 * ( - 51 ) ) * - 63 * 63
----
-39690

query I rowsort
SELECT 5 * 94 AS col1
----
470

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT - 58 * - - 62 * COALESCE ( - MIN( - 45 ), + 98, - 90 ) * + 12 + + - 2
----
-1941842

skipif mysql # not compatible
query I rowsort label-584
SELECT - 58 * - - 62 * COALESCE ( - MIN ( - 45 ), + 98, - 90 ) * + 12 + + - 2
----
-1941842

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT SUM( ALL 28 ) * - COUNT( * ) * - + 66 + - 47 AS col0
----
1801

skipif mysql # not compatible
query I rowsort label-586
SELECT SUM ( ALL 28 ) * - COUNT ( * ) * - + 66 + - 47 AS col0
----
1801

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

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

query I rowsort
SELECT ALL 7 * 85 * + - 42 AS col0
----
-24990

query I rowsort
SELECT - 13 * + 56 * + 1 + + - 65
----
-793

query I rowsort
SELECT DISTINCT 59 * 82
----
4838

query I rowsort
SELECT 62 * + - 19 + 26 - - 47
----
-1105

query I rowsort
SELECT 33 * - + 22
----
-726

query I rowsort
SELECT + ( + - 0 ) * 66 + + COALESCE ( + 95, 8 ) col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT ALL 65 + - - 84 * + COUNT( * ) + - - 99 - - 65 + + 65 * + + CASE - 1 WHEN + ( + - 81 ) THEN + + 70 WHEN - 22 - - 35 * - - ( - - 71 ) + - 75 + - - 52 / 93 THEN + 18 END / + 20 + 20 / - 66 - + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL 65 + - - 84 * + COUNT ( * ) + - - 99 - - 65 + + 65 * + + CASE - 1 WHEN + ( + - 81 ) THEN + + 70 WHEN - 22 - - 35 * - - ( - - 71 ) + - 75 + - - 52 / 93 THEN + 18 END / + 20 + 20 / - 66 - + - 51
----
NULL

query II rowsort
SELECT ALL 41 + + ( ( 47 ) ) + + + 49 AS col1, 35 + - 95 * 81
----
137
-7660

query I rowsort
SELECT DISTINCT - 81 + - 31 * - - 61 AS col2
----
-1972

query I rowsort
SELECT DISTINCT + 27 + + + 44 * + 43 * - - 63 AS col1
----
119223

query I rowsort
SELECT 66 + + ( + + 22 ) + + 28
----
116

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-601
SELECT ALL + COUNT( * ) + 82 - + 89 + + - 63 + - 7 * - 15 AS col0, COUNT( * )
----
36
1

skipif mysql # not compatible
query II rowsort label-601
SELECT ALL + COUNT ( * ) + 82 - + 89 + + - 63 + - 7 * - 15 AS col0, COUNT ( * )
----
36
1

query I rowsort
SELECT ALL 45 + - 54 AS col0
----
-9

query I rowsort
SELECT DISTINCT 50 * - 81 + + 55 AS col0
----
-3995

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-604
SELECT + COALESCE ( + SUM( ALL + 52 ), - + MIN( 29 ) ) + + NULLIF ( + COUNT( * ), + + CAST( NULL AS SIGNED ) ) * 8 col1
----
60

skipif mysql # not compatible
query I rowsort label-604
SELECT + COALESCE ( + SUM ( ALL + 52 ), - + MIN ( 29 ) ) + + NULLIF ( + COUNT ( * ), + + CAST ( NULL AS INTEGER ) ) * 8 col1
----
60

query I rowsort
SELECT - - NULLIF ( 1, + + 55 ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-607
SELECT + - 87 + 26 DIV - + MIN( ALL 31 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-607
SELECT + - 87 + 26 / - + MIN ( ALL 31 ) AS col2
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-608
SELECT ALL 7 - + 20 + + 30 DIV 77 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL 7 - + 20 + + 30 / 77 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT - + COALESCE ( - + 52, - + COUNT( * ), - 61 ) col0
----
52

skipif mysql # not compatible
query I rowsort label-609
SELECT - + COALESCE ( - + 52, - + COUNT ( * ), - 61 ) col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT + CASE - 93 WHEN + 60 THEN - CASE + 44 WHEN - 49 * + 0 / + + 45 THEN NULL ELSE - 92 + - + COUNT( * ) + 25 END END + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-610
SELECT + CASE - 93 WHEN + 60 THEN - CASE + 44 WHEN - 49 * + 0 / + + 45 THEN NULL ELSE - 92 + - + COUNT ( * ) + 25 END END + - 82
----
NULL

query I rowsort
SELECT DISTINCT - 90 * - COALESCE ( + ( + 44 ), + 42 * + + 52, COALESCE ( + ( + ( + + 89 ) ), + + 71 * + NULLIF ( 52, + + 75 + 82 ) ) ) AS col1
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT DISTINCT - MIN( + 10 ) * + - 6 + - 10
----
50

skipif mysql # not compatible
query I rowsort label-612
SELECT DISTINCT - MIN ( + 10 ) * + - 6 + - 10
----
50

query I rowsort
SELECT ALL 74 - - + 58 + + 55
----
187

query I rowsort
SELECT ALL NULLIF ( NULLIF ( + 90, + 28 ), + 15 )
----
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT - + 2 * + SUM( - ( + COALESCE ( 91, + 43, - + 19 ) ) )
----
182

skipif mysql # not compatible
query I rowsort label-616
SELECT - + 2 * + SUM ( - ( + COALESCE ( 91, + 43, - + 19 ) ) )
----
182

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-618
SELECT - 73 + - - COALESCE ( + COUNT( * ), 99 * - CASE - COUNT( * ) WHEN + + 68 THEN - + 77 WHEN + 46 + + 99 * - 42 THEN 13 ELSE 71 END + - - 48 + - 87 + 79 + + 89 - - + 45 + 56 DIV COUNT( ALL - 92 ) DIV - 69 ) * - NULLIF ( 75, - COUNT( * ) ) + 38 + - 28 * COUNT( * ) AS col0
----
-138

skipif mysql # not compatible
query I rowsort label-618
SELECT - 73 + - - COALESCE ( + COUNT ( * ), 99 * - CASE - COUNT ( * ) WHEN + + 68 THEN - + 77 WHEN + 46 + + 99 * - 42 THEN 13 ELSE 71 END + - - 48 + - 87 + 79 + + 89 - - + 45 + 56 / COUNT ( ALL - 92 ) / - 69 ) * - NULLIF ( 75, - COUNT ( * ) ) + 38 + - 28 * COUNT ( * ) AS col0
----
-138

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-619
SELECT ALL COUNT( * ) AS col0, 81 DIV + 93
----
1
0

skipif mysql # not compatible
query II rowsort label-619
SELECT ALL COUNT ( * ) AS col0, 81 / + 93
----
1
0

query I rowsort
SELECT + 43 * NULLIF ( - 56, + 94 ) AS col1
----
-2408

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT - COALESCE ( - COUNT( * ), + - 26 + - - 51 ) * + - 39 * CASE - 72 WHEN + + AVG ( ALL 40 ) THEN NULL WHEN - 74 * + 70 - NULLIF ( - 78, 52 * + 78 + - + 68 ) + + 37 THEN 35 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-621
SELECT - COALESCE ( - COUNT ( * ), + - 26 + - - 51 ) * + - 39 * CASE - 72 WHEN + + AVG ( ALL 40 ) THEN NULL WHEN - 74 * + 70 - NULLIF ( - 78, 52 * + 78 + - + 68 ) + + 37 THEN 35 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-622
SELECT DISTINCT + ( + MIN( 70 ) ) * - ( 52 ) * + 33 AS col1, - 66 * + 22
----
-120120
-1452

skipif mysql # not compatible
query II rowsort label-622
SELECT DISTINCT + ( + MIN ( 70 ) ) * - ( 52 ) * + 33 AS col1, - 66 * + 22
----
-120120
-1452

onlyif mysql # DIV for integer division: 
query I rowsort label-623
SELECT ALL - 12 * ( 0 ) * + + 17 * + + 45 DIV - 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-623
SELECT ALL - 12 * ( 0 ) * + + 17 * + + 45 / - 76 AS col0
----
0

query I rowsort
SELECT - 13 * - + 99 * + 44
----
56628

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-625
SELECT + 8 AS col2, + 70 * ( + CAST( NULL AS SIGNED ) ) AS col2, - 11 * + 83 col2
----
8
NULL
-913

skipif mysql # not compatible
query III rowsort label-625
SELECT + 8 AS col2, + 70 * ( + CAST ( NULL AS INTEGER ) ) AS col2, - 11 * + 83 col2
----
8
NULL
-913

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

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

query I rowsort
SELECT ALL + 51 * - 9 + 30 + + - 91 * + 18
----
-2067

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-628
SELECT 76 / + + 73 + + 6 + - - CASE - 8 WHEN 23 * + 60 / + + 31 * - + 31 * + - NULLIF ( - 76, + + MIN( + 9 ) * + + 37 ) / - + 51 THEN CAST( NULL AS SIGNED ) * + 43 / - ( CASE + NULLIF ( + 62, 39 ) WHEN COUNT( * ) + - COALESCE ( + 15, - + 86, - 54 ) * - 74 THEN - 22 + - COUNT( * ) WHEN - 82 THEN NULL END ) + - 2 * ( 12 + COUNT( ALL + 38 ) ) WHEN AVG ( ALL - 46 ) THEN NULL WHEN COUNT( DISTINCT - 27 ) * - COALESCE ( + COUNT( * ), + 52 ) - - 78 * + NULLIF ( CASE 57 WHEN + COUNT( DISTINCT - NULLIF ( 72, 0 ) ) THEN 74 + COUNT( ALL + 24 ) WHEN MAX( 58 ) THEN NULL END, 39 * + 14 + + 71 * 43 ) THEN NULL END * - 62 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-628
SELECT 76 / + + 73 + + 6 + - - CASE - 8 WHEN 23 * + 60 / + + 31 * - + 31 * + - NULLIF ( - 76, + + MIN ( + 9 ) * + + 37 ) / - + 51 THEN CAST ( NULL AS INTEGER ) * + 43 / - ( CASE + NULLIF ( + 62, 39 ) WHEN COUNT ( * ) + - COALESCE ( + 15, - + 86, - 54 ) * - 74 THEN - 22 + - COUNT ( * ) WHEN - 82 THEN NULL END ) + - 2 * ( 12 + COUNT ( ALL + 38 ) ) WHEN AVG ( ALL - 46 ) THEN NULL WHEN COUNT ( DISTINCT - 27 ) * - COALESCE ( + COUNT ( * ), + 52 ) - - 78 * + NULLIF ( CASE 57 WHEN + COUNT ( DISTINCT - NULLIF ( 72, 0 ) ) THEN 74 + COUNT ( ALL + 24 ) WHEN MAX ( 58 ) THEN NULL END, 39 * + 14 + + 71 * 43 ) THEN NULL END * - 62 col2
----
NULL

query II rowsort
SELECT + 17 AS col2, 0 * - 82 * + 45 AS col2
----
17
0

query II rowsort
SELECT + 19, 26 AS col1
----
19
26

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-632
SELECT COALESCE ( 27, + + 42 + 72, COALESCE ( 40, - 43 * 2 DIV - + 39 + - 42 * - + 1 DIV 75 * + MAX( DISTINCT + 23 ) ), - 89 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-632
SELECT COALESCE ( 27, + + 42 + 72, COALESCE ( 40, - 43 * 2 / - + 39 + - 42 * - + 1 / 75 * + MAX ( DISTINCT + 23 ) ), - 89 ) AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-633
SELECT NULLIF ( - - ( + CASE - 44 WHEN - 16 + - + COUNT( * ) THEN - + 85 / + 19 + 89 * + ( - + 53 ) + COUNT( * ) * - - COALESCE ( 58, - 15 + + 83 / - - 44 ) + - 95 END ), COALESCE ( + 21, + 93 ) + + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-633
SELECT NULLIF ( - - ( + CASE - 44 WHEN - 16 + - + COUNT ( * ) THEN - + 85 / + 19 + 89 * + ( - + 53 ) + COUNT ( * ) * - - COALESCE ( 58, - 15 + + 83 / - - 44 ) + - 95 END ), COALESCE ( + 21, + 93 ) + + CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT - 47 - + 80
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-635
SELECT CASE - CASE CAST( NULL AS SIGNED ) WHEN + + CAST( + - COUNT( * ) AS SIGNED ) THEN NULL ELSE - CASE 93 WHEN + 89 THEN NULL ELSE - ( 93 ) END * - - COUNT( * ) + - 7 + 42 * + COALESCE ( - + COUNT( * ), - ( - + ( + 99 ) ) + - 40 * - CASE COUNT( * ) WHEN 70 THEN - 79 * + 37 * - ( - 55 ) + - SUM( 37 - 50 ) END ) / - SUM( + 50 ) END WHEN + 16 THEN 12 - + 66 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-635
SELECT CASE - CASE CAST ( NULL AS INTEGER ) WHEN + + CAST ( + - COUNT ( * ) AS INTEGER ) THEN NULL ELSE - CASE 93 WHEN + 89 THEN NULL ELSE - ( 93 ) END * - - COUNT ( * ) + - 7 + 42 * + COALESCE ( - + COUNT ( * ), - ( - + ( + 99 ) ) + - 40 * - CASE COUNT ( * ) WHEN 70 THEN - 79 * + 37 * - ( - 55 ) + - SUM ( 37 - 50 ) END ) / - SUM ( + 50 ) END WHEN + 16 THEN 12 - + 66 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT ALL + 30 AS col0, - 77
----
30
-77

query I rowsort
SELECT + 33 * 77 * 23 * - + 85 - - + 1
----
-4967654

query I rowsort
SELECT ALL 46 * - 33 + ( - 68 ) AS col2
----
-1586

query II rowsort
SELECT + 85 AS col2, - 53 AS col2
----
85
-53

query II rowsort
SELECT ALL + 37, 46 * - 34 AS col2
----
37
-1564

query II rowsort
SELECT ALL + + 56 AS col0, + 91 + - 65 + 91 + - 18 AS col2
----
56
99

query I rowsort
SELECT - + 8 * - 48 AS col1
----
384

onlyif mysql # aggregate syntax: 
query II rowsort label-643
SELECT - - 60 AS col2, COUNT( ALL - 40 )
----
60
1

skipif mysql # not compatible
query II rowsort label-643
SELECT - - 60 AS col2, COUNT ( ALL - 40 )
----
60
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT ALL + NULLIF ( - 35, + + COUNT( * ) ) * 30 * - + COUNT( * ) - NULLIF ( 39, COUNT( * ) * + NULLIF ( ( + COALESCE ( MIN( - + 14 ), - 67, - 32 ) ), - 39 ) + + - 60 + + 79 ) - 89 * + 95
----
-7444

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL + NULLIF ( - 35, + + COUNT ( * ) ) * 30 * - + COUNT ( * ) - NULLIF ( 39, COUNT ( * ) * + NULLIF ( ( + COALESCE ( MIN ( - + 14 ), - 67, - 32 ) ), - 39 ) + + - 60 + + 79 ) - 89 * + 95
----
-7444

onlyif mysql # DIV for integer division: 
query I rowsort label-646
SELECT - 66 * 85 * - 7 + + 96 + - 70 DIV - 57 AS col0
----
39367

skipif mysql # not compatible
query I rowsort label-646
SELECT - 66 * 85 * - 7 + + 96 + - 70 / - 57 AS col0
----
39367

query II rowsort
SELECT + 35 * 21, 54 AS col0
----
735
54

query II rowsort
SELECT - - 37 AS col0, + 25 * 33 * - - 10 + + + 47 AS col1
----
37
8297

query I rowsort
SELECT - 93 + + 74 AS col1
----
-19

query I rowsort
SELECT ALL + NULLIF ( - 37, + 96 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT - SUM( - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-651
SELECT - SUM ( - 29 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-652
SELECT ALL - NULLIF ( + - 14, CASE - - 50 WHEN - - 14 * + + 14 / 45 + 50 + + 42 / 14 / - - ( + 47 ) THEN NULL ELSE + 60 * 28 * + ( - 85 ) + - 32 END ) * - 39 + + 50 * - 57 + + + CAST( - 64 AS SIGNED ) + - ( + + 9 ) * + 65 + + + NULLIF ( CASE WHEN ( COALESCE ( COUNT( * ), 71, - MIN( DISTINCT 62 ), 58 ) ) IS NULL THEN + 21 WHEN NOT + COUNT( * ) IS NOT NULL THEN NULL ELSE NULL END, COUNT( * ) ) + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-652
SELECT ALL - NULLIF ( + - 14, CASE - - 50 WHEN - - 14 * + + 14 / 45 + 50 + + 42 / 14 / - - ( + 47 ) THEN NULL ELSE + 60 * 28 * + ( - 85 ) + - 32 END ) * - 39 + + 50 * - 57 + + + CAST ( - 64 AS INTEGER ) + - ( + + 9 ) * + 65 + + + NULLIF ( CASE WHEN ( COALESCE ( COUNT ( * ), 71, - MIN ( DISTINCT 62 ), 58 ) ) IS NULL THEN + 21 WHEN NOT + COUNT ( * ) IS NOT NULL THEN NULL ELSE NULL END, COUNT ( * ) ) + 65 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-653
SELECT + - 31 DIV + CAST( 73 AS SIGNED ) + - COALESCE ( - 60, + 11, - - 83, + 11 ) * - - 57
----
3420

skipif mysql # not compatible
query I rowsort label-653
SELECT + - 31 / + CAST ( 73 AS INTEGER ) + - COALESCE ( - 60, + 11, - - 83, + 11 ) * - - 57
----
3420

query I rowsort
SELECT - 68 + - - 96
----
28

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

skipif mysql # not compatible
query I rowsort label-655
SELECT + COUNT ( * ) * + SUM ( DISTINCT - 98 ) AS col2
----
-98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT - 82 * - 48 + COUNT( DISTINCT 35 )
----
3937

skipif mysql # not compatible
query I rowsort label-657
SELECT - 82 * - 48 + COUNT ( DISTINCT 35 )
----
3937

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-659
SELECT DISTINCT + 18 * + CASE + AVG ( - + 20 ) WHEN - + 87 THEN NULL ELSE - 25 DIV + MAX( ALL 58 ) + - CAST( + 65 AS SIGNED ) END + - ( COUNT( * ) ) col0
----
-1171

skipif mysql # not compatible
query I rowsort label-659
SELECT DISTINCT + 18 * + CASE + AVG ( - + 20 ) WHEN - + 87 THEN NULL ELSE - 25 / + MAX ( ALL 58 ) + - CAST ( + 65 AS INTEGER ) END + - ( COUNT ( * ) ) col0
----
-1171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-660
SELECT + 61 + - COUNT( ALL - ( 84 ) ) + + 48 * + - CAST( - ( NULLIF ( - 92, + 22 * - COUNT( * ) ) ) AS SIGNED ) * + 93 * + 68 + - COUNT( * ) + - 29 * + + 64
----
-27928581

skipif mysql # not compatible
query I rowsort label-660
SELECT + 61 + - COUNT ( ALL - ( 84 ) ) + + 48 * + - CAST ( - ( NULLIF ( - 92, + 22 * - COUNT ( * ) ) ) AS INTEGER ) * + 93 * + 68 + - COUNT ( * ) + - 29 * + + 64
----
-27928581

onlyif mysql # aggregate syntax: 
query II rowsort label-661
SELECT + COUNT( * ) + - 17 AS col1, - 4 * 47
----
-16
-188

skipif mysql # not compatible
query II rowsort label-661
SELECT + COUNT ( * ) + - 17 AS col1, - 4 * 47
----
-16
-188

query I rowsort
SELECT ALL ( + 36 ) * + 22
----
792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-663
SELECT + 13 + - SUM( ALL - + CAST( - - NULLIF ( + 19, 74 ) AS SIGNED ) )
----
32

skipif mysql # not compatible
query I rowsort label-663
SELECT + 13 + - SUM ( ALL - + CAST ( - - NULLIF ( + 19, 74 ) AS INTEGER ) )
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-664
SELECT ALL 25 + + - 21 + - - 96 DIV - 95 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL 25 + + - 21 + - - 96 / - 95 AS col2
----
3

query I rowsort
SELECT + 89 * + 40 AS col0
----
3560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-666
SELECT 71 DIV + MAX( 10 ) - - 62
----
69

skipif mysql # not compatible
query I rowsort label-666
SELECT 71 / + MAX ( 10 ) - - 62
----
69

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-668
SELECT + AVG ( + - ( + 74 ) ) + - 86 * + - CAST( NULL AS SIGNED ) AS col2, COUNT( * ) + - + CASE - 68 WHEN - 66 THEN + + 21 WHEN - SUM( DISTINCT - 28 ) THEN NULL END + 12 * + + 46
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-668
SELECT + AVG ( + - ( + 74 ) ) + - 86 * + - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) + - + CASE - 68 WHEN - 66 THEN + + 21 WHEN - SUM ( DISTINCT - 28 ) THEN NULL END + 12 * + + 46
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT ALL ( - + 56 ) / - 88 * CASE COALESCE ( + AVG ( 49 ), + + 16 ) WHEN + COUNT( * ) * - 62 * - - 35 + - + 83 THEN NULL WHEN + + 57 * + - MAX( DISTINCT - - 79 ) THEN + 98 END + - COUNT( * ) + 99 / 57 * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL ( - + 56 ) / - 88 * CASE COALESCE ( + AVG ( 49 ), + + 16 ) WHEN + COUNT ( * ) * - 62 * - - 35 + - + 83 THEN NULL WHEN + + 57 * + - MAX ( DISTINCT - - 79 ) THEN + 98 END + - COUNT ( * ) + 99 / 57 * 13
----
NULL

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

skipif mysql # not compatible
query I rowsort label-670
SELECT + 54 / - 82
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT + COUNT( * ) * + 81 + - 45 + + - 69 * + COUNT( * ) + - COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-672
SELECT + COUNT ( * ) * + 81 + - 45 + + - 69 * + COUNT ( * ) + - COUNT ( * )
----
-34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-673
SELECT + 55 DIV - + CAST( - 97 AS SIGNED ) + 25
----
25

skipif mysql # not compatible
query I rowsort label-673
SELECT + 55 / - + CAST ( - 97 AS INTEGER ) + 25
----
25

query I rowsort
SELECT ALL - 81 * ( - 75 ) col1
----
6075

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-675
SELECT ALL 73 DIV + 35 + - CAST( 87 AS SIGNED )
----
-85

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL 73 / + 35 + - CAST ( 87 AS INTEGER )
----
-85

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

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

query I rowsort
SELECT + 67 * - + COALESCE ( + ( 86 ), ( 61 ) ) + + 3 + 56 + - 57
----
-5760

onlyif mysql # DIV for integer division: 
query I rowsort label-678
SELECT ALL 92 DIV - 89 - 35 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL 92 / - 89 - 35 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT ALL 82 * + SUM( + - 99 )
----
-8118

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL 82 * + SUM ( + - 99 )
----
-8118

query I rowsort
SELECT DISTINCT - + 94 - + - 55
----
-39

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

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

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

query I rowsort
SELECT 21 * - 14
----
-294

query II rowsort
SELECT ALL + - 52 - + 48 + - NULLIF ( + 80, ( - 30 ) ) * 53 col2, + 94 - - 11
----
-4340
105

query II rowsort
SELECT 44 * - 7 AS col0, + 77 * - + 60
----
-308
-4620

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

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT 21 + - COUNT( DISTINCT - 3 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-687
SELECT 21 + - COUNT ( DISTINCT - 3 ) AS col2
----
20

query I rowsort
SELECT NULLIF ( + 23, 10 + - 49 )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-689
SELECT ALL - + CAST( + NULLIF ( 58, - 2 * + - 40 ) AS SIGNED ) * - 71 + - - COUNT( * ) * - 72 + 19
----
4065

skipif mysql # not compatible
query I rowsort label-689
SELECT ALL - + CAST ( + NULLIF ( 58, - 2 * + - 40 ) AS INTEGER ) * - 71 + - - COUNT ( * ) * - 72 + 19
----
4065

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-691
SELECT - CASE - 3 WHEN + 2 THEN - 36 WHEN COUNT( * ) THEN NULL WHEN 76 THEN + 60 END AS col2, - 27 AS col2
----
NULL
-27

skipif mysql # not compatible
query II rowsort label-691
SELECT - CASE - 3 WHEN + 2 THEN - 36 WHEN COUNT ( * ) THEN NULL WHEN 76 THEN + 60 END AS col2, - 27 AS col2
----
NULL
-27

query I rowsort
SELECT 34 * 10
----
340

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

onlyif mysql # aggregate syntax: 
query II rowsort label-694
SELECT DISTINCT + CASE + - 77 WHEN + 3 THEN NULL WHEN + ( + 20 ) - + + 10 * + COUNT( * ) THEN NULL ELSE 48 END + 2, 45 AS col1
----
50
45

skipif mysql # not compatible
query II rowsort label-694
SELECT DISTINCT + CASE + - 77 WHEN + 3 THEN NULL WHEN + ( + 20 ) - + + 10 * + COUNT ( * ) THEN NULL ELSE 48 END + 2, 45 AS col1
----
50
45

query I rowsort
SELECT 34 * - - 79 * + 17
----
45662

query I rowsort
SELECT 69 + COALESCE ( + 42, - ( + 91 ) ) + - + 32 * + - 3
----
207

query I rowsort
SELECT ALL 48 * - - 72
----
3456

query II rowsort
SELECT 46 AS col1, 59 * 37 + - + 60
----
46
2123

query II rowsort
SELECT - 61 AS col2, 55
----
-61
55

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT ALL 42 + + - SUM( DISTINCT - ( - ( - 51 ) ) ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL 42 + + - SUM ( DISTINCT - ( - ( - 51 ) ) ) AS col1
----
93

query I rowsort
SELECT 59 * 88 col2
----
5192

query II rowsort
SELECT ALL - 94 AS col0, + 31
----
-94
31

onlyif mysql # aggregate syntax: 
query II rowsort label-703
SELECT DISTINCT 77 - + COUNT( * ) * - 64 AS col1, 85
----
141
85

skipif mysql # not compatible
query II rowsort label-703
SELECT DISTINCT 77 - + COUNT ( * ) * - 64 AS col1, 85
----
141
85

query I rowsort
SELECT DISTINCT 88 * - 40 col1
----
-3520

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT ALL 12 - 1 + + + COUNT( * ) * - - 49
----
60

skipif mysql # not compatible
query I rowsort label-705
SELECT ALL 12 - 1 + + + COUNT ( * ) * - - 49
----
60

query I rowsort
SELECT 84 * - 57 AS col1
----
-4788

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-707
SELECT DISTINCT 41 - COALESCE ( CASE + + SUM( + 71 ) WHEN + 78 THEN NULL WHEN + 61 THEN - 56 * 21 WHEN + ( + + COUNT( * ) ) DIV + 95 THEN - 80 * + 3 DIV 79 - - ( + ( 50 ) ) + ( - 28 ) END, + COUNT( * ), + 77 ) DIV + ( - 20 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT 41 - COALESCE ( CASE + + SUM ( + 71 ) WHEN + 78 THEN NULL WHEN + 61 THEN - 56 * 21 WHEN + ( + + COUNT ( * ) ) / + 95 THEN - 80 * + 3 / 79 - - ( + ( 50 ) ) + ( - 28 ) END, + COUNT ( * ), + 77 ) / + ( - 20 ) AS col0
----
41

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

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

query I rowsort
SELECT - ( + 65 ) * 41 + - 54 + COALESCE ( + - 93, + 94 ) AS col2
----
-2812

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

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

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

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

query II rowsort
SELECT 20 * - - 17 - - 33 AS col1, - 66
----
373
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT 56 * + 10 + + ( + - COUNT( * ) )
----
559

skipif mysql # not compatible
query I rowsort label-713
SELECT 56 * + 10 + + ( + - COUNT ( * ) )
----
559

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-714
SELECT + CASE - 43 WHEN - + MIN( ALL 26 ) THEN - - 38 * 84 ELSE NULL END + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-714
SELECT + CASE - 43 WHEN - + MIN ( ALL 26 ) THEN - - 38 * 84 ELSE NULL END + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-715
SELECT - 84 DIV - 84 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-715
SELECT - 84 / - 84 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-716
SELECT NULLIF ( 73, - CAST( + COALESCE ( - 31, + 39 ) AS SIGNED ) + - COUNT( * ) ) * + 11 + + 49 AS col2
----
852

skipif mysql # not compatible
query I rowsort label-716
SELECT NULLIF ( 73, - CAST ( + COALESCE ( - 31, + 39 ) AS INTEGER ) + - COUNT ( * ) ) * + 11 + + 49 AS col2
----
852

query II rowsort
SELECT 74 AS col2, 41 + - 51
----
74
-10

query I rowsort
SELECT - 11 - - - 57
----
-68

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-720
SELECT 36 DIV 3 DIV + 39 AS col1, - 43 + - 62 + COUNT( * ) AS col1
----
0
-104

skipif mysql # not compatible
query II rowsort label-720
SELECT 36 / 3 / + 39 AS col1, - 43 + - 62 + COUNT ( * ) AS col1
----
0
-104

onlyif mysql # aggregate syntax: 
query II rowsort label-721
SELECT + 45 * 63 * - COUNT( * ) - 14 AS col2, COUNT( * ) * - 86 - - - COUNT( * )
----
-2849
-87

skipif mysql # not compatible
query II rowsort label-721
SELECT + 45 * 63 * - COUNT ( * ) - 14 AS col2, COUNT ( * ) * - 86 - - - COUNT ( * )
----
-2849
-87

query I rowsort
SELECT 69 * - 65 * - 61 AS col0
----
273585

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT DISTINCT 43 + MIN( - 62 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-723
SELECT DISTINCT 43 + MIN ( - 62 ) AS col2
----
-19

query I rowsort
SELECT + 91 + + ( + 93 ) * + - ( + 1 )
----
-2

query I rowsort
SELECT DISTINCT - 98 * + - 78 AS col2
----
7644

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

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

query I rowsort
SELECT 34 + 81 * + - 5 + - 50 + 89 col0
----
-332

query I rowsort
SELECT 69 * - - 3
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT 43 + + COUNT( * ) - ( - 91 ) + 36 AS col2
----
171

skipif mysql # not compatible
query I rowsort label-729
SELECT 43 + + COUNT ( * ) - ( - 91 ) + 36 AS col2
----
171

query I rowsort
SELECT 50 + 42 AS col2
----
92

query II rowsort
SELECT 69 + 49 AS col0, 34 col1
----
118
34

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT DISTINCT COUNT( * ) / CASE + - 86 WHEN + 86 THEN - 2 WHEN - + AVG ( ALL - - 3 ) + + 26 THEN 83 END * + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-732
SELECT DISTINCT COUNT ( * ) / CASE + - 86 WHEN + 86 THEN - 2 WHEN - + AVG ( ALL - - 3 ) + + 26 THEN 83 END * + 14 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + ( - CASE - + 61 WHEN - 33 THEN - - COALESCE ( - 44, + - 12, - 69, - + 31 ) * 92 WHEN 34 + 84 THEN NULL END ), 24 AS col1
----
NULL
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-734
SELECT + 70 + - - CASE + + 24 WHEN COALESCE ( - + COUNT( ALL - 11 ), - 27 + - 92 ) THEN NULL WHEN 23 THEN NULL ELSE - - COUNT( * ) DIV 13 * + 63 - + 58 END * + 66 + + 48 AS col2
----
-3710

skipif mysql # not compatible
query I rowsort label-734
SELECT + 70 + - - CASE + + 24 WHEN COALESCE ( - + COUNT ( ALL - 11 ), - 27 + - 92 ) THEN NULL WHEN 23 THEN NULL ELSE - - COUNT ( * ) / 13 * + 63 - + 58 END * + 66 + + 48 AS col2
----
-3710

onlyif mysql # DIV for integer division: 
query I rowsort label-735
SELECT - ( + 10 ) DIV 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-735
SELECT - ( + 10 ) / 53 AS col0
----
0

query I rowsort
SELECT + CASE 7 WHEN - 98 THEN + 61 * 58 + + 68 END * + - ( + - 4 ) AS col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-738
SELECT + 46 + - 84 DIV - 74
----
47

skipif mysql # not compatible
query I rowsort label-738
SELECT + 46 + - 84 / - 74
----
47

query I rowsort
SELECT + - 68 * - 89
----
6052

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT DISTINCT - 63 * + NULLIF ( 99, - - NULLIF ( 5, + - SUM( DISTINCT + + 26 ) * - COUNT( * ) / + 82 + COUNT( * ) ) )
----
-6237

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT - 63 * + NULLIF ( 99, - - NULLIF ( 5, + - SUM ( DISTINCT + + 26 ) * - COUNT ( * ) / + 82 + COUNT ( * ) ) )
----
-6237

onlyif mysql # DIV for integer division: 
query II rowsort label-741
SELECT DISTINCT - NULLIF ( - NULLIF ( - + 54, + + 32 ), + - 59 ) * - 94 + + ( - ( - 27 ) ) AS col2, + 85 * - 3 + - COALESCE ( - COALESCE ( 39, 33, + 10 * + 29 ), + ( + 8 ), 40 * 81 ) DIV - + ( + 14 )
----
5103
-257

skipif mysql # not compatible
query II rowsort label-741
SELECT DISTINCT - NULLIF ( - NULLIF ( - + 54, + + 32 ), + - 59 ) * - 94 + + ( - ( - 27 ) ) AS col2, + 85 * - 3 + - COALESCE ( - COALESCE ( 39, 33, + 10 * + 29 ), + ( + 8 ), 40 * 81 ) / - + ( + 14 )
----
5103
-257

query I rowsort
SELECT - 80 * + 83 * - COALESCE ( 48, + 0 ) * + 58 + - + 84 + + + 91 * - - 44 AS col2
----
18489680

query I rowsort
SELECT - - 8 * + - 70 col2
----
-560

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-745
SELECT + 57 + + CAST( CAST( - 43 AS SIGNED ) AS SIGNED ) + + - 3 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-745
SELECT + 57 + + CAST ( CAST ( - 43 AS INTEGER ) AS INTEGER ) + + - 3 AS col0
----
11

query I rowsort
SELECT DISTINCT + 31 * + 96 + + + 29 AS col1
----
3005

query I rowsort
SELECT DISTINCT - - 34 * - 99 AS col1
----
-3366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-748
SELECT ALL CAST( - + COUNT( DISTINCT - 66 ) AS SIGNED ) + - - 92
----
91

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL CAST ( - + COUNT ( DISTINCT - 66 ) AS INTEGER ) + - - 92
----
91

query II rowsort
SELECT + COALESCE ( + - 79, 79 + + - 40 ) AS col2, 57
----
-79
57

query I rowsort
SELECT ALL - 12 + - 51 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT DISTINCT COUNT( * ) + + - 74 - COUNT( * ) + 6 + + 96 * + 19 AS col0
----
1756

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT COUNT ( * ) + + - 74 - COUNT ( * ) + 6 + + 96 * + 19 AS col0
----
1756

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-752
SELECT 72 AS col1, - 36 * - COUNT( * ) DIV + 43
----
72
0

skipif mysql # not compatible
query II rowsort label-752
SELECT 72 AS col1, - 36 * - COUNT ( * ) / + 43
----
72
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-753
SELECT - ( - CAST( NULL AS SIGNED ) ) + + + ( - + ( 32 ) ) + + COUNT( * ) * + - 1 * + 11 + NULLIF ( + COUNT( * ), + 96 * - 77 * - + ( 9 ) + + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-753
SELECT - ( - CAST ( NULL AS INTEGER ) ) + + + ( - + ( 32 ) ) + + COUNT ( * ) * + - 1 * + 11 + NULLIF ( + COUNT ( * ), + 96 * - 77 * - + ( 9 ) + + + COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL - 13 - 38
----
-51

query I rowsort
SELECT + 72 * - + 73
----
-5256

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

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

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

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

query I rowsort
SELECT ALL NULLIF ( 85, - 66 ) * - 63
----
-5355

query II rowsort
SELECT - 57 AS col1, 66
----
-57
66

query I rowsort
SELECT - ( 81 ) * + 28
----
-2268

query I rowsort
SELECT ALL + 77 * 5
----
385

query I rowsort
SELECT ALL NULLIF ( 16, ( + - ( - 56 ) ) )
----
16

query I rowsort
SELECT ALL + 51 * 13
----
663

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-765
SELECT - 64 DIV - - MIN( DISTINCT - 75 ) * + 82 - - 99 AS col0, 82 * 53 DIV - + COUNT( * ) - + - 59
----
99
-4287

skipif mysql # not compatible
query II rowsort label-765
SELECT - 64 / - - MIN ( DISTINCT - 75 ) * + 82 - - 99 AS col0, 82 * 53 / - + COUNT ( * ) - + - 59
----
99
-4287

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-767
SELECT DISTINCT - - 33 DIV - 39 + 39 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-767
SELECT DISTINCT - - 33 / - 39 + 39 AS col0
----
39

query I rowsort
SELECT + + 13 * - 62 + 14 + + 4 AS col2
----
-788

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-770
SELECT ALL - - 32 DIV - - 29 + - NULLIF ( + 11, + 74 + + 75 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL - - 32 / - - 29 + - NULLIF ( + 11, + 74 + + 75 ) AS col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-771
SELECT - ( + 26 ) DIV COUNT( * ) * - + 75 AS col2
----
1950

skipif mysql # not compatible
query I rowsort label-771
SELECT - ( + 26 ) / COUNT ( * ) * - + 75 AS col2
----
1950

query I rowsort
SELECT - - 79 + - + 88
----
-9

query I rowsort
SELECT ALL - + COALESCE ( + 69, - + 96 ) * + 43 + 19 + + 84
----
-2864

query I rowsort
SELECT - ( NULLIF ( + 59, + 70 ) ) * + - 76
----
4484

query I rowsort
SELECT - 61 * + 53 - + 9 * + - 87
----
-2450

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-777
SELECT DISTINCT - 91 * - + CAST( NULL AS DECIMAL ) + + 69 * + + 95 * - 26 AS col2, - 17
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-777
SELECT DISTINCT - 91 * - + CAST ( NULL AS REAL ) + + 69 * + + 95 * - 26 AS col2, - 17
----
NULL
-17

query I rowsort
SELECT DISTINCT - 26 * + + 15 + - ( - 21 ) AS col1
----
-369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-779
SELECT DISTINCT + - COALESCE ( + - 6, 2 + CAST( + 83 AS SIGNED ) ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-779
SELECT DISTINCT + - COALESCE ( + - 6, 2 + CAST ( + 83 AS INTEGER ) ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT + ( - 82 ) - - 92 * + 72 + - MAX( - 54 ) AS col1
----
6596

skipif mysql # not compatible
query I rowsort label-780
SELECT + ( - 82 ) - - 92 * + 72 + - MAX ( - 54 ) AS col1
----
6596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-781
SELECT - CAST( - - 55 AS SIGNED ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-781
SELECT - CAST ( - - 55 AS INTEGER ) AS col0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-782
SELECT + ( - 50 ) + + + 87 DIV + + 53 col0
----
-49

skipif mysql # not compatible
query I rowsort label-782
SELECT + ( - 50 ) + + + 87 / + + 53 col0
----
-49

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

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

query I rowsort
SELECT DISTINCT 54 * - 44 AS col1
----
-2376

query I rowsort
SELECT ALL 12 * - + 79
----
-948

query I rowsort
SELECT 88 * + + 14
----
1232

query I rowsort
SELECT 59 + + 64 col1
----
123

query II rowsort
SELECT - 12 col0, + 73
----
-12
73

onlyif mysql # DIV for integer division: 
query I rowsort label-789
SELECT 78 DIV - 39 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-789
SELECT 78 / - 39 AS col0
----
-2

query I rowsort
SELECT 13 * - 65 * + 41
----
-34645

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT 84 + ( - COUNT( * ) ) - + ( 95 ) - + - 97 * - + 10 * 86
----
-83432

skipif mysql # not compatible
query I rowsort label-791
SELECT 84 + ( - COUNT ( * ) ) - + ( 95 ) - + - 97 * - + 10 * 86
----
-83432

query I rowsort
SELECT ( + - 72 ) * 3
----
-216

query I rowsort
SELECT 23 * - 29
----
-667

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

query II rowsort
SELECT ALL 79 AS col2, + ( + 63 ) + + + ( - 43 ) AS col1
----
79
20

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-798
SELECT ALL + + SUM( ALL + CAST( 70 AS SIGNED ) ) + - 14
----
56

skipif mysql # not compatible
query I rowsort label-798
SELECT ALL + + SUM ( ALL + CAST ( 70 AS INTEGER ) ) + - 14
----
56

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT ( + - COALESCE ( SUM( DISTINCT - 98 ), - + 81 + ( - 31 ), 86 ) ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-801
SELECT ( + - COALESCE ( SUM ( DISTINCT - 98 ), - + 81 + ( - 31 ), 86 ) ) AS col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-802
SELECT ALL + 22 + + 92 + - 57 + + + SUM( COALESCE ( 54, + + CAST( NULL AS SIGNED ) DIV + 32 * - 72 ) ) * - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL + 22 + + 92 + - 57 + + + SUM ( COALESCE ( 54, + + CAST ( NULL AS INTEGER ) / + 32 * - 72 ) ) * - COUNT ( * )
----
3

query I rowsort
SELECT DISTINCT - 64 * + - 49 col2
----
3136

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

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

query I rowsort
SELECT + NULLIF ( - 38, 95 + 89 ) AS col2
----
-38

query I rowsort
SELECT DISTINCT - 20 + 46 - + - 4
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT ALL + + 25 + + - 96 + + COUNT( * ) + + 19 + - 62 AS col2
----
-113

skipif mysql # not compatible
query I rowsort label-807
SELECT ALL + + 25 + + - 96 + + COUNT ( * ) + + 19 + - 62 AS col2
----
-113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-808
SELECT ALL - ( - 59 ) - 70 + + COUNT( * ) DIV + 42 * - 4
----
-11

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL - ( - 59 ) - 70 + + COUNT ( * ) / + 42 * - 4
----
-11

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-810
SELECT 64 * + MAX( - + 48 ) * - MAX( - - ( + 56 ) ) DIV + COUNT( * ) + + NULLIF ( + + CAST( + AVG ( 72 ) AS SIGNED ), - 4 - NULLIF ( 98, + 78 ) + + - 61 + - 24 ) + COUNT( * )
----
172105

skipif mysql # not compatible
query I rowsort label-810
SELECT 64 * + MAX ( - + 48 ) * - MAX ( - - ( + 56 ) ) / + COUNT ( * ) + + NULLIF ( + + CAST ( + AVG ( 72 ) AS INTEGER ), - 4 - NULLIF ( 98, + 78 ) + + - 61 + - 24 ) + COUNT ( * )
----
172105

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-812
SELECT DISTINCT - 37 / + + CAST( NULL AS SIGNED ) AS col0, + 94 AS col1
----
NULL
94

skipif mysql # not compatible
query II rowsort label-812
SELECT DISTINCT - 37 / + + CAST ( NULL AS INTEGER ) AS col0, + 94 AS col1
----
NULL
94

query I rowsort
SELECT 93 * + 88 AS col2
----
8184

query I rowsort
SELECT + 2 * - 29 * - - 99
----
-5742

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT CASE + + 57 WHEN 56 * ( 35 ) THEN - - 68 END + NULLIF ( + MIN( ALL 70 ), 33 ) * + 48 / - + 52 + 51 + 84 * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-815
SELECT CASE + + 57 WHEN 56 * ( 35 ) THEN - - 68 END + NULLIF ( + MIN ( ALL 70 ), 33 ) * + 48 / - + 52 + 51 + 84 * - 86
----
NULL

query I rowsort
SELECT 53 * 79 * - 26 AS col1
----
-108862

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT 86 * + + 49 + + + COUNT( * ) * 22 col2
----
4236

skipif mysql # not compatible
query I rowsort label-817
SELECT 86 * + + 49 + + + COUNT ( * ) * 22 col2
----
4236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-818
SELECT COUNT( ALL - - CAST( - 30 AS SIGNED ) ) + + 32 DIV 49 * CAST( + 48 AS SIGNED ) * 68 + + + 43 col1
----
44

skipif mysql # not compatible
query I rowsort label-818
SELECT COUNT ( ALL - - CAST ( - 30 AS INTEGER ) ) + + 32 / 49 * CAST ( + 48 AS INTEGER ) * 68 + + + 43 col1
----
44

query I rowsort
SELECT 68 * - 61
----
-4148

query I rowsort
SELECT 4 + - + 34 * + 38 + 45 * + 6 - - 3 AS col0
----
-1015

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT NULLIF ( + MIN( DISTINCT 77 ), + AVG ( ALL + 56 ) / - 42 ) + + + 67 col1
----
144

skipif mysql # not compatible
query I rowsort label-821
SELECT NULLIF ( + MIN ( DISTINCT 77 ), + AVG ( ALL + 56 ) / - 42 ) + + + 67 col1
----
144

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

query I rowsort
SELECT ALL COALESCE ( + - 0, + 89, - 53, - 22 ) + 3
----
3

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-825
SELECT 13 DIV + + 49 AS col0, 60 * + 43 + + 40
----
0
2620

skipif mysql # not compatible
query II rowsort label-825
SELECT 13 / + + 49 AS col0, 60 * + 43 + + 40
----
0
2620

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

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

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL 95 + - COUNT ( * ) AS col2
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-828
SELECT - 78 DIV + COUNT( * ) - + 64 col0, + 2 AS col0
----
-142
2

skipif mysql # not compatible
query II rowsort label-828
SELECT - 78 / + COUNT ( * ) - + 64 col0, + 2 AS col0
----
-142
2

onlyif mysql # DIV for integer division: 
query II rowsort label-829
SELECT 79 DIV - 16 AS col2, 94 AS col0
----
-4
94

skipif mysql # not compatible
query II rowsort label-829
SELECT 79 / - 16 AS col2, 94 AS col0
----
-4
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-830
SELECT + MAX( ALL - + NULLIF ( + 46, - ( - 23 ) ) ) * - + CAST( + ( - NULLIF ( + - 66, 78 ) ) AS SIGNED ) AS col1
----
3036

skipif mysql # not compatible
query I rowsort label-830
SELECT + MAX ( ALL - + NULLIF ( + 46, - ( - 23 ) ) ) * - + CAST ( + ( - NULLIF ( + - 66, 78 ) ) AS INTEGER ) AS col1
----
3036

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT + 62 * + + SUM( - + 20 ) AS col0
----
-1240

skipif mysql # not compatible
query I rowsort label-831
SELECT + 62 * + + SUM ( - + 20 ) AS col0
----
-1240

query II rowsort
SELECT + 1 - - 53 - + 8, 98 col0
----
46
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-833
SELECT DISTINCT + - COUNT( * ) * + - 14 * - - COUNT( * ) * 23 + + 94 + CAST( NULL AS DECIMAL ) * SUM( ALL + + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT + - COUNT ( * ) * + - 14 * - - COUNT ( * ) * 23 + + 94 + CAST ( NULL AS REAL ) * SUM ( ALL + + 80 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-834
SELECT ALL - + SUM( ALL - + ( + - ( 48 ) ) ) * + 83 * + 25 / - - 74 + + + 33 + - CASE - 89 WHEN + - 45 * + CAST( + 37 AS SIGNED ) THEN - 6 + - - CASE 33 WHEN - + COUNT( 87 ) * + COALESCE ( + 13, + COUNT( * ) ) THEN NULL WHEN + 21 THEN - 56 ELSE + 8 + 65 END + + + 74 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL - + SUM ( ALL - + ( + - ( 48 ) ) ) * + 83 * + 25 / - - 74 + + + 33 + - CASE - 89 WHEN + - 45 * + CAST ( + 37 AS INTEGER ) THEN - 6 + - - CASE 33 WHEN - + COUNT ( 87 ) * + COALESCE ( + 13, + COUNT ( * ) ) THEN NULL WHEN + 21 THEN - 56 ELSE + 8 + 65 END + + + 74 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-835
SELECT ALL 90 * + COUNT( * ) * + 85 + CAST( NULL AS SIGNED ) - 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL 90 * + COUNT ( * ) * + 85 + CAST ( NULL AS INTEGER ) - 86 AS col2
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-838
SELECT CAST( NULL AS SIGNED ) / - 59 - + 65 + + 39 * - + 47 * COUNT( + 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-838
SELECT CAST ( NULL AS INTEGER ) / - 59 - + 65 + + 39 * - + 47 * COUNT ( + 34 )
----
NULL

query I rowsort
SELECT - 8 + + - 61
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-840
SELECT + SUM( DISTINCT 14 ) AS col2, + COALESCE ( - - 41, - 4 * + + 68 * - + 40 ) + 11 DIV - - SUM( DISTINCT 99 ) + + 82 AS col0
----
14
123

skipif mysql # not compatible
query II rowsort label-840
SELECT + SUM ( DISTINCT 14 ) AS col2, + COALESCE ( - - 41, - 4 * + + 68 * - + 40 ) + 11 / - - SUM ( DISTINCT 99 ) + + 82 AS col0
----
14
123

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT ALL 98 * - CASE + - 8 WHEN - - 83 THEN - 27 ELSE + - 38 + - 51 + + - 88 * + COUNT( * ) END - + 64
----
17282

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL 98 * - CASE + - 8 WHEN - - 83 THEN - 27 ELSE + - 38 + - 51 + + - 88 * + COUNT ( * ) END - + 64
----
17282

query I rowsort
SELECT - NULLIF ( 24, - 41 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT NULLIF ( + 62, + 9 ) * - - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-843
SELECT NULLIF ( + 62, + 9 ) * - - COUNT ( * )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-844
SELECT ALL - + SUM( CAST( NULL AS SIGNED ) ) * MAX( DISTINCT + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL - + SUM ( CAST ( NULL AS INTEGER ) ) * MAX ( DISTINCT + 79 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-845
SELECT DISTINCT COUNT( + COALESCE ( - + CAST( 72 AS SIGNED ), + 97 ) ) * - 77 * + - 80
----
6160

skipif mysql # not compatible
query I rowsort label-845
SELECT DISTINCT COUNT ( + COALESCE ( - + CAST ( 72 AS INTEGER ), + 97 ) ) * - 77 * + - 80
----
6160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-846
SELECT DISTINCT - COUNT( * ) AS col1, 42 DIV + - 52
----
-1
0

skipif mysql # not compatible
query II rowsort label-846
SELECT DISTINCT - COUNT ( * ) AS col1, 42 / + - 52
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT ( 26 ) * - 54 * - MAX( ALL ( 54 ) ) + - - 4 AS col0
----
75820

skipif mysql # not compatible
query I rowsort label-847
SELECT ( 26 ) * - 54 * - MAX ( ALL ( 54 ) ) + - - 4 AS col0
----
75820

query I rowsort
SELECT ALL 90 * - 32
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT DISTINCT - NULLIF ( + + MIN( + 45 ), + 74 + - NULLIF ( 92, - + 0 + + + 14 ) * - + 75 * + 94 ) col2
----
-45

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT - NULLIF ( + + MIN ( + 45 ), + 74 + - NULLIF ( 92, - + 0 + + + 14 ) * - + 75 * + 94 ) col2
----
-45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT COUNT( DISTINCT NULLIF ( + 55, - + 72 ) )
----
1

skipif mysql # not compatible
query I rowsort label-851
SELECT COUNT ( DISTINCT NULLIF ( + 55, - + 72 ) )
----
1

query II rowsort
SELECT 33 col1, + 19 AS col1
----
33
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-853
SELECT - COUNT( ALL - - 4 ) DIV - 53, + 76 AS col2
----
0
76

skipif mysql # not compatible
query II rowsort label-853
SELECT - COUNT ( ALL - - 4 ) / - 53, + 76 AS col2
----
0
76

query I rowsort
SELECT - 71 * + 77 AS col2
----
-5467

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

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

query I rowsort
SELECT - 48 * + 81
----
-3888

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

onlyif mysql # DIV for integer division: 
query I rowsort label-858
SELECT - ( + - 18 ) * - + 3 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-858
SELECT - ( + - 18 ) * - + 3 / 62
----
0

query I rowsort
SELECT ALL + 19 + - - 85
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT - 12 * - COALESCE ( COUNT( * ), - 95 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-860
SELECT - 12 * - COALESCE ( COUNT ( * ), - 95 ) AS col0
----
12

query I rowsort
SELECT ALL 23 + - 71 AS col0
----
-48

query I rowsort
SELECT - 5 - + 24
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-863
SELECT ALL - COUNT( * ) * CAST( + COUNT( * ) AS SIGNED ) * - COALESCE ( + COUNT( * ), 58 ) + + + 26 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL - COUNT ( * ) * CAST ( + COUNT ( * ) AS INTEGER ) * - COALESCE ( + COUNT ( * ), 58 ) + + + 26 AS col1
----
27

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

skipif mysql # not compatible
query I rowsort label-864
SELECT + 81 - COUNT ( * ) * - 30 AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT - + 66 + - NULLIF ( - 97, - SUM( + 17 ) ) + + 31 * 9
----
310

skipif mysql # not compatible
query I rowsort label-865
SELECT - + 66 + - NULLIF ( - 97, - SUM ( + 17 ) ) + + 31 * 9
----
310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-866
SELECT CASE 29 WHEN + 34 THEN + + 64 - + ( - COUNT( * ) ) / + COUNT( + CAST( NULL AS SIGNED ) ) * + 85 ELSE 14 END AS col0
----
14

skipif mysql # not compatible
query I rowsort label-866
SELECT CASE 29 WHEN + 34 THEN + + 64 - + ( - COUNT ( * ) ) / + COUNT ( + CAST ( NULL AS INTEGER ) ) * + 85 ELSE 14 END AS col0
----
14

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

onlyif mysql # DIV for integer division: 
query I rowsort label-868
SELECT - COALESCE ( + 54, + 4 * + 32 DIV - 63, + 2 * + 45 DIV 41 * + + 52, + 22 )
----
-54

skipif mysql # not compatible
query I rowsort label-868
SELECT - COALESCE ( + 54, + 4 * + 32 / - 63, + 2 * + 45 / 41 * + + 52, + 22 )
----
-54

query I rowsort
SELECT + 55 * - 61 * + 75 AS col0
----
-251625

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

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

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL - SUM ( - 27 )
----
27

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-873
SELECT ALL CASE + CASE NULLIF ( + 37, + 55 ) WHEN + 8 * 39 THEN + COUNT( * ) ELSE - - COUNT( * ) + + + 14 END WHEN - 77 + + 6 * - + MIN( ALL 41 ) THEN 29 * 42 WHEN 18 / + 39 THEN NULL ELSE NULL END - 27, - NULLIF ( - ( + 18 ), 56 ) AS col0
----
NULL
18

skipif mysql # not compatible
query II rowsort label-873
SELECT ALL CASE + CASE NULLIF ( + 37, + 55 ) WHEN + 8 * 39 THEN + COUNT ( * ) ELSE - - COUNT ( * ) + + + 14 END WHEN - 77 + + 6 * - + MIN ( ALL 41 ) THEN 29 * 42 WHEN 18 / + 39 THEN NULL ELSE NULL END - 27, - NULLIF ( - ( + 18 ), 56 ) AS col0
----
NULL
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-874
SELECT + + 9 * - CAST( NULL AS SIGNED ) + - 67 * + + ( COUNT( * ) ) + + 39 + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-874
SELECT + + 9 * - CAST ( NULL AS INTEGER ) + - 67 * + + ( COUNT ( * ) ) + + 39 + 27 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT ALL 9 * + + 3 * - COUNT( * ) - - 53 col0
----
26

skipif mysql # not compatible
query I rowsort label-876
SELECT ALL 9 * + + 3 * - COUNT ( * ) - - 53 col0
----
26

query II rowsort
SELECT + COALESCE ( + ( - - 88 ), 74 ) AS col2, 66 + + 99 + 50 AS col1
----
88
215

query I rowsort
SELECT + - 84 + - 50 * + 2 col0
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT ALL - CASE - + ( - + 56 ) WHEN 64 * - - COUNT( ALL 6 ) * 78 + - 82 + 26 THEN NULL WHEN - 86 + - 26 + + COALESCE ( - + 95, - + 64 * - 67 - 62 + + + 66 ) + - 63 * + 76 + - 73 THEN 2 ELSE NULL END * 58 - 33 * 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL - CASE - + ( - + 56 ) WHEN 64 * - - COUNT ( ALL 6 ) * 78 + - 82 + 26 THEN NULL WHEN - 86 + - 26 + + COALESCE ( - + 95, - + 64 * - 67 - 62 + + + 66 ) + - 63 * + 76 + - 73 THEN 2 ELSE NULL END * 58 - 33 * 25 AS col2
----
NULL

query I rowsort
SELECT + 1 * + 26 AS col1
----
26

query II rowsort
SELECT + 71 AS col1, 63
----
71
63

query I rowsort
SELECT + + 49 * - - 25 + 40 + + 50
----
1315

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

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

query I rowsort
SELECT ALL + COALESCE ( - 10, - 83 )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-885
SELECT - 30 + - COALESCE ( - 92, + CAST( NULL AS SIGNED ) * + + 40, + + 54 + - - CASE 9 WHEN + COUNT( * ) + + 83 THEN - 99 ELSE NULL END * - - 90 ) * + + MAX( ( - 90 ) ) + - CASE 20 WHEN + + 33 THEN 67 WHEN + ( + 5 ) THEN NULL ELSE NULL END + - - 28 + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-885
SELECT - 30 + - COALESCE ( - 92, + CAST ( NULL AS INTEGER ) * + + 40, + + 54 + - - CASE 9 WHEN + COUNT ( * ) + + 83 THEN - 99 ELSE NULL END * - - 90 ) * + + MAX ( ( - 90 ) ) + - CASE 20 WHEN + + 33 THEN 67 WHEN + ( + 5 ) THEN NULL ELSE NULL END + - - 28 + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT ALL 36 * - 66 * + 23 * - CASE - ( - + 28 ) WHEN + COUNT( * ) + + NULLIF ( 33, 43 * - 68 * + 42 ) THEN - + 46 * 48 + - 20 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL 36 * - 66 * + 23 * - CASE - ( - + 28 ) WHEN + COUNT ( * ) + + NULLIF ( 33, 43 * - 68 * + 42 ) THEN - + 46 * 48 + - 20 ELSE NULL END AS col2
----
NULL

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

query I rowsort
SELECT - 48 * - + ( + 23 )
----
1104

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-889
SELECT - 12 + - - COALESCE ( - - 32, SUM( + 59 ) + COUNT( * ) + - + 16 + + CASE + - 16 WHEN NULLIF ( - + 31, ( 50 ) - + 66 * CAST( + - 96 AS DECIMAL ) * - CASE + 4 WHEN + - 94 + - - 39 THEN NULL WHEN - 10 + + 49 THEN NULL WHEN - CASE + - ( + ( - ( - 20 ) ) ) WHEN + 26 THEN + 5 WHEN + ( - 73 ) * COUNT( * ) THEN - 95 + - + 68 ELSE NULL END THEN NULL ELSE MIN( DISTINCT + NULLIF ( 59, 25 * + 67 ) ) END ) * 25 THEN 7 WHEN + 86 * 61 THEN NULL ELSE - ( + 45 ) + 51 DIV + 41 END )
----
20

skipif mysql # not compatible
query I rowsort label-889
SELECT - 12 + - - COALESCE ( - - 32, SUM ( + 59 ) + COUNT ( * ) + - + 16 + + CASE + - 16 WHEN NULLIF ( - + 31, ( 50 ) - + 66 * CAST ( + - 96 AS REAL ) * - CASE + 4 WHEN + - 94 + - - 39 THEN NULL WHEN - 10 + + 49 THEN NULL WHEN - CASE + - ( + ( - ( - 20 ) ) ) WHEN + 26 THEN + 5 WHEN + ( - 73 ) * COUNT ( * ) THEN - 95 + - + 68 ELSE NULL END THEN NULL ELSE MIN ( DISTINCT + NULLIF ( 59, 25 * + 67 ) ) END ) * 25 THEN 7 WHEN + 86 * 61 THEN NULL ELSE - ( + 45 ) + 51 / + 41 END )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT DISTINCT - ( - 26 ) * - - COUNT( * ) + - - 55 + 27
----
108

skipif mysql # not compatible
query I rowsort label-890
SELECT DISTINCT - ( - 26 ) * - - COUNT ( * ) + - - 55 + 27
----
108

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-892
SELECT + ( CAST( NULL AS SIGNED ) ) / + 17 / + 22 * - 45 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-892
SELECT + ( CAST ( NULL AS INTEGER ) ) / + 17 / + 22 * - 45 col1
----
NULL

query II rowsort
SELECT - 82 + + 80 AS col0, 36
----
-2
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-894
SELECT DISTINCT + 96 * + MAX( ALL - - 54 ) * - ( COUNT( * ) ) * + - 7 + 71 - NULLIF ( - + 4, - 62 + - 1 ) + - COUNT( * ) + + 88 * + COALESCE ( + 39, + ( - + 94 ), - 12 * + CAST( NULL AS SIGNED ) ) * 57 + - COUNT( * )
----
231985

skipif mysql # not compatible
query I rowsort label-894
SELECT DISTINCT + 96 * + MAX ( ALL - - 54 ) * - ( COUNT ( * ) ) * + - 7 + 71 - NULLIF ( - + 4, - 62 + - 1 ) + - COUNT ( * ) + + 88 * + COALESCE ( + 39, + ( - + 94 ), - 12 * + CAST ( NULL AS INTEGER ) ) * 57 + - COUNT ( * )
----
231985

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT MAX( 84 )
----
84

skipif mysql # not compatible
query I rowsort label-895
SELECT MAX ( 84 )
----
84

query I rowsort
SELECT - 58 + 13
----
-45

query II rowsort
SELECT - 28 * 59 col1, + 40 AS col2
----
-1652
40

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

skipif mysql # not compatible
query I rowsort label-898
SELECT - 69 / + 53
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-899
SELECT ALL + 43 - + 4 DIV + 57 DIV - 8 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL + 43 - + 4 / + 57 / - 8 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT ALL + - ( CASE - COUNT( * ) WHEN - 67 THEN NULL WHEN - 99 THEN COUNT( * ) ELSE NULL END ) * + 65 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL + - ( CASE - COUNT ( * ) WHEN - 67 THEN NULL WHEN - 99 THEN COUNT ( * ) ELSE NULL END ) * + 65 col0
----
NULL

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

query II rowsort
SELECT - 86 * 62 AS col0, + 79
----
-5332
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-903
SELECT + 55 * - + 57 * + - 97 * - - CASE - - 29 WHEN - + 62 + 81 THEN 29 * 63 WHEN + CAST( - - COUNT( * ) AS SIGNED ) THEN NULL ELSE NULL END / 4 - - 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-903
SELECT + 55 * - + 57 * + - 97 * - - CASE - - 29 WHEN - + 62 + 81 THEN 29 * 63 WHEN + CAST ( - - COUNT ( * ) AS INTEGER ) THEN NULL ELSE NULL END / 4 - - 91 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT - MAX( - - 73 ) - + 54 + - 78 * - + 62 * + + 21 AS col1
----
101429

skipif mysql # not compatible
query I rowsort label-904
SELECT - MAX ( - - 73 ) - + 54 + - 78 * - + 62 * + + 21 AS col1
----
101429

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT DISTINCT 70 * + CASE + 62 WHEN NULLIF ( + CASE + COUNT( - + 98 ) WHEN + + 32 THEN NULL WHEN + 22 + 48 THEN - - CASE ( + 11 ) WHEN + + COUNT( * ) * - 1 THEN + COUNT( * ) * - - 21 ELSE NULL END WHEN + 82 THEN COUNT( * ) * - COUNT( * ) * - - NULLIF ( - 88, - 15 * - NULLIF ( + - 0, + 22 / 96 * - 88 * NULLIF ( + + 85, - + 86 ) ) + - 89 + - - 67 * - 33 ) + - 34 WHEN - 26 THEN NULL END, 51 + 10 * - 8 ) THEN + SUM( ALL COALESCE ( - 92, - 56 * 39 + + ( + 25 ) ) ) / ( + 76 * + 25 ) END * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-907
SELECT DISTINCT 70 * + CASE + 62 WHEN NULLIF ( + CASE + COUNT ( - + 98 ) WHEN + + 32 THEN NULL WHEN + 22 + 48 THEN - - CASE ( + 11 ) WHEN + + COUNT ( * ) * - 1 THEN + COUNT ( * ) * - - 21 ELSE NULL END WHEN + 82 THEN COUNT ( * ) * - COUNT ( * ) * - - NULLIF ( - 88, - 15 * - NULLIF ( + - 0, + 22 / 96 * - 88 * NULLIF ( + + 85, - + 86 ) ) + - 89 + - - 67 * - 33 ) + - 34 WHEN - 26 THEN NULL END, 51 + 10 * - 8 ) THEN + SUM ( ALL COALESCE ( - 92, - 56 * 39 + + ( + 25 ) ) ) / ( + 76 * + 25 ) END * 33
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-908
SELECT + 40 * + 29 * 28 + 82 + 52 + - - 59 * 15 DIV COUNT( * ) AS col0
----
33499

skipif mysql # not compatible
query I rowsort label-908
SELECT + 40 * + 29 * 28 + 82 + 52 + - - 59 * 15 / COUNT ( * ) AS col0
----
33499

query I rowsort
SELECT ALL + 98 + + 83
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT COALESCE ( + 18, + 32 + + - COALESCE ( 73, COUNT( * ), + + 24 + + 61 ) + - 69 ) * + - 84 - - 88
----
-1424

skipif mysql # not compatible
query I rowsort label-910
SELECT COALESCE ( + 18, + 32 + + - COALESCE ( 73, COUNT ( * ), + + 24 + + 61 ) + - 69 ) * + - 84 - - 88
----
-1424

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-913
SELECT DISTINCT 95 * + ( + - 47 ) AS col1, COUNT( * ) + + COUNT( * ) col2
----
-4465
2

skipif mysql # not compatible
query II rowsort label-913
SELECT DISTINCT 95 * + ( + - 47 ) AS col1, COUNT ( * ) + + COUNT ( * ) col2
----
-4465
2

query I rowsort
SELECT DISTINCT + 19 + + 14
----
33

query I rowsort
SELECT ALL + 64 * 22 * - 62 AS col2
----
-87296

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

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

query I rowsort
SELECT ALL 53 + + 7 * + ( + + 19 ) AS col1
----
186

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

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

query II rowsort
SELECT 58, - 88 AS col1
----
58
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT ( + - 16 ) + NULLIF ( - 89, - 57 + - - 73 + - + 70 + + - 87 + - - COUNT( * ) * - ( + 22 ) * 40 + - 31 + + - 56 * 54 + COUNT( * ) ) AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-920
SELECT ( + - 16 ) + NULLIF ( - 89, - 57 + - - 73 + - + 70 + + - 87 + - - COUNT ( * ) * - ( + 22 ) * 40 + - 31 + + - 56 * 54 + COUNT ( * ) ) AS col0
----
-105

query I rowsort
SELECT DISTINCT ( + 87 ) * 49 col2
----
4263

query I rowsort
SELECT 93 * + + 89 - - 13 AS col1
----
8290

query I rowsort
SELECT DISTINCT 52 - ( - + 27 ) * - CASE - 8 WHEN - + 73 * - 53 THEN - - 4 END * + + 6 * - 40 + - 62
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-924
SELECT ALL NULLIF ( + - 59, + 74 ) DIV - 28 - - 81
----
83

skipif mysql # not compatible
query I rowsort label-924
SELECT ALL NULLIF ( + - 59, + 74 ) / - 28 - - 81
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-925
SELECT DISTINCT + 47 * 99 DIV COALESCE ( 18, ( + + 28 ) ) * - - NULLIF ( 58, - 11 ) * - - 35
----
523740

skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT + 47 * 99 / COALESCE ( 18, ( + + 28 ) ) * - - NULLIF ( 58, - 11 ) * - - 35
----
523740

query I rowsort
SELECT DISTINCT 46 * - 39
----
-1794

query I rowsort
SELECT 57 * - 77
----
-4389

query I rowsort
SELECT - COALESCE ( - 17, 49 ) - + - 72 AS col2
----
89

query I rowsort
SELECT 34 - + - 32
----
66

query I rowsort
SELECT 36 + - - 30 AS col0
----
66

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

skipif mysql # not compatible
query I rowsort label-931
SELECT - + SUM ( + 55 )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-932
SELECT DISTINCT - + 54 DIV 48 * + 48 * + 91
----
-4368

skipif mysql # not compatible
query I rowsort label-932
SELECT DISTINCT - + 54 / 48 * + 48 * + 91
----
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT 13 + + COUNT( * ) * + 82
----
95

skipif mysql # not compatible
query I rowsort label-933
SELECT 13 + + COUNT ( * ) * + 82
----
95

query I rowsort
SELECT DISTINCT - 60 + - 7 + - 29 * + 40 AS col2
----
-1227

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-936
SELECT ALL - + 11 + - AVG ( + CAST( NULL AS SIGNED ) ) * - - 99 + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-936
SELECT ALL - + 11 + - AVG ( + CAST ( NULL AS INTEGER ) ) * - - 99 + 45
----
NULL

query II rowsort
SELECT DISTINCT + 68 + 26 - + 86 + 32 * - 23, 96 AS col0
----
-728
96

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT 85 * - + 68 * + - 62 * COALESCE ( + + COUNT( - + 64 ), + MIN( 63 ) * - 15 * + 78 * + 58 + + - 97 * + 85 )
----
358360

skipif mysql # not compatible
query I rowsort label-938
SELECT 85 * - + 68 * + - 62 * COALESCE ( + + COUNT ( - + 64 ), + MIN ( 63 ) * - 15 * + 78 * + 58 + + - 97 * + 85 )
----
358360

query II rowsort
SELECT 11 AS col2, 60
----
11
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-940
SELECT + 35 AS col0, - 51 * - - 25 * + + 8 DIV - COUNT( * ) AS col0
----
35
10200

skipif mysql # not compatible
query II rowsort label-940
SELECT + 35 AS col0, - 51 * - - 25 * + + 8 / - COUNT ( * ) AS col0
----
35
10200

query I rowsort
SELECT 7 + 14
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT DISTINCT - 59 + + 76 - - 77 * NULLIF ( + - COUNT( * ), 18 ) * - + 85
----
6562

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT - 59 + + 76 - - 77 * NULLIF ( + - COUNT ( * ), 18 ) * - + 85
----
6562

query I rowsort
SELECT ALL + 5 + - 3 + - 80 * - 21
----
1682

query I rowsort
SELECT 87 * 96 AS col0
----
8352

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-946
SELECT ALL - 68, 69 + - 6 + COUNT( * ) AS col1
----
-68
64

skipif mysql # not compatible
query II rowsort label-946
SELECT ALL - 68, 69 + - 6 + COUNT ( * ) AS col1
----
-68
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-947
SELECT 6 DIV - SUM( + - 13 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-947
SELECT 6 / - SUM ( + - 13 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-948
SELECT ALL - COUNT( * ) + - 39 DIV - CAST( - 20 AS SIGNED ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL - COUNT ( * ) + - 39 / - CAST ( - 20 AS INTEGER ) AS col2
----
-2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-951
SELECT ALL - CASE + COUNT( * ) WHEN AVG ( ALL + 59 ) THEN NULL ELSE + CAST( - - 61 AS SIGNED ) END col2
----
-61

skipif mysql # not compatible
query I rowsort label-951
SELECT ALL - CASE + COUNT ( * ) WHEN AVG ( ALL + 59 ) THEN NULL ELSE + CAST ( - - 61 AS INTEGER ) END col2
----
-61

query II rowsort
SELECT + 61 col1, + 95 AS col1
----
61
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-953
SELECT - CASE - - 54 WHEN - - CAST( - 85 AS SIGNED ) THEN NULL WHEN + - NULLIF ( - - 92, 81 ) THEN - 64 ELSE + 9 + + + ( + - 70 ) END * + + CAST( 27 AS SIGNED ) + - 34 * - 81 * + - 39 + - 90 + - + 28 * - SUM( + ( - - 72 ) ) - 30 + - CAST( - 5 AS SIGNED )
----
-103858

skipif mysql # not compatible
query I rowsort label-953
SELECT - CASE - - 54 WHEN - - CAST ( - 85 AS INTEGER ) THEN NULL WHEN + - NULLIF ( - - 92, 81 ) THEN - 64 ELSE + 9 + + + ( + - 70 ) END * + + CAST ( 27 AS INTEGER ) + - 34 * - 81 * + - 39 + - 90 + - + 28 * - SUM ( + ( - - 72 ) ) - 30 + - CAST ( - 5 AS INTEGER )
----
-103858

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

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

query I rowsort
SELECT ALL 47 * - 38
----
-1786

query I rowsort
SELECT 3 * - - 5 AS col0
----
15

onlyif mysql # DIV for integer division: 
query II rowsort label-957
SELECT + 16, + 47 + - 36 DIV + 4 AS col2
----
16
38

skipif mysql # not compatible
query II rowsort label-957
SELECT + 16, + 47 + - 36 / + 4 AS col2
----
16
38

onlyif mysql # aggregate syntax: 
query II rowsort label-958
SELECT NULLIF ( + + 63, - - 49 ) * - 17 AS col0, - SUM( DISTINCT - 74 ) + - 39 col2
----
-1071
35

skipif mysql # not compatible
query II rowsort label-958
SELECT NULLIF ( + + 63, - - 49 ) * - 17 AS col0, - SUM ( DISTINCT - 74 ) + - 39 col2
----
-1071
35

query II rowsort
SELECT 79 AS col1, + COALESCE ( - + 31, + 7 )
----
79
-31

query I rowsort
SELECT ALL ( + 31 ) * + ( - 64 ) - + - 19
----
-1965

onlyif mysql # aggregate syntax: 
query II rowsort label-961
SELECT COUNT( * ) + - MIN( - 32 ) + + NULLIF ( 55, - - 81 ) + - 78 + - - 14 + - + 88 * + ( 26 ), + COUNT( * ) AS col1
----
-2264
1

skipif mysql # not compatible
query II rowsort label-961
SELECT COUNT ( * ) + - MIN ( - 32 ) + + NULLIF ( 55, - - 81 ) + - 78 + - - 14 + - + 88 * + ( 26 ), + COUNT ( * ) AS col1
----
-2264
1

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

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

query I rowsort
SELECT ALL - 70 * - + 67 * - 57 AS col0
----
-267330

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT 79 + + MAX( ALL - - 73 ) + ( + + 74 )
----
226

skipif mysql # not compatible
query I rowsort label-966
SELECT 79 + + MAX ( ALL - - 73 ) + ( + + 74 )
----
226

onlyif mysql # aggregate syntax: 
query II rowsort label-967
SELECT ALL - COUNT( * ), + 72 * - 15 AS col1
----
-1
-1080

skipif mysql # not compatible
query II rowsort label-967
SELECT ALL - COUNT ( * ), + 72 * - 15 AS col1
----
-1
-1080

query I rowsort
SELECT COALESCE ( - + 19, + - 33 ) AS col0
----
-19

query I rowsort
SELECT 28 + - 20 + 59 AS col2
----
67

query I rowsort
SELECT 72 * + + 12 + 97 col1
----
961

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-971
SELECT ALL + 15 AS col0, 3 * + 85 * CAST( + + 12 AS SIGNED )
----
15
3060

skipif mysql # not compatible
query II rowsort label-971
SELECT ALL + 15 AS col0, 3 * + 85 * CAST ( + + 12 AS INTEGER )
----
15
3060

query I rowsort
SELECT + 1 + + 67
----
68

query II rowsort
SELECT 47 AS col2, + ( + - 42 )
----
47
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT MAX( - - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-974
SELECT MAX ( - - 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT 51 * - COUNT( * ) * 48 AS col1
----
-2448

skipif mysql # not compatible
query I rowsort label-975
SELECT 51 * - COUNT ( * ) * 48 AS col1
----
-2448

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

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

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

skipif mysql # not compatible
query I rowsort label-977
SELECT ALL - ( MAX ( ALL - 24 ) )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-978
SELECT + ( + + CAST( NULL AS SIGNED ) ) * 28 - - 57 + + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-978
SELECT + ( + + CAST ( NULL AS INTEGER ) ) * 28 - - 57 + + 35 AS col2
----
NULL

query I rowsort
SELECT ALL 64 + ( 34 ) AS col1
----
98

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-981
SELECT + 48 - + COUNT( * ), - 48 * 39 AS col1
----
47
-1872

skipif mysql # not compatible
query II rowsort label-981
SELECT + 48 - + COUNT ( * ), - 48 * 39 AS col1
----
47
-1872

query II rowsort
SELECT + 62 AS col1, - 73
----
62
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-983
SELECT ALL + CASE + 17 WHEN + ( - + 54 ) + - CAST( NULL AS SIGNED ) THEN + + MAX( + 23 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL + CASE + 17 WHEN + ( - + 54 ) + - CAST ( NULL AS INTEGER ) THEN + + MAX ( + 23 ) END AS col1
----
NULL

query I rowsort
SELECT + 61 * + 67
----
4087

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT - - SUM( DISTINCT - - 26 ) * - - 96 + COUNT( * ) + - + 98 * + 27 AS col0
----
-149

skipif mysql # not compatible
query I rowsort label-985
SELECT - - SUM ( DISTINCT - - 26 ) * - - 96 + COUNT ( * ) + - + 98 * + 27 AS col0
----
-149

query I rowsort
SELECT + 75 * + 50 AS col2
----
3750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-987
SELECT - 7 DIV + 26 * + + COUNT( ALL 66 ) * + 1 * - + 3
----
0

skipif mysql # not compatible
query I rowsort label-987
SELECT - 7 / + 26 * + + COUNT ( ALL 66 ) * + 1 * - + 3
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-988
SELECT ALL - 73 + + 11 AS col1, 94 DIV 82 * 38 col1
----
-62
38

skipif mysql # not compatible
query II rowsort label-988
SELECT ALL - 73 + + 11 AS col1, 94 / 82 * 38 col1
----
-62
38

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT + COUNT( * ) - - - 87 * - ( - + COUNT( - + 96 ) ) - + + 58
----
-144

skipif mysql # not compatible
query I rowsort label-989
SELECT + COUNT ( * ) - - - 87 * - ( - + COUNT ( - + 96 ) ) - + + 58
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT DISTINCT COUNT( * ) * + 30 + + ( COUNT( * ) ) col0
----
31

skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT COUNT ( * ) * + 30 + + ( COUNT ( * ) ) col0
----
31

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

query I rowsort
SELECT NULLIF ( - 21, + 75 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT ALL ( + + SUM( DISTINCT + ( 50 ) ) ) * + - SUM( DISTINCT - ( 79 ) ) * + + 42 - COUNT( * ) + - 28 AS col0
----
165871

skipif mysql # not compatible
query I rowsort label-993
SELECT ALL ( + + SUM ( DISTINCT + ( 50 ) ) ) * + - SUM ( DISTINCT - ( 79 ) ) * + + 42 - COUNT ( * ) + - 28 AS col0
----
165871

query II rowsort
SELECT - 65 * + 45, 87 * 57 AS col0
----
-2925
4959

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT ALL - COUNT( * ) * - COUNT( * ) * - 82 * SUM( DISTINCT + 59 )
----
-4838

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * - 82 * SUM ( DISTINCT + 59 )
----
-4838

onlyif mysql # DIV for integer division: 
query I rowsort label-996
SELECT + 39 DIV - + 92 + - 69 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-996
SELECT + 39 / - + 92 + - 69 AS col1
----
-69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT DISTINCT + CASE - - COUNT( * ) WHEN + 28 THEN + 70 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-998
SELECT DISTINCT + CASE - - COUNT ( * ) WHEN + 28 THEN + 70 END col2
----
NULL

query II rowsort
SELECT - 29 * 28 AS col1, - 40 AS col1
----
-812
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1000
SELECT - 35 * - AVG ( ALL - + 21 ) * COUNT( * ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1000
SELECT - 35 * - AVG ( ALL - + 21 ) * COUNT ( * ) * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 5 + - 0 * + 5 * ( + + 97 ) AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1002
SELECT DISTINCT - CASE + 14 WHEN - 8 * - ( 19 ) - - - 58 + + MIN( - 7 ) + + + ( - CASE + 96 WHEN - + 43 THEN - ( - COALESCE ( 99, + 53, - + 55 ) ) * - + 26 WHEN - CAST( + COUNT( * ) AS SIGNED ) THEN NULL END ) * + 26 THEN 68 END * - 5 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1002
SELECT DISTINCT - CASE + 14 WHEN - 8 * - ( 19 ) - - - 58 + + MIN ( - 7 ) + + + ( - CASE + 96 WHEN - + 43 THEN - ( - COALESCE ( 99, + 53, - + 55 ) ) * - + 26 WHEN - CAST ( + COUNT ( * ) AS INTEGER ) THEN NULL END ) * + 26 THEN 68 END * - 5 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1003
SELECT DISTINCT + CASE + + 85 WHEN + COUNT( + 43 ) + - + CAST( NULL AS SIGNED ) THEN + + 43 / 30 + - + 70 / - - CAST( 49 AS SIGNED ) + 92 - - MAX( - + 75 ) + - - 60 + - 38 * + - 66 * - 3 * + COALESCE ( + 89, 27, - - 4 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1003
SELECT DISTINCT + CASE + + 85 WHEN + COUNT ( + 43 ) + - + CAST ( NULL AS INTEGER ) THEN + + 43 / 30 + - + 70 / - - CAST ( 49 AS INTEGER ) + 92 - - MAX ( - + 75 ) + - - 60 + - 38 * + - 66 * - 3 * + COALESCE ( + 89, 27, - - 4 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1004
SELECT ALL - 39 DIV 99 * 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL - 39 / 99 * 82 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1005
SELECT - - 56 + - COUNT( * ) col0, 21 AS col2
----
55
21

skipif mysql # not compatible
query II rowsort label-1005
SELECT - - 56 + - COUNT ( * ) col0, 21 AS col2
----
55
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT DISTINCT + + NULLIF ( - COALESCE ( + ( 16 ), 84 * 73 * + MIN( DISTINCT 54 ) ), + 28 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1006
SELECT DISTINCT + + NULLIF ( - COALESCE ( + ( 16 ), 84 * 73 * + MIN ( DISTINCT 54 ) ), + 28 ) AS col0
----
-16

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

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

query I rowsort
SELECT - + 81 * 12 AS col1
----
-972

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT + - ( - NULLIF ( 81, - MAX( + 45 ) ) ) * + 51
----
4131

skipif mysql # not compatible
query I rowsort label-1009
SELECT + - ( - NULLIF ( 81, - MAX ( + 45 ) ) ) * + 51
----
4131

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1011
SELECT + SUM( - 3 ) AS col2, + 82 * + - 30 + - ( NULLIF ( - - 92, - COUNT( * ) + 41 * + + 42 * + 38 * + 90 ) ) AS col1
----
-3
-2552

skipif mysql # not compatible
query II rowsort label-1011
SELECT + SUM ( - 3 ) AS col2, + 82 * + - 30 + - ( NULLIF ( - - 92, - COUNT ( * ) + 41 * + + 42 * + 38 * + 90 ) ) AS col1
----
-3
-2552

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

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

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

skipif mysql # not compatible
query I rowsort label-1013
SELECT DISTINCT + - COUNT ( 8 ) + + - 69 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT ALL + MAX( 15 ) + - SUM( - 76 )
----
91

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL + MAX ( 15 ) + - SUM ( - 76 )
----
91

query II rowsort
SELECT DISTINCT - - 57 + 49 + 35, + ( - - 29 ) AS col1
----
141
29

query I rowsort
SELECT - - 79 + 56
----
135

query I rowsort
SELECT + - 74 - 41
----
-115

onlyif mysql # DIV for integer division: 
query II rowsort label-1018
SELECT - + 5 + + 49, + 49 + + 86 - 94 DIV - 87 AS col2
----
44
136

skipif mysql # not compatible
query II rowsort label-1018
SELECT - + 5 + + 49, + 49 + + 86 - 94 / - 87 AS col2
----
44
136

query I rowsort
SELECT + + 99 - 24
----
75

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

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

query I rowsort
SELECT ALL - NULLIF ( - 92, - 88 ) + - 85
----
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT ALL MIN( 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL MIN ( 25 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT + MIN( - 41 ) + 94 * + 75
----
7009

skipif mysql # not compatible
query I rowsort label-1024
SELECT + MIN ( - 41 ) + 94 * + 75
----
7009

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT ALL 1 - - + COALESCE ( ( - + COUNT( * ) ), + - 38 ) + + + 57 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL 1 - - + COALESCE ( ( - + COUNT ( * ) ), + - 38 ) + + + 57 AS col2
----
57

query I rowsort
SELECT + 72 + - 35 col0
----
37

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

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

query I rowsort
SELECT DISTINCT 36 * - + 49 AS col0
----
-1764

query I rowsort
SELECT + 48 + - 88 AS col2
----
-40

query II rowsort
SELECT ALL 47 col2, 13 * 3 AS col1
----
47
39

query I rowsort
SELECT - 35 * - 33 col0
----
1155

query II rowsort
SELECT ALL + 51 AS col0, 10 + + 38 + + 43 AS col2
----
51
91

query II rowsort
SELECT DISTINCT + 61 col2, + 48 + ( + + 71 )
----
61
119

query I rowsort
SELECT ALL CASE - 47 WHEN ( 1 ) + + - 20 - + 91 * - 94 * - 32 THEN + 60 END / 22 * + 2 col1
----
NULL

query I rowsort
SELECT - 99 * + + 90
----
-8910

query I rowsort
SELECT DISTINCT + 98 * + + 4 AS col0
----
392

onlyif mysql # DIV for integer division: 
query I rowsort label-1037
SELECT DISTINCT - 61 DIV - + 22 + - 35 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT - 61 / - + 22 + - 35 AS col2
----
-33

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1039
SELECT CAST( NULL AS DECIMAL ) * + 23 + - - ( - - 48 ), + CASE + 52 WHEN + 66 THEN - - 31 * + 90 / 8 + - - 31 / - 47 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1039
SELECT CAST ( NULL AS REAL ) * + 23 + - - ( - - 48 ), + CASE + 52 WHEN + 66 THEN - - 31 * + 90 / 8 + - - 31 / - 47 END
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1040
SELECT ALL ( + + 63 ) * ( - 51 ) + 58 + 16 - + - NULLIF ( 35, - 93 ) * - 55 DIV - COUNT( * )
----
-1214

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL ( + + 63 ) * ( - 51 ) + 58 + 16 - + - NULLIF ( 35, - 93 ) * - 55 / - COUNT ( * )
----
-1214

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT SUM( DISTINCT 63 ) * - 11 + + 22 + + 95
----
-576

skipif mysql # not compatible
query I rowsort label-1041
SELECT SUM ( DISTINCT 63 ) * - 11 + + 22 + + 95
----
-576

query II rowsort
SELECT + 90, + 38 AS col2
----
90
38

query I rowsort
SELECT ALL - 83 + + - 64 AS col1
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT 88 + + - MAX( ALL 85 )
----
3

skipif mysql # not compatible
query I rowsort label-1044
SELECT 88 + + - MAX ( ALL 85 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT DISTINCT + MIN( - 10 ) + 77 - + CASE - + COUNT( * ) WHEN + 62 + 63 + + 86 * + - ( 34 ) THEN NULL ELSE + 67 * - + COUNT( * ) * - 85 END - 77 * + + 75
----
-11403

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT + MIN ( - 10 ) + 77 - + CASE - + COUNT ( * ) WHEN + 62 + 63 + + 86 * + - ( 34 ) THEN NULL ELSE + 67 * - + COUNT ( * ) * - 85 END - 77 * + + 75
----
-11403

query I rowsort
SELECT ALL - COALESCE ( + - 52, + 66 ) + - 54
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1047
SELECT - - 56 * 33 + + 59 * ( 5 ) + + 7 + CAST( NULL AS SIGNED ) + + 78 - - SUM( DISTINCT 91 ) * ( - - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1047
SELECT - - 56 * 33 + + 59 * ( 5 ) + + 7 + CAST ( NULL AS INTEGER ) + + 78 - - SUM ( DISTINCT 91 ) * ( - - 37 )
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1050
SELECT DISTINCT + 20 - + + 64 + CAST( + COUNT( * ) AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-1050
SELECT DISTINCT + 20 - + + 64 + CAST ( + COUNT ( * ) AS INTEGER )
----
-43

query I rowsort
SELECT ALL + 87 - + 75 + + - ( - + 22 ) - + ( - 81 ) AS col0
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-1052
SELECT DISTINCT ( ( + + 72 ) ) DIV - + 13
----
-5

skipif mysql # not compatible
query I rowsort label-1052
SELECT DISTINCT ( ( + + 72 ) ) / - + 13
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1053
SELECT NULLIF ( + 96, + 72 + - 25 / 34 ) * - + 36 * - + CAST( NULL AS SIGNED ) * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-1053
SELECT NULLIF ( + 96, + 72 + - 25 / 34 ) * - + 36 * - + CAST ( NULL AS INTEGER ) * 11
----
NULL

query I rowsort
SELECT 87 - - - 92
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT ALL COUNT( * ) - + 71 + - 21 * - 81 AS col0
----
1631

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL COUNT ( * ) - + 71 + - 21 * - 81 AS col0
----
1631

query I rowsort
SELECT 3 * - 72
----
-216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1057
SELECT 47 DIV CAST( + + 3 AS SIGNED ) - + 29 - - + 6 * COALESCE ( CAST( + MIN( ALL + - 90 ) AS SIGNED ), + 8 * 69 ) + - 42
----
-596

skipif mysql # not compatible
query I rowsort label-1057
SELECT 47 / CAST ( + + 3 AS INTEGER ) - + 29 - - + 6 * COALESCE ( CAST ( + MIN ( ALL + - 90 ) AS INTEGER ), + 8 * 69 ) + - 42
----
-596

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1059
SELECT DISTINCT CAST( NULL AS SIGNED ) + - ( 68 ) + + 11 AS col1, + 29 * + - 66
----
NULL
-1914

skipif mysql # not compatible
query II rowsort label-1059
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - ( 68 ) + + 11 AS col1, + 29 * + - 66
----
NULL
-1914

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT ALL 42 + ( + 45 ) * + MIN( 62 ) AS col1
----
2832

skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL 42 + ( + 45 ) * + MIN ( 62 ) AS col1
----
2832

query I rowsort
SELECT ALL - 79 + + 21 AS col2
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1062
SELECT ALL + + 45 DIV - COUNT( * ), + 37 * + 69 - - - 5 AS col1
----
-45
2548

skipif mysql # not compatible
query II rowsort label-1062
SELECT ALL + + 45 / - COUNT ( * ), + 37 * + 69 - - - 5 AS col1
----
-45
2548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1063
SELECT ALL - + 32 + - CAST( - + 14 AS SIGNED ) + - COUNT( * ) * - 96
----
78

skipif mysql # not compatible
query I rowsort label-1063
SELECT ALL - + 32 + - CAST ( - + 14 AS INTEGER ) + - COUNT ( * ) * - 96
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1064
SELECT 57 DIV - 63 AS col2, CASE + + COUNT( * ) WHEN 26 + + 99 THEN NULL ELSE - + 38 END
----
0
-38

skipif mysql # not compatible
query II rowsort label-1064
SELECT 57 / - 63 AS col2, CASE + + COUNT ( * ) WHEN 26 + + 99 THEN NULL ELSE - + 38 END
----
0
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1065
SELECT - COALESCE ( 4, + 44 + CAST( NULL AS SIGNED ), 85 - + MIN( - + 43 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-1065
SELECT - COALESCE ( 4, + 44 + CAST ( NULL AS INTEGER ), 85 - + MIN ( - + 43 ) )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT - COUNT( * ) + + - 53 * + 32 AS col2
----
-1697

skipif mysql # not compatible
query I rowsort label-1066
SELECT - COUNT ( * ) + + - 53 * + 32 AS col2
----
-1697

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

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

query I rowsort
SELECT ALL - 91 - ( 69 ) AS col2
----
-160

query I rowsort
SELECT + 63 + - + 8 AS col0
----
55

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1072
SELECT 23 - ( 52 ) + + - 60 + - SUM( ALL + + 30 ) DIV - - 10
----
-92

skipif mysql # not compatible
query I rowsort label-1072
SELECT 23 - ( 52 ) + + - 60 + - SUM ( ALL + + 30 ) / - - 10
----
-92

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

skipif mysql # not compatible
query I rowsort label-1073
SELECT COUNT ( * ) * 50
----
50

query I rowsort
SELECT 97 + - 35
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT COUNT( * ) - - 64 + - 92 * - 98 col2
----
9081

skipif mysql # not compatible
query I rowsort label-1075
SELECT COUNT ( * ) - - 64 + - 92 * - 98 col2
----
9081

onlyif mysql # DIV for integer division: 
query I rowsort label-1076
SELECT 3 DIV - + 49 * + + 15
----
0

skipif mysql # not compatible
query I rowsort label-1076
SELECT 3 / - + 49 * + + 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT 42 + NULLIF ( - 66, - COUNT( * ) ) + - 11
----
-35

skipif mysql # not compatible
query I rowsort label-1077
SELECT 42 + NULLIF ( - 66, - COUNT ( * ) ) + - 11
----
-35

query I rowsort
SELECT 12 + - + 1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-1079
SELECT 16 DIV + 30
----
0

skipif mysql # not compatible
query I rowsort label-1079
SELECT 16 / + 30
----
0

query I rowsort
SELECT ALL + 15 * - 65 AS col1
----
-975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1081
SELECT COUNT( * ) + + COALESCE ( + 52, MAX( ALL + 31 ) * - 91 * 74 + 21 ) + - 25 DIV + + 62 + - - 70 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-1081
SELECT COUNT ( * ) + + COALESCE ( + 52, MAX ( ALL + 31 ) * - 91 * 74 + 21 ) + - 25 / + + 62 + - - 70 AS col0
----
123

query I rowsort
SELECT ALL - 43 * + + 55 col2
----
-2365

query I rowsort
SELECT ALL + ( 57 ) * + 32
----
1824

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

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

query I rowsort
SELECT DISTINCT + 70 + + 34
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-1086
SELECT ALL 70 DIV - - COALESCE ( - 8, + 87 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL 70 / - - COALESCE ( - 8, + 87 ) AS col0
----
-8

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

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

query I rowsort
SELECT DISTINCT + 90 * 15 + 40 AS col2
----
1390

query I rowsort
SELECT NULLIF ( + + 35, + 98 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT + 38 * COUNT( * ) + + 79
----
117

skipif mysql # not compatible
query I rowsort label-1090
SELECT + 38 * COUNT ( * ) + + 79
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1091
SELECT ALL 88 * - 21 + + 53 + - 92 - + 2 + - + 75 + - + COUNT( * ) * - 13 + + MIN( DISTINCT CASE - + ( - + 11 ) WHEN + 43 THEN - - 91 / - 90 + - 27 + + + ( 27 ) END ) + + - 62 * - CAST( NULL AS SIGNED ) + + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL 88 * - 21 + + 53 + - 92 - + 2 + - + 75 + - + COUNT ( * ) * - 13 + + MIN ( DISTINCT CASE - + ( - + 11 ) WHEN + 43 THEN - - 91 / - 90 + - 27 + + + ( 27 ) END ) + + - 62 * - CAST ( NULL AS INTEGER ) + + - 49
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1092
SELECT ALL 30 * + 86 + - 7 DIV 3 AS col0
----
2578

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL 30 * + 86 + - 7 / 3 AS col0
----
2578

onlyif mysql # DIV for integer division: 
query I rowsort label-1093
SELECT - 96 DIV 19 * + 19 + + - ( + 56 ) * - ( + - 75 )
----
-4295

skipif mysql # not compatible
query I rowsort label-1093
SELECT - 96 / 19 * + 19 + + - ( + 56 ) * - ( + - 75 )
----
-4295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1094
SELECT ALL + 55 * 84 + 13 + - 97 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1094
SELECT ALL + 55 * 84 + 13 + - 97 + + + CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT ALL 1 * - 8 col0
----
-8

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

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

query I rowsort
SELECT + 59 * 8 AS col1
----
472

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT - CASE - CASE - 9 WHEN + 17 + - 96 THEN + 25 + - ( + + 90 ) / + ( - COUNT( + 45 ) ) END WHEN 65 - - 95 - COUNT( * ) * + + COUNT( * ) * ( - AVG ( DISTINCT - 71 ) ) + + 40 * + - 25 - + 74 THEN + - 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1099
SELECT - CASE - CASE - 9 WHEN + 17 + - 96 THEN + 25 + - ( + + 90 ) / + ( - COUNT ( + 45 ) ) END WHEN 65 - - 95 - COUNT ( * ) * + + COUNT ( * ) * ( - AVG ( DISTINCT - 71 ) ) + + 40 * + - 25 - + 74 THEN + - 85 END
----
NULL

query I rowsort
SELECT + + 12 + - 44 - + - 78 * - 1 AS col1
----
-110

onlyif mysql # DIV for integer division: 
query I rowsort label-1101
SELECT ALL - 31 DIV 79 + - 52 * - + 1 col0
----
52

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL - 31 / 79 + - 52 * - + 1 col0
----
52

query II rowsort
SELECT + 17 * 30 + + + 41 AS col0, 13
----
551
13

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT + - 18 * - - 76 + - SUM( DISTINCT - 33 ) * COUNT( * )
----
-1335

skipif mysql # not compatible
query I rowsort label-1104
SELECT + - 18 * - - 76 + - SUM ( DISTINCT - 33 ) * COUNT ( * )
----
-1335

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

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

query I rowsort
SELECT DISTINCT - 38 * - 94
----
3572

query II rowsort
SELECT 77, + COALESCE ( + + 28, 19 ) AS col2
----
77
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT - NULLIF ( - 11, COALESCE ( + COUNT( - 11 ), - 56, COUNT( * ) ) * COALESCE ( - - 61, 95 * - COUNT( * ) - + 27 ) )
----
11

skipif mysql # not compatible
query I rowsort label-1108
SELECT - NULLIF ( - 11, COALESCE ( + COUNT ( - 11 ), - 56, COUNT ( * ) ) * COALESCE ( - - 61, 95 * - COUNT ( * ) - + 27 ) )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1109
SELECT - COUNT( * ) + - 22 * - 99 * - NULLIF ( + - CAST( - ( - 64 ) AS SIGNED ), - - 53 )
----
139391

skipif mysql # not compatible
query I rowsort label-1109
SELECT - COUNT ( * ) + - 22 * - 99 * - NULLIF ( + - CAST ( - ( - 64 ) AS INTEGER ), - - 53 )
----
139391

query II rowsort
SELECT 90 AS col0, 5 AS col0
----
90
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT - ( - - CASE - 66 WHEN - NULLIF ( + ( - 26 ), 46 * + - 32 ) THEN + 48 * COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1111
SELECT - ( - - CASE - 66 WHEN - NULLIF ( + ( - 26 ), 46 * + - 32 ) THEN + 48 * COUNT ( * ) END )
----
NULL

query I rowsort
SELECT ALL - 84 + + 78 + + 69 AS col0
----
63

query II rowsort
SELECT ALL 43 AS col0, 55
----
43
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT ALL ( - 42 ) * ( + 30 ) - - - COUNT( * ) + - + ( ( + + 14 ) ) AS col1
----
-1275

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL ( - 42 ) * ( + 30 ) - - - COUNT ( * ) + - + ( ( + + 14 ) ) AS col1
----
-1275

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1116
SELECT ALL CASE - COUNT( * ) WHEN CASE - - ( + 69 ) WHEN + COUNT( * ) * ( + 88 ) - + 51 THEN - 0 ELSE NULL END DIV + 52 + + 88 THEN NULL ELSE + - 95 DIV - COUNT( DISTINCT + 48 ) END AS col1
----
95

skipif mysql # not compatible
query I rowsort label-1116
SELECT ALL CASE - COUNT ( * ) WHEN CASE - - ( + 69 ) WHEN + COUNT ( * ) * ( + 88 ) - + 51 THEN - 0 ELSE NULL END / + 52 + + 88 THEN NULL ELSE + - 95 / - COUNT ( DISTINCT + 48 ) END AS col1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1117
SELECT - 35 DIV - + 42
----
0

skipif mysql # not compatible
query I rowsort label-1117
SELECT - 35 / - + 42
----
0

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

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL - COUNT ( * ) + ( 22 ) AS col2
----
21

query I rowsort
SELECT DISTINCT - 94 * 91
----
-8554

onlyif mysql # aggregate syntax: 
query II rowsort label-1120
SELECT 9, - ( - 39 ) * + COUNT( * ) + 12 AS col1
----
9
51

skipif mysql # not compatible
query II rowsort label-1120
SELECT 9, - ( - 39 ) * + COUNT ( * ) + 12 AS col1
----
9
51

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1122
SELECT - 17 * + COUNT( * ) DIV + 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1122
SELECT - 17 * + COUNT ( * ) / + 93 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1123
SELECT ALL - 76 * + NULLIF ( - - 80, 80 ) AS col2, MIN( + 50 ) AS col0
----
NULL
50

skipif mysql # not compatible
query II rowsort label-1123
SELECT ALL - 76 * + NULLIF ( - - 80, 80 ) AS col2, MIN ( + 50 ) AS col0
----
NULL
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1124
SELECT ALL + 21 + + + ( + CAST( - 45 AS SIGNED ) ) * + - 63 * - 82 + 74
----
-232375

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL + 21 + + + ( + CAST ( - 45 AS INTEGER ) ) * + - 63 * - 82 + 74
----
-232375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1125
SELECT - COUNT( DISTINCT + + 15 ) - - - ( - 5 ) - + CAST( + 5 AS SIGNED ) * - - 75 * + + 71 * + 43 + + 72 + + - 19
----
-1144818

skipif mysql # not compatible
query I rowsort label-1125
SELECT - COUNT ( DISTINCT + + 15 ) - - - ( - 5 ) - + CAST ( + 5 AS INTEGER ) * - - 75 * + + 71 * + 43 + + 72 + + - 19
----
-1144818

query I rowsort
SELECT - 69 - + 27
----
-96

query II rowsort
SELECT + - 17, 44 AS col1
----
-17
44

query I rowsort
SELECT - 90 * - 6 * + 67 + + - ( 67 ) - - 80
----
36193

onlyif mysql # DIV for integer division: 
query I rowsort label-1129
SELECT + + 32 DIV + - 1 + 62
----
30

skipif mysql # not compatible
query I rowsort label-1129
SELECT + + 32 / + - 1 + 62
----
30

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1131
SELECT + ( 2 ) AS col0, CASE - - 88 WHEN - 41 + + COUNT( * ) THEN NULL WHEN + - 80 THEN - + 68 END
----
2
NULL

skipif mysql # not compatible
query II rowsort label-1131
SELECT + ( 2 ) AS col0, CASE - - 88 WHEN - 41 + + COUNT ( * ) THEN NULL WHEN + - 80 THEN - + 68 END
----
2
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1132
SELECT ALL - NULLIF ( 34, + - COUNT( * ) * 41 ) * 16 DIV - + MIN( ALL 50 ) AS col1, - 79 AS col1
----
10
-79

skipif mysql # not compatible
query II rowsort label-1132
SELECT ALL - NULLIF ( 34, + - COUNT ( * ) * 41 ) * 16 / - + MIN ( ALL 50 ) AS col1, - 79 AS col1
----
10
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1133
SELECT 97 * + ( + 55 ) + + - 85 - + + CAST( NULL AS SIGNED ) * - NULLIF ( ( 43 ), + 44 ) + + - 36 + + + 23 * + + 84 * 63 * + 57 / - + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1133
SELECT 97 * + ( + 55 ) + + - 85 - + + CAST ( NULL AS INTEGER ) * - NULLIF ( ( 43 ), + 44 ) + + - 36 + + + 23 * + + 84 * 63 * + 57 / - + 92 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1135
SELECT DISTINCT + SUM( DISTINCT + 37 ) * + 38 * + MAX( - 81 ) * COUNT( * ) AS col2, 87 * + MAX( 33 ) + 64 + + 44
----
-113886
2979

skipif mysql # not compatible
query II rowsort label-1135
SELECT DISTINCT + SUM ( DISTINCT + 37 ) * + 38 * + MAX ( - 81 ) * COUNT ( * ) AS col2, 87 * + MAX ( 33 ) + 64 + + 44
----
-113886
2979

onlyif mysql # aggregate syntax: 
query II rowsort label-1136
SELECT DISTINCT - 58 * - - 36 + + 26 + 54 AS col2, - COUNT( * ) AS col0
----
-2008
-1

skipif mysql # not compatible
query II rowsort label-1136
SELECT DISTINCT - 58 * - - 36 + + 26 + 54 AS col2, - COUNT ( * ) AS col0
----
-2008
-1

query II rowsort
SELECT DISTINCT - 42 * + 5 AS col1, + 81 * - - 51 col2
----
-210
4131

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1138
SELECT + MAX( + 43 ) * COALESCE ( + + 0, + 72 + - COALESCE ( - 11, + 1 * ( - COUNT( * ) ) DIV + 74 + NULLIF ( - 63, + 40 * - 7 * CASE + - 4 WHEN - 8 THEN + - 7 ELSE NULL END * - MAX( 14 ) + + 76 ), - 69 + - + 36 ) ), + 90 * - + CASE - 57 WHEN - 41 THEN + + SUM( - 68 ) - + COALESCE ( + 60, + 8 ) * - MIN( + 61 ) DIV 46 + + COALESCE ( - COUNT( * ), + - NULLIF ( - - 22, - - MAX( ALL 23 ) ) ) WHEN + 63 - - 63 THEN NULL ELSE 17 END AS col2
----
0
-1530

skipif mysql # not compatible
query II rowsort label-1138
SELECT + MAX ( + 43 ) * COALESCE ( + + 0, + 72 + - COALESCE ( - 11, + 1 * ( - COUNT ( * ) ) / + 74 + NULLIF ( - 63, + 40 * - 7 * CASE + - 4 WHEN - 8 THEN + - 7 ELSE NULL END * - MAX ( 14 ) + + 76 ), - 69 + - + 36 ) ), + 90 * - + CASE - 57 WHEN - 41 THEN + + SUM ( - 68 ) - + COALESCE ( + 60, + 8 ) * - MIN ( + 61 ) / 46 + + COALESCE ( - COUNT ( * ), + - NULLIF ( - - 22, - - MAX ( ALL 23 ) ) ) WHEN + 63 - - 63 THEN NULL ELSE 17 END AS col2
----
0
-1530

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT + - 28 * + 10 + - COUNT( * ) + + MIN( + 10 ) * ( - 83 ) col2
----
-1111

skipif mysql # not compatible
query I rowsort label-1140
SELECT + - 28 * + 10 + - COUNT ( * ) + + MIN ( + 10 ) * ( - 83 ) col2
----
-1111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1141
SELECT 88, ( 11 ) * + COUNT( * ) + 43 * - - 12 * + 26 * + 6 + + + 24 * - - ( ( - - 27 ) ) * - ( NULLIF ( 28, + - 73 * - - MIN( - 27 ) ) ) * - - NULLIF ( + CAST( - COALESCE ( + + 17, 65 ) AS SIGNED ), - AVG ( ALL CAST( NULL AS SIGNED ) ) ) AS col1
----
88
388955

skipif mysql # not compatible
query II rowsort label-1141
SELECT 88, ( 11 ) * + COUNT ( * ) + 43 * - - 12 * + 26 * + 6 + + + 24 * - - ( ( - - 27 ) ) * - ( NULLIF ( 28, + - 73 * - - MIN ( - 27 ) ) ) * - - NULLIF ( + CAST ( - COALESCE ( + + 17, 65 ) AS INTEGER ), - AVG ( ALL CAST ( NULL AS INTEGER ) ) ) AS col1
----
88
388955

query I rowsort
SELECT + 13 * + 77
----
1001

query I rowsort
SELECT + 19 * + - 46 * - ( 4 ) * - 54 AS col2
----
-188784

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT ALL - 11 * - 7 + - COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL - 11 * - 7 + - COUNT ( * ) AS col1
----
76

query I rowsort
SELECT DISTINCT - 42 * + 21
----
-882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1146
SELECT DISTINCT COUNT( + + 7 ) AS col1, ( CAST( NULL AS SIGNED ) ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1146
SELECT DISTINCT COUNT ( + + 7 ) AS col1, ( CAST ( NULL AS INTEGER ) ) AS col1
----
1
NULL

query I rowsort
SELECT ALL 95 * + 22
----
2090

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT ALL CASE 84 WHEN + 75 THEN - 63 - + SUM( ALL 49 ) - + + 22 * + COALESCE ( + + 85, ( + 26 ) ) * MAX( ALL + ( - - 94 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL CASE 84 WHEN + 75 THEN - 63 - + SUM ( ALL 49 ) - + + 22 * + COALESCE ( + + 85, ( + 26 ) ) * MAX ( ALL + ( - - 94 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT + COUNT( - 86 ) + - - 17 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-1149
SELECT + COUNT ( - 86 ) + - - 17 AS col0
----
18

query I rowsort
SELECT DISTINCT - 1 * - + 19 + + + 93 AS col1
----
112

query I rowsort
SELECT ALL 18 * + 66
----
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT - 29 + 24 * - COUNT( * ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-1152
SELECT - 29 + 24 * - COUNT ( * ) AS col2
----
-53

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

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

query I rowsort
SELECT - COALESCE ( ( - + 14 ), - ( + ( 0 ) ) * + - 93 ) + - ( + 58 )
----
-44

query I rowsort
SELECT ALL 11 + - 86 - + - ( - + 13 ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT + COUNT( * ) + + - 31 + - 24 + - + 0 * COALESCE ( - - 11, + + 32, + COUNT( * ) ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-1156
SELECT + COUNT ( * ) + + - 31 + - 24 + - + 0 * COALESCE ( - - 11, + + 32, + COUNT ( * ) ) AS col1
----
-54

query I rowsort
SELECT ALL - 90 + - - 46 AS col1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1158
SELECT 76 + + COALESCE ( - 51, + + CAST( NULL AS SIGNED ) + - 37 ), - 1 AS col1
----
25
-1

skipif mysql # not compatible
query II rowsort label-1158
SELECT 76 + + COALESCE ( - 51, + + CAST ( NULL AS INTEGER ) + - 37 ), - 1 AS col1
----
25
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT ALL 52 - - 14 * + NULLIF ( + 64, + COUNT( * ) ) * - 47 - - + COALESCE ( 30, - COUNT( * ) + + 9 * 24 * 50 ) AS col0
----
-42030

skipif mysql # not compatible
query I rowsort label-1159
SELECT ALL 52 - - 14 * + NULLIF ( + 64, + COUNT ( * ) ) * - 47 - - + COALESCE ( 30, - COUNT ( * ) + + 9 * 24 * 50 ) AS col0
----
-42030

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1160
SELECT + NULLIF ( + 69, 30 / + CAST( NULL AS SIGNED ) * - - 84 * + 80 + 50 ) * 59 + + 87 + + - CAST( NULL AS DECIMAL ) + 67 * - 82 + + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1160
SELECT + NULLIF ( + 69, 30 / + CAST ( NULL AS INTEGER ) * - - 84 * + 80 + 50 ) * 59 + + 87 + + - CAST ( NULL AS REAL ) + 67 * - 82 + + 12 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1161
SELECT - ( + + CASE + 18 WHEN - 56 THEN + 63 WHEN + COUNT( * ) * + - 44 + - 80 * + + CAST( NULL AS SIGNED ) THEN ( + 83 ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1161
SELECT - ( + + CASE + 18 WHEN - 56 THEN + 63 WHEN + COUNT ( * ) * + - 44 + - 80 * + + CAST ( NULL AS INTEGER ) THEN ( + 83 ) END ) AS col1
----
NULL

query I rowsort
SELECT + 27 + + 27 * - 69 AS col0
----
-1836

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1163
SELECT DISTINCT - 98 DIV - - 57 col2, - 16 * - NULLIF ( + CAST( + 26 AS SIGNED ), - 6 ) AS col1
----
-1
416

skipif mysql # not compatible
query II rowsort label-1163
SELECT DISTINCT - 98 / - - 57 col2, - 16 * - NULLIF ( + CAST ( + 26 AS INTEGER ), - 6 ) AS col1
----
-1
416

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT + 41 + + 94 - - CASE + 4 WHEN - + 44 THEN + 73 / 98 + 0 END * - 78 * COUNT( * ) + 93 * - 45 + + 96 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1164
SELECT + 41 + + 94 - - CASE + 4 WHEN - + 44 THEN + 73 / 98 + 0 END * - 78 * COUNT ( * ) + 93 * - 45 + + 96 col2
----
NULL

query I rowsort
SELECT 11 * + - 97 + 97
----
-970

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT - CASE + 64 WHEN - - 84 THEN 21 - + - SUM( DISTINCT + 30 ) + - COUNT( * ) - + 11 + + 52 WHEN 83 + 12 THEN + COUNT( * ) ELSE + 96 END * + + ( - + COUNT( * ) ) + + ( - 90 ) + + + 98 * 76
----
7454

skipif mysql # not compatible
query I rowsort label-1166
SELECT - CASE + 64 WHEN - - 84 THEN 21 - + - SUM ( DISTINCT + 30 ) + - COUNT ( * ) - + 11 + + 52 WHEN 83 + 12 THEN + COUNT ( * ) ELSE + 96 END * + + ( - + COUNT ( * ) ) + + ( - 90 ) + + + 98 * 76
----
7454

query I rowsort
SELECT ALL - 64 * - ( 46 ) col2
----
2944

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT + - COUNT( * ) * + 4 + + COALESCE ( - + 95, 74, - 33, 31 * + 0 )
----
-99

skipif mysql # not compatible
query I rowsort label-1168
SELECT + - COUNT ( * ) * + 4 + + COALESCE ( - + 95, 74, - 33, 31 * + 0 )
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-1169
SELECT DISTINCT - + COUNT( * ) - 18 AS col2, - 77 AS col2
----
-19
-77

skipif mysql # not compatible
query II rowsort label-1169
SELECT DISTINCT - + COUNT ( * ) - 18 AS col2, - 77 AS col2
----
-19
-77

query I rowsort
SELECT ALL - NULLIF ( - 71, + - 69 ) AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1171
SELECT + 43 DIV + COUNT( * ) AS col0, - 85 AS col1
----
43
-85

skipif mysql # not compatible
query II rowsort label-1171
SELECT + 43 / + COUNT ( * ) AS col0, - 85 AS col1
----
43
-85

query I rowsort
SELECT + 83 * COALESCE ( 27, ( 91 ) ) + - 40 * 97 col2
----
-1639

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT - + 24 * - - COUNT( * ) + + 45 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1173
SELECT - + 24 * - - COUNT ( * ) + + 45 AS col1
----
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT 60 * + + COUNT( * ) + ( + ( + 94 ) ) + 45 * - + COUNT( * ) * + 54 * + 5 AS col0
----
-11996

skipif mysql # not compatible
query I rowsort label-1175
SELECT 60 * + + COUNT ( * ) + ( + ( + 94 ) ) + 45 * - + COUNT ( * ) * + 54 * + 5 AS col0
----
-11996

query I rowsort
SELECT 68 * - NULLIF ( - + 28, - 0 * + 83 + 96 + 87 ) + - 6 * - 87 AS col0
----
2426

query II rowsort
SELECT ALL + + CASE - 46 WHEN - 32 THEN - + 98 END + - - 7 AS col0, + 2 AS col1
----
NULL
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1178
SELECT COUNT( * ) + + + 18 + + 41 AS col1, COUNT( * ) AS col1
----
60
1

skipif mysql # not compatible
query II rowsort label-1178
SELECT COUNT ( * ) + + + 18 + + 41 AS col1, COUNT ( * ) AS col1
----
60
1

query I rowsort
SELECT 22 * 88 AS col1
----
1936

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT COUNT( * ) - + 98 + 58 + 24
----
-15

skipif mysql # not compatible
query I rowsort label-1180
SELECT COUNT ( * ) - + 98 + 58 + 24
----
-15

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1182
SELECT ALL CAST( 82 AS SIGNED ) + + + COUNT( 27 ) + - 4 * - ( + - 81 ) * + 63 * - 89
----
1816751

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL CAST ( 82 AS INTEGER ) + + + COUNT ( 27 ) + - 4 * - ( + - 81 ) * + 63 * - 89
----
1816751

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1183
SELECT ALL + ( - 59 ) + - + 75 + ( - COUNT( * ) ) + 98 + - 7 * - COUNT( * ) DIV - - 82 - + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL + ( - 59 ) + - + 75 + ( - COUNT ( * ) ) + 98 + - 7 * - COUNT ( * ) / - - 82 - + COUNT ( * )
----
-38

query I rowsort
SELECT ALL 54 * + - 95 * - 14 AS col0
----
71820

query I rowsort
SELECT DISTINCT 13 + 86 + + + ( + 38 )
----
137

query I rowsort
SELECT ALL COALESCE ( + 92, - + 17 ) * - ( 80 ) col2
----
-7360

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

query II rowsort
SELECT DISTINCT 54, - 66 * + - 37 + + + NULLIF ( - - 11, 8 ) + + 69 + - 90 * - - 85 + + 37 AS col2
----
54
-5091

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT ALL 12 + - 43 - 65 + ( COUNT( * ) ) + + - 70 * + - 6
----
325

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL 12 + - 43 - 65 + ( COUNT ( * ) ) + + - 70 * + - 6
----
325

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT SUM( + CASE + 75 WHEN + 82 + 7 THEN + 94 WHEN + 29 THEN + ( 81 ) WHEN - + 58 THEN NULL END ) * + ( - + 39 ) * - + MIN( - 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1190
SELECT SUM ( + CASE + 75 WHEN + 82 + 7 THEN + 94 WHEN + 29 THEN + ( 81 ) WHEN - + 58 THEN NULL END ) * + ( - + 39 ) * - + MIN ( - 26 )
----
NULL

query II rowsort
SELECT ALL 59 col0, 11 * 31 * - 69 col1
----
59
-23529

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

skipif mysql # not compatible
query I rowsort label-1192
SELECT COUNT ( + 69 ) / + - 69
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1193
SELECT ALL 5 DIV MIN( DISTINCT + 7 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL 5 / MIN ( DISTINCT + 7 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT ALL 76 - - COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL 76 - - COUNT ( * ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-1195
SELECT - 19 AS col2, NULLIF ( - 2, + 27 ) - - COUNT( * ) col0
----
-19
-1

skipif mysql # not compatible
query II rowsort label-1195
SELECT - 19 AS col2, NULLIF ( - 2, + 27 ) - - COUNT ( * ) col0
----
-19
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1196
SELECT 77 AS col2, CAST( NULL AS SIGNED )
----
77
NULL

skipif mysql # not compatible
query II rowsort label-1196
SELECT 77 AS col2, CAST ( NULL AS INTEGER )
----
77
NULL

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

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

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

query I rowsort
SELECT - 55 + - 77 AS col2
----
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-1200
SELECT - 20 AS col0, + 69 * + 80 * COUNT( * ) + 15 AS col1
----
-20
5535

skipif mysql # not compatible
query II rowsort label-1200
SELECT - 20 AS col0, + 69 * + 80 * COUNT ( * ) + 15 AS col1
----
-20
5535

onlyif mysql # aggregate syntax: 
query II rowsort label-1201
SELECT ALL ( 11 ) * - COUNT( * ) AS col2, 39 col2
----
-11
39

skipif mysql # not compatible
query II rowsort label-1201
SELECT ALL ( 11 ) * - COUNT ( * ) AS col2, 39 col2
----
-11
39

onlyif mysql # aggregate syntax: 
query II rowsort label-1202
SELECT DISTINCT - 85 AS col1, 56 + - COUNT( * )
----
-85
55

skipif mysql # not compatible
query II rowsort label-1202
SELECT DISTINCT - 85 AS col1, 56 + - COUNT ( * )
----
-85
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT - MIN( - 23 ) - + - COUNT( ALL 79 ) * - 65
----
-42

skipif mysql # not compatible
query I rowsort label-1203
SELECT - MIN ( - 23 ) - + - COUNT ( ALL 79 ) * - 65
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1204
SELECT ALL + CASE + COUNT( * ) WHEN + - 25 THEN 56 * - - 75 / + CASE COALESCE ( + 94, + - COUNT( * ), - - 23 ) WHEN + CAST( NULL AS SIGNED ) + + COUNT( * ) THEN NULL ELSE 14 END - + - 96 + COUNT( ALL + 33 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL + CASE + COUNT ( * ) WHEN + - 25 THEN 56 * - - 75 / + CASE COALESCE ( + 94, + - COUNT ( * ), - - 23 ) WHEN + CAST ( NULL AS INTEGER ) + + COUNT ( * ) THEN NULL ELSE 14 END - + - 96 + COUNT ( ALL + 33 ) END
----
NULL

query I rowsort
SELECT - 80 * + 69 col1
----
-5520

query II rowsort
SELECT 36, 52 AS col0
----
36
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT + NULLIF ( + 28, - 4 * - 7 * - ( - COUNT( * ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1207
SELECT + NULLIF ( + 28, - 4 * - 7 * - ( - COUNT ( * ) ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1208
SELECT ALL - 98 * + - 36 + + 46 + CAST( NULL AS SIGNED ) * + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1208
SELECT ALL - 98 * + - 36 + + 46 + CAST ( NULL AS INTEGER ) * + - 72
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1209
SELECT ALL + NULLIF ( 75, - + 21 + + 75 + + 25 + - ( + - COUNT( * ) ) + + 32 * + + 6 * - COALESCE ( - 22, 32, 44 ) * - 48 * MIN( + + 25 ) ) DIV - - ( ( + 8 ) )
----
9

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL + NULLIF ( 75, - + 21 + + 75 + + 25 + - ( + - COUNT ( * ) ) + + 32 * + + 6 * - COALESCE ( - 22, 32, 44 ) * - 48 * MIN ( + + 25 ) ) / - - ( ( + 8 ) )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1210
SELECT 79 * + + 18 + + - COUNT( * ) DIV - CAST( MAX( 57 ) AS SIGNED ) AS col1
----
1422

skipif mysql # not compatible
query I rowsort label-1210
SELECT 79 * + + 18 + + - COUNT ( * ) / - CAST ( MAX ( 57 ) AS INTEGER ) AS col1
----
1422

query I rowsort
SELECT DISTINCT 95 * + 63
----
5985

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT DISTINCT + MIN( ( + - 32 ) ) + 21
----
-11

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT + MIN ( ( + - 32 ) ) + 21
----
-11

query I rowsort
SELECT 22 + + + 33 * - + 82 AS col0
----
-2684

query I rowsort
SELECT 57 * + - 54
----
-3078

query II rowsort
SELECT ALL - ( - 29 ) AS col0, 51 + - 74
----
29
-23

query I rowsort
SELECT - 29 * + CASE WHEN + 26 IS NULL THEN - ( + - 22 ) END + + 89
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1217
SELECT 38 * 18, + ( + CASE + - 85 WHEN - 59 THEN 89 + - CAST( NULL AS DECIMAL ) + + 15 WHEN + 67 * + 48 + - COUNT( * ) + + + 50 + - 46 + + 46 THEN - SUM( 69 ) WHEN - - NULLIF ( 22, + 29 ) THEN NULL ELSE NULL END ) * - 98 AS col1
----
684
NULL

skipif mysql # not compatible
query II rowsort label-1217
SELECT 38 * 18, + ( + CASE + - 85 WHEN - 59 THEN 89 + - CAST ( NULL AS REAL ) + + 15 WHEN + 67 * + 48 + - COUNT ( * ) + + + 50 + - 46 + + 46 THEN - SUM ( 69 ) WHEN - - NULLIF ( 22, + 29 ) THEN NULL ELSE NULL END ) * - 98 AS col1
----
684
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT ALL + 89 - - COUNT( * ) + 90 * + + COUNT( * ) * + 97 + + + 94 - - 38 * - + 55 - - + SUM( ALL 71 ) * - 39 AS col2
----
4055

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL + 89 - - COUNT ( * ) + 90 * + + COUNT ( * ) * + 97 + + + 94 - - 38 * - + 55 - - + SUM ( ALL 71 ) * - 39 AS col2
----
4055

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1220
SELECT DISTINCT COUNT( - 66 ) AS col1, + NULLIF ( 26, + 95 + - 47 )
----
1
26

skipif mysql # not compatible
query II rowsort label-1220
SELECT DISTINCT COUNT ( - 66 ) AS col1, + NULLIF ( 26, + 95 + - 47 )
----
1
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1221
SELECT - MAX( DISTINCT 94 ) + NULLIF ( - + 2, - 54 ) + + 84 DIV + 87 * - - 61 + - 2 * 63 AS col0
----
-222

skipif mysql # not compatible
query I rowsort label-1221
SELECT - MAX ( DISTINCT 94 ) + NULLIF ( - + 2, - 54 ) + + 84 / + 87 * - - 61 + - 2 * 63 AS col0
----
-222

query I rowsort
SELECT - 58 + - 90 AS col2
----
-148

query I rowsort
SELECT ALL NULLIF ( + 3, + 4 ) AS col0
----
3

query I rowsort
SELECT ALL + 63 * - 5
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT - COUNT( * ) + - 42 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1225
SELECT - COUNT ( * ) + - 42 AS col1
----
-43

query I rowsort
SELECT + ( - - 78 ) + + 69 AS col2
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1227
SELECT DISTINCT 63 * + CAST( NULL AS SIGNED ) / - + CASE + + ( - 9 ) WHEN - 66 * - 98 + + - COUNT( * ) THEN - COUNT( * ) END AS col2, - 52 * + 54 * 11 + + 7
----
NULL
-30881

skipif mysql # not compatible
query II rowsort label-1227
SELECT DISTINCT 63 * + CAST ( NULL AS INTEGER ) / - + CASE + + ( - 9 ) WHEN - 66 * - 98 + + - COUNT ( * ) THEN - COUNT ( * ) END AS col2, - 52 * + 54 * 11 + + 7
----
NULL
-30881

query I rowsort
SELECT - 53 * - 24
----
1272

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1230
SELECT - - ( - - NULLIF ( + 96, 42 ) ) + + 24 + - 95 * - COUNT( * ) AS col0, 39 DIV + - 73 + + 65
----
215
65

skipif mysql # not compatible
query II rowsort label-1230
SELECT - - ( - - NULLIF ( + 96, 42 ) ) + + 24 + - 95 * - COUNT ( * ) AS col0, 39 / + - 73 + + 65
----
215
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT + + COUNT( DISTINCT + 82 ) + - COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1231
SELECT + + COUNT ( DISTINCT + 82 ) + - COUNT ( * ) col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1232
SELECT ALL - 15 DIV 30 * - - 5 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1232
SELECT ALL - 15 / 30 * - - 5 AS col0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1234
SELECT DISTINCT - CAST( + 48 AS SIGNED ) DIV + 50 + + 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT - CAST ( + 48 AS INTEGER ) / + 50 + + 54 AS col1
----
54

query I rowsort
SELECT - + 7 + - 11 * + 48
----
-535

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT - CASE AVG ( ALL + 57 ) WHEN - 70 * - - COUNT( * ) THEN + 17 ELSE NULL END * COUNT( * ) * + - 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1236
SELECT - CASE AVG ( ALL + 57 ) WHEN - 70 * - - COUNT ( * ) THEN + 17 ELSE NULL END * COUNT ( * ) * + - 34 AS col0
----
NULL

query II rowsort
SELECT + 25 + + 36 AS col0, 97 - 2
----
61
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1238
SELECT + - ( + 75 ) DIV - 10 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-1238
SELECT + - ( + 75 ) / - 10 AS col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1239
SELECT + - 27 DIV - + 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1239
SELECT + - 27 / - + 91 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT ALL - 15 * - - 38 + - + ( 47 ) + + + SUM( ALL - - CASE - 94 WHEN 10 THEN NULL ELSE + ( 40 ) END ) * + 32
----
663

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL - 15 * - - 38 + - + ( 47 ) + + + SUM ( ALL - - CASE - 94 WHEN 10 THEN NULL ELSE + ( 40 ) END ) * + 32
----
663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1241
SELECT ALL + 8 * - + 36 * + 30 + + SUM( 10 ) col1, - 7 * - CAST( 93 AS SIGNED ) * + + COUNT( * ) + + - 10
----
-8630
641

skipif mysql # not compatible
query II rowsort label-1241
SELECT ALL + 8 * - + 36 * + 30 + + SUM ( 10 ) col1, - 7 * - CAST ( 93 AS INTEGER ) * + + COUNT ( * ) + + - 10
----
-8630
641

query I rowsort
SELECT DISTINCT 27 * + 13 + + + 87 AS col2
----
438

query I rowsort
SELECT DISTINCT + - 66 * + + 82 + - - 73 - 61 + - 51
----
-5451

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1244
SELECT DISTINCT - + 0 * + + ( - + 75 ) + - + 68 + - COUNT( * ) + - + 3 DIV 99 + ( - + COUNT( * ) )
----
-70

skipif mysql # not compatible
query I rowsort label-1244
SELECT DISTINCT - + 0 * + + ( - + 75 ) + - + 68 + - COUNT ( * ) + - + 3 / 99 + ( - + COUNT ( * ) )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1245
SELECT DISTINCT + ( 68 ) * + 18 + - 86 AS col0, + 1 * + + CASE - SUM( DISTINCT + 25 ) WHEN + - 69 * - - 0 THEN + 1 WHEN - ( AVG ( - 75 ) ) * - 95 + - CASE - 95 WHEN - 36 THEN + - CAST( NULL AS SIGNED ) ELSE - + COUNT( * ) + + 15 END / - 58 * - 62 + - 11 - - 88 THEN - CAST( 90 AS SIGNED ) END col2
----
1138
NULL

skipif mysql # not compatible
query II rowsort label-1245
SELECT DISTINCT + ( 68 ) * + 18 + - 86 AS col0, + 1 * + + CASE - SUM ( DISTINCT + 25 ) WHEN + - 69 * - - 0 THEN + 1 WHEN - ( AVG ( - 75 ) ) * - 95 + - CASE - 95 WHEN - 36 THEN + - CAST ( NULL AS INTEGER ) ELSE - + COUNT ( * ) + + 15 END / - 58 * - 62 + - 11 - - 88 THEN - CAST ( 90 AS INTEGER ) END col2
----
1138
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT DISTINCT - SUM( - ( 28 ) ) * + CASE 47 WHEN - + ( + ( + - 36 ) ) THEN + - 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1246
SELECT DISTINCT - SUM ( - ( 28 ) ) * + CASE 47 WHEN - + ( + ( + - 36 ) ) THEN + - 11 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1247
SELECT + NULLIF ( - + 22, + + CAST( - 13 AS SIGNED ) * - 3 + - COUNT( * ) ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-1247
SELECT + NULLIF ( - + 22, + + CAST ( - 13 AS INTEGER ) * - 3 + - COUNT ( * ) ) AS col2
----
-22

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1250
SELECT CASE + CASE CAST( NULL AS DECIMAL ) WHEN + 31 THEN - ( - ( NULLIF ( 26, + 60 + - 31 / - + 96 ) ) ) WHEN - + 4 / + - 73 + - 48 - + 1 THEN - 92 ELSE - 16 + + - 64 END WHEN 24 + - + AVG ( - NULLIF ( - + 5, - 44 ) ) * CAST( NULL AS SIGNED ) * - COUNT( * ) * + 23 THEN - 42 + + 40 / + COALESCE ( 57, - - 45 * 34 * - 91 ) WHEN - 20 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1250
SELECT CASE + CASE CAST ( NULL AS REAL ) WHEN + 31 THEN - ( - ( NULLIF ( 26, + 60 + - 31 / - + 96 ) ) ) WHEN - + 4 / + - 73 + - 48 - + 1 THEN - 92 ELSE - 16 + + - 64 END WHEN 24 + - + AVG ( - NULLIF ( - + 5, - 44 ) ) * CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + 23 THEN - 42 + + 40 / + COALESCE ( 57, - - 45 * 34 * - 91 ) WHEN - 20 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT ALL 81 * + - 76 - + + COALESCE ( + 82, - COUNT( * ) + + + 14, + + COUNT( * ) + - - COUNT( DISTINCT + ( - + 68 ) ) * 0 )
----
-6238

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL 81 * + - 76 - + + COALESCE ( + 82, - COUNT ( * ) + + + 14, + + COUNT ( * ) + - - COUNT ( DISTINCT + ( - + 68 ) ) * 0 )
----
-6238

onlyif mysql # DIV for integer division: 
query I rowsort label-1252
SELECT ALL + 66 DIV - 68 * + + 57 col1
----
0

skipif mysql # not compatible
query I rowsort label-1252
SELECT ALL + 66 / - 68 * + + 57 col1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1254
SELECT + NULLIF ( 24, + 72 ) DIV - - 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1254
SELECT + NULLIF ( 24, + 72 ) / - - 47 AS col1
----
0

query I rowsort
SELECT DISTINCT + 48 * - 84
----
-4032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1256
SELECT ALL - 9 * - - 80 * CAST( NULL AS SIGNED ) - + 26 * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL - 9 * - - 80 * CAST ( NULL AS INTEGER ) - + 26 * + 93
----
NULL

query I rowsort
SELECT ALL - 31 * - + 38 col0
----
1178

query I rowsort
SELECT NULLIF ( - + 3, - 96 ) AS col2
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1259
SELECT ALL 36 * - 40 - - CAST( NULL AS DECIMAL ) * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL 36 * - 40 - - CAST ( NULL AS REAL ) * 40
----
NULL

query I rowsort
SELECT DISTINCT 94 * - 53
----
-4982

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT - CASE - 67 WHEN + + 40 THEN NULL ELSE - COUNT( * ) END * + + 96 + - - MAX( + 33 )
----
129

skipif mysql # not compatible
query I rowsort label-1261
SELECT - CASE - 67 WHEN + + 40 THEN NULL ELSE - COUNT ( * ) END * + + 96 + - - MAX ( + 33 )
----
129

query I rowsort
SELECT DISTINCT + 86 * - 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT ALL NULLIF ( + COUNT( * ), COUNT( * ) / 23 )
----
1

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL NULLIF ( + COUNT ( * ), COUNT ( * ) / 23 )
----
1

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1265
SELECT ALL ( - CASE 58 WHEN + 62 THEN + - 81 WHEN - NULLIF ( 19, 42 DIV + 94 + + 89 + + + 67 ) * - - 50 THEN 57 END ) AS col0, ( 40 ) DIV + 99 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1265
SELECT ALL ( - CASE 58 WHEN + 62 THEN + - 81 WHEN - NULLIF ( 19, 42 / + 94 + + 89 + + + 67 ) * - - 50 THEN 57 END ) AS col0, ( 40 ) / + 99 AS col2
----
NULL
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1267
SELECT - 87 DIV + + 96 col1
----
0

skipif mysql # not compatible
query I rowsort label-1267
SELECT - 87 / + + 96 col1
----
0

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

query I rowsort
SELECT DISTINCT + 86 + + - 25
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT DISTINCT - - 35 + + + 57 + - 40 * + - 85 * COUNT( * ) AS col0
----
3492

skipif mysql # not compatible
query I rowsort label-1270
SELECT DISTINCT - - 35 + + + 57 + - 40 * + - 85 * COUNT ( * ) AS col0
----
3492

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT ALL - ( + 43 ) + + 50 + + NULLIF ( + COUNT( * ), 87 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL - ( + 43 ) + + 50 + + NULLIF ( + COUNT ( * ), 87 ) AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1273
SELECT - 40 + + + COUNT( * ) + - 21 + - 66 * - 62 * 48 + CASE WHEN NOT CASE 67 WHEN 94 THEN 43 WHEN + 74 * 85 THEN - COUNT( 7 ) ELSE NULL END <> + - 7 * - ( 92 ) DIV 53 + + 90 THEN + + 71 * - COUNT( ALL + - 10 ) DIV - MAX( DISTINCT + - 8 ) ELSE ( + COUNT( - 83 ) ) END + 60 AS col2, - 76 AS col2
----
196417
-76

skipif mysql # not compatible
query II rowsort label-1273
SELECT - 40 + + + COUNT ( * ) + - 21 + - 66 * - 62 * 48 + CASE WHEN NOT CASE 67 WHEN 94 THEN 43 WHEN + 74 * 85 THEN - COUNT ( 7 ) ELSE NULL END <> + - 7 * - ( 92 ) / 53 + + 90 THEN + + 71 * - COUNT ( ALL + - 10 ) / - MAX ( DISTINCT + - 8 ) ELSE ( + COUNT ( - 83 ) ) END + 60 AS col2, - 76 AS col2
----
196417
-76

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1275
SELECT + + 97 * - + 56 + + 91 * CAST( + 96 AS SIGNED ), 33 AS col0
----
3304
33

skipif mysql # not compatible
query II rowsort label-1275
SELECT + + 97 * - + 56 + + 91 * CAST ( + 96 AS INTEGER ), 33 AS col0
----
3304
33

query I rowsort
SELECT ALL - 81 * - 76
----
6156

query I rowsort
SELECT - 90 + + 89 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT ALL + + MAX( DISTINCT - 68 ) + + 78
----
10

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL + + MAX ( DISTINCT - 68 ) + + 78
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT + + CASE - 85 WHEN - 41 THEN NULL WHEN - 98 THEN ( 59 ) - - 76 * + 18 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1279
SELECT + + CASE - 85 WHEN - 41 THEN NULL WHEN - 98 THEN ( 59 ) - - 76 * + 18 * COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT - - COUNT( * ) * + - CASE + CASE WHEN ( + 3 ) IN ( + COALESCE ( - + 20, - 70 + - - 32 ) * - 42 ) THEN NULL ELSE - ( 53 ) * - COUNT( * ) END WHEN + 86 THEN COUNT( * ) / 67 END * + + 52 * - + AVG ( + 47 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1280
SELECT - - COUNT ( * ) * + - CASE + CASE WHEN ( + 3 ) IN ( + COALESCE ( - + 20, - 70 + - - 32 ) * - 42 ) THEN NULL ELSE - ( 53 ) * - COUNT ( * ) END WHEN + 86 THEN COUNT ( * ) / 67 END * + + 52 * - + AVG ( + 47 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1281
SELECT ALL + ( + 96 ) DIV + 53 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL + ( + 96 ) / + 53 AS col1
----
1

query II rowsort
SELECT 77 AS col1, 64 col1
----
77
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1283
SELECT - 46 DIV - 81 + - + 17 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-1283
SELECT - 46 / - 81 + - + 17 AS col0
----
-17

query II rowsort
SELECT + 58 * + 81 - + 63 * - - 46 col2, 4 * + 86 AS col1
----
1800
344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1285
SELECT ( - 63 ) DIV 28 + + 28 + - - 70 * + 67 - COUNT( 9 ) AS col1
----
4715

skipif mysql # not compatible
query I rowsort label-1285
SELECT ( - 63 ) / 28 + + 28 + - - 70 * + 67 - COUNT ( 9 ) AS col1
----
4715

query I rowsort
SELECT ALL 95 * 28 AS col0
----
2660

onlyif mysql # DIV for integer division: 
query I rowsort label-1287
SELECT ALL - 62 DIV - 54
----
1

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL - 62 / - 54
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1288
SELECT DISTINCT - CAST( - MIN( DISTINCT + - CAST( 90 AS SIGNED ) ) AS SIGNED ) AS col1, 75
----
-90
75

skipif mysql # not compatible
query II rowsort label-1288
SELECT DISTINCT - CAST ( - MIN ( DISTINCT + - CAST ( 90 AS INTEGER ) ) AS INTEGER ) AS col1, 75
----
-90
75

query II rowsort
SELECT ALL - 95 AS col2, 83 AS col0
----
-95
83

query I rowsort
SELECT ALL 35 - - 93 AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT 47 + + COUNT( * ) + - 86
----
-38

skipif mysql # not compatible
query I rowsort label-1291
SELECT 47 + + COUNT ( * ) + - 86
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT MAX( DISTINCT + 0 ) + - 30
----
-30

skipif mysql # not compatible
query I rowsort label-1292
SELECT MAX ( DISTINCT + 0 ) + - 30
----
-30

query II rowsort
SELECT + 10 col1, 65 * 50 AS col0
----
10
3250

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

skipif mysql # not compatible
query I rowsort label-1294
SELECT 99 * + + 0 + + - COUNT ( * ) * - 76 AS col0
----
76

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

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

query I rowsort
SELECT DISTINCT 40 * - 3 * - + 6
----
720

query I rowsort
SELECT 91 + - 1 * - + 95 AS col2
----
186

onlyif mysql # DIV for integer division: 
query I rowsort label-1298
SELECT ALL 87 DIV 27 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL 87 / 27 AS col1
----
3

query II rowsort
SELECT DISTINCT + 98, - 28 + 87 AS col2
----
98
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT + 11 * - - COUNT( * ) * 46
----
506

skipif mysql # not compatible
query I rowsort label-1300
SELECT + 11 * - - COUNT ( * ) * 46
----
506

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT COUNT( * ) + - 61 * + 77 * + 7 * 56
----
-1841223

skipif mysql # not compatible
query I rowsort label-1301
SELECT COUNT ( * ) + - 61 * + 77 * + 7 * 56
----
-1841223

onlyif mysql # DIV for integer division: 
query I rowsort label-1302
SELECT 50 DIV + 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1302
SELECT 50 / + 71 AS col0
----
0

query I rowsort
SELECT ALL - - 32 + 31 AS col1
----
63

query I rowsort
SELECT 80 * 45 * - 63 AS col2
----
-226800

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1305
SELECT DISTINCT - + 7 DIV CAST( - - 42 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1305
SELECT DISTINCT - + 7 / CAST ( - - 42 AS INTEGER ) AS col1
----
0

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

query I rowsort
SELECT 73 + + 0 * - 34 + + 20 + + - 26 * - - 70
----
-1727

query II rowsort
SELECT - 19, + 60 - 97 col2
----
-19
-37

query I rowsort
SELECT ALL - 80 * + 38 AS col2
----
-3040

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT - COALESCE ( + MIN( - 44 ), - COUNT( * ) * 92 + COUNT( ALL - 0 ) )
----
44

skipif mysql # not compatible
query I rowsort label-1310
SELECT - COALESCE ( + MIN ( - 44 ), - COUNT ( * ) * 92 + COUNT ( ALL - 0 ) )
----
44

onlyif mysql # DIV for integer division: 
query III rowsort label-1311
SELECT 73, - 12 DIV + 28 - - + 68 col1, - 73 AS col0
----
73
68
-73

skipif mysql # not compatible
query III rowsort label-1311
SELECT 73, - 12 / + 28 - - + 68 col1, - 73 AS col0
----
73
68
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT NULLIF ( + COALESCE ( + + ( - - 15 ), + - 79 + + + COALESCE ( - 36, 52 - + 54 * - + ( - + 86 ) * - + COUNT( * ) + + 39 ), + 11 ), + 60 + + + 1 ) + + + 59
----
74

skipif mysql # not compatible
query I rowsort label-1312
SELECT NULLIF ( + COALESCE ( + + ( - - 15 ), + - 79 + + + COALESCE ( - 36, 52 - + 54 * - + ( - + 86 ) * - + COUNT ( * ) + + 39 ), + 11 ), + 60 + + + 1 ) + + + 59
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT ALL - + 52 * + - COUNT( - + 20 ) + + NULLIF ( + 42, - COUNT( * ) + + - 8 ) + + 68
----
162

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL - + 52 * + - COUNT ( - + 20 ) + + NULLIF ( + 42, - COUNT ( * ) + + - 8 ) + + 68
----
162

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

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

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

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

query I rowsort
SELECT DISTINCT + 21 - 23 * 81 * + 15 AS col2
----
-27924

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

query I rowsort
SELECT DISTINCT - 37 col2
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1319
SELECT ALL 41 DIV ( - CASE - ( - + ( - 21 ) ) WHEN - + 3 * - COALESCE ( + + ( - - SUM( 32 ) ), + - 52 * - 58, + 28 - - 40 * 25 DIV - COUNT( ALL - + 6 ) * - 7 * + 71 + + 42 + + 32 ) + 97 + 89 DIV 14 THEN 78 ELSE + NULLIF ( - - 59, 38 ) * 20 + 12 END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL 41 / ( - CASE - ( - + ( - 21 ) ) WHEN - + 3 * - COALESCE ( + + ( - - SUM ( 32 ) ), + - 52 * - 58, + 28 - - 40 * 25 / - COUNT ( ALL - + 6 ) * - 7 * + 71 + + 42 + + 32 ) + 97 + 89 / 14 THEN 78 ELSE + NULLIF ( - - 59, 38 ) * 20 + 12 END ) AS col2
----
0

query I rowsort
SELECT 76 * ( + 67 )
----
5092

onlyif mysql # aggregate syntax: 
query II rowsort label-1321
SELECT 50 - - - 49 AS col1, MIN( DISTINCT + 32 ) AS col1
----
1
32

skipif mysql # not compatible
query II rowsort label-1321
SELECT 50 - - - 49 AS col1, MIN ( DISTINCT + 32 ) AS col1
----
1
32

query II rowsort
SELECT ( - 37 ) * 43, 24 + + - 98 AS col0
----
-1591
-74

onlyif mysql # DIV for integer division: 
query II rowsort label-1323
SELECT DISTINCT 88 DIV - 16 AS col1, - 23 AS col1
----
-5
-23

skipif mysql # not compatible
query II rowsort label-1323
SELECT DISTINCT 88 / - 16 AS col1, - 23 AS col1
----
-5
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1324
SELECT 66 DIV - CAST( 8 AS SIGNED ), - MIN( + 87 ) AS col2
----
-8
-87

skipif mysql # not compatible
query II rowsort label-1324
SELECT 66 / - CAST ( 8 AS INTEGER ), - MIN ( + 87 ) AS col2
----
-8
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-1325
SELECT - 22 DIV NULLIF ( - + 41, + - 10 ) + 35 + + + 77 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-1325
SELECT - 22 / NULLIF ( - + 41, + - 10 ) + 35 + + + 77 AS col1
----
112

onlyif mysql # DIV for integer division: 
query II rowsort label-1326
SELECT ALL 99 + + 57, - 58 DIV + + 86 AS col1
----
156
0

skipif mysql # not compatible
query II rowsort label-1326
SELECT ALL 99 + + 57, - 58 / + + 86 AS col1
----
156
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT ALL SUM( + 53 ) + 0 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL SUM ( + 53 ) + 0 AS col1
----
53

query II rowsort
SELECT DISTINCT 34 + - 60 AS col0, - 54
----
-26
-54

query I rowsort
SELECT ALL 46 * 83 AS col0
----
3818

onlyif mysql # aggregate syntax: 
query II rowsort label-1330
SELECT DISTINCT 4 + - NULLIF ( - + 57, - 40 + 24 + - + COUNT( * ) + + 46 ), - MIN( DISTINCT - 16 ) - 85 * + ( - 69 ) * + + 19 + + 59 AS col1
----
61
111510

skipif mysql # not compatible
query II rowsort label-1330
SELECT DISTINCT 4 + - NULLIF ( - + 57, - 40 + 24 + - + COUNT ( * ) + + 46 ), - MIN ( DISTINCT - 16 ) - 85 * + ( - 69 ) * + + 19 + + 59 AS col1
----
61
111510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1331
SELECT ALL 69 + + - 91 + - - COUNT( * ) DIV 67 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-1331
SELECT ALL 69 + + - 91 + - - COUNT ( * ) / 67 AS col2
----
-22

query I rowsort
SELECT ALL + 16 + - NULLIF ( + ( - 51 ), 89 ) + - + 66 * + 68 * + + 75 * - + 29 AS col2
----
9761467

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

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

query I rowsort
SELECT NULLIF ( 58, + + 4 )
----
58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1336
SELECT ALL - CAST( - CASE WHEN NOT + 24 IS NULL THEN + 37 END AS SIGNED ) AS col0, - 70 * 72 - + 99 col2
----
37
-5139

skipif mysql # not compatible
query II rowsort label-1336
SELECT ALL - CAST ( - CASE WHEN NOT + 24 IS NULL THEN + 37 END AS INTEGER ) AS col0, - 70 * 72 - + 99 col2
----
37
-5139

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT MIN( DISTINCT 6 ) * - + 88 AS col0
----
-528

skipif mysql # not compatible
query I rowsort label-1337
SELECT MIN ( DISTINCT 6 ) * - + 88 AS col0
----
-528

query I rowsort
SELECT ALL + NULLIF ( + + 18, - - 72 ) AS col1
----
18

query I rowsort
SELECT DISTINCT + 42 - + 70 + + 74 AS col1
----
46

query I rowsort
SELECT ALL + + 4 - - - 3 * 48 * - 17
----
2452

onlyif mysql # DIV for integer division: 
query I rowsort label-1341
SELECT - 8 DIV - - 25 - + + 1 + - 25 * - - 59 * 78 * - 6
----
690299

skipif mysql # not compatible
query I rowsort label-1341
SELECT - 8 / - - 25 - + + 1 + - 25 * - - 59 * 78 * - 6
----
690299

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1343
SELECT ALL + 7 DIV 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL + 7 / 45 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1344
SELECT 7 col1, CAST( COUNT( * ) AS SIGNED ) AS col2
----
7
1

skipif mysql # not compatible
query II rowsort label-1344
SELECT 7 col1, CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
7
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT CASE - 85 WHEN - 65 + + 64 THEN NULL WHEN 29 - + 6 THEN - + COUNT( * ) * - + 79 * + COUNT( * ) + 22 + - - 48 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1345
SELECT CASE - 85 WHEN - 65 + + 64 THEN NULL WHEN 29 - + 6 THEN - + COUNT ( * ) * - + 79 * + COUNT ( * ) + 22 + - - 48 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 8 * - 6 + - 39
----
-87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1347
SELECT NULLIF ( - 1, - 50 ), - CAST( ( 41 ) AS SIGNED ) DIV + 28
----
-1
-1

skipif mysql # not compatible
query II rowsort label-1347
SELECT NULLIF ( - 1, - 50 ), - CAST ( ( 41 ) AS INTEGER ) / + 28
----
-1
-1

query I rowsort
SELECT - 35 * - 61 AS col1
----
2135

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

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

query II rowsort
SELECT + 99 AS col1, - 65
----
99
-65

query I rowsort
SELECT NULLIF ( 7, - 6 )
----
7

query I rowsort
SELECT ALL 68 * - - 94 + - 51 AS col1
----
6341

onlyif mysql # DIV for integer division: 
query I rowsort label-1353
SELECT - COALESCE ( + 73, - 47, 50 * 53 DIV + 82 ) - + 56 AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-1353
SELECT - COALESCE ( + 73, - 47, 50 * 53 / + 82 ) - + 56 AS col0
----
-129

query II rowsort
SELECT DISTINCT 93 * - - COALESCE ( - - ( 92 ), - 6 ) + + 6 AS col2, 5 * - - 91 AS col2
----
8562
455

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1355
SELECT DISTINCT + 45 * - 51 + - 13 AS col2, SUM( ALL + 82 ) * + MIN( DISTINCT - - 27 ) + - SUM( ALL 57 ) + - SUM( - - 7 ) + + 9 + - + 58 DIV + 74
----
-2308
2159

skipif mysql # not compatible
query II rowsort label-1355
SELECT DISTINCT + 45 * - 51 + - 13 AS col2, SUM ( ALL + 82 ) * + MIN ( DISTINCT - - 27 ) + - SUM ( ALL 57 ) + - SUM ( - - 7 ) + + 9 + - + 58 / + 74
----
-2308
2159

onlyif mysql # DIV for integer division: 
query I rowsort label-1356
SELECT - 58 DIV 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1356
SELECT - 58 / 84 AS col0
----
0

query I rowsort
SELECT NULLIF ( + 17, ( - - 4 ) ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT - 46 + 0 - + - COUNT( * ) - 63 * - + 26 AS col2
----
1593

skipif mysql # not compatible
query I rowsort label-1358
SELECT - 46 + 0 - + - COUNT ( * ) - 63 * - + 26 AS col2
----
1593

onlyif mysql # DIV for integer division: 
query I rowsort label-1359
SELECT + 62 DIV - + ( COALESCE ( + 78, - 62 * + 43 - + 99 ) ) + 73 + + + 14 DIV - 23
----
73

skipif mysql # not compatible
query I rowsort label-1359
SELECT + 62 / - + ( COALESCE ( + 78, - 62 * + 43 - + 99 ) ) + 73 + + + 14 / - 23
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1360
SELECT ALL - 6 * ( - - 17 ) DIV - 22 + 30 - + 16 + - 8
----
10

skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL - 6 * ( - - 17 ) / - 22 + 30 - + 16 + - 8
----
10

query II rowsort
SELECT 48 AS col2, + 36 AS col2
----
48
36

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

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

query I rowsort
SELECT - - 99 + 12 AS col2
----
111

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1365
SELECT + + 24 + + CAST( + + 15 AS SIGNED ) col2
----
39

skipif mysql # not compatible
query I rowsort label-1365
SELECT + + 24 + + CAST ( + + 15 AS INTEGER ) col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1366
SELECT ALL 20, COUNT( * ) + - 49 + + - 97 - - - COUNT( * ) + + 16 DIV - - MAX( 16 ) AS col2
----
20
-145

skipif mysql # not compatible
query II rowsort label-1366
SELECT ALL 20, COUNT ( * ) + - 49 + + - 97 - - - COUNT ( * ) + + 16 / - - MAX ( 16 ) AS col2
----
20
-145

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

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

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

skipif mysql # not compatible
query II rowsort label-1368
SELECT ALL COUNT ( * ) AS col1, - 5
----
1
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1369
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) * - 59 DIV + + CAST( + 87 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) * - 59 / + + CAST ( + 87 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1370
SELECT ALL + COALESCE ( + 96, + 61, COUNT( * ) ) AS col0, COALESCE ( 66, 87 DIV - 6 ) * 59 + - 15 + + 73 * - 83 + + COALESCE ( + - 85, - 5 ) - ( 11 )
----
96
-2276

skipif mysql # not compatible
query II rowsort label-1370
SELECT ALL + COALESCE ( + 96, + 61, COUNT ( * ) ) AS col0, COALESCE ( 66, 87 / - 6 ) * 59 + - 15 + + 73 * - 83 + + COALESCE ( + - 85, - 5 ) - ( 11 )
----
96
-2276

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

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

query II rowsort
SELECT - - 89 AS col1, + 31 AS col0
----
89
31

query I rowsort
SELECT ALL 66 * ( 90 )
----
5940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1374
SELECT ALL 77 * - CASE + 87 WHEN 88 - + - 48 THEN - + CASE + 57 WHEN + 54 + + + SUM( DISTINCT - 13 ) + - + 90 + + + 32 + - - 88 * - 11 + 15 * 96 * + 54 * + CASE + 19 WHEN + - 85 + + COUNT( - 28 ) THEN 60 ELSE NULL END THEN NULL ELSE + - 70 + - + CAST( + 6 AS SIGNED ) - - + 67 END * - 80 * 15 + 69 + - - 59 END * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL 77 * - CASE + 87 WHEN 88 - + - 48 THEN - + CASE + 57 WHEN + 54 + + + SUM ( DISTINCT - 13 ) + - + 90 + + + 32 + - - 88 * - 11 + 15 * 96 * + 54 * + CASE + 19 WHEN + - 85 + + COUNT ( - 28 ) THEN 60 ELSE NULL END THEN NULL ELSE + - 70 + - + CAST ( + 6 AS INTEGER ) - - + 67 END * - 80 * 15 + 69 + - - 59 END * + 63
----
NULL

query I rowsort
SELECT + 60 + 1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT DISTINCT COUNT( - 31 ) + + 99 * + - COUNT( + 72 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-1376
SELECT DISTINCT COUNT ( - 31 ) + + 99 * + - COUNT ( + 72 ) AS col2
----
-98

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

query I rowsort
SELECT DISTINCT 35 * - + 92
----
-3220

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1380
SELECT DISTINCT 57 / - + ( ( + 51 ) ) * - - COUNT( * ) + - - 20 + - 63 * 89 * - 30 + COUNT( * ) / COUNT( * ) + + NULLIF ( 68, - 87 ) * + CAST( NULL AS SIGNED ) + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1380
SELECT DISTINCT 57 / - + ( ( + 51 ) ) * - - COUNT ( * ) + - - 20 + - 63 * 89 * - 30 + COUNT ( * ) / COUNT ( * ) + + NULLIF ( 68, - 87 ) * + CAST ( NULL AS INTEGER ) + 5
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1381
SELECT DISTINCT - ( + 34 ) / - 10 + - ( + AVG ( ALL - + CAST( NULL AS SIGNED ) ) ) + + COUNT( ALL + 17 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT - ( + 34 ) / - 10 + - ( + AVG ( ALL - + CAST ( NULL AS INTEGER ) ) ) + + COUNT ( ALL + 17 ) col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT + COALESCE ( 17, + 40 * + - 98 ) * + SUM( 77 )
----
1309

skipif mysql # not compatible
query I rowsort label-1383
SELECT + COALESCE ( 17, + 40 * + - 98 ) * + SUM ( 77 )
----
1309

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1386
SELECT ALL - 45 DIV - ( COUNT( - 58 ) ) - - 4 * + - 10
----
5

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL - 45 / - ( COUNT ( - 58 ) ) - - 4 * + - 10
----
5

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

skipif mysql # not compatible
query I rowsort label-1387
SELECT - COUNT ( * ) * 17
----
-17

query I rowsort
SELECT DISTINCT 69 * + 49 * - 56 col1
----
-189336

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1389
SELECT ALL + ( - COUNT( * ) ) col2, - ( - COALESCE ( - 9, + 74 + + - 56, 60 DIV COUNT( * ) + + 63 - - - 27 + + 34 ) )
----
-1
-9

skipif mysql # not compatible
query II rowsort label-1389
SELECT ALL + ( - COUNT ( * ) ) col2, - ( - COALESCE ( - 9, + 74 + + - 56, 60 / COUNT ( * ) + + 63 - - - 27 + + 34 ) )
----
-1
-9

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

skipif mysql # not compatible
query I rowsort label-1390
SELECT - - 70 * - + MAX ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1391
SELECT ALL + CAST( + 9 AS SIGNED ) * + - 57
----
-513

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL + CAST ( + 9 AS INTEGER ) * + - 57
----
-513

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

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

query I rowsort
SELECT - 84 * 5 * 42 AS col1
----
-17640

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT - 54 * - CASE + - 13 WHEN 58 THEN NULL WHEN 36 * + + ( - 23 ) + + - 62 * + 74 + 33 / + AVG ( 99 ) + + 12 - 68 + + 44 + + 43 / + COUNT( * ) * + + 65 + - 17 / + - 27 * ( 80 ) * 39 THEN COUNT( * ) WHEN + ( + 11 ) THEN NULL WHEN + COUNT( * ) THEN 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1395
SELECT - 54 * - CASE + - 13 WHEN 58 THEN NULL WHEN 36 * + + ( - 23 ) + + - 62 * + 74 + 33 / + AVG ( 99 ) + + 12 - 68 + + 44 + + 43 / + COUNT ( * ) * + + 65 + - 17 / + - 27 * ( 80 ) * 39 THEN COUNT ( * ) WHEN + ( + 11 ) THEN NULL WHEN + COUNT ( * ) THEN 51 ELSE NULL END
----
NULL

query I rowsort
SELECT - CASE - + 84 WHEN - + 52 THEN - 34 ELSE - COALESCE ( + - 6, 86 ) END
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1397
SELECT ALL + - 21 DIV 44 * - + 9 DIV - - CASE + 21 WHEN 54 * - 14 DIV + - COUNT( ALL - 70 ) THEN + 19 ELSE - + COUNT( ALL - 98 ) + - COUNT( - 38 ) * + MAX( - 82 ) END * + + 46 * 34 * 39 + - + 76 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL + - 21 / 44 * - + 9 / - - CASE + 21 WHEN 54 * - 14 / + - COUNT ( ALL - 70 ) THEN + 19 ELSE - + COUNT ( ALL - 98 ) + - COUNT ( - 38 ) * + MAX ( - 82 ) END * + + 46 * 34 * 39 + - + 76 AS col0
----
-76

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1399
SELECT ALL - 21 DIV 42 col1
----
0

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL - 21 / 42 col1
----
0

query I rowsort
SELECT ALL - ( + 32 ) * + COALESCE ( + 41, - 55, 69 )
----
-1312

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

query I rowsort
SELECT ALL 82 * 8
----
656

query I rowsort
SELECT DISTINCT + - 16 + - 61 AS col0
----
-77

query I rowsort
SELECT - 70 * 79 AS col1
----
-5530

query I rowsort
SELECT 40 + - 2
----
38

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

query I rowsort
SELECT DISTINCT 89 + + 10 AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1408
SELECT CAST( NULL AS SIGNED ) * COUNT( - 82 ) AS col2, ( 78 )
----
NULL
78

skipif mysql # not compatible
query II rowsort label-1408
SELECT CAST ( NULL AS INTEGER ) * COUNT ( - 82 ) AS col2, ( 78 )
----
NULL
78

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1410
SELECT ALL 42, - CAST( - + 20 AS SIGNED ) AS col1
----
42
20

skipif mysql # not compatible
query II rowsort label-1410
SELECT ALL 42, - CAST ( - + 20 AS INTEGER ) AS col1
----
42
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1411
SELECT ( + 57 ) DIV 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1411
SELECT ( + 57 ) / 61 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1412
SELECT ALL 23 + 83 + 45 + + 78 * - - 3 - + 66 + - - CAST( NULL AS SIGNED ) * + ( + - 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1412
SELECT ALL 23 + 83 + 45 + + 78 * - - 3 - + 66 + - - CAST ( NULL AS INTEGER ) * + ( + - 23 )
----
NULL

query I rowsort
SELECT 75 * 91
----
6825

query I rowsort
SELECT 81 + + 54
----
135

query II rowsort
SELECT 94 AS col1, ( ( 52 ) )
----
94
52

query I rowsort
SELECT 83 * - 64 + + + 43 + + + 33 AS col1
----
-5236

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT ( CASE + 92 WHEN 41 THEN COUNT( * ) WHEN 13 + 83 * - 89 THEN NULL END ) - + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-1418
SELECT ( CASE + 92 WHEN 41 THEN COUNT ( * ) WHEN 13 + 83 * - 89 THEN NULL END ) - + 66
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1419
SELECT 19 DIV + 16
----
1

skipif mysql # not compatible
query I rowsort label-1419
SELECT 19 / + 16
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1420
SELECT ALL - ( + ( SUM( ALL + 49 ) ) ) DIV + 23 col1
----
-2

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL - ( + ( SUM ( ALL + 49 ) ) ) / + 23 col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1421
SELECT - 71 DIV + ( - 3 ) + - 42
----
-19

skipif mysql # not compatible
query I rowsort label-1421
SELECT - 71 / + ( - 3 ) + - 42
----
-19

query I rowsort
SELECT 42 * - ( ( 21 ) )
----
-882

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT 38 * - COUNT( * ) - - 40 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1425
SELECT 38 * - COUNT ( * ) - - 40 AS col2
----
2

query I rowsort
SELECT 54 * + 85 AS col2
----
4590

query I rowsort
SELECT ALL + 48 * + 53
----
2544

query I rowsort
SELECT 61 - + 42
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT - 26 * 56 + COUNT( * )
----
-1455

skipif mysql # not compatible
query I rowsort label-1429
SELECT - 26 * 56 + COUNT ( * )
----
-1455

query I rowsort
SELECT 44 * + ( - 3 )
----
-132

query I rowsort
SELECT ALL 67 * 8 AS col0
----
536

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

skipif mysql # not compatible
query I rowsort label-1432
SELECT 51 + - 96 * COUNT ( * ) AS col0
----
-45

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

query I rowsort
SELECT 60 + 41
----
101

query I rowsort
SELECT 70 + 54
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT + 88 * + COUNT( * ) + - CASE 81 WHEN 50 * + 86 THEN NULL WHEN 78 * + 81 THEN + 96 WHEN - 10 / - COUNT( * ) THEN NULL ELSE + 41 END
----
47

skipif mysql # not compatible
query I rowsort label-1436
SELECT + 88 * + COUNT ( * ) + - CASE 81 WHEN 50 * + 86 THEN NULL WHEN 78 * + 81 THEN + 96 WHEN - 10 / - COUNT ( * ) THEN NULL ELSE + 41 END
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1437
SELECT 60 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-1437
SELECT 60 / - 67
----
0

query I rowsort
SELECT 95 + - 65
----
30

query I rowsort
SELECT 69 * + ( 66 ) col2
----
4554

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

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL + COUNT ( * ) + ( - 31 ) AS col1
----
-30

query I rowsort
SELECT DISTINCT - 59 * - 27 AS col1
----
1593

onlyif mysql # DIV for integer division: 
query I rowsort label-1442
SELECT ALL - 86 DIV 17
----
-5

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL - 86 / 17
----
-5

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1444
SELECT ALL COALESCE ( - SUM( ALL - 56 ), COUNT( * ) DIV + 26 ) * 14 AS col0
----
784

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL COALESCE ( - SUM ( ALL - 56 ), COUNT ( * ) / + 26 ) * 14 AS col0
----
784

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT MIN( ALL + 72 ) * 21
----
1512

skipif mysql # not compatible
query I rowsort label-1445
SELECT MIN ( ALL + 72 ) * 21
----
1512

query I rowsort
SELECT ALL + 14 + - 2 AS col2
----
12

query I rowsort
SELECT 75 - + 44 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT ALL MIN( 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL MIN ( 43 ) AS col0
----
43

query I rowsort
SELECT 81 + 32
----
113

query I rowsort
SELECT 20 * 42 AS col1
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT 26 + ( NULLIF ( 69, + 41 * - COUNT( * ) ) )
----
95

skipif mysql # not compatible
query I rowsort label-1451
SELECT 26 + ( NULLIF ( 69, + 41 * - COUNT ( * ) ) )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT DISTINCT 34 - - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-1452
SELECT DISTINCT 34 - - COUNT ( * )
----
35

query I rowsort
SELECT ALL 69 - + 71
----
-2

query I rowsort
SELECT 10 * - 39 AS col1
----
-390

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

skipif mysql # not compatible
query I rowsort label-1455
SELECT DISTINCT - ( - MIN ( ( 89 ) ) )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT COUNT( * ) - 86
----
-85

skipif mysql # not compatible
query I rowsort label-1456
SELECT COUNT ( * ) - 86
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1457
SELECT - 50 DIV - COALESCE ( 91 + - 56, - 39 + + SUM( DISTINCT - 18 ) ) + + 93 * + 93
----
8650

skipif mysql # not compatible
query I rowsort label-1457
SELECT - 50 / - COALESCE ( 91 + - 56, - 39 + + SUM ( DISTINCT - 18 ) ) + + 93 * + 93
----
8650

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT + ( + NULLIF ( - 3, + 94 + + COUNT( * ) ) ) * - 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1459
SELECT + ( + NULLIF ( - 3, + 94 + + COUNT ( * ) ) ) * - 0 AS col1
----
0

query I rowsort
SELECT DISTINCT 87 * 61
----
5307

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1463
SELECT + + 87 DIV - 31 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1463
SELECT + + 87 / - 31 AS col0
----
-2

query I rowsort
SELECT + 75 * + 16 AS col2
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT SUM( DISTINCT + 91 ) * - 0 + + 51
----
51

skipif mysql # not compatible
query I rowsort label-1465
SELECT SUM ( DISTINCT + 91 ) * - 0 + + 51
----
51

query I rowsort
SELECT DISTINCT - + 10 * + 12 + - 44 AS col2
----
-164

onlyif mysql # DIV for integer division: 
query I rowsort label-1467
SELECT DISTINCT + 99 DIV - 12
----
-8

skipif mysql # not compatible
query I rowsort label-1467
SELECT DISTINCT + 99 / - 12
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT ALL + SUM( ALL 68 ) * - ( 27 + + 10 * - COUNT( * ) ) + + COUNT( * ) * 35 AS col0
----
-1121

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL + SUM ( ALL 68 ) * - ( 27 + + 10 * - COUNT ( * ) ) + + COUNT ( * ) * 35 AS col0
----
-1121

query I rowsort
SELECT DISTINCT + 56 * 8 + + 13 * 61
----
1241

onlyif mysql # DIV for integer division: 
query I rowsort label-1470
SELECT + + 60 DIV - 22
----
-2

skipif mysql # not compatible
query I rowsort label-1470
SELECT + + 60 / - 22
----
-2

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

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

query I rowsort
SELECT ALL - 80 + 78 * CASE + 40 WHEN 39 THEN 52 END AS col1
----
NULL

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

query I rowsort
SELECT ALL + 45 + 11 + 18
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT SUM( ALL + 89 ) col2
----
89

skipif mysql # not compatible
query I rowsort label-1475
SELECT SUM ( ALL + 89 ) col2
----
89

query I rowsort
SELECT + 89 - - 70
----
159

query I rowsort
SELECT DISTINCT 12 + + 72 AS col2
----
84

query I rowsort
SELECT ALL CASE - 90 WHEN 96 * 75 THEN 82 ELSE - NULLIF ( 67, + 39 ) END AS col1
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-1479
SELECT ALL COALESCE ( + + 18, NULLIF ( 86, + 41 ) DIV - 26, ( + ( - 91 ) ) ) col0
----
18

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL COALESCE ( + + 18, NULLIF ( 86, + 41 ) / - 26, ( + ( - 91 ) ) ) col0
----
18

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

skipif mysql # not compatible
query I rowsort label-1480
SELECT - COUNT ( * ) / - 90 col0
----
0

query I rowsort
SELECT ALL 47 - - 40 * - 39 AS col0
----
-1513

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

skipif mysql # not compatible
query I rowsort label-1482
SELECT DISTINCT MAX ( - 82 )
----
-82

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT - 11 - - + 56 - COUNT( * ) * - 98 AS col0
----
143

skipif mysql # not compatible
query I rowsort label-1486
SELECT - 11 - - + 56 - COUNT ( * ) * - 98 AS col0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT - NULLIF ( - NULLIF ( + 59, - COUNT( * ) ), 45 ) * - 91 AS col0
----
-5369

skipif mysql # not compatible
query I rowsort label-1487
SELECT - NULLIF ( - NULLIF ( + 59, - COUNT ( * ) ), 45 ) * - 91 AS col0
----
-5369

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1488
SELECT DISTINCT + 37 DIV - + NULLIF ( 99, COUNT( * ) ) * + MAX( ALL + 44 + 49 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1488
SELECT DISTINCT + 37 / - + NULLIF ( 99, COUNT ( * ) ) * + MAX ( ALL + 44 + 49 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1489
SELECT ALL COALESCE ( - - SUM( + 25 ), - CASE - SUM( ALL + CAST( NULL AS SIGNED ) ) WHEN - 84 * 26 THEN 90 WHEN 80 THEN 20 ELSE - 19 END )
----
25

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL COALESCE ( - - SUM ( + 25 ), - CASE - SUM ( ALL + CAST ( NULL AS INTEGER ) ) WHEN - 84 * 26 THEN 90 WHEN 80 THEN 20 ELSE - 19 END )
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1490
SELECT - 75 DIV + COALESCE ( - 97, 63 * - 48 + - 49, + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-1490
SELECT - 75 / + COALESCE ( - 97, 63 * - 48 + - 49, + COUNT ( * ) )
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1492
SELECT DISTINCT + NULLIF ( - - MIN( ALL 79 ), COUNT( * ) ) DIV 48
----
1

skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT + NULLIF ( - - MIN ( ALL 79 ), COUNT ( * ) ) / 48
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT ALL - ( SUM( 52 ) ) * 8
----
-416

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL - ( SUM ( 52 ) ) * 8
----
-416

query I rowsort
SELECT - 28 + + 41 + - 85 * - 17 col1
----
1458

query I rowsort
SELECT ALL + 20 * - 91 AS col1
----
-1820

query I rowsort
SELECT DISTINCT - ( - 68 ) * + 22
----
1496

query I rowsort
SELECT - 32 + - 88
----
-120

query I rowsort
SELECT ALL - 86 * 78
----
-6708

onlyif mysql # DIV for integer division: 
query I rowsort label-1499
SELECT 42 DIV + 69 + - 46 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-1499
SELECT 42 / + 69 + - 46 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT - 73 * + CASE 90 WHEN MAX( + 57 ) THEN NULL WHEN 85 - 9 THEN 22 * 97 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1500
SELECT - 73 * + CASE 90 WHEN MAX ( + 57 ) THEN NULL WHEN 85 - 9 THEN 22 * 97 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1501
SELECT + 18 DIV + - 17 - - NULLIF ( + 90 + + 11, 40 )
----
100

skipif mysql # not compatible
query I rowsort label-1501
SELECT + 18 / + - 17 - - NULLIF ( + 90 + + 11, 40 )
----
100

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

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

query I rowsort
SELECT ALL + - 66 * + NULLIF ( - 70, ( + 49 ) + - 41 / 52 ) + 70 col1
----
4690

query I rowsort
SELECT + 43 * + + 96 * + 85 + 18 col2
----
350898

query I rowsort
SELECT ALL - 66 * - 79 + + 14 + 42 AS col0
----
5270

onlyif mysql # DIV for integer division: 
query I rowsort label-1506
SELECT DISTINCT + NULLIF ( - 21, 94 + + 24 ) DIV + 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1506
SELECT DISTINCT + NULLIF ( - 21, 94 + + 24 ) / + 34 AS col2
----
0

query I rowsort
SELECT - 62 + + 98 + 52
----
88

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

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

query I rowsort
SELECT - CASE + - 45 WHEN - 40 + - 93 THEN NULL ELSE + 47 END + ( - 63 ) * + 97
----
-6158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1510
SELECT + COALESCE ( - - ( + 3 ), + 26 + COUNT( * ), + 17 ) DIV - 46 - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1510
SELECT + COALESCE ( - - ( + 3 ), + 26 + COUNT ( * ), + 17 ) / - 46 - - COUNT ( * )
----
1

query I rowsort
SELECT 29 * - 75 + + 7 * 86
----
-1573

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

query I rowsort
SELECT ALL - 30 * - 77 + 39 * 29
----
3441

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT ALL + + COUNT( ALL - 79 ) * 19 col1
----
19

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL + + COUNT ( ALL - 79 ) * 19 col1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-1515
SELECT + - 65 * 83 DIV 80 + 49 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-1515
SELECT + - 65 * 83 / 80 + 49 AS col2
----
-18

query I rowsort
SELECT ALL 98 * + 26 - - 76 + + 85
----
2709

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

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL + COUNT ( * ) / 79 * - - 87
----
0

query I rowsort
SELECT + 59 * - + ( 48 ) * 29
----
-82128

query I rowsort
SELECT + 30 * - - 35
----
1050

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT ALL COALESCE ( + ( - - COUNT( - 25 ) ), + 84 * 20 + 48 )
----
1

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL COALESCE ( + ( - - COUNT ( - 25 ) ), + 84 * 20 + 48 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT ALL MIN( ALL + + 41 ) * + 62 AS col0
----
2542

skipif mysql # not compatible
query I rowsort label-1526
SELECT ALL MIN ( ALL + + 41 ) * + 62 AS col0
----
2542

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1527
SELECT DISTINCT CASE ( SUM( 86 ) ) WHEN 55 THEN - 10 + - CASE 37 WHEN NULLIF ( CASE WHEN 54 > ( - 17 ) THEN - 60 ELSE + COUNT( * ) * 73 END, 3 ) * ( - 2 ) + 79 THEN + 18 END WHEN - CAST( COALESCE ( 7, 35 ) AS SIGNED ) - - ( 42 ) / 26 THEN NULL END * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT CASE ( SUM ( 86 ) ) WHEN 55 THEN - 10 + - CASE 37 WHEN NULLIF ( CASE WHEN 54 > ( - 17 ) THEN - 60 ELSE + COUNT ( * ) * 73 END, 3 ) * ( - 2 ) + 79 THEN + 18 END WHEN - CAST ( COALESCE ( 7, 35 ) AS INTEGER ) - - ( 42 ) / 26 THEN NULL END * - 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT ALL COALESCE ( + MAX( - 34 ), + CASE 42 WHEN + 56 THEN 6 WHEN 39 * 71 THEN NULL END, 9 )
----
-34

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL COALESCE ( + MAX ( - 34 ), + CASE 42 WHEN + 56 THEN 6 WHEN 39 * 71 THEN NULL END, 9 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT + 16 - - + CASE + 79 WHEN 50 * + 46 THEN 2 WHEN 49 * 73 THEN MAX( 87 ) WHEN - COALESCE ( + 26, 67 * COALESCE ( 62, 75, 30 * 47 ) ) THEN - ( + MIN( DISTINCT 63 ) ) * CASE 72 / 8 WHEN 41 THEN 66 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1529
SELECT + 16 - - + CASE + 79 WHEN 50 * + 46 THEN 2 WHEN 49 * 73 THEN MAX ( 87 ) WHEN - COALESCE ( + 26, 67 * COALESCE ( 62, 75, 30 * 47 ) ) THEN - ( + MIN ( DISTINCT 63 ) ) * CASE 72 / 8 WHEN 41 THEN 66 END END AS col2
----
NULL

query I rowsort
SELECT + 30 * + 27 AS col1
----
810

query I rowsort
SELECT 48 - 33 + - + 42 AS col0
----
-27

query I rowsort
SELECT + 13 + - 73
----
-60

query I rowsort
SELECT DISTINCT - + 49 + 59 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT DISTINCT - 96 + - COUNT( 4 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-1534
SELECT DISTINCT - 96 + - COUNT ( 4 ) AS col1
----
-97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1536
SELECT 48 + - ( + - 14 ) DIV 29 col0
----
48

skipif mysql # not compatible
query I rowsort label-1536
SELECT 48 + - ( + - 14 ) / 29 col0
----
48

query I rowsort
SELECT DISTINCT + 83 + - + 3 + + - 88
----
-8

query I rowsort
SELECT ALL - - 7 + - 47 * 9 * 64
----
-27065

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

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

query I rowsort
SELECT 24 + - 41 + - 23 - 33 AS col2
----
-73

query I rowsort
SELECT 4 * - 51 AS col2
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT DISTINCT - - NULLIF ( MAX( DISTINCT 79 ), + ( - 79 ) ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-1542
SELECT DISTINCT - - NULLIF ( MAX ( DISTINCT 79 ), + ( - 79 ) ) AS col2
----
79

query I rowsort
SELECT DISTINCT + + 65 - 96 AS col1
----
-31

query II rowsort
SELECT + 92 AS col1, 85 * ( + 32 ) AS col0
----
92
2720

onlyif mysql # aggregate syntax: 
query II rowsort label-1545
SELECT ALL - - 40 AS col1, 19 + - COUNT( * )
----
40
18

skipif mysql # not compatible
query II rowsort label-1545
SELECT ALL - - 40 AS col1, 19 + - COUNT ( * )
----
40
18

query I rowsort
SELECT 96 * 29 AS col0
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT ALL 54 - - 80 * 35 + + - COUNT( * ) AS col0
----
2853

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL 54 - - 80 * 35 + + - COUNT ( * ) AS col0
----
2853

query II rowsort
SELECT 69 * - 65 AS col0, 27 AS col1
----
-4485
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1549
SELECT ALL + 55 DIV 18 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL + 55 / 18 AS col0
----
3

query I rowsort
SELECT + 50 * - 35 - ( - 18 ) AS col1
----
-1732

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT NULLIF ( - COUNT( * ), + 9 ) * - 15 * + COUNT( * ) + 80
----
95

skipif mysql # not compatible
query I rowsort label-1551
SELECT NULLIF ( - COUNT ( * ), + 9 ) * - 15 * + COUNT ( * ) + 80
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1552
SELECT NULLIF ( - 37, + - 86 - - - 82 + 44 ) DIV - 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1552
SELECT NULLIF ( - 37, + - 86 - - - 82 + 44 ) / - 98 AS col2
----
0

query I rowsort
SELECT DISTINCT + 37 * + 75 * ( + - 9 ) AS col0
----
-24975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1554
SELECT 19 - 46 - - 46 * - 43 DIV COUNT( * ) AS col0
----
-2005

skipif mysql # not compatible
query I rowsort label-1554
SELECT 19 - 46 - - 46 * - 43 / COUNT ( * ) AS col0
----
-2005

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT 26 DIV - - 5
----
5

skipif mysql # not compatible
query I rowsort label-1555
SELECT 26 / - - 5
----
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT NULLIF ( 86, + COUNT( * ) * - 25 ) * 14
----
1204

skipif mysql # not compatible
query I rowsort label-1557
SELECT NULLIF ( 86, + COUNT ( * ) * - 25 ) * 14
----
1204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1558
SELECT ALL 10 + + CAST( NULL AS SIGNED ) + + + ( + - 47 ) * 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL 10 + + CAST ( NULL AS INTEGER ) + + + ( + - 47 ) * 35 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT 9 + - MIN( ALL + + CASE - 1 WHEN - 1 / - 63 THEN NULL ELSE - 61 END )
----
70

skipif mysql # not compatible
query I rowsort label-1559
SELECT 9 + - MIN ( ALL + + CASE - 1 WHEN - 1 / - 63 THEN NULL ELSE - 61 END )
----
70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT ( + 87 ) - + - 87 + - + COUNT( * ) AS col2
----
173

skipif mysql # not compatible
query I rowsort label-1561
SELECT ( + 87 ) - + - 87 + - + COUNT ( * ) AS col2
----
173

query I rowsort
SELECT NULLIF ( + 40, + 68 ) * - 68 AS col2
----
-2720

query I rowsort
SELECT 61 * + 42
----
2562

query II rowsort
SELECT + 2 - + + 0, 47 AS col0
----
2
47

query I rowsort
SELECT DISTINCT - NULLIF ( - 9, + 78 + - 91 ) * - 20
----
-180

query I rowsort
SELECT DISTINCT ( - 81 ) + 42 AS col0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1567
SELECT - MAX( ALL 19 ) + 13 + CASE - COALESCE ( 45, - 58 * 99 ) WHEN 44 THEN NULL WHEN + ( - 54 ) THEN CAST( NULL AS SIGNED ) END + MAX( + 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1567
SELECT - MAX ( ALL 19 ) + 13 + CASE - COALESCE ( 45, - 58 * 99 ) WHEN 44 THEN NULL WHEN + ( - 54 ) THEN CAST ( NULL AS INTEGER ) END + MAX ( + 28 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1568
SELECT DISTINCT + 75 * MAX( DISTINCT + CASE + NULLIF ( 93, + 20 ) WHEN + 14 THEN NULL ELSE - 55 * - CAST( 72 AS SIGNED ) END ) + - 97
----
296903

skipif mysql # not compatible
query I rowsort label-1568
SELECT DISTINCT + 75 * MAX ( DISTINCT + CASE + NULLIF ( 93, + 20 ) WHEN + 14 THEN NULL ELSE - 55 * - CAST ( 72 AS INTEGER ) END ) + - 97
----
296903

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT ALL - 42 * - + SUM( 32 ) AS col2
----
1344

skipif mysql # not compatible
query I rowsort label-1569
SELECT ALL - 42 * - + SUM ( 32 ) AS col2
----
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT COUNT( * ) + + 96 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-1570
SELECT COUNT ( * ) + + 96 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT - CASE - 3 WHEN 22 THEN - - COUNT( * ) * + 84 WHEN - 43 + + 87 THEN 7 WHEN + NULLIF ( + COUNT( ALL 60 ), - COUNT( * ) * 64 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1571
SELECT - CASE - 3 WHEN 22 THEN - - COUNT ( * ) * + 84 WHEN - 43 + + 87 THEN 7 WHEN + NULLIF ( + COUNT ( ALL 60 ), - COUNT ( * ) * 64 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1572
SELECT + 71 * + MAX( - - 44 ) + + 13 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1572
SELECT + 71 * + MAX ( - - 44 ) + + 13 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1573
SELECT DISTINCT + 29 * - 63 - + 41 - + COALESCE ( COUNT( * ), - 64 + COUNT( * ) DIV CAST( NULL AS SIGNED ) )
----
-1869

skipif mysql # not compatible
query I rowsort label-1573
SELECT DISTINCT + 29 * - 63 - + 41 - + COALESCE ( COUNT ( * ), - 64 + COUNT ( * ) / CAST ( NULL AS INTEGER ) )
----
-1869

onlyif mysql # aggregate syntax: 
query II rowsort label-1574
SELECT ALL - + COUNT( DISTINCT 80 ), 27 col2
----
-1
27

skipif mysql # not compatible
query II rowsort label-1574
SELECT ALL - + COUNT ( DISTINCT 80 ), 27 col2
----
-1
27

query I rowsort
SELECT + - COALESCE ( - 43, - - 77 ) AS col1
----
43

query I rowsort
SELECT - 85 * - 91
----
7735

query I rowsort
SELECT - CASE - 66 WHEN + 43 THEN - + 41 ELSE NULL END + 40 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 10 * - ( 35 ) AS col1
----
350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1579
SELECT DISTINCT - MIN( - 0 ) DIV + 86 * - - COALESCE ( 99, + CASE + 54 WHEN 62 THEN - 91 + + 35 * 19 WHEN - 86 THEN NULL END + ( + 57 + + 10 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1579
SELECT DISTINCT - MIN ( - 0 ) / + 86 * - - COALESCE ( 99, + CASE + 54 WHEN 62 THEN - 91 + + 35 * 19 WHEN - 86 THEN NULL END + ( + 57 + + 10 ) ) AS col1
----
0

query I rowsort
SELECT 69 * + 88 AS col2
----
6072

query I rowsort
SELECT 4 * 29 * - 73
----
-8468

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT 75 + - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-1583
SELECT 75 + - COUNT ( * )
----
74

query I rowsort
SELECT 14 * + - 33
----
-462

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

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

query I rowsort
SELECT ALL + 50 * + 61 AS col2
----
3050

query I rowsort
SELECT 30 + 39
----
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT 4 * + SUM( DISTINCT + 36 )
----
144

skipif mysql # not compatible
query I rowsort label-1589
SELECT 4 * + SUM ( DISTINCT + 36 )
----
144

query I rowsort
SELECT - ( + 53 ) * + 48 + - 97 * 75
----
-9819

query I rowsort
SELECT 20 + 82
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1592
SELECT - 13 * + - MIN( ALL CAST( NULL AS SIGNED ) ) + - 16 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1592
SELECT - 13 * + - MIN ( ALL CAST ( NULL AS INTEGER ) ) + - 16 col0
----
NULL

query I rowsort
SELECT - 93 * + 28 AS col1
----
-2604

query II rowsort
SELECT - 65, - 60 col0
----
-65
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1595
SELECT + CASE 43 WHEN + 45 * 26 THEN - 35 + - 76 DIV - 91 WHEN + SUM( 15 ) * + 96 THEN NULL ELSE + 25 END + 58 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-1595
SELECT + CASE 43 WHEN + 45 * 26 THEN - 35 + - 76 / - 91 WHEN + SUM ( 15 ) * + 96 THEN NULL ELSE + 25 END + 58 AS col1
----
83

query I rowsort
SELECT ALL 98 + + ( 1 ) AS col1
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1597
SELECT + 39 * 82 + + + 48, 93 + + CAST( - COUNT( * ) AS SIGNED ) - - 62 * COUNT( 30 ) AS col2
----
3246
154

skipif mysql # not compatible
query II rowsort label-1597
SELECT + 39 * 82 + + + 48, 93 + + CAST ( - COUNT ( * ) AS INTEGER ) - - 62 * COUNT ( 30 ) AS col2
----
3246
154

query I rowsort
SELECT ALL - + 28 * + 9
----
-252

query I rowsort
SELECT + + 27 + ( - 7 )
----
20

query I rowsort
SELECT - + 82 * 59 + + 50 * + 64 AS col0
----
-1638

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT - 15 + - - MAX( + 51 ) + - 88 + + 31 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-1602
SELECT - 15 + - - MAX ( + 51 ) + - 88 + + 31 AS col2
----
-21

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1604
SELECT ALL + 53 - - CASE 74 WHEN NULLIF ( + 41, 80 ) THEN NULL WHEN 44 * + 27 THEN NULL ELSE 68 + 74 DIV 54 END + 26 * + ( 13 ) * 93 AS col0
----
31556

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL + 53 - - CASE 74 WHEN NULLIF ( + 41, 80 ) THEN NULL WHEN 44 * + 27 THEN NULL ELSE 68 + 74 / 54 END + 26 * + ( 13 ) * 93 AS col0
----
31556

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT ALL MAX( + 98 ) * + MAX( DISTINCT + 78 )
----
7644

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL MAX ( + 98 ) * + MAX ( DISTINCT + 78 )
----
7644

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT + + NULLIF ( - - COUNT( * ), - - 52 ) + 11
----
12

skipif mysql # not compatible
query I rowsort label-1606
SELECT + + NULLIF ( - - COUNT ( * ), - - 52 ) + 11
----
12

query I rowsort
SELECT DISTINCT + 20 - + 0 AS col1
----
20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1608
SELECT + 82 - 69 + + 59 DIV 69 * + CAST( 12 AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-1608
SELECT + 82 - 69 + + 59 / 69 * + CAST ( 12 AS INTEGER )
----
13

query II rowsort
SELECT + 10 AS col1, + 0 + - - 72 + - + 18 * + 26 AS col2
----
10
-396

query I rowsort
SELECT + COALESCE ( 5, - 58 )
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1611
SELECT + + 31 DIV - 9 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1611
SELECT + + 31 / - 9 AS col2
----
-3

query I rowsort
SELECT - 95 * + + 31 col0
----
-2945

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT 55 * - 21 + COUNT( * ) * 88 + + ( - - 53 )
----
-1014

skipif mysql # not compatible
query I rowsort label-1613
SELECT 55 * - 21 + COUNT ( * ) * 88 + + ( - - 53 )
----
-1014

onlyif mysql # DIV for integer division: 
query I rowsort label-1614
SELECT COALESCE ( 44, - 1 DIV 24 )
----
44

skipif mysql # not compatible
query I rowsort label-1614
SELECT COALESCE ( 44, - 1 / 24 )
----
44

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

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

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

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

query II rowsort
SELECT + 89, - 68 * - - 49 col1
----
89
-3332

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT ALL - COUNT( * ) * + 21 + - 31
----
-52

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL - COUNT ( * ) * + 21 + - 31
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT - 29 * + MAX( + 51 )
----
-1479

skipif mysql # not compatible
query I rowsort label-1619
SELECT - 29 * + MAX ( + 51 )
----
-1479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1620
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) * + + 65 + - 95 + - - 31 + + - 18 + - 38 + + 49 * + 71 AS col0
----
3294

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) * + + 65 + - 95 + - - 31 + + - 18 + - 38 + + 49 * + 71 AS col0
----
3294

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

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

query I rowsort
SELECT NULLIF ( - + 61, - 34 )
----
-61

query I rowsort
SELECT ALL - 20 * - 28 AS col0
----
560

query I rowsort
SELECT - 9 * + 11 + 71 * + - ( - 99 ) AS col2
----
6930

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

query I rowsort
SELECT - 75 * - 77 col2
----
5775

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT ALL 93 * + CASE 15 WHEN - 24 THEN + COUNT( * ) ELSE NULL END * 64 + 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1627
SELECT ALL 93 * + CASE 15 WHEN - 24 THEN + COUNT ( * ) ELSE NULL END * 64 + 98 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1629
SELECT DISTINCT COALESCE ( - 1, CAST( NULL AS SIGNED ) + + + 54 + + COUNT( DISTINCT - - 15 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT COALESCE ( - 1, CAST ( NULL AS INTEGER ) + + + 54 + + COUNT ( DISTINCT - - 15 ) )
----
-1

query I rowsort
SELECT - + 97 - + 96 col0
----
-193

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

query II rowsort
SELECT - - 53, 96 AS col1
----
53
96

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

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

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

query I rowsort
SELECT - 3 + + 66 + + 20 col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT + MAX( - + 53 ) * - 23
----
1219

skipif mysql # not compatible
query I rowsort label-1636
SELECT + MAX ( - + 53 ) * - 23
----
1219

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT + MIN( - - 79 ) - + + 33 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-1637
SELECT + MIN ( - - 79 ) - + + 33 AS col2
----
46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT ALL - 65 * - COUNT( DISTINCT + - 7 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-1639
SELECT ALL - 65 * - COUNT ( DISTINCT + - 7 ) AS col2
----
65

query II rowsort
SELECT DISTINCT 65, + 5 * 50 AS col1
----
65
250

query I rowsort
SELECT + 76 * + 91 AS col1
----
6916

query I rowsort
SELECT - + 35 * 55
----
-1925

query I rowsort
SELECT - 29 + - 70
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1644
SELECT - + 97, NULLIF ( + 85, - 4 * COUNT( * ) + - COUNT( * ) * + 12 + + 55 * - 75 ) DIV - 68 AS col2
----
-97
-1

skipif mysql # not compatible
query II rowsort label-1644
SELECT - + 97, NULLIF ( + 85, - 4 * COUNT ( * ) + - COUNT ( * ) * + 12 + + 55 * - 75 ) / - 68 AS col2
----
-97
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1645
SELECT + 3 DIV - - 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1645
SELECT + 3 / - - 30 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT ALL CASE - 59 WHEN 98 THEN NULL WHEN + ( + 77 ) THEN + 78 * 88 + + COUNT( * ) / - 94 ELSE NULL END / + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL CASE - 59 WHEN 98 THEN NULL WHEN + ( + 77 ) THEN + 78 * 88 + + COUNT ( * ) / - 94 ELSE NULL END / + 7 AS col2
----
NULL

query I rowsort
SELECT + + 38 * - 74 + - 20 * 93
----
-4672

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1648
SELECT CAST( 74 AS SIGNED ) DIV 5 + 8
----
22

skipif mysql # not compatible
query I rowsort label-1648
SELECT CAST ( 74 AS INTEGER ) / 5 + 8
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-1649
SELECT ALL ( 75 ) DIV - + 74 + + 91
----
90

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL ( 75 ) / - + 74 + + 91
----
90

query I rowsort
SELECT + 77 + 97 + 18 col0
----
192

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1652
SELECT ALL - COUNT( - + 26 ) DIV 7 + + 75 + - - 52 + + - COUNT( * ) DIV + - 38 * + 78
----
127

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL - COUNT ( - + 26 ) / 7 + + 75 + - - 52 + + - COUNT ( * ) / + - 38 * + 78
----
127

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT - 25 / + COALESCE ( 77, + 75 + - 64 ) + CASE + + SUM( 78 ) WHEN + 8 THEN NULL WHEN COUNT( * ) * 9 THEN 96 WHEN COUNT( * ) THEN - 44 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1654
SELECT - 25 / + COALESCE ( 77, + 75 + - 64 ) + CASE + + SUM ( 78 ) WHEN + 8 THEN NULL WHEN COUNT ( * ) * 9 THEN 96 WHEN COUNT ( * ) THEN - 44 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1655
SELECT 24 * 48 - 10 + + ( + CAST( NULL AS DECIMAL ) ) / - 10 * COUNT( * ) * 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1655
SELECT 24 * 48 - 10 + + ( + CAST ( NULL AS REAL ) ) / - 10 * COUNT ( * ) * 52 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT ALL 81 + - ( + - COALESCE ( + 85, + SUM( DISTINCT - ( + + 52 ) ) * + 28, 13 ) ) + COUNT( * ) * - 3 * - 96 AS col2
----
454

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL 81 + - ( + - COALESCE ( + 85, + SUM ( DISTINCT - ( + + 52 ) ) * + 28, 13 ) ) + COUNT ( * ) * - 3 * - 96 AS col2
----
454

query I rowsort
SELECT DISTINCT 87 - + 23 AS col2
----
64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT DISTINCT + 88 * 59 * + COUNT( * ) + - 94 col2
----
5098

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT + 88 * 59 * + COUNT ( * ) + - 94 col2
----
5098

onlyif mysql # DIV for integer division: 
query I rowsort label-1660
SELECT - 88 DIV + + ( + 40 )
----
-2

skipif mysql # not compatible
query I rowsort label-1660
SELECT - 88 / + + ( + 40 )
----
-2

query I rowsort
SELECT + 97 + + 67
----
164

query I rowsort
SELECT DISTINCT NULLIF ( + - 35, - 60 ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT ALL + + 85 - + + 29 + - 59 + + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL + + 85 - + + 29 + - 59 + + COUNT ( * )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1664
SELECT - + CASE - 72 WHEN 13 * COUNT( * ) * - 5 / - 51 * 37 THEN NULL WHEN - CAST( COUNT( * ) AS SIGNED ) * 71 + CAST( 24 AS SIGNED ) THEN NULL ELSE + COUNT( 71 ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1664
SELECT - + CASE - 72 WHEN 13 * COUNT ( * ) * - 5 / - 51 * 37 THEN NULL WHEN - CAST ( COUNT ( * ) AS INTEGER ) * 71 + CAST ( 24 AS INTEGER ) THEN NULL ELSE + COUNT ( 71 ) END AS col0
----
-1

query I rowsort
SELECT ALL + NULLIF ( + + 72, + - 87 - + - 6 ) * - + 31
----
-2232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1666
SELECT + 37 * 92 + + + CAST( - MIN( ALL + - 74 ) AS SIGNED ) col1, MIN( + - 60 ) AS col1
----
3478
-60

skipif mysql # not compatible
query II rowsort label-1666
SELECT + 37 * 92 + + + CAST ( - MIN ( ALL + - 74 ) AS INTEGER ) col1, MIN ( + - 60 ) AS col1
----
3478
-60

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT 65 - - MAX( DISTINCT + + ( - 64 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1669
SELECT 65 - - MAX ( DISTINCT + + ( - 64 ) ) AS col2
----
1

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

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

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

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

query II rowsort
SELECT - 22, + 5 AS col0
----
-22
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT COUNT( * ) * - + 58 * ( 81 ) AS col1
----
-4698

skipif mysql # not compatible
query I rowsort label-1673
SELECT COUNT ( * ) * - + 58 * ( 81 ) AS col1
----
-4698

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT ALL + MAX( + 98 ) + 48 * - - 47 col1
----
2354

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL + MAX ( + 98 ) + 48 * - - 47 col1
----
2354

query I rowsort
SELECT 29 * + 96
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT DISTINCT + ( - + COUNT( * ) ) + + + CASE + AVG ( + - 83 ) WHEN - - COUNT( * ) * 98 THEN CASE + 60 WHEN 23 THEN NULL ELSE + 45 END WHEN - 61 THEN + 76 * ( COUNT( * ) ) END * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1676
SELECT DISTINCT + ( - + COUNT ( * ) ) + + + CASE + AVG ( + - 83 ) WHEN - - COUNT ( * ) * 98 THEN CASE + 60 WHEN 23 THEN NULL ELSE + 45 END WHEN - 61 THEN + 76 * ( COUNT ( * ) ) END * 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT DISTINCT - MIN( - - 14 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-1677
SELECT DISTINCT - MIN ( - - 14 ) AS col2
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1678
SELECT 10 DIV 29 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1678
SELECT 10 / 29 AS col1
----
0

query II rowsort
SELECT ALL - 84 AS col2, + 17 - 60
----
-84
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT 19 * + NULLIF ( - 35, - - 11 ) * - MAX( ALL + - 78 )
----
-51870

skipif mysql # not compatible
query I rowsort label-1680
SELECT 19 * + NULLIF ( - 35, - - 11 ) * - MAX ( ALL + - 78 )
----
-51870

query I rowsort
SELECT DISTINCT - 48 - ( + - 98 ) + - 78 AS col1
----
-28

query I rowsort
SELECT DISTINCT 75 * - 8 AS col1
----
-600

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT ALL 46 - - MAX( DISTINCT + 97 ) + + 84 AS col2
----
227

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL 46 - - MAX ( DISTINCT + 97 ) + + 84 AS col2
----
227

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

skipif mysql # not compatible
query I rowsort label-1685
SELECT COUNT ( * ) - - 84 + + CAST ( COUNT ( * ) AS INTEGER )
----
86

query I rowsort
SELECT - 95 * - 50
----
4750

query II rowsort
SELECT ALL + 6 AS col1, - 70 AS col0
----
6
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1688
SELECT ALL COUNT( * ), - CASE + 6 WHEN 18 THEN - ( 89 ) + - CAST( NULL AS SIGNED ) WHEN + 88 THEN 6 - + 0 WHEN 48 / 57 THEN - COUNT( * ) ELSE + 31 * - CAST( NULL AS SIGNED ) END * - 24 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1688
SELECT ALL COUNT ( * ), - CASE + 6 WHEN 18 THEN - ( 89 ) + - CAST ( NULL AS INTEGER ) WHEN + 88 THEN 6 - + 0 WHEN 48 / 57 THEN - COUNT ( * ) ELSE + 31 * - CAST ( NULL AS INTEGER ) END * - 24 AS col0
----
1
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT ALL + + 33 * + 20 * - COUNT( * ) * 94 * + 57
----
-3536280

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL + + 33 * + 20 * - COUNT ( * ) * 94 * + 57
----
-3536280

query I rowsort
SELECT + 31 * 60 AS col1
----
1860

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

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

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

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

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

query I rowsort
SELECT + 97 * - ( 94 ) * 12 AS col0
----
-109416

query I rowsort
SELECT 34 + + + 81 + - 71 AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1697
SELECT + NULLIF ( 65, + CAST( + 52 AS SIGNED ) / + + 46 * - SUM( + - 90 ) * 80 ) * + 19
----
1235

skipif mysql # not compatible
query I rowsort label-1697
SELECT + NULLIF ( 65, + CAST ( + 52 AS INTEGER ) / + + 46 * - SUM ( + - 90 ) * 80 ) * + 19
----
1235

onlyif mysql # aggregate syntax: 
query II rowsort label-1698
SELECT ALL 94 + COUNT( + 57 ) AS col1, 98 * - NULLIF ( - 43, + 29 )
----
95
4214

skipif mysql # not compatible
query II rowsort label-1698
SELECT ALL 94 + COUNT ( + 57 ) AS col1, 98 * - NULLIF ( - 43, + 29 )
----
95
4214

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

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

query I rowsort
SELECT ALL 7 * - 37 AS col2
----
-259

query II rowsort
SELECT DISTINCT + 78 + - 30, - 39 AS col0
----
48
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT 23 + + 91 + + NULLIF ( - 60, - 62 - COUNT( * ) - - + CASE - - 71 WHEN - 24 THEN NULL ELSE 40 / - 63 END / COALESCE ( 69, - 48 ) ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-1702
SELECT 23 + + 91 + + NULLIF ( - 60, - 62 - COUNT ( * ) - - + CASE - - 71 WHEN - 24 THEN NULL ELSE 40 / - 63 END / COALESCE ( 69, - 48 ) ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT + 42 + CASE 36 WHEN - + ( - 67 ) * 97 + + 30 THEN + 93 END + - ( - COUNT( * ) ) * - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-1703
SELECT + 42 + CASE 36 WHEN - + ( - 67 ) * 97 + + 30 THEN + 93 END + - ( - COUNT ( * ) ) * - 29
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1704
SELECT DISTINCT SUM( DISTINCT 12 ) AS col0, CAST( NULL AS SIGNED ) + - + 95 AS col1
----
12
NULL

skipif mysql # not compatible
query II rowsort label-1704
SELECT DISTINCT SUM ( DISTINCT 12 ) AS col0, CAST ( NULL AS INTEGER ) + - + 95 AS col1
----
12
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1705
SELECT + 18 + 70 DIV - 54 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-1705
SELECT + 18 + 70 / - 54 AS col1
----
17

query I rowsort
SELECT - 76 * 32
----
-2432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1707
SELECT - COALESCE ( - NULLIF ( + 56, CAST( NULL AS SIGNED ) - + + 83 ), + 1 ) * - ( + 36 ) AS col2
----
-2016

skipif mysql # not compatible
query I rowsort label-1707
SELECT - COALESCE ( - NULLIF ( + 56, CAST ( NULL AS INTEGER ) - + + 83 ), + 1 ) * - ( + 36 ) AS col2
----
-2016

query I rowsort
SELECT ALL - 58 * + 67 - - - 87 AS col1
----
-3973

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT - COUNT( * ) * - COALESCE ( 93, - + 38 ) * - 36 + 69
----
-3279

skipif mysql # not compatible
query I rowsort label-1709
SELECT - COUNT ( * ) * - COALESCE ( 93, - + 38 ) * - 36 + 69
----
-3279

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT ALL + CASE - + 76 WHEN + 3 THEN + COUNT( * ) * COALESCE ( ( + - 31 ), - COUNT( * ) + 66 ) - + COUNT( * ) * 49 WHEN ( + 59 ) THEN NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL + CASE - + 76 WHEN + 3 THEN + COUNT ( * ) * COALESCE ( ( + - 31 ), - COUNT ( * ) + 66 ) - + COUNT ( * ) * 49 WHEN ( + 59 ) THEN NULL END * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT - 40 + + MIN( + - 44 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-1711
SELECT - 40 + + MIN ( + - 44 ) AS col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1712
SELECT ALL - ( MAX( DISTINCT 9 ) ) * 73 * + CAST( NULL AS SIGNED ) * + 40 / - 82 * + 21 + + - 68 * 63 - + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL - ( MAX ( DISTINCT 9 ) ) * 73 * + CAST ( NULL AS INTEGER ) * + 40 / - 82 * + 21 + + - 68 * 63 - + 27 AS col0
----
NULL

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

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

query I rowsort
SELECT - 10 * 82 AS col1
----
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT 71 * + + COUNT( * ) + 67 AS col0
----
138

skipif mysql # not compatible
query I rowsort label-1715
SELECT 71 * + + COUNT ( * ) + 67 AS col0
----
138

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

skipif mysql # not compatible
query I rowsort label-1716
SELECT + 34 / + + 45
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1717
SELECT + CASE + 12 WHEN - AVG ( DISTINCT - 70 ) * - COUNT( * ) + NULLIF ( - 94, - - 69 + CAST( NULL AS DECIMAL ) ) * 5 THEN 2 WHEN 31 THEN 69 * + 75 ELSE 26 + 8 END + - 89 DIV ( + 2 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-1717
SELECT + CASE + 12 WHEN - AVG ( DISTINCT - 70 ) * - COUNT ( * ) + NULLIF ( - 94, - - 69 + CAST ( NULL AS REAL ) ) * 5 THEN 2 WHEN 31 THEN 69 * + 75 ELSE 26 + 8 END + - 89 / ( + 2 ) AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1718
SELECT ALL + COALESCE ( + COUNT( * ), + 85 + ( + - ( + 91 ) ) * + COUNT( * ) + - + 88 - - CAST( NULL AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-1718
SELECT ALL + COALESCE ( + COUNT ( * ), + 85 + ( + - ( + 91 ) ) * + COUNT ( * ) + - + 88 - - CAST ( NULL AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1719
SELECT - 4 + COALESCE ( NULLIF ( - 84, + 81 ), - - 50, + + ( + SUM( ALL - 0 ) ) DIV - 58 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-1719
SELECT - 4 + COALESCE ( NULLIF ( - 84, + 81 ), - - 50, + + ( + SUM ( ALL - 0 ) ) / - 58 ) AS col2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1720
SELECT + 96 * + CAST( NULL AS SIGNED ) / + - 62 + - MIN( + - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1720
SELECT + 96 * + CAST ( NULL AS INTEGER ) / + - 62 + - MIN ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT + 86 + - 76 + + MIN( + - 73 )
----
-63

skipif mysql # not compatible
query I rowsort label-1721
SELECT + 86 + - 76 + + MIN ( + - 73 )
----
-63

query I rowsort
SELECT ALL - - 33 * + 44 * - 47 + + - NULLIF ( + 5, + + 6 )
----
-68249

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

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

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

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

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

query I rowsort
SELECT ALL + 53 + 18 AS col2
----
71

query I rowsort
SELECT + 95 + + 32 + 74
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT + ( ( - 16 ) ) + - COUNT( ALL + - COALESCE ( + + 61, + ( - 17 ) ) )
----
-17

skipif mysql # not compatible
query I rowsort label-1728
SELECT + ( ( - 16 ) ) + - COUNT ( ALL + - COALESCE ( + + 61, + ( - 17 ) ) )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT ALL + - COUNT( * ) + + - 75 * + - 82
----
6149

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL + - COUNT ( * ) + + - 75 * + - 82
----
6149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1730
SELECT ALL + 71 + - + NULLIF ( - COALESCE ( + CAST( - 86 AS SIGNED ), - - 63 * + ( + 21 ) * + + COUNT( * ) + ( 13 ) + 37 ), + 21 * 26 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL + 71 + - + NULLIF ( - COALESCE ( + CAST ( - 86 AS INTEGER ), - - 63 * + ( + 21 ) * + + COUNT ( * ) + ( 13 ) + 37 ), + 21 * 26 ) AS col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1731
SELECT DISTINCT + 60 + - 60, 28 + - CASE - 22 WHEN ( + 83 ) * 53 * - + 79 THEN CASE CAST( NULL AS SIGNED ) WHEN 93 THEN + 98 ELSE NULL END WHEN + 90 THEN NULL WHEN 77 + 23 THEN 92 + + 11 END col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1731
SELECT DISTINCT + 60 + - 60, 28 + - CASE - 22 WHEN ( + 83 ) * 53 * - + 79 THEN CASE CAST ( NULL AS INTEGER ) WHEN 93 THEN + 98 ELSE NULL END WHEN + 90 THEN NULL WHEN 77 + 23 THEN 92 + + 11 END col2
----
0
NULL

query I rowsort
SELECT + 49 * + 89 * 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1733
SELECT ALL - 27 DIV 74 + 98
----
98

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL - 27 / 74 + 98
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1734
SELECT + + COUNT( * ) + - 31 + ( - + 3 ) DIV - - 79 AS col0, - 77 * - - 70
----
-30
-5390

skipif mysql # not compatible
query II rowsort label-1734
SELECT + + COUNT ( * ) + - 31 + ( - + 3 ) / - - 79 AS col0, - 77 * - - 70
----
-30
-5390

query I rowsort
SELECT ALL 36 + 98 * + 42 AS col0
----
4152

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT - 83 * + COALESCE ( + - 83, - COUNT( * ) + + ( + NULLIF ( MIN( ALL + 97 ), + COUNT( DISTINCT 35 ) * - 79 - COALESCE ( MAX( ALL + 48 ), COUNT( DISTINCT 91 ) + 86 ) / - COUNT( * ) ) ), - 16 ) * + 97 AS col0
----
668233

skipif mysql # not compatible
query I rowsort label-1737
SELECT - 83 * + COALESCE ( + - 83, - COUNT ( * ) + + ( + NULLIF ( MIN ( ALL + 97 ), + COUNT ( DISTINCT 35 ) * - 79 - COALESCE ( MAX ( ALL + 48 ), COUNT ( DISTINCT 91 ) + 86 ) / - COUNT ( * ) ) ), - 16 ) * + 97 AS col0
----
668233

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT DISTINCT 6 - - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-1738
SELECT DISTINCT 6 - - COUNT ( * )
----
7

query I rowsort
SELECT DISTINCT 35 - - 26
----
61

query I rowsort
SELECT ALL NULLIF ( + 96, 96 * - + 30 )
----
96

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1742
SELECT ALL MAX( ALL + ( + 46 ) ) - SUM( - + 36 ) AS col0, + COUNT( * ) DIV - 9
----
82
0

skipif mysql # not compatible
query II rowsort label-1742
SELECT ALL MAX ( ALL + ( + 46 ) ) - SUM ( - + 36 ) AS col0, + COUNT ( * ) / - 9
----
82
0

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

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

query II rowsort
SELECT + 95 AS col2, + 73
----
95
73

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

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

query I rowsort
SELECT + 87 * + 74
----
6438

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

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

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

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

query I rowsort
SELECT ALL - 12 * - 32 AS col0
----
384

query I rowsort
SELECT - 57 * - + ( + 73 )
----
4161

onlyif mysql # aggregate syntax: 
query II rowsort label-1751
SELECT - - 87 - - COUNT( * ) + + 61, + CASE + - 9 WHEN + COUNT( * ) THEN + 57 END AS col2
----
149
NULL

skipif mysql # not compatible
query II rowsort label-1751
SELECT - - 87 - - COUNT ( * ) + + 61, + CASE + - 9 WHEN + COUNT ( * ) THEN + 57 END AS col2
----
149
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1752
SELECT DISTINCT - + 41 * - 86 * COUNT( * ) AS col2, COUNT( * ) * 2 + + + 46 - + + COUNT( * ) * - 9 * 26 col1
----
3526
282

skipif mysql # not compatible
query II rowsort label-1752
SELECT DISTINCT - + 41 * - 86 * COUNT ( * ) AS col2, COUNT ( * ) * 2 + + + 46 - + + COUNT ( * ) * - 9 * 26 col1
----
3526
282

query I rowsort
SELECT ALL 79 / + + 93 + + CASE - 49 WHEN 64 THEN + 74 END * - 36 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT ALL + + NULLIF ( + 67, - - MAX( ALL - 83 ) )
----
67

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL + + NULLIF ( + 67, - - MAX ( ALL - 83 ) )
----
67

query I rowsort
SELECT + - 39 * - 22 + - - 87 + + - 88 + - - 7 * + 74
----
1375

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1758
SELECT ALL + NULLIF ( + COUNT( * ), 33 ) * - 15 DIV + COALESCE ( - NULLIF ( - 98, - NULLIF ( + - 86, 1 * 0 ) + 60 ), + CASE - 77 WHEN SUM( 92 ) THEN SUM( - 58 ) END ) * + 2 - + 75 + + 81 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL + NULLIF ( + COUNT ( * ), 33 ) * - 15 / + COALESCE ( - NULLIF ( - 98, - NULLIF ( + - 86, 1 * 0 ) + 60 ), + CASE - 77 WHEN SUM ( 92 ) THEN SUM ( - 58 ) END ) * + 2 - + 75 + + 81 AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1759
SELECT - - 88 DIV - 69 + + + 15 col0
----
14

skipif mysql # not compatible
query I rowsort label-1759
SELECT - - 88 / - 69 + + + 15 col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT ALL 99 * - 53 + + COUNT( * ) + + CASE ( 9 ) WHEN + + 8 / COUNT( * ) * - 52 THEN - 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL 99 * - 53 + + COUNT ( * ) + + CASE ( 9 ) WHEN + + 8 / COUNT ( * ) * - 52 THEN - 18 END
----
NULL

query I rowsort
SELECT + CASE + + 56 WHEN + 20 + - 34 + ( + 41 ) THEN + 85 ELSE NULL END * - + 29 + 71
----
NULL

query I rowsort
SELECT - 84 + - - 90
----
6

query II rowsort
SELECT ALL + 4, 38 - + 67 AS col1
----
4
-29

query I rowsort
SELECT + + 48 col2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1765
SELECT DISTINCT COALESCE ( + - 51, - 78 * + 20 DIV - 25 * + - 9 + 66 ) * + 55 + + + 92 AS col1
----
-2713

skipif mysql # not compatible
query I rowsort label-1765
SELECT DISTINCT COALESCE ( + - 51, - 78 * + 20 / - 25 * + - 9 + 66 ) * + 55 + + + 92 AS col1
----
-2713

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT ALL - - 7 * + COUNT( * ) * + + 21 * 39 + + 94 + + + 37 * COUNT( * ) AS col0
----
5864

skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL - - 7 * + COUNT ( * ) * + + 21 * 39 + + 94 + + + 37 * COUNT ( * ) AS col0
----
5864

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT - - 36 - + 28 + + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-1767
SELECT - - 36 - + 28 + + COUNT ( * )
----
9

query II rowsort
SELECT 3 AS col0, - 25 + + - 35 AS col2
----
3
-60

query I rowsort
SELECT - - 60 * + 80 + - 43
----
4757

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1770
SELECT DISTINCT - 97 * + CASE - COUNT( ALL - 51 ) WHEN + COUNT( + 75 ) THEN NULL WHEN + - CAST( + 14 AS SIGNED ) + - CAST( - - 99 AS SIGNED ) + + 99 THEN NULL WHEN 60 + + 43 * + 40 THEN ( 16 ) / - 6 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT - 97 * + CASE - COUNT ( ALL - 51 ) WHEN + COUNT ( + 75 ) THEN NULL WHEN + - CAST ( + 14 AS INTEGER ) + - CAST ( - - 99 AS INTEGER ) + + 99 THEN NULL WHEN 60 + + 43 * + 40 THEN ( 16 ) / - 6 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1771
SELECT COUNT( * ) + + CAST( AVG ( + 65 ) AS SIGNED ) + - - 40 DIV 65 * 59 + - 13 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1771
SELECT COUNT ( * ) + + CAST ( AVG ( + 65 ) AS INTEGER ) + - - 40 / 65 * 59 + - 13 AS col0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-1772
SELECT ALL - + 19 - + 12 DIV - 25
----
-19

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL - + 19 - + 12 / - 25
----
-19

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

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

query II rowsort
SELECT 80 AS col1, 20 - - 18
----
80
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT 58 - + - 96 * - CASE + 97 WHEN + 60 + - MIN( - 68 ) THEN NULL ELSE - + 88 + + 24 END * 81 * + ( - 61 ) + 75
----
-30357371

skipif mysql # not compatible
query I rowsort label-1775
SELECT 58 - + - 96 * - CASE + 97 WHEN + 60 + - MIN ( - 68 ) THEN NULL ELSE - + 88 + + 24 END * 81 * + ( - 61 ) + 75
----
-30357371

query II rowsort
SELECT ALL 26 AS col1, + 66
----
26
66

query I rowsort
SELECT DISTINCT - ( + + 78 ) * - 92 AS col1
----
7176

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

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

query II rowsort
SELECT 67 AS col1, 4 AS col1
----
67
4

query I rowsort
SELECT DISTINCT ( + 3 ) - - 57
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1781
SELECT DISTINCT 88 col1, CAST( NULL AS DECIMAL ) * - + 23
----
88
NULL

skipif mysql # not compatible
query II rowsort label-1781
SELECT DISTINCT 88 col1, CAST ( NULL AS REAL ) * - + 23
----
88
NULL

query I rowsort
SELECT DISTINCT 52 * - + COALESCE ( - + 70, - + 63 + - + 18 )
----
3640

query II rowsort
SELECT 48 AS col1, 92 AS col0
----
48
92

query II rowsort
SELECT ALL 94 AS col0, - 5
----
94
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1785
SELECT 38 DIV + - 52 col1
----
0

skipif mysql # not compatible
query I rowsort label-1785
SELECT 38 / + - 52 col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT DISTINCT 16 * + + MIN( - - 4 ) * + - 75
----
-4800

skipif mysql # not compatible
query I rowsort label-1787
SELECT DISTINCT 16 * + + MIN ( - - 4 ) * + - 75
----
-4800

query II rowsort
SELECT 4, ( 84 ) AS col0
----
4
84

query II rowsort
SELECT ALL - 28 AS col1, - 61
----
-28
-61

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1791
SELECT DISTINCT 80 * - COALESCE ( - + CAST( + 48 AS SIGNED ), - 38 * - 24 * + - 97 * - - 20, + COUNT( ALL 18 ) )
----
3840

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT 80 * - COALESCE ( - + CAST ( + 48 AS INTEGER ), - 38 * - 24 * + - 97 * - - 20, + COUNT ( ALL 18 ) )
----
3840

query I rowsort
SELECT ALL 57 * 56
----
3192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1793
SELECT DISTINCT CAST( + 90 AS SIGNED ) + 7 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT CAST ( + 90 AS INTEGER ) + 7 AS col0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1794
SELECT ALL 71 + - 65 * ( - 78 ) - - + 48 * + + 65 * - + 20 AS col0, COUNT( * )
----
-57259
1

skipif mysql # not compatible
query II rowsort label-1794
SELECT ALL 71 + - 65 * ( - 78 ) - - + 48 * + + 65 * - + 20 AS col0, COUNT ( * )
----
-57259
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1795
SELECT - NULLIF ( 13, - - CASE 83 WHEN - - 58 THEN - - 97 WHEN + + 33 + COALESCE ( 65, 66 + + 44, COUNT( * ) - - 14, + 92 / - NULLIF ( CASE + COUNT( * ) WHEN + 96 * + 54 THEN 89 * - 82 WHEN + 42 + + 73 THEN NULL ELSE NULL END / 89, + 47 ) ) * + AVG ( 97 ) THEN - 94 ELSE NULL END * + CASE - 56 WHEN - 22 THEN + COUNT( * ) WHEN - MIN( CAST( NULL AS SIGNED ) ) THEN NULL WHEN + 21 - - 36 THEN ( CAST( NULL AS SIGNED ) ) ELSE + ( 57 ) / 33 END + 2 ) + - COUNT( * ) * + 91 AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-1795
SELECT - NULLIF ( 13, - - CASE 83 WHEN - - 58 THEN - - 97 WHEN + + 33 + COALESCE ( 65, 66 + + 44, COUNT ( * ) - - 14, + 92 / - NULLIF ( CASE + COUNT ( * ) WHEN + 96 * + 54 THEN 89 * - 82 WHEN + 42 + + 73 THEN NULL ELSE NULL END / 89, + 47 ) ) * + AVG ( 97 ) THEN - 94 ELSE NULL END * + CASE - 56 WHEN - 22 THEN + COUNT ( * ) WHEN - MIN ( CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + 21 - - 36 THEN ( CAST ( NULL AS INTEGER ) ) ELSE + ( 57 ) / 33 END + 2 ) + - COUNT ( * ) * + 91 AS col0
----
-104

query I rowsort
SELECT 86 * - - 56 + - 44 AS col0
----
4772

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

skipif mysql # not compatible
query I rowsort label-1797
SELECT COUNT ( * ) + - + MIN ( 61 ) + COUNT ( * ) AS col2
----
-59

query II rowsort
SELECT DISTINCT - 88, + 33 + - 65 AS col2
----
-88
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-1799
SELECT DISTINCT - 4 + + - 85 + COUNT( ALL - 74 ) * + - ( + 88 ), - 87 AS col1
----
-177
-87

skipif mysql # not compatible
query II rowsort label-1799
SELECT DISTINCT - 4 + + - 85 + COUNT ( ALL - 74 ) * + - ( + 88 ), - 87 AS col1
----
-177
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT DISTINCT COUNT( 10 ) + - - 51
----
52

skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT COUNT ( 10 ) + - - 51
----
52

query I rowsort
SELECT ALL - ( 79 ) col0
----
-79

query II rowsort
SELECT ALL - + 72 + + + 72 AS col2, 6 AS col2
----
0
6

query II rowsort
SELECT DISTINCT - 68 AS col0, - 4
----
-68
-4

query II rowsort
SELECT + 69, 28 - + + 60 + - 39 AS col2
----
69
-71

onlyif mysql # DIV for integer division: 
query II rowsort label-1805
SELECT ALL + 10 - + 77, 58 DIV + - 26 + 28 * + - 54 + - 69 + + + 28 col1
----
-67
-1555

skipif mysql # not compatible
query II rowsort label-1805
SELECT ALL + 10 - + 77, 58 / + - 26 + 28 * + - 54 + - 69 + + + 28 col1
----
-67
-1555

query I rowsort
SELECT - 40 * + - 34 AS col2
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT - ( + COUNT( * ) ) * + 86 + + - 16 AS col2
----
-102

skipif mysql # not compatible
query I rowsort label-1807
SELECT - ( + COUNT ( * ) ) * + 86 + + - 16 AS col2
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT 34 * - + ( 91 ) + + - MIN( + 63 ) AS col2
----
-3157

skipif mysql # not compatible
query I rowsort label-1808
SELECT 34 * - + ( 91 ) + + - MIN ( + 63 ) AS col2
----
-3157

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

skipif mysql # not compatible
query I rowsort label-1809
SELECT - - MIN ( + 80 )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1810
SELECT ALL + NULLIF ( - + 92, ( COUNT( * ) ) * 30 - 67 + + CAST( NULL AS SIGNED ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL + NULLIF ( - + 92, ( COUNT ( * ) ) * 30 - 67 + + CAST ( NULL AS INTEGER ) ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-1811
SELECT 29 * + ( NULLIF ( + - 95, - 67 ) ), ( + COUNT( * ) ) AS col1
----
-2755
1

skipif mysql # not compatible
query II rowsort label-1811
SELECT 29 * + ( NULLIF ( + - 95, - 67 ) ), ( + COUNT ( * ) ) AS col1
----
-2755
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1812
SELECT ALL + 2 DIV + 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL + 2 / + 41 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1813
SELECT 45 + COALESCE ( 14, + 37 - - 8 * 17, + COUNT( * ) ) + + + COALESCE ( + 67, - COUNT( * ), - - 2 * - 40 * 4 + - 5 DIV + 7 - 69 ) + - 95 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-1813
SELECT 45 + COALESCE ( 14, + 37 - - 8 * 17, + COUNT ( * ) ) + + + COALESCE ( + 67, - COUNT ( * ), - - 2 * - 40 * 4 + - 5 / + 7 - 69 ) + - 95 AS col0
----
31

query I rowsort
SELECT 64 * + 39 AS col0
----
2496

query II rowsort
SELECT ALL - 39 * - 57, - 89 AS col2
----
2223
-89

query I rowsort
SELECT DISTINCT - 30 * + - 54 * + 30 AS col1
----
48600

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT COUNT( - 30 ) + - 93 * + ( + + 49 ) * - COUNT( * ) AS col2
----
4558

skipif mysql # not compatible
query I rowsort label-1817
SELECT COUNT ( - 30 ) + - 93 * + ( + + 49 ) * - COUNT ( * ) AS col2
----
4558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1818
SELECT DISTINCT 10 + - NULLIF ( + + 28, 38 + - ( - - 13 ) + 74 DIV - MIN( - + 49 ) * 76 ) + - COUNT( * ) * 76 DIV ( 63 * - 66 )
----
-18

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT 10 + - NULLIF ( + + 28, 38 + - ( - - 13 ) + 74 / - MIN ( - + 49 ) * 76 ) + - COUNT ( * ) * 76 / ( 63 * - 66 )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1819
SELECT ALL + 13 + - + 91 DIV + ( 99 )
----
13

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL + 13 + - + 91 / + ( 99 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT MIN( + 49 ) * - ( - + 45 ) AS col2
----
2205

skipif mysql # not compatible
query I rowsort label-1820
SELECT MIN ( + 49 ) * - ( - + 45 ) AS col2
----
2205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1821
SELECT DISTINCT SUM( + + 33 ) DIV 89 * 69 + 60
----
60

skipif mysql # not compatible
query I rowsort label-1821
SELECT DISTINCT SUM ( + + 33 ) / 89 * 69 + 60
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1822
SELECT DISTINCT 74 + 63 DIV 78, MAX( + + 78 ) + + 85 * 86 * + COALESCE ( + 28, + 39 * + 28 ) col2
----
74
204758

skipif mysql # not compatible
query II rowsort label-1822
SELECT DISTINCT 74 + 63 / 78, MAX ( + + 78 ) + + 85 * 86 * + COALESCE ( + 28, + 39 * + 28 ) col2
----
74
204758

query I rowsort
SELECT ALL 40 * + - 55 + + ( + + 95 )
----
-2105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1824
SELECT 60 - + + NULLIF ( COALESCE ( - 12, COUNT( * ), CAST( NULL AS SIGNED ) * - 79 + - ( + 19 ) + - 97 ), - CAST( - - 32 AS SIGNED ) + ( 72 ) ) col0
----
72

skipif mysql # not compatible
query I rowsort label-1824
SELECT 60 - + + NULLIF ( COALESCE ( - 12, COUNT ( * ), CAST ( NULL AS INTEGER ) * - 79 + - ( + 19 ) + - 97 ), - CAST ( - - 32 AS INTEGER ) + ( 72 ) ) col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1825
SELECT COUNT( + CAST( + + 7 AS SIGNED ) ) DIV + COUNT( * )
----
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1826
SELECT DISTINCT - COUNT( 30 ) DIV + + 21 * - - 88 col1
----
0

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT - COUNT ( 30 ) / + + 21 * - - 88 col1
----
0

query I rowsort
SELECT + + NULLIF ( 87, - 85 ) AS col2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1828
SELECT ALL - CAST( - NULLIF ( - 14, + 30 / - AVG ( DISTINCT + 43 ) + 30 ) AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL - CAST ( - NULLIF ( - 14, + 30 / - AVG ( DISTINCT + 43 ) + 30 ) AS INTEGER )
----
-14

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1830
SELECT 85 * - NULLIF ( - + 29, 75 * + NULLIF ( + CASE - 68 WHEN + COUNT( * ) THEN - ( + 45 ) WHEN + - 78 THEN CAST( NULL AS SIGNED ) + 57 WHEN 70 + - 73 THEN - CAST( NULL AS SIGNED ) * - CAST( COALESCE ( + 42, + 35, ( - 83 ) * - ( 76 ) ) AS DECIMAL ) + COALESCE ( 95, COUNT( * ) / 69, + COUNT( * ) * MIN( DISTINCT 37 ) + + 36 ) ELSE - ( 2 ) END, 55 + - 42 / - 78 ) ) - 12 col1
----
2453

skipif mysql # not compatible
query I rowsort label-1830
SELECT 85 * - NULLIF ( - + 29, 75 * + NULLIF ( + CASE - 68 WHEN + COUNT ( * ) THEN - ( + 45 ) WHEN + - 78 THEN CAST ( NULL AS INTEGER ) + 57 WHEN 70 + - 73 THEN - CAST ( NULL AS INTEGER ) * - CAST ( COALESCE ( + 42, + 35, ( - 83 ) * - ( 76 ) ) AS REAL ) + COALESCE ( 95, COUNT ( * ) / 69, + COUNT ( * ) * MIN ( DISTINCT 37 ) + + 36 ) ELSE - ( 2 ) END, 55 + - 42 / - 78 ) ) - 12 col1
----
2453

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT 31 - COUNT( * ) * MIN( DISTINCT - 41 )
----
72

skipif mysql # not compatible
query I rowsort label-1831
SELECT 31 - COUNT ( * ) * MIN ( DISTINCT - 41 )
----
72

query I rowsort
SELECT ALL - NULLIF ( 33, + ( + - 46 ) ) * + - 90 + - 6
----
2964

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1833
SELECT + COUNT( + - 27 ) DIV - 65 col2
----
0

skipif mysql # not compatible
query I rowsort label-1833
SELECT + COUNT ( + - 27 ) / - 65 col2
----
0

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

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

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

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

query I rowsort
SELECT ALL - - 32 * + + 55 - - 69 AS col0
----
1829

query II rowsort
SELECT + - 8 * 44, - 40 AS col2
----
-352
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT COALESCE ( MIN( + + 84 ), - 18 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-1838
SELECT COALESCE ( MIN ( + + 84 ), - 18 ) AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1839
SELECT + 32 * 96 + - COUNT( * ) + + CAST( + + MAX( + + 83 ) AS SIGNED ) AS col2
----
3154

skipif mysql # not compatible
query I rowsort label-1839
SELECT + 32 * 96 + - COUNT ( * ) + + CAST ( + + MAX ( + + 83 ) AS INTEGER ) AS col2
----
3154

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1841
SELECT - - 53 - - 32 AS col2, NULLIF ( - 55, - - COUNT( ALL 53 ) )
----
85
-55

skipif mysql # not compatible
query II rowsort label-1841
SELECT - - 53 - - 32 AS col2, NULLIF ( - 55, - - COUNT ( ALL 53 ) )
----
85
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT ALL + CASE ( 73 ) WHEN 25 + 78 THEN NULL WHEN COUNT( * ) + - 2 THEN 83 WHEN 6 THEN + - 32 + + 73 * - ( 33 ) * + 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL + CASE ( 73 ) WHEN 25 + 78 THEN NULL WHEN COUNT ( * ) + - 2 THEN 83 WHEN 6 THEN + - 32 + + 73 * - ( 33 ) * + 37 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT + 77 * 64 * - COUNT( * ) * 70
----
-344960

skipif mysql # not compatible
query I rowsort label-1843
SELECT + 77 * 64 * - COUNT ( * ) * 70
----
-344960

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT + + MIN( + 86 ) + + 87 AS col1
----
173

skipif mysql # not compatible
query I rowsort label-1844
SELECT + + MIN ( + 86 ) + + 87 AS col1
----
173

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

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

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

query II rowsort
SELECT DISTINCT 21 AS col2, + 74
----
21
74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL NULLIF ( - COUNT( * ), + 33 * + AVG ( DISTINCT + - 54 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL NULLIF ( - COUNT ( * ), + 33 * + AVG ( DISTINCT + - 54 ) )
----
-1

query I rowsort
SELECT + 25 * - + 97 + - - 91 * + 61 * 42
----
230717

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT ALL + 16 * + MIN( DISTINCT - 6 ) col2
----
-96

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL + 16 * + MIN ( DISTINCT - 6 ) col2
----
-96

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

skipif mysql # not compatible
query I rowsort label-1852
SELECT + 12 / + - 87
----
0

query I rowsort
SELECT - NULLIF ( 48, 32 * + AVG ( - - 23 ) ) * 89 + - - 2
----
-4270

onlyif mysql # aggregate syntax: 
query II rowsort label-1854
SELECT ALL COUNT( * ), COUNT( * ) * NULLIF ( 94, + 8 ) col0
----
1
94

skipif mysql # not compatible
query II rowsort label-1854
SELECT ALL COUNT ( * ), COUNT ( * ) * NULLIF ( 94, + 8 ) col0
----
1
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT - MIN( DISTINCT - - NULLIF ( + 94, - 62 ) ) + 45 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-1855
SELECT - MIN ( DISTINCT - - NULLIF ( + 94, - 62 ) ) + 45 AS col0
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1856
SELECT 38 col0, 35 DIV - 71 * 49 * - CASE - 84 WHEN + 94 + - 70 THEN NULL WHEN - 39 * + 76 THEN CAST( NULL AS SIGNED ) + + COUNT( * ) - + 4 ELSE + 64 * + 34 END + - 10 AS col0
----
38
-10

skipif mysql # not compatible
query II rowsort label-1856
SELECT 38 col0, 35 / - 71 * 49 * - CASE - 84 WHEN + 94 + - 70 THEN NULL WHEN - 39 * + 76 THEN CAST ( NULL AS INTEGER ) + + COUNT ( * ) - + 4 ELSE + 64 * + 34 END + - 10 AS col0
----
38
-10

query I rowsort
SELECT DISTINCT + 71 + 50 AS col1
----
121

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

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

query I rowsort
SELECT ALL + 53 + + + 78 AS col0
----
131

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

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

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

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

query I rowsort
SELECT - NULLIF ( - - 8, 23 ) * - - ( + 19 ) AS col1
----
-152

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT - COUNT( * ) + - - ( + 29 ) * - 23 * - - 91
----
-60698

skipif mysql # not compatible
query I rowsort label-1864
SELECT - COUNT ( * ) + - - ( + 29 ) * - 23 * - - 91
----
-60698

query II rowsort
SELECT 10, + 49 col0
----
10
49

query I rowsort
SELECT - 15 + - + 54
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1867
SELECT + 21 - - + 89 DIV - 34 DIV + COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-1867
SELECT + 21 - - + 89 / - 34 / + COUNT ( * ) AS col0
----
19

query II rowsort
SELECT 67, 17 col2
----
67
17

query I rowsort
SELECT ALL + 70 * + + 59
----
4130

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

skipif mysql # not compatible
query I rowsort label-1870
SELECT - - 64 + COUNT ( * ) / - - 36
----
64

query I rowsort
SELECT + 93 - + 22 * + - 39
----
951

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1872
SELECT - + 90 + 0 DIV + CAST( 22 AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-1872
SELECT - + 90 + 0 / + CAST ( 22 AS INTEGER )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1873
SELECT ALL - ( + 89 ) DIV - 61 + - - MAX( + 46 ) + - 25 * 15 * - - 37
----
-13828

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL - ( + 89 ) / - 61 + - - MAX ( + 46 ) + - 25 * 15 * - - 37
----
-13828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1874
SELECT ALL + + CASE - + ( - + 7 ) WHEN 1 * + COALESCE ( + MIN( ALL - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ), COUNT( * ) * + + SUM( DISTINCT 4 ) + + + 35, - + 4 * + 63 + + 12 ) + - 28 THEN NULL ELSE - SUM( + ( + 21 ) ) END DIV + 85 - COUNT( * ) * 92
----
-92

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL + + CASE - + ( - + 7 ) WHEN 1 * + COALESCE ( + MIN ( ALL - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ), COUNT ( * ) * + + SUM ( DISTINCT 4 ) + + + 35, - + 4 * + 63 + + 12 ) + - 28 THEN NULL ELSE - SUM ( + ( + 21 ) ) END / + 85 - COUNT ( * ) * 92
----
-92

query II rowsort
SELECT + + 54, - 56 * 54 - 22 col0
----
54
-3046

onlyif mysql # DIV for integer division: 
query I rowsort label-1876
SELECT - ( + 88 ) DIV 1 + + ( + - 31 ) + + 25 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-1876
SELECT - ( + 88 ) / 1 + + ( + - 31 ) + + 25 AS col0
----
-94

query I rowsort
SELECT ALL + - 63 * + 49
----
-3087

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT + 73 + + MAX( + 65 ) + + + ( + 74 ) + - 34 + - 14 col0
----
164

skipif mysql # not compatible
query I rowsort label-1878
SELECT + 73 + + MAX ( + 65 ) + + + ( + 74 ) + - 34 + - 14 col0
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-1879
SELECT ALL 16 DIV - - 26 + + + ( - 14 ) col0
----
-14

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL 16 / - - 26 + + + ( - 14 ) col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT ALL - - MIN( ALL 69 ) * + 6 - + 1 AS col0
----
413

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL - - MIN ( ALL 69 ) * + 6 - + 1 AS col0
----
413

query I rowsort
SELECT - + 38 * + COALESCE ( - 29, NULLIF ( - 2, 51 * 72 ), - 75, + 27 * 96 + + 61 ) AS col1
----
1102

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1882
SELECT ALL + - 78 AS col0, 32 - + 41 + - 26 * 28 * + 54 * COALESCE ( 44, - COUNT( ALL + 51 ) ) + 52 - - + COUNT( * ) * - 83 DIV COUNT( * ) AS col0
----
-78
-1729768

skipif mysql # not compatible
query II rowsort label-1882
SELECT ALL + - 78 AS col0, 32 - + 41 + - 26 * 28 * + 54 * COALESCE ( 44, - COUNT ( ALL + 51 ) ) + 52 - - + COUNT ( * ) * - 83 / COUNT ( * ) AS col0
----
-78
-1729768

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT ALL + 93 * - SUM( + - 10 ) * 58 * 88 * + 78 AS col2
----
370244160

skipif mysql # not compatible
query I rowsort label-1883
SELECT ALL + 93 * - SUM ( + - 10 ) * 58 * 88 * + 78 AS col2
----
370244160

query I rowsort
SELECT ALL 5 * ( + 68 ) AS col0
----
340

onlyif mysql # aggregate syntax: 
query II rowsort label-1885
SELECT + COUNT( DISTINCT + 11 ) * 73 AS col0, 80 AS col2
----
73
80

skipif mysql # not compatible
query II rowsort label-1885
SELECT + COUNT ( DISTINCT + 11 ) * 73 AS col0, 80 AS col2
----
73
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT ALL + - ( + MIN( - NULLIF ( + ( - 69 ), 61 ) ) ) col0
----
-69

skipif mysql # not compatible
query I rowsort label-1886
SELECT ALL + - ( + MIN ( - NULLIF ( + ( - 69 ), 61 ) ) ) col0
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1887
SELECT ALL 63 * - CAST( NULL AS SIGNED ) * + 51 + 86 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL 63 * - CAST ( NULL AS INTEGER ) * + 51 + 86 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT DISTINCT 71 * + 41 * + COUNT( * )
----
2911

skipif mysql # not compatible
query I rowsort label-1888
SELECT DISTINCT 71 * + 41 * + COUNT ( * )
----
2911

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT DISTINCT - COUNT( * ) * + 15 * - 94 * 79 + - SUM( ALL - 12 ) + - 33 * 19 * - + 23 - + 86 AS col2
----
125737

skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT - COUNT ( * ) * + 15 * - 94 * 79 + - SUM ( ALL - 12 ) + - 33 * 19 * - + 23 - + 86 AS col2
----
125737

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

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

query I rowsort
SELECT ALL + 85 * 30 AS col2
----
2550

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

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

query I rowsort
SELECT ALL 26 * - - NULLIF ( + 90, ( 79 ) ) + 7
----
2347

query I rowsort
SELECT DISTINCT 58 + - 58 * 43
----
-2436

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

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

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

query I rowsort
SELECT + 74 * 49
----
3626

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1900
SELECT DISTINCT + 95 + 96 + - 61 * - + 34 DIV - COUNT( * ) col1
----
-1883

skipif mysql # not compatible
query I rowsort label-1900
SELECT DISTINCT + 95 + 96 + - 61 * - + 34 / - COUNT ( * ) col1
----
-1883

query I rowsort
SELECT ALL + + 28 - + 4 + - 52
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1902
SELECT ALL - + COUNT( 72 ) DIV - 24 * + ( 25 ) + + 10 + 88 DIV + NULLIF ( + 14, + SUM( DISTINCT 29 ) + - 22 + + 26 )
----
16

skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL - + COUNT ( 72 ) / - 24 * + ( 25 ) + + 10 + 88 / + NULLIF ( + 14, + SUM ( DISTINCT 29 ) + - 22 + + 26 )
----
16

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1904
SELECT DISTINCT - NULLIF ( CASE + NULLIF ( - 22, 57 / + - 38 + + 96 * 70 / 26 ) WHEN + - CAST( NULL AS SIGNED ) * + + 93 + - ( 63 ) - ( 46 ) THEN NULL WHEN - 89 * + 79 THEN - 82 * + COUNT( * ) END, 17 * - ( - ( 71 ) ) + COUNT( * ) ) * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1904
SELECT DISTINCT - NULLIF ( CASE + NULLIF ( - 22, 57 / + - 38 + + 96 * 70 / 26 ) WHEN + - CAST ( NULL AS INTEGER ) * + + 93 + - ( 63 ) - ( 46 ) THEN NULL WHEN - 89 * + 79 THEN - 82 * + COUNT ( * ) END, 17 * - ( - ( 71 ) ) + COUNT ( * ) ) * - 52
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1906
SELECT ALL + + 36 - + - 82 DIV - 18
----
32

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL + + 36 - + - 82 / - 18
----
32

query II rowsort
SELECT ALL - 83 * - 11 AS col1, 61 AS col0
----
913
61

query I rowsort
SELECT - 10 - - 35
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT - - COALESCE ( + - 4, - 67 - - 17, + + 72 ) * MIN( - 49 ) - 16 AS col0
----
180

skipif mysql # not compatible
query I rowsort label-1909
SELECT - - COALESCE ( + - 4, - 67 - - 17, + + 72 ) * MIN ( - 49 ) - 16 AS col0
----
180

query I rowsort
SELECT DISTINCT + 64 * + 24
----
1536

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

query I rowsort
SELECT DISTINCT - - 94 col2
----
94

query I rowsort
SELECT ALL - 87 * - 20 + + NULLIF ( 77, - ( 78 ) * - 54 )
----
1817

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT 76 * - + ( - 77 ) - NULLIF ( + 5, + 47 / ( - COUNT( * ) ) + MIN( + 40 ) + - + 60 + + - COUNT( * ) * CASE - + COUNT( * ) WHEN 8 * - 98 THEN NULL WHEN AVG ( - 24 ) * 74 THEN ( + 51 ) * - 92 + - COUNT( * ) END * 97 ) + + 78 * 38
----
8811

skipif mysql # not compatible
query I rowsort label-1914
SELECT 76 * - + ( - 77 ) - NULLIF ( + 5, + 47 / ( - COUNT ( * ) ) + MIN ( + 40 ) + - + 60 + + - COUNT ( * ) * CASE - + COUNT ( * ) WHEN 8 * - 98 THEN NULL WHEN AVG ( - 24 ) * 74 THEN ( + 51 ) * - 92 + - COUNT ( * ) END * 97 ) + + 78 * 38
----
8811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1915
SELECT ALL - MIN( DISTINCT + 54 ), CAST( + + 77 AS SIGNED ) * 52 * - 8 AS col1
----
-54
-32032

skipif mysql # not compatible
query II rowsort label-1915
SELECT ALL - MIN ( DISTINCT + 54 ), CAST ( + + 77 AS INTEGER ) * 52 * - 8 AS col1
----
-54
-32032

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT 40 * + MAX( DISTINCT + - 31 )
----
-1240

skipif mysql # not compatible
query I rowsort label-1916
SELECT 40 * + MAX ( DISTINCT + - 31 )
----
-1240

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1918
SELECT ALL + 52 + + ( - 44 ) DIV - 81 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL + 52 + + ( - 44 ) / - 81 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT ALL + 43 + MAX( ALL + 77 ) + - + 50 col2
----
70

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL + 43 + MAX ( ALL + 77 ) + - + 50 col2
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1920
SELECT ALL 0 DIV - + 13
----
0

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL 0 / - + 13
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1921
SELECT 44 DIV + 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1921
SELECT 44 / + 87 AS col0
----
0

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

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

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

query I rowsort
SELECT DISTINCT 11 * - 10 AS col0
----
-110

query I rowsort
SELECT ALL + 26 + + 6 AS col2
----
32

query I rowsort
SELECT DISTINCT 99 * - 49
----
-4851

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1928
SELECT CAST( + NULLIF ( - + 30, MIN( ALL 35 ) ) AS SIGNED ) + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1928
SELECT CAST ( + NULLIF ( - + 30, MIN ( ALL 35 ) ) AS INTEGER ) + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1929
SELECT ALL 93 + - + 59 DIV 83
----
93

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL 93 + - + 59 / 83
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1930
SELECT - 99 AS col0, - CAST( 83 AS SIGNED ) * ( + 65 ) - - + 75 col2
----
-99
-5320

skipif mysql # not compatible
query II rowsort label-1930
SELECT - 99 AS col0, - CAST ( 83 AS INTEGER ) * ( + 65 ) - - + 75 col2
----
-99
-5320

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

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

query II rowsort
SELECT - 10 AS col1, + 98
----
-10
98

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

query II rowsort
SELECT DISTINCT 64 AS col1, - 72 + - 23 AS col1
----
64
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1935
SELECT ALL - AVG ( ALL - 5 ) * - CAST( NULL AS SIGNED ) + + - 76 + + COUNT( * ) / + 73 * + 20 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT ALL - AVG ( ALL - 5 ) * - CAST ( NULL AS INTEGER ) + + - 76 + + COUNT ( * ) / + 73 * + 20 col2
----
NULL

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

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

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

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

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

query I rowsort
SELECT - 68 * 92 AS col1
----
-6256

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT COUNT( * ) - + 99
----
-98

skipif mysql # not compatible
query I rowsort label-1941
SELECT COUNT ( * ) - + 99
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT NULLIF ( - 83, - ( - - COUNT( * ) ) - - 3 * + 99 ) + 42 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1942
SELECT NULLIF ( - 83, - ( - - COUNT ( * ) ) - - 3 * + 99 ) + 42 AS col0
----
-41

query I rowsort
SELECT + 91 - 35 + 98 AS col0
----
154

query II rowsort
SELECT DISTINCT - 24 * - + 62 * + 43 AS col2, 54 AS col2
----
63984
54

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

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

skipif mysql # not compatible
query I rowsort label-1946
SELECT COUNT ( - 3 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT ALL - 91 + - - 36 * - 93 * - SUM( ALL 6 ) + - 73 - - 19 * - - 32 col1
----
20532

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL - 91 + - - 36 * - 93 * - SUM ( ALL 6 ) + - 73 - - 19 * - - 32 col1
----
20532

query I rowsort
SELECT ALL + - 45 + - 5 - - - 83 AS col2
----
-133

onlyif mysql # DIV for integer division: 
query I rowsort label-1949
SELECT ALL + - 29 DIV 41 * 96 + - 46 + - 39 * - + 81
----
3113

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL + - 29 / 41 * 96 + - 46 + - 39 * - + 81
----
3113

query I rowsort
SELECT + 14 * - 68
----
-952

query I rowsort
SELECT DISTINCT - + 16 + - + 81
----
-97

query I rowsort
SELECT 48 * + + 49
----
2352

query I rowsort
SELECT 83 + + - 56
----
27

query I rowsort
SELECT ALL - 85 * + 89 AS col0
----
-7565

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1955
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT - CAST ( NULL AS REAL ) * - COUNT ( * ) col2
----
NULL

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

query II rowsort
SELECT + 77 col2, 15
----
77
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1958
SELECT DISTINCT - CAST( NULL AS SIGNED ), COUNT( * ) DIV + 25 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1958
SELECT DISTINCT - CAST ( NULL AS INTEGER ), COUNT ( * ) / + 25 AS col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT DISTINCT 64 + + COUNT( DISTINCT 19 )
----
65

skipif mysql # not compatible
query I rowsort label-1959
SELECT DISTINCT 64 + + COUNT ( DISTINCT 19 )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1960
SELECT 45 AS col1, 45 * - - COUNT( * ) * 88 / - + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
45
NULL

skipif mysql # not compatible
query II rowsort label-1960
SELECT 45 AS col1, 45 * - - COUNT ( * ) * 88 / - + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
45
NULL

query I rowsort
SELECT 63 * - 93
----
-5859

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1962
SELECT ALL + 95 - - ( CAST( 82 AS SIGNED ) ) - - 85 - + 90 DIV - 29 AS col0
----
265

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL + 95 - - ( CAST ( 82 AS INTEGER ) ) - - 85 - + 90 / - 29 AS col0
----
265

onlyif mysql # aggregate syntax: 
query II rowsort label-1963
SELECT 72 - + 91 + 85 * - 30 AS col1, + ( + - SUM( DISTINCT - - 78 ) ) AS col2
----
-2569
-78

skipif mysql # not compatible
query II rowsort label-1963
SELECT 72 - + 91 + 85 * - 30 AS col1, + ( + - SUM ( DISTINCT - - 78 ) ) AS col2
----
-2569
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1964
SELECT 79 + + 20 * - 86 / + - COUNT( * ) / + - CASE 92 WHEN - COALESCE ( + CASE 31 WHEN - ( + ( - - 53 ) ) THEN + - 51 * COUNT( * ) * + 61 WHEN 42 THEN NULL ELSE 7 END, 53 * COUNT( * ), + 78 - + COALESCE ( - CAST( COUNT( * ) AS SIGNED ), 16 + + 67 ) * - 86 ) THEN ( + 77 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT 79 + + 20 * - 86 / + - COUNT ( * ) / + - CASE 92 WHEN - COALESCE ( + CASE 31 WHEN - ( + ( - - 53 ) ) THEN + - 51 * COUNT ( * ) * + 61 WHEN 42 THEN NULL ELSE 7 END, 53 * COUNT ( * ), + 78 - + COALESCE ( - CAST ( COUNT ( * ) AS INTEGER ), 16 + + 67 ) * - 86 ) THEN ( + 77 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1965
SELECT DISTINCT 4 - 42 DIV ( MAX( 80 ) ) + + 65 + 96 AS col1
----
165

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT 4 - 42 / ( MAX ( 80 ) ) + + 65 + 96 AS col1
----
165

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

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

query I rowsort
SELECT 88 * + + 11 col1
----
968

query II rowsort
SELECT - 8 AS col2, - ( 65 )
----
-8
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1969
SELECT ALL COUNT( * ), + 21 DIV 35 * + 28 col0
----
1
0

skipif mysql # not compatible
query II rowsort label-1969
SELECT ALL COUNT ( * ), + 21 / 35 * + 28 col0
----
1
0

query I rowsort
SELECT ALL 57 * - 29 * - + 38 AS col2
----
62814

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT + COUNT( * ) + 42 col1
----
43

skipif mysql # not compatible
query I rowsort label-1971
SELECT + COUNT ( * ) + 42 col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1972
SELECT DISTINCT + + 56 * - COUNT( * ) * - CAST( NULL AS SIGNED ) + - - 61 * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-1972
SELECT DISTINCT + + 56 * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - - 61 * + 51
----
NULL

query II rowsort
SELECT - 15 AS col2, + 16
----
-15
16

query II rowsort
SELECT + 39 + 23, + ( 61 ) col1
----
62
61

onlyif mysql # DIV for integer division: 
query II rowsort label-1975
SELECT - + 1 col2, 48 DIV 27
----
-1
1

skipif mysql # not compatible
query II rowsort label-1975
SELECT - + 1 col2, 48 / 27
----
-1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1976
SELECT 42 AS col1, CASE + 15 WHEN - 6 * + + 87 + 78 THEN - CAST( NULL AS SIGNED ) + 61 END * + 26 AS col0
----
42
NULL

skipif mysql # not compatible
query II rowsort label-1976
SELECT 42 AS col1, CASE + 15 WHEN - 6 * + + 87 + 78 THEN - CAST ( NULL AS INTEGER ) + 61 END * + 26 AS col0
----
42
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1977
SELECT + - COALESCE ( - - NULLIF ( + COALESCE ( - CAST( NULL AS SIGNED ), 32 + + + 11 ), 6 + - COUNT( * ) ), ( 23 ), 48, - + 60 * - + 74 * - - 99 - - 65 + 40 * COUNT( - 26 ) + - 83 ) + 91 * - 98 AS col0
----
-8961

skipif mysql # not compatible
query I rowsort label-1977
SELECT + - COALESCE ( - - NULLIF ( + COALESCE ( - CAST ( NULL AS INTEGER ), 32 + + + 11 ), 6 + - COUNT ( * ) ), ( 23 ), 48, - + 60 * - + 74 * - - 99 - - 65 + 40 * COUNT ( - 26 ) + - 83 ) + 91 * - 98 AS col0
----
-8961

query I rowsort
SELECT + 66 * - 96 AS col1
----
-6336

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

query I rowsort
SELECT + + 70 + - + 8 * + + ( - 71 )
----
638

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT - CASE + - 27 WHEN 35 THEN + AVG ( ( - - 97 ) ) WHEN + ( + NULLIF ( ( + COUNT( * ) ), 60 * + 67 ) ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1981
SELECT - CASE + - 27 WHEN 35 THEN + AVG ( ( - - 97 ) ) WHEN + ( + NULLIF ( ( + COUNT ( * ) ), 60 * + 67 ) ) THEN NULL END col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1983
SELECT ALL + ( + SUM( 95 ) ) + 72 AS col0, + 84 - - COUNT( * )
----
167
85

skipif mysql # not compatible
query II rowsort label-1983
SELECT ALL + ( + SUM ( 95 ) ) + 72 AS col0, + 84 - - COUNT ( * )
----
167
85

query I rowsort
SELECT + + 26 * 97
----
2522

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1986
SELECT ALL + 40 + - COUNT( * ), - COUNT( * ) + + 88 col1
----
39
87

skipif mysql # not compatible
query II rowsort label-1986
SELECT ALL + 40 + - COUNT ( * ), - COUNT ( * ) + + 88 col1
----
39
87

query I rowsort
SELECT DISTINCT - 82 + - 81 AS col2
----
-163

query I rowsort
SELECT ALL 29 * - - 93 AS col1
----
2697

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1989
SELECT + SUM( - 45 ) DIV - - 43
----
-1

skipif mysql # not compatible
query I rowsort label-1989
SELECT + SUM ( - 45 ) / - - 43
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1990
SELECT + CAST( + - 59 AS SIGNED ) * - + 28 + + - 52 AS col1
----
1600

skipif mysql # not compatible
query I rowsort label-1990
SELECT + CAST ( + - 59 AS INTEGER ) * - + 28 + + - 52 AS col1
----
1600

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

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

query I rowsort
SELECT - 5 * + - 29 - 53 - - ( - + 94 )
----
-2

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

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

query I rowsort
SELECT + - 99 + - ( 33 ) AS col1
----
-132

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT CASE - - ( 13 ) WHEN 77 THEN - 13 WHEN + ( COUNT( ALL + + 54 ) ) * - + 78 THEN + - 86 * + 49 / + - 23 * - 13 / - 85 * + + 31 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1997
SELECT CASE - - ( 13 ) WHEN 77 THEN - 13 WHEN + ( COUNT ( ALL + + 54 ) ) * - + 78 THEN + - 86 * + 49 / + - 23 * - 13 / - 85 * + + 31 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT + ( + SUM( DISTINCT 68 ) ) col2
----
68

skipif mysql # not compatible
query I rowsort label-1998
SELECT + ( + SUM ( DISTINCT 68 ) ) col2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1999
SELECT 26 * 18 * 80 DIV + - 47 - + 52
----
-848

skipif mysql # not compatible
query I rowsort label-1999
SELECT 26 * 18 * 80 / + - 47 - + 52
----
-848

query I rowsort
SELECT ALL 39 * 95 - 8
----
3697

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2001
SELECT COALESCE ( + COUNT( * ), 9 DIV - - 75 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2001
SELECT COALESCE ( + COUNT ( * ), 9 / - - 75 ) AS col1
----
1

query I rowsort
SELECT - 81 * + 51
----
-4131

query I rowsort
SELECT - 82 * - 46 * - 2 - + 55
----
-7599

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

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

query I rowsort
SELECT DISTINCT - 36 * - 89 * + - 40 AS col1
----
-128160

query I rowsort
SELECT - NULLIF ( - + ( - 86 ), 44 ) + - + 8 * + 28
----
-310

query I rowsort
SELECT ALL 34 * + + 96
----
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT ALL + CASE 78 WHEN + COUNT( DISTINCT + 28 ) THEN - 15 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL + CASE 78 WHEN + COUNT ( DISTINCT + 28 ) THEN - 15 END AS col1
----
NULL

query I rowsort
SELECT - + 65 * 70 + 55 AS col0
----
-4495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2010
SELECT - + COALESCE ( - + NULLIF ( + - 14, + 74 + + 60 ), - COALESCE ( + + 12, - 28, + SUM( - + CAST( - 93 AS SIGNED ) ) * + 64 DIV - ( ( - - 10 ) ) DIV - 97 + + 37 + 45 ), 59 - 79 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2010
SELECT - + COALESCE ( - + NULLIF ( + - 14, + 74 + + 60 ), - COALESCE ( + + 12, - 28, + SUM ( - + CAST ( - 93 AS INTEGER ) ) * + 64 / - ( ( - - 10 ) ) / - 97 + + 37 + 45 ), 59 - 79 ) AS col0
----
-14

query II rowsort
SELECT - 90 + - 5, + 51 AS col2
----
-95
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT + 59 * - SUM( ALL - 70 )
----
4130

skipif mysql # not compatible
query I rowsort label-2012
SELECT + 59 * - SUM ( ALL - 70 )
----
4130

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT DISTINCT + + CASE - + 10 WHEN 63 * + 89 + - 92 * + 55 THEN - COUNT( DISTINCT - 78 ) * 7 / - 24 WHEN CASE COUNT( * ) WHEN + 14 * - + 33 THEN 86 WHEN + - ( COUNT( * ) ) * 19 THEN NULL ELSE NULL END * + 78 THEN 7 ELSE NULL END + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT + + CASE - + 10 WHEN 63 * + 89 + - 92 * + 55 THEN - COUNT ( DISTINCT - 78 ) * 7 / - 24 WHEN CASE COUNT ( * ) WHEN + 14 * - + 33 THEN 86 WHEN + - ( COUNT ( * ) ) * 19 THEN NULL ELSE NULL END * + 78 THEN 7 ELSE NULL END + 12
----
NULL

query I rowsort
SELECT DISTINCT - 2 + + 78 - - 92 + + 96 + 91 AS col2
----
355

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT + + 64 + - 22 * - NULLIF ( - 27, - ( COALESCE ( - - 34, + + ( COUNT( * ) ) * - 10 * 87 + + CASE COUNT( * ) WHEN MAX( - 29 ) THEN NULL WHEN + 9 THEN NULL ELSE COALESCE ( 90, COUNT( * ) + 44 ) END + ( COALESCE ( MIN( ALL - 93 ), 87 ) ) * COALESCE ( NULLIF ( - 46, - 48 * - 73 ) * - 4 + - COUNT( * ), - 45 * + 67 + 98 * + COUNT( * ) ) ) ) * - 59 + + 39 ) * 33 AS col1
----
-19538

skipif mysql # not compatible
query I rowsort label-2017
SELECT + + 64 + - 22 * - NULLIF ( - 27, - ( COALESCE ( - - 34, + + ( COUNT ( * ) ) * - 10 * 87 + + CASE COUNT ( * ) WHEN MAX ( - 29 ) THEN NULL WHEN + 9 THEN NULL ELSE COALESCE ( 90, COUNT ( * ) + 44 ) END + ( COALESCE ( MIN ( ALL - 93 ), 87 ) ) * COALESCE ( NULLIF ( - 46, - 48 * - 73 ) * - 4 + - COUNT ( * ), - 45 * + 67 + 98 * + COUNT ( * ) ) ) ) * - 59 + + 39 ) * 33 AS col1
----
-19538

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2020
SELECT ALL + - 61 + + + 39 + + 2 DIV + ( + ( - - 3 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL + - 61 + + + 39 + + 2 / + ( + ( - - 3 ) )
----
-22

query I rowsort
SELECT - - ( - 50 )
----
-50

query I rowsort
SELECT ALL - 8 + - - 14 * - 25 AS col2
----
-358

query I rowsort
SELECT - - 3 + - + 58
----
-55

query I rowsort
SELECT + 75 - + 66 * + 61 * - 75 AS col2
----
302025

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT + ( - - 88 ) - - 29 + - COALESCE ( + 44, - - SUM( - 60 ), + - COUNT( + 75 ) ) * COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-2025
SELECT + ( - - 88 ) - - 29 + - COALESCE ( + 44, - - SUM ( - 60 ), + - COUNT ( + 75 ) ) * COUNT ( * )
----
73

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

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

query I rowsort
SELECT + 33 + 76 * 48 AS col0
----
3681

query I rowsort
SELECT ALL + 48 + + 52 * + - 21
----
-1044

query I rowsort
SELECT + ( + - CASE + 30 WHEN - ( + 22 ) THEN 30 WHEN - 96 / - 33 THEN NULL END ) + - 53
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2031
SELECT CAST( NULL AS DECIMAL ) * + AVG ( 17 ) + + - 44 + + 22 * + - AVG ( 98 ) - COUNT( * ) * + CAST( 24 AS SIGNED ) * 45 + - + 5 + + 15 * - - 68 + + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2031
SELECT CAST ( NULL AS REAL ) * + AVG ( 17 ) + + - 44 + + 22 * + - AVG ( 98 ) - COUNT ( * ) * + CAST ( 24 AS INTEGER ) * 45 + - + 5 + + 15 * - - 68 + + - COUNT ( * ) col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL MAX ( - + 1 ) * 21 AS col1
----
-21

query I rowsort
SELECT + ( + 93 ) + - 28
----
65

query I rowsort
SELECT - 58 + 1 AS col1
----
-57

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

skipif mysql # not compatible
query I rowsort label-2035
SELECT CAST ( + MAX ( DISTINCT - 86 ) AS INTEGER ) AS col0
----
-86

query I rowsort
SELECT ALL 34 * - 37 AS col1
----
-1258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2037
SELECT CAST( + COUNT( * ) AS SIGNED ) DIV + + NULLIF ( 45, - - MAX( DISTINCT 18 ) ) AS col0, ( + + 54 )
----
0
54

skipif mysql # not compatible
query II rowsort label-2037
SELECT CAST ( + COUNT ( * ) AS INTEGER ) / + + NULLIF ( 45, - - MAX ( DISTINCT 18 ) ) AS col0, ( + + 54 )
----
0
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2038
SELECT ALL + SUM( - 84 ) DIV + SUM( DISTINCT + CAST( - 5 AS SIGNED ) ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL + SUM ( - 84 ) / + SUM ( DISTINCT + CAST ( - 5 AS INTEGER ) ) AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2039
SELECT DISTINCT - CASE - - 60 WHEN 98 * - 86 THEN - 54 * - - 99 WHEN - 78 + 61 * - 91 THEN 40 END / CAST( + 56 AS SIGNED ) * + 8, ( + 85 ) AS col2
----
NULL
85

skipif mysql # not compatible
query II rowsort label-2039
SELECT DISTINCT - CASE - - 60 WHEN 98 * - 86 THEN - 54 * - - 99 WHEN - 78 + 61 * - 91 THEN 40 END / CAST ( + 56 AS INTEGER ) * + 8, ( + 85 ) AS col2
----
NULL
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2040
SELECT 88 DIV 84 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2040
SELECT 88 / 84 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2041
SELECT 23 + - ( 28 ), NULLIF ( + - 33, + - COUNT( * ) ) + + 72 AS col2
----
-5
39

skipif mysql # not compatible
query II rowsort label-2041
SELECT 23 + - ( 28 ), NULLIF ( + - 33, + - COUNT ( * ) ) + + 72 AS col2
----
-5
39

query I rowsort
SELECT ALL 21 + 89 + 83
----
193

query II rowsort
SELECT ALL - 62 AS col2, + 28
----
-62
28

query I rowsort
SELECT 33 * + 80 col0
----
2640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2045
SELECT + 97 * 83 * - - 59 + 21 + - CAST( NULL AS SIGNED ) / + - AVG ( + - 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2045
SELECT + 97 * 83 * - - 59 + 21 + - CAST ( NULL AS INTEGER ) / + - AVG ( + - 35 )
----
NULL

query I rowsort
SELECT DISTINCT + 37 * + 21 AS col0
----
777

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT + COUNT( * ) + 73 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-2047
SELECT + COUNT ( * ) + 73 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT DISTINCT - ( 15 ) + + 9 + + MAX( ALL - 14 ) - 89
----
-109

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT - ( 15 ) + + 9 + + MAX ( ALL - 14 ) - 89
----
-109

query II rowsort
SELECT DISTINCT - 25, 23 + + 35 - - + 81 * + - 23 * - 66 - + 23 + - 95 AS col1
----
-25
122898

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT + ( COUNT( * ) ) - + - COUNT( + 61 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2050
SELECT + ( COUNT ( * ) ) - + - COUNT ( + 61 ) AS col1
----
2

query II rowsort
SELECT DISTINCT 90 AS col2, + 26
----
90
26

query I rowsort
SELECT ALL - 12 + ( - 34 )
----
-46

query I rowsort
SELECT ALL + 54 + - 70 AS col0
----
-16

query I rowsort
SELECT 63 * - 96 col2
----
-6048

query I rowsort
SELECT - 60 + 1 col1
----
-59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT 53 + + SUM( 47 ) * 95 col0
----
4518

skipif mysql # not compatible
query I rowsort label-2057
SELECT 53 + + SUM ( 47 ) * 95 col0
----
4518

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT - MIN( - 96 )
----
96

skipif mysql # not compatible
query I rowsort label-2059
SELECT - MIN ( - 96 )
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2060
SELECT + 26 * - - 82 - - COUNT( * ) * - + 95 AS col0, - 30
----
2037
-30

skipif mysql # not compatible
query II rowsort label-2060
SELECT + 26 * - - 82 - - COUNT ( * ) * - + 95 AS col0, - 30
----
2037
-30

query I rowsort
SELECT ALL - ( + 44 ) * + 36
----
-1584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2062
SELECT COUNT( * ) * 82 * + - ( 55 ) + + 3 DIV - 53 + + - 48 * - + 1 + - 0 AS col1
----
-4462

skipif mysql # not compatible
query I rowsort label-2062
SELECT COUNT ( * ) * 82 * + - ( 55 ) + + 3 / - 53 + + - 48 * - + 1 + - 0 AS col1
----
-4462

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

skipif mysql # not compatible
query I rowsort label-2063
SELECT 54 / - 60
----
0

query II rowsort
SELECT DISTINCT - 17 * 68 AS col0, 59 + + - 68
----
-1156
-9

query I rowsort
SELECT + 13 * - - ( ( 66 ) ) - + 40 AS col2
----
818

query I rowsort
SELECT 2 * - + 29 * 89 AS col2
----
-5162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2067
SELECT MIN( - 81 ) + 51 + 7 DIV + 24 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-2067
SELECT MIN ( - 81 ) + 51 + 7 / + 24 AS col2
----
-30

query I rowsort
SELECT ALL + 63 * + 92 AS col2
----
5796

query I rowsort
SELECT ALL ( - + 68 ) * 66 col2
----
-4488

query I rowsort
SELECT - 74 * - 89 - - 21 col1
----
6607

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2071
SELECT ALL CAST( NULL AS DECIMAL ) * 82 AS col0, - ( - 8 ) * - + ( - 55 ) * 26
----
NULL
11440

skipif mysql # not compatible
query II rowsort label-2071
SELECT ALL CAST ( NULL AS REAL ) * 82 AS col0, - ( - 8 ) * - + ( - 55 ) * 26
----
NULL
11440

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT DISTINCT NULLIF ( + 45, - MAX( ALL + 14 ) ) + - + COALESCE ( + 37, 40 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT NULLIF ( + 45, - MAX ( ALL + 14 ) ) + - + COALESCE ( + 37, 40 ) AS col2
----
8

query I rowsort
SELECT ALL 80 + 45 + - 82 + 52 * - 84 * 11 AS col0
----
-48005

query I rowsort
SELECT 99 + 52
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-2075
SELECT ALL 32 + + 5 DIV ( 36 ) * + 21 + - - 15
----
47

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL 32 + + 5 / ( 36 ) * + 21 + - - 15
----
47

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2077
SELECT ALL - 19 + + + 53 DIV - 14 * - COUNT( * ) + + NULLIF ( - CAST( 50 AS SIGNED ), + + ( + 90 ) * + 0 * - + COALESCE ( - SUM( DISTINCT + + 69 ), + 97 + ( + 25 ), 99 DIV 2 ) ) col1
----
-66

skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL - 19 + + + 53 / - 14 * - COUNT ( * ) + + NULLIF ( - CAST ( 50 AS INTEGER ), + + ( + 90 ) * + 0 * - + COALESCE ( - SUM ( DISTINCT + + 69 ), + 97 + ( + 25 ), 99 / 2 ) ) col1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-2078
SELECT ALL - - 86 DIV 16 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL - - 86 / 16 AS col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2079
SELECT - 8 DIV + 79 + + 57
----
57

skipif mysql # not compatible
query I rowsort label-2079
SELECT - 8 / + 79 + + 57
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT DISTINCT 77 + - SUM( 1 )
----
76

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT 77 + - SUM ( 1 )
----
76

query II rowsort
SELECT ALL 91 + + - 50 * - 50 * + 64 + - + 3 col2, + 66 * 11 col0
----
160088
726

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT ALL + CASE + 5 WHEN - MAX( DISTINCT + 79 ) THEN + CASE + ( + 82 ) WHEN + 31 * - + 97 THEN + 70 ELSE NULL END END + + 2 * + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL + CASE + 5 WHEN - MAX ( DISTINCT + 79 ) THEN + CASE + ( + 82 ) WHEN + 31 * - + 97 THEN + 70 ELSE NULL END END + + 2 * + - 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT 1 * + + ( - SUM( DISTINCT - - 90 ) ) * + COUNT( * ) + COUNT( * ) + + 70 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-2083
SELECT 1 * + + ( - SUM ( DISTINCT - - 90 ) ) * + COUNT ( * ) + COUNT ( * ) + + 70 AS col1
----
-19

query I rowsort
SELECT - 74 + - - 5 * - - 22
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2085
SELECT + 44 DIV + 47 col0
----
0

skipif mysql # not compatible
query I rowsort label-2085
SELECT + 44 / + 47 col0
----
0

query I rowsort
SELECT DISTINCT - 50 * - - 84
----
-4200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2087
SELECT ALL + - 7 * - + COUNT( * ) DIV 85 + - - 29 + + 22 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL + - 7 * - + COUNT ( * ) / 85 + - - 29 + + 22 AS col2
----
51

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2090
SELECT CASE + + ( COALESCE ( ( - 63 ), - + CASE - + 56 WHEN + + 81 THEN - 19 * CASE - 68 WHEN - 96 THEN + COALESCE ( ( 96 ), + 76 ) * - 18 * - 82 + + MIN( - 24 ) * COUNT( * ) END + 20 WHEN 40 THEN NULL ELSE + 63 END - + ( - 66 + - COUNT( * ) * 48 ) ) ) WHEN COUNT( * ) + COUNT( * ) THEN 43 DIV - 39 ELSE 67 END * 6 AS col2
----
402

skipif mysql # not compatible
query I rowsort label-2090
SELECT CASE + + ( COALESCE ( ( - 63 ), - + CASE - + 56 WHEN + + 81 THEN - 19 * CASE - 68 WHEN - 96 THEN + COALESCE ( ( 96 ), + 76 ) * - 18 * - 82 + + MIN ( - 24 ) * COUNT ( * ) END + 20 WHEN 40 THEN NULL ELSE + 63 END - + ( - 66 + - COUNT ( * ) * 48 ) ) ) WHEN COUNT ( * ) + COUNT ( * ) THEN 43 / - 39 ELSE 67 END * 6 AS col2
----
402

query I rowsort
SELECT ALL + 31 * + 8 * + - 90 col2
----
-22320

query I rowsort
SELECT - 24 + 92
----
68

query I rowsort
SELECT 57 * - - 79 * + 90
----
405270

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2094
SELECT 92 + + - CAST( NULL AS DECIMAL ) * - MIN( DISTINCT - 38 ) - - 83
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2096
SELECT 99 * + COUNT ( 6 ) AS col0
----
99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT 8 - + + 59 DIV 39 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-2098
SELECT 8 - + + 59 / 39 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT ALL MIN( DISTINCT 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL MIN ( DISTINCT 51 ) AS col2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2100
SELECT - 70 DIV + 25
----
-2

skipif mysql # not compatible
query I rowsort label-2100
SELECT - 70 / + 25
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2101
SELECT DISTINCT - ( + + COUNT( * ) ) * - COUNT( * ) * 5 * + 35 AS col1, 83
----
175
83

skipif mysql # not compatible
query II rowsort label-2101
SELECT DISTINCT - ( + + COUNT ( * ) ) * - COUNT ( * ) * 5 * + 35 AS col1, 83
----
175
83

onlyif mysql # DIV for integer division: 
query I rowsort label-2102
SELECT - 5 DIV + ( - - NULLIF ( + 37, - 72 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2102
SELECT - 5 / + ( - - NULLIF ( + 37, - 72 ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2103
SELECT ALL 77 * CAST( - 49 AS SIGNED ) + + COUNT( * )
----
-3772

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL 77 * CAST ( - 49 AS INTEGER ) + + COUNT ( * )
----
-3772

query I rowsort
SELECT - 22 + + - 98 AS col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT - 16 * - COUNT( * ) * - + 82
----
-1312

skipif mysql # not compatible
query I rowsort label-2105
SELECT - 16 * - COUNT ( * ) * - + 82
----
-1312

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

skipif mysql # not compatible
query I rowsort label-2106
SELECT 5 * - CAST ( NULL AS INTEGER ) / - 59 + + + COUNT ( * ) * - + 16 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT - CASE - - MIN( + 54 ) WHEN + 59 THEN COALESCE ( - 82, - MIN( + - 3 ) ) WHEN 45 * + 11 * + - ( + - 25 ) * + 71 + 83 THEN NULL ELSE - - 85 END * + 94 AS col1
----
-7990

skipif mysql # not compatible
query I rowsort label-2107
SELECT - CASE - - MIN ( + 54 ) WHEN + 59 THEN COALESCE ( - 82, - MIN ( + - 3 ) ) WHEN 45 * + 11 * + - ( + - 25 ) * + 71 + 83 THEN NULL ELSE - - 85 END * + 94 AS col1
----
-7990

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT ALL + COUNT( * ) * + 91 + - 17 + - + 48 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-2109
SELECT ALL + COUNT ( * ) * + 91 + - 17 + - + 48 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT NULLIF ( 51, - - COUNT( * ) ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-2110
SELECT NULLIF ( 51, - - COUNT ( * ) ) AS col2
----
51

query I rowsort
SELECT - 80 + - 90 * - - 21 * 93 AS col2
----
-175850

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2112
SELECT DISTINCT + 95 * - COUNT( * ) + + - CASE + + 91 WHEN + - 33 * + + 18 * - 7 + + + NULLIF ( - - 43, - COUNT( * ) / + - 64 + - 20 ) + - 31 + 88 * - 49 * CAST( + 0 AS DECIMAL ) - + COUNT( * ) THEN NULL WHEN + ( AVG ( ALL 12 ) ) / COUNT( * ) THEN - 5 * + 85 + 41 END * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT + 95 * - COUNT ( * ) + + - CASE + + 91 WHEN + - 33 * + + 18 * - 7 + + + NULLIF ( - - 43, - COUNT ( * ) / + - 64 + - 20 ) + - 31 + 88 * - 49 * CAST ( + 0 AS REAL ) - + COUNT ( * ) THEN NULL WHEN + ( AVG ( ALL 12 ) ) / COUNT ( * ) THEN - 5 * + 85 + 41 END * 89
----
NULL

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

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

query I rowsort
SELECT - 15 * + 86 col1
----
-1290

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT + MIN( ALL + - CASE + + 55 WHEN + 28 + - 16 * + + 6 THEN + - 23 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2116
SELECT + MIN ( ALL + - CASE + + 55 WHEN + 28 + - 16 * + + 6 THEN + - 23 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2117
SELECT ALL + - CAST( NULL AS SIGNED ), CASE WHEN ( NULL ) < + 48 THEN + - COUNT( * ) / + 98 WHEN NULL NOT IN ( ( - SUM( ALL - + ( 87 ) ) ) ) THEN - 68 END * 49
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2117
SELECT ALL + - CAST ( NULL AS INTEGER ), CASE WHEN ( NULL ) < + 48 THEN + - COUNT ( * ) / + 98 WHEN NULL NOT IN ( ( - SUM ( ALL - + ( 87 ) ) ) ) THEN - 68 END * 49
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT ALL + ( - ( 32 ) ) * + NULLIF ( + + COUNT( 52 ), - AVG ( + 22 ) * 84 * - ( - - 87 ) * 2 + 37 ) + COALESCE ( - - 98, 2 - - 91 ) + + + 48
----
114

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL + ( - ( 32 ) ) * + NULLIF ( + + COUNT ( 52 ), - AVG ( + 22 ) * 84 * - ( - - 87 ) * 2 + 37 ) + COALESCE ( - - 98, 2 - - 91 ) + + + 48
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2119
SELECT - COALESCE ( 17, - 70 ) * 47 + - CAST( COUNT( * ) AS SIGNED ) + 78 DIV + 5
----
-785

skipif mysql # not compatible
query I rowsort label-2119
SELECT - COALESCE ( 17, - 70 ) * 47 + - CAST ( COUNT ( * ) AS INTEGER ) + 78 / + 5
----
-785

query I rowsort
SELECT DISTINCT - - 65 * + + 0 * - 68 + - - 87
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2121
SELECT + 5 + + COALESCE ( + 71, 68, - + 97 DIV 31 ) * + - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-2121
SELECT + 5 + + COALESCE ( + 71, 68, - + 97 / 31 ) * + - COUNT ( * )
----
-66

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

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

query I rowsort
SELECT + 63 - - 99 + - 39
----
123

query I rowsort
SELECT + - 27 * + - 62 AS col0
----
1674

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

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

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

query I rowsort
SELECT DISTINCT 11 - 94
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2128
SELECT DISTINCT - - NULLIF ( - + NULLIF ( - 55, + 50 ), - 69 ) * + - 50 DIV COUNT( * ) AS col0
----
-2750

skipif mysql # not compatible
query I rowsort label-2128
SELECT DISTINCT - - NULLIF ( - + NULLIF ( - 55, + 50 ), - 69 ) * + - 50 / COUNT ( * ) AS col0
----
-2750

query I rowsort
SELECT ALL - 71 - + + 90
----
-161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2130
SELECT DISTINCT + CASE COALESCE ( - 26, - - CASE - CAST( NULL AS SIGNED ) WHEN 30 THEN NULL WHEN + 53 * - - CASE 90 WHEN + CASE - + CAST( - 33 AS DECIMAL ) WHEN ( - 94 ) * + + 92 THEN - - 93 WHEN + 3 + - 54 THEN NULL WHEN + ( 82 ) THEN 53 + + 44 ELSE NULL END * COUNT( ALL 38 ) + 48 THEN NULL WHEN - 80 THEN ( - 64 ) / 85 ELSE ( + ( 87 ) ) END * CAST( NULL AS SIGNED ) THEN ( 29 ) * - 11 END * 29 ) WHEN - 60 THEN NULL ELSE COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT + CASE COALESCE ( - 26, - - CASE - CAST ( NULL AS INTEGER ) WHEN 30 THEN NULL WHEN + 53 * - - CASE 90 WHEN + CASE - + CAST ( - 33 AS REAL ) WHEN ( - 94 ) * + + 92 THEN - - 93 WHEN + 3 + - 54 THEN NULL WHEN + ( 82 ) THEN 53 + + 44 ELSE NULL END * COUNT ( ALL 38 ) + 48 THEN NULL WHEN - 80 THEN ( - 64 ) / 85 ELSE ( + ( 87 ) ) END * CAST ( NULL AS INTEGER ) THEN ( 29 ) * - 11 END * 29 ) WHEN - 60 THEN NULL ELSE COUNT ( * ) END AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2131
SELECT DISTINCT + 38 DIV - 42
----
0

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT + 38 / - 42
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2132
SELECT + COUNT( * ) * + 17 + + - 97 DIV 98 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-2132
SELECT + COUNT ( * ) * + 17 + + - 97 / 98 AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2133
SELECT - CASE + + 29 WHEN - - COUNT( * ) THEN - 25 * 57 DIV + 66 * - 94 - - CASE - 54 WHEN + MAX( - 53 ) * + + 77 DIV - CASE 7 WHEN 95 THEN + + 30 + 21 * + + 31 + + 73 ELSE NULL END * + 39 + - 6 + 88 THEN + 89 END WHEN - 95 * + 36 THEN NULL ELSE 52 * - COALESCE ( 78, 58 * 31, - CAST( NULL AS SIGNED ) * 10, ( 0 ) + + 53 ) END
----
4056

skipif mysql # not compatible
query I rowsort label-2133
SELECT - CASE + + 29 WHEN - - COUNT ( * ) THEN - 25 * 57 / + 66 * - 94 - - CASE - 54 WHEN + MAX ( - 53 ) * + + 77 / - CASE 7 WHEN 95 THEN + + 30 + 21 * + + 31 + + 73 ELSE NULL END * + 39 + - 6 + 88 THEN + 89 END WHEN - 95 * + 36 THEN NULL ELSE 52 * - COALESCE ( 78, 58 * 31, - CAST ( NULL AS INTEGER ) * 10, ( 0 ) + + 53 ) END
----
4056

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT + 59 * MAX( ALL 21 ) * + 6 * + COUNT( * ) AS col0
----
7434

skipif mysql # not compatible
query I rowsort label-2134
SELECT + 59 * MAX ( ALL 21 ) * + 6 * + COUNT ( * ) AS col0
----
7434

query I rowsort
SELECT - 65 * - + 97
----
6305

query II rowsort
SELECT ALL 14, - 35 AS col1
----
14
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2137
SELECT - 82 + - 12 + 87 - 12 + - + COUNT( * ) * + 78 * 57 * + + CAST( CASE + 31 WHEN MIN( ALL + + ( - 57 ) ) + - - COUNT( * ) THEN + 49 ELSE NULL END AS SIGNED ) * 92 AS col1, 81 + + + 59 * COUNT( * ) - - 88
----
NULL
228

skipif mysql # not compatible
query II rowsort label-2137
SELECT - 82 + - 12 + 87 - 12 + - + COUNT ( * ) * + 78 * 57 * + + CAST ( CASE + 31 WHEN MIN ( ALL + + ( - 57 ) ) + - - COUNT ( * ) THEN + 49 ELSE NULL END AS INTEGER ) * 92 AS col1, 81 + + + 59 * COUNT ( * ) - - 88
----
NULL
228

onlyif mysql # DIV for integer division: 
query I rowsort label-2138
SELECT - 41 DIV 82 * - + 16
----
0

skipif mysql # not compatible
query I rowsort label-2138
SELECT - 41 / 82 * - + 16
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT ALL MIN( DISTINCT - - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL MIN ( DISTINCT - - 23 )
----
23

query I rowsort
SELECT DISTINCT 70 + 38
----
108

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2143
SELECT ALL - CAST( ( 68 ) AS SIGNED ) + + + 14
----
-54

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL - CAST ( ( 68 ) AS INTEGER ) + + + 14
----
-54

query I rowsort
SELECT ALL 5 + + + 98
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-2145
SELECT DISTINCT MIN( ALL + 15 ) AS col2, + 77 * - 99 + + 43 AS col0
----
15
-7580

skipif mysql # not compatible
query II rowsort label-2145
SELECT DISTINCT MIN ( ALL + 15 ) AS col2, + 77 * - 99 + + 43 AS col0
----
15
-7580

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT + 66 * COUNT( * ) - + 21
----
45

skipif mysql # not compatible
query I rowsort label-2147
SELECT + 66 * COUNT ( * ) - + 21
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2148
SELECT CAST( NULL AS SIGNED ) col1, SUM( DISTINCT + + 60 ) AS col0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-2148
SELECT CAST ( NULL AS INTEGER ) col1, SUM ( DISTINCT + + 60 ) AS col0
----
NULL
60

query I rowsort
SELECT - 69 * 49
----
-3381

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2150
SELECT ALL - 18 DIV + MIN( + 90 ) + + COUNT( * ) - ( + 73 ) + - 67
----
-139

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL - 18 / + MIN ( + 90 ) + + COUNT ( * ) - ( + 73 ) + - 67
----
-139

query I rowsort
SELECT - 33 * - 67 AS col2
----
2211

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT ALL + 29 * 61 * - - COUNT( * ) col0
----
1769

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL + 29 * 61 * - - COUNT ( * ) col0
----
1769

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2154
SELECT + 13 col2, SUM( 13 )
----
13
13

skipif mysql # not compatible
query II rowsort label-2154
SELECT + 13 col2, SUM ( 13 )
----
13
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2155
SELECT + 36 / + 77 - + + NULLIF ( CAST( NULL AS SIGNED ), + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2155
SELECT + 36 / + 77 - + + NULLIF ( CAST ( NULL AS INTEGER ), + + COUNT ( * ) )
----
NULL

query I rowsort
SELECT - + 11 * - 79
----
869

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT - + COUNT( * ) * 60 * 3 + + 73 + - 41
----
-148

skipif mysql # not compatible
query I rowsort label-2157
SELECT - + COUNT ( * ) * 60 * 3 + + 73 + - 41
----
-148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2158
SELECT - MIN( - 9 ) + + COUNT( * ) * - 61 * 34 * + + CASE - - CAST( NULL AS SIGNED ) WHEN - + 8 * + - NULLIF ( + 46, - AVG ( 12 ) ) + + + 47 + - 37 * - - 11 + 37 THEN NULL WHEN + 79 * 18 THEN NULL WHEN + + 45 / - 24 THEN AVG ( DISTINCT ( - COALESCE ( - 86, 54 ) ) ) / COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2158
SELECT - MIN ( - 9 ) + + COUNT ( * ) * - 61 * 34 * + + CASE - - CAST ( NULL AS INTEGER ) WHEN - + 8 * + - NULLIF ( + 46, - AVG ( 12 ) ) + + + 47 + - 37 * - - 11 + 37 THEN NULL WHEN + 79 * 18 THEN NULL WHEN + + 45 / - 24 THEN AVG ( DISTINCT ( - COALESCE ( - 86, 54 ) ) ) / COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 25 * 99 + + - 92 col0
----
-2567

onlyif mysql # aggregate syntax: 
query II rowsort label-2160
SELECT - - 77 * 26 * + 28 * 99 * - - COUNT( * ) + - 17 AS col2, - 83 AS col1
----
5549527
-83

skipif mysql # not compatible
query II rowsort label-2160
SELECT - - 77 * 26 * + 28 * 99 * - - COUNT ( * ) + - 17 AS col2, - 83 AS col1
----
5549527
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2161
SELECT + + 56 DIV - COUNT( ALL - 88 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-2161
SELECT + + 56 / - COUNT ( ALL - 88 ) AS col0
----
-56

query I rowsort
SELECT - 56 * + 73
----
-4088

query II rowsort
SELECT ALL + 18, - CASE 46 WHEN 81 THEN - 32 END AS col2
----
18
NULL

query II rowsort
SELECT - 37 AS col0, 82 * + + 57
----
-37
4674

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT ALL - 64 * 35 / - 11 * CASE + - 95 WHEN + + 56 THEN + 47 + + NULLIF ( + COUNT( * ), + 14 * + 31 - ( - 0 ) - + SUM( + - 68 ) ) * + - 30 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL - 64 * 35 / - 11 * CASE + - 95 WHEN + + 56 THEN + 47 + + NULLIF ( + COUNT ( * ), + 14 * + 31 - ( - 0 ) - + SUM ( + - 68 ) ) * + - 30 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT + + 62 AS col1, 89 AS col0
----
62
89

onlyif mysql # aggregate syntax: 
query II rowsort label-2167
SELECT ALL + 9 * + 40 + COUNT( - 74 ) + + 13 + 6 + + 5 * + COUNT( + + 16 ), - COUNT( * ) col2
----
385
-1

skipif mysql # not compatible
query II rowsort label-2167
SELECT ALL + 9 * + 40 + COUNT ( - 74 ) + + 13 + 6 + + 5 * + COUNT ( + + 16 ), - COUNT ( * ) col2
----
385
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT - CASE + COUNT( * ) WHEN + 41 THEN - ( + ( - - MAX( + 34 ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2168
SELECT - CASE + COUNT ( * ) WHEN + 41 THEN - ( + ( - - MAX ( + 34 ) ) ) END
----
NULL

query I rowsort
SELECT - - 18 + - 55 + + 15 AS col2
----
-22

query I rowsort
SELECT + + 54 * + - 35
----
-1890

query I rowsort
SELECT ALL + 49 * 58
----
2842

onlyif mysql # DIV for integer division: 
query II rowsort label-2172
SELECT - 11 col2, - COALESCE ( - COALESCE ( 11, + 52 DIV - 9 + 89 ), + 27 DIV + 24 )
----
-11
11

skipif mysql # not compatible
query II rowsort label-2172
SELECT - 11 col2, - COALESCE ( - COALESCE ( 11, + 52 / - 9 + 89 ), + 27 / + 24 )
----
-11
11

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

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

query II rowsort
SELECT 82 + + 33 AS col1, - 70 AS col0
----
115
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT MAX( + + 71 ) + 11 + + + 56 col2
----
138

skipif mysql # not compatible
query I rowsort label-2175
SELECT MAX ( + + 71 ) + 11 + + + 56 col2
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-2176
SELECT ALL + 4 + 94 + 91 + - 55 * + 17 AS col2, + COUNT( * ) * COUNT( * ) - - COUNT( 43 )
----
-746
2

skipif mysql # not compatible
query II rowsort label-2176
SELECT ALL + 4 + 94 + 91 + - 55 * + 17 AS col2, + COUNT ( * ) * COUNT ( * ) - - COUNT ( 43 )
----
-746
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2177
SELECT CASE 96 WHEN 88 THEN + - CAST( - - ( - COUNT( * ) ) AS SIGNED ) WHEN 65 + - 61 THEN NULL ELSE NULL END + - + COUNT( * ) - - 59 + 6 / + - 67 + + MAX( DISTINCT - NULLIF ( + 94, - 40 ) ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT CASE 96 WHEN 88 THEN + - CAST ( - - ( - COUNT ( * ) ) AS INTEGER ) WHEN 65 + - 61 THEN NULL ELSE NULL END + - + COUNT ( * ) - - 59 + 6 / + - 67 + + MAX ( DISTINCT - NULLIF ( + 94, - 40 ) ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 17 + + 97 AS col2
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2179
SELECT 8 + + - CAST( - COALESCE ( - 10, - 73 ) AS SIGNED ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-2179
SELECT 8 + + - CAST ( - COALESCE ( - 10, - 73 ) AS INTEGER ) col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2180
SELECT COUNT( - 55 ) DIV - 42 * 87 + - 83
----
-83

skipif mysql # not compatible
query I rowsort label-2180
SELECT COUNT ( - 55 ) / - 42 * 87 + - 83
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT ( - + 63 ) + - 23 * - 81 + COUNT( + 30 )
----
1801

skipif mysql # not compatible
query I rowsort label-2181
SELECT ( - + 63 ) + - 23 * - 81 + COUNT ( + 30 )
----
1801

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2183
SELECT 98 + 72 + + COALESCE ( 70, - CAST( NULL AS SIGNED ), + + CAST( 95 AS SIGNED ) ) * + ( 19 ) + - COUNT( * )
----
1499

skipif mysql # not compatible
query I rowsort label-2183
SELECT 98 + 72 + + COALESCE ( 70, - CAST ( NULL AS INTEGER ), + + CAST ( 95 AS INTEGER ) ) * + ( 19 ) + - COUNT ( * )
----
1499

query I rowsort
SELECT ALL 21 + + - 81 AS col2
----
-60

query II rowsort
SELECT DISTINCT 56 - 90 AS col1, + 74 AS col0
----
-34
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT + MIN( DISTINCT 52 ) * + 53 + 53
----
2809

skipif mysql # not compatible
query I rowsort label-2186
SELECT + MIN ( DISTINCT 52 ) * + 53 + 53
----
2809

query I rowsort
SELECT DISTINCT 39 * - + 36 + - ( 4 ) + + 93
----
-1315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2188
SELECT NULLIF ( - + 18, - - 12 ) * - + COUNT( * ) * CAST( + - 7 AS SIGNED ) * CAST( NULL AS DECIMAL ) + + + 21 + + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2188
SELECT NULLIF ( - + 18, - - 12 ) * - + COUNT ( * ) * CAST ( + - 7 AS INTEGER ) * CAST ( NULL AS REAL ) + + + 21 + + 38 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT - SUM( DISTINCT + 84 ) * - 85 AS col1
----
7140

skipif mysql # not compatible
query I rowsort label-2189
SELECT - SUM ( DISTINCT + 84 ) * - 85 AS col1
----
7140

onlyif mysql # DIV for integer division: 
query II rowsort label-2190
SELECT ALL + + 0 DIV 70, 47 * - 15 + + 8 AS col0
----
0
-697

skipif mysql # not compatible
query II rowsort label-2190
SELECT ALL + + 0 / 70, 47 * - 15 + + 8 AS col0
----
0
-697

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2192
SELECT ALL - CASE + + COALESCE ( - 39, - 32 - + + 80 + + + CASE CAST( NULL AS SIGNED ) WHEN - 53 + - COUNT( * ) THEN + COALESCE ( - - 17, + 66, + + 79 + + - ( + MAX( DISTINCT - 91 ) ) ) WHEN + - 22 * - + 1 THEN NULL ELSE NULL END ) WHEN + 47 THEN - 79 * - - 29 - + AVG ( ALL 19 ) - 59 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL - CASE + + COALESCE ( - 39, - 32 - + + 80 + + + CASE CAST ( NULL AS INTEGER ) WHEN - 53 + - COUNT ( * ) THEN + COALESCE ( - - 17, + 66, + + 79 + + - ( + MAX ( DISTINCT - 91 ) ) ) WHEN + - 22 * - + 1 THEN NULL ELSE NULL END ) WHEN + 47 THEN - 79 * - - 29 - + AVG ( ALL 19 ) - 59 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + + 25 * - 29 + + 82 * 21 AS col0
----
997

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

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL + COUNT ( * ) / + COUNT ( * ) - - - 31
----
-30

query I rowsort
SELECT 53 + + 47
----
100

query II rowsort
SELECT + COALESCE ( 67, - - 62 - 15 * 26 ) AS col0, 12 + 54 AS col0
----
67
66

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

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

query I rowsort
SELECT DISTINCT - - 66 * 82 col0
----
5412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2199
SELECT ALL + 86 + CAST( + CASE - + 56 WHEN + + ( - SUM( DISTINCT + 36 ) ) THEN NULL WHEN 28 THEN + 64 * 50 + - 37 * - CASE + - COUNT( * ) WHEN - 13 THEN - 18 ELSE NULL END WHEN ( 48 ) THEN + 51 ELSE 74 + - + COALESCE ( - 47, + CAST( NULL AS SIGNED ), - 99 * 31 ) END AS SIGNED ) - 12 * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL + 86 + CAST ( + CASE - + 56 WHEN + + ( - SUM ( DISTINCT + 36 ) ) THEN NULL WHEN 28 THEN + 64 * 50 + - 37 * - CASE + - COUNT ( * ) WHEN - 13 THEN - 18 ELSE NULL END WHEN ( 48 ) THEN + 51 ELSE 74 + - + COALESCE ( - 47, + CAST ( NULL AS INTEGER ), - 99 * 31 ) END AS INTEGER ) - 12 * CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2200
SELECT ALL COALESCE ( 91, + 5 * + COALESCE ( - 27, + - ( NULLIF ( 66, + 35 ) ) + + COUNT( * ), 7 - - 45 ) + 64 ) + + CASE - COUNT( * ) WHEN + 55 THEN + 21 WHEN + - MIN( DISTINCT + 52 ) * - 42 + - 23 THEN 83 * + 69 + CAST( NULL AS SIGNED ) ELSE 45 * COUNT( * ) END - - 78 col0
----
214

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL COALESCE ( 91, + 5 * + COALESCE ( - 27, + - ( NULLIF ( 66, + 35 ) ) + + COUNT ( * ), 7 - - 45 ) + 64 ) + + CASE - COUNT ( * ) WHEN + 55 THEN + 21 WHEN + - MIN ( DISTINCT + 52 ) * - 42 + - 23 THEN 83 * + 69 + CAST ( NULL AS INTEGER ) ELSE 45 * COUNT ( * ) END - - 78 col0
----
214

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2202
SELECT ALL + 0 + 85 * COUNT( * ), - 44 * - 16 col2
----
85
704

skipif mysql # not compatible
query II rowsort label-2202
SELECT ALL + 0 + 85 * COUNT ( * ), - 44 * - 16 col2
----
85
704

query II rowsort
SELECT ALL 21, 42 + + 82 * + 4 * + 20 AS col0
----
21
6602

query I rowsort
SELECT 88 - 7
----
81

query II rowsort
SELECT 57 AS col0, + 81 AS col1
----
57
81

query II rowsort
SELECT 98 * - 14 * + 2 AS col0, + 9 AS col2
----
-2744
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2207
SELECT ALL CAST( 98 AS SIGNED ) - + 32, COUNT( * ) + - + 16 col1
----
66
-15

skipif mysql # not compatible
query II rowsort label-2207
SELECT ALL CAST ( 98 AS INTEGER ) - + 32, COUNT ( * ) + - + 16 col1
----
66
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2208
SELECT COALESCE ( - 31, - - 71 * ( ( - + 11 ) ), 84 * + 89 - 18 * - SUM( - 40 ) * + 30 + - + 83 * ( + - 73 ), 78 * CAST( NULL AS SIGNED ) - 67 + - 99 * + MAX( + 3 ) - + - 69 - - - 60 * NULLIF ( MAX( + 56 ), AVG ( 99 ) ) + 87 ) * + 8
----
-248

skipif mysql # not compatible
query I rowsort label-2208
SELECT COALESCE ( - 31, - - 71 * ( ( - + 11 ) ), 84 * + 89 - 18 * - SUM ( - 40 ) * + 30 + - + 83 * ( + - 73 ), 78 * CAST ( NULL AS INTEGER ) - 67 + - 99 * + MAX ( + 3 ) - + - 69 - - - 60 * NULLIF ( MAX ( + 56 ), AVG ( 99 ) ) + 87 ) * + 8
----
-248

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT DISTINCT + CASE 39 WHEN - AVG ( DISTINCT - 85 ) THEN - + ( + - 16 ) WHEN - + 47 + - 10 THEN + - 55 ELSE + COUNT( * ) END - + + 5 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT + CASE 39 WHEN - AVG ( DISTINCT - 85 ) THEN - + ( + - 16 ) WHEN - + 47 + - 10 THEN + - 55 ELSE + COUNT ( * ) END - + + 5 AS col2
----
-4

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

skipif mysql # not compatible
query I rowsort label-2210
SELECT - MIN ( - + 90 )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2211
SELECT 81, 62 * + 93 DIV - COUNT( * ) - - NULLIF ( - COUNT( * ), + - 11 ) AS col1
----
81
-5767

skipif mysql # not compatible
query II rowsort label-2211
SELECT 81, 62 * + 93 / - COUNT ( * ) - - NULLIF ( - COUNT ( * ), + - 11 ) AS col1
----
81
-5767

onlyif mysql # DIV for integer division: 
query I rowsort label-2212
SELECT ALL 68 DIV 68
----
1

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL 68 / 68
----
1

query I rowsort
SELECT - 2 - + 91 * - 27 + + + 57 * - 73
----
-1706

onlyif mysql # DIV for integer division: 
query I rowsort label-2214
SELECT 19 DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-2214
SELECT 19 / + 35
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2217
SELECT DISTINCT - + 94 AS col0, 35 + - + MAX( ALL + 35 )
----
-94
0

skipif mysql # not compatible
query II rowsort label-2217
SELECT DISTINCT - + 94 AS col0, 35 + - + MAX ( ALL + 35 )
----
-94
0

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

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

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

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

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

query I rowsort
SELECT ( + ( - 59 ) ) * + 62 - - + 67
----
-3591

onlyif mysql # aggregate syntax: 
query II rowsort label-2222
SELECT DISTINCT + 15 * + COUNT( 32 ) * - 29 * + SUM( ALL + 4 ) + + - ( + 56 ) * + + 57 AS col0, - 13
----
-4932
-13

skipif mysql # not compatible
query II rowsort label-2222
SELECT DISTINCT + 15 * + COUNT ( 32 ) * - 29 * + SUM ( ALL + 4 ) + + - ( + 56 ) * + + 57 AS col0, - 13
----
-4932
-13

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

skipif mysql # not compatible
query I rowsort label-2223
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + - CASE + 4 WHEN 38 THEN - - 52 END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT ALL CASE 22 WHEN + 81 THEN NULL WHEN + COUNT( * ) THEN - + 75 - - + 85 ELSE + COUNT( * ) END * COUNT( * ) - - 39 + 60 - + 80 * - NULLIF ( - 19, + ( + + 17 ) )
----
-1420

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL CASE 22 WHEN + 81 THEN NULL WHEN + COUNT ( * ) THEN - + 75 - - + 85 ELSE + COUNT ( * ) END * COUNT ( * ) - - 39 + 60 - + 80 * - NULLIF ( - 19, + ( + + 17 ) )
----
-1420

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT ALL 93 * NULLIF ( - 50, 57 ) + + + 35 + - 54 + + COUNT( * ) * 60 * + ( + COUNT( ALL 61 ) ) col1
----
-4609

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL 93 * NULLIF ( - 50, 57 ) + + + 35 + - 54 + + COUNT ( * ) * 60 * + ( + COUNT ( ALL 61 ) ) col1
----
-4609

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2227
SELECT + 85 * + ( + 99 ) + + CAST( + 58 AS SIGNED ) AS col1
----
8473

skipif mysql # not compatible
query I rowsort label-2227
SELECT + 85 * + ( + 99 ) + + CAST ( + 58 AS INTEGER ) AS col1
----
8473

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

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

query I rowsort
SELECT + + 27 * + 38 col1
----
1026

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT ALL + 21 + - COUNT( * ) + 51 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL + 21 + - COUNT ( * ) + 51 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT - COALESCE ( 6, COUNT( * ) )
----
-6

skipif mysql # not compatible
query I rowsort label-2231
SELECT - COALESCE ( 6, COUNT ( * ) )
----
-6

query I rowsort
SELECT ALL + 41 + + 19 AS col2
----
60

query II rowsort
SELECT 74 AS col2, + 40 AS col1
----
74
40

onlyif mysql # aggregate syntax: 
query II rowsort label-2234
SELECT - 24 * - COUNT( * ) * - 54 * - 61 AS col0, 81 col2
----
79056
81

skipif mysql # not compatible
query II rowsort label-2234
SELECT - 24 * - COUNT ( * ) * - 54 * - 61 AS col0, 81 col2
----
79056
81

query I rowsort
SELECT ALL - NULLIF ( + 29, 44 + 92 ) + 22
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2236
SELECT - 64 + + CAST( - 16 AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-2236
SELECT - 64 + + CAST ( - 16 AS INTEGER )
----
-80

query I rowsort
SELECT ALL COALESCE ( 12, + - ( - + 97 ) * + - 38 + 2 ) AS col2
----
12

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

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

query I rowsort
SELECT - 10 + + 21
----
11

query I rowsort
SELECT DISTINCT COALESCE ( + - NULLIF ( - - 81, - + 18 ), 46 )
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2241
SELECT - 98 * SUM( + 64 ) DIV - 45
----
139

skipif mysql # not compatible
query I rowsort label-2241
SELECT - 98 * SUM ( + 64 ) / - 45
----
139

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2244
SELECT - 50 + + COUNT ( * ) * - 72 AS col1
----
-122

query I rowsort
SELECT + - 43 + - 65 - - - 2
----
-110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT - - 99 * - + 58 * - COUNT( * ) * + 67 + + 10 AS col1
----
384724

skipif mysql # not compatible
query I rowsort label-2247
SELECT - - 99 * - + 58 * - COUNT ( * ) * + 67 + + 10 AS col1
----
384724

query I rowsort
SELECT + 36 + - 38
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2249
SELECT ALL - + 16 * - - 68 * 30 DIV - NULLIF ( COUNT( * ), + 79 - - + 0 ) AS col0
----
32640

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL - + 16 * - - 68 * 30 / - NULLIF ( COUNT ( * ), + 79 - - + 0 ) AS col0
----
32640

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT - 49 * - 77 + + MAX( - 65 ) + 2 - - - 9 * NULLIF ( + - COUNT( DISTINCT + 70 ), - 25 ) AS col2
----
3719

skipif mysql # not compatible
query I rowsort label-2250
SELECT - 49 * - 77 + + MAX ( - 65 ) + 2 - - - 9 * NULLIF ( + - COUNT ( DISTINCT + 70 ), - 25 ) AS col2
----
3719

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT ALL - COUNT( * ) * ( - COUNT( * ) ) + SUM( DISTINCT + 76 ) - + 5 * - CASE - 79 WHEN - + COUNT( * ) THEN 88 + - - COUNT( * ) WHEN + 70 THEN + 55 * - 8 + - - ( + 98 ) END + - COUNT( 23 ) * + 55 + + 35 + + - 42 + - 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL - COUNT ( * ) * ( - COUNT ( * ) ) + SUM ( DISTINCT + 76 ) - + 5 * - CASE - 79 WHEN - + COUNT ( * ) THEN 88 + - - COUNT ( * ) WHEN + 70 THEN + 55 * - 8 + - - ( + 98 ) END + - COUNT ( 23 ) * + 55 + + 35 + + - 42 + - 90 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2252
SELECT DISTINCT 51 DIV + 98 * 75 * + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT 51 / + 98 * 75 * + 92 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2253
SELECT + - 20 DIV - - 5 + - COUNT( * ) + + NULLIF ( + COUNT( * ), - + 54 ) - 43
----
-47

skipif mysql # not compatible
query I rowsort label-2253
SELECT + - 20 / - - 5 + - COUNT ( * ) + + NULLIF ( + COUNT ( * ), - + 54 ) - 43
----
-47

query I rowsort
SELECT + - 97 * + - 55 * - 50 * 64
----
-17072000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2255
SELECT ALL - - COUNT( * ) * - + 16 DIV - - ( + 86 ) + - - COUNT( ALL - CAST( + 99 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL - - COUNT ( * ) * - + 16 / - - ( + 86 ) + - - COUNT ( ALL - CAST ( + 99 AS INTEGER ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT + MAX( DISTINCT + + 44 ) * + 86 AS col0
----
3784

skipif mysql # not compatible
query I rowsort label-2256
SELECT + MAX ( DISTINCT + + 44 ) * + 86 AS col0
----
3784

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT + 0 + + - MAX( DISTINCT + ( + 12 ) ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-2257
SELECT + 0 + + - MAX ( DISTINCT + ( + 12 ) ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT CASE 66 WHEN 81 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2258
SELECT CASE 66 WHEN 81 THEN - COUNT ( * ) END
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2260
SELECT - 70 + 24 DIV + 39 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-2260
SELECT - 70 + 24 / + 39 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT ALL + MAX( DISTINCT - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL + MAX ( DISTINCT - 29 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT ALL - SUM( + 12 ) * 34 - - 71 + CASE + + 6 WHEN - - 52 / + 67 * + + COUNT( DISTINCT - 45 ) + + 19 - COUNT( DISTINCT - 79 ) + - 82 - - COUNT( * ) THEN 94 WHEN - + 58 THEN - 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL - SUM ( + 12 ) * 34 - - 71 + CASE + + 6 WHEN - - 52 / + 67 * + + COUNT ( DISTINCT - 45 ) + + 19 - COUNT ( DISTINCT - 79 ) + - 82 - - COUNT ( * ) THEN 94 WHEN - + 58 THEN - 50 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT + 17 * + + SUM( 74 ) AS col2
----
1258

skipif mysql # not compatible
query I rowsort label-2263
SELECT + 17 * + + SUM ( 74 ) AS col2
----
1258

query I rowsort
SELECT ALL - 10 * + 11 AS col1
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2265
SELECT + 34 DIV - COUNT( DISTINCT - 63 ) DIV - COUNT( * ) - 74 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-2265
SELECT + 34 / - COUNT ( DISTINCT - 63 ) / - COUNT ( * ) - 74 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT ALL SUM( DISTINCT - 47 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL SUM ( DISTINCT - 47 ) AS col1
----
-47

query I rowsort
SELECT DISTINCT - 92 * - 91 AS col2
----
8372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2268
SELECT - 69 DIV - MAX( DISTINCT 45 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2268
SELECT - 69 / - MAX ( DISTINCT 45 ) col1
----
1

query I rowsort
SELECT + 81 * - - 82 col0
----
6642

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

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

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

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

query I rowsort
SELECT DISTINCT - 38 * - + 32 col2
----
1216

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

skipif mysql # not compatible
query I rowsort label-2273
SELECT - SUM ( ALL - - 38 )
----
-38

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

query I rowsort
SELECT DISTINCT + NULLIF ( + 1, - + 29 ) * + 17 + + 76 * - ( + 25 ) col1
----
-1883

onlyif mysql # DIV for integer division: 
query I rowsort label-2276
SELECT - + 28 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-2276
SELECT - + 28 / + 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT ALL + 17 + + - 69 + - + ( + - MIN( ALL - 73 ) )
----
-125

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL + 17 + + - 69 + - + ( + - MIN ( ALL - 73 ) )
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT - 20 - + + MAX( 75 )
----
-95

skipif mysql # not compatible
query I rowsort label-2278
SELECT - 20 - + + MAX ( 75 )
----
-95

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 80 + 52
----
132

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2287
SELECT - COUNT( * ) * - 76 + + 54 DIV - 61 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-2287
SELECT - COUNT ( * ) * - 76 + + 54 / - 61 AS col1
----
76

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

skipif mysql # not compatible
query I rowsort label-2288
SELECT + MIN ( - 65 )
----
-65

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2290
SELECT - MIN( 14 ) * - - 8 * COUNT( 62 ) * + 96 + + + 54 + - 71 + - + COUNT( * ) * - - MIN( 15 ) + 32 * + 12 * + 13 + + CAST( NULL AS SIGNED ) + + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2290
SELECT - MIN ( 14 ) * - - 8 * COUNT ( 62 ) * + 96 + + + 54 + - 71 + - + COUNT ( * ) * - - MIN ( 15 ) + 32 * + 12 * + 13 + + CAST ( NULL AS INTEGER ) + + 31 AS col2
----
NULL

query I rowsort
SELECT COALESCE ( - - 10, + 37 * + - 70 * - 43, 77 ) * - 92 * - + 64 AS col2
----
58880

query I rowsort
SELECT 23 * + 66 + + 94
----
1612

query II rowsort
SELECT DISTINCT - 88 AS col1, 5
----
-88
5

query I rowsort
SELECT - 33 * - + 24 + + 65
----
857

query II rowsort
SELECT 46 AS col1, - 48 + - - ( - 4 ) AS col0
----
46
-52

query I rowsort
SELECT 32 + + 4 * + + 37
----
180

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

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

query II rowsort
SELECT ALL 97 AS col0, + 91
----
97
91

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

skipif mysql # not compatible
query II rowsort label-2299
SELECT ALL 53, - COUNT ( * ) AS col1
----
53
-1

query I rowsort
SELECT 67 + + 93 AS col2
----
160

query II rowsort
SELECT + 84 AS col2, 19
----
84
19

query I rowsort
SELECT ALL 79 + - - 28 * - 74 + - 0
----
-1993

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

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

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

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

query I rowsort
SELECT ALL + 86 + + + 93 - + + 71 AS col2
----
108

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT 76 * - + COUNT( * ) + - 41 AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-2307
SELECT 76 * - + COUNT ( * ) + - 41 AS col2
----
-117

query I rowsort
SELECT - 54 * 90 AS col2
----
-4860

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

query II rowsort
SELECT - 90, - 21 + - 49 AS col1
----
-90
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT ALL 68 + + COUNT( 89 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL 68 + + COUNT ( 89 ) AS col0
----
69

query II rowsort
SELECT - 41 AS col2, 75 * + + 32
----
-41
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT ALL + + 74 + + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL + + 74 + + COUNT ( * )
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2314
SELECT DISTINCT + 12 / + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT + 12 / + CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT DISTINCT - - 44 - + + 58
----
-14

query II rowsort
SELECT + + 37 AS col2, - 82
----
37
-82

query I rowsort
SELECT NULLIF ( - - 7, + 0 ) * 74 * - + NULLIF ( 57, 68 ) AS col1
----
-29526

query II rowsort
SELECT + 75 AS col0, ( 61 ) + + - 1 AS col0
----
75
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2319
SELECT 99 AS col0, + COALESCE ( - - 30, - 0, COUNT( 9 ) ) * - MAX( + CAST( - 20 AS SIGNED ) ) * - - 59 + - 92 AS col0
----
99
35308

skipif mysql # not compatible
query II rowsort label-2319
SELECT 99 AS col0, + COALESCE ( - - 30, - 0, COUNT ( 9 ) ) * - MAX ( + CAST ( - 20 AS INTEGER ) ) * - - 59 + - 92 AS col0
----
99
35308

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

query I rowsort
SELECT ALL + 55 - + + 32 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT 17 * + COUNT( * ) * 2 * ( - + 26 ) * 13 col0
----
-11492

skipif mysql # not compatible
query I rowsort label-2322
SELECT 17 * + COUNT ( * ) * 2 * ( - + 26 ) * 13 col0
----
-11492

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT DISTINCT + COALESCE ( + MAX( 32 ), + COUNT( * ) ) * - - 87 + + + COUNT( * ) * - 23 * - 10
----
3014

skipif mysql # not compatible
query I rowsort label-2323
SELECT DISTINCT + COALESCE ( + MAX ( 32 ), + COUNT ( * ) ) * - - 87 + + + COUNT ( * ) * - 23 * - 10
----
3014

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2325
SELECT 36 DIV + - 40
----
0

skipif mysql # not compatible
query I rowsort label-2325
SELECT 36 / + - 40
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2326
SELECT 52 + + 2 - + + 19 + + 14 * + - ( - - MIN( + 47 ) ) * + 96 + + 22 / + + 89 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2326
SELECT 52 + + 2 - + + 19 + + 14 * + - ( - - MIN ( + 47 ) ) * + 96 + + 22 / + + 89 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2328
SELECT 26 DIV + 80 AS col2, - 83 * - 33 + 61, COUNT( * ) + - 25 AS col2
----
0
2800
-24

skipif mysql # not compatible
query III rowsort label-2328
SELECT 26 / + 80 AS col2, - 83 * - 33 + 61, COUNT ( * ) + - 25 AS col2
----
0
2800
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2329
SELECT 32 * - COALESCE ( 43, + 91 DIV - 32 ), + MAX( ALL 50 ) AS col2
----
-1376
50

skipif mysql # not compatible
query II rowsort label-2329
SELECT 32 * - COALESCE ( 43, + 91 / - 32 ), + MAX ( ALL 50 ) AS col2
----
-1376
50

query I rowsort
SELECT 35 - + ( - 31 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT DISTINCT 4 + + + 65 + - + 6 * + MIN( DISTINCT + 90 ) AS col1
----
-471

skipif mysql # not compatible
query I rowsort label-2331
SELECT DISTINCT 4 + + + 65 + - + 6 * + MIN ( DISTINCT + 90 ) AS col1
----
-471

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2333
SELECT DISTINCT + CASE WHEN ( NULL ) IS NOT NULL THEN NULL ELSE - 51 END DIV - + 67
----
0

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT + CASE WHEN ( NULL ) IS NOT NULL THEN NULL ELSE - 51 END / - + 67
----
0

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

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

query II rowsort
SELECT ALL 91 + - 47 AS col2, + 44 - + 67
----
44
-23

query I rowsort
SELECT ALL 3 + - - 24 + + - 15 AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2337
SELECT - CAST( + 88 AS SIGNED ), - 33 AS col2
----
-88
-33

skipif mysql # not compatible
query II rowsort label-2337
SELECT - CAST ( + 88 AS INTEGER ), - 33 AS col2
----
-88
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT + SUM( + 70 ) * + 78 col0
----
5460

skipif mysql # not compatible
query I rowsort label-2338
SELECT + SUM ( + 70 ) * + 78 col0
----
5460

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

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

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

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

query I rowsort
SELECT ALL + 82 * 46
----
3772

query I rowsort
SELECT + - 24 + ( 64 ) * 89 * ( - NULLIF ( - ( + + 72 ), + + 89 ) ) * - ( + - 14 )
----
5741544

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

query I rowsort
SELECT + + COALESCE ( 55, 25 ) + + + 79
----
134

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT + 85 * - COALESCE ( - + 93, - 95 * + - 12 * COUNT( * ) - + 20 )
----
7905

skipif mysql # not compatible
query I rowsort label-2346
SELECT + 85 * - COALESCE ( - + 93, - 95 * + - 12 * COUNT ( * ) - + 20 )
----
7905

onlyif mysql # aggregate syntax: 
query II rowsort label-2347
SELECT ALL 24 * 94, 3 * COUNT( * ) AS col2
----
2256
3

skipif mysql # not compatible
query II rowsort label-2347
SELECT ALL 24 * 94, 3 * COUNT ( * ) AS col2
----
2256
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2348
SELECT + 98 + + 49 + - + COALESCE ( 6, + 26 * 56, - - 29 ) * - - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2348
SELECT + 98 + + 49 + - + COALESCE ( 6, + 26 * 56, - - 29 ) * - - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT COALESCE ( 67, - 93 ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT ALL 82 * + + COUNT( * ) * + 24
----
1968

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL 82 * + + COUNT ( * ) * + 24
----
1968

query I rowsort
SELECT + - 67 * 30
----
-2010

query I rowsort
SELECT + 17 * + - 22 AS col0
----
-374

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2354
SELECT ALL - 51 DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL - 51 / + 67
----
0

query I rowsort
SELECT - 11 * 90
----
-990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2356
SELECT - CASE + CASE - COALESCE ( + + COUNT( * ), - 7, - ( + - CASE + 85 WHEN + - 63 THEN NULL WHEN - 94 THEN NULL ELSE 97 * + COUNT( * ) END ) + - + ( - 94 ) ) WHEN - 56 THEN - 19 END WHEN - COALESCE ( - + COUNT( * ), 22 * ( 41 ) * COALESCE ( + 35, - 26 + SUM( ALL + ( + 43 ) ), 67 ) * - ( 41 ) ) * 76 THEN NULL ELSE 16 END DIV + 71 + SUM( 20 )
----
20

skipif mysql # not compatible
query I rowsort label-2356
SELECT - CASE + CASE - COALESCE ( + + COUNT ( * ), - 7, - ( + - CASE + 85 WHEN + - 63 THEN NULL WHEN - 94 THEN NULL ELSE 97 * + COUNT ( * ) END ) + - + ( - 94 ) ) WHEN - 56 THEN - 19 END WHEN - COALESCE ( - + COUNT ( * ), 22 * ( 41 ) * COALESCE ( + 35, - 26 + SUM ( ALL + ( + 43 ) ), 67 ) * - ( 41 ) ) * 76 THEN NULL ELSE 16 END / + 71 + SUM ( 20 )
----
20

query I rowsort
SELECT + 82 * - + 53 AS col0
----
-4346

query II rowsort
SELECT NULLIF ( - 9, 50 ) AS col1, 18
----
-9
18

query I rowsort
SELECT + 75 + - + 31
----
44

query I rowsort
SELECT - 10 + + 43 AS col2
----
33

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

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

query I rowsort
SELECT ALL + 62 * - 54 col2
----
-3348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2363
SELECT ALL - CAST( - 46 AS SIGNED ) * 35 * + ( - 89 ) + - - 95 AS col2, COUNT( * )
----
-143195
1

skipif mysql # not compatible
query II rowsort label-2363
SELECT ALL - CAST ( - 46 AS INTEGER ) * 35 * + ( - 89 ) + - - 95 AS col2, COUNT ( * )
----
-143195
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT DISTINCT + 73 * - 7 + + ( MAX( 53 ) ) * 60 AS col1
----
2669

skipif mysql # not compatible
query I rowsort label-2364
SELECT DISTINCT + 73 * - 7 + + ( MAX ( 53 ) ) * 60 AS col1
----
2669

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2365
SELECT ALL CAST( NULL AS SIGNED ) * + 78 * - + SUM( 57 ) / + - 23 / COUNT( * ) + + SUM( + ( - 14 ) ) AS col1, + 0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2365
SELECT ALL CAST ( NULL AS INTEGER ) * + 78 * - + SUM ( 57 ) / + - 23 / COUNT ( * ) + + SUM ( + ( - 14 ) ) AS col1, + 0
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2366
SELECT + COUNT( * ) col0, + 44 - + 32 * - - 86
----
1
-2708

skipif mysql # not compatible
query II rowsort label-2366
SELECT + COUNT ( * ) col0, + 44 - + 32 * - - 86
----
1
-2708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2367
SELECT NULLIF ( - 14, + - CASE - COUNT( + + 13 ) WHEN - 69 * ( + - 41 ) THEN NULL WHEN + - 45 * + - 40 - + + 98 - 59 * + 45 THEN 3 * - 60 * - COUNT( * ) + + 91 ELSE - CAST( NULL AS SIGNED ) * - 89 + + 16 END ) * 59 + + 98 AS col2
----
-728

skipif mysql # not compatible
query I rowsort label-2367
SELECT NULLIF ( - 14, + - CASE - COUNT ( + + 13 ) WHEN - 69 * ( + - 41 ) THEN NULL WHEN + - 45 * + - 40 - + + 98 - 59 * + 45 THEN 3 * - 60 * - COUNT ( * ) + + 91 ELSE - CAST ( NULL AS INTEGER ) * - 89 + + 16 END ) * 59 + + 98 AS col2
----
-728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2368
SELECT - + 64 + + + AVG ( ALL 90 ) - + CAST( NULL AS SIGNED ) / COALESCE ( - 67, + 18 ) * + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2368
SELECT - + 64 + + + AVG ( ALL 90 ) - + CAST ( NULL AS INTEGER ) / COALESCE ( - 67, + 18 ) * + 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT + ( - 57 ) * + + COUNT( * ) * 31 + 72
----
-1695

skipif mysql # not compatible
query I rowsort label-2369
SELECT + ( - 57 ) * + + COUNT ( * ) * 31 + 72
----
-1695

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT - - COUNT( ALL + 61 ) + + 78 + + - CASE - COUNT( * ) WHEN + 44 THEN NULL ELSE 51 * COUNT( * ) * COUNT( * ) END AS col2
----
28

skipif mysql # not compatible
query I rowsort label-2370
SELECT - - COUNT ( ALL + 61 ) + + 78 + + - CASE - COUNT ( * ) WHEN + 44 THEN NULL ELSE 51 * COUNT ( * ) * COUNT ( * ) END AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT ALL - 78 - - 43 * 64 * + COUNT( * ) * + COUNT( * )
----
2674

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL - 78 - - 43 * 64 * + COUNT ( * ) * + COUNT ( * )
----
2674

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2372
SELECT - - NULLIF ( COUNT( * ), + 89 * - ( 25 ) + - 72 - CAST( COUNT( * ) AS DECIMAL ) * ( - + 30 ) / + 41 + + COALESCE ( 35, + 16 ) + - 50 - COUNT( * ) * 4 ) * 15 - - 34 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-2372
SELECT - - NULLIF ( COUNT ( * ), + 89 * - ( 25 ) + - 72 - CAST ( COUNT ( * ) AS REAL ) * ( - + 30 ) / + 41 + + COALESCE ( 35, + 16 ) + - 50 - COUNT ( * ) * 4 ) * 15 - - 34 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT + 16 + + - MIN( 58 )
----
-42

skipif mysql # not compatible
query I rowsort label-2373
SELECT + 16 + + - MIN ( 58 )
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-2374
SELECT ALL + + COUNT( * ) - - 9 + 82, 24 AS col2
----
92
24

skipif mysql # not compatible
query II rowsort label-2374
SELECT ALL + + COUNT ( * ) - - 9 + 82, 24 AS col2
----
92
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT - 56 * + 75 * - 25 + COALESCE ( - + 88, - MAX( DISTINCT + 2 ) ) * - 48 AS col1
----
109224

skipif mysql # not compatible
query I rowsort label-2375
SELECT - 56 * + 75 * - 25 + COALESCE ( - + 88, - MAX ( DISTINCT + 2 ) ) * - 48 AS col1
----
109224

query I rowsort
SELECT + 30 + + - 96
----
-66

query II rowsort
SELECT - + 62 AS col1, 73 col0
----
-62
73

query I rowsort
SELECT DISTINCT + ( - - 79 ) AS col0
----
79

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

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

query II rowsort
SELECT DISTINCT - 26, - 2 col2
----
-26
-2

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

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

query I rowsort
SELECT + 19 * + 38 * + 40 * 19 AS col2
----
548720

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

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

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

skipif mysql # not compatible
query I rowsort label-2384
SELECT + NULLIF ( + COUNT ( * ), - 5 ) AS col2
----
1

query I rowsort
SELECT + 88 * - 3 col1
----
-264

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2387
SELECT ALL + 39 DIV ( 87 ) + - ( + COUNT( * ) ) * 98
----
-98

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL + 39 / ( 87 ) + - ( + COUNT ( * ) ) * 98
----
-98

query I rowsort
SELECT + 34 - - 93 AS col2
----
127

query I rowsort
SELECT DISTINCT 75 * - - 24 AS col1
----
1800

onlyif mysql # DIV for integer division: 
query I rowsort label-2390
SELECT ALL - 62 DIV - 5 + + 31
----
43

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL - 62 / - 5 + + 31
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-2391
SELECT DISTINCT 51 DIV 95 + 66
----
66

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT 51 / 95 + 66
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT + 45 * - + 76 + 69 * + 6 * + MIN( + 2 ) * 95 - + 81 * + - 20 * - COUNT( * ) AS col1
----
73620

skipif mysql # not compatible
query I rowsort label-2392
SELECT + 45 * - + 76 + 69 * + 6 * + MIN ( + 2 ) * 95 - + 81 * + - 20 * - COUNT ( * ) AS col1
----
73620

query I rowsort
SELECT DISTINCT + NULLIF ( + 40, NULLIF ( 45, + 27 / + 56 + - 82 + 27 ) * - 20 * - - 45 )
----
40

query I rowsort
SELECT 67 * - - 2 AS col1
----
134

query I rowsort
SELECT 2 + 61 * 66 + + 77
----
4105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2396
SELECT ALL + - 42 - + COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) * + + NULLIF ( COUNT( * ), - 97 * + 88 )
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-2396
SELECT ALL + - 42 - + COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) * + + NULLIF ( COUNT ( * ), - 97 * + 88 )
----
-43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT - 73 * COALESCE ( + 51, - + 82, - CASE + + COUNT( * ) WHEN + 29 THEN + + 93 ELSE NULL END ) AS col2
----
-3723

skipif mysql # not compatible
query I rowsort label-2397
SELECT - 73 * COALESCE ( + 51, - + 82, - CASE + + COUNT ( * ) WHEN + 29 THEN + + 93 ELSE NULL END ) AS col2
----
-3723

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT DISTINCT - + 13 * + COUNT( * ) + - NULLIF ( 87, + AVG ( ALL + 68 ) )
----
-100

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT - + 13 * + COUNT ( * ) + - NULLIF ( 87, + AVG ( ALL + 68 ) )
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT ALL COALESCE ( + - 90, + + COUNT( * ) )
----
-90

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL COALESCE ( + - 90, + + COUNT ( * ) )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT + COALESCE ( - 8, + - COUNT( * ), ( + 45 ) ) * + COALESCE ( - 80, - - 30 ) * - COALESCE ( + 21, + SUM( DISTINCT - 51 ) * - - ( - 76 ), - - 48 )
----
-13440

skipif mysql # not compatible
query I rowsort label-2400
SELECT + COALESCE ( - 8, + - COUNT ( * ), ( + 45 ) ) * + COALESCE ( - 80, - - 30 ) * - COALESCE ( + 21, + SUM ( DISTINCT - 51 ) * - - ( - 76 ), - - 48 )
----
-13440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2401
SELECT DISTINCT - + COALESCE ( 64, + COUNT( * ) DIV 55 - 4 + + 44 DIV + + COUNT( * ) - + 68 * + 85 * 48 ) * 84
----
-5376

skipif mysql # not compatible
query I rowsort label-2401
SELECT DISTINCT - + COALESCE ( 64, + COUNT ( * ) / 55 - 4 + + 44 / + + COUNT ( * ) - + 68 * + 85 * 48 ) * 84
----
-5376

query I rowsort
SELECT 89 * ( + 49 )
----
4361

query I rowsort
SELECT - 89 * + 90 * 88
----
-704880

query I rowsort
SELECT ( 18 ) * + - 48 AS col2
----
-864

onlyif mysql # DIV for integer division: 
query I rowsort label-2405
SELECT + 7 * - 0 DIV - 42 col1
----
0

skipif mysql # not compatible
query I rowsort label-2405
SELECT + 7 * - 0 / - 42 col1
----
0

query I rowsort
SELECT ALL 47 + + 70 AS col0
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-2407
SELECT - 16 - + + 40 DIV 5 DIV 46
----
-16

skipif mysql # not compatible
query I rowsort label-2407
SELECT - 16 - + + 40 / 5 / 46
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2408
SELECT + 56 * + COUNT( * ) + + + 14 * - COUNT( * ) DIV + 61 + + + 57 * 40 AS col2
----
2336

skipif mysql # not compatible
query I rowsort label-2408
SELECT + 56 * + COUNT ( * ) + + + 14 * - COUNT ( * ) / + 61 + + + 57 * 40 AS col2
----
2336

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT COUNT( * ) * + 69 col2
----
69

skipif mysql # not compatible
query I rowsort label-2409
SELECT COUNT ( * ) * + 69 col2
----
69

query I rowsort
SELECT 20 + - 93 + 45 + - 92
----
-120

query I rowsort
SELECT 55 * 83 AS col1
----
4565

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT ALL 29 + COUNT( DISTINCT 19 ) col0
----
30

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL 29 + COUNT ( DISTINCT 19 ) col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2413
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 3
----
NULL

query I rowsort
SELECT ALL 75 + + 54 AS col2
----
129

query I rowsort
SELECT ( - + 3 ) * + + 5 + + - 82
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2416
SELECT 74, - 40 * COUNT( * ) AS col1
----
74
-40

skipif mysql # not compatible
query II rowsort label-2416
SELECT 74, - 40 * COUNT ( * ) AS col1
----
74
-40

query II rowsort
SELECT 47 AS col1, + 64 AS col2
----
47
64

query I rowsort
SELECT 60 * 39
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT SUM( ALL + - 62 ) + 27 + 48
----
13

skipif mysql # not compatible
query I rowsort label-2419
SELECT SUM ( ALL + - 62 ) + 27 + 48
----
13

query II rowsort
SELECT + 99 AS col2, - 27
----
99
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2421
SELECT DISTINCT 85 DIV COUNT( * ) col1
----
85

skipif mysql # not compatible
query I rowsort label-2421
SELECT DISTINCT 85 / COUNT ( * ) col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT - 49 * - - 95 * SUM( ALL + ( - 27 ) ) + - + COUNT( * )
----
125684

skipif mysql # not compatible
query I rowsort label-2422
SELECT - 49 * - - 95 * SUM ( ALL + ( - 27 ) ) + - + COUNT ( * )
----
125684

query I rowsort
SELECT DISTINCT - 50 * - ( 60 ) * - - 16 * + 86 AS col2
----
4128000

query I rowsort
SELECT + 71 - - - 52
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT DISTINCT + 75 - - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT + 75 - - COUNT ( * )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT ALL - MIN( + 43 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL - MIN ( + 43 ) AS col1
----
-43

query I rowsort
SELECT + 40 * + 3 * 32 + + 33 col0
----
3873

query II rowsort
SELECT ( 52 ) + + 33 AS col1, - 45
----
85
-45

query I rowsort
SELECT 68 * 5
----
340

onlyif mysql # aggregate syntax: 
query II rowsort label-2430
SELECT - ( 79 ) + + - NULLIF ( + + 79, + 38 * 28 + + COUNT( * ) / 97 ) AS col1, - 12 AS col1
----
-158
-12

skipif mysql # not compatible
query II rowsort label-2430
SELECT - ( 79 ) + + - NULLIF ( + + 79, + 38 * 28 + + COUNT ( * ) / 97 ) AS col1, - 12 AS col1
----
-158
-12

query I rowsort
SELECT - - 80 * 73 - + 13
----
5827

query II rowsort
SELECT DISTINCT + 32 AS col0, + 31
----
32
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2433
SELECT - ( - ( CAST( NULL AS SIGNED ) ) ) + + CAST( NULL AS SIGNED ) * 31 * - - 83 + + - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2433
SELECT - ( - ( CAST ( NULL AS INTEGER ) ) ) + + CAST ( NULL AS INTEGER ) * 31 * - - 83 + + - 14 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2434
SELECT - CAST( + 91 AS SIGNED ) * + COALESCE ( + 50, + 59 * + 55 ) + 95 AS col2
----
-4455

skipif mysql # not compatible
query I rowsort label-2434
SELECT - CAST ( + 91 AS INTEGER ) * + COALESCE ( + 50, + 59 * + 55 ) + 95 AS col2
----
-4455

query I rowsort
SELECT ALL - + 60 + - 79 AS col0
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT 14 + - + ( + 13 ) + - COUNT( * ) + + 82 * 42 AS col1
----
3444

skipif mysql # not compatible
query I rowsort label-2436
SELECT 14 + - + ( + 13 ) + - COUNT ( * ) + + 82 * 42 AS col1
----
3444

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT ALL - MIN( DISTINCT - 54 ) * + 20
----
1080

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL - MIN ( DISTINCT - 54 ) * + 20
----
1080

onlyif mysql # aggregate syntax: 
query II rowsort label-2438
SELECT 7 + - - CASE + 18 WHEN + 45 THEN NULL WHEN ( - + 3 ) * + + 90 * + - 91 * - - COUNT( ALL - + 81 ) * - 72 * - 8 THEN - 57 + + - 86 ELSE NULL END + - COUNT( * ), 3 + 16 AS col0
----
NULL
19

skipif mysql # not compatible
query II rowsort label-2438
SELECT 7 + - - CASE + 18 WHEN + 45 THEN NULL WHEN ( - + 3 ) * + + 90 * + - 91 * - - COUNT ( ALL - + 81 ) * - 72 * - 8 THEN - 57 + + - 86 ELSE NULL END + - COUNT ( * ), 3 + 16 AS col0
----
NULL
19

query I rowsort
SELECT 26 * - ( - 40 ) * - 10 AS col0
----
-10400

query I rowsort
SELECT 65 + + ( - 27 ) AS col1
----
38

query I rowsort
SELECT DISTINCT + 47 + - 81 * + 90 + + 99 AS col1
----
-7144

query I rowsort
SELECT DISTINCT 58 + - 1 AS col2
----
57

query I rowsort
SELECT ALL + 66 + 44 + - + 70 + - 79 - - + 56 * - - 55 + + 36 AS col1
----
3077

onlyif mysql # aggregate syntax: 
query II rowsort label-2444
SELECT - 20 AS col0, + 74 - - COUNT( * )
----
-20
75

skipif mysql # not compatible
query II rowsort label-2444
SELECT - 20 AS col0, + 74 - - COUNT ( * )
----
-20
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2445
SELECT ALL - CAST( NULL AS SIGNED ) + + COALESCE ( + MIN( DISTINCT - 21 ), + 33 ) + - 62 * + 47 * - SUM( ALL + 98 ) * + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL - CAST ( NULL AS INTEGER ) + + COALESCE ( + MIN ( DISTINCT - 21 ), + 33 ) + - 62 * + 47 * - SUM ( ALL + 98 ) * + 90 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2446
SELECT DISTINCT + NULLIF ( CAST( NULL AS SIGNED ), + 59 * - 21 ) + + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2446
SELECT DISTINCT + NULLIF ( CAST ( NULL AS INTEGER ), + 59 * - 21 ) + + + 90
----
NULL

query I rowsort
SELECT ALL 75 + + - 59 AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2448
SELECT COUNT( DISTINCT 94 ) * - CAST( NULL AS SIGNED ) + + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2448
SELECT COUNT ( DISTINCT 94 ) * - CAST ( NULL AS INTEGER ) + + + 95
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2449
SELECT ALL + 30 DIV + - ( + - 11 )
----
2

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL + 30 / + - ( + - 11 )
----
2

query I rowsort
SELECT COALESCE ( + 42, - 18 )
----
42

query I rowsort
SELECT 80 * - + 17
----
-1360

query I rowsort
SELECT ALL - 58 * + 46
----
-2668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2453
SELECT ALL 87 * - MAX( DISTINCT CAST( NULL AS SIGNED ) ) - - - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL 87 * - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) - - - 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT COALESCE ( + + ( + 63 ), - + COUNT( DISTINCT - 5 ) )
----
63

skipif mysql # not compatible
query I rowsort label-2454
SELECT COALESCE ( + + ( + 63 ), - + COUNT ( DISTINCT - 5 ) )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT - COUNT( * ) - - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2455
SELECT - COUNT ( * ) - - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2456
SELECT ALL - 58 * + 10 * - 35 * 76, + COUNT( * ) col1
----
1542800
1

skipif mysql # not compatible
query II rowsort label-2456
SELECT ALL - 58 * + 10 * - 35 * 76, + COUNT ( * ) col1
----
1542800
1

query II rowsort
SELECT DISTINCT + 54 AS col0, 4
----
54
4

query II rowsort
SELECT ALL + 57, + 32 + 75 AS col2
----
57
107

query I rowsort
SELECT ALL + NULLIF ( - 87, + 23 ) AS col0
----
-87

query II rowsort
SELECT + 43 AS col0, 41 - - ( NULLIF ( + + 99, - ( + 18 ) ) ) AS col2
----
43
140

query II rowsort
SELECT - 44 AS col0, 54 + 92 AS col0
----
-44
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2462
SELECT + COALESCE ( + - 14, 27 + 21, COALESCE ( - + 74, + NULLIF ( - 24, - COUNT( * ) ) * CASE - + AVG ( ALL - 88 ) WHEN + ( - CASE 28 WHEN - 22 * + 16 / + 78 THEN + CASE + 97 WHEN COUNT( DISTINCT 36 ) + 52 + - 85 THEN - 47 WHEN - + ( + 55 ) + - - 22 + + NULLIF ( 89, + 39 ) + COUNT( * ) THEN + COALESCE ( CAST( NULL AS SIGNED ), 22, ( 56 ) * + 13 ) ELSE NULL END + 7 WHEN + 4 * 12 + - 42 THEN 27 ELSE NULL END ) - + 63 * CAST( 67 AS DECIMAL ) THEN - 5 ELSE NULL END, 12 ) ) + - CASE - 38 WHEN CASE 23 WHEN + 55 THEN 92 * 48 ELSE NULL END THEN + 17 * + 31 WHEN 76 THEN NULL ELSE 75 END col2
----
-89

skipif mysql # not compatible
query I rowsort label-2462
SELECT + COALESCE ( + - 14, 27 + 21, COALESCE ( - + 74, + NULLIF ( - 24, - COUNT ( * ) ) * CASE - + AVG ( ALL - 88 ) WHEN + ( - CASE 28 WHEN - 22 * + 16 / + 78 THEN + CASE + 97 WHEN COUNT ( DISTINCT 36 ) + 52 + - 85 THEN - 47 WHEN - + ( + 55 ) + - - 22 + + NULLIF ( 89, + 39 ) + COUNT ( * ) THEN + COALESCE ( CAST ( NULL AS INTEGER ), 22, ( 56 ) * + 13 ) ELSE NULL END + 7 WHEN + 4 * 12 + - 42 THEN 27 ELSE NULL END ) - + 63 * CAST ( 67 AS REAL ) THEN - 5 ELSE NULL END, 12 ) ) + - CASE - 38 WHEN CASE 23 WHEN + 55 THEN 92 * 48 ELSE NULL END THEN + 17 * + 31 WHEN 76 THEN NULL ELSE 75 END col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT ALL 79 * - COUNT( + 63 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL 79 * - COUNT ( + 63 ) AS col1
----
-79

query I rowsort
SELECT + 49 * 96 AS col0
----
4704

query I rowsort
SELECT ALL - 14 + 58
----
44

query I rowsort
SELECT + + ( - 12 ) * - + 84
----
1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2467
SELECT NULLIF ( + CAST( NULL AS SIGNED ), - + 24 * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2467
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), - + 24 * COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2468
SELECT - COALESCE ( - COUNT( * ), 75 + MAX( + 58 ) ) DIV - 3
----
0

skipif mysql # not compatible
query I rowsort label-2468
SELECT - COALESCE ( - COUNT ( * ), 75 + MAX ( + 58 ) ) / - 3
----
0

query I rowsort
SELECT ALL 82 + 47 col0
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2470
SELECT + CASE 37 WHEN - 23 + - 1 THEN + 71 + + CAST( 81 AS SIGNED ) + - CAST( NULL AS SIGNED ) * ( NULLIF ( - ( - + COUNT( * ) ), - + 77 ) ) WHEN - - NULLIF ( 91, + 74 ) THEN NULL WHEN + 88 THEN - 37 + + CASE 78 WHEN - - 62 - - 71 THEN - - CASE - + COUNT( - - 69 ) WHEN 90 THEN - 60 * + - 53 + - 68 * + CAST( NULL AS DECIMAL ) WHEN 78 THEN NULL END / - 80 END ELSE NULL END - + AVG ( ALL - 44 + 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2470
SELECT + CASE 37 WHEN - 23 + - 1 THEN + 71 + + CAST ( 81 AS INTEGER ) + - CAST ( NULL AS INTEGER ) * ( NULLIF ( - ( - + COUNT ( * ) ), - + 77 ) ) WHEN - - NULLIF ( 91, + 74 ) THEN NULL WHEN + 88 THEN - 37 + + CASE 78 WHEN - - 62 - - 71 THEN - - CASE - + COUNT ( - - 69 ) WHEN 90 THEN - 60 * + - 53 + - 68 * + CAST ( NULL AS REAL ) WHEN 78 THEN NULL END / - 80 END ELSE NULL END - + AVG ( ALL - 44 + 52 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT + 65 - + - COUNT( - 66 ) - - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-2471
SELECT + 65 - + - COUNT ( - 66 ) - - COUNT ( * )
----
67

query I rowsort
SELECT ALL 17 + + + 13
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2473
SELECT ALL + 34 - 86 * 83 + + 10 DIV 71 * + MAX( DISTINCT + 73 )
----
-7104

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL + 34 - 86 * 83 + + 10 / 71 * + MAX ( DISTINCT + 73 )
----
-7104

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT - COUNT( * ) * + CASE 93 WHEN + 7 * - 30 + - COUNT( + + 43 ) + - + ( - MIN( ALL + - 85 ) ) THEN + 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2474
SELECT - COUNT ( * ) * + CASE 93 WHEN + 7 * - 30 + - COUNT ( + + 43 ) + - + ( - MIN ( ALL + - 85 ) ) THEN + 1 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT - 81 - + COUNT( ALL + 30 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-2475
SELECT - 81 - + COUNT ( ALL + 30 ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT 46 * + ( - COUNT( * ) )
----
-46

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT 46 * + ( - COUNT ( * ) )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT ALL NULLIF ( - ( + ( + COUNT( * ) ) ), + + 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL NULLIF ( - ( + ( + COUNT ( * ) ) ), + + 24 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT + 45 + MAX( + 62 ) + - 96 * 90 * + - 90 + - + 37 + 67
----
777737

skipif mysql # not compatible
query I rowsort label-2478
SELECT + 45 + MAX ( + 62 ) + - 96 * 90 * + - 90 + - + 37 + 67
----
777737

query II rowsort
SELECT ALL ( 7 ), 33 AS col1
----
7
33

query I rowsort
SELECT - ( 12 ) * - 87 AS col0
----
1044

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT DISTINCT + COALESCE ( - COUNT( * ), 15 * - COUNT( + + 31 ), - 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT + COALESCE ( - COUNT ( * ), 15 * - COUNT ( + + 31 ), - 30 )
----
-1

query I rowsort
SELECT - CASE WHEN NULL IS NULL THEN 29 END * ( - + 85 ) + + 47 col0
----
2512

onlyif mysql # DIV for integer division: 
query I rowsort label-2483
SELECT DISTINCT - 17 DIV NULLIF ( - 73, 6 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT - 17 / NULLIF ( - 73, 6 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2484
SELECT 6 DIV - 94 + ( - NULLIF ( 11, 87 ) ) + - 76, COUNT( * ) AS col1
----
-87
1

skipif mysql # not compatible
query II rowsort label-2484
SELECT 6 / - 94 + ( - NULLIF ( 11, 87 ) ) + - 76, COUNT ( * ) AS col1
----
-87
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2485
SELECT - COUNT( DISTINCT - CAST( + - 15 AS SIGNED ) ) DIV 32 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2485
SELECT - COUNT ( DISTINCT - CAST ( + - 15 AS INTEGER ) ) / 32 AS col2
----
0

query I rowsort
SELECT - - 4 + + 54 col0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2487
SELECT ALL + SUM( - 22 ), 27 AS col1
----
-22
27

skipif mysql # not compatible
query II rowsort label-2487
SELECT ALL + SUM ( - 22 ), 27 AS col1
----
-22
27

query I rowsort
SELECT ALL - 65 * + 17 + + 26 col0
----
-1079

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT ALL + 65 * - COALESCE ( + 67, - MAX( - + ( 19 ) ) )
----
-4355

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL + 65 * - COALESCE ( + 67, - MAX ( - + ( 19 ) ) )
----
-4355

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT ALL - - 46 * + COUNT( * ) + + MIN( - + ( - 47 ) ) + - - 25 * - 58 + + 41 + - 19
----
-1335

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL - - 46 * + COUNT ( * ) + + MIN ( - + ( - 47 ) ) + - - 25 * - 58 + + 41 + - 19
----
-1335

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT DISTINCT - 14 * + + COALESCE ( COUNT( * ), 26 + + COUNT( * ) + MIN( 62 ) * 70 + - 34, COALESCE ( - 47, 41 ) ) * - 62 - - - 56 + 54
----
866

skipif mysql # not compatible
query I rowsort label-2491
SELECT DISTINCT - 14 * + + COALESCE ( COUNT ( * ), 26 + + COUNT ( * ) + MIN ( 62 ) * 70 + - 34, COALESCE ( - 47, 41 ) ) * - 62 - - - 56 + 54
----
866

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT DISTINCT - 7 * + NULLIF ( NULLIF ( - 77, + 71 ), 43 ) + + ( COUNT( * ) ) + 27 AS col1
----
567

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT - 7 * + NULLIF ( NULLIF ( - 77, + 71 ), 43 ) + + ( COUNT ( * ) ) + 27 AS col1
----
567

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2493
SELECT - CAST( NULL AS DECIMAL ) * + ( - 90 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2493
SELECT - CAST ( NULL AS REAL ) * + ( - 90 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT - - 2 + + 59 + + ( + COUNT( * ) ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-2494
SELECT - - 2 + + 59 + + ( + COUNT ( * ) ) AS col1
----
62

query I rowsort
SELECT DISTINCT + COALESCE ( + + 48, 59 + - - 61 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2496
SELECT + - 52 + COALESCE ( - + CASE 53 WHEN + 37 + CAST( NULL AS SIGNED ) THEN COUNT( * ) END, MIN( ALL - + 30 ) + 13, - 62 ) + + ( + + 58 ) col2, 74
----
-11
74

skipif mysql # not compatible
query II rowsort label-2496
SELECT + - 52 + COALESCE ( - + CASE 53 WHEN + 37 + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) END, MIN ( ALL - + 30 ) + 13, - 62 ) + + ( + + 58 ) col2, 74
----
-11
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT ALL - NULLIF ( - 69, 95 + + - 75 * + 31 * 2 ) * COUNT( ALL + 20 ) - 39 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL - NULLIF ( - 69, 95 + + - 75 * + 31 * 2 ) * COUNT ( ALL + 20 ) - 39 AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2498
SELECT DISTINCT - ( - MIN( DISTINCT - + 17 ) ) * 86 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2498
SELECT DISTINCT - ( - MIN ( DISTINCT - + 17 ) ) * 86 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2499
SELECT + 5 + ( + + 60 ) AS col2, + ( MIN( 59 ) ) - - + 2 AS col1
----
65
61

skipif mysql # not compatible
query II rowsort label-2499
SELECT + 5 + ( + + 60 ) AS col2, + ( MIN ( 59 ) ) - - + 2 AS col1
----
65
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2500
SELECT ALL 11 * + COALESCE ( - CAST( 50 AS SIGNED ), + ( - 1 ) )
----
-550

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL 11 * + COALESCE ( - CAST ( 50 AS INTEGER ), + ( - 1 ) )
----
-550

query I rowsort
SELECT ALL 70 * + 63 * + 5 col0
----
22050

query II rowsort
SELECT - 18, - 16 AS col0
----
-18
-16

query I rowsort
SELECT 86 * - + 77 AS col1
----
-6622

query I rowsort
SELECT ( + ( + - 70 ) ) + 46 + - 17 * 10 * - 50 AS col1
----
8476

query I rowsort
SELECT CASE - AVG ( DISTINCT - ( + + 34 ) ) WHEN - - 78 THEN NULL WHEN - 84 * - 77 THEN - - 98 END * + 22
----
NULL

query I rowsort
SELECT ALL 28 - - + 54 AS col2
----
82

query I rowsort
SELECT 76 + + - 24 AS col1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2508
SELECT DISTINCT 37, 48 * + - 50 + + COUNT( * ) DIV + 97 AS col2
----
37
-2400

skipif mysql # not compatible
query II rowsort label-2508
SELECT DISTINCT 37, 48 * + - 50 + + COUNT ( * ) / + 97 AS col2
----
37
-2400

query II rowsort
SELECT ALL 41 AS col2, - 21 AS col2
----
41
-21

query II rowsort
SELECT - 42 AS col0, - 39
----
-42
-39

query I rowsort
SELECT 11 + + 73 col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT DISTINCT 91 + 44 * + COUNT( * ) AS col1
----
135

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT 91 + 44 * + COUNT ( * ) AS col1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT ALL - - 29 + 25 + + - 97 + 75 * COUNT( * ) + 69 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL - - 29 + 25 + + - 97 + 75 * COUNT ( * ) + 69 AS col2
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2514
SELECT CAST( - CAST( + 63 AS SIGNED ) AS SIGNED ) * + 79 AS col1
----
-4977

skipif mysql # not compatible
query I rowsort label-2514
SELECT CAST ( - CAST ( + 63 AS INTEGER ) AS INTEGER ) * + 79 AS col1
----
-4977

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2515
SELECT DISTINCT - COUNT( * ) + + 31 + + 52 DIV + + 68 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-2515
SELECT DISTINCT - COUNT ( * ) + + 31 + + 52 / + + 68 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT DISTINCT + + 16 + 65 * + COUNT( * ) + - SUM( ALL - 19 )
----
100

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT + + 16 + 65 * + COUNT ( * ) + - SUM ( ALL - 19 )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT DISTINCT - COUNT( 49 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT - COUNT ( 49 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2518
SELECT DISTINCT - CASE - COUNT( ALL + + 8 ) WHEN + 42 THEN - - 88 ELSE NULL END * - ( + - 77 ) + - 39 + - CAST( + 15 AS SIGNED ) + - + ( + + 41 ) * + + AVG ( - - 75 ) + - 45 * 86 - + 74 * + - MIN( 72 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2518
SELECT DISTINCT - CASE - COUNT ( ALL + + 8 ) WHEN + 42 THEN - - 88 ELSE NULL END * - ( + - 77 ) + - 39 + - CAST ( + 15 AS INTEGER ) + - + ( + + 41 ) * + + AVG ( - - 75 ) + - 45 * 86 - + 74 * + - MIN ( 72 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 87 + + + 88 AS col2
----
175

query I rowsort
SELECT DISTINCT + + 24 + + + 76 col2
----
100

query I rowsort
SELECT + 67 + + + 85 AS col2
----
152

query I rowsort
SELECT ALL - 12 + + 40 + - 28 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2523
SELECT ALL - - 41 col2, CASE - 89 WHEN 49 * - + 12 * - COUNT( * ) THEN - 91 + 65 WHEN + 6 * + 13 + 42 THEN 50 + - 27 / 59 / - COUNT( * ) ELSE NULL END * + 40 + - COUNT( * )
----
41
NULL

skipif mysql # not compatible
query II rowsort label-2523
SELECT ALL - - 41 col2, CASE - 89 WHEN 49 * - + 12 * - COUNT ( * ) THEN - 91 + 65 WHEN + 6 * + 13 + 42 THEN 50 + - 27 / 59 / - COUNT ( * ) ELSE NULL END * + 40 + - COUNT ( * )
----
41
NULL

query I rowsort
SELECT DISTINCT - - NULLIF ( - 96, - 67 ) * - + 34 * + + 40
----
130560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2525
SELECT CAST( NULL AS SIGNED ) * - ( AVG ( ALL - - 3 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2525
SELECT CAST ( NULL AS INTEGER ) * - ( AVG ( ALL - - 3 ) ) AS col2
----
NULL

query I rowsort
SELECT + 24 * + 9 AS col0
----
216

query I rowsort
SELECT ALL - 62 * - 55 + - 66
----
3344

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT ALL - + 45 - + ( SUM( + + 81 ) ) AS col1
----
-126

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL - + 45 - + ( SUM ( + + 81 ) ) AS col1
----
-126

onlyif mysql # aggregate syntax: 
query II rowsort label-2529
SELECT ALL + ( + 6 ) - - 71 AS col0, - 76 * + - 44 + COUNT( ALL - COALESCE ( + + 82, - 66 - 99 * + 58 ) ) * - COUNT( * )
----
77
3343

skipif mysql # not compatible
query II rowsort label-2529
SELECT ALL + ( + 6 ) - - 71 AS col0, - 76 * + - 44 + COUNT ( ALL - COALESCE ( + + 82, - 66 - 99 * + 58 ) ) * - COUNT ( * )
----
77
3343

query I rowsort
SELECT DISTINCT - 60 * - 36
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT 64 * + 21 * - - 16 * + COUNT( * ) AS col2
----
21504

skipif mysql # not compatible
query I rowsort label-2531
SELECT 64 * + 21 * - - 16 * + COUNT ( * ) AS col2
----
21504

onlyif mysql # aggregate syntax: 
query II rowsort label-2532
SELECT ALL - 34 - + 73, + SUM( ALL 37 ) * - - 34 AS col1
----
-107
1258

skipif mysql # not compatible
query II rowsort label-2532
SELECT ALL - 34 - + 73, + SUM ( ALL 37 ) * - - 34 AS col1
----
-107
1258

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT 54 * ( + COALESCE ( COUNT( * ), + - 22 ) )
----
54

skipif mysql # not compatible
query I rowsort label-2533
SELECT 54 * ( + COALESCE ( COUNT ( * ), + - 22 ) )
----
54

query I rowsort
SELECT 96 * - CASE + 31 WHEN - 48 + 97 * 27 THEN + + 2 ELSE + 62 END
----
-5952

query I rowsort
SELECT ALL 58 * - - 4 * 49
----
11368

query I rowsort
SELECT ALL 10 * - + 73 AS col2
----
-730

onlyif mysql # DIV for integer division: 
query I rowsort label-2537
SELECT 86 DIV + 61
----
1

skipif mysql # not compatible
query I rowsort label-2537
SELECT 86 / + 61
----
1

query I rowsort
SELECT ALL - 99 * + 75 * - NULLIF ( 48, - - 88 + + - 75 )
----
356400

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT 70 + - COUNT( * ) + + - COUNT( * ) + - + 34
----
34

skipif mysql # not compatible
query I rowsort label-2539
SELECT 70 + - COUNT ( * ) + + - COUNT ( * ) + - + 34
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-2540
SELECT COUNT( * ) - - 73 AS col1, + ( 17 ) + - 54 + 39 col0
----
74
2

skipif mysql # not compatible
query II rowsort label-2540
SELECT COUNT ( * ) - - 73 AS col1, + ( 17 ) + - 54 + 39 col0
----
74
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT ALL 74 * + + COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL 74 * + + COUNT ( * ) AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2542
SELECT CAST( NULL AS SIGNED ) - - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-2542
SELECT CAST ( NULL AS INTEGER ) - - 38
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2543
SELECT CAST( NULL AS SIGNED ) * + 21 * 61 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2543
SELECT CAST ( NULL AS INTEGER ) * + 21 * 61 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2544
SELECT MAX( - 16 ) + 30 * - + 91 AS col1, + 7
----
-2746
7

skipif mysql # not compatible
query II rowsort label-2544
SELECT MAX ( - 16 ) + 30 * - + 91 AS col1, + 7
----
-2746
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2545
SELECT 20 DIV + + 9
----
2

skipif mysql # not compatible
query I rowsort label-2545
SELECT 20 / + + 9
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT + 6 + - - COUNT( * ) + 66
----
73

skipif mysql # not compatible
query I rowsort label-2546
SELECT + 6 + - - COUNT ( * ) + 66
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2547
SELECT ALL + - 36 * 61 + + 65 * - 8 - + 47 + + 16 / + - 84 - + CAST( + + COUNT( * ) AS SIGNED ) * + + CAST( + - 98 AS SIGNED ) + - MIN( DISTINCT + - ( + 52 ) ) + CAST( 29 AS SIGNED ) * + 30 * + COUNT( * ) * - + 70 * + + MIN( DISTINCT 19 ) - - NULLIF ( COUNT( * ), + ( ( + MIN( ALL + 92 ) ) ) * + COALESCE ( - 46, ( - 81 ) / + 4 * + NULLIF ( 1, - 44 * + NULLIF ( - NULLIF ( 67, - 37 ) * COUNT( * ), - 5 * 94 ) ) + 25 * + COUNT( ALL + 96 ) + 19, 77 / + 97 ) + - 61 * + 86 ) - - ( + CASE + 79 WHEN - 3 * + ( 17 ) + COUNT( * ) THEN 19 + - 99 * - 41 WHEN 49 THEN NULL WHEN - ( 94 ) * + COUNT( * ) THEN NULL END ) * ( + 35 ) * - AVG ( DISTINCT 83 ) + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL + - 36 * 61 + + 65 * - 8 - + 47 + + 16 / + - 84 - + CAST ( + + COUNT ( * ) AS INTEGER ) * + + CAST ( + - 98 AS INTEGER ) + - MIN ( DISTINCT + - ( + 52 ) ) + CAST ( 29 AS INTEGER ) * + 30 * + COUNT ( * ) * - + 70 * + + MIN ( DISTINCT 19 ) - - NULLIF ( COUNT ( * ), + ( ( + MIN ( ALL + 92 ) ) ) * + COALESCE ( - 46, ( - 81 ) / + 4 * + NULLIF ( 1, - 44 * + NULLIF ( - NULLIF ( 67, - 37 ) * COUNT ( * ), - 5 * 94 ) ) + 25 * + COUNT ( ALL + 96 ) + 19, 77 / + 97 ) + - 61 * + 86 ) - - ( + CASE + 79 WHEN - 3 * + ( 17 ) + COUNT ( * ) THEN 19 + - 99 * - 41 WHEN 49 THEN NULL WHEN - ( 94 ) * + COUNT ( * ) THEN NULL END ) * ( + 35 ) * - AVG ( DISTINCT 83 ) + 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT ALL - COUNT( * ) * 46 - + - NULLIF ( - 80, + COUNT( * ) ) + 61 * 34 + + COUNT( * ) * + + MIN( DISTINCT + - 74 ) + - 72 - - - 42 + - 54
----
1706

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL - COUNT ( * ) * 46 - + - NULLIF ( - 80, + COUNT ( * ) ) + 61 * 34 + + COUNT ( * ) * + + MIN ( DISTINCT + - 74 ) + - 72 - - - 42 + - 54
----
1706

query I rowsort
SELECT 89 * - 62
----
-5518

query II rowsort
SELECT + - ( + - 80 ) AS col0, 66 * - + 9 + + - 49 AS col1
----
80
-643

query I rowsort
SELECT ALL - 82 * + 34
----
-2788

query I rowsort
SELECT + ( + ( 18 ) )
----
18

query I rowsort
SELECT ALL - 66 * 82 + 88 + 46 * - ( + 56 ) AS col2
----
-7900

query I rowsort
SELECT 68 + 67 + 24 * - + 99 AS col2
----
-2241

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT + COUNT( - + 13 )
----
1

skipif mysql # not compatible
query I rowsort label-2555
SELECT + COUNT ( - + 13 )
----
1

query I rowsort
SELECT ALL - - ( - ( 46 ) )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2557
SELECT - 13 * + + 46 + + 3 / + - 55 * + 1 + - COUNT( * ) + + CAST( NULL AS SIGNED ) / + - 49 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT - 13 * + + 46 + + 3 / + - 55 * + 1 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) / + - 49 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT ALL - ( + - COUNT( 47 ) ) * - 83 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL - ( + - COUNT ( 47 ) ) * - 83 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT DISTINCT - + SUM( DISTINCT + - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT - + SUM ( DISTINCT + - 0 ) AS col2
----
0

query I rowsort
SELECT ALL - - 9 - - + 19 + - + 45 + + - 4 + + - 54 + 16 + 93
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-2561
SELECT DISTINCT - ( 72 ) AS col1, + SUM( DISTINCT + + NULLIF ( + 38, - 15 * - 83 ) )
----
-72
38

skipif mysql # not compatible
query II rowsort label-2561
SELECT DISTINCT - ( 72 ) AS col1, + SUM ( DISTINCT + + NULLIF ( + 38, - 15 * - 83 ) )
----
-72
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT + 13 * 79 - + NULLIF ( + 57, - - COUNT( * ) )
----
970

skipif mysql # not compatible
query I rowsort label-2562
SELECT + 13 * 79 - + NULLIF ( + 57, - - COUNT ( * ) )
----
970

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT - COALESCE ( SUM( - 62 ), - + 60 + 50 ) * - - 47 + + - MIN( - 51 ) + - + 62 * - CASE + 82 WHEN - 51 THEN - MIN( + + 72 ) END * - - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-2563
SELECT - COALESCE ( SUM ( - 62 ), - + 60 + 50 ) * - - 47 + + - MIN ( - 51 ) + - + 62 * - CASE + 82 WHEN - 51 THEN - MIN ( + + 72 ) END * - - 82
----
NULL

query I rowsort
SELECT ALL + - 17 - - - ( - 0 ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-2565
SELECT + NULLIF ( + 79, 10 ) AS col1, + 77 * + COUNT( * ) * - 38 AS col1
----
79
-2926

skipif mysql # not compatible
query II rowsort label-2565
SELECT + NULLIF ( + 79, 10 ) AS col1, + 77 * + COUNT ( * ) * - 38 AS col1
----
79
-2926

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT COUNT( * ) * 66 + + - MIN( ALL + 93 )
----
-27

skipif mysql # not compatible
query I rowsort label-2566
SELECT COUNT ( * ) * 66 + + - MIN ( ALL + 93 )
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2567
SELECT + COUNT( * ) DIV 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2567
SELECT + COUNT ( * ) / 47 AS col1
----
0

query I rowsort
SELECT ALL + 76 * + 85 * + + ( 33 )
----
213180

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT - COUNT( * ) + - 76
----
-77

skipif mysql # not compatible
query I rowsort label-2569
SELECT - COUNT ( * ) + - 76
----
-77

query I rowsort
SELECT ALL - 12 * - 88
----
1056

query I rowsort
SELECT - 22 + - 28
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT DISTINCT - 31 * - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT - 31 * - COUNT ( * )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2573
SELECT ALL CASE + 1 WHEN COUNT( * ) THEN NULL WHEN - 55 THEN - CAST( NULL AS SIGNED ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL CASE + 1 WHEN COUNT ( * ) THEN NULL WHEN - 55 THEN - CAST ( NULL AS INTEGER ) END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2574
SELECT DISTINCT COALESCE ( 9, + - COUNT( * ) DIV - 44 )
----
9

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT COALESCE ( 9, + - COUNT ( * ) / - 44 )
----
9

query I rowsort
SELECT - 75 * + 81 AS col2
----
-6075

query I rowsort
SELECT ALL - 13 + 34
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT DISTINCT MAX( - - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT MAX ( - - 43 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2578
SELECT DISTINCT - 95 + COALESCE ( - - 76, - CASE + 99 WHEN - MAX( ALL 60 ) THEN - - COUNT( * ) + + MIN( DISTINCT + 93 ) + - 22 + + - 53 ELSE + COUNT( * ) + 96 * + + 70 * ( + 13 ) + 45 END * + 48 * + MAX( - + 21 ) + COALESCE ( - 10, 96 * - + COUNT( * ) * MAX( + 89 ) + SUM( - 39 ) ) + 14, - CAST( + + COUNT( * ) AS SIGNED ) ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT - 95 + COALESCE ( - - 76, - CASE + 99 WHEN - MAX ( ALL 60 ) THEN - - COUNT ( * ) + + MIN ( DISTINCT + 93 ) + - 22 + + - 53 ELSE + COUNT ( * ) + 96 * + + 70 * ( + 13 ) + 45 END * + 48 * + MAX ( - + 21 ) + COALESCE ( - 10, 96 * - + COUNT ( * ) * MAX ( + 89 ) + SUM ( - 39 ) ) + 14, - CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col1
----
-19

query I rowsort
SELECT ALL CASE + + 17 WHEN + 55 - 74 * + ( - - 13 ) THEN NULL ELSE 57 END
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT - COUNT( * ) * + - 41 * - - 44
----
1804

skipif mysql # not compatible
query I rowsort label-2580
SELECT - COUNT ( * ) * + - 41 * - - 44
----
1804

query I rowsort
SELECT - 45 + - + 2 AS col1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2582
SELECT DISTINCT - MAX( - CAST( 62 AS SIGNED ) ) + + + 43 * 67 * - 54 * - 5 col0
----
777932

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT - MAX ( - CAST ( 62 AS INTEGER ) ) + + + 43 * 67 * - 54 * - 5 col0
----
777932

query I rowsort
SELECT ALL - 50 + - 49 + + 1 - - 81 * - ( 3 ) col2
----
-341

query I rowsort
SELECT - 9 * 68
----
-612

query I rowsort
SELECT ALL + 77 + - 33 AS col2
----
44

query I rowsort
SELECT DISTINCT NULLIF ( + 65, - 20 * 41 )
----
65

query I rowsort
SELECT DISTINCT + + 45 + 20
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT DISTINCT 34 * - 71 + + COUNT( * ) + + 65 AS col2
----
-2348

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT 34 * - 71 + + COUNT ( * ) + + 65 AS col2
----
-2348

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2589
SELECT - + 97 - - 52 DIV - MIN( 33 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-2589
SELECT - + 97 - - 52 / - MIN ( 33 ) AS col2
----
-98

query I rowsort
SELECT ALL - 86 * + 45 AS col1
----
-3870

query I rowsort
SELECT - - 60 col0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2592
SELECT + 36 + - 7 * + 4 DIV + + 89 + COUNT( * ) AS col1, 74 AS col0
----
37
74

skipif mysql # not compatible
query II rowsort label-2592
SELECT + 36 + - 7 * + 4 / + + 89 + COUNT ( * ) AS col1, 74 AS col0
----
37
74

query I rowsort
SELECT - 79 * + 89 AS col2
----
-7031

query II rowsort
SELECT ALL + 93, 2 * + + 92 * - 63 col2
----
93
-11592

query I rowsort
SELECT + 93 - + 29
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2596
SELECT DISTINCT COUNT( * ) DIV - + 87
----
0

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT COUNT ( * ) / - + 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2597
SELECT - - 1 * 59 + - + 92 - + COALESCE ( 8, 34 * - AVG ( ALL ( + + 27 ) ) * - 27 DIV 57 * 69 + + 29 + CASE - 53 WHEN - - 76 * + + ( + + 18 ) * CAST( NULL AS SIGNED ) * + 51 + - 8 * - + CAST( - 36 AS SIGNED ) THEN 10 END, - SUM( + + 28 ) * + + 69 * - 61 + - 60 ) + + 98 col0, - ( - - 42 ) + - + 36 AS col2
----
57
-78

skipif mysql # not compatible
query II rowsort label-2597
SELECT - - 1 * 59 + - + 92 - + COALESCE ( 8, 34 * - AVG ( ALL ( + + 27 ) ) * - 27 / 57 * 69 + + 29 + CASE - 53 WHEN - - 76 * + + ( + + 18 ) * CAST ( NULL AS INTEGER ) * + 51 + - 8 * - + CAST ( - 36 AS INTEGER ) THEN 10 END, - SUM ( + + 28 ) * + + 69 * - 61 + - 60 ) + + 98 col0, - ( - - 42 ) + - + 36 AS col2
----
57
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2598
SELECT + + 65 * - + CAST( + 21 AS SIGNED ) AS col1
----
-1365

skipif mysql # not compatible
query I rowsort label-2598
SELECT + + 65 * - + CAST ( + 21 AS INTEGER ) AS col1
----
-1365

query I rowsort
SELECT ALL + COALESCE ( 79, - + 99 * - 49 ) AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2600
SELECT ALL + - COALESCE ( - CAST( + 84 AS SIGNED ), 72 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL + - COALESCE ( - CAST ( + 84 AS INTEGER ), 72 ) AS col2
----
84

query I rowsort
SELECT + COALESCE ( 27, + 23 ) AS col0
----
27

query I rowsort
SELECT + COALESCE ( 10, + NULLIF ( + 53, + + 22 ) )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2603
SELECT ALL + COUNT( * ), - 49 DIV COUNT( * ) * + + 23 col2
----
1
-1127

skipif mysql # not compatible
query II rowsort label-2603
SELECT ALL + COUNT ( * ), - 49 / COUNT ( * ) * + + 23 col2
----
1
-1127

query I rowsort
SELECT DISTINCT 46 * + + 28
----
1288

query I rowsort
SELECT CASE - + 50 WHEN + + 77 THEN NULL WHEN - - 85 THEN + 39 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2606
SELECT + ( + - 77 ) DIV + 18 col1
----
-4

skipif mysql # not compatible
query I rowsort label-2606
SELECT + ( + - 77 ) / + 18 col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2607
SELECT DISTINCT 35 * + 87 + - + 43 * - 9 - - 27 * + CASE + COUNT( + 78 ) WHEN - AVG ( + 76 ) * + + COUNT( * ) / + + 56 * + + 62 - 62 THEN 71 ELSE 91 * + - 13 * - - 33 + CAST( NULL AS SIGNED ) + + - CAST( - COUNT( * ) AS SIGNED ) / - CASE - 89 WHEN + ( + - MIN( - 83 ) ) / + 78 + + 69 + + COUNT( 59 ) - 80 + + AVG ( + 48 ) + COUNT( * ) / + - 40 * - 10 * 33 THEN NULL WHEN + 61 * + 61 + - 51 * + 67 THEN - 55 END * 31 / 81 - + 9 * MIN( DISTINCT ( + 55 ) + 47 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT 35 * + 87 + - + 43 * - 9 - - 27 * + CASE + COUNT ( + 78 ) WHEN - AVG ( + 76 ) * + + COUNT ( * ) / + + 56 * + + 62 - 62 THEN 71 ELSE 91 * + - 13 * - - 33 + CAST ( NULL AS INTEGER ) + + - CAST ( - COUNT ( * ) AS INTEGER ) / - CASE - 89 WHEN + ( + - MIN ( - 83 ) ) / + 78 + + 69 + + COUNT ( 59 ) - 80 + + AVG ( + 48 ) + COUNT ( * ) / + - 40 * - 10 * 33 THEN NULL WHEN + 61 * + 61 + - 51 * + 67 THEN - 55 END * 31 / 81 - + 9 * MIN ( DISTINCT ( + 55 ) + 47 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT ALL MAX( DISTINCT + - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL MAX ( DISTINCT + - 11 )
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-2609
SELECT + 63 + - 58 DIV + 3 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-2609
SELECT + 63 + - 58 / + 3 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT ALL 10 * + MIN( - 18 ) + - 31
----
-211

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL 10 * + MIN ( - 18 ) + - 31
----
-211

onlyif mysql # aggregate syntax: 
query II rowsort label-2611
SELECT MAX( DISTINCT - - 37 ) AS col0, 93 col0
----
37
93

skipif mysql # not compatible
query II rowsort label-2611
SELECT MAX ( DISTINCT - - 37 ) AS col0, 93 col0
----
37
93

query I rowsort
SELECT + ( 4 ) + - 62 AS col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2613
SELECT - 45 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-2613
SELECT - 45 / - 70
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2614
SELECT COUNT( * ) AS col2, - 16 AS col2
----
1
-16

skipif mysql # not compatible
query II rowsort label-2614
SELECT COUNT ( * ) AS col2, - 16 AS col2
----
1
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT DISTINCT + COUNT( * ) * + + 45
----
45

skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT + COUNT ( * ) * + + 45
----
45

query I rowsort
SELECT ALL - 82 + + NULLIF ( + - 19, - 31 + + 73 - + + 31 ) AS col0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT + COUNT( * ) - + 96 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-2617
SELECT + COUNT ( * ) - + 96 AS col2
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2618
SELECT ALL MIN( - + 13 ) DIV 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL MIN ( - + 13 ) / 93 AS col0
----
0

query I rowsort
SELECT - 9 + + - 98 * - 2
----
187

query I rowsort
SELECT ALL ( + - 58 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-2621
SELECT DISTINCT MIN( + 72 ) AS col1, COALESCE ( + + 84, - COUNT( * ) - - 35 ) col1
----
72
84

skipif mysql # not compatible
query II rowsort label-2621
SELECT DISTINCT MIN ( + 72 ) AS col1, COALESCE ( + + 84, - COUNT ( * ) - - 35 ) col1
----
72
84

query I rowsort
SELECT ALL 91 + ( - 18 ) + + + 6 + + 95 - + 88 * 48
----
-4050

onlyif mysql # aggregate syntax: 
query II rowsort label-2623
SELECT 17 AS col0, COUNT( * ) * 25 AS col0
----
17
25

skipif mysql # not compatible
query II rowsort label-2623
SELECT 17 AS col0, COUNT ( * ) * 25 AS col0
----
17
25

query II rowsort
SELECT ALL - 39 AS col1, 8
----
-39
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT + - COUNT( * ) + + + 0 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2625
SELECT + - COUNT ( * ) + + + 0 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT - + 21 - 8 * - COUNT( ALL - - ( 19 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-2626
SELECT - + 21 - 8 * - COUNT ( ALL - - ( 19 ) )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2627
SELECT DISTINCT CAST( + 9 AS SIGNED ) col1
----
9

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT CAST ( + 9 AS INTEGER ) col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2628
SELECT - 24 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2628
SELECT - 24 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT - 77 + - COUNT( ALL 90 ) * - - 77 AS col2
----
-154

skipif mysql # not compatible
query I rowsort label-2629
SELECT - 77 + - COUNT ( ALL 90 ) * - - 77 AS col2
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT - COALESCE ( - 23, - COUNT( * ) * - - 12 * 90, 15 )
----
23

skipif mysql # not compatible
query I rowsort label-2630
SELECT - COALESCE ( - 23, - COUNT ( * ) * - - 12 * 90, 15 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT - 91 + - + 84 + COUNT( * ) + - SUM( + + 7 ) + - 91 + - 65 * NULLIF ( - COUNT( DISTINCT ( + 40 ) ), + - 12 ) * MIN( - 83 ) * - 76
----
409748

skipif mysql # not compatible
query I rowsort label-2631
SELECT - 91 + - + 84 + COUNT ( * ) + - SUM ( + + 7 ) + - 91 + - 65 * NULLIF ( - COUNT ( DISTINCT ( + 40 ) ), + - 12 ) * MIN ( - 83 ) * - 76
----
409748

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT ALL MIN( + 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL MIN ( + 39 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL + + SUM( - 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL + + SUM ( - 18 ) AS col1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-2634
SELECT ALL + + 75 DIV - + 13 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL + + 75 / - + 13 AS col1
----
-5

query I rowsort
SELECT - - 94 * + 75 AS col2
----
7050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2636
SELECT DISTINCT + - ( 62 ) * - - COALESCE ( - 14, 77 + - 43 + 82 * CAST( + - 75 AS SIGNED ) * - 11 * + - CAST( + + 94 AS SIGNED ) ) AS col0
----
868

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT + - ( 62 ) * - - COALESCE ( - 14, 77 + - 43 + 82 * CAST ( + - 75 AS INTEGER ) * - 11 * + - CAST ( + + 94 AS INTEGER ) ) AS col0
----
868

query I rowsort
SELECT ALL + 39 * + + 35 AS col1
----
1365

onlyif mysql # DIV for integer division: 
query I rowsort label-2638
SELECT 23 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-2638
SELECT 23 / - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT ALL - 48 + + + CASE - COUNT( * ) WHEN ( + 73 ) THEN NULL ELSE + COUNT( * ) END - - 81
----
34

skipif mysql # not compatible
query I rowsort label-2639
SELECT ALL - 48 + + + CASE - COUNT ( * ) WHEN ( + 73 ) THEN NULL ELSE + COUNT ( * ) END - - 81
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2640
SELECT + 2 + + MAX( ALL CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2640
SELECT + 2 + + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2641
SELECT DISTINCT 35 DIV + 66 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT 35 / + 66 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT + CASE 44 WHEN + - 65 THEN + - 26 ELSE NULL END * - - MIN( ALL - 83 ) + + 93 + + - MAX( 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2642
SELECT + CASE 44 WHEN + - 65 THEN + - 26 ELSE NULL END * - - MIN ( ALL - 83 ) + + 93 + + - MAX ( 85 )
----
NULL

query I rowsort
SELECT DISTINCT - 58 + - 75 AS col1
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT DISTINCT COUNT( * ) + - 70 + ( + 52 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT COUNT ( * ) + - 70 + ( + 52 ) AS col1
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2645
SELECT 96 + + 80 DIV + 25 + + - ( - COUNT( * ) ) + 10 + SUM( DISTINCT + 46 ) + ( - COUNT( * ) ) AS col2, + 99
----
155
99

skipif mysql # not compatible
query II rowsort label-2645
SELECT 96 + + 80 / + 25 + + - ( - COUNT ( * ) ) + 10 + SUM ( DISTINCT + 46 ) + ( - COUNT ( * ) ) AS col2, + 99
----
155
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT SUM( - - 58 ) * + 7 AS col1
----
406

skipif mysql # not compatible
query I rowsort label-2646
SELECT SUM ( - - 58 ) * + 7 AS col1
----
406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2647
SELECT COALESCE ( NULLIF ( - 9, + 97 ), 96, - ( - + CASE + 83 WHEN + 89 + + 35 * ( - CAST( - 23 AS DECIMAL ) ) THEN 55 DIV COUNT( * ) * - 29 * - 36 + - - CAST( NULL AS SIGNED ) WHEN - 83 * + + 93 THEN NULL ELSE - + 73 END ) * 19 ) + - + 21
----
-30

skipif mysql # not compatible
query I rowsort label-2647
SELECT COALESCE ( NULLIF ( - 9, + 97 ), 96, - ( - + CASE + 83 WHEN + 89 + + 35 * ( - CAST ( - 23 AS REAL ) ) THEN 55 / COUNT ( * ) * - 29 * - 36 + - - CAST ( NULL AS INTEGER ) WHEN - 83 * + + 93 THEN NULL ELSE - + 73 END ) * 19 ) + - + 21
----
-30

query I rowsort
SELECT ALL 51 + - 46 AS col2
----
5

query I rowsort
SELECT CASE 96 WHEN + + 26 THEN - + ( + 55 ) + - + 15 END * 22 + 53 / - + 82 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2650
SELECT CAST( NULL AS SIGNED ) + 60 - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2650
SELECT CAST ( NULL AS INTEGER ) + 60 - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2651
SELECT ALL COALESCE ( + + 94, - + CAST( NULL AS SIGNED ) ) + + + 78 + + + COALESCE ( - 57, - + COALESCE ( - + 39, - - 47 ) + + - 75 * + + 71, - ( SUM( ALL + - 31 ) ) ) + + 67 + - - COUNT( * ) * 43 * - + 85 * - - 46 + + + 32 + - MIN( DISTINCT - CASE 3 WHEN + 54 + - 63 THEN - 53 / + 27 + 50 END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL COALESCE ( + + 94, - + CAST ( NULL AS INTEGER ) ) + + + 78 + + + COALESCE ( - 57, - + COALESCE ( - + 39, - - 47 ) + + - 75 * + + 71, - ( SUM ( ALL + - 31 ) ) ) + + 67 + - - COUNT ( * ) * 43 * - + 85 * - - 46 + + + 32 + - MIN ( DISTINCT - CASE 3 WHEN + 54 + - 63 THEN - 53 / + 27 + 50 END ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT ALL CASE - - 24 WHEN + 96 + - 68 THEN NULL ELSE COUNT( * ) - + ( + 39 ) END - 74 * - 33 * + + 91 + + + 13 * 73 AS col0
----
223133

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL CASE - - 24 WHEN + 96 + - 68 THEN NULL ELSE COUNT ( * ) - + ( + 39 ) END - 74 * - 33 * + + 91 + + + 13 * 73 AS col0
----
223133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2653
SELECT CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ), + COALESCE ( - 21, 17 ) + - 57 - + - COUNT( * ) AS col1
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-2653
SELECT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ), + COALESCE ( - 21, 17 ) + - 57 - + - COUNT ( * ) AS col1
----
NULL
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2654
SELECT ALL - ( + 31 ) - + 20 / - ( COUNT( * ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL - ( + 31 ) - + 20 / - ( COUNT ( * ) ) + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 95 + 99 AS col0, + 75
----
4
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT - COUNT( * ) * - 68 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-2656
SELECT - COUNT ( * ) * - 68 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT COUNT( * ) * 89 col0
----
89

skipif mysql # not compatible
query I rowsort label-2657
SELECT COUNT ( * ) * 89 col0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-2658
SELECT DISTINCT + ( 68 ) DIV + 12
----
5

skipif mysql # not compatible
query I rowsort label-2658
SELECT DISTINCT + ( 68 ) / + 12
----
5

query I rowsort
SELECT ALL 78 - + 32
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT - CASE + 56 WHEN + COUNT( * ) * - - 57 THEN 4 / - 47 + + 1 WHEN - 37 THEN 66 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2660
SELECT - CASE + 56 WHEN + COUNT ( * ) * - - 57 THEN 4 / - 47 + + 1 WHEN - 37 THEN 66 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT ALL - MAX( DISTINCT 44 ) * + 37 AS col0
----
-1628

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL - MAX ( DISTINCT 44 ) * + 37 AS col0
----
-1628

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2662
SELECT + COUNT( + 99 ) DIV - 30 + - 14
----
-14

skipif mysql # not compatible
query I rowsort label-2662
SELECT + COUNT ( + 99 ) / - 30 + - 14
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2663
SELECT COUNT( * ) DIV 38
----
0

skipif mysql # not compatible
query I rowsort label-2663
SELECT COUNT ( * ) / 38
----
0

query I rowsort
SELECT ( + 49 ) + + 39
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2665
SELECT DISTINCT COALESCE ( 95, - 18 + 51 ) DIV 73 * + 58 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT COALESCE ( 95, - 18 + 51 ) / 73 * + 58 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL + 4 * + MIN( + 42 ) * COUNT( * ) + - - 4 * - COALESCE ( + 93, + 2 ) + + MIN( 26 ) - - 79 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL + 4 * + MIN ( + 42 ) * COUNT ( * ) + - - 4 * - COALESCE ( + 93, + 2 ) + + MIN ( 26 ) - - 79 AS col2
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2667
SELECT 82 * - 79 + + CASE COUNT( * ) WHEN - 36 THEN NULL WHEN + CASE + COUNT( * ) WHEN - - 14 THEN 77 WHEN + 41 THEN NULL WHEN 63 THEN + 89 END * + + 97 - 9 THEN 40 ELSE - 28 * - 88 * CAST( NULL AS SIGNED ) * - COUNT( * ) + 79 - COUNT( * ) * - COUNT( * ) + - + 50 * - ( COUNT( * ) ) END * + - 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT 82 * - 79 + + CASE COUNT ( * ) WHEN - 36 THEN NULL WHEN + CASE + COUNT ( * ) WHEN - - 14 THEN 77 WHEN + 41 THEN NULL WHEN 63 THEN + 89 END * + + 97 - 9 THEN 40 ELSE - 28 * - 88 * CAST ( NULL AS INTEGER ) * - COUNT ( * ) + 79 - COUNT ( * ) * - COUNT ( * ) + - + 50 * - ( COUNT ( * ) ) END * + - 96 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 76 * + - 77 AS col0, NULLIF ( 69, + + 41 + + + 75 )
----
-5852
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT ALL + 43 * - COUNT( + 71 )
----
-43

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL + 43 * - COUNT ( + 71 )
----
-43

query I rowsort
SELECT - 50 * 92 AS col2
----
-4600

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT MAX( + 15 ) + + 51 + + + 4 * - 89 AS col0
----
-290

skipif mysql # not compatible
query I rowsort label-2671
SELECT MAX ( + 15 ) + + 51 + + + 4 * - 89 AS col0
----
-290

query I rowsort
SELECT - - CASE + 59 WHEN + + 21 * 18 + + 1 THEN NULL ELSE - 71 END AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT MIN( ALL - 79 ) * - + 79 * 83 + + 67 AS col2
----
518070

skipif mysql # not compatible
query I rowsort label-2673
SELECT MIN ( ALL - 79 ) * - + 79 * 83 + + 67 AS col2
----
518070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2674
SELECT ( - + ( ( 1 ) ) ) * + CASE + 34 WHEN COUNT( * ) * - - 80 + - CAST( NULL AS SIGNED ) THEN - 51 * + - 47 END + + + 82 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2674
SELECT ( - + ( ( 1 ) ) ) * + CASE + 34 WHEN COUNT ( * ) * - - 80 + - CAST ( NULL AS INTEGER ) THEN - 51 * + - 47 END + + + 82 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT DISTINCT + COUNT( * ) + + 80 - + 82 * - - 61 AS col0
----
-4921

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT + COUNT ( * ) + + 80 - + 82 * - - 61 AS col0
----
-4921

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2676
SELECT 80 / CAST( NULL AS DECIMAL ) * - + 84 * 50 * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-2676
SELECT 80 / CAST ( NULL AS REAL ) * - + 84 * 50 * - 37
----
NULL

query I rowsort
SELECT ALL - 81 + + 47
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT ALL - 44 + - COUNT( * ) col0
----
-45

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL - 44 + - COUNT ( * ) col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2679
SELECT DISTINCT - 72 DIV - - CAST( - 62 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-2679
SELECT DISTINCT - 72 / - - CAST ( - 62 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT ALL 46 + - ( - 9 ) + + + 37 + + + MAX( 92 ) col2
----
184

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL 46 + - ( - 9 ) + + + 37 + + + MAX ( 92 ) col2
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT ALL - 54 * - ( - COUNT( * ) ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL - 54 * - ( - COUNT ( * ) ) AS col0
----
-54

query I rowsort
SELECT 5 * + 35 * - 11 * - ( + 54 )
----
103950

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT COUNT( * ) - + 30
----
-29

skipif mysql # not compatible
query I rowsort label-2683
SELECT COUNT ( * ) - + 30
----
-29

query II rowsort
SELECT + 68 AS col1, 13 * - 79 * 76
----
68
-78052

query II rowsort
SELECT 26 AS col1, + 7 AS col2
----
26
7

query I rowsort
SELECT 31 * + 24
----
744

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT ALL + SUM( ALL 81 ) * - + 93
----
-7533

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL + SUM ( ALL 81 ) * - + 93
----
-7533

onlyif mysql # aggregate syntax: 
query II rowsort label-2688
SELECT 42 AS col0, + COUNT( * ) col2
----
42
1

skipif mysql # not compatible
query II rowsort label-2688
SELECT 42 AS col0, + COUNT ( * ) col2
----
42
1

query I rowsort
SELECT ALL + 82 - + COALESCE ( - - 23, - 33 + NULLIF ( + 68, - 58 ) )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT ALL - COUNT( - - CASE - 17 WHEN 48 / + 67 + - 41 / - 73 * - 65 - 77 THEN 36 END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL - COUNT ( - - CASE - 17 WHEN 48 / + 67 + - 41 / - 73 * - 65 - 77 THEN 36 END ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT ALL COUNT( - 49 ) - ( + 68 ) + - 63
----
-130

skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL COUNT ( - 49 ) - ( + 68 ) + - 63
----
-130

onlyif mysql # DIV for integer division: 
query II rowsort label-2692
SELECT ( 61 ) * - + ( 26 ) AS col0, + 16 * 43 DIV + + 57
----
-1586
12

skipif mysql # not compatible
query II rowsort label-2692
SELECT ( 61 ) * - + ( 26 ) AS col0, + 16 * 43 / + + 57
----
-1586
12

query I rowsort
SELECT 4 + - 67
----
-63

query I rowsort
SELECT 14 + - 52 AS col0
----
-38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2695
SELECT + 32 - - 65 * 85 DIV + 86, NULLIF ( 14, - + CAST( NULL AS SIGNED ) DIV + 11 ) AS col0
----
96
14

skipif mysql # not compatible
query II rowsort label-2695
SELECT + 32 - - 65 * 85 / + 86, NULLIF ( 14, - + CAST ( NULL AS INTEGER ) / + 11 ) AS col0
----
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT - ( - - MAX( ALL - 81 ) )
----
81

skipif mysql # not compatible
query I rowsort label-2696
SELECT - ( - - MAX ( ALL - 81 ) )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2697
SELECT ALL + 61 AS col2, 82 + + 22 + COALESCE ( 55, + MAX( - + 66 ) )
----
61
159

skipif mysql # not compatible
query II rowsort label-2697
SELECT ALL + 61 AS col2, 82 + + 22 + COALESCE ( 55, + MAX ( - + 66 ) )
----
61
159

query I rowsort
SELECT + 59 + 19 * + 21
----
458

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT ALL 29 * - 2 - 14 * COUNT( * ) + - - 91
----
19

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL 29 * - 2 - 14 * COUNT ( * ) + - - 91
----
19

query I rowsort
SELECT 35 * - + 73 + - 70 * - + 53 + + ( - 96 )
----
1059

onlyif mysql # DIV for integer division: 
query II rowsort label-2701
SELECT ALL - 37, 42 + + 76 DIV + 57 AS col2
----
-37
43

skipif mysql # not compatible
query II rowsort label-2701
SELECT ALL - 37, 42 + + 76 / + 57 AS col2
----
-37
43

onlyif mysql # aggregate syntax: 
query II rowsort label-2702
SELECT + COUNT( * ) AS col2, + 92 * + COUNT( * )
----
1
92

skipif mysql # not compatible
query II rowsort label-2702
SELECT + COUNT ( * ) AS col2, + 92 * + COUNT ( * )
----
1
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2703
SELECT ALL - + 0 DIV - 50 DIV - + 31 + - 60 * - 62 * 10 + - + 41 - ( 95 ) + 1 AS col2
----
37065

skipif mysql # not compatible
query I rowsort label-2703
SELECT ALL - + 0 / - 50 / - + 31 + - 60 * - 62 * 10 + - + 41 - ( 95 ) + 1 AS col2
----
37065

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2704
SELECT + 95 - 30 + 70 * - 86 + - 80 DIV + NULLIF ( - ( + - 4 ), + 97 ) + - - NULLIF ( + + 3, CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) DIV 58 ) - + - 63
----
-5909

skipif mysql # not compatible
query I rowsort label-2704
SELECT + 95 - 30 + 70 * - 86 + - 80 / + NULLIF ( - ( + - 4 ), + 97 ) + - - NULLIF ( + + 3, CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) / 58 ) - + - 63
----
-5909

query I rowsort
SELECT + + 67 * - + 8
----
-536

query I rowsort
SELECT + - 3 - - 9
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2707
SELECT DISTINCT COUNT( ALL - + 18 ) + - COALESCE ( + - 62, + - 85, + COUNT( * ) * - - 90 ) + + ( + - 74 ) * 16 * SUM( ALL + CAST( NULL AS SIGNED ) ) * + CASE 74 WHEN CAST( NULL AS SIGNED ) * - COUNT( * ) + + 33 THEN + 72 END - 46 / + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT COUNT ( ALL - + 18 ) + - COALESCE ( + - 62, + - 85, + COUNT ( * ) * - - 90 ) + + ( + - 74 ) * 16 * SUM ( ALL + CAST ( NULL AS INTEGER ) ) * + CASE 74 WHEN CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + 33 THEN + 72 END - 46 / + - 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT + + COUNT( * ) + 14 - - 8 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-2708
SELECT + + COUNT ( * ) + 14 - - 8 AS col1
----
23

query I rowsort
SELECT DISTINCT + 78 + + + 85 col2
----
163

query I rowsort
SELECT ALL 59 + - 23 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT ALL - COUNT( * ) * - COUNT( * ) + + 16 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL - COUNT ( * ) * - COUNT ( * ) + + 16 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT - 94 * + CASE - COALESCE ( + 94, - + COUNT( * ) ) WHEN 49 + - - 61 THEN NULL WHEN - - COUNT( * ) * 68 THEN - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2712
SELECT - 94 * + CASE - COALESCE ( + 94, - + COUNT ( * ) ) WHEN 49 + - - 61 THEN NULL WHEN - - COUNT ( * ) * 68 THEN - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2713
SELECT COALESCE ( - 31, - 4 DIV - ( + AVG ( 72 ) ) + - 2 + + 35 ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-2713
SELECT COALESCE ( - 31, - 4 / - ( + AVG ( 72 ) ) + - 2 + + 35 ) col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2714
SELECT - 93 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2714
SELECT - 93 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2715
SELECT 86 * 48 + CAST( - - 36 AS SIGNED ) - + CAST( NULL AS SIGNED ) * + COUNT( * ) - - + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2715
SELECT 86 * 48 + CAST ( - - 36 AS INTEGER ) - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) - - + 96 AS col1
----
NULL

query I rowsort
SELECT ALL 35 * - 58 - 13 AS col0
----
-2043

onlyif mysql # DIV for integer division: 
query I rowsort label-2717
SELECT - 29 DIV - + 2 + + 44 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-2717
SELECT - 29 / - + 2 + + 44 AS col0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2718
SELECT ALL + 14 * CAST( NULL AS SIGNED ) - + + 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL + 14 * CAST ( NULL AS INTEGER ) - + + 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2719
SELECT ALL - COUNT( * ) DIV 23
----
0

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL - COUNT ( * ) / 23
----
0

query I rowsort
SELECT DISTINCT - 5 * - 22 AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT - 26 * + + COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-2721
SELECT - 26 * + + COUNT ( * ) AS col1
----
-26

query I rowsort
SELECT 24 * + 72 + + + 89 AS col1
----
1817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2723
SELECT DISTINCT + CAST( + - 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT + CAST ( + - 22 AS INTEGER )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2724
SELECT DISTINCT + CASE + CASE - 97 WHEN + 43 / + + COUNT( * ) * 58 + - 60 THEN - 72 + 86 - COALESCE ( + 94, + 1 + 18 ) * - CAST( NULL AS SIGNED ) END WHEN - 55 / - - CAST( - 12 AS SIGNED ) * + 88 * - MAX( - - NULLIF ( 83, - 47 ) ) + - 70 + - COUNT( 33 ) * - CASE 73 WHEN + + 48 THEN NULL ELSE - - SUM( - - 96 ) * + - ( + 1 ) - + - AVG ( ALL 48 ) * 82 / - 31 END THEN + 73 * + - 6 + 1 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT + CASE + CASE - 97 WHEN + 43 / + + COUNT ( * ) * 58 + - 60 THEN - 72 + 86 - COALESCE ( + 94, + 1 + 18 ) * - CAST ( NULL AS INTEGER ) END WHEN - 55 / - - CAST ( - 12 AS INTEGER ) * + 88 * - MAX ( - - NULLIF ( 83, - 47 ) ) + - 70 + - COUNT ( 33 ) * - CASE 73 WHEN + + 48 THEN NULL ELSE - - SUM ( - - 96 ) * + - ( + 1 ) - + - AVG ( ALL 48 ) * 82 / - 31 END THEN + 73 * + - 6 + 1 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - - 6 * + 10 AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-2726
SELECT - - 56 DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-2726
SELECT - - 56 / + 68
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2727
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - - 61 + + - 42 + + 14 + - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2727
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - - 61 + + - 42 + + 14 + - 40 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2728
SELECT + - CAST( NULL AS DECIMAL ) + + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2728
SELECT + - CAST ( NULL AS REAL ) + + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL - + 81 + + + 46 col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT + + COUNT( * ) + 50 * 54 AS col1
----
2701

skipif mysql # not compatible
query I rowsort label-2730
SELECT + + COUNT ( * ) + 50 * 54 AS col1
----
2701

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2731
SELECT ALL CAST( + - 59 AS SIGNED ), 97 AS col1
----
-59
97

skipif mysql # not compatible
query II rowsort label-2731
SELECT ALL CAST ( + - 59 AS INTEGER ), 97 AS col1
----
-59
97

query I rowsort
SELECT + 2 * 92
----
184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2733
SELECT ALL - 52 + + 85 + - + 86 DIV - COUNT( * )
----
119

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL - 52 + + 85 + - + 86 / - COUNT ( * )
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2734
SELECT DISTINCT + 24 + COALESCE ( + CASE - - 82 WHEN ( + - 44 ) * + CAST( - - 57 AS SIGNED ) THEN + - 3 * + + 17 - - 92 END, + 33, + + 13 + - 88 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT + 24 + COALESCE ( + CASE - - 82 WHEN ( + - 44 ) * + CAST ( - - 57 AS INTEGER ) THEN + - 3 * + + 17 - - 92 END, + 33, + + 13 + - 88 ) AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2735
SELECT DISTINCT + 44 + COALESCE ( - + CASE 56 WHEN - COALESCE ( 69, 37 ) + - 58 * + 43 THEN 84 + + - SUM( + + 9 ) * 73 + - 40 + - CAST( NULL AS SIGNED ) ELSE - + 34 * 29 + + - 90 - - 37 END, + ( - 97 ) ) AS col0
----
1083

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT + 44 + COALESCE ( - + CASE 56 WHEN - COALESCE ( 69, 37 ) + - 58 * + 43 THEN 84 + + - SUM ( + + 9 ) * 73 + - 40 + - CAST ( NULL AS INTEGER ) ELSE - + 34 * 29 + + - 90 - - 37 END, + ( - 97 ) ) AS col0
----
1083

query I rowsort
SELECT DISTINCT - - 14 * + ( - - 38 ) + - - ( - 73 )
----
459

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT ALL + SUM( - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL + SUM ( - 6 )
----
-6

query I rowsort
SELECT DISTINCT 70 + + - 46
----
24

query I rowsort
SELECT - + 36 + 9
----
-27

query I rowsort
SELECT + 70 + - 2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2741
SELECT DISTINCT 76 + 7 + - 8 + 44 + + CASE 13 WHEN - + NULLIF ( - 33, COALESCE ( - 35, 80 * - - 53, + 97 ) ) * + 6 * + + 39 + CAST( NULL AS SIGNED ) - + + 91 / + - MIN( ALL + 59 ) * + 46 - + CAST( + 89 AS SIGNED ) * + 0 THEN NULL WHEN - ( - ( - + 16 ) ) * + 90 THEN 53 END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT 76 + 7 + - 8 + 44 + + CASE 13 WHEN - + NULLIF ( - 33, COALESCE ( - 35, 80 * - - 53, + 97 ) ) * + 6 * + + 39 + CAST ( NULL AS INTEGER ) - + + 91 / + - MIN ( ALL + 59 ) * + 46 - + CAST ( + 89 AS INTEGER ) * + 0 THEN NULL WHEN - ( - ( - + 16 ) ) * + 90 THEN 53 END * - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2742
SELECT ALL - ( - + 30 ) DIV 84 * + 52 - 1 * + + 18 col2
----
-18

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL - ( - + 30 ) / 84 * + 52 - 1 * + + 18 col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT DISTINCT AVG ( ALL + - CASE - - 11 WHEN 83 THEN - - 63 WHEN 57 * + + 33 + 92 - + + 26 + 59 + + 62 + 93 THEN - 59 END ) / 56 + + + 8 + - CASE + 26 WHEN + CASE + 62 WHEN - - 39 THEN + 35 WHEN - - 30 THEN NULL ELSE - 96 + + COUNT( + CASE + 62 WHEN + 62 THEN - 8 + - + 54 WHEN + 51 + + 92 * 48 THEN + 28 * 54 - - - 46 * + ( - 32 ) END ) + + 2 END * - + COALESCE ( + 66, + ( 17 ) - 86 * 31 ) * + 39 THEN 76 ELSE - 97 * 26 END * 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2743
SELECT DISTINCT AVG ( ALL + - CASE - - 11 WHEN 83 THEN - - 63 WHEN 57 * + + 33 + 92 - + + 26 + 59 + + 62 + 93 THEN - 59 END ) / 56 + + + 8 + - CASE + 26 WHEN + CASE + 62 WHEN - - 39 THEN + 35 WHEN - - 30 THEN NULL ELSE - 96 + + COUNT ( + CASE + 62 WHEN + 62 THEN - 8 + - + 54 WHEN + 51 + + 92 * 48 THEN + 28 * 54 - - - 46 * + ( - 32 ) END ) + + 2 END * - + COALESCE ( + 66, + ( 17 ) - 86 * 31 ) * + 39 THEN 76 ELSE - 97 * 26 END * 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT DISTINCT MIN( + + 86 ) / 59 - ( 52 ) * CASE - 46 WHEN + - COUNT( * ) / 40 * - 86 + + 15 * + 99 THEN + 30 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT MIN ( + + 86 ) / 59 - ( 52 ) * CASE - 46 WHEN + - COUNT ( * ) / 40 * - 86 + + 15 * + 99 THEN + 30 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2745
SELECT ALL COALESCE ( - 15, - - 15 DIV - + CASE - - 97 WHEN - 40 THEN MIN( 15 ) END * + 61 + - 67 - - 26 * 99 * + 18 + - 62 + + COUNT( * ) + + 94 * CASE 82 WHEN + 73 + - 24 THEN + 15 WHEN - COUNT( + 15 ) THEN NULL ELSE 72 END, + - CAST( 47 AS SIGNED ) * - + 25 + + - 69 - - COUNT( * ) * 10 ) * - 45
----
675

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL COALESCE ( - 15, - - 15 / - + CASE - - 97 WHEN - 40 THEN MIN ( 15 ) END * + 61 + - 67 - - 26 * 99 * + 18 + - 62 + + COUNT ( * ) + + 94 * CASE 82 WHEN + 73 + - 24 THEN + 15 WHEN - COUNT ( + 15 ) THEN NULL ELSE 72 END, + - CAST ( 47 AS INTEGER ) * - + 25 + + - 69 - - COUNT ( * ) * 10 ) * - 45
----
675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2746
SELECT CAST( - - 91 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-2746
SELECT CAST ( - - 91 AS INTEGER )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2747
SELECT ALL 16 / ( + + CAST( NULL AS SIGNED ) ) * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL 16 / ( + + CAST ( NULL AS INTEGER ) ) * + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT DISTINCT COUNT( * ) * - 96 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT COUNT ( * ) * - 96 AS col1
----
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2749
SELECT ALL - CAST( NULL AS DECIMAL ) * + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL - CAST ( NULL AS REAL ) * + + 51
----
NULL

query I rowsort
SELECT + 63 * 83
----
5229

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT - 39 * + COUNT( * ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2751
SELECT - 39 * + COUNT ( * ) AS col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2752
SELECT CAST( + + 37 AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-2752
SELECT CAST ( + + 37 AS INTEGER )
----
37

query I rowsort
SELECT ALL 62 * 41
----
2542

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT ALL + MAX( DISTINCT + ( + - 65 ) ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL + MAX ( DISTINCT + ( + - 65 ) ) AS col0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2755
SELECT + CAST( + 11 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-2755
SELECT + CAST ( + 11 AS INTEGER )
----
11

query I rowsort
SELECT + 3 * - 80
----
-240

query I rowsort
SELECT DISTINCT + 74 * + 58
----
4292

query I rowsort
SELECT ALL + ( - 1 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2759
SELECT DISTINCT + - 83 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT + - 83 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 94 + 91
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT 67 + CASE + SUM( - ( - - 52 ) ) WHEN 78 - - - ( 16 ) THEN 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT 67 + CASE + SUM ( - ( - - 52 ) ) WHEN 78 - - - ( 16 ) THEN 94 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2762
SELECT ALL + + 16 + - NULLIF ( 93, ( + + 6 ) ) DIV 44
----
14

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL + + 16 + - NULLIF ( 93, ( + + 6 ) ) / 44
----
14

query I rowsort
SELECT + 21 + - 35 - 52 * + 9 * 4 AS col1
----
-1886

query I rowsort
SELECT - 30 + 39
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT ALL NULLIF ( - - 97, + COUNT( * ) )
----
97

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL NULLIF ( - - 97, + COUNT ( * ) )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL + - 41 + 85 * + 54 * 0 + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL + - 41 + 85 * + 54 * 0 + COUNT ( * )
----
-40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2767
SELECT - NULLIF ( 77, - - CAST( NULL AS SIGNED ) + + - 30 ) + - + 28 DIV CASE - - 35 WHEN - 49 THEN NULL ELSE + 72 END
----
-77

skipif mysql # not compatible
query I rowsort label-2767
SELECT - NULLIF ( 77, - - CAST ( NULL AS INTEGER ) + + - 30 ) + - + 28 / CASE - - 35 WHEN - 49 THEN NULL ELSE + 72 END
----
-77

query I rowsort
SELECT ALL + - 24 * + 75 * - 5 * 59 AS col1
----
531000

query I rowsort
SELECT - ( 7 ) col1
----
-7

query I rowsort
SELECT 36 + + 1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT ALL - 20 + - + 98 - SUM( ALL + + 99 )
----
-217

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL - 20 + - + 98 - SUM ( ALL + + 99 )
----
-217

query II rowsort
SELECT ALL + 23 AS col2, - 10 col1
----
23
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2773
SELECT ALL CAST( 49 AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL CAST ( 49 AS INTEGER )
----
49

query I rowsort
SELECT ALL + 40 + + 31 col1
----
71

query I rowsort
SELECT + 80 * 38
----
3040

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2776
SELECT ALL + 29 DIV - MAX( 24 ), + 0 * - 4 col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-2776
SELECT ALL + 29 / - MAX ( 24 ), + 0 * - 4 col2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT COUNT( * ) + + - 45 + SUM( ALL 72 )
----
28

skipif mysql # not compatible
query I rowsort label-2777
SELECT COUNT ( * ) + + - 45 + SUM ( ALL 72 )
----
28

query I rowsort
SELECT + 94 + 49
----
143

query I rowsort
SELECT DISTINCT - - 11 - + 86
----
-75

query II rowsort
SELECT ALL 8, + 97 AS col0
----
8
97

query II rowsort
SELECT 71 AS col1, - CASE - 39 WHEN - + 7 + - - 10 THEN + - 26 / 5 END * 11 + + 88 + - 52 + 8 AS col2
----
71
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT ALL COUNT( * ) * - 34
----
-34

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL COUNT ( * ) * - 34
----
-34

query I rowsort
SELECT DISTINCT + 50 - + 42 col0
----
8

query II rowsort
SELECT ALL 9, 62 AS col0
----
9
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT DISTINCT CASE + 45 WHEN + + 1 * - - COUNT( * ) THEN NULL ELSE - 29 * COUNT( * ) END * - 90 AS col1
----
2610

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT CASE + 45 WHEN + + 1 * - - COUNT ( * ) THEN NULL ELSE - 29 * COUNT ( * ) END * - 90 AS col1
----
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT COUNT( * ) + 87 + - 20 * - - 25
----
-412

skipif mysql # not compatible
query I rowsort label-2786
SELECT COUNT ( * ) + 87 + - 20 * - - 25
----
-412

onlyif mysql # aggregate syntax: 
query II rowsort label-2787
SELECT ALL + COUNT( * ) - 11 * + + MAX( 59 ) AS col0, 34
----
-648
34

skipif mysql # not compatible
query II rowsort label-2787
SELECT ALL + COUNT ( * ) - 11 * + + MAX ( 59 ) AS col0, 34
----
-648
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2788
SELECT CAST( NULL AS SIGNED ) * - - MAX( + 80 ) * - 4 + - 15 + 19 / 3 * 39 / 34 * CASE + 62 WHEN + - 36 * + + 42 - COUNT( * ) / + 67 THEN - - 48 END * 42 + 16 - 7 - - - 38 * + ( + 32 ) / + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2788
SELECT CAST ( NULL AS INTEGER ) * - - MAX ( + 80 ) * - 4 + - 15 + 19 / 3 * 39 / 34 * CASE + 62 WHEN + - 36 * + + 42 - COUNT ( * ) / + 67 THEN - - 48 END * 42 + 16 - 7 - - - 38 * + ( + 32 ) / + 15 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2789
SELECT 30 - - ( + 97 ) DIV MAX( - 50 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-2789
SELECT 30 - - ( + 97 ) / MAX ( - 50 ) AS col2
----
29

query II rowsort
SELECT DISTINCT - 66 AS col2, 62 * - 26 + + 28 AS col2
----
-66
-1584

onlyif mysql # DIV for integer division: 
query II rowsort label-2791
SELECT 69 DIV + 63 + - + 26 * ( - ( - 11 ) ), 28 AS col0
----
-285
28

skipif mysql # not compatible
query II rowsort label-2791
SELECT 69 / + 63 + - + 26 * ( - ( - 11 ) ), 28 AS col0
----
-285
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2792
SELECT 20 + CASE - + 97 WHEN - 97 THEN + - 71 + + COALESCE ( + 22, - - 42, - + SUM( DISTINCT 98 ) + + CAST( NULL AS SIGNED ) * - - 79 + - 74 ) DIV 62 ELSE - - 95 * - 93 END - + + COUNT( * ) - - 48 + + + CAST( 92 AS SIGNED ) * COUNT( * ) + 93 * + MIN( - 12 ), + 88 AS col1
----
-1028
88

skipif mysql # not compatible
query II rowsort label-2792
SELECT 20 + CASE - + 97 WHEN - 97 THEN + - 71 + + COALESCE ( + 22, - - 42, - + SUM ( DISTINCT 98 ) + + CAST ( NULL AS INTEGER ) * - - 79 + - 74 ) / 62 ELSE - - 95 * - 93 END - + + COUNT ( * ) - - 48 + + + CAST ( 92 AS INTEGER ) * COUNT ( * ) + 93 * + MIN ( - 12 ), + 88 AS col1
----
-1028
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2793
SELECT ALL CAST( NULL AS SIGNED ) / ( + - 4 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL CAST ( NULL AS INTEGER ) / ( + - 4 ) AS col2
----
NULL

query II rowsort
SELECT ALL - 65, 29 AS col0
----
-65
29

query I rowsort
SELECT ALL 9 * - + 44 AS col2
----
-396

query I rowsort
SELECT ALL 67 * + 1
----
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2797
SELECT CAST( NULL AS DECIMAL ) + + 6 + - 29 * - COUNT( * ) + + + 30 + COUNT( * ) + COALESCE ( + ( - + 74 ), - CAST( + 42 AS DECIMAL ) / + - 99, + - 68 ) + 55 - - + COALESCE ( + - 88, - - 92, + 75 + 86 + + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2797
SELECT CAST ( NULL AS REAL ) + + 6 + - 29 * - COUNT ( * ) + + + 30 + COUNT ( * ) + COALESCE ( + ( - + 74 ), - CAST ( + 42 AS REAL ) / + - 99, + - 68 ) + 55 - - + COALESCE ( + - 88, - - 92, + 75 + 86 + + 93 )
----
NULL

query I rowsort
SELECT 33 + + NULLIF ( + + 44, 35 ) AS col1
----
77

query I rowsort
SELECT ALL COALESCE ( - - 25, - 22 ) * + 44
----
1100

query II rowsort
SELECT + 84, - 41 AS col1
----
84
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT - CAST( - 2 AS SIGNED ) + + + 54 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-2801
SELECT - CAST ( - 2 AS INTEGER ) + + + 54 AS col0
----
56

onlyif mysql # DIV for integer division: 
query II rowsort label-2802
SELECT ALL 31 + - 11 * + - ( + - 76 ) * - COALESCE ( - 22, 46 DIV + 3, - + 93 * + + 28 + + - 93 ) col2, 98 AS col2
----
-18361
98

skipif mysql # not compatible
query II rowsort label-2802
SELECT ALL 31 + - 11 * + - ( + - 76 ) * - COALESCE ( - 22, 46 / + 3, - + 93 * + + 28 + + - 93 ) col2, 98 AS col2
----
-18361
98

query I rowsort
SELECT DISTINCT - 68 + - 40
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT + ( + CASE 58 WHEN - + ( + + 75 ) THEN + + 29 WHEN 18 / - 76 + - - 81 * + 40 * - 69 * + + 76 + + CASE - 98 WHEN ( 77 ) * + 16 + COALESCE ( - 91, + 22 * + 52 ) THEN COUNT( * ) / 12 END THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2804
SELECT + ( + CASE 58 WHEN - + ( + + 75 ) THEN + + 29 WHEN 18 / - 76 + - - 81 * + 40 * - 69 * + + 76 + + CASE - 98 WHEN ( 77 ) * + 16 + COALESCE ( - 91, + 22 * + 52 ) THEN COUNT ( * ) / 12 END THEN NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT COUNT( - 90 ) + 92 + + CASE - - 92 WHEN + - 63 * 38 + + 14 THEN - 75 + - MIN( DISTINCT + + 86 ) * - 80 * + COUNT( * ) / - 50 / 27 WHEN - 80 THEN NULL ELSE NULL END + + + COUNT( - 22 ) + + + 12 / + - COUNT( * ) * 50 * - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT COUNT ( - 90 ) + 92 + + CASE - - 92 WHEN + - 63 * 38 + + 14 THEN - 75 + - MIN ( DISTINCT + + 86 ) * - 80 * + COUNT ( * ) / - 50 / 27 WHEN - 80 THEN NULL ELSE NULL END + + + COUNT ( - 22 ) + + + 12 / + - COUNT ( * ) * 50 * - 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT ALL - 35 + - ( + COALESCE ( - - 68, - COUNT( * ) ) )
----
-103

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL - 35 + - ( + COALESCE ( - - 68, - COUNT ( * ) ) )
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-2807
SELECT - COALESCE ( 38, + 57, - 42 ) AS col1, + COUNT( * ) * 36 + 3
----
-38
39

skipif mysql # not compatible
query II rowsort label-2807
SELECT - COALESCE ( 38, + 57, - 42 ) AS col1, + COUNT ( * ) * 36 + 3
----
-38
39

onlyif mysql # DIV for integer division: 
query I rowsort label-2808
SELECT ALL - 24 + - 5 DIV 89 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL - 24 + - 5 / 89 AS col0
----
-24

query I rowsort
SELECT + 42 * - + 92
----
-3864

query I rowsort
SELECT ALL - 74 + + 8 AS col2
----
-66

query I rowsort
SELECT DISTINCT + + 38 * - 71 * + - 98 + - CASE - 35 WHEN - ( - 95 ) THEN + 2 WHEN + ( - 46 ) THEN NULL END + + - 48 + 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2812
SELECT - CAST( NULL AS SIGNED ) / 72 + + + MIN( ALL 82 ) * + 2 * + - NULLIF ( - + 76, 83 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2812
SELECT - CAST ( NULL AS INTEGER ) / 72 + + + MIN ( ALL 82 ) * + 2 * + - NULLIF ( - + 76, 83 ) AS col2
----
NULL

query I rowsort
SELECT - 78 * - - 29 + - + 82 * + 17 - + 61
----
-3717

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2814
SELECT ALL + COUNT( + - 88 ) * - 82 DIV + 48 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL + COUNT ( + - 88 ) * - 82 / + 48 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT ALL - - 9 - - + MIN( + 52 ) * - MIN( + 49 )
----
-2539

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL - - 9 - - + MIN ( + 52 ) * - MIN ( + 49 )
----
-2539

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT ALL SUM( ALL + 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL SUM ( ALL + 11 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT DISTINCT - MAX( ALL 40 ) - - 33 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-2817
SELECT DISTINCT - MAX ( ALL 40 ) - - 33 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-2818
SELECT DISTINCT - 9 * - COUNT( * ), - 49 + 4 + - + 95 + + - 97 * 3 + - + 38 * + 66 AS col2
----
9
-2939

skipif mysql # not compatible
query II rowsort label-2818
SELECT DISTINCT - 9 * - COUNT ( * ), - 49 + 4 + - + 95 + + - 97 * 3 + - + 38 * + 66 AS col2
----
9
-2939

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT DISTINCT SUM( + 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-2819
SELECT DISTINCT SUM ( + 20 ) AS col2
----
20

query I rowsort
SELECT 14 * - - 87 AS col0
----
1218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2821
SELECT DISTINCT - 73 DIV - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT - 73 / - COUNT ( * )
----
73

query I rowsort
SELECT 98 + 23 + 58
----
179

query I rowsort
SELECT 40 + - + 11 * + + 70 * + 48 AS col2
----
-36920

query I rowsort
SELECT 14 * - 9
----
-126

query I rowsort
SELECT NULLIF ( 71, - 15 ) + + 54 + - 63 * 15 AS col0
----
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT NULLIF ( COUNT( * ), - 22 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2826
SELECT NULLIF ( COUNT ( * ), - 22 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT - MAX( 85 ) * + 10 - - 22 AS col2
----
-828

skipif mysql # not compatible
query I rowsort label-2827
SELECT - MAX ( 85 ) * + 10 - - 22 AS col2
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT ALL + ( + - COUNT( + 2 ) ) * + 84 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL + ( + - COUNT ( + 2 ) ) * + 84 AS col0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2829
SELECT DISTINCT - 61 * 34 + + CAST( 42 AS SIGNED )
----
-2032

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT - 61 * 34 + + CAST ( 42 AS INTEGER )
----
-2032

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL 28 * + + COUNT( + 87 ) + 87 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL 28 * + + COUNT ( + 87 ) + 87 AS col2
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2831
SELECT DISTINCT 66 * 25 + MIN( 10 ) + MIN( ALL 51 ) + + 22 * - ( + 13 ) + + 33 * + + 27 - + CAST( NULL AS SIGNED ) + 93 * + - 29 * + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT 66 * 25 + MIN ( 10 ) + MIN ( ALL 51 ) + + 22 * - ( + 13 ) + + 33 * + + 27 - + CAST ( NULL AS INTEGER ) + 93 * + - 29 * + 90 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT DISTINCT - ( - ( + 0 ) ) * + MIN( ALL - 28 ) * + MIN( 88 ) + - + 48 + - + 16 * + 29 + + 43
----
-469

skipif mysql # not compatible
query I rowsort label-2832
SELECT DISTINCT - ( - ( + 0 ) ) * + MIN ( ALL - 28 ) * + MIN ( 88 ) + - + 48 + - + 16 * + 29 + + 43
----
-469

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT + MIN( ALL - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-2833
SELECT + MIN ( ALL - 16 )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2834
SELECT ALL 24 * - ( - 94 ) * 35 + - - 5 DIV - 41 * - + 6 - - COUNT( * )
----
78961

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL 24 * - ( - 94 ) * 35 + - - 5 / - 41 * - + 6 - - COUNT ( * )
----
78961

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT - COALESCE ( - - 2, - ( - + COALESCE ( + CASE + 14 WHEN - 49 THEN NULL WHEN ( + - 93 ) THEN 83 - + - COALESCE ( CASE + 95 WHEN 64 THEN + 17 WHEN - 21 * 47 * + 6 THEN NULL END, COALESCE ( + 34, 56 ) ) END, - 25 ) ) + + + COUNT( * ), + 14 )
----
-2

skipif mysql # not compatible
query I rowsort label-2835
SELECT - COALESCE ( - - 2, - ( - + COALESCE ( + CASE + 14 WHEN - 49 THEN NULL WHEN ( + - 93 ) THEN 83 - + - COALESCE ( CASE + 95 WHEN 64 THEN + 17 WHEN - 21 * 47 * + 6 THEN NULL END, COALESCE ( + 34, 56 ) ) END, - 25 ) ) + + + COUNT ( * ), + 14 )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2836
SELECT ALL 49 * - + 9 + 11, - MIN( ALL - 50 ) AS col2
----
-430
50

skipif mysql # not compatible
query II rowsort label-2836
SELECT ALL 49 * - + 9 + 11, - MIN ( ALL - 50 ) AS col2
----
-430
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2837
SELECT CAST( NULL AS SIGNED ) * 33 + + 56 * 92 - + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-2837
SELECT CAST ( NULL AS INTEGER ) * 33 + + 56 * 92 - + 5
----
NULL

query II rowsort
SELECT + 69 * + 10 AS col1, - 87 AS col2
----
690
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT + MAX( - + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-2839
SELECT + MAX ( - + 0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2840
SELECT ALL - CAST( ( - 72 ) AS SIGNED ) / - COALESCE ( + 97, + 82 + + + COUNT( * ), - + 19 + + 80, + 6 ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL - CAST ( ( - 72 ) AS INTEGER ) / - COALESCE ( + 97, + 82 + + + COUNT ( * ), - + 19 + + 80, + 6 ) * - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 35 * - 11 AS col0, - 61 + + 22
----
-385
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT DISTINCT - 92 * + + COUNT( * ) * + ( - MIN( + + 79 ) ) - ( - + 50 ) - - - 7
----
7311

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT - 92 * + + COUNT ( * ) * + ( - MIN ( + + 79 ) ) - ( - + 50 ) - - - 7
----
7311

onlyif mysql # DIV for integer division: 
query II rowsort label-2843
SELECT + 53 * - 44 - - - 88 + - - 64 DIV + + 67, 11 AS col1
----
-2420
11

skipif mysql # not compatible
query II rowsort label-2843
SELECT + 53 * - 44 - - - 88 + - - 64 / + + 67, 11 AS col1
----
-2420
11

query I rowsort
SELECT + 92 + - + 6 AS col0
----
86

query I rowsort
SELECT ALL + 12 * - + 14 - + ( + - 73 ) + + 74 AS col2
----
-21

query II rowsort
SELECT + - 32 * + + COALESCE ( - 8, - 78 ) + + + 54, 83 AS col2
----
310
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT - COALESCE ( COUNT( * ), - + 97, - 96 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2847
SELECT - COALESCE ( COUNT ( * ), - + 97, - 96 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2848
SELECT + SUM( DISTINCT ( 79 ) ) * + 29 + + + 21 AS col2, COUNT( 21 )
----
2312
1

skipif mysql # not compatible
query II rowsort label-2848
SELECT + SUM ( DISTINCT ( 79 ) ) * + 29 + + + 21 AS col2, COUNT ( 21 )
----
2312
1

query I rowsort
SELECT + 70 + + + 74
----
144

query II rowsort
SELECT DISTINCT 57 AS col2, 73 AS col0
----
57
73

query I rowsort
SELECT + 75 * + + 33 AS col0
----
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT ALL SUM( - 80 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL SUM ( - 80 ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT DISTINCT - 78 * - ( - COUNT( * ) ) * + 43
----
-3354

skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT - 78 * - ( - COUNT ( * ) ) * + 43
----
-3354

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT - 16 + - + MIN( + + 14 )
----
-30

skipif mysql # not compatible
query I rowsort label-2854
SELECT - 16 + - + MIN ( + + 14 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT DISTINCT COUNT( ALL 90 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2855
SELECT DISTINCT COUNT ( ALL 90 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2856
SELECT - CAST( + SUM( DISTINCT - 31 ) AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-2856
SELECT - CAST ( + SUM ( DISTINCT - 31 ) AS INTEGER )
----
31

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2857
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + CAST( ( - - 11 ) AS SIGNED ) AS col0, + 31 AS col2
----
NULL
31

skipif mysql # not compatible
query II rowsort label-2857
SELECT DISTINCT - CAST ( NULL AS REAL ) + CAST ( ( - - 11 ) AS INTEGER ) AS col0, + 31 AS col2
----
NULL
31

query I rowsort
SELECT - 80 * 34
----
-2720

query I rowsort
SELECT ALL ( 35 ) col2
----
35

query I rowsort
SELECT ALL ( + 39 )
----
39

query I rowsort
SELECT ALL + 61 + 85 + + + 97 * + + 13 - + 94 AS col0
----
1313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2862
SELECT DISTINCT + COUNT( * ) AS col0, - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2862
SELECT DISTINCT + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER )
----
1
NULL

query I rowsort
SELECT DISTINCT + - NULLIF ( 42, - + 14 * - 90 )
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2864
SELECT ALL 9 DIV - 64 + + ( - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL 9 / - 64 + + ( - COUNT ( * ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2865
SELECT + - CAST( + 22 AS SIGNED ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-2865
SELECT + - CAST ( + 22 AS INTEGER ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-2866
SELECT ALL + + 57 AS col2, MAX( ALL + 90 ) + + 10
----
57
100

skipif mysql # not compatible
query II rowsort label-2866
SELECT ALL + + 57 AS col2, MAX ( ALL + 90 ) + + 10
----
57
100

query I rowsort
SELECT DISTINCT - + 97 * 52
----
-5044

query I rowsort
SELECT ALL + - ( - 25 ) AS col0
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2869
SELECT + 26 * 49 DIV 30 + - - 68 * - 64 + + + MAX( - 97 ) + 47 DIV - + 25 AS col0
----
-4408

skipif mysql # not compatible
query I rowsort label-2869
SELECT + 26 * 49 / 30 + - - 68 * - 64 + + + MAX ( - 97 ) + 47 / - + 25 AS col0
----
-4408

query II rowsort
SELECT - 24 + + 20 + + - 5 AS col1, + 4 + 52 col0
----
-9
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT ALL + + MAX( + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL + + MAX ( + 36 )
----
36

query I rowsort
SELECT DISTINCT - + 5 * 71
----
-355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2873
SELECT + MIN( - CAST( NULL AS SIGNED ) ) * + CASE 43 WHEN - - 64 THEN + - 51 * 34 - - 87 + + - ( 18 ) * - COUNT( * ) * + + CAST( NULL AS SIGNED ) + - - 7 - - + 11 * + 17 * - 35 + 19 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) * + CASE 43 WHEN - - 64 THEN + - 51 * 34 - - 87 + + - ( 18 ) * - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + - - 7 - - + 11 * + 17 * - 35 + 19 END AS col1
----
NULL

query II rowsort
SELECT ALL + 1, ( - - 97 ) + + 32 AS col2
----
1
129

query II rowsort
SELECT + 48 col0, + 55
----
48
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT ALL + ( + COALESCE ( 34, + - 79 + - COUNT( * ) ) )
----
34

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL + ( + COALESCE ( 34, + - 79 + - COUNT ( * ) ) )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2877
SELECT DISTINCT + CAST( + + 23 AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT + CAST ( + + 23 AS INTEGER )
----
23

query I rowsort
SELECT + - 95 * - 1 * - 25 * + - ( - - COALESCE ( - 70, COALESCE ( + + 93, - + 60 ) + - 3, - 41 ) ) * + - 5 + + 91 + + + ( - 15 )
----
831326

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT + + COUNT( * ) * 90 * 30
----
2700

skipif mysql # not compatible
query I rowsort label-2879
SELECT + + COUNT ( * ) * 90 * 30
----
2700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2880
SELECT + CAST( + AVG ( 0 ) AS SIGNED ) * 47 * - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2880
SELECT + CAST ( + AVG ( 0 ) AS INTEGER ) * 47 * - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT - ( SUM( DISTINCT 49 ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-2881
SELECT - ( SUM ( DISTINCT 49 ) ) AS col0
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2882
SELECT - CASE 28 WHEN - CASE NULLIF ( - 50, + + CASE + 25 WHEN - + 99 * + 75 + + 5 THEN - 51 * NULLIF ( + COUNT( * ), COUNT( * ) ) + + - 71 + - - 39 * COUNT( * ) + + 96 ELSE 77 END + - 20 + - + 59 - - + 62 + + 25 ) WHEN - 82 * + 6 THEN + + 72 ELSE + - 73 END * + 42 THEN NULL ELSE 59 END DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-2882
SELECT - CASE 28 WHEN - CASE NULLIF ( - 50, + + CASE + 25 WHEN - + 99 * + 75 + + 5 THEN - 51 * NULLIF ( + COUNT ( * ), COUNT ( * ) ) + + - 71 + - - 39 * COUNT ( * ) + + 96 ELSE 77 END + - 20 + - + 59 - - + 62 + + 25 ) WHEN - 82 * + 6 THEN + + 72 ELSE + - 73 END * + 42 THEN NULL ELSE 59 END / - 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT ALL 46 * + COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL 46 * + COUNT ( * ) AS col2
----
46

query I rowsort
SELECT + 52 * - 87
----
-4524

query II rowsort
SELECT DISTINCT 63 + - 32, 86 col1
----
31
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT SUM( + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-2886
SELECT SUM ( + 86 )
----
86

query I rowsort
SELECT ALL NULLIF ( + 47, - ( - 91 ) ) + 66 * + - 32 + 57 AS col1
----
-2008

onlyif mysql # aggregate syntax: 
query II rowsort label-2888
SELECT ALL 98 + + - 80 AS col0, - 35 * CASE - 75 WHEN + AVG ( - 61 ) THEN - COUNT( * ) END AS col0
----
18
NULL

skipif mysql # not compatible
query II rowsort label-2888
SELECT ALL 98 + + - 80 AS col0, - 35 * CASE - 75 WHEN + AVG ( - 61 ) THEN - COUNT ( * ) END AS col0
----
18
NULL

query I rowsort
SELECT ALL 10 * 45 AS col0
----
450

query I rowsort
SELECT DISTINCT 33 + + 44 * - - 26
----
1177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2891
SELECT ALL CASE COUNT( * ) WHEN - 77 + 55 + - - 75 THEN - - 5 * MIN( DISTINCT - CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL CASE COUNT ( * ) WHEN - 77 + 55 + - - 75 THEN - - 5 * MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT DISTINCT 51 + + - 29
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT 43 * - + COALESCE ( + 27, 46 + SUM( 84 ) )
----
-1161

skipif mysql # not compatible
query I rowsort label-2893
SELECT 43 * - + COALESCE ( + 27, 46 + SUM ( 84 ) )
----
-1161

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT ALL 62 + MIN( DISTINCT 86 )
----
148

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL 62 + MIN ( DISTINCT 86 )
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2895
SELECT ALL - 29 + + MIN( - + 66 ) + - - CAST( NULL AS SIGNED ) + - 92 * - - COUNT( DISTINCT 54 ) * + + 1 * - 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL - 29 + + MIN ( - + 66 ) + - - CAST ( NULL AS INTEGER ) + - 92 * - - COUNT ( DISTINCT 54 ) * + + 1 * - 56 AS col2
----
NULL

query I rowsort
SELECT 68 - - - 47
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2897
SELECT ALL 32 * 41 DIV - 9
----
-145

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL 32 * 41 / - 9
----
-145

query I rowsort
SELECT 74 + - 4 + - - 77 AS col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT ALL 50 + - COUNT( * ) + - - 67 + + + COUNT( * ) * + 26 AS col2
----
142

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL 50 + - COUNT ( * ) + - - 67 + + + COUNT ( * ) * + 26 AS col2
----
142

query I rowsort
SELECT ALL - 12 - - - 79 AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2901
SELECT - 72 * - CAST( NULL AS SIGNED ) + + 95 - - - 34 - + NULLIF ( + MIN( 59 ), - 57 + - MAX( + CAST( NULL AS SIGNED ) ) * 61 / COUNT( * ) ) * - 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2901
SELECT - 72 * - CAST ( NULL AS INTEGER ) + + 95 - - - 34 - + NULLIF ( + MIN ( 59 ), - 57 + - MAX ( + CAST ( NULL AS INTEGER ) ) * 61 / COUNT ( * ) ) * - 44 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL NULLIF ( + 47, - COUNT( * ) ) * - - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL NULLIF ( + 47, - COUNT ( * ) ) * - - COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT - SUM( ALL + 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-2903
SELECT - SUM ( ALL + 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT ALL - COUNT( * ) * - 95
----
95

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL - COUNT ( * ) * - 95
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2905
SELECT DISTINCT CASE 60 WHEN + MAX( ALL + 96 ) THEN NULL WHEN - 53 THEN - CASE COUNT( * ) WHEN COUNT( * ) THEN - - COALESCE ( - 51, - - 87 * - 40 * + 26, + 71 ) WHEN + 92 * - - 40 - - - CAST( NULL AS SIGNED ) * + COUNT( * ) THEN 13 ELSE + 22 END / + 77 ELSE NULL END - + - 12 * + 14 * 81 / 18 / - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2905
SELECT DISTINCT CASE 60 WHEN + MAX ( ALL + 96 ) THEN NULL WHEN - 53 THEN - CASE COUNT ( * ) WHEN COUNT ( * ) THEN - - COALESCE ( - 51, - - 87 * - 40 * + 26, + 71 ) WHEN + 92 * - - 40 - - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) THEN 13 ELSE + 22 END / + 77 ELSE NULL END - + - 12 * + 14 * 81 / 18 / - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2906
SELECT ALL + 56 DIV + 68 + + 75
----
75

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL + 56 / + 68 + + 75
----
75

query I rowsort
SELECT + NULLIF ( + 34, ( + 98 ) )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2908
SELECT ALL + + 15 DIV COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL + + 15 / COUNT ( * ) AS col2
----
15

query I rowsort
SELECT 80 * + 94 * - 84 col0
----
-631680

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT ALL + 96 / - 95 * - + 40 * + CASE + MIN( ALL 92 ) WHEN - 32 * - COALESCE ( - 14, + + MIN( - - 20 ) ) THEN NULL WHEN - 78 THEN + + 75 WHEN 7 + + 81 + - 34 / + - MAX( DISTINCT 84 ) * + + 91 + + - 74 THEN NULL END * 27 + - + COUNT( * ) + - MIN( + + 87 ) + + + ( - 58 ) * + 45 * + 51 * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL + 96 / - 95 * - + 40 * + CASE + MIN ( ALL 92 ) WHEN - 32 * - COALESCE ( - 14, + + MIN ( - - 20 ) ) THEN NULL WHEN - 78 THEN + + 75 WHEN 7 + + 81 + - 34 / + - MAX ( DISTINCT 84 ) * + + 91 + + - 74 THEN NULL END * 27 + - + COUNT ( * ) + - MIN ( + + 87 ) + + + ( - 58 ) * + 45 * + 51 * - - COUNT ( * )
----
NULL

query I rowsort
SELECT - 94 * - - 58 - - 66 * - 61 * + - 6 + + - 15 col1
----
18689

query I rowsort
SELECT DISTINCT - 4 * + - ( + ( 84 ) ) AS col2
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT DISTINCT - SUM( DISTINCT + + 34 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-2913
SELECT DISTINCT - SUM ( DISTINCT + + 34 ) AS col1
----
-34

query I rowsort
SELECT ALL - COALESCE ( + + 98, - + 5 ) AS col0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2915
SELECT ALL - + COUNT( * ) * CAST( - + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL - + COUNT ( * ) * CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2916
SELECT NULLIF ( - + 30, + - 39 + - 4 + 21 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT NULLIF ( - + 30, + - 39 + - 4 + 21 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2917
SELECT ALL - CASE 40 WHEN - 41 + - 87 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN 84 / + 1 THEN - 96 END * + + 17 + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL - CASE 40 WHEN - 41 + - 87 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN 84 / + 1 THEN - 96 END * + + 17 + 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT MAX( + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-2918
SELECT MAX ( + 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT + COALESCE ( + COUNT( * ), + 58 * 24 * COUNT( * ) * - - COUNT( DISTINCT - - 83 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2919
SELECT + COALESCE ( + COUNT ( * ), + 58 * 24 * COUNT ( * ) * - - COUNT ( DISTINCT - - 83 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT ALL - 11 + - 46 - COUNT( * ) * - - 66 AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL - 11 + - 46 - COUNT ( * ) * - - 66 AS col1
----
-123

query I rowsort
SELECT 98 + - - 86 - + 23 AS col0
----
161

query I rowsort
SELECT 5 * ( NULLIF ( - 20, + 79 - + + 35 ) ) - - 26 * + 75 + - - 60 AS col1
----
1910

query I rowsort
SELECT 8 + + 95 AS col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT ALL CASE + - 25 WHEN + + 75 * - - 59 - COUNT( * ) THEN NULL WHEN + 82 / - + 66 + - - COUNT( * ) + + 41 THEN NULL WHEN 86 + - - 69 THEN + - COUNT( * ) ELSE NULL END + COALESCE ( 59, + COUNT( - 54 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL CASE + - 25 WHEN + + 75 * - - 59 - COUNT ( * ) THEN NULL WHEN + 82 / - + 66 + - - COUNT ( * ) + + 41 THEN NULL WHEN 86 + - - 69 THEN + - COUNT ( * ) ELSE NULL END + COALESCE ( 59, + COUNT ( - 54 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2925
SELECT ALL ( - 28 ) DIV - - COALESCE ( + 47, - COUNT( * ) ) - SUM( DISTINCT + 13 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL ( - 28 ) / - - COALESCE ( + 47, - COUNT ( * ) ) - SUM ( DISTINCT + 13 ) AS col1
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2926
SELECT DISTINCT + 60 + - SUM( ALL + 86 ) DIV 16 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT + 60 + - SUM ( ALL + 86 ) / 16 AS col0
----
55

query II rowsort
SELECT ALL 16, 15 AS col1
----
16
15

query I rowsort
SELECT DISTINCT 51 * + 43 * + + 40 AS col1
----
87720

query II rowsort
SELECT 59 AS col2, - 72
----
59
-72

query I rowsort
SELECT DISTINCT 86 + 91
----
177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2931
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) * - NULLIF ( + 51, ( + - 63 ) ) * + ( ( + 98 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - NULLIF ( + 51, ( + - 63 ) ) * + ( ( + 98 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2932
SELECT COUNT( * ) DIV + 71 * - ( - 57 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2932
SELECT COUNT ( * ) / + 71 * - ( - 57 ) AS col2
----
0

query II rowsort
SELECT ( + 85 ) + - + 1 + + ( 74 ) AS col0, 52 col0
----
158
52

query I rowsort
SELECT ALL 50 - - 90 * + 99
----
8960

query I rowsort
SELECT ALL 9 - - 3
----
12

query I rowsort
SELECT 55 + + 65 + - 63 * 15 + - + 19
----
-844

query I rowsort
SELECT DISTINCT - CASE - - ( - 35 ) WHEN + + 45 THEN + 18 END * - 58 * + ( + ( + 12 ) ) / - 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT SUM( ALL 70 ) * SUM( + - NULLIF ( - 87, + - 79 ) ) * 25 - - COUNT( * ) + + 22 * COUNT( * ) AS col1
----
152273

skipif mysql # not compatible
query I rowsort label-2938
SELECT SUM ( ALL 70 ) * SUM ( + - NULLIF ( - 87, + - 79 ) ) * 25 - - COUNT ( * ) + + 22 * COUNT ( * ) AS col1
----
152273

query I rowsort
SELECT ALL - ( - 25 ) AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2940
SELECT - + CAST( CASE COUNT( * ) WHEN + ( + CAST( - 6 AS SIGNED ) ) + + ( 68 ) DIV 71 THEN CAST( NULL AS SIGNED ) + + 62 WHEN 23 THEN NULL WHEN - + COUNT( * ) * - ( + - 27 ) THEN NULL ELSE NULL END AS SIGNED ), 18 DIV 3 * - ( COUNT( * ) ) AS col2
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-2940
SELECT - + CAST ( CASE COUNT ( * ) WHEN + ( + CAST ( - 6 AS INTEGER ) ) + + ( 68 ) / 71 THEN CAST ( NULL AS INTEGER ) + + 62 WHEN 23 THEN NULL WHEN - + COUNT ( * ) * - ( + - 27 ) THEN NULL ELSE NULL END AS INTEGER ), 18 / 3 * - ( COUNT ( * ) ) AS col2
----
NULL
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2941
SELECT ALL - 8 - CAST( - + ( - + 6 ) AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL - 8 - CAST ( - + ( - + 6 ) AS INTEGER )
----
-14

query II rowsort
SELECT + 42, 89 * + - 86 AS col1
----
42
-7654

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT + - 1 / + 32 * + 55 + - 1 + - 87 * + CASE - MAX( ALL + 67 ) WHEN - 0 THEN + COUNT( * ) * + 97 END + - + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-2943
SELECT + - 1 / + 32 * + 55 + - 1 + - 87 * + CASE - MAX ( ALL + 67 ) WHEN - 0 THEN + COUNT ( * ) * + 97 END + - + 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT + MIN( + + ( - - ( - 80 ) ) )
----
-80

skipif mysql # not compatible
query I rowsort label-2944
SELECT + MIN ( + + ( - - ( - 80 ) ) )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT ALL - CASE + ( + + 74 ) WHEN + COUNT( DISTINCT 73 ) THEN - MAX( + - 32 ) * + - 68 * + + 9 * - 51 + - 45 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL - CASE + ( + + 74 ) WHEN + COUNT ( DISTINCT 73 ) THEN - MAX ( + - 32 ) * + - 68 * + + 9 * - 51 + - 45 END AS col2
----
NULL

query II rowsort
SELECT 51 * + 37 - + - 69 col2, + 61
----
1956
61

query II rowsort
SELECT + + 97 col2, - 21
----
97
-21

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2948
SELECT - - CAST( NULL AS DECIMAL ) * - 48 + CAST( NULL AS SIGNED ) + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2948
SELECT - - CAST ( NULL AS REAL ) * - 48 + CAST ( NULL AS INTEGER ) + 48
----
NULL

query I rowsort
SELECT 51 + - 53
----
-2

query I rowsort
SELECT ALL + - 95 + + + 82
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2951
SELECT 53 DIV - 4 + - 46 + - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-2951
SELECT 53 / - 4 + - 46 + - COUNT ( * )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2952
SELECT - CAST( NULL AS SIGNED ) + - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2952
SELECT - CAST ( NULL AS INTEGER ) + - 48 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2953
SELECT 10 * - 15 + 70 * CAST( 37 AS SIGNED ) * + 40 AS col2
----
103450

skipif mysql # not compatible
query I rowsort label-2953
SELECT 10 * - 15 + 70 * CAST ( 37 AS INTEGER ) * + 40 AS col2
----
103450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2954
SELECT ALL - 73 + - - COUNT( * ) + + COUNT( * ) * CAST( + + MIN( ALL ( 51 ) ) AS SIGNED ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL - 73 + - - COUNT ( * ) + + COUNT ( * ) * CAST ( + + MIN ( ALL ( 51 ) ) AS INTEGER ) AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2955
SELECT + NULLIF ( - + CAST( + COUNT( * ) AS SIGNED ), - 65 ), + 90 AS col0
----
-1
90

skipif mysql # not compatible
query II rowsort label-2955
SELECT + NULLIF ( - + CAST ( + COUNT ( * ) AS INTEGER ), - 65 ), + 90 AS col0
----
-1
90

query II rowsort
SELECT + 50 AS col2, COALESCE ( + 20, 27 )
----
50
20

query I rowsort
SELECT - 81 * + 55
----
-4455

query I rowsort
SELECT ALL + ( + - 62 ) + ( + 57 )
----
-5

query II rowsort
SELECT ALL NULLIF ( - 32, 3 + 4 + - ( - 63 ) ) AS col1, 51 * - - NULLIF ( + 95, - - 87 ) AS col2
----
-32
4845

query I rowsort
SELECT ALL - 74 + + + 6 col1
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2961
SELECT - 15, 76 / + CAST( NULL AS SIGNED ) + - 14 / + 23 AS col0
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-2961
SELECT - 15, 76 / + CAST ( NULL AS INTEGER ) + - 14 / + 23 AS col0
----
-15
NULL

query I rowsort
SELECT - 45 - - + 14 AS col2
----
-31

query I rowsort
SELECT DISTINCT + 29 - 3
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT + 45 + - ( - COUNT( * ) )
----
46

skipif mysql # not compatible
query I rowsort label-2964
SELECT + 45 + - ( - COUNT ( * ) )
----
46

query I rowsort
SELECT ALL + 11 - + 84
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT - 91 - + 18 + - COUNT( * ) * + + 74 * 18 AS col2
----
-1441

skipif mysql # not compatible
query I rowsort label-2966
SELECT - 91 - + 18 + - COUNT ( * ) * + + 74 * 18 AS col2
----
-1441

query I rowsort
SELECT - ( - 78 ) - - 58 - + 50 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT - COUNT( * ) + - 0 col0
----
-1

skipif mysql # not compatible
query I rowsort label-2968
SELECT - COUNT ( * ) + - 0 col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2969
SELECT + 90 DIV - 44
----
-2

skipif mysql # not compatible
query I rowsort label-2969
SELECT + 90 / - 44
----
-2

query I rowsort
SELECT - 29 * 20 AS col1
----
-580

query I rowsort
SELECT + + ( - 60 ) + - 73 * 58 * 33
----
-139782

query I rowsort
SELECT DISTINCT + 29 * - 52 * + + 38 - 55
----
-57359

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT - - MAX( + ( - - 98 ) ) * + 65 + + + 16
----
6386

skipif mysql # not compatible
query I rowsort label-2973
SELECT - - MAX ( + ( - - 98 ) ) * + 65 + + + 16
----
6386

query I rowsort
SELECT + - 59 + - + 98
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT ALL - COUNT( ALL + 53 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL - COUNT ( ALL + 53 ) col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2976
SELECT + + 85 / + 13 - NULLIF ( CAST( NULL AS SIGNED ), + 76 ) + + - 32 / + + 88 * + 23 + COALESCE ( - + COUNT( * ), 40, 59 * - - 18 + - CAST( + - COUNT( * ) AS DECIMAL ) * 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2976
SELECT + + 85 / + 13 - NULLIF ( CAST ( NULL AS INTEGER ), + 76 ) + + - 32 / + + 88 * + 23 + COALESCE ( - + COUNT ( * ), 40, 59 * - - 18 + - CAST ( + - COUNT ( * ) AS REAL ) * 79 )
----
NULL

query II rowsort
SELECT - 5 AS col0, 1 col0
----
-5
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2978
SELECT + 55 col0, COUNT( * ) * ( + 50 ) + - 55 * 44 * 80 AS col1
----
55
-193550

skipif mysql # not compatible
query II rowsort label-2978
SELECT + 55 col0, COUNT ( * ) * ( + 50 ) + - 55 * 44 * 80 AS col1
----
55
-193550

query I rowsort
SELECT ALL + - 36 col2
----
-36

query I rowsort
SELECT + - NULLIF ( 87, - 18 / 50 + - ( - 74 ) ) AS col2
----
-87

query II rowsort
SELECT + 40 AS col1, 74
----
40
74

query I rowsort
SELECT + + 83 * + - 61 + 29 AS col0
----
-5034

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT - + 38 * - COUNT( * ) * 9 * - 97 - + 12
----
-33186

skipif mysql # not compatible
query I rowsort label-2983
SELECT - + 38 * - COUNT ( * ) * 9 * - 97 - + 12
----
-33186

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT ALL 75 * COALESCE ( + + 58, - 45, - - MAX( 74 ) )
----
4350

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL 75 * COALESCE ( + + 58, - 45, - - MAX ( 74 ) )
----
4350

query I rowsort
SELECT + 81 - 36 AS col2
----
45

query I rowsort
SELECT + ( + 98 ) AS col0
----
98

query II rowsort
SELECT CASE 64 WHEN ( + - 20 ) THEN - 13 END AS col2, 59
----
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT + 63 * + + 60 * - 22 * COUNT( * ) AS col0
----
-83160

skipif mysql # not compatible
query I rowsort label-2989
SELECT + 63 * + + 60 * - 22 * COUNT ( * ) AS col0
----
-83160

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT + 58 * + - NULLIF ( SUM( DISTINCT 30 ), - COALESCE ( 93, - 33 * - + 65, + SUM( 2 ), - + 10 ) + 45 / - 75 ) - 20
----
-1760

skipif mysql # not compatible
query I rowsort label-2990
SELECT + 58 * + - NULLIF ( SUM ( DISTINCT 30 ), - COALESCE ( 93, - 33 * - + 65, + SUM ( 2 ), - + 10 ) + 45 / - 75 ) - 20
----
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT SUM( + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-2991
SELECT SUM ( + 56 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT + 98 + - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-2992
SELECT + 98 + - COUNT ( * )
----
97

query I rowsort
SELECT - 4 - CASE 44 WHEN - 97 THEN - 66 * 3 + + 42 WHEN - 60 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2994
SELECT + 15 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-2994
SELECT + 15 / + 86
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2995
SELECT - CASE WHEN ( NULL ) IS NULL THEN - 39 ELSE - 60 END + + ( + 32 ) AS col0, MIN( DISTINCT + + CAST( NULL AS DECIMAL ) )
----
71
NULL

skipif mysql # not compatible
query II rowsort label-2995
SELECT - CASE WHEN ( NULL ) IS NULL THEN - 39 ELSE - 60 END + + ( + 32 ) AS col0, MIN ( DISTINCT + + CAST ( NULL AS REAL ) )
----
71
NULL

query II rowsort
SELECT - 68 + + + 58, 69 AS col1
----
-10
69

query I rowsort
SELECT ALL 73 - - + 19 col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT - ( + + COUNT( * ) ) + - - 79 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-2998
SELECT - ( + + COUNT ( * ) ) + - - 79 AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2999
SELECT - CAST( + - ( 24 ) AS SIGNED ) * 2 + - 5
----
43

skipif mysql # not compatible
query I rowsort label-2999
SELECT - CAST ( + - ( 24 ) AS INTEGER ) * 2 + - 5
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3000
SELECT ALL NULLIF ( + 80, 79 * 75 + CASE + AVG ( 63 ) WHEN - 14 + 14 - + + 92 * - COUNT( * ) * + NULLIF ( + 93, + 10 ) * COALESCE ( + 54, - CAST( NULL AS SIGNED ) * - + 67 + - ( - AVG ( + 16 ) ) ) - + 22 / - + 84 THEN NULL WHEN - COALESCE ( ( - COUNT( * ) ), - MAX( + - 0 ) + + COALESCE ( - 65, - COUNT( * ) * + + 14 + - + CASE + 88 WHEN - 15 THEN NULL WHEN CAST( + 8 AS DECIMAL ) THEN + - 3 + COUNT( * ) ELSE NULL END + - CASE + 74 WHEN - 68 THEN + NULLIF ( 23, + - 38 * - COUNT( * ) + - - 57 + CAST( - 14 - COALESCE ( 13 + CAST( NULL AS SIGNED ) * NULLIF ( + 52 + COUNT( * ), + 37 * 12 - + ( - 4 + + 91 ) ), 73 * 3 ) AS SIGNED ) ) WHEN COALESCE ( - 53, 41, + 36 * + SUM( + 36 ) ) THEN NULL END ) ) THEN ( + 31 ) * 63 + 48 * 4 WHEN - COUNT( * ) * 7 THEN NULL ELSE 23 END )
----
80

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL NULLIF ( + 80, 79 * 75 + CASE + AVG ( 63 ) WHEN - 14 + 14 - + + 92 * - COUNT ( * ) * + NULLIF ( + 93, + 10 ) * COALESCE ( + 54, - CAST ( NULL AS INTEGER ) * - + 67 + - ( - AVG ( + 16 ) ) ) - + 22 / - + 84 THEN NULL WHEN - COALESCE ( ( - COUNT ( * ) ), - MAX ( + - 0 ) + + COALESCE ( - 65, - COUNT ( * ) * + + 14 + - + CASE + 88 WHEN - 15 THEN NULL WHEN CAST ( + 8 AS REAL ) THEN + - 3 + COUNT ( * ) ELSE NULL END + - CASE + 74 WHEN - 68 THEN + NULLIF ( 23, + - 38 * - COUNT ( * ) + - - 57 + CAST ( - 14 - COALESCE ( 13 + CAST ( NULL AS INTEGER ) * NULLIF ( + 52 + COUNT ( * ), + 37 * 12 - + ( - 4 + + 91 ) ), 73 * 3 ) AS INTEGER ) ) WHEN COALESCE ( - 53, 41, + 36 * + SUM ( + 36 ) ) THEN NULL END ) ) THEN ( + 31 ) * 63 + 48 * 4 WHEN - COUNT ( * ) * 7 THEN NULL ELSE 23 END )
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3001
SELECT - - 69 + + 4 DIV 72 col0
----
69

skipif mysql # not compatible
query I rowsort label-3001
SELECT - - 69 + + 4 / 72 col0
----
69

query II rowsort
SELECT + ( - 75 ), ( - - 6 ) AS col1
----
-75
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3003
SELECT - + CAST( - 92 AS SIGNED ) * COALESCE ( - CAST( NULL AS SIGNED ), - COUNT( * ) * ( - 31 ) + + 86 DIV - 76 + - 44 + CAST( + ( + + 49 ) AS SIGNED ) DIV 66 ) AS col1
----
-1288

skipif mysql # not compatible
query I rowsort label-3003
SELECT - + CAST ( - 92 AS INTEGER ) * COALESCE ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) * ( - 31 ) + + 86 / - 76 + - 44 + CAST ( + ( + + 49 ) AS INTEGER ) / 66 ) AS col1
----
-1288

query I rowsort
SELECT - - 30 + 85 AS col0
----
115

query I rowsort
SELECT ALL + + 83 + - - 16 AS col0
----
99

query I rowsort
SELECT ALL 21 * - - 19 AS col0
----
399

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3007
SELECT - - 67 + + 82 DIV + COUNT( * ) AS col1
----
149

skipif mysql # not compatible
query I rowsort label-3007
SELECT - - 67 + + 82 / + COUNT ( * ) AS col1
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT + - 63 / + 46 * CASE + 42 WHEN - AVG ( DISTINCT + 25 ) THEN + 52 WHEN - 40 * COUNT( * ) * - CASE - - 96 WHEN - 40 THEN + 98 WHEN - 90 THEN - + 53 END + - - 93 THEN COALESCE ( - + 72, - 74 ) * - 13 + - 10 ELSE NULL END / + 52 + + 40 + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-3008
SELECT + - 63 / + 46 * CASE + 42 WHEN - AVG ( DISTINCT + 25 ) THEN + 52 WHEN - 40 * COUNT ( * ) * - CASE - - 96 WHEN - 40 THEN + 98 WHEN - 90 THEN - + 53 END + - - 93 THEN COALESCE ( - + 72, - 74 ) * - 13 + - 10 ELSE NULL END / + 52 + + 40 + - 46
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3009
SELECT - 99 * 58 + 67 + + + 53 DIV - + 34 + - - COUNT( * )
----
-5675

skipif mysql # not compatible
query I rowsort label-3009
SELECT - 99 * 58 + 67 + + + 53 / - + 34 + - - COUNT ( * )
----
-5675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3010
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( * ) + 83 + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + 83 + 71
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3011
SELECT + 95 DIV - - 78 + + 52 AS col2, 89
----
53
89

skipif mysql # not compatible
query II rowsort label-3011
SELECT + 95 / - - 78 + + 52 AS col2, 89
----
53
89

query I rowsort
SELECT - 79 + - - 85 AS col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3013
SELECT ALL - 20 DIV - COUNT( * ) + + 63 + + 1 + + COUNT( * ) * - 1 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL - 20 / - COUNT ( * ) + + 63 + + 1 + + COUNT ( * ) * - 1 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT + COALESCE ( - 66, + 63 * 77, + + 27 ) * + 58 + 29 + - 76 + COUNT( * )
----
-3874

skipif mysql # not compatible
query I rowsort label-3014
SELECT + COALESCE ( - 66, + 63 * 77, + + 27 ) * + 58 + 29 + - 76 + COUNT ( * )
----
-3874

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT ALL 69 - + COUNT( * ) + - - CASE - COALESCE ( - ( + NULLIF ( + 53, - 30 ) ), - 48 + - 73 * SUM( ALL 87 ) + + 96 - + + 81, - 64 * 76 ) WHEN + + 3 THEN - 65 * - 31 * 43 END + - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL 69 - + COUNT ( * ) + - - CASE - COALESCE ( - ( + NULLIF ( + 53, - 30 ) ), - 48 + - 73 * SUM ( ALL 87 ) + + 96 - + + 81, - 64 * 76 ) WHEN + + 3 THEN - 65 * - 31 * 43 END + - 82 AS col1
----
NULL

query I rowsort
SELECT 49 * + - 18
----
-882

onlyif mysql # aggregate syntax: 
query II rowsort label-3017
SELECT ALL - 88, + 64 * + COUNT( * ) - + COUNT( * ) AS col2
----
-88
63

skipif mysql # not compatible
query II rowsort label-3017
SELECT ALL - 88, + 64 * + COUNT ( * ) - + COUNT ( * ) AS col2
----
-88
63

query II rowsort
SELECT 40 AS col1, + 81
----
40
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3019
SELECT CASE 20 WHEN - 49 THEN NULL WHEN + - 46 * 22 + - 85 + + 0 * + - NULLIF ( COUNT( * ), 2 * + CAST( NULL AS DECIMAL ) + + 59 ) * - 30 THEN NULL WHEN + 86 - 68 THEN + COUNT( * ) * - + CASE - 70 WHEN 54 THEN NULL WHEN + 24 THEN - COUNT( * ) * - + 28 * - - SUM( ALL + 27 ) END + 69 DIV + - COUNT( * ) ELSE - 42 END + + 10 DIV 73
----
-42

skipif mysql # not compatible
query I rowsort label-3019
SELECT CASE 20 WHEN - 49 THEN NULL WHEN + - 46 * 22 + - 85 + + 0 * + - NULLIF ( COUNT ( * ), 2 * + CAST ( NULL AS REAL ) + + 59 ) * - 30 THEN NULL WHEN + 86 - 68 THEN + COUNT ( * ) * - + CASE - 70 WHEN 54 THEN NULL WHEN + 24 THEN - COUNT ( * ) * - + 28 * - - SUM ( ALL + 27 ) END + 69 / + - COUNT ( * ) ELSE - 42 END + + 10 / 73
----
-42

query I rowsort
SELECT 68 + + - 59 AS col1
----
9

query I rowsort
SELECT ALL 33 - + 59
----
-26

query I rowsort
SELECT 39 * - 97 AS col2
----
-3783

query II rowsort
SELECT 56 AS col0, - 1 AS col0
----
56
-1

query I rowsort
SELECT + 92 * - 11 + - + 8 AS col1
----
-1020

query I rowsort
SELECT 87 + + - 64
----
23

query I rowsort
SELECT ALL 86 * - 0 col0
----
0

query I rowsort
SELECT DISTINCT 32 * - - 13 AS col0
----
416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3028
SELECT SUM( + 11 ) DIV + + MAX( 97 ) * - + 56 + - 99 * 7 * - 77 + - 15 + - 4 * - + 87 + + COUNT( * ) AS col2
----
53695

skipif mysql # not compatible
query I rowsort label-3028
SELECT SUM ( + 11 ) / + + MAX ( 97 ) * - + 56 + - 99 * 7 * - 77 + - 15 + - 4 * - + 87 + + COUNT ( * ) AS col2
----
53695

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT MAX( + 31 ) / CASE + 54 WHEN - MAX( DISTINCT 66 ) * - 62 + ( 28 ) THEN - 74 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3029
SELECT MAX ( + 31 ) / CASE + 54 WHEN - MAX ( DISTINCT 66 ) * - 62 + ( 28 ) THEN - 74 ELSE NULL END
----
NULL

query I rowsort
SELECT - 81 + - 93 AS col2
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT 0 * - + 76 + - MAX( DISTINCT + - 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-3031
SELECT 0 * - + 76 + - MAX ( DISTINCT + - 70 ) AS col1
----
70

query I rowsort
SELECT 87 + 63 AS col1
----
150

query I rowsort
SELECT DISTINCT - 26 + + 53 AS col1
----
27

query II rowsort
SELECT 65, 28 AS col0
----
65
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT - MAX( ALL - 29 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-3035
SELECT - MAX ( ALL - 29 ) AS col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3036
SELECT 56 + - - COUNT( * ) DIV 39 * - 60 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-3036
SELECT 56 + - - COUNT ( * ) / 39 * - 60 AS col2
----
56

query I rowsort
SELECT - 97 + + 31 AS col0
----
-66

query I rowsort
SELECT ( 59 ) - - 9 col2
----
68

query I rowsort
SELECT DISTINCT - ( 71 )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3040
SELECT + ( - 17 ) DIV + 69 + + MIN( DISTINCT - ( - 25 ) )
----
25

skipif mysql # not compatible
query I rowsort label-3040
SELECT + ( - 17 ) / + 69 + + MIN ( DISTINCT - ( - 25 ) )
----
25

query I rowsort
SELECT ALL - - 59 - - - ( + 15 ) * + 28 + - 68 * 15 AS col0
----
-1381

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3042
SELECT ALL + 70 - NULLIF ( 80, - COUNT( * ) ) col2, + 32 + + CASE - 69 WHEN - + 35 + 0 + - + 19 * + 46 * - 66 THEN - ( + 59 ) * - 74 + 65 WHEN + - NULLIF ( - 45, + ( + COUNT( - 63 ) ) + - + CAST( NULL AS SIGNED ) * + 72 * 22 ) + + 38 * - + 79 THEN - 58 END + ( 4 )
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-3042
SELECT ALL + 70 - NULLIF ( 80, - COUNT ( * ) ) col2, + 32 + + CASE - 69 WHEN - + 35 + 0 + - + 19 * + 46 * - 66 THEN - ( + 59 ) * - 74 + 65 WHEN + - NULLIF ( - 45, + ( + COUNT ( - 63 ) ) + - + CAST ( NULL AS INTEGER ) * + 72 * 22 ) + + 38 * - + 79 THEN - 58 END + ( 4 )
----
-10
NULL

query I rowsort
SELECT ALL - - 1 * + COALESCE ( - - ( - 59 ), 34 )
----
-59

query I rowsort
SELECT ALL - ( + 89 ) AS col2
----
-89

query II rowsort
SELECT 49 * - + 97 col0, 70 AS col2
----
-4753
70

query I rowsort
SELECT 23 + - + 9
----
14

query I rowsort
SELECT 59 * + 40
----
2360

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT 62 * ( - - COUNT( DISTINCT 55 ) ) * 94
----
5828

skipif mysql # not compatible
query I rowsort label-3048
SELECT 62 * ( - - COUNT ( DISTINCT 55 ) ) * 94
----
5828

query I rowsort
SELECT DISTINCT + 70 * + + ( - - 10 )
----
700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3050
SELECT 79 * 15 * ( + + 30 ) - 37 * - - CAST( - 63 AS SIGNED ) * - COUNT( * )
----
33219

skipif mysql # not compatible
query I rowsort label-3050
SELECT 79 * 15 * ( + + 30 ) - 37 * - - CAST ( - 63 AS INTEGER ) * - COUNT ( * )
----
33219

onlyif mysql # DIV for integer division: 
query I rowsort label-3051
SELECT 84 * - 38 DIV + 19
----
-168

skipif mysql # not compatible
query I rowsort label-3051
SELECT 84 * - 38 / + 19
----
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3052
SELECT 68 + COUNT( * ) * + 59 * - CAST( - CAST( CASE - 80 WHEN 65 + 8 THEN NULL WHEN + - 35 THEN - 96 / - COUNT( * ) / + ( - - ( + 67 ) ) - CAST( NULL AS SIGNED ) / + CAST( - 92 AS SIGNED ) END AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3052
SELECT 68 + COUNT ( * ) * + 59 * - CAST ( - CAST ( CASE - 80 WHEN 65 + 8 THEN NULL WHEN + - 35 THEN - 96 / - COUNT ( * ) / + ( - - ( + 67 ) ) - CAST ( NULL AS INTEGER ) / + CAST ( - 92 AS INTEGER ) END AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT 74 * - + 53 AS col0
----
-3922

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3054
SELECT DISTINCT - 7 * - 30 DIV COUNT( * )
----
210

skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT - 7 * - 30 / COUNT ( * )
----
210

query I rowsort
SELECT 58 + - - 27 AS col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3056
SELECT 64 * - CAST( - + COUNT( * ) AS SIGNED ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-3056
SELECT 64 * - CAST ( - + COUNT ( * ) AS INTEGER ) AS col2
----
64

query I rowsort
SELECT - 12 * + + 92 - + + ( - ( - ( + 8 ) ) ) AS col1
----
-1112

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3058
SELECT + AVG ( ( - - CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3058
SELECT + AVG ( ( - - CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT DISTINCT COUNT( * ) + + 82
----
83

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT COUNT ( * ) + + 82
----
83

query I rowsort
SELECT ALL 53 + 8 + - 11 AS col0
----
50

query II rowsort
SELECT + 36 + + 91 AS col0, + 69
----
127
69

query I rowsort
SELECT 81 + - 89 AS col1
----
-8

query I rowsort
SELECT + ( + - 42 ) * + 8 AS col2
----
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT - 12 + - + COUNT( * ) + + - 90 AS col0
----
-103

skipif mysql # not compatible
query I rowsort label-3064
SELECT - 12 + - + COUNT ( * ) + + - 90 AS col0
----
-103

query I rowsort
SELECT DISTINCT - COALESCE ( 86, + ( - 22 ) ) col2
----
-86

query I rowsort
SELECT - 39 * 95
----
-3705

query I rowsort
SELECT + - 85 + + - 44
----
-129

query I rowsort
SELECT + + ( + 85 ) + 39 col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT - - COUNT( * ) + + + 60 + 14 - + MAX( + 67 ) * + 57
----
-3744

skipif mysql # not compatible
query I rowsort label-3069
SELECT - - COUNT ( * ) + + + 60 + 14 - + MAX ( + 67 ) * + 57
----
-3744

query I rowsort
SELECT + 28 + + 20 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT - 97 + + 29 + + MAX( - 35 ) * + MAX( + 19 ) * + 9 * + 37 AS col1
----
-221513

skipif mysql # not compatible
query I rowsort label-3071
SELECT - 97 + + 29 + + MAX ( - 35 ) * + MAX ( + 19 ) * + 9 * + 37 AS col1
----
-221513

query I rowsort
SELECT + 99 * - - 8
----
792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3073
SELECT + 47 DIV - 41 * COUNT( * ) + 63
----
62

skipif mysql # not compatible
query I rowsort label-3073
SELECT + 47 / - 41 * COUNT ( * ) + 63
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3074
SELECT - 16 + + - 83 * - - 90 / 50 * + - CAST( NULL AS SIGNED ) / - - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3074
SELECT - 16 + + - 83 * - - 90 / 50 * + - CAST ( NULL AS INTEGER ) / - - 0
----
NULL

query I rowsort
SELECT NULLIF ( - ( 93 ), + - 7 ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT - 92 + - + MIN( 31 ) * - 56 AS col0
----
1644

skipif mysql # not compatible
query I rowsort label-3076
SELECT - 92 + - + MIN ( 31 ) * - 56 AS col0
----
1644

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT ALL + MIN( DISTINCT 68 )
----
68

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL + MIN ( DISTINCT 68 )
----
68

query II rowsort
SELECT + 84 * 69 + - 42 col0, 11
----
5754
11

onlyif mysql # aggregate syntax: 
query II rowsort label-3079
SELECT - NULLIF ( - COUNT( * ), + 8 ) * 96 - + 84 AS col0, 24 * + COUNT( DISTINCT + - ( - + 63 ) ) AS col1
----
12
24

skipif mysql # not compatible
query II rowsort label-3079
SELECT - NULLIF ( - COUNT ( * ), + 8 ) * 96 - + 84 AS col0, 24 * + COUNT ( DISTINCT + - ( - + 63 ) ) AS col1
----
12
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3080
SELECT - CAST( NULL AS SIGNED ) + 68 + + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3080
SELECT - CAST ( NULL AS INTEGER ) + 68 + + 43 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3081
SELECT ALL + 49 DIV 31 * 68 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL + 49 / 31 * 68 AS col0
----
68

query I rowsort
SELECT - 15 + 15 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT ALL 58 * + COUNT( * ) * + + COUNT( * ) * - MAX( + 41 ) + 86 + + + ( - COUNT( * ) ) * - 30
----
-2262

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL 58 * + COUNT ( * ) * + + COUNT ( * ) * - MAX ( + 41 ) + 86 + + + ( - COUNT ( * ) ) * - 30
----
-2262

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3084
SELECT - CAST( NULL AS DECIMAL ) * + + 52 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT - CAST ( NULL AS REAL ) * + + 52 col1
----
NULL

query I rowsort
SELECT ALL + 49 * - + NULLIF ( - - ( + 13 ), 53 )
----
-637

query I rowsort
SELECT DISTINCT + 31 * + 71
----
2201

query I rowsort
SELECT DISTINCT 26 * - 60 + + 90 * - 0
----
-1560

query I rowsort
SELECT - 31 * + 34 AS col2
----
-1054

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT ALL 1 * + 9 + - MAX( DISTINCT - 25 )
----
34

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL 1 * + 9 + - MAX ( DISTINCT - 25 )
----
34

query I rowsort
SELECT DISTINCT ( + 47 )
----
47

query I rowsort
SELECT - 19 - ( - COALESCE ( - 12, 88, + 34 ) )
----
-31

query I rowsort
SELECT ALL ( 85 ) AS col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3093
SELECT + 1 * - CASE 83 WHEN COUNT( * ) THEN + 0 - 34 DIV 87 WHEN 65 THEN NULL ELSE 71 + - 63 END col1
----
-8

skipif mysql # not compatible
query I rowsort label-3093
SELECT + 1 * - CASE 83 WHEN COUNT ( * ) THEN + 0 - 34 / 87 WHEN 65 THEN NULL ELSE 71 + - 63 END col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT + COUNT( * ) + - COUNT( * ) * 91
----
-90

skipif mysql # not compatible
query I rowsort label-3094
SELECT + COUNT ( * ) + - COUNT ( * ) * 91
----
-90

query I rowsort
SELECT ALL NULLIF ( + 97, - 64 ) * - 94
----
-9118

query I rowsort
SELECT ALL 83 - - 58 * + 28
----
1707

query I rowsort
SELECT + 65 - 79 * 7 AS col0
----
-488

query I rowsort
SELECT ALL + ( NULLIF ( 65, - 72 ) ) * 23
----
1495

query I rowsort
SELECT - NULLIF ( + 17, AVG ( DISTINCT 8 ) * + 31 + - 65 )
----
-17

query I rowsort
SELECT ALL ( 7 ) * 12 AS col2
----
84

query I rowsort
SELECT + NULLIF ( 55, + 48 ) * 5
----
275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3102
SELECT + MAX( DISTINCT + 81 ) DIV + 33
----
2

skipif mysql # not compatible
query I rowsort label-3102
SELECT + MAX ( DISTINCT + 81 ) / + 33
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3103
SELECT + CAST( NULL AS DECIMAL ) * + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT + CAST ( NULL AS REAL ) * + 25
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3104
SELECT ALL 11 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL 11 / + 79
----
0

query I rowsort
SELECT + 75 * + 53 AS col0
----
3975

query I rowsort
SELECT - ( 37 )
----
-37

query I rowsort
SELECT ALL - 25 * + 68
----
-1700

query I rowsort
SELECT + 69 * - ( 79 * 20 ) col2
----
-109020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3109
SELECT ALL COUNT( * ) DIV 57 + + 74 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL COUNT ( * ) / 57 + + 74 AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3110
SELECT + NULLIF ( NULLIF ( 26, CAST( + SUM( DISTINCT - 58 ) AS SIGNED ) ), + 52 - 45 * - 69 ) * 95 AS col1
----
2470

skipif mysql # not compatible
query I rowsort label-3110
SELECT + NULLIF ( NULLIF ( 26, CAST ( + SUM ( DISTINCT - 58 ) AS INTEGER ) ), + 52 - 45 * - 69 ) * 95 AS col1
----
2470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3111
SELECT ALL COUNT( * ) DIV + 29 + 10 col2
----
10

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL COUNT ( * ) / + 29 + 10 col2
----
10

query I rowsort
SELECT DISTINCT + 19 col2
----
19

query I rowsort
SELECT ALL 3 * - 86
----
-258

query I rowsort
SELECT - 15 * + 25
----
-375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3115
SELECT 54 * + NULLIF ( 85, 39 * CAST( NULL AS SIGNED ) ) - 71 * + 43 AS col1
----
1537

skipif mysql # not compatible
query I rowsort label-3115
SELECT 54 * + NULLIF ( 85, 39 * CAST ( NULL AS INTEGER ) ) - 71 * + 43 AS col1
----
1537

query I rowsort
SELECT ALL 67 * + 52 AS col1
----
3484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3117
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) - + CAST( + ( + 78 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3117
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) - + CAST ( + ( + 78 ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + ( - 40 ) col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT ALL + MIN( DISTINCT 91 )
----
91

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL + MIN ( DISTINCT 91 )
----
91

query I rowsort
SELECT - 55 + + 66
----
11

query I rowsort
SELECT ALL COALESCE ( 45, 51 + - 89, + 82 ) * + 40 + + 12 AS col0
----
1812

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3122
SELECT ( CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT ( CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT - 78 * 6 + 70 * - 83
----
-6278

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT ALL - - 0 * ( + 13 * CASE 77 / + 15 WHEN - COALESCE ( - 86, + 94 / - 99 ) THEN 74 * - SUM( ALL - ( + 92 ) ) WHEN 40 + + COUNT( * ) THEN + 88 + - 8 ELSE 60 * 9 END + - 66 * + 81 ) - 61
----
-61

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL - - 0 * ( + 13 * CASE 77 / + 15 WHEN - COALESCE ( - 86, + 94 / - 99 ) THEN 74 * - SUM ( ALL - ( + 92 ) ) WHEN 40 + + COUNT ( * ) THEN + 88 + - 8 ELSE 60 * 9 END + - 66 * + 81 ) - 61
----
-61

query I rowsort
SELECT - - 95 * + ( 94 )
----
8930

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT ALL + COUNT( ALL - 84 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL + COUNT ( ALL - 84 ) AS col2
----
1

query I rowsort
SELECT + 71 + 52 AS col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT - - 61 * + MIN( DISTINCT 95 ) - + COUNT( * ) AS col0
----
5794

skipif mysql # not compatible
query I rowsort label-3128
SELECT - - 61 * + MIN ( DISTINCT 95 ) - + COUNT ( * ) AS col0
----
5794

query I rowsort
SELECT DISTINCT - 56 * + 7
----
-392

query I rowsort
SELECT - - 45 - - 67 * + 70 AS col1
----
4735

query I rowsort
SELECT - + 34 * - 27
----
918

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT - MAX( DISTINCT - 1 ) * - 23
----
-23

skipif mysql # not compatible
query I rowsort label-3132
SELECT - MAX ( DISTINCT - 1 ) * - 23
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT - + CASE + 37 WHEN - COUNT( * ) + - ( 83 ) THEN 75 * + CASE - 63 * NULLIF ( - 62, - 67 - + 77 ) WHEN - 65 THEN NULL ELSE 81 END WHEN - 95 + - 72 THEN NULL END + COALESCE ( 56, 97 * - 1, 5 * 33 ) * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3133
SELECT - + CASE + 37 WHEN - COUNT ( * ) + - ( 83 ) THEN 75 * + CASE - 63 * NULLIF ( - 62, - 67 - + 77 ) WHEN - 65 THEN NULL ELSE 81 END WHEN - 95 + - 72 THEN NULL END + COALESCE ( 56, 97 * - 1, 5 * 33 ) * 64
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3134
SELECT ALL + - 82 - - ( + NULLIF ( - 23, COUNT( DISTINCT + 63 ) + COUNT( * ) ) ) DIV - 91
----
-82

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL + - 82 - - ( + NULLIF ( - 23, COUNT ( DISTINCT + 63 ) + COUNT ( * ) ) ) / - 91
----
-82

query I rowsort
SELECT + 7 * + 20
----
140

query I rowsort
SELECT - 86 * 98 + + 57 AS col1
----
-8371

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT COUNT( * ) * MAX( + 57 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3137
SELECT COUNT ( * ) * MAX ( + 57 ) AS col0
----
57

query I rowsort
SELECT ALL - 63 * + 18
----
-1134

query I rowsort
SELECT ALL + 4 * + ( 6 + + 91 )
----
388

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT - COUNT( * ) * + 30 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-3140
SELECT - COUNT ( * ) * + 30 AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3141
SELECT DISTINCT - CAST( ( - CAST( NULL AS DECIMAL ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT - CAST ( ( - CAST ( NULL AS REAL ) ) AS INTEGER )
----
NULL

query I rowsort
SELECT 13 + - 19
----
-6

query I rowsort
SELECT + 84 + 29
----
113

query I rowsort
SELECT - 32 + ( 72 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT SUM( ALL - 76 ) + + 79
----
3

skipif mysql # not compatible
query I rowsort label-3145
SELECT SUM ( ALL - 76 ) + + 79
----
3

query I rowsort
SELECT ALL - 66 * 54 AS col1
----
-3564

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT 77 + + - COUNT( DISTINCT - 77 ) * - 63
----
140

skipif mysql # not compatible
query I rowsort label-3147
SELECT 77 + + - COUNT ( DISTINCT - 77 ) * - 63
----
140

query I rowsort
SELECT ALL 57 + 95 AS col0
----
152

query I rowsort
SELECT 84 + + 34 * - 29 AS col2
----
-902

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT ALL 27 + - - ( 4 ) * COUNT( DISTINCT 78 / 45 )
----
31

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL 27 + - - ( 4 ) * COUNT ( DISTINCT 78 / 45 )
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3151
SELECT CASE - 57 WHEN 87 * - ( - 35 ) THEN ( COUNT( ALL + 89 ) ) ELSE + SUM( 15 ) END + MIN( 77 + 51 DIV 35 )
----
93

skipif mysql # not compatible
query I rowsort label-3151
SELECT CASE - 57 WHEN 87 * - ( - 35 ) THEN ( COUNT ( ALL + 89 ) ) ELSE + SUM ( 15 ) END + MIN ( 77 + 51 / 35 )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3152
SELECT 67 DIV 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3152
SELECT 67 / 87 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT 58 * - ( COUNT( * ) ) + + 86 * COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-3153
SELECT 58 * - ( COUNT ( * ) ) + + 86 * COUNT ( * )
----
28

query I rowsort
SELECT ALL 21 + + 89
----
110

query I rowsort
SELECT 74 * - 56 * - 96
----
397824

query I rowsort
SELECT 86 * + 75
----
6450

query I rowsort
SELECT DISTINCT 26 + 24 * - ( 15 * - 59 + 4 )
----
21170

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT - NULLIF ( SUM( - ( 33 ) ), 12 / 74 ) * 82 + - COUNT( ALL - 66 )
----
2705

skipif mysql # not compatible
query I rowsort label-3158
SELECT - NULLIF ( SUM ( - ( 33 ) ), 12 / 74 ) * 82 + - COUNT ( ALL - 66 )
----
2705

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT ALL MIN( - 82 ) - 47 AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL MIN ( - 82 ) - 47 AS col0
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT DISTINCT 20 DIV 37 * + 60
----
0

skipif mysql # not compatible
query I rowsort label-3160
SELECT DISTINCT 20 / 37 * + 60
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3161
SELECT ALL - SUM( DISTINCT + - 87 ) - 57 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL - SUM ( DISTINCT + - 87 ) - 57 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT ALL NULLIF ( - COUNT( * ), 38 / - 1 + - COUNT( * ) * 68 ) * - ( 65 )
----
65

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL NULLIF ( - COUNT ( * ), 38 / - 1 + - COUNT ( * ) * 68 ) * - ( 65 )
----
65

query I rowsort
SELECT + ( - + 1 )
----
-1

query I rowsort
SELECT + 25 + + 17 AS col0
----
42

query I rowsort
SELECT DISTINCT 4 * - NULLIF ( - 74, - 92 ) * 27 - 27 * 16
----
7560

query I rowsort
SELECT ALL 8 - + 85
----
-77

query I rowsort
SELECT - 92 * - - 85 - - NULLIF ( + 44 - + 25 * 31, + 65 + ( 89 + + 62 ) ) * ( 12 )
----
-16592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3168
SELECT DISTINCT - - CAST( CASE - 19 WHEN 3 * 35 - 30 THEN - 92 WHEN + 62 THEN + 56 ELSE NULL END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT - - CAST ( CASE - 19 WHEN 3 * 35 - 30 THEN - 92 WHEN + 62 THEN + 56 ELSE NULL END AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT DISTINCT - 67 * + ( ( - COUNT( * ) ) )
----
67

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT - 67 * + ( ( - COUNT ( * ) ) )
----
67

query I rowsort
SELECT DISTINCT - ( + 76 )
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3171
SELECT CAST( NULL AS SIGNED ) * + ( 22 ) * 36 + ( + 45 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3171
SELECT CAST ( NULL AS INTEGER ) * + ( 22 ) * 36 + ( + 45 ) col1
----
NULL

query I rowsort
SELECT + 72 - 18 + + ( + 27 )
----
81

query I rowsort
SELECT - COALESCE ( 75, - 91, ( - ( 15 ) ) )
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3174
SELECT DISTINCT - + 75 DIV + + COUNT( * ) + + MIN( + 26 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT - + 75 / + + COUNT ( * ) + + MIN ( + 26 ) AS col2
----
-49

query I rowsort
SELECT ( - + 62 ) - 60 AS col1
----
-122

onlyif mysql # DIV for integer division: 
query I rowsort label-3176
SELECT 28 DIV + + 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3176
SELECT 28 / + + 39 AS col2
----
0

query I rowsort
SELECT - 64 + + 93 col2
----
29

query I rowsort
SELECT DISTINCT - 51 + 4 + - 10 * 80 AS col0
----
-847

query I rowsort
SELECT DISTINCT + CASE ( ( - 68 ) ) WHEN + 29 THEN 29 ELSE + 97 END * 18
----
1746

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ALL - 1 + - COUNT( * ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL - 1 + - COUNT ( * ) col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT + COUNT( * ) * - 28 * + 78
----
-2184

skipif mysql # not compatible
query I rowsort label-3181
SELECT + COUNT ( * ) * - 28 * + 78
----
-2184

query I rowsort
SELECT 68 * - - 32 * + 54 col2
----
117504

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT DISTINCT + COUNT( + + 89 ) + 62
----
63

skipif mysql # not compatible
query I rowsort label-3183
SELECT DISTINCT + COUNT ( + + 89 ) + 62
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT DISTINCT + 80 * COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT + 80 * COUNT ( * ) AS col2
----
80

query I rowsort
SELECT DISTINCT + 7 + 88
----
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3186
SELECT 48 col1, + 5 DIV - 44 * CAST( 99 AS SIGNED ) - 52 * + 93 AS col2
----
48
-4836

skipif mysql # not compatible
query II rowsort label-3186
SELECT 48 col1, + 5 / - 44 * CAST ( 99 AS INTEGER ) - 52 * + 93 AS col2
----
48
-4836

query I rowsort
SELECT ALL + 90 + 60 + + + 89 * + 43 col0
----
3977

query I rowsort
SELECT 83 * ( + 74 )
----
6142

onlyif mysql # DIV for integer division: 
query I rowsort label-3189
SELECT DISTINCT 15 * 92 DIV 32 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-3189
SELECT DISTINCT 15 * 92 / 32 AS col1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3190
SELECT ALL + 90 - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL + 90 - - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3191
SELECT NULLIF ( + 92, CAST( 29 AS SIGNED ) )
----
92

skipif mysql # not compatible
query I rowsort label-3191
SELECT NULLIF ( + 92, CAST ( 29 AS INTEGER ) )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3192
SELECT ALL + CAST( NULLIF ( + + COUNT( * ), + 92 * - 1 ) AS SIGNED ) * 29 - + 68 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL + CAST ( NULLIF ( + + COUNT ( * ), + 92 * - 1 ) AS INTEGER ) * 29 - + 68 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT 9 * + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-3193
SELECT 9 * + COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT DISTINCT - COUNT( * ) * - 22 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT - COUNT ( * ) * - 22 AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3195
SELECT + 95 DIV - 73 * COUNT( * ) + 4
----
3

skipif mysql # not compatible
query I rowsort label-3195
SELECT + 95 / - 73 * COUNT ( * ) + 4
----
3

query I rowsort
SELECT ALL - 0 * + + 55
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT 92 + 56 + - MIN( - 11 ) AS col1
----
159

skipif mysql # not compatible
query I rowsort label-3197
SELECT 92 + 56 + - MIN ( - 11 ) AS col1
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT - 7 * COUNT( * ) + - + 3
----
-10

skipif mysql # not compatible
query I rowsort label-3198
SELECT - 7 * COUNT ( * ) + - + 3
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT + COUNT( ( + 83 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3199
SELECT + COUNT ( ( + 83 ) )
----
1

query II rowsort
SELECT DISTINCT + 22, - 41 AS col0
----
22
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-3201
SELECT ALL - 7 DIV - + 41 * + + 18
----
0

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL - 7 / - + 41 * + + 18
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3202
SELECT ALL MIN( DISTINCT 32 ) DIV - + 77 * MAX( - 26 )
----
0

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL MIN ( DISTINCT 32 ) / - + 77 * MAX ( - 26 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3203
SELECT - COALESCE ( - - 70, SUM( + 37 ) + - 16 * NULLIF ( NULLIF ( - 91, 96 + - 75 ) DIV 6, - 10 ) ) * - COUNT( * ) + - COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-3203
SELECT - COALESCE ( - - 70, SUM ( + 37 ) + - 16 * NULLIF ( NULLIF ( - 91, 96 + - 75 ) / 6, - 10 ) ) * - COUNT ( * ) + - COUNT ( * ) AS col1
----
69

query I rowsort
SELECT + 65 * + 87 AS col0
----
5655

query I rowsort
SELECT + 19 * 16 - 17 - + 57 col2
----
230

query I rowsort
SELECT - 53 + COALESCE ( + 22, 77 ) - - 26 * 84 AS col1
----
2153

query I rowsort
SELECT ALL 22 * 15 * - 3 * - 68 col1
----
67320

onlyif mysql # aggregate syntax: 
query II rowsort label-3208
SELECT 43, MIN( - - 95 ) col2
----
43
95

skipif mysql # not compatible
query II rowsort label-3208
SELECT 43, MIN ( - - 95 ) col2
----
43
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT - - NULLIF ( - 26, - + CASE + 69 WHEN + 44 THEN NULL WHEN - 21 + COALESCE ( COUNT( * ), COUNT( * ) ) THEN 16 ELSE + 85 * 69 END * + 34 + - 13 ) * - 36
----
936

skipif mysql # not compatible
query I rowsort label-3209
SELECT - - NULLIF ( - 26, - + CASE + 69 WHEN + 44 THEN NULL WHEN - 21 + COALESCE ( COUNT ( * ), COUNT ( * ) ) THEN 16 ELSE + 85 * 69 END * + 34 + - 13 ) * - 36
----
936

query I rowsort
SELECT DISTINCT + 94 + - + 47 * + - 55 AS col1
----
2679

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT ALL + COUNT( * ) + + ( + 98 )
----
99

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL + COUNT ( * ) + + ( + 98 )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3212
SELECT 67 * - 49 + - 41 DIV 90 + - 95 AS col0
----
-3378

skipif mysql # not compatible
query I rowsort label-3212
SELECT 67 * - 49 + - 41 / 90 + - 95 AS col0
----
-3378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3213
SELECT ALL - ( - - CAST( NULL AS SIGNED ) ) * + - CASE 59 WHEN 2 THEN NULL WHEN + CASE MIN( ALL - 87 ) WHEN - 17 THEN NULL WHEN 58 * - COUNT( * ) + COALESCE ( 87, + 78, 91 / 86 ) THEN - 82 ELSE NULL END + 33 * 64 THEN COUNT( * ) * 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL - ( - - CAST ( NULL AS INTEGER ) ) * + - CASE 59 WHEN 2 THEN NULL WHEN + CASE MIN ( ALL - 87 ) WHEN - 17 THEN NULL WHEN 58 * - COUNT ( * ) + COALESCE ( 87, + 78, 91 / 86 ) THEN - 82 ELSE NULL END + 33 * 64 THEN COUNT ( * ) * 78 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3214
SELECT DISTINCT 56 AS col2, COUNT( * ) + + - 63 + - 80 AS col0
----
56
-142

skipif mysql # not compatible
query II rowsort label-3214
SELECT DISTINCT 56 AS col2, COUNT ( * ) + + - 63 + - 80 AS col0
----
56
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT + + 92 + + MIN( DISTINCT + - 6 ) - + 52 * 7 * 71 AS col1
----
-25758

skipif mysql # not compatible
query I rowsort label-3215
SELECT + + 92 + + MIN ( DISTINCT + - 6 ) - + 52 * 7 * 71 AS col1
----
-25758

query I rowsort
SELECT ALL ( - - 70 ) AS col1
----
70

query I rowsort
SELECT ALL 52 + - 88
----
-36

query I rowsort
SELECT + 16 * 49 AS col2
----
784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3219
SELECT + COUNT( * ) + - - 73 - NULLIF ( - - MIN( DISTINCT + 92 ), + AVG ( 81 ) * CAST( NULL AS SIGNED ) + + COUNT( + 22 + 40 ) ) - 50 * ( ( 31 ) * + 34 ) AS col1
----
-52718

skipif mysql # not compatible
query I rowsort label-3219
SELECT + COUNT ( * ) + - - 73 - NULLIF ( - - MIN ( DISTINCT + 92 ), + AVG ( 81 ) * CAST ( NULL AS INTEGER ) + + COUNT ( + 22 + 40 ) ) - 50 * ( ( 31 ) * + 34 ) AS col1
----
-52718

query I rowsort
SELECT DISTINCT + 21 + - 97 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT ALL + COUNT( * ) * - 2
----
-2

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL + COUNT ( * ) * - 2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT + CASE - 47 WHEN - 43 * - 12 + - NULLIF ( - COUNT( * ), - 78 - - 22 ) THEN NULL WHEN COALESCE ( 46, 11 ) * 66 THEN NULL WHEN - COUNT( * ) THEN - COUNT( * ) + MIN( ALL 35 + 5 * + ( - 42 ) ) * - NULLIF ( AVG ( 68 ), 36 ) ELSE NULL END * + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT + CASE - 47 WHEN - 43 * - 12 + - NULLIF ( - COUNT ( * ), - 78 - - 22 ) THEN NULL WHEN COALESCE ( 46, 11 ) * 66 THEN NULL WHEN - COUNT ( * ) THEN - COUNT ( * ) + MIN ( ALL 35 + 5 * + ( - 42 ) ) * - NULLIF ( AVG ( 68 ), 36 ) ELSE NULL END * + 49 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3223
SELECT DISTINCT 9 DIV 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT 9 / 76 AS col2
----
0

query I rowsort
SELECT ALL 86 - - 86 * + 79 + + 5
----
6885

query I rowsort
SELECT ALL 44 * + 68
----
2992

query II rowsort
SELECT ALL ( + 5 ) AS col2, 24 * + 96 AS col0
----
5
2304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3227
SELECT - 32 + + COUNT( * ) + 58 DIV - + 45
----
-32

skipif mysql # not compatible
query I rowsort label-3227
SELECT - 32 + + COUNT ( * ) + 58 / - + 45
----
-32

query I rowsort
SELECT ALL - 31 * + 92 * + 55 AS col2
----
-156860

query I rowsort
SELECT - 50 + 68
----
18

query I rowsort
SELECT ALL + 59 - + 96 * + + 9 + + + 77 + 84
----
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT - 14 * + COUNT( 53 )
----
-14

skipif mysql # not compatible
query I rowsort label-3231
SELECT - 14 * + COUNT ( 53 )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3232
SELECT DISTINCT + MAX( DISTINCT - - 61 ) AS col0, 94 + - + 51 + COUNT( * ) DIV 25 AS col2
----
61
43

skipif mysql # not compatible
query II rowsort label-3232
SELECT DISTINCT + MAX ( DISTINCT - - 61 ) AS col0, 94 + - + 51 + COUNT ( * ) / 25 AS col2
----
61
43

query I rowsort
SELECT ALL - 78 * - 3 + - - ( + 41 )
----
275

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT DISTINCT + MIN( + - 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT + MIN ( + - 22 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT DISTINCT + - ( SUM( ALL - 76 ) ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT + - ( SUM ( ALL - 76 ) ) AS col0
----
76

query I rowsort
SELECT DISTINCT - 28 * 8
----
-224

query I rowsort
SELECT + - 22 * - + 70 AS col0
----
1540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT ALL - - CAST( NULL AS SIGNED ) * 48 + 79 + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL - - CAST ( NULL AS INTEGER ) * 48 + 79 + 76 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT - MAX( 36 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-3239
SELECT - MAX ( 36 ) AS col0
----
-36

query I rowsort
SELECT + 91 * - - ( - 15 ) + + - 25
----
-1390

query I rowsort
SELECT + ( 35 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT DISTINCT - 33 * - MIN( ALL - + 78 ) + + 63 + - 28 * 74
----
-4583

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT - 33 * - MIN ( ALL - + 78 ) + + 63 + - 28 * 74
----
-4583

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT DISTINCT - - 46 * + - ( - 67 ) + + COUNT( * )
----
3083

skipif mysql # not compatible
query I rowsort label-3243
SELECT DISTINCT - - 46 * + - ( - 67 ) + + COUNT ( * )
----
3083

query I rowsort
SELECT ALL + + 59 col2
----
59

query I rowsort
SELECT ALL - 89 * 41 + ( + 61 ) AS col1
----
-3588

query I rowsort
SELECT + + 96 * - - COALESCE ( + 55, + 73 )
----
5280

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT DISTINCT + NULLIF ( - 54, + COUNT( * ) ) * 52 + 88 AS col1
----
-2720

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT + NULLIF ( - 54, + COUNT ( * ) ) * 52 + 88 AS col1
----
-2720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3248
SELECT DISTINCT + MAX( ALL - + ( + 30 ) ) * - + 63 DIV 63 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-3248
SELECT DISTINCT + MAX ( ALL - + ( + 30 ) ) * - + 63 / 63 AS col2
----
30

query I rowsort
SELECT - 70 - 10 + - 73 * + 52 + + 82
----
-3794

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT + 70 * + - 22 * - NULLIF ( COUNT( * ), - + COUNT( * ) ) + - 4 * 59
----
1304

skipif mysql # not compatible
query I rowsort label-3250
SELECT + 70 * + - 22 * - NULLIF ( COUNT ( * ), - + COUNT ( * ) ) + - 4 * 59
----
1304

query I rowsort
SELECT ALL 4 * 52
----
208

query I rowsort
SELECT + 16 + - + 84 + - 12 * + + 53 AS col2
----
-704

query I rowsort
SELECT DISTINCT 39 * 86
----
3354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3254
SELECT DISTINCT 10 - + 84 + ( + - 99 ) * - + CAST( - 21 AS SIGNED ) + + 97 AS col0
----
-2056

skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT 10 - + 84 + ( + - 99 ) * - + CAST ( - 21 AS INTEGER ) + + 97 AS col0
----
-2056

onlyif mysql # aggregate syntax: 
query II rowsort label-3255
SELECT + 39 - MIN( + + 50 ) col2, COUNT( * ) * - 60 + 81 * + 78 col2
----
-11
6258

skipif mysql # not compatible
query II rowsort label-3255
SELECT + 39 - MIN ( + + 50 ) col2, COUNT ( * ) * - 60 + 81 * + 78 col2
----
-11
6258

query I rowsort
SELECT DISTINCT 3 * + 47
----
141

query I rowsort
SELECT ALL ( - 8 )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3258
SELECT + 33 * 68 * - CAST( - COUNT( * ) AS SIGNED ) * + 5
----
11220

skipif mysql # not compatible
query I rowsort label-3258
SELECT + 33 * 68 * - CAST ( - COUNT ( * ) AS INTEGER ) * + 5
----
11220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3259
SELECT ALL COALESCE ( + 97, + ( CAST( NULL AS SIGNED ) ) * - - 50 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL COALESCE ( + 97, + ( CAST ( NULL AS INTEGER ) ) * - - 50 ) AS col0
----
97

query I rowsort
SELECT ( - 65 ) * - 75
----
4875

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT 37 * MAX( + + 54 ) * + 59 col2
----
117882

skipif mysql # not compatible
query I rowsort label-3261
SELECT 37 * MAX ( + + 54 ) * + 59 col2
----
117882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3262
SELECT CAST( NULL AS SIGNED ) - - COUNT( * ) / + - 6 - - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3262
SELECT CAST ( NULL AS INTEGER ) - - COUNT ( * ) / + - 6 - - 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3263
SELECT DISTINCT - 79 + - + 22 + - COUNT( * ) / + CAST( NULL AS SIGNED ) / - NULLIF ( 5, 74 * 95 + 35 ) * 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT - 79 + - + 22 + - COUNT ( * ) / + CAST ( NULL AS INTEGER ) / - NULLIF ( 5, 74 * 95 + 35 ) * 15 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3264
SELECT ALL COUNT( * ) + CAST( + ( COUNT( * ) ) AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL COUNT ( * ) + CAST ( + ( COUNT ( * ) ) AS INTEGER )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3265
SELECT - ( - 38 ) DIV + 77 * 96 + - 13 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-3265
SELECT - ( - 38 ) / + 77 * 96 + - 13 AS col1
----
-13

query I rowsort
SELECT ALL - - 44 + - ( 89 )
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-3267
SELECT 41 DIV + ( 20 ) + - 72 - - - COALESCE ( - CASE WHEN + 62 IS NOT NULL THEN - 35 END, + 17 ) + 27 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-3267
SELECT 41 / + ( 20 ) + - 72 - - - COALESCE ( - CASE WHEN + 62 IS NOT NULL THEN - 35 END, + 17 ) + 27 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT 35 * 12 - + COUNT( * )
----
419

skipif mysql # not compatible
query I rowsort label-3268
SELECT 35 * 12 - + COUNT ( * )
----
419

query I rowsort
SELECT + - 16 col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT COUNT( * ) + - 59 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-3270
SELECT COUNT ( * ) + - 59 AS col0
----
-58

query I rowsort
SELECT ALL - + ( 42 ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT 91 * + - 29 + + SUM( ALL 7 ) + + NULLIF ( + ( + 79 ), + COALESCE ( 27, COALESCE ( + 32, 30, + 57 ) * 70 ) ) AS col0
----
-2553

skipif mysql # not compatible
query I rowsort label-3272
SELECT 91 * + - 29 + + SUM ( ALL 7 ) + + NULLIF ( + ( + 79 ), + COALESCE ( 27, COALESCE ( + 32, 30, + 57 ) * 70 ) ) AS col0
----
-2553

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3273
SELECT DISTINCT - + 18 + - 94 DIV - + COALESCE ( - 63, - 36, - 90 + SUM( ALL - 33 ) ) + 32
----
13

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT - + 18 + - 94 / - + COALESCE ( - 63, - 36, - 90 + SUM ( ALL - 33 ) ) + 32
----
13

query I rowsort
SELECT ALL + + 56 + + NULLIF ( + 16, 0 * 24 + 15 )
----
72

query I rowsort
SELECT + 47 * - 40 + 90 - - ( + + 85 ) + 57 AS col1
----
-1648

query I rowsort
SELECT ALL - - 44 AS col0
----
44

query I rowsort
SELECT DISTINCT - ( - 10 ) AS col2
----
10

query II rowsort
SELECT DISTINCT - 21, - 74 AS col1
----
-21
-74

query I rowsort
SELECT ALL - - ( 86 ) + + - 11 - + 49
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3280
SELECT + 74 AS col1, 32 + COUNT( * ) - - CAST( - 39 AS SIGNED ) AS col1
----
74
-6

skipif mysql # not compatible
query II rowsort label-3280
SELECT + 74 AS col1, 32 + COUNT ( * ) - - CAST ( - 39 AS INTEGER ) AS col1
----
74
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT + 67 + + 76 + + 12 + CAST( NULL AS SIGNED ) / - + 1 + - 60 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT + 67 + + 76 + + 12 + CAST ( NULL AS INTEGER ) / - + 1 + - 60 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT 67 * + MIN( 48 ) AS col1
----
3216

skipif mysql # not compatible
query I rowsort label-3282
SELECT 67 * + MIN ( 48 ) AS col1
----
3216

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT COUNT( * ) + + 30 * + - 16 * + 79 + + COUNT( * ) + 18 * 17
----
-37612

skipif mysql # not compatible
query I rowsort label-3283
SELECT COUNT ( * ) + + 30 * + - 16 * + 79 + + COUNT ( * ) + 18 * 17
----
-37612

onlyif mysql # aggregate syntax: 
query II rowsort label-3284
SELECT ALL 99 AS col2, + 15 * + + COUNT( * ) * + 3 AS col1
----
99
45

skipif mysql # not compatible
query II rowsort label-3284
SELECT ALL 99 AS col2, + 15 * + + COUNT ( * ) * + 3 AS col1
----
99
45

onlyif mysql # aggregate syntax: 
query II rowsort label-3285
SELECT - 3 AS col1, COUNT( * ) + 64
----
-3
65

skipif mysql # not compatible
query II rowsort label-3285
SELECT - 3 AS col1, COUNT ( * ) + 64
----
-3
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT 96 + + COALESCE ( + COALESCE ( NULLIF ( + + 36, - + COALESCE ( COUNT( * ), + ( + 90 ), - 48 ) ), 62, 90, - 6 ), CASE - 36 WHEN + ( + 66 ) + - ( 16 ) * COALESCE ( 98, ( 0 ), + 75 * - 1 ) THEN NULL ELSE 55 * - 42 + 22 END * 48 ) + - 0 col1
----
132

skipif mysql # not compatible
query I rowsort label-3286
SELECT 96 + + COALESCE ( + COALESCE ( NULLIF ( + + 36, - + COALESCE ( COUNT ( * ), + ( + 90 ), - 48 ) ), 62, 90, - 6 ), CASE - 36 WHEN + ( + 66 ) + - ( 16 ) * COALESCE ( 98, ( 0 ), + 75 * - 1 ) THEN NULL ELSE 55 * - 42 + 22 END * 48 ) + - 0 col1
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-3287
SELECT ALL - 77 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL - 77 / + 98
----
0

query I rowsort
SELECT 12 * + 58 * 48 AS col0
----
33408

query I rowsort
SELECT 83 + - - 12 AS col1
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3290
SELECT DISTINCT 56 DIV - COUNT( * ) AS col2, 53
----
-56
53

skipif mysql # not compatible
query II rowsort label-3290
SELECT DISTINCT 56 / - COUNT ( * ) AS col2, 53
----
-56
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT MAX( DISTINCT - 73 ) + + 29
----
-44

skipif mysql # not compatible
query I rowsort label-3291
SELECT MAX ( DISTINCT - 73 ) + + 29
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3292
SELECT 78 AS col0, - 51 + - + 36 * - COALESCE ( + CAST( NULL AS SIGNED ), + + 96 * ( COUNT( * ) - 36 ) - NULLIF ( - 84, + COUNT( * ) + + 74 * + CAST( NULL AS SIGNED ) ) * 21 )
----
78
-57507

skipif mysql # not compatible
query II rowsort label-3292
SELECT 78 AS col0, - 51 + - + 36 * - COALESCE ( + CAST ( NULL AS INTEGER ), + + 96 * ( COUNT ( * ) - 36 ) - NULLIF ( - 84, + COUNT ( * ) + + 74 * + CAST ( NULL AS INTEGER ) ) * 21 )
----
78
-57507

query I rowsort
SELECT 31 + 16 * + 12 * + - 22
----
-4193

onlyif mysql # aggregate syntax: 
query II rowsort label-3294
SELECT ALL 22 AS col2, - ( 90 ) - + 46 * - + MIN( ALL - - 4 )
----
22
94

skipif mysql # not compatible
query II rowsort label-3294
SELECT ALL 22 AS col2, - ( 90 ) - + 46 * - + MIN ( ALL - - 4 )
----
22
94

query I rowsort
SELECT DISTINCT CASE + 98 WHEN - 99 THEN - 90 * + + 83 ELSE + + 80 END * - 99 AS col2
----
-7920

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT ALL ( - 75 ) + + COUNT( ALL - 28 ) + - + 6 + + 53
----
-27

skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL ( - 75 ) + + COUNT ( ALL - 28 ) + - + 6 + + 53
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT DISTINCT + CASE + + ( - + 1 ) WHEN - 78 THEN - 77 ELSE + MIN( ALL - 58 ) END * 16
----
-928

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT + CASE + + ( - + 1 ) WHEN - 78 THEN - 77 ELSE + MIN ( ALL - 58 ) END * 16
----
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT DISTINCT COALESCE ( - 86, + - 94 + + COUNT( * ) ) + - - CASE + - 15 WHEN + 84 THEN NULL ELSE 36 END
----
-50

skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT COALESCE ( - 86, + - 94 + + COUNT ( * ) ) + - - CASE + - 15 WHEN + 84 THEN NULL ELSE 36 END
----
-50

query I rowsort
SELECT DISTINCT 90 + - ( 5 )
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3300
SELECT ALL ( + CAST( NULL AS SIGNED ) ) + + CASE SUM( ALL + 19 ) WHEN - CASE CAST( NULL AS SIGNED ) WHEN + ( 27 ) THEN 89 * + 88 WHEN 82 THEN NULL ELSE + 90 / 73 - 8 * 68 END THEN NULL ELSE + 4 + - 86 * - 60 END * + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) + + CASE SUM ( ALL + 19 ) WHEN - CASE CAST ( NULL AS INTEGER ) WHEN + ( 27 ) THEN 89 * + 88 WHEN 82 THEN NULL ELSE + 90 / 73 - 8 * 68 END THEN NULL ELSE + 4 + - 86 * - 60 END * + 58
----
NULL

query I rowsort
SELECT DISTINCT ( - 35 ) + + 19 AS col0
----
-16

query I rowsort
SELECT ALL - 0 + + - 60
----
-60

query I rowsort
SELECT 72 * + 87
----
6264

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT ALL + SUM( - 4 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL + SUM ( - 4 ) AS col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3305
SELECT SUM( + CASE + 74 WHEN 54 THEN NULL WHEN 67 THEN - + 57 + + 92 * - CAST( NULL AS SIGNED ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3305
SELECT SUM ( + CASE + 74 WHEN 54 THEN NULL WHEN 67 THEN - + 57 + + 92 * - CAST ( NULL AS INTEGER ) END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3306
SELECT + - 53 / - COUNT( * ) + - CAST( NULL AS SIGNED ) * - 32 + - CASE + 12 WHEN + CAST( NULL AS SIGNED ) * - 51 THEN - 72 - 13 END + + 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3306
SELECT + - 53 / - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - 32 + - CASE + 12 WHEN + CAST ( NULL AS INTEGER ) * - 51 THEN - 72 - 13 END + + 78 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3307
SELECT ALL 28 DIV 3 * - + 5 - + 43 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL 28 / 3 * - + 5 - + 43 AS col2
----
-88

query I rowsort
SELECT DISTINCT + 7 + - + 61 + - 98 + - 20 AS col0
----
-172

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3309
SELECT + CAST( NULL AS DECIMAL ), + 78 AS col0
----
NULL
78

skipif mysql # not compatible
query II rowsort label-3309
SELECT + CAST ( NULL AS REAL ), + 78 AS col0
----
NULL
78

query I rowsort
SELECT ALL + 74 - 64
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT - MAX( ALL + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-3311
SELECT - MAX ( ALL + 80 )
----
-80

query I rowsort
SELECT 20 * 84
----
1680

query I rowsort
SELECT + 8 * - 17 * - 1
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3314
SELECT + - CASE 78 WHEN + MAX( - CAST( + + 78 AS SIGNED ) ) THEN + 68 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT + - CASE 78 WHEN + MAX ( - CAST ( + + 78 AS INTEGER ) ) THEN + 68 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT + ( - CASE + 47 WHEN + 81 * - - 51 + + 29 - 33 / 52 THEN 78 + - COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT + ( - CASE + 47 WHEN + 81 * - - 51 + + 29 - 33 / 52 THEN 78 + - COUNT ( * ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT ALL - MIN( 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL - MIN ( 95 ) AS col0
----
-95

query I rowsort
SELECT 87 - 32 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT DISTINCT - NULLIF ( + - NULLIF ( - - 90, - 82 * - COUNT( * ) ), - ( + 31 ) + + ( 40 ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-3318
SELECT DISTINCT - NULLIF ( + - NULLIF ( - - 90, - 82 * - COUNT ( * ) ), - ( + 31 ) + + ( 40 ) ) AS col2
----
90

query II rowsort
SELECT 2 * - - 38 AS col2, ( - 64 ) col0
----
76
-64

query II rowsort
SELECT 86 + + + 66, - 67 AS col1
----
152
-67

query I rowsort
SELECT ALL - 72 * + - 67 AS col2
----
4824

onlyif mysql # aggregate syntax: 
query II rowsort label-3322
SELECT 92 * - COUNT( * ) col0, 30 AS col2
----
-92
30

skipif mysql # not compatible
query II rowsort label-3322
SELECT 92 * - COUNT ( * ) col0, 30 AS col2
----
-92
30

query I rowsort
SELECT 0 * 68 * + 92 + 92 + - 47 + - 29 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT ALL + 0 + 72 * + COUNT( * ) + + 93 * 62 + 92 AS col0
----
5930

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL + 0 + 72 * + COUNT ( * ) + + 93 * 62 + 92 AS col0
----
5930

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT ALL - MAX( 58 ) * 11
----
-638

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL - MAX ( 58 ) * 11
----
-638

onlyif mysql # DIV for integer division: 
query I rowsort label-3326
SELECT ALL 38 DIV + 31 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL 38 / + 31 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3327
SELECT - 43 DIV + 79 * + 38 * ( - 68 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3327
SELECT - 43 / + 79 * + 38 * ( - 68 ) AS col0
----
0

query I rowsort
SELECT DISTINCT + 83 + - CASE + 24 WHEN - 75 * AVG ( DISTINCT - 72 ) THEN - 44 * 6 + + 52 END * 85 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3329
SELECT DISTINCT - NULLIF ( + - 98, - 63 ) DIV - 17 - 63 * 49
----
-3092

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT - NULLIF ( + - 98, - 63 ) / - 17 - 63 * 49
----
-3092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3330
SELECT - 6 DIV 96 * + + 79 + + MIN( DISTINCT 37 )
----
37

skipif mysql # not compatible
query I rowsort label-3330
SELECT - 6 / 96 * + + 79 + + MIN ( DISTINCT 37 )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-3331
SELECT + ( + 3 ) DIV + ( - - 44 ) * + - 35 * - 9 + + - 15 + + 66 DIV + 72 + 39 * - 71 AS col0
----
-2784

skipif mysql # not compatible
query I rowsort label-3331
SELECT + ( + 3 ) / + ( - - 44 ) * + - 35 * - 9 + + - 15 + + 66 / + 72 + 39 * - 71 AS col0
----
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT ALL MAX( ALL + 8 ) + + + COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL MAX ( ALL + 8 ) + + + COUNT ( * ) AS col0
----
9

query II rowsort
SELECT ALL - 94 * + - 62 AS col0, 76
----
5828
76

onlyif mysql # aggregate syntax: 
query II rowsort label-3334
SELECT + + 83 * + + COUNT( * ) AS col1, - 30 + 72
----
83
42

skipif mysql # not compatible
query II rowsort label-3334
SELECT + + 83 * + + COUNT ( * ) AS col1, - 30 + 72
----
83
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3335
SELECT ALL - 5 * - CAST( + COALESCE ( - 36, + 26 DIV 69 + - + ( - 90 ) ) AS SIGNED ) - - 96 DIV + 97 AS col2
----
-180

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL - 5 * - CAST ( + COALESCE ( - 36, + 26 / 69 + - + ( - 90 ) ) AS INTEGER ) - - 96 / + 97 AS col2
----
-180

query II rowsort
SELECT + 36 + 69 AS col0, - 85
----
105
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3337
SELECT + COUNT( * ) * + 32 + - - CAST( 49 AS SIGNED ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3337
SELECT + COUNT ( * ) * + 32 + - - CAST ( 49 AS INTEGER ) AS col2
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3338
SELECT ALL ( 40 ) DIV + + COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-3338
SELECT ALL ( 40 ) / + + COUNT ( * ) AS col0
----
40

query I rowsort
SELECT ALL + ( - + 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT + COUNT( * ) + 64 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3340
SELECT + COUNT ( * ) + 64 AS col0
----
65

query I rowsort
SELECT ALL 46 * + 82 col0
----
3772

query II rowsort
SELECT + 16 + - 39 * 7 AS col1, 44 col1
----
-257
44

query I rowsort
SELECT ALL 39 * 70 AS col1
----
2730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3344
SELECT + NULLIF ( - - 43, - 36 * 61 + ( 2 ) ) DIV - NULLIF ( + 65, 90 * COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-3344
SELECT + NULLIF ( - - 43, - 36 * 61 + ( 2 ) ) / - NULLIF ( + 65, 90 * COUNT ( * ) )
----
0

query I rowsort
SELECT - 27 * + + 15 AS col0
----
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT DISTINCT + MAX( - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT + MAX ( - 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT + 98 * MAX( DISTINCT 16 ) * - 53 col0
----
-83104

skipif mysql # not compatible
query I rowsort label-3347
SELECT + 98 * MAX ( DISTINCT 16 ) * - 53 col0
----
-83104

query I rowsort
SELECT - 3 * 50
----
-150

query I rowsort
SELECT ALL - NULLIF ( - 61, 54 ) * 82 * - ( + + 37 ) + - - 30 AS col2
----
-185044

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT ALL + SUM( + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL + SUM ( + 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT SUM( + + 48 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-3351
SELECT SUM ( + + 48 ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT DISTINCT - 94 * + 84 + - MIN( ALL 18 ) * + - 36 AS col1
----
-7248

skipif mysql # not compatible
query I rowsort label-3352
SELECT DISTINCT - 94 * + 84 + - MIN ( ALL 18 ) * + - 36 AS col1
----
-7248

query I rowsort
SELECT DISTINCT ( 5 ) AS col1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3354
SELECT ALL + COUNT( * ) * 29 + - 42 AS col1, + 88 - COUNT( * ) - + COUNT( * ) + - ( 48 ) - + 9 DIV + 42 AS col1
----
-13
38

skipif mysql # not compatible
query II rowsort label-3354
SELECT ALL + COUNT ( * ) * 29 + - 42 AS col1, + 88 - COUNT ( * ) - + COUNT ( * ) + - ( 48 ) - + 9 / + 42 AS col1
----
-13
38

query I rowsort
SELECT - 67 * - 73
----
4891

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT ALL + 62 * 30 + + SUM( - + 41 ) * 84
----
-1584

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL + 62 * 30 + + SUM ( - + 41 ) * 84
----
-1584

query I rowsort
SELECT ALL + 69 + 83 AS col2
----
152

query I rowsort
SELECT ALL - 42 * 48
----
-2016

query I rowsort
SELECT + 31 + + 36 AS col1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3360
SELECT - 37 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT - 37 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT - MIN( ALL - 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-3361
SELECT - MIN ( ALL - 74 ) AS col0
----
74

query I rowsort
SELECT ALL ( - 88 ) AS col0
----
-88

query I rowsort
SELECT - 8 + 46 AS col2
----
38

query I rowsort
SELECT ( 52 )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3365
SELECT ALL - - COUNT( * ) + 56 DIV ( - 26 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL - - COUNT ( * ) + 56 / ( - 26 ) AS col0
----
-1

query I rowsort
SELECT - - 62 + - 8
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT DISTINCT - 56 * - 65 + NULLIF ( + 39, + COUNT( * ) * 99 * + 22 )
----
3679

skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT - 56 * - 65 + NULLIF ( + 39, + COUNT ( * ) * 99 * + 22 )
----
3679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3368
SELECT DISTINCT - + AVG ( - - CAST( NULL AS SIGNED ) ) - - 17 * - ( - + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT - + AVG ( - - CAST ( NULL AS INTEGER ) ) - - 17 * - ( - + COUNT ( * ) )
----
NULL

query I rowsort
SELECT - + 29 * + + 12 col0
----
-348

query I rowsort
SELECT ALL ( + 82 ) col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT - - COUNT( * ) + - - 39 + - + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-3371
SELECT - - COUNT ( * ) + - - 39 + - + COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT ALL + 7 - - + COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL + 7 - - + COUNT ( * ) AS col1
----
8

query I rowsort
SELECT - + 37 + - - 93
----
56

query I rowsort
SELECT ALL 93 - + + 41
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT - + 68 * + CASE - 97 WHEN 2 * - + ( + - 69 ) + + - COUNT( DISTINCT - 74 ) + + 83 * 0 THEN - NULLIF ( + 88, 17 ) + - 17 / 82 WHEN + 88 THEN + 54 END - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3375
SELECT - + 68 * + CASE - 97 WHEN 2 * - + ( + - 69 ) + + - COUNT ( DISTINCT - 74 ) + + 83 * 0 THEN - NULLIF ( + 88, 17 ) + - 17 / 82 WHEN + 88 THEN + 54 END - 70
----
NULL

query I rowsort
SELECT + 67 * + + 22
----
1474

onlyif mysql # DIV for integer division: 
query I rowsort label-3377
SELECT ALL + 57 DIV - + 89 * + - 81
----
0

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL + 57 / - + 89 * + - 81
----
0

query I rowsort
SELECT + 76 + - 87
----
-11

query II rowsort
SELECT - + 16 col2, 66
----
-16
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3380
SELECT - + COUNT( * ), + CASE - 17 WHEN 71 THEN - 35 * 65 END AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3380
SELECT - + COUNT ( * ), + CASE - 17 WHEN 71 THEN - 35 * 65 END AS col1
----
-1
NULL

query II rowsort
SELECT + 31 AS col2, + 20 + - 73 + + 80 + 80 * + 69 * + 94 + + 74 * - 50 AS col1
----
31
515207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3382
SELECT - - ( 2 ) DIV COUNT( * ) + - 25 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-3382
SELECT - - ( 2 ) / COUNT ( * ) + - 25 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT DISTINCT MAX( ALL - - 55 ) * + ( + - COUNT( * ) ) + 30 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT MAX ( ALL - - 55 ) * + ( + - COUNT ( * ) ) + 30 AS col2
----
-25

query I rowsort
SELECT ALL + NULLIF ( - 69, + 48 * 56 * 26 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT ALL 96 * 67 + 38 * + COUNT( * ) * - 54 * - - 26 + - ( + 78 )
----
-46998

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL 96 * 67 + 38 * + COUNT ( * ) * - 54 * - - 26 + - ( + 78 )
----
-46998

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT ALL + NULLIF ( - NULLIF ( ( COUNT( - ( COALESCE ( 99, - 94 * 55, 71 ) ) ) ), 42 ), 2 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL + NULLIF ( - NULLIF ( ( COUNT ( - ( COALESCE ( 99, - 94 * 55, 71 ) ) ) ), 42 ), 2 ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3387
SELECT + CAST( CASE MAX( 58 ) WHEN - + 78 THEN - ( 29 ) ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3387
SELECT + CAST ( CASE MAX ( 58 ) WHEN - + 78 THEN - ( 29 ) ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT + 16 * + MAX( + - 31 )
----
-496

skipif mysql # not compatible
query I rowsort label-3388
SELECT + 16 * + MAX ( + - 31 )
----
-496

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT - COUNT( * ) - - 19 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-3389
SELECT - COUNT ( * ) - - 19 AS col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3390
SELECT + 28 * + + 59 * - 89 - 76 - + 86 - 2 + + COUNT( * ) - + - ( + CAST( NULL AS SIGNED ) ) * 4 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT + 28 * + + 59 * - 89 - 76 - + 86 - 2 + + COUNT ( * ) - + - ( + CAST ( NULL AS INTEGER ) ) * 4 * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3391
SELECT NULLIF ( + NULLIF ( + + COUNT( * ), + + 64 * COUNT( * ) * - + COUNT( * ) * + AVG ( ALL + 83 ) ), 51 ) DIV + 43 col0
----
0

skipif mysql # not compatible
query I rowsort label-3391
SELECT NULLIF ( + NULLIF ( + + COUNT ( * ), + + 64 * COUNT ( * ) * - + COUNT ( * ) * + AVG ( ALL + 83 ) ), 51 ) / + 43 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3392
SELECT ALL 68 + - 74 * - 37 + ( - + 39 ) * + - 25 - - 69 DIV - CAST( 39 AS SIGNED ) + - 23
----
3757

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL 68 + - 74 * - 37 + ( - + 39 ) * + - 25 - - 69 / - CAST ( 39 AS INTEGER ) + - 23
----
3757

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT DISTINCT COUNT( * ) + - 30
----
-29

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT COUNT ( * ) + - 30
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT DISTINCT 97 + + + SUM( DISTINCT 30 ) + COUNT( * ) * - ( MIN( - - 28 ) ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-3394
SELECT DISTINCT 97 + + + SUM ( DISTINCT 30 ) + COUNT ( * ) * - ( MIN ( - - 28 ) ) AS col0
----
99

query I rowsort
SELECT COALESCE ( 32, + 82 ) + + 32 + 75 AS col0
----
139

query I rowsort
SELECT ALL 32 + + 84
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT DISTINCT CASE - COUNT( * ) WHEN - + AVG ( - + 17 ) THEN - + 90 WHEN + COUNT( + 33 ) THEN - + 41 ELSE - 6 END * ( + 18 * 61 )
----
-6588

skipif mysql # not compatible
query I rowsort label-3397
SELECT DISTINCT CASE - COUNT ( * ) WHEN - + AVG ( - + 17 ) THEN - + 90 WHEN + COUNT ( + 33 ) THEN - + 41 ELSE - 6 END * ( + 18 * 61 )
----
-6588

query I rowsort
SELECT NULLIF ( - 63, - - 50 + - 44 ) * 25 AS col2
----
-1575

onlyif mysql # DIV for integer division: 
query I rowsort label-3399
SELECT NULLIF ( + 18, - - COALESCE ( - 47, - 69, + 14 ) * - - 55 ) DIV ( + - ( 10 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3399
SELECT NULLIF ( + 18, - - COALESCE ( - 47, - 69, + 14 ) * - - 55 ) / ( + - ( 10 ) ) AS col2
----
-1

query I rowsort
SELECT 21 + 95
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3401
SELECT DISTINCT COUNT( * ) - - 82 + 47 * + CAST( NULL AS SIGNED ) * - 43 * 46 + COUNT( * ) * + 89 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT COUNT ( * ) - - 82 + 47 * + CAST ( NULL AS INTEGER ) * - 43 * 46 + COUNT ( * ) * + 89 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT ( 44 ) * - - 89 * - + COUNT( * )
----
-3916

skipif mysql # not compatible
query I rowsort label-3402
SELECT ( 44 ) * - - 89 * - + COUNT ( * )
----
-3916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3403
SELECT 72 + - + 45 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3403
SELECT 72 + - + 45 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT ALL - 20 - + COALESCE ( + COUNT( * ), 53 ) * - MAX( DISTINCT - 36 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL - 20 - + COALESCE ( + COUNT ( * ), 53 ) * - MAX ( DISTINCT - 36 ) AS col2
----
-56

query I rowsort
SELECT ALL + 27 * - 14
----
-378

query I rowsort
SELECT DISTINCT 81 - 6 - - 60 + - 75
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT DISTINCT - CASE NULLIF ( + - 90, - COUNT( * ) + 12 ) WHEN 78 / - - 34 * - + ( 23 ) * 5 + NULLIF ( 35 + ( - 49 + - 62 ), 57 ) THEN + 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT - CASE NULLIF ( + - 90, - COUNT ( * ) + 12 ) WHEN 78 / - - 34 * - + ( 23 ) * 5 + NULLIF ( 35 + ( - 49 + - 62 ), 57 ) THEN + 12 END
----
NULL

query I rowsort
SELECT - CASE 31 WHEN - + 76 * + + 49 THEN + 77 WHEN + - 41 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT 85 * - 93, 94 AS col2
----
-7905
94

query I rowsort
SELECT - + ( + - 97 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT COUNT( DISTINCT + 41 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3411
SELECT COUNT ( DISTINCT + 41 ) col0
----
1

query I rowsort
SELECT - 27 - 66 + ( + 35 ) AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3413
SELECT MAX( ALL + - 54 ) * CAST( - 98 AS SIGNED )
----
5292

skipif mysql # not compatible
query I rowsort label-3413
SELECT MAX ( ALL + - 54 ) * CAST ( - 98 AS INTEGER )
----
5292

query I rowsort
SELECT DISTINCT - - 0 + - 76 + - 94 * 18 AS col0
----
-1768

onlyif mysql # DIV for integer division: 
query I rowsort label-3415
SELECT + - 10 DIV 76 + - - 62 DIV - 69 * - - ( 97 ) + + 41 + + - 80 * 57 + 18
----
-4501

skipif mysql # not compatible
query I rowsort label-3415
SELECT + - 10 / 76 + - - 62 / - 69 * - - ( 97 ) + + 41 + + - 80 * 57 + 18
----
-4501

query I rowsort
SELECT 86 + - 75 AS col2
----
11

query I rowsort
SELECT 93 * 16 * + 82 * - 90 col0
----
-10981440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3418
SELECT 96 + - 1 DIV 84 + + COUNT( * ) + - 52 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-3418
SELECT 96 + - 1 / 84 + + COUNT ( * ) + - 52 AS col2
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3419
SELECT ALL + ( 72 ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL + ( 72 ) + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT DISTINCT - CASE - 32 WHEN 52 * - 22 + - COUNT( * ) THEN - 13 * + - 51 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT - CASE - 32 WHEN 52 * - 22 + - COUNT ( * ) THEN - 13 * + - 51 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT COUNT( * ) * + 29 col1
----
29

skipif mysql # not compatible
query I rowsort label-3421
SELECT COUNT ( * ) * + 29 col1
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-3422
SELECT DISTINCT - 79, COUNT( * ) - - 59 col2
----
-79
60

skipif mysql # not compatible
query II rowsort label-3422
SELECT DISTINCT - 79, COUNT ( * ) - - 59 col2
----
-79
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT ALL CASE - 49 WHEN 71 THEN - 76 ELSE NULL END * + ( + MIN( - + 74 ) ) / + 14 + 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL CASE - 49 WHEN 71 THEN - 76 ELSE NULL END * + ( + MIN ( - + 74 ) ) / + 14 + 78 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3424
SELECT 50 DIV 34 * + 9 + + 61 + + COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-3424
SELECT 50 / 34 * + 9 + + 61 + + COUNT ( * ) AS col2
----
71

query I rowsort
SELECT DISTINCT 80 + + 39 * + - 58 - 6 AS col2
----
-2188

query II rowsort
SELECT DISTINCT - 69 col0, NULLIF ( - + 62, 72 ) AS col2
----
-69
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT ALL + COUNT( * ) * - + 89 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL + COUNT ( * ) * - + 89 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-3428
SELECT 42 * + COUNT( * ) + 19 + - + 10 + - + 43 - 70 * 31 * - + 93, + 96 AS col1
----
201818
96

skipif mysql # not compatible
query II rowsort label-3428
SELECT 42 * + COUNT ( * ) + 19 + - + 10 + - + 43 - 70 * 31 * - + 93, + 96 AS col1
----
201818
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3429
SELECT DISTINCT CAST( NULL AS SIGNED ) - - + CASE 85 WHEN + COALESCE ( + COUNT( * ), - 65 ) THEN + - COUNT( * ) * + 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - + CASE 85 WHEN + COALESCE ( + COUNT ( * ), - 65 ) THEN + - COUNT ( * ) * + 90 END
----
NULL

query II rowsort
SELECT DISTINCT - 4, 97 AS col1
----
-4
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3431
SELECT COALESCE ( + - COUNT( + 56 ), + + ( + 70 ) * 10 + 77 ) * + ( + + 36 ) + + - CAST( 35 AS SIGNED ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-3431
SELECT COALESCE ( + - COUNT ( + 56 ), + + ( + 70 ) * 10 + 77 ) * + ( + + 36 ) + + - CAST ( 35 AS INTEGER ) AS col1
----
-71

query I rowsort
SELECT ALL 72 * - + 58
----
-4176

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT ( + + 11 ) + + - MAX( ALL 80 ) + + MIN( DISTINCT 10 ) + - - 20
----
-39

skipif mysql # not compatible
query I rowsort label-3433
SELECT ( + + 11 ) + + - MAX ( ALL 80 ) + + MIN ( DISTINCT 10 ) + - - 20
----
-39

query II rowsort
SELECT ALL 97, 86 AS col1
----
97
86

query I rowsort
SELECT DISTINCT - ( + COALESCE ( - 15, - 99, + ( - 0 ) + 27 ) ) AS col1
----
15

query I rowsort
SELECT ALL + 90 * - 53
----
-4770

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3437
SELECT CAST( NULL AS DECIMAL ) + + 95 * + 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT CAST ( NULL AS REAL ) + + 95 * + 56 AS col1
----
NULL

query I rowsort
SELECT - 66 * + ( - 87 ) + + + 33 - - 86 AS col2
----
5861

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT ALL - 15 * - MIN( ALL 86 ) * - ( - ( + 80 ) )
----
103200

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL - 15 * - MIN ( ALL 86 ) * - ( - ( + 80 ) )
----
103200

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT DISTINCT COALESCE ( + 73, - 58, + 99 * - + 76 ) * + CASE + 48 WHEN 36 + 71 THEN + + MAX( DISTINCT 13 ) WHEN + 20 THEN 30 WHEN COUNT( * ) + ( 90 ) * + 92 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT COALESCE ( + 73, - 58, + 99 * - + 76 ) * + CASE + 48 WHEN 36 + 71 THEN + + MAX ( DISTINCT 13 ) WHEN + 20 THEN 30 WHEN COUNT ( * ) + ( 90 ) * + 92 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3441
SELECT CAST( NULL AS SIGNED ) + - - 5 * + 59 * + - 24 * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT CAST ( NULL AS INTEGER ) + - - 5 * + 59 * + - 24 * 12
----
NULL

query I rowsort
SELECT - 58 + - 40 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT + COUNT( * ) * + + ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3443
SELECT + COUNT ( * ) * + + ( - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT DISTINCT CASE - - ( 63 ) WHEN - + 98 + + - 86 * - - COALESCE ( NULLIF ( - 53, 5 * - - 95 ), 7 + + 58 ) THEN NULL ELSE - 32 + SUM( DISTINCT - 72 ) * - 6 END col1
----
400

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT CASE - - ( 63 ) WHEN - + 98 + + - 86 * - - COALESCE ( NULLIF ( - 53, 5 * - - 95 ), 7 + + 58 ) THEN NULL ELSE - 32 + SUM ( DISTINCT - 72 ) * - 6 END col1
----
400

query I rowsort
SELECT ALL - 74 + + 33 * 32
----
982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3446
SELECT COUNT( * ) + + COUNT( * ) * CAST( NULL AS SIGNED ) AS col1, + 6
----
NULL
6

skipif mysql # not compatible
query II rowsort label-3446
SELECT COUNT ( * ) + + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1, + 6
----
NULL
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3447
SELECT ALL + CAST( - 37 AS SIGNED ) * + 93
----
-3441

skipif mysql # not compatible
query I rowsort label-3447
SELECT ALL + CAST ( - 37 AS INTEGER ) * + 93
----
-3441

query I rowsort
SELECT ALL - 14 + - 76
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT - COUNT( ALL + 6 )
----
-1

skipif mysql # not compatible
query I rowsort label-3449
SELECT - COUNT ( ALL + 6 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3450
SELECT CAST( + + 25 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-3450
SELECT CAST ( + + 25 AS INTEGER )
----
25

query I rowsort
SELECT ALL + 39 + - 82
----
-43

query I rowsort
SELECT + - 33 * 93 * 33
----
-101277

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT - + NULLIF ( - - ( - + 74 ), - ( + + 92 ) ) AS col0
----
74

query I rowsort
SELECT - 87 + + - 21 + - 44
----
-152

query I rowsort
SELECT ALL - ( 30 ) + + 5 col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3457
SELECT DISTINCT - COUNT( * ) * + 70 + - CASE CAST( - 94 AS SIGNED ) WHEN + - ( + 24 ) THEN + 41 * + 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT - COUNT ( * ) * + 70 + - CASE CAST ( - 94 AS INTEGER ) WHEN + - ( + 24 ) THEN + 41 * + 61 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 76 * ( + - COALESCE ( + NULLIF ( + - 41, - 55 ), COALESCE ( + 99, - 23 ) ) ) + + - 50
----
3066

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT ALL - 73 * COUNT( * ) + - 97 AS col1
----
-170

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL - 73 * COUNT ( * ) + - 97 AS col1
----
-170

onlyif mysql # DIV for integer division: 
query I rowsort label-3460
SELECT - 27 DIV - 10 col1
----
2

skipif mysql # not compatible
query I rowsort label-3460
SELECT - 27 / - 10 col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3461
SELECT ALL - 82 DIV + 57 col1
----
-1

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL - 82 / + 57 col1
----
-1

query II rowsort
SELECT DISTINCT + 72 AS col2, - 16
----
72
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3463
SELECT ALL - COUNT( ALL CAST( - 93 AS SIGNED ) ) * - - COUNT( * ) - - - 96 col0
----
-97

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL - COUNT ( ALL CAST ( - 93 AS INTEGER ) ) * - - COUNT ( * ) - - - 96 col0
----
-97

query I rowsort
SELECT - 15 - 42
----
-57

query I rowsort
SELECT 55 * + 27 - + 70 * + ( + - 12 ) col0
----
2325

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT - 97 DIV - 20 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3466
SELECT - 97 / - 20 AS col0
----
4

query I rowsort
SELECT - 9 * 80 AS col0
----
-720

query II rowsort
SELECT DISTINCT + 88 col1, 0 col0
----
88
0

query I rowsort
SELECT ALL + ( + 10 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT DISTINCT + COUNT( 57 ) * - COUNT( * ) + + 1
----
0

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT + COUNT ( 57 ) * - COUNT ( * ) + + 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT ALL + SUM( ( - 39 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL + SUM ( ( - 39 ) )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT ALL + + CASE - - COUNT( * ) WHEN + 65 * + - 19 THEN + + 37 + - - 0 WHEN + + COALESCE ( + + COUNT( * ), - NULLIF ( 42, + 60 + - ( MIN( 69 ) ) ) * 7 ) THEN NULL ELSE NULL END * 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL + + CASE - - COUNT ( * ) WHEN + 65 * + - 19 THEN + + 37 + - - 0 WHEN + + COALESCE ( + + COUNT ( * ), - NULLIF ( 42, + 60 + - ( MIN ( 69 ) ) ) * 7 ) THEN NULL ELSE NULL END * 51 AS col2
----
NULL

query I rowsort
SELECT + + 50 * + 96
----
4800

query II rowsort
SELECT DISTINCT + 35 col1, - 40 AS col0
----
35
-40

query I rowsort
SELECT + NULLIF ( - - 74, + 3 )
----
74

query II rowsort
SELECT + 49, + 90 AS col2
----
49
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT + + COUNT( * ) - + + 33
----
-32

skipif mysql # not compatible
query I rowsort label-3477
SELECT + + COUNT ( * ) - + + 33
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-3478
SELECT ALL + 12, + 30 * COUNT( * ) AS col0
----
12
30

skipif mysql # not compatible
query II rowsort label-3478
SELECT ALL + 12, + 30 * COUNT ( * ) AS col0
----
12
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT - CASE - - COALESCE ( + - COUNT( * ), - 42 ) WHEN 38 THEN - 60 * - - SUM( 60 ) * + ( 55 ) * + 99 + + 62 * 38 WHEN + 41 * + 95 - + 87 THEN NULL END * ( - 44 * 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3479
SELECT - CASE - - COALESCE ( + - COUNT ( * ), - 42 ) WHEN 38 THEN - 60 * - - SUM ( 60 ) * + ( 55 ) * + 99 + + 62 * 38 WHEN + 41 * + 95 - + 87 THEN NULL END * ( - 44 * 31 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT ALL 26 + - + SUM( 12 )
----
14

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL 26 + - + SUM ( 12 )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3481
SELECT DISTINCT + COUNT( * ) AS col2, CAST( - CASE - 52 WHEN 90 THEN NULL WHEN - + ( + 49 ) THEN - COUNT( * ) ELSE 3 * 12 END AS SIGNED )
----
1
-36

skipif mysql # not compatible
query II rowsort label-3481
SELECT DISTINCT + COUNT ( * ) AS col2, CAST ( - CASE - 52 WHEN 90 THEN NULL WHEN - + ( + 49 ) THEN - COUNT ( * ) ELSE 3 * 12 END AS INTEGER )
----
1
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3482
SELECT ALL + COUNT( * ) + + + 22 + + 45 + + COALESCE ( 91, + 11 * - 15 * CAST( 98 AS SIGNED ) + 48 * CASE 13 WHEN - 56 + - 39 / + CASE + 66 / - 69 WHEN COUNT( * ) * - 12 THEN COUNT( * ) * - 5 END THEN - 31 ELSE 72 * + 35 END + - 45 ) + + 2 AS col0
----
161

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL + COUNT ( * ) + + + 22 + + 45 + + COALESCE ( 91, + 11 * - 15 * CAST ( 98 AS INTEGER ) + 48 * CASE 13 WHEN - 56 + - 39 / + CASE + 66 / - 69 WHEN COUNT ( * ) * - 12 THEN COUNT ( * ) * - 5 END THEN - 31 ELSE 72 * + 35 END + - 45 ) + + 2 AS col0
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT ALL COUNT( DISTINCT + 41 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL COUNT ( DISTINCT + 41 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT - + MIN( DISTINCT - 46 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-3484
SELECT - + MIN ( DISTINCT - 46 ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT + SUM( DISTINCT + 53 ) + 5
----
58

skipif mysql # not compatible
query I rowsort label-3485
SELECT + SUM ( DISTINCT + 53 ) + 5
----
58

query I rowsort
SELECT ALL ( 23 ) * 94
----
2162

query I rowsort
SELECT + 3 * + 11 - + 83 - 79 col1
----
-129

query I rowsort
SELECT + 72 * + ( - - 93 )
----
6696

onlyif mysql # aggregate syntax: 
query II rowsort label-3489
SELECT DISTINCT MAX( DISTINCT CASE + 77 WHEN - ( - 72 ) THEN - 39 END ) AS col2, + 82 + 93 + + 73 + + 81
----
NULL
329

skipif mysql # not compatible
query II rowsort label-3489
SELECT DISTINCT MAX ( DISTINCT CASE + 77 WHEN - ( - 72 ) THEN - 39 END ) AS col2, + 82 + 93 + + 73 + + 81
----
NULL
329

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT ALL COUNT( + 64 ) + - MIN( + + 79 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL COUNT ( + 64 ) + - MIN ( + + 79 ) AS col0
----
-78

query I rowsort
SELECT + 75 - + + 86 AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3492
SELECT ALL CAST( NULL AS SIGNED ) + - 82 + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL CAST ( NULL AS INTEGER ) + - 82 + 21
----
NULL

query I rowsort
SELECT + 51 - - 32 * - 58 AS col0
----
-1805

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT ALL CASE COUNT( * ) WHEN 16 + - - ( 94 ) THEN - 95 WHEN - 77 + 27 / + 92 / - 67 THEN NULL END + - COALESCE ( COALESCE ( + 91, 82, 65 ), COUNT( * ), - 87 + 61 ) * - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL CASE COUNT ( * ) WHEN 16 + - - ( 94 ) THEN - 95 WHEN - 77 + 27 / + 92 / - 67 THEN NULL END + - COALESCE ( COALESCE ( + 91, 82, 65 ), COUNT ( * ), - 87 + 61 ) * - 85 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3495
SELECT + 27 + + + CAST( NULL AS SIGNED ) AS col0, - ( 77 )
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-3495
SELECT + 27 + + + CAST ( NULL AS INTEGER ) AS col0, - ( 77 )
----
NULL
-77

query I rowsort
SELECT DISTINCT - 96 * - 42
----
4032

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT 87 DIV + 33 + 10
----
12

skipif mysql # not compatible
query I rowsort label-3497
SELECT 87 / + 33 + 10
----
12

query I rowsort
SELECT + 91 + - 98
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3499
SELECT CAST( - 0 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3499
SELECT CAST ( - 0 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT 60 * 34 + - - ( - 36 ) col0
----
2004

query I rowsort
SELECT - 73 - - 51
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT + 85 * + SUM( DISTINCT + 89 ) * - 4 AS col1
----
-30260

skipif mysql # not compatible
query I rowsort label-3502
SELECT + 85 * + SUM ( DISTINCT + 89 ) * - 4 AS col1
----
-30260

query I rowsort
SELECT - 91 * + 4
----
-364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3504
SELECT ALL + COALESCE ( 29, SUM( - 50 ) DIV - 30 * NULLIF ( - - 6, + 54 DIV + 63 + 82 + + 89 - + 69 ) - - 59 * + ( - 86 + 69 ), + 41 * 72 )
----
29

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL + COALESCE ( 29, SUM ( - 50 ) / - 30 * NULLIF ( - - 6, + 54 / + 63 + 82 + + 89 - + 69 ) - - 59 * + ( - 86 + 69 ), + 41 * 72 )
----
29

query II rowsort
SELECT ALL 43 * + - 94 AS col1, - 23 AS col1
----
-4042
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT ALL + NULLIF ( - 96, + CASE - - CASE - COUNT( ALL 90 ) WHEN 57 THEN + 92 - + COALESCE ( + 94, + 22 ) ELSE NULL END WHEN + 78 * 83 THEN + 83 ELSE + COUNT( * ) END )
----
-96

skipif mysql # not compatible
query I rowsort label-3506
SELECT ALL + NULLIF ( - 96, + CASE - - CASE - COUNT ( ALL 90 ) WHEN 57 THEN + 92 - + COALESCE ( + 94, + 22 ) ELSE NULL END WHEN + 78 * 83 THEN + 83 ELSE + COUNT ( * ) END )
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-3507
SELECT ALL + - COUNT( + - 98 ) AS col2, 70 - + 29 - - - 48
----
-1
-7

skipif mysql # not compatible
query II rowsort label-3507
SELECT ALL + - COUNT ( + - 98 ) AS col2, 70 - + 29 - - - 48
----
-1
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3508
SELECT DISTINCT + 84 * + COUNT( ALL + CAST( NULL AS SIGNED ) ) * 34 * 55 + + ( + - 66 ) + - + 24 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-3508
SELECT DISTINCT + 84 * + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * 34 * 55 + + ( + - 66 ) + - + 24 AS col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3509
SELECT - + 18 DIV + 98 * + + 81 * + 49
----
0

skipif mysql # not compatible
query I rowsort label-3509
SELECT - + 18 / + 98 * + + 81 * + 49
----
0

query I rowsort
SELECT ALL 98 * 65 + - + 52 AS col0
----
6318

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3511
SELECT - - 27 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3511
SELECT - - 27 + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL ( - 52 ) * 79 + + + 66 AS col0
----
-4042

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3513
SELECT 81 + - CAST( NULL AS SIGNED ) * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3513
SELECT 81 + - CAST ( NULL AS INTEGER ) * - 82
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3514
SELECT 70 - - CASE CASE 34 WHEN + CAST( - ( - 54 ) AS SIGNED ) * - - CASE ( + 7 ) WHEN + + 31 + + - ( 40 ) THEN 93 ELSE NULL END THEN NULL WHEN - MAX( DISTINCT - 75 ) * 43 - 3 * - 7 THEN NULL ELSE - 53 END WHEN - 80 + - 30 * 60 THEN - CAST( + 78 AS SIGNED ) END + 96 * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3514
SELECT 70 - - CASE CASE 34 WHEN + CAST ( - ( - 54 ) AS INTEGER ) * - - CASE ( + 7 ) WHEN + + 31 + + - ( 40 ) THEN 93 ELSE NULL END THEN NULL WHEN - MAX ( DISTINCT - 75 ) * 43 - 3 * - 7 THEN NULL ELSE - 53 END WHEN - 80 + - 30 * 60 THEN - CAST ( + 78 AS INTEGER ) END + 96 * + 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3515
SELECT DISTINCT + 81 + + 22 AS col2, CAST( MAX( + ( + 65 ) ) AS SIGNED ) + + CAST( NULL AS SIGNED ) col1
----
103
NULL

skipif mysql # not compatible
query II rowsort label-3515
SELECT DISTINCT + 81 + + 22 AS col2, CAST ( MAX ( + ( + 65 ) ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) col1
----
103
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3516
SELECT DISTINCT + - 81 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT DISTINCT + - 81 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3517
SELECT ALL + ( - COUNT( * ) ) col2, 53 * - ( - 65 ) * - 27 * + 59 AS col2
----
-1
-5487885

skipif mysql # not compatible
query II rowsort label-3517
SELECT ALL + ( - COUNT ( * ) ) col2, 53 * - ( - 65 ) * - 27 * + 59 AS col2
----
-1
-5487885

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT ALL COUNT( 60 ) * 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL COUNT ( 60 ) * 82 AS col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3519
SELECT ALL 91 AS col2, COUNT( * ) * ( + - 84 ) * - 22 + - 97 DIV 84
----
91
1847

skipif mysql # not compatible
query II rowsort label-3519
SELECT ALL 91 AS col2, COUNT ( * ) * ( + - 84 ) * - 22 + - 97 / 84
----
91
1847

query I rowsort
SELECT ALL + 55 - - 60 AS col1
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3521
SELECT - 95, + CAST( NULL AS SIGNED ) + + - NULLIF ( 33, + - COUNT( * ) ) AS col1
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-3521
SELECT - 95, + CAST ( NULL AS INTEGER ) + + - NULLIF ( 33, + - COUNT ( * ) ) AS col1
----
-95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT ALL COUNT( * ) * - + 93
----
-93

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL COUNT ( * ) * - + 93
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-3523
SELECT 11 DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-3523
SELECT 11 / + 57
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3524
SELECT COUNT( * ) DIV + 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3524
SELECT COUNT ( * ) / + 46 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL COUNT( * ) * + 40 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL COUNT ( * ) * + 40 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT 56 + + - 43 * - 77 + - - COUNT( * ) AS col2
----
3368

skipif mysql # not compatible
query I rowsort label-3526
SELECT 56 + + - 43 * - 77 + - - COUNT ( * ) AS col2
----
3368

query I rowsort
SELECT DISTINCT 21 * - 47 AS col1
----
-987

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3528
SELECT COUNT( * ) DIV - 27
----
0

skipif mysql # not compatible
query I rowsort label-3528
SELECT COUNT ( * ) / - 27
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3529
SELECT DISTINCT 62, - 0 + - - COUNT( * ) AS col1
----
62
1

skipif mysql # not compatible
query II rowsort label-3529
SELECT DISTINCT 62, - 0 + - - COUNT ( * ) AS col1
----
62
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT DISTINCT COALESCE ( + SUM( + 67 ), + 70 ) * 9 AS col1
----
603

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT COALESCE ( + SUM ( + 67 ), + 70 ) * 9 AS col1
----
603

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3531
SELECT DISTINCT 15 DIV - MAX( ALL - + 86 ), 85 AS col1
----
0
85

skipif mysql # not compatible
query II rowsort label-3531
SELECT DISTINCT 15 / - MAX ( ALL - + 86 ), 85 AS col1
----
0
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3532
SELECT 76 AS col2, + COALESCE ( - 2, + COUNT( * ) * - ( - - CASE 84 WHEN - 27 THEN - + 7 * - ( - MAX( ALL 42 ) ) * + 7 + + 69 DIV + COALESCE ( - 60, - ( - MAX( DISTINCT + 99 ) ) ) + - 58 WHEN 46 THEN + 46 END ) + + 30 ) + MAX( ALL 61 ) * 1 AS col1
----
76
59

skipif mysql # not compatible
query II rowsort label-3532
SELECT 76 AS col2, + COALESCE ( - 2, + COUNT ( * ) * - ( - - CASE 84 WHEN - 27 THEN - + 7 * - ( - MAX ( ALL 42 ) ) * + 7 + + 69 / + COALESCE ( - 60, - ( - MAX ( DISTINCT + 99 ) ) ) + - 58 WHEN 46 THEN + 46 END ) + + 30 ) + MAX ( ALL 61 ) * 1 AS col1
----
76
59

query I rowsort
SELECT 72 * + 97
----
6984

query I rowsort
SELECT NULLIF ( + 72, + 63 ) - - 27 + + 45
----
144

query I rowsort
SELECT ALL 90 * + + 30
----
2700

query I rowsort
SELECT + ( 83 ) + + 37
----
120

onlyif mysql # DIV for integer division: 
query II rowsort label-3537
SELECT + + 93 AS col0, 75 DIV + - 84 * - 5
----
93
0

skipif mysql # not compatible
query II rowsort label-3537
SELECT + + 93 AS col0, 75 / + - 84 * - 5
----
93
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3538
SELECT ALL + CAST( NULL AS DECIMAL ) + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL + CAST ( NULL AS REAL ) + - 78
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3539
SELECT - CAST( + + 90 AS SIGNED ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-3539
SELECT - CAST ( + + 90 AS INTEGER ) AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT DISTINCT + COUNT( * ) + 38
----
39

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT + COUNT ( * ) + 38
----
39

query I rowsort
SELECT DISTINCT - 34 * COALESCE ( - 77, 12 * + 65 + 23, 15 - - 7 ) AS col2
----
2618

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT ALL CASE - + 98 WHEN - 35 * 82 THEN NULL WHEN CASE 50 WHEN + - 81 THEN COALESCE ( CASE + + MAX( - 27 ) WHEN 14 THEN NULL WHEN + 93 THEN COUNT( ALL + ( + 12 ) ) END, COUNT( * ) ) * 80 + AVG ( DISTINCT 40 ) WHEN 89 THEN - COUNT( * ) END + COUNT( * ) THEN NULL WHEN + 17 * COUNT( * ) + - 8 / - 15 THEN SUM( - 10 ) ELSE NULL END + - 7 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL CASE - + 98 WHEN - 35 * 82 THEN NULL WHEN CASE 50 WHEN + - 81 THEN COALESCE ( CASE + + MAX ( - 27 ) WHEN 14 THEN NULL WHEN + 93 THEN COUNT ( ALL + ( + 12 ) ) END, COUNT ( * ) ) * 80 + AVG ( DISTINCT 40 ) WHEN 89 THEN - COUNT ( * ) END + COUNT ( * ) THEN NULL WHEN + 17 * COUNT ( * ) + - 8 / - 15 THEN SUM ( - 10 ) ELSE NULL END + - 7 col2
----
NULL

query I rowsort
SELECT + 44 * + 31 AS col0
----
1364

onlyif mysql # aggregate syntax: 
query II rowsort label-3544
SELECT + 34 AS col0, COUNT( 94 ) * - - 28 - - 86 * 52 AS col1
----
34
4500

skipif mysql # not compatible
query II rowsort label-3544
SELECT + 34 AS col0, COUNT ( 94 ) * - - 28 - - 86 * 52 AS col1
----
34
4500

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT ALL - + MAX( ALL + 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL - + MAX ( ALL + 8 )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3546
SELECT CASE + 7 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - + 97 THEN - 73 WHEN + - 70 THEN NULL ELSE NULL END * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3546
SELECT CASE + 7 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - + 97 THEN - 73 WHEN + - 70 THEN NULL ELSE NULL END * - 61
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3547
SELECT - 74 * CAST( + 29 AS SIGNED ) * - + CASE 41 WHEN - - 45 + 93 + 12 - 77 * + - 2 THEN - ( 87 ) * - 86 * 58 END + + ( COALESCE ( ( + 76 ), - 49 ) ) * + 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3547
SELECT - 74 * CAST ( + 29 AS INTEGER ) * - + CASE 41 WHEN - - 45 + 93 + 12 - 77 * + - 2 THEN - ( 87 ) * - 86 * 58 END + + ( COALESCE ( ( + 76 ), - 49 ) ) * + 10 AS col2
----
NULL

query I rowsort
SELECT 85 + - 75 AS col1
----
10

query I rowsort
SELECT 34 * + - 61
----
-2074

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3550
SELECT ALL + CASE + + 61 WHEN - - 95 THEN 73 + + COUNT( * ) ELSE - 21 + 69 END DIV + + COUNT( * ) + + + 37 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL + CASE + + 61 WHEN - - 95 THEN 73 + + COUNT ( * ) ELSE - 21 + 69 END / + + COUNT ( * ) + + + 37 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT DISTINCT - SUM( + - 32 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT - SUM ( + - 32 ) AS col2
----
32

query II rowsort
SELECT DISTINCT - 82 AS col0, 91 + + + 51
----
-82
142

query I rowsort
SELECT 11 + + + 51 AS col0
----
62

query I rowsort
SELECT 50 * - - 53
----
2650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3555
SELECT ALL - CAST( SUM( - 4 ) AS SIGNED ) * - ( + - NULLIF ( 48, 17 ) ) * NULLIF ( - + 26, - - ( - 26 ) + - - ( - 57 ) + + 81 - + 15 * 66 ) AS col0
----
-4992

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL - CAST ( SUM ( - 4 ) AS INTEGER ) * - ( + - NULLIF ( 48, 17 ) ) * NULLIF ( - + 26, - - ( - 26 ) + - - ( - 57 ) + + 81 - + 15 * 66 ) AS col0
----
-4992

query I rowsort
SELECT 21 + + + 76 * + 26
----
1997

onlyif mysql # aggregate syntax: 
query II rowsort label-3557
SELECT 40 * COUNT( * ) col0, - ( + 61 ) - + 91 + 90
----
40
-62

skipif mysql # not compatible
query II rowsort label-3557
SELECT 40 * COUNT ( * ) col0, - ( + 61 ) - + 91 + 90
----
40
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-3558
SELECT 46 - MIN( + ( + 95 ) ) AS col2, + 16 + 1
----
-49
17

skipif mysql # not compatible
query II rowsort label-3558
SELECT 46 - MIN ( + ( + 95 ) ) AS col2, + 16 + 1
----
-49
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3559
SELECT DISTINCT 74 DIV - 12 * - - COUNT( * ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-3559
SELECT DISTINCT 74 / - 12 * - - COUNT ( * ) col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT ALL 9 * 0 * COALESCE ( 78, 6, - 67 * COUNT( * ) ) * - + MAX( DISTINCT + - 26 )
----
0

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL 9 * 0 * COALESCE ( 78, 6, - 67 * COUNT ( * ) ) * - + MAX ( DISTINCT + - 26 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3561
SELECT ALL + 61 DIV SUM( 14 )
----
4

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL + 61 / SUM ( 14 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT SUM( DISTINCT + 41 ) + - 98
----
-57

skipif mysql # not compatible
query I rowsort label-3562
SELECT SUM ( DISTINCT + 41 ) + - 98
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3563
SELECT 0 - - - COUNT( * ) + 30 + + 34 * - + 17 AS col0, + 38 * + + CAST( 37 AS SIGNED )
----
-549
1406

skipif mysql # not compatible
query II rowsort label-3563
SELECT 0 - - - COUNT ( * ) + 30 + + 34 * - + 17 AS col0, + 38 * + + CAST ( 37 AS INTEGER )
----
-549
1406

onlyif mysql # aggregate syntax: 
query II rowsort label-3564
SELECT ALL MIN( - + 38 ) * + COUNT( * ) + + 72 AS col2, + 87
----
34
87

skipif mysql # not compatible
query II rowsort label-3564
SELECT ALL MIN ( - + 38 ) * + COUNT ( * ) + + 72 AS col2, + 87
----
34
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT MAX( DISTINCT - - 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-3565
SELECT MAX ( DISTINCT - - 89 ) AS col0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3566
SELECT - 53 * 51, - CAST( + - 3 AS SIGNED ) + + ( 11 ) AS col2
----
-2703
14

skipif mysql # not compatible
query II rowsort label-3566
SELECT - 53 * 51, - CAST ( + - 3 AS INTEGER ) + + ( 11 ) AS col2
----
-2703
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3567
SELECT - 62 DIV - COUNT( * ) + + 95 + 65 * 87 + + + CAST( + ( - - 76 ) AS SIGNED )
----
5888

skipif mysql # not compatible
query I rowsort label-3567
SELECT - 62 / - COUNT ( * ) + + 95 + 65 * 87 + + + CAST ( + ( - - 76 ) AS INTEGER )
----
5888

query I rowsort
SELECT DISTINCT - 11 * - + 49 + + - 62 + + 30 - - 85
----
592

query I rowsort
SELECT + COALESCE ( + NULLIF ( + 31, - 85 ), + 79 + + 10 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL 26 * 66 + NULLIF ( - 41, + MIN( + 36 ) * + NULLIF ( + 68, 4 ) ) AS col2
----
1675

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL 26 * 66 + NULLIF ( - 41, + MIN ( + 36 ) * + NULLIF ( + 68, 4 ) ) AS col2
----
1675

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT + + 25 + - + COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-3571
SELECT + + 25 + - + COUNT ( * ) AS col1
----
24

query I rowsort
SELECT + 12 * + 63 AS col0
----
756

query I rowsort
SELECT + + 75 + - 83
----
-8

query I rowsort
SELECT ALL - 6 * + + 84 * + 26
----
-13104

query I rowsort
SELECT + 69 * + ( - NULLIF ( + + 39, - - 72 ) )
----
-2691

query I rowsort
SELECT + CASE - 89 WHEN 9 THEN - 76 WHEN - 42 / + 78 + 4 THEN NULL ELSE NULL END + + 40 * 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3577
SELECT DISTINCT + + 26 * 74 * COUNT( * ) * 9 DIV + + ( ( - ( - 90 ) ) )
----
192

skipif mysql # not compatible
query I rowsort label-3577
SELECT DISTINCT + + 26 * 74 * COUNT ( * ) * 9 / + + ( ( - ( - 90 ) ) )
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT ALL + MAX( - 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL + MAX ( - 87 ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT + 92 + - COUNT( * ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-3579
SELECT + 92 + - COUNT ( * ) AS col0
----
91

query I rowsort
SELECT ALL - NULLIF ( 12, 48 ) - - + 60 + + 65 AS col2
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3581
SELECT - - 31 * - 73 + - 36 DIV + 46 * 61 * - COUNT( * ) * + 64
----
-2263

skipif mysql # not compatible
query I rowsort label-3581
SELECT - - 31 * - 73 + - 36 / + 46 * 61 * - COUNT ( * ) * + 64
----
-2263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3582
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN - - 94 THEN - + 3 WHEN + + COUNT( * ) THEN NULL WHEN + 80 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN - - 94 THEN - + 3 WHEN + + COUNT ( * ) THEN NULL WHEN + 80 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT - - CASE - COUNT( * ) WHEN - CASE - 83 WHEN CASE WHEN NULL <> + 86 THEN 19 * - - 39 + + 65 ELSE NULL END THEN - 79 WHEN - - 56 THEN + 45 END * - + 68 * + 98 THEN + 12 * + 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3583
SELECT - - CASE - COUNT ( * ) WHEN - CASE - 83 WHEN CASE WHEN NULL <> + 86 THEN 19 * - - 39 + + 65 ELSE NULL END THEN - 79 WHEN - - 56 THEN + 45 END * - + 68 * + 98 THEN + 12 * + 63 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3584
SELECT + - 48 + - 94 AS col2, - COALESCE ( - 98, + 67 - + 65, - - 10 + + COUNT( ALL - + 36 ) + 20 DIV - - 47 ) AS col2
----
-142
98

skipif mysql # not compatible
query II rowsort label-3584
SELECT + - 48 + - 94 AS col2, - COALESCE ( - 98, + 67 - + 65, - - 10 + + COUNT ( ALL - + 36 ) + 20 / - - 47 ) AS col2
----
-142
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT - 22 - 84 * + MAX( ALL - 57 ) AS col2
----
4766

skipif mysql # not compatible
query I rowsort label-3585
SELECT - 22 - 84 * + MAX ( ALL - 57 ) AS col2
----
4766

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT ALL COUNT( DISTINCT + 56 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL COUNT ( DISTINCT + 56 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT + 92 + + - COUNT( * ) + + ( - 63 ) + + + 17 * + ( 18 ) + + 80 * + 17 AS col0
----
1694

skipif mysql # not compatible
query I rowsort label-3587
SELECT + 92 + + - COUNT ( * ) + + ( - 63 ) + + + 17 * + ( 18 ) + + 80 * + 17 AS col0
----
1694

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT - CASE + 40 WHEN 43 / 44 * - COUNT( * ) + - - 40 + + + 21 THEN NULL WHEN - 81 * - + 13 THEN - 56 + - - COUNT( 53 ) END + 87 + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3588
SELECT - CASE + 40 WHEN 43 / 44 * - COUNT ( * ) + - - 40 + + + 21 THEN NULL WHEN - 81 * - + 13 THEN - 56 + - - COUNT ( 53 ) END + 87 + 23
----
NULL

query I rowsort
SELECT - 57 * 27
----
-1539

onlyif mysql # DIV for integer division: 
query I rowsort label-3590
SELECT DISTINCT + 46 DIV - 39
----
-1

skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT + 46 / - 39
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3591
SELECT ALL COUNT( * ), 94 * - 53 AS col0
----
1
-4982

skipif mysql # not compatible
query II rowsort label-3591
SELECT ALL COUNT ( * ), 94 * - 53 AS col0
----
1
-4982

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT - ( - + SUM( DISTINCT + 78 ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-3592
SELECT - ( - + SUM ( DISTINCT + 78 ) ) AS col1
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3593
SELECT DISTINCT 48 AS col1, + 1 * CASE + 55 WHEN - COALESCE ( + CAST( NULL AS DECIMAL ), - CAST( NULL AS SIGNED ) ) * - MAX( ALL 51 ) THEN 21 * - SUM( 75 ) END + + 4 + - + 67 AS col2
----
48
NULL

skipif mysql # not compatible
query II rowsort label-3593
SELECT DISTINCT 48 AS col1, + 1 * CASE + 55 WHEN - COALESCE ( + CAST ( NULL AS REAL ), - CAST ( NULL AS INTEGER ) ) * - MAX ( ALL 51 ) THEN 21 * - SUM ( 75 ) END + + 4 + - + 67 AS col2
----
48
NULL

query I rowsort
SELECT - 21 * 7 AS col0
----
-147

query I rowsort
SELECT ALL + 65 + + - 84 + + - COALESCE ( - - 10, + NULLIF ( + 42, - - 71 / - 3 ) ) + - 56
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT - COUNT( * ) + - + 4 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3596
SELECT - COUNT ( * ) + - + 4 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT ALL COUNT( + 51 )
----
1

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL COUNT ( + 51 )
----
1

query I rowsort
SELECT ALL - 29 + + 39 AS col0
----
10

query I rowsort
SELECT ALL ( + 20 )
----
20

query I rowsort
SELECT - ( + - CASE WHEN NOT NULLIF ( - - ( - 8 ), - + 27 ) BETWEEN - COALESCE ( - 48, 75 ) + 32 AND COALESCE ( - + 85, - - 28 ) THEN NULL ELSE + 37 END ) col2
----
NULL

query II rowsort
SELECT 1 AS col0, + 32 - + 20
----
1
12

query I rowsort
SELECT ALL + 57 * + 26 AS col2
----
1482

query I rowsort
SELECT ALL - 2 + + 88 col2
----
86

query I rowsort
SELECT DISTINCT + 48 + 75 AS col2
----
123

query II rowsort
SELECT - 25 col0, 88 AS col2
----
-25
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT - CASE + + NULLIF ( + + ( - 58 ), - 40 ) WHEN - 79 * - - 57 * - 48 / + MIN( ALL - 65 ) * 1 + + ( + 98 ) THEN + + 0 ELSE + 77 * 90 END * 59 col2
----
-408870

skipif mysql # not compatible
query I rowsort label-3606
SELECT - CASE + + NULLIF ( + + ( - 58 ), - 40 ) WHEN - 79 * - - 57 * - 48 / + MIN ( ALL - 65 ) * 1 + + ( + 98 ) THEN + + 0 ELSE + 77 * 90 END * 59 col2
----
-408870

query I rowsort
SELECT + 61 + + ( + 80 ) + 59
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL + 30 + + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL + 30 + + + COUNT ( * )
----
31

query I rowsort
SELECT ALL - 3 + + 59 AS col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-3610
SELECT ALL - + 38 DIV + - 25 - - - 56 * 54 - 45 + + 81 * - + 79 + + 62 DIV 46 AS col2
----
-9466

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL - + 38 / + - 25 - - - 56 * 54 - 45 + + 81 * - + 79 + + 62 / 46 AS col2
----
-9466

onlyif mysql # aggregate syntax: 
query II rowsort label-3611
SELECT - 51 * - - COUNT( * ) * 14, 33 * + - ( 90 ) + + 77 AS col2
----
-714
-2893

skipif mysql # not compatible
query II rowsort label-3611
SELECT - 51 * - - COUNT ( * ) * 14, 33 * + - ( 90 ) + + 77 AS col2
----
-714
-2893

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3612
SELECT DISTINCT + - CAST( + 80 AS SIGNED ) / COUNT( * ) + + 41 + - 20 * - 50 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT + - CAST ( + 80 AS INTEGER ) / COUNT ( * ) + + 41 + - 20 * - 50 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT DISTINCT + 18 DIV + - 74
----
0

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT + 18 / + - 74
----
0

query I rowsort
SELECT + 28 * - 14 - + 30 AS col2
----
-422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3615
SELECT ALL - + NULLIF ( + + CAST( NULL AS SIGNED ), 12 * + - 50 ) * + 46 + - ( - 50 ) + 96 + + 48 * - NULLIF ( 7, - + 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL - + NULLIF ( + + CAST ( NULL AS INTEGER ), 12 * + - 50 ) * + 46 + - ( - 50 ) + 96 + + 48 * - NULLIF ( 7, - + 60 )
----
NULL

query I rowsort
SELECT DISTINCT + ( + 90 ) col0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3617
SELECT NULLIF ( + ( - + 67 ), + CAST( NULL AS SIGNED ) )
----
-67

skipif mysql # not compatible
query I rowsort label-3617
SELECT NULLIF ( + ( - + 67 ), + CAST ( NULL AS INTEGER ) )
----
-67

query I rowsort
SELECT ALL + - 87 * 16 + 61 * - - 4 * - 43 - 6 + + - 67 + - - 31 AS col1
----
-11926

query I rowsort
SELECT ALL - + 20 * - 27 + - 41
----
499

query I rowsort
SELECT + 67 * - - 30 + - 86
----
1924

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT SUM( + + 47 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-3621
SELECT SUM ( + + 47 ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3622
SELECT DISTINCT + - 7 * - COUNT( * ) * + 88 AS col1, 79 AS col2
----
616
79

skipif mysql # not compatible
query II rowsort label-3622
SELECT DISTINCT + - 7 * - COUNT ( * ) * + 88 AS col1, 79 AS col2
----
616
79

query I rowsort
SELECT - + 94 * - 8 col2
----
752

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT ALL + - COUNT( - 91 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL + - COUNT ( - 91 ) AS col0
----
-1

query I rowsort
SELECT + ( - 20 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3626
SELECT DISTINCT + + CASE + - CAST( NULL AS DECIMAL ) WHEN COUNT( * ) * + - COUNT( + + 62 ) THEN - - NULLIF ( + - 86, - 40 * 23 ) + 88 * 47 WHEN + 54 * + 98 * - - 14 + 74 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3626
SELECT DISTINCT + + CASE + - CAST ( NULL AS REAL ) WHEN COUNT ( * ) * + - COUNT ( + + 62 ) THEN - - NULLIF ( + - 86, - 40 * 23 ) + 88 * 47 WHEN + 54 * + 98 * - - 14 + 74 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3627
SELECT + ( ( - 89 ) ) * - CAST( + - 36 AS SIGNED ) * + - 4 + - ( 37 ) + 76 AS col0
----
12855

skipif mysql # not compatible
query I rowsort label-3627
SELECT + ( ( - 89 ) ) * - CAST ( + - 36 AS INTEGER ) * + - 4 + - ( 37 ) + 76 AS col0
----
12855

query I rowsort
SELECT ALL 80 * - 83
----
-6640

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT COUNT( + ( - 36 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3629
SELECT COUNT ( + ( - 36 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT ALL 61 * + 20 * COUNT( * ) * + - 37 + + 36 AS col1
----
-45104

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL 61 * + 20 * COUNT ( * ) * + - 37 + + 36 AS col1
----
-45104

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT ALL - NULLIF ( - ( + COUNT( ALL 16 ) ), - + 14 * - - 70 ) * 60 + 94 AS col0
----
154

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL - NULLIF ( - ( + COUNT ( ALL 16 ) ), - + 14 * - - 70 ) * 60 + 94 AS col0
----
154

query II rowsort
SELECT ALL 52 AS col1, 27 + + - 41
----
52
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT MIN( ALL + 46 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-3633
SELECT MIN ( ALL + 46 ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT + 27 - - - MIN( - 83 ) + + - 76 * + - 42
----
3302

skipif mysql # not compatible
query I rowsort label-3634
SELECT + 27 - - - MIN ( - 83 ) + + - 76 * + - 42
----
3302

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT MIN( ALL - 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3635
SELECT MIN ( ALL - 1 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3636
SELECT ALL 97 + 77 * - + COALESCE ( - 44, - 44 + - 71 * COUNT( * ) ) + - 67 * - - 37 * NULLIF ( + 80, - ( + - COUNT( * ) ) * + 91 * + NULLIF ( + 9, - 53 DIV ( 45 * 1 ) - 84 ) DIV + 78 ) * CAST( - COUNT( * ) AS SIGNED ) + + COALESCE ( - 13, 61 DIV - ( 96 * + 99 ), - COUNT( * ) ) AS col0
----
201792

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL 97 + 77 * - + COALESCE ( - 44, - 44 + - 71 * COUNT ( * ) ) + - 67 * - - 37 * NULLIF ( + 80, - ( + - COUNT ( * ) ) * + 91 * + NULLIF ( + 9, - 53 / ( 45 * 1 ) - 84 ) / + 78 ) * CAST ( - COUNT ( * ) AS INTEGER ) + + COALESCE ( - 13, 61 / - ( 96 * + 99 ), - COUNT ( * ) ) AS col0
----
201792

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT + 3 + COUNT( * ) + MAX( 43 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-3637
SELECT + 3 + COUNT ( * ) + MAX ( 43 ) AS col1
----
47

query I rowsort
SELECT - 9 * - + ( 18 ) * + 97
----
15714

query II rowsort
SELECT 8 col0, + 24
----
8
24

query I rowsort
SELECT ALL 73 + + - 52
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT + 55 + 87 - + + MIN( - 29 ) + 54 AS col1
----
225

skipif mysql # not compatible
query I rowsort label-3641
SELECT + 55 + 87 - + + MIN ( - 29 ) + 54 AS col1
----
225

query I rowsort
SELECT ALL - 98 + - ( + + 35 ) AS col2
----
-133

query I rowsort
SELECT + 73 * + - 17 AS col2
----
-1241

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3644
SELECT DISTINCT + NULLIF ( + ( COUNT( * ) ), + 6 / + + 58 + - + ( + CAST( NULL AS SIGNED ) ) + - 73 - 85 * - 39 + - 74 + 39 ) + + 33 + - NULLIF ( - 31, + + 89 + COALESCE ( - 99 + - 40, CASE 29 WHEN - 14 * - 46 THEN + 71 WHEN - 64 THEN NULL END ) ) + + CASE 94 + + 82 * + 79 WHEN - MIN( DISTINCT + 91 ) THEN COUNT( * ) + + 65 END * 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT + NULLIF ( + ( COUNT ( * ) ), + 6 / + + 58 + - + ( + CAST ( NULL AS INTEGER ) ) + - 73 - 85 * - 39 + - 74 + 39 ) + + 33 + - NULLIF ( - 31, + + 89 + COALESCE ( - 99 + - 40, CASE 29 WHEN - 14 * - 46 THEN + 71 WHEN - 64 THEN NULL END ) ) + + CASE 94 + + 82 * + 79 WHEN - MIN ( DISTINCT + 91 ) THEN COUNT ( * ) + + 65 END * 89 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT DISTINCT CASE 37 WHEN + 46 THEN + + 97 WHEN - 62 THEN NULL ELSE + ( - - COUNT( * ) ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3645
SELECT DISTINCT CASE 37 WHEN + 46 THEN + + 97 WHEN - 62 THEN NULL ELSE + ( - - COUNT ( * ) ) END AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT DISTINCT + MAX( - 76 ) col2
----
-76

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT + MAX ( - 76 ) col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT ALL + - 59 * - SUM( ALL - 95 ) - - 62
----
-5543

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL + - 59 * - SUM ( ALL - 95 ) - - 62
----
-5543

query I rowsort
SELECT - 15 + - - 81
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3649
SELECT - + COUNT( * ) DIV + 38 - 96 * + 70
----
-6720

skipif mysql # not compatible
query I rowsort label-3649
SELECT - + COUNT ( * ) / + 38 - 96 * + 70
----
-6720

query II rowsort
SELECT ALL - - 54, + 50 AS col1
----
54
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT + MIN( - + NULLIF ( 84, - + 93 ) ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-3651
SELECT + MIN ( - + NULLIF ( 84, - + 93 ) ) AS col0
----
-84

query I rowsort
SELECT - 98 + 42
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT ALL + COUNT( ALL + - 21 ) - + SUM( + 52 ) + + ( 47 ) + 41 * - 40 * - 67 * - 37 AS col0
----
-4065564

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL + COUNT ( ALL + - 21 ) - + SUM ( + 52 ) + + ( 47 ) + 41 * - 40 * - 67 * - 37 AS col0
----
-4065564

query II rowsort
SELECT 59, + 58 * - 42 AS col1
----
59
-2436

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT DISTINCT - - NULLIF ( ( + + 26 ), NULLIF ( 60, + MIN( ALL + 72 ) ) + 86 )
----
26

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT - - NULLIF ( ( + + 26 ), NULLIF ( 60, + MIN ( ALL + 72 ) ) + 86 )
----
26

query I rowsort
SELECT ALL - + 90 col2
----
-90

query II rowsort
SELECT + - 70 col0, 83 AS col2
----
-70
83

onlyif mysql # aggregate syntax: 
query II rowsort label-3658
SELECT + 70, - 27 * + NULLIF ( - 26, + 55 * 22 * + 13 ) + + + SUM( ALL 93 ) AS col2
----
70
795

skipif mysql # not compatible
query II rowsort label-3658
SELECT + 70, - 27 * + NULLIF ( - 26, + 55 * 22 * + 13 ) + + + SUM ( ALL 93 ) AS col2
----
70
795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3659
SELECT 7 * - MIN( ALL - 37 ) * ( - 60 ) + + + CAST( NULL AS SIGNED ) + - 20 * 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3659
SELECT 7 * - MIN ( ALL - 37 ) * ( - 60 ) + + + CAST ( NULL AS INTEGER ) + - 20 * 16 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3660
SELECT ALL - CAST( - 9 AS SIGNED ) * ( + NULLIF ( - 72, + - COUNT( * ) ) ), 50 * 45 col0
----
-648
2250

skipif mysql # not compatible
query II rowsort label-3660
SELECT ALL - CAST ( - 9 AS INTEGER ) * ( + NULLIF ( - 72, + - COUNT ( * ) ) ), 50 * 45 col0
----
-648
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT 42 + COUNT( * ) + - 42 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3661
SELECT 42 + COUNT ( * ) + - 42 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ALL 57 + - 18 * + + MAX( ALL - + 30 ) + 22 * + - 21
----
135

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL 57 + - 18 * + + MAX ( ALL - + 30 ) + 22 * + - 21
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT COUNT( * ) + - 30
----
-29

skipif mysql # not compatible
query I rowsort label-3663
SELECT COUNT ( * ) + - 30
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT DISTINCT + CASE - 9 WHEN - NULLIF ( COUNT( * ), COALESCE ( + + COUNT( ALL 57 ), + ( - + 84 ) * NULLIF ( 85, 29 ) ) ) THEN 0 ELSE NULL END * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT DISTINCT + CASE - 9 WHEN - NULLIF ( COUNT ( * ), COALESCE ( + + COUNT ( ALL 57 ), + ( - + 84 ) * NULLIF ( 85, 29 ) ) ) THEN 0 ELSE NULL END * 16
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3665
SELECT 65 * 72 / - 19 + CAST( NULL AS SIGNED ) + + - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT 65 * 72 / - 19 + CAST ( NULL AS INTEGER ) + + - 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT DISTINCT - ( + + 12 ) + + COUNT( * ) * - ( 95 )
----
-107

skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT - ( + + 12 ) + + COUNT ( * ) * - ( 95 )
----
-107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3667
SELECT COUNT( + 57 ) + + - 32 + - 35 DIV 52 * - 32
----
-31

skipif mysql # not compatible
query I rowsort label-3667
SELECT COUNT ( + 57 ) + + - 32 + - 35 / 52 * - 32
----
-31

query I rowsort
SELECT DISTINCT 56 + + 79 + - - 45 * - 74 * 86 + 51
----
-286194

query I rowsort
SELECT 55 * - - 31 * - - 38 * - 4
----
-259160

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT ALL 91 + + - COUNT( + 2 )
----
90

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL 91 + + - COUNT ( + 2 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT ( + - 15 ) + 82 + + - COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-3671
SELECT ( + - 15 ) + 82 + + - COUNT ( * ) AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3672
SELECT ALL 43 + + - CASE - - 40 WHEN - - 72 * + COUNT( * ) + 27 THEN NULL WHEN CAST( - ( COUNT( * ) ) AS SIGNED ) THEN + 36 WHEN + 44 THEN NULL ELSE - 64 END + + + 67 col1
----
174

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL 43 + + - CASE - - 40 WHEN - - 72 * + COUNT ( * ) + 27 THEN NULL WHEN CAST ( - ( COUNT ( * ) ) AS INTEGER ) THEN + 36 WHEN + 44 THEN NULL ELSE - 64 END + + + 67 col1
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT ALL 55 * COUNT( * ) * - 30 AS col2
----
-1650

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL 55 * COUNT ( * ) * - 30 AS col2
----
-1650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3674
SELECT ( - + CAST( + + 93 AS SIGNED ) ) + - 89 + 42
----
-140

skipif mysql # not compatible
query I rowsort label-3674
SELECT ( - + CAST ( + + 93 AS INTEGER ) ) + - 89 + 42
----
-140

query I rowsort
SELECT 71 * - 51
----
-3621

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT COUNT( * ) * 92
----
92

skipif mysql # not compatible
query I rowsort label-3676
SELECT COUNT ( * ) * 92
----
92

query I rowsort
SELECT DISTINCT + 1 - - 73 * 96 * 81
----
567649

onlyif mysql # aggregate syntax: 
query II rowsort label-3678
SELECT COUNT( * ) * COUNT( * ) AS col0, - 95
----
1
-95

skipif mysql # not compatible
query II rowsort label-3678
SELECT COUNT ( * ) * COUNT ( * ) AS col0, - 95
----
1
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT - MAX( - - 25 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3679
SELECT - MAX ( - - 25 ) AS col1
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3680
SELECT ALL 5 DIV 56 * - COUNT( * ) + - 7
----
-7

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL 5 / 56 * - COUNT ( * ) + - 7
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3681
SELECT + MIN( + 7 ) AS col2, - SUM( + 89 ) DIV - - 96 - - - ( - 82 )
----
7
82

skipif mysql # not compatible
query II rowsort label-3681
SELECT + MIN ( + 7 ) AS col2, - SUM ( + 89 ) / - - 96 - - - ( - 82 )
----
7
82

query I rowsort
SELECT 85 * - 39 + + + 28 AS col1
----
-3287

query I rowsort
SELECT - 62 * + - 33 AS col2
----
2046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3684
SELECT ALL - COUNT( ALL - CAST( NULL AS SIGNED ) ) * + 16
----
0

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * + 16
----
0

query I rowsort
SELECT 78 * - 71 - - 41
----
-5497

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT MAX( DISTINCT - + 94 ) * - - 73 * - 72 AS col1
----
494064

skipif mysql # not compatible
query I rowsort label-3686
SELECT MAX ( DISTINCT - + 94 ) * - - 73 * - 72 AS col1
----
494064

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT DISTINCT - + COUNT( * ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT - + COUNT ( * ) * COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT ALL - ( - - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL - ( - - COUNT ( * ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3689
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3689
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) + - 70
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3690
SELECT ALL - - 64 + CAST( NULL AS SIGNED ) AS col1, 55 AS col0
----
NULL
55

skipif mysql # not compatible
query II rowsort label-3690
SELECT ALL - - 64 + CAST ( NULL AS INTEGER ) AS col1, 55 AS col0
----
NULL
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3691
SELECT - CAST( ( + 53 ) AS SIGNED ) * + MIN( + 14 ), 65 DIV + - 5 AS col1
----
-742
-13

skipif mysql # not compatible
query II rowsort label-3691
SELECT - CAST ( ( + 53 ) AS INTEGER ) * + MIN ( + 14 ), 65 / + - 5 AS col1
----
-742
-13

query I rowsort
SELECT ALL - 34 + 97 + - ( - ( - 34 ) ) * + 93
----
-3099

query I rowsort
SELECT 36 * 25
----
900

onlyif mysql # aggregate syntax: 
query II rowsort label-3694
SELECT + 99 AS col2, MIN( ALL 56 ) * + 3 + CASE + 44 WHEN - 27 THEN NULL WHEN 8 THEN + 42 END AS col1
----
99
NULL

skipif mysql # not compatible
query II rowsort label-3694
SELECT + 99 AS col2, MIN ( ALL 56 ) * + 3 + CASE + 44 WHEN - 27 THEN NULL WHEN 8 THEN + 42 END AS col1
----
99
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3695
SELECT 91 DIV - + 29 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3695
SELECT 91 / - + 29 AS col0
----
-3

query I rowsort
SELECT ALL + 98 + - 46 - 20
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3697
SELECT ALL - 29 AS col1, SUM( - 12 ) DIV 85 * - - 75 * ( - COUNT( * ) )
----
-29
0

skipif mysql # not compatible
query II rowsort label-3697
SELECT ALL - 29 AS col1, SUM ( - 12 ) / 85 * - - 75 * ( - COUNT ( * ) )
----
-29
0

query I rowsort
SELECT DISTINCT + 89 * 99 AS col0
----
8811

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT DISTINCT + 16 - 59 * + 36 - - COUNT( - 33 )
----
-2107

skipif mysql # not compatible
query I rowsort label-3699
SELECT DISTINCT + 16 - 59 * + 36 - - COUNT ( - 33 )
----
-2107

query I rowsort
SELECT 74 * - 26 AS col2
----
-1924

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT ALL + 98 * + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL + 98 * + COUNT ( * )
----
98

query I rowsort
SELECT ALL - 44 * 92 * 35
----
-141680

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT - NULLIF ( + 54, 79 ) + + COUNT( * ) + + - 50 AS col0
----
-103

skipif mysql # not compatible
query I rowsort label-3703
SELECT - NULLIF ( + 54, 79 ) + + COUNT ( * ) + + - 50 AS col0
----
-103

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3704
SELECT + 19 DIV + - NULLIF ( - COUNT( * ), - 66 ), 19 + + + 38 col0, + + 79 AS col2
----
19
57
79

skipif mysql # not compatible
query III rowsort label-3704
SELECT + 19 / + - NULLIF ( - COUNT ( * ), - 66 ), 19 + + + 38 col0, + + 79 AS col2
----
19
57
79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3705
SELECT - COUNT( * ), CAST( NULL AS DECIMAL ) col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3705
SELECT - COUNT ( * ), CAST ( NULL AS REAL ) col1
----
-1
NULL

query II rowsort
SELECT - 90 + + + 13 * - 20 col1, - 20 AS col1
----
-350
-20

query I rowsort
SELECT + 96 * - 85
----
-8160

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT - + NULLIF ( + + SUM( ALL + 33 ), MIN( 8 ) + - 72 - 8 + - 17 ) + MAX( DISTINCT - 95 ) * - 90 * 89 AS col1
----
760917

skipif mysql # not compatible
query I rowsort label-3708
SELECT - + NULLIF ( + + SUM ( ALL + 33 ), MIN ( 8 ) + - 72 - 8 + - 17 ) + MAX ( DISTINCT - 95 ) * - 90 * 89 AS col1
----
760917

query I rowsort
SELECT DISTINCT COALESCE ( - - ( + 20 ), 74 ) AS col2
----
20

query II rowsort
SELECT - - 33 + - + CASE + + 39 WHEN 81 THEN + 36 * 13 END, - ( + 25 ) AS col1
----
NULL
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-3711
SELECT DISTINCT 45 * + COUNT( * ) - + COUNT( * ) + 24 + + 62 + + 56, - NULLIF ( - + 3, + 70 + - 35 + + COUNT( * ) ) + - COUNT( DISTINCT + CASE 40 WHEN - - 29 THEN NULL WHEN 32 THEN + 87 / + 60 + - 88 END ) AS col0
----
186
3

skipif mysql # not compatible
query II rowsort label-3711
SELECT DISTINCT 45 * + COUNT ( * ) - + COUNT ( * ) + 24 + + 62 + + 56, - NULLIF ( - + 3, + 70 + - 35 + + COUNT ( * ) ) + - COUNT ( DISTINCT + CASE 40 WHEN - - 29 THEN NULL WHEN 32 THEN + 87 / + 60 + - 88 END ) AS col0
----
186
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3712
SELECT + CAST( NULL AS SIGNED ) + - ( + 51 ) * + 77 / - - 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT + CAST ( NULL AS INTEGER ) + - ( + 51 ) * + 77 / - - 10 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 94 * + ( - 22 ) AS col1
----
-2068

query II rowsort
SELECT ALL 71, 2 AS col0
----
71
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3715
SELECT + + 51 * CAST( - 10 AS SIGNED ) AS col2
----
-510

skipif mysql # not compatible
query I rowsort label-3715
SELECT + + 51 * CAST ( - 10 AS INTEGER ) AS col2
----
-510

query I rowsort
SELECT DISTINCT + 45 * 71 AS col0
----
3195

query I rowsort
SELECT + + ( 26 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3718
SELECT ALL + CAST( 80 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL + CAST ( 80 AS INTEGER )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3719
SELECT CAST( NULL AS SIGNED ) / - 10 + NULLIF ( + - ( + - COUNT( 63 ) ), CASE + + 40 WHEN + 95 THEN NULL WHEN 91 THEN - 44 * + ( 74 ) ELSE NULL END + + - 34 + + 35 ) - 71 AS col2, 26
----
NULL
26

skipif mysql # not compatible
query II rowsort label-3719
SELECT CAST ( NULL AS INTEGER ) / - 10 + NULLIF ( + - ( + - COUNT ( 63 ) ), CASE + + 40 WHEN + 95 THEN NULL WHEN 91 THEN - 44 * + ( 74 ) ELSE NULL END + + - 34 + + 35 ) - 71 AS col2, 26
----
NULL
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT ALL 25 * + COUNT( * ) + + 0 * 15
----
25

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL 25 * + COUNT ( * ) + + 0 * 15
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT + 63 + + - 84 * - - COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-3721
SELECT + 63 + + - 84 * - - COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL + 74 * COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL + 74 * COUNT ( * ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-3723
SELECT ALL 74 * + + 94 + + - COUNT( * ) + - 97 AS col2, 44 + - NULLIF ( 45, + 10 + COUNT( * ) ) + + ( + + 6 )
----
6858
5

skipif mysql # not compatible
query II rowsort label-3723
SELECT ALL 74 * + + 94 + + - COUNT ( * ) + - 97 AS col2, 44 + - NULLIF ( 45, + 10 + COUNT ( * ) ) + + ( + + 6 )
----
6858
5

onlyif mysql # aggregate syntax: 
query II rowsort label-3724
SELECT NULLIF ( + NULLIF ( 85, - + 41 + - ( + 65 ) ), + - 49 / COUNT( * ) + 57 ), - 44 AS col1
----
85
-44

skipif mysql # not compatible
query II rowsort label-3724
SELECT NULLIF ( + NULLIF ( 85, - + 41 + - ( + 65 ) ), + - 49 / COUNT ( * ) + 57 ), - 44 AS col1
----
85
-44

query I rowsort
SELECT 2 * - - 84 + + - 4
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT ALL + COALESCE ( - 22, 57, + COUNT( DISTINCT + 76 ) ) col1
----
-22

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL + COALESCE ( - 22, 57, + COUNT ( DISTINCT + 76 ) ) col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT COUNT( * ) * + MIN( ALL 88 ) * 3 * 20 + COUNT( * ) + 96 * 15 + + ( + COALESCE ( - - 56, + + 7 ) ) + + - 32 AS col2
----
6745

skipif mysql # not compatible
query I rowsort label-3727
SELECT COUNT ( * ) * + MIN ( ALL 88 ) * 3 * 20 + COUNT ( * ) + 96 * 15 + + ( + COALESCE ( - - 56, + + 7 ) ) + + - 32 AS col2
----
6745

query I rowsort
SELECT ALL 30 * 58 - + 11 AS col2
----
1729

query I rowsort
SELECT DISTINCT 79 * 5
----
395

query I rowsort
SELECT - 50 + + - 60 + 90 + + 59 AS col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3731
SELECT - NULLIF ( - 20, 20 ) * - 70 AS col0, + 51 - + + 92 DIV 43 + + ( COUNT( * ) ) AS col1
----
-1400
50

skipif mysql # not compatible
query II rowsort label-3731
SELECT - NULLIF ( - 20, 20 ) * - 70 AS col0, + 51 - + + 92 / 43 + + ( COUNT ( * ) ) AS col1
----
-1400
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL NULLIF ( + - COUNT( * ), + SUM( DISTINCT - 90 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL NULLIF ( + - COUNT ( * ), + SUM ( DISTINCT - 90 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3733
SELECT + CASE + COUNT( * ) WHEN - 23 THEN 61 ELSE + 76 + 67 END * 16 col1, 97 * - 37
----
2288
-3589

skipif mysql # not compatible
query II rowsort label-3733
SELECT + CASE + COUNT ( * ) WHEN - 23 THEN 61 ELSE + 76 + 67 END * 16 col1, 97 * - 37
----
2288
-3589

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT - 78 * COUNT( * ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-3734
SELECT - 78 * COUNT ( * ) AS col1
----
-78

query I rowsort
SELECT - 96 + - + 42 AS col1
----
-138

query I rowsort
SELECT ALL + 67 * - 49
----
-3283

query I rowsort
SELECT ALL ( - 54 ) AS col2
----
-54

query I rowsort
SELECT - 72 + + 55
----
-17

query I rowsort
SELECT ALL + 49 * + - 6 col1
----
-294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3740
SELECT - CAST( NULL AS SIGNED ) * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-3740
SELECT - CAST ( NULL AS INTEGER ) * + 7
----
NULL

query I rowsort
SELECT ALL + + 77 * - 90
----
-6930

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT DISTINCT - - COUNT( * ) + + + MIN( + 26 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT - - COUNT ( * ) + + + MIN ( + 26 ) AS col0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3743
SELECT - - 80 DIV + COALESCE ( + - NULLIF ( - 40, - - 91 + + 42 - + + ( - 71 ) * 45 ), - + 6, - 10 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3743
SELECT - - 80 / + COALESCE ( + - NULLIF ( - 40, - - 91 + + 42 - + + ( - 71 ) * 45 ), - + 6, - 10 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT ALL + + 98 + + COUNT( * ) * 86 * - - COUNT( * ) + 81
----
265

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL + + 98 + + COUNT ( * ) * 86 * - - COUNT ( * ) + 81
----
265

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3745
SELECT + - COUNT( * ) DIV 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3745
SELECT + - COUNT ( * ) / 93 AS col2
----
0

query I rowsort
SELECT - + 61 * 58 + - + 13
----
-3551

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT ALL 50 + - - 1 - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL 50 + - - 1 - COUNT ( * )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3748
SELECT ALL 64 + - - COALESCE ( 66, + - CASE - - 91 WHEN - COALESCE ( 24, - 81 ) - 80 THEN + 10 WHEN ( 40 ) THEN NULL END + - - 27, - - 12 ), 4 + + + CAST( NULL AS SIGNED ) AS col1
----
130
NULL

skipif mysql # not compatible
query II rowsort label-3748
SELECT ALL 64 + - - COALESCE ( 66, + - CASE - - 91 WHEN - COALESCE ( 24, - 81 ) - 80 THEN + 10 WHEN ( 40 ) THEN NULL END + - - 27, - - 12 ), 4 + + + CAST ( NULL AS INTEGER ) AS col1
----
130
NULL

query I rowsort
SELECT ALL - 84 * + - 90 * - 15 AS col1
----
-113400

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT + - COUNT( + 38 ) + - + 54 + COUNT( * ) * - + 15 - 8 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-3750
SELECT + - COUNT ( + 38 ) + - + 54 + COUNT ( * ) * - + 15 - 8 AS col0
----
-78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3751
SELECT DISTINCT - ( - 75 ) DIV - CAST( + - 86 AS SIGNED ) + 77 * - + 52 * + + 78 + + 81 * + 59 AS col1
----
-307533

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT - ( - 75 ) / - CAST ( + - 86 AS INTEGER ) + 77 * - + 52 * + + 78 + + 81 * + 59 AS col1
----
-307533

query I rowsort
SELECT ALL + ( 31 )
----
31

query I rowsort
SELECT - - 34 * - 2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT COUNT( * ) * + - 38 + NULLIF ( COUNT( * ), - 17 ) - + 85 AS col0
----
-122

skipif mysql # not compatible
query I rowsort label-3754
SELECT COUNT ( * ) * + - 38 + NULLIF ( COUNT ( * ), - 17 ) - + 85 AS col0
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3755
SELECT CAST( - + 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-3755
SELECT CAST ( - + 46 AS INTEGER )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3756
SELECT CAST( 3 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-3756
SELECT CAST ( 3 AS INTEGER )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT + SUM( 98 ) + + - 27 col1
----
71

skipif mysql # not compatible
query I rowsort label-3757
SELECT + SUM ( 98 ) + + - 27 col1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3758
SELECT + ( CAST( NULL AS SIGNED ) ) * - + 0 * + 2 * - - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3758
SELECT + ( CAST ( NULL AS INTEGER ) ) * - + 0 * + 2 * - - 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3759
SELECT ALL SUM( DISTINCT 4 ) DIV + 81 * - 35 + + + 87 + + ( - COUNT( * ) ) * 13 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL SUM ( DISTINCT 4 ) / + 81 * - 35 + + + 87 + + ( - COUNT ( * ) ) * 13 AS col1
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3760
SELECT ALL 26 DIV - 99 * 94 - - + 79 * - COUNT( ALL + - NULLIF ( + 97, - 98 * 59 ) ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL 26 / - 99 * 94 - - + 79 * - COUNT ( ALL + - NULLIF ( + 97, - 98 * 59 ) ) AS col1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3761
SELECT + CAST( 46 AS SIGNED ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-3761
SELECT + CAST ( 46 AS INTEGER ) AS col2
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3762
SELECT 84 DIV - MAX( DISTINCT 41 ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-3762
SELECT 84 / - MAX ( DISTINCT 41 ) col1
----
-2

query I rowsort
SELECT ALL - 44 * + + 98
----
-4312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3764
SELECT ALL 32 DIV + 99 * NULLIF ( - - 95, COALESCE ( 33, - 31 DIV + 4, - 16 * - + COUNT( * ) ) - + 16 )
----
0

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL 32 / + 99 * NULLIF ( - - 95, COALESCE ( 33, - 31 / + 4, - 16 * - + COUNT ( * ) ) - + 16 )
----
0

query I rowsort
SELECT + 13 * + ( 86 ) - 52 AS col1
----
1066

onlyif mysql # DIV for integer division: 
query I rowsort label-3766
SELECT 74 DIV - + 72 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3766
SELECT 74 / - + 72 AS col1
----
-1

query I rowsort
SELECT 80 * - 21 AS col1
----
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT 19 * - + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-3768
SELECT 19 * - + COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT ALL COUNT( + 88 ) * - 28
----
-28

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL COUNT ( + 88 ) * - 28
----
-28

query I rowsort
SELECT 6 - + - 19 * + - 89 * + 26 AS col0
----
-43960

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT ALL COUNT( * ) * - - 65 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL COUNT ( * ) * - - 65 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT ALL - 31 + MIN( + 9 )
----
-22

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL - 31 + MIN ( + 9 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT ALL + 20 + + + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL + 20 + + + COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT 63 * - 78 + - 96 * + + 88 * COUNT( * ) * + SUM( + 4 )
----
-38706

skipif mysql # not compatible
query I rowsort label-3774
SELECT 63 * - 78 + - 96 * + + 88 * COUNT ( * ) * + SUM ( + 4 )
----
-38706

query I rowsort
SELECT + 15 * + - 15 - - 99
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT 93 + + MAX( - 66 )
----
27

skipif mysql # not compatible
query I rowsort label-3776
SELECT 93 + + MAX ( - 66 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT - - ( - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3777
SELECT - - ( - COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT MAX( DISTINCT - 38 ) - + 48 + - 12 - 30 * - - 37 - 21 * 45 * 89 + - 18
----
-85331

skipif mysql # not compatible
query I rowsort label-3778
SELECT MAX ( DISTINCT - 38 ) - + 48 + - 12 - 30 * - - 37 - 21 * 45 * 89 + - 18
----
-85331

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3779
SELECT - COUNT( ALL - - 55 ) + - 59 * - + 40 * 0 DIV + + 67 + 13 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-3779
SELECT - COUNT ( ALL - - 55 ) + - 59 * - + 40 * 0 / + + 67 + 13 AS col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3780
SELECT 29 * + + CAST( NULL AS SIGNED ) * - 28 * ( - - 69 ) / - + 83 + - 69 + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3780
SELECT 29 * + + CAST ( NULL AS INTEGER ) * - 28 * ( - - 69 ) / - + 83 + - 69 + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT CASE - 26 WHEN - COUNT( * ) * + + 97 THEN - COUNT( * ) + - 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3781
SELECT CASE - 26 WHEN - COUNT ( * ) * + + 97 THEN - COUNT ( * ) + - 28 END
----
NULL

query I rowsort
SELECT 32 + - 6 AS col1
----
26

query I rowsort
SELECT ALL - 35 * + - 44
----
1540

query I rowsort
SELECT NULLIF ( + 93, 35 ) + + - 86 AS col2
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3785
SELECT ALL CAST( 84 AS SIGNED ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL CAST ( 84 AS INTEGER ) AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3786
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 67 + - + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 67 + - + 57
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3787
SELECT ALL + 44 + + CAST( NULL AS SIGNED ) / 10 * - + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL + 44 + + CAST ( NULL AS INTEGER ) / 10 * - + 86
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3788
SELECT ( - 38 ) + + - CAST( - + 26 AS SIGNED ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-3788
SELECT ( - 38 ) + + - CAST ( - + 26 AS INTEGER ) AS col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3789
SELECT 88 DIV + ( - - ( - 71 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3789
SELECT 88 / + ( - - ( - 71 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT 32 * + - 99 * - COUNT( * ) * + 42 + - + 35
----
133021

skipif mysql # not compatible
query I rowsort label-3790
SELECT 32 * + - 99 * - COUNT ( * ) * + 42 + - + 35
----
133021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3791
SELECT - 98 * + COALESCE ( - 1, + 27 DIV 43, - + CASE - 26 WHEN + 88 THEN 86 END - + CAST( NULL AS SIGNED ) + - - 81 * + 98 + MIN( DISTINCT - 28 ) + + COUNT( * ) ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-3791
SELECT - 98 * + COALESCE ( - 1, + 27 / 43, - + CASE - 26 WHEN + 88 THEN 86 END - + CAST ( NULL AS INTEGER ) + - - 81 * + 98 + MIN ( DISTINCT - 28 ) + + COUNT ( * ) ) AS col0
----
98

query I rowsort
SELECT 78 * + 3 + + 85 AS col0
----
319

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3793
SELECT + 83 col1, NULLIF ( + 83, 87 * + 16 + 98 + + 25 ) * + + 28 + - CAST( - + 39 AS SIGNED ) * + 50 AS col2
----
83
4274

skipif mysql # not compatible
query II rowsort label-3793
SELECT + 83 col1, NULLIF ( + 83, 87 * + 16 + 98 + + 25 ) * + + 28 + - CAST ( - + 39 AS INTEGER ) * + 50 AS col2
----
83
4274

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3794
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1, 57
----
NULL
57

skipif mysql # not compatible
query II rowsort label-3794
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1, 57
----
NULL
57

query I rowsort
SELECT DISTINCT - ( 44 ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT ALL COUNT( * ) - - 57 * 84 + + 63 AS col0
----
4852

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL COUNT ( * ) - - 57 * 84 + + 63 AS col0
----
4852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3797
SELECT MAX( - + 52 ) * - 17 + - 1 AS col0, CAST( - + 51 AS SIGNED ) col2
----
883
-51

skipif mysql # not compatible
query II rowsort label-3797
SELECT MAX ( - + 52 ) * - 17 + - 1 AS col0, CAST ( - + 51 AS INTEGER ) col2
----
883
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-3798
SELECT 85 DIV - 49 + - 89 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-3798
SELECT 85 / - 49 + - 89 AS col2
----
-90

query I rowsort
SELECT 94 + + 34 AS col0
----
128

query I rowsort
SELECT 64 * - - 47 AS col1
----
3008

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT 0 * + CASE - + 27 WHEN 54 THEN NULL WHEN - + ( - - COUNT( * ) ) THEN COUNT( * ) * + MIN( ALL - COALESCE ( + 55, + + 14 ) ) + + + COUNT( DISTINCT 62 ) ELSE ( + + 62 ) END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3801
SELECT 0 * + CASE - + 27 WHEN 54 THEN NULL WHEN - + ( - - COUNT ( * ) ) THEN COUNT ( * ) * + MIN ( ALL - COALESCE ( + 55, + + 14 ) ) + + + COUNT ( DISTINCT 62 ) ELSE ( + + 62 ) END AS col1
----
0

query I rowsort
SELECT 71 + - 84 AS col0
----
-13

query II rowsort
SELECT + 58 col0, 21 * + + 93 col2
----
58
1953

query I rowsort
SELECT + ( - 8 ) * + 94 * - ( + + 50 ) * - - 20 * + - 68 + + + 1 * - 17 + - 9 + - NULLIF ( + 68, - - 1 ) AS col2
----
-51136094

onlyif mysql # DIV for integer division: 
query I rowsort label-3805
SELECT COALESCE ( + 24, + - 60 * - 27 - + - 95 - - ( 23 ) DIV - 48 ) - - 99
----
123

skipif mysql # not compatible
query I rowsort label-3805
SELECT COALESCE ( + 24, + - 60 * - 27 - + - 95 - - ( 23 ) / - 48 ) - - 99
----
123

query I rowsort
SELECT 25 * + + 25 AS col2
----
625

query II rowsort
SELECT ALL - 61 AS col1, - 47 col2
----
-61
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3808
SELECT COALESCE ( 76, - 61, + + 79 * - 57 + + 82 + + - 46 ) + + SUM( DISTINCT + + 2 ) AS col2, + CAST( NULL AS SIGNED )
----
78
NULL

skipif mysql # not compatible
query II rowsort label-3808
SELECT COALESCE ( 76, - 61, + + 79 * - 57 + + 82 + + - 46 ) + + SUM ( DISTINCT + + 2 ) AS col2, + CAST ( NULL AS INTEGER )
----
78
NULL

query II rowsort
SELECT ALL - 44, 66 col2
----
-44
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3810
SELECT ALL CAST( NULL AS SIGNED ) + 29 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL CAST ( NULL AS INTEGER ) + 29 col0
----
NULL

query I rowsort
SELECT - 8 * 1 + + - 7 AS col0
----
-15

query I rowsort
SELECT ALL 56 + - 96
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3813
SELECT - CASE + 3 WHEN + 33 * + - 69 THEN NULL WHEN - COUNT( ALL 83 ) * - 67 THEN - ( 67 ) DIV + ( - 17 ) * + 93 DIV - + COUNT( * ) + 60 - - 61 * + 67 ELSE + COUNT( * ) END + - 56
----
-57

skipif mysql # not compatible
query I rowsort label-3813
SELECT - CASE + 3 WHEN + 33 * + - 69 THEN NULL WHEN - COUNT ( ALL 83 ) * - 67 THEN - ( 67 ) / + ( - 17 ) * + 93 / - + COUNT ( * ) + 60 - - 61 * + 67 ELSE + COUNT ( * ) END + - 56
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT - COALESCE ( + + 70, + ( + 42 ) - + - 70 ) * 25 * + COUNT( + 59 ) AS col1
----
-1750

skipif mysql # not compatible
query I rowsort label-3814
SELECT - COALESCE ( + + 70, + ( + 42 ) - + - 70 ) * 25 * + COUNT ( + 59 ) AS col1
----
-1750

query I rowsort
SELECT 6 * - 85 * + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT DISTINCT - COUNT( DISTINCT - 76 ) * NULLIF ( - 78, 53 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT - COUNT ( DISTINCT - 76 ) * NULLIF ( - 78, 53 ) AS col1
----
78

query I rowsort
SELECT ALL 83 + - 61
----
22

query I rowsort
SELECT 8 * + 65 AS col2
----
520

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT + 22 + 26 - - - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-3819
SELECT + 22 + 26 - - - COUNT ( * ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT 98 + + NULLIF ( + 31, + 35 * 18 - + ( - - COUNT( * ) ) / - - 53 ) AS col2
----
129

skipif mysql # not compatible
query I rowsort label-3820
SELECT 98 + + NULLIF ( + 31, + 35 * 18 - + ( - - COUNT ( * ) ) / - - 53 ) AS col2
----
129

query I rowsort
SELECT DISTINCT 67 + - + 81 AS col2
----
-14

query I rowsort
SELECT ALL + ( + - 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT - 15 * - + 66 + - COUNT( * ) + - 36
----
953

skipif mysql # not compatible
query I rowsort label-3823
SELECT - 15 * - + 66 + - COUNT ( * ) + - 36
----
953

query I rowsort
SELECT ALL ( + - 85 ) - - - 35
----
-120

query I rowsort
SELECT - 55 * - 2 + - 70 AS col1
----
40

query II rowsort
SELECT + 24 AS col1, 1 col2
----
24
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3827
SELECT 57 - + CAST( - 29 AS SIGNED ) * + - 0
----
57

skipif mysql # not compatible
query I rowsort label-3827
SELECT 57 - + CAST ( - 29 AS INTEGER ) * + - 0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3828
SELECT - + COUNT( * ), COUNT( * ) DIV - 28 * 16 AS col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-3828
SELECT - + COUNT ( * ), COUNT ( * ) / - 28 * 16 AS col2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT ALL - NULLIF ( + - 27, 41 + NULLIF ( 79, - ( COUNT( * ) ) ) )
----
27

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL - NULLIF ( + - 27, 41 + NULLIF ( 79, - ( COUNT ( * ) ) ) )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT 46 * - COUNT( DISTINCT - 3 )
----
-46

skipif mysql # not compatible
query I rowsort label-3830
SELECT 46 * - COUNT ( DISTINCT - 3 )
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3831
SELECT 33 * - - 33 AS col0, NULLIF ( + CAST( NULL AS DECIMAL ), - + 49 )
----
1089
NULL

skipif mysql # not compatible
query II rowsort label-3831
SELECT 33 * - - 33 AS col0, NULLIF ( + CAST ( NULL AS REAL ), - + 49 )
----
1089
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT - COUNT( ALL - + 77 )
----
-1

skipif mysql # not compatible
query I rowsort label-3832
SELECT - COUNT ( ALL - + 77 )
----
-1

query I rowsort
SELECT ALL - NULLIF ( 7, 17 ) AS col1
----
-7

query I rowsort
SELECT - + ( - 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT DISTINCT - 71 * SUM( DISTINCT + 4 )
----
-284

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT - 71 * SUM ( DISTINCT + 4 )
----
-284

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3836
SELECT ALL + CAST( + - 17 AS SIGNED ) AS col2, - 37 AS col2
----
-17
-37

skipif mysql # not compatible
query II rowsort label-3836
SELECT ALL + CAST ( + - 17 AS INTEGER ) AS col2, - 37 AS col2
----
-17
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3837
SELECT - CAST( NULL AS SIGNED ) + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT - CAST ( NULL AS INTEGER ) + - 72
----
NULL

query I rowsort
SELECT ALL - 53 * - 55 AS col2
----
2915

onlyif mysql # DIV for integer division: 
query I rowsort label-3839
SELECT - 3 DIV - + 76 * 22
----
0

skipif mysql # not compatible
query I rowsort label-3839
SELECT - 3 / - + 76 * 22
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3840
SELECT - 73 + 90 + 77 + - - CAST( NULL AS SIGNED ) + + 27 + + 67 * + CAST( + 84 AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3840
SELECT - 73 + 90 + 77 + - - CAST ( NULL AS INTEGER ) + + 27 + + 67 * + CAST ( + 84 AS INTEGER ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT NULLIF ( - 73, 13 * 67 * 2 ) AS col1
----
-73

query I rowsort
SELECT + 73 + - + 37 * 60 AS col0
----
-2147

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT DISTINCT + CASE + 38 WHEN + COUNT( ALL 45 ) THEN - + COALESCE ( + 8, 59 + + 93 + 14 ) WHEN 78 * + 55 - ( - - 14 ) - + + 49 + + 43 THEN AVG ( + - 89 ) * + - 17 * + + 5 * + COUNT( * ) + - - 92 - + 63 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3843
SELECT DISTINCT + CASE + 38 WHEN + COUNT ( ALL 45 ) THEN - + COALESCE ( + 8, 59 + + 93 + 14 ) WHEN 78 * + 55 - ( - - 14 ) - + + 49 + + 43 THEN AVG ( + - 89 ) * + - 17 * + + 5 * + COUNT ( * ) + - - 92 - + 63 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT - 43 * + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-3844
SELECT - 43 * + COUNT ( * )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3845
SELECT ALL - 11 * ( - - 31 ) + - CAST( + + ( + ( 51 ) ) AS SIGNED ) / - - CAST( NULL AS SIGNED ) + - 55 + - COUNT( * ) / + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL - 11 * ( - - 31 ) + - CAST ( + + ( + ( 51 ) ) AS INTEGER ) / - - CAST ( NULL AS INTEGER ) + - 55 + - COUNT ( * ) / + 69
----
NULL

query I rowsort
SELECT DISTINCT - 33 * - 40 + - 18
----
1302

query I rowsort
SELECT ALL 7 * + 82 AS col0
----
574

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT - + COUNT( * ) * - 28 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-3848
SELECT - + COUNT ( * ) * - 28 AS col2
----
28

query I rowsort
SELECT + - 18 * + - 66 col1
----
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT - NULLIF ( - + SUM( - 38 ), + 22 * - 1 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-3850
SELECT - NULLIF ( - + SUM ( - 38 ), + 22 * - 1 ) AS col2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3851
SELECT + CAST( 49 AS SIGNED ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3851
SELECT + CAST ( 49 AS INTEGER ) AS col2
----
49

query I rowsort
SELECT ALL + - 98 * 46 + + 91 + + - 39
----
-4456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3853
SELECT + 73 - 87 * - - 98 * + - 89 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3853
SELECT + 73 - 87 * - - 98 * + - 89 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 30 * 11 AS col1
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT DISTINCT - MAX( DISTINCT + 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT - MAX ( DISTINCT + 32 )
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3856
SELECT - + COUNT( - 59 ) DIV - ( - 31 ) * - + 41 * + 47
----
0

skipif mysql # not compatible
query I rowsort label-3856
SELECT - + COUNT ( - 59 ) / - ( - 31 ) * - + 41 * + 47
----
0

query II rowsort
SELECT + + 91 * + - 22 AS col1, - 4
----
-2002
-4

query I rowsort
SELECT + - 22 + - 76 - - - 54 AS col1
----
-152

query I rowsort
SELECT + - 16 * + + 5 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-3860
SELECT ALL - 52 * + 70 + 60 col2, SUM( + COALESCE ( 25, 25 ) ) AS col0
----
-3580
25

skipif mysql # not compatible
query II rowsort label-3860
SELECT ALL - 52 * + 70 + 60 col2, SUM ( + COALESCE ( 25, 25 ) ) AS col0
----
-3580
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3861
SELECT + + 41 - - CAST( + 48 AS SIGNED ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-3861
SELECT + + 41 - - CAST ( + 48 AS INTEGER ) AS col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3862
SELECT + 75 * - CASE 13 WHEN - COUNT( * ) * - - 54 THEN CAST( 76 AS SIGNED ) + + COUNT( DISTINCT 43 ) + COUNT( ALL - 59 ) DIV + 94 * + 68 ELSE + 7 * 46 + 73 * 59 END * + + NULLIF ( - + 54, + 32 ) + - SUM( + NULLIF ( 8, - 34 + + 34 ) ) + 86 * - 32 col2
----
18744690

skipif mysql # not compatible
query I rowsort label-3862
SELECT + 75 * - CASE 13 WHEN - COUNT ( * ) * - - 54 THEN CAST ( 76 AS INTEGER ) + + COUNT ( DISTINCT 43 ) + COUNT ( ALL - 59 ) / + 94 * + 68 ELSE + 7 * 46 + 73 * 59 END * + + NULLIF ( - + 54, + 32 ) + - SUM ( + NULLIF ( 8, - 34 + + 34 ) ) + 86 * - 32 col2
----
18744690

query I rowsort
SELECT + - 72 + + - 0 - + 89
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT ALL CASE + + 69 WHEN + MIN( + 30 ) THEN - COUNT( * ) * 50 WHEN 24 * + - 54 THEN + 19 + - COALESCE ( + 14, - + 46 * - 24 - + 57 + + 46 ) ELSE - + ( + 46 ) - + 21 END AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL CASE + + 69 WHEN + MIN ( + 30 ) THEN - COUNT ( * ) * 50 WHEN 24 * + - 54 THEN + 19 + - COALESCE ( + 14, - + 46 * - 24 - + 57 + + 46 ) ELSE - + ( + 46 ) - + 21 END AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT + COUNT( * ) + 30
----
31

skipif mysql # not compatible
query I rowsort label-3865
SELECT + COUNT ( * ) + 30
----
31

query I rowsort
SELECT ALL 16 * - 33 AS col2
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT ALL MAX( 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL MAX ( 14 ) AS col1
----
14

query I rowsort
SELECT - ( - 12 ) AS col0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3869
SELECT DISTINCT + 40 DIV - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT + 40 / - COUNT ( * )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3870
SELECT CAST( 36 AS SIGNED ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-3870
SELECT CAST ( 36 AS INTEGER ) AS col2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3871
SELECT ALL + 22 * NULLIF ( - - CAST( NULL AS SIGNED ), - CASE 1 WHEN + 54 THEN CAST( NULL AS SIGNED ) * + 16 END / 75 ) * 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL + 22 * NULLIF ( - - CAST ( NULL AS INTEGER ), - CASE 1 WHEN + 54 THEN CAST ( NULL AS INTEGER ) * + 16 END / 75 ) * 0 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3872
SELECT CAST( - - 85 AS SIGNED ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3872
SELECT CAST ( - - 85 AS INTEGER ) AS col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3873
SELECT ALL 25 DIV ( - - 21 ) + - 57
----
-56

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL 25 / ( - - 21 ) + - 57
----
-56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3874
SELECT ALL 94 DIV 46 + - CAST( 93 AS SIGNED ) + - COALESCE ( - 2, - - 94 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL 94 / 46 + - CAST ( 93 AS INTEGER ) + - COALESCE ( - 2, - - 94 ) AS col0
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3875
SELECT ALL - 67 DIV + + 91 * + 89 + - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL - 67 / + + 91 * + 89 + - COUNT ( * ) col1
----
-1

query II rowsort
SELECT 13 * + 96 + + - 73, - COALESCE ( + 30, 47, ( 22 ) * - + 48 ) AS col1
----
1175
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT ALL COUNT( * ) * 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL COUNT ( * ) * 82 AS col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3878
SELECT - 14 DIV + 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3878
SELECT - 14 / + 28 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3879
SELECT + CAST( NULL AS DECIMAL ), - 52 * + 19 AS col1
----
NULL
-988

skipif mysql # not compatible
query II rowsort label-3879
SELECT + CAST ( NULL AS REAL ), - 52 * + 19 AS col1
----
NULL
-988

query I rowsort
SELECT ( + 67 ) col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3881
SELECT ALL + MIN( + CAST( 58 AS SIGNED ) ) DIV 25 * - COUNT( * ) - - 29 DIV + 57 + + - 52 + - - 29
----
-25

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL + MIN ( + CAST ( 58 AS INTEGER ) ) / 25 * - COUNT ( * ) - - 29 / + 57 + + - 52 + - - 29
----
-25

query I rowsort
SELECT + 1 + - 79
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3883
SELECT + 60 * + + NULLIF ( + + ( - CAST( + + CASE + COUNT( * ) WHEN + ( - - 85 ) / + - 41 + CAST( NULL AS DECIMAL ) THEN MIN( - 24 ) * - 81 * 63 * + 22 + ( - - 78 ) + - 32 ELSE + CASE - 99 WHEN - 40 THEN NULL WHEN - 61 THEN - 66 * COUNT( * ) ELSE NULL END - CASE - 30 WHEN + 60 * - COUNT( * ) - - 88 * + COUNT( * ) THEN 81 ELSE + 61 END / + CAST( NULL AS SIGNED ) END AS SIGNED ) ), - 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT + 60 * + + NULLIF ( + + ( - CAST ( + + CASE + COUNT ( * ) WHEN + ( - - 85 ) / + - 41 + CAST ( NULL AS REAL ) THEN MIN ( - 24 ) * - 81 * 63 * + 22 + ( - - 78 ) + - 32 ELSE + CASE - 99 WHEN - 40 THEN NULL WHEN - 61 THEN - 66 * COUNT ( * ) ELSE NULL END - CASE - 30 WHEN + 60 * - COUNT ( * ) - - 88 * + COUNT ( * ) THEN 81 ELSE + 61 END / + CAST ( NULL AS INTEGER ) END AS INTEGER ) ), - 23 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT - MIN( - 94 ) * + 63 + - 31
----
5891

skipif mysql # not compatible
query I rowsort label-3884
SELECT - MIN ( - 94 ) * + 63 + - 31
----
5891

query II rowsort
SELECT 12 AS col0, ( + 37 )
----
12
37

query I rowsort
SELECT ALL - 17 * + 19
----
-323

query I rowsort
SELECT ALL - 36 * + CASE 99 WHEN + + 4 THEN + 35 WHEN 39 THEN - - 11 WHEN - AVG ( DISTINCT + 83 ) + - - ( 69 ) THEN ( AVG ( DISTINCT + 72 ) ) * + 52 - - 45 END * + - COALESCE ( - + 33, + 17, - 55 ) + + + 75 + + 49 * 88 - - 72 AS col2
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( 81, - 48 * - 16 ) AS col2
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-3889
SELECT + 7 * 96 DIV NULLIF ( - + 67, 52 DIV - 3 + 2 * - 31 ) AS col2, - 73
----
-10
-73

skipif mysql # not compatible
query II rowsort label-3889
SELECT + 7 * 96 / NULLIF ( - + 67, 52 / - 3 + 2 * - 31 ) AS col2, - 73
----
-10
-73

query I rowsort
SELECT DISTINCT + 23 * + 12 AS col2
----
276

onlyif mysql # aggregate syntax: 
query II rowsort label-3891
SELECT ALL - 27 AS col1, CASE + 14 WHEN - ( - 59 ) + - 20 THEN NULL WHEN + ( + 27 ) THEN NULL WHEN + 67 * 43 * + - COUNT( * ) THEN SUM( ALL - 88 ) / - 97 + - ( + 51 ) END col0
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-3891
SELECT ALL - 27 AS col1, CASE + 14 WHEN - ( - 59 ) + - 20 THEN NULL WHEN + ( + 27 ) THEN NULL WHEN + 67 * 43 * + - COUNT ( * ) THEN SUM ( ALL - 88 ) / - 97 + - ( + 51 ) END col0
----
-27
NULL

query II rowsort
SELECT DISTINCT - 4, 45 col1
----
-4
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT - CASE - 43 WHEN 94 THEN NULL WHEN + - COUNT( * ) * - 16 + + - COUNT( DISTINCT + 70 ) + ( + - 55 ) THEN + 93 / + 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3893
SELECT - CASE - 43 WHEN 94 THEN NULL WHEN + - COUNT ( * ) * - 16 + + - COUNT ( DISTINCT + 70 ) + ( + - 55 ) THEN + 93 / + 97 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3894
SELECT 0 * + 96 DIV - - 12 * + - 45
----
0

skipif mysql # not compatible
query I rowsort label-3894
SELECT 0 * + 96 / - - 12 * + - 45
----
0

query I rowsort
SELECT ALL 62 * - - 96 AS col1
----
5952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3896
SELECT COALESCE ( + - COUNT( - 89 ), + COUNT( * ) ) + CASE - COUNT( 7 ) WHEN + CAST( NULL AS SIGNED ) - + 11 THEN 40 WHEN - - SUM( DISTINCT + 17 ) THEN NULL END * 74 - - 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3896
SELECT COALESCE ( + - COUNT ( - 89 ), + COUNT ( * ) ) + CASE - COUNT ( 7 ) WHEN + CAST ( NULL AS INTEGER ) - + 11 THEN 40 WHEN - - SUM ( DISTINCT + 17 ) THEN NULL END * 74 - - 28 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3897
SELECT DISTINCT MAX( DISTINCT - - 85 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT MAX ( DISTINCT - - 85 ) * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 56 + 0 - - + 99 * 28 AS col0, + 76 AS col0
----
2828
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3899
SELECT NULLIF ( + 0, + 40 * + + 80 * CASE - 23 WHEN + + CAST( NULL AS DECIMAL ) * + - 90 THEN NULL WHEN - 8 THEN NULL ELSE - + MIN( ALL + 34 ) END * - COUNT( * ) + - + 79 ) + 51
----
51

skipif mysql # not compatible
query I rowsort label-3899
SELECT NULLIF ( + 0, + 40 * + + 80 * CASE - 23 WHEN + + CAST ( NULL AS REAL ) * + - 90 THEN NULL WHEN - 8 THEN NULL ELSE - + MIN ( ALL + 34 ) END * - COUNT ( * ) + - + 79 ) + 51
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3900
SELECT 19 - + 82, COUNT( * ) + + 96 + - 86 * + 81 AS col0
----
-63
-6869

skipif mysql # not compatible
query II rowsort label-3900
SELECT 19 - + 82, COUNT ( * ) + + 96 + - 86 * + 81 AS col0
----
-63
-6869

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT DISTINCT MAX( - 74 ) * + - 55 + - 15 * 69 * 60
----
-58030

skipif mysql # not compatible
query I rowsort label-3901
SELECT DISTINCT MAX ( - 74 ) * + - 55 + - 15 * 69 * 60
----
-58030

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT ( - CASE - AVG ( ALL - + 24 ) WHEN - + 50 THEN NULL ELSE + + COUNT( * ) END ) * - 72 col2
----
72

skipif mysql # not compatible
query I rowsort label-3902
SELECT ( - CASE - AVG ( ALL - + 24 ) WHEN - + 50 THEN NULL ELSE + + COUNT ( * ) END ) * - 72 col2
----
72

query II rowsort
SELECT NULLIF ( + + 30, 75 ) * + 25 * + 91 * 51 + + ( 90 ) - + - ( + ( + 35 ) ) + - 97 + - 29 * + 7, + 33 AS col1
----
3480575
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3904
SELECT MAX( - 29 ) DIV + 71 + - 16 + + ( + 7 )
----
-9

skipif mysql # not compatible
query I rowsort label-3904
SELECT MAX ( - 29 ) / + 71 + - 16 + + ( + 7 )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-3905
SELECT 60 + COUNT( * ), ( NULLIF ( ( - NULLIF ( + - COALESCE ( + - 61, 75 * + COUNT( * ) ), 11 / 82 + - + 83 ) ), + 51 * + ( - - 72 ) * - 29 * - - 41 ) ) col0
----
61
-61

skipif mysql # not compatible
query II rowsort label-3905
SELECT 60 + COUNT ( * ), ( NULLIF ( ( - NULLIF ( + - COALESCE ( + - 61, 75 * + COUNT ( * ) ), 11 / 82 + - + 83 ) ), + 51 * + ( - - 72 ) * - 29 * - - 41 ) ) col0
----
61
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3906
SELECT DISTINCT 6 DIV + + ( + COUNT( * ) ) col0
----
6

skipif mysql # not compatible
query I rowsort label-3906
SELECT DISTINCT 6 / + + ( + COUNT ( * ) ) col0
----
6

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3907
SELECT DISTINCT - CASE - 77 WHEN + ( - CAST( NULL AS SIGNED ) ) * CAST( + 0 AS DECIMAL ) THEN - + 43 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT - CASE - 77 WHEN + ( - CAST ( NULL AS INTEGER ) ) * CAST ( + 0 AS REAL ) THEN - + 43 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3908
SELECT DISTINCT - COUNT( DISTINCT + - 73 ) AS col1, 77 - 84 * + 46
----
-1
-3787

skipif mysql # not compatible
query II rowsort label-3908
SELECT DISTINCT - COUNT ( DISTINCT + - 73 ) AS col1, 77 - 84 * + 46
----
-1
-3787

query I rowsort
SELECT DISTINCT 33 * + 60 col1
----
1980

query I rowsort
SELECT - 11 * 83 * 54 - 69 + + 36
----
-49335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3911
SELECT ( - 18 ) * + + COUNT( * ) / - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3911
SELECT ( - 18 ) * + + COUNT ( * ) / - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + ( - 80 ) * - - 60
----
-4800

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3913
SELECT - 91 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3913
SELECT - 91 / - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 35 + 39 col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3915
SELECT ALL - + CAST( - 96 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL - + CAST ( - 96 AS INTEGER )
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-3916
SELECT ALL - 36 DIV + 90 AS col2, 24 DIV + 12
----
0
2

skipif mysql # not compatible
query II rowsort label-3916
SELECT ALL - 36 / + 90 AS col2, 24 / + 12
----
0
2

query I rowsort
SELECT - 48 * + 55 + + 30 AS col1
----
-2610

query I rowsort
SELECT 1 * + - 38 + + 48 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT ALL COUNT( + 23 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL COUNT ( + 23 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT DISTINCT - + 15 + COUNT( * ) + 57 * + + 94 AS col0
----
5344

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT - + 15 + COUNT ( * ) + 57 * + + 94 AS col0
----
5344

query I rowsort
SELECT ALL - 94 + + 20
----
-74

query I rowsort
SELECT 74 + + - 41 * + - 45 * 61
----
112619

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT ALL + COUNT( * ) * + 86 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL + COUNT ( * ) * + 86 AS col2
----
86

query I rowsort
SELECT 93 + + 30 + - 42
----
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3925
SELECT ALL CAST( NULL AS DECIMAL ) + - MAX( - - 66 ) * + 72 + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL CAST ( NULL AS REAL ) + - MAX ( - - 66 ) * + 72 + 61 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3926
SELECT COUNT( * ) + + - ( - 16 ) col1, + 79 + 95
----
17
174

skipif mysql # not compatible
query II rowsort label-3926
SELECT COUNT ( * ) + + - ( - 16 ) col1, + 79 + 95
----
17
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3927
SELECT 19 + - COUNT( ALL + 91 ) - + 10 DIV 60 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-3927
SELECT 19 + - COUNT ( ALL + 91 ) - + 10 / 60 AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3928
SELECT 99 * + NULLIF ( 27, 63 * - 48 + + + 74 * + 36 * + CAST( + ( + COUNT( * ) ) AS SIGNED ) * 47 ) AS col0
----
2673

skipif mysql # not compatible
query I rowsort label-3928
SELECT 99 * + NULLIF ( 27, 63 * - 48 + + + 74 * + 36 * + CAST ( + ( + COUNT ( * ) ) AS INTEGER ) * 47 ) AS col0
----
2673

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3929
SELECT 15 + + COUNT( * ) DIV - 39
----
15

skipif mysql # not compatible
query I rowsort label-3929
SELECT 15 + + COUNT ( * ) / - 39
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3930
SELECT 18 DIV 28 DIV + 35 * - - 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3930
SELECT 18 / 28 / + 35 * - - 47 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3931
SELECT 54 + 88 * - 78 / + CASE 6 WHEN - - 18 * CAST( NULL AS SIGNED ) * 51 THEN + - COALESCE ( + CAST( NULL AS SIGNED ), + 89 ) WHEN + - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3931
SELECT 54 + 88 * - 78 / + CASE 6 WHEN - - 18 * CAST ( NULL AS INTEGER ) * 51 THEN + - COALESCE ( + CAST ( NULL AS INTEGER ), + 89 ) WHEN + - COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL 49 * - - ( + 92 ) AS col0
----
4508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3933
SELECT 24 * - CASE - + CAST( - 51 AS SIGNED ) WHEN + NULLIF ( 7, AVG ( - 32 ) ) * 62 THEN + - 3 WHEN + 17 THEN - 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3933
SELECT 24 * - CASE - + CAST ( - 51 AS INTEGER ) WHEN + NULLIF ( 7, AVG ( - 32 ) ) * 62 THEN + - 3 WHEN + 17 THEN - 97 END
----
NULL

query I rowsort
SELECT ALL - 41 * + 43 - + 75 AS col0
----
-1838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3935
SELECT DISTINCT - CASE + 41 WHEN 23 THEN NULL WHEN + 1 THEN + + MIN( 88 ) + + 67 * - 46 * CAST( - + 93 AS SIGNED ) END * + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT - CASE + 41 WHEN 23 THEN NULL WHEN + 1 THEN + + MIN ( 88 ) + + 67 * - 46 * CAST ( - + 93 AS INTEGER ) END * + + 46
----
NULL

query I rowsort
SELECT ALL 42 * + + NULLIF ( 64, + - 14 * 94 )
----
2688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3937
SELECT ALL 60 * 19 - - 44 + + 97 DIV + COUNT( * )
----
1281

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL 60 * 19 - - 44 + + 97 / + COUNT ( * )
----
1281

query I rowsort
SELECT + ( + + 26 )
----
26

query I rowsort
SELECT ALL - + 0 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT ALL - - CASE 50 WHEN + 45 / 39 - + 32 + - COUNT( * ) * + + 99 - 64 * + 86 THEN - 85 WHEN + 59 - + 45 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL - - CASE 50 WHEN + 45 / 39 - + 32 + - COUNT ( * ) * + + 99 - 64 * + 86 THEN - 85 WHEN + 59 - + 45 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-3941
SELECT + + 0 AS col0, - 24 * + - 27 AS col0, - NULLIF ( + - 77, - - COUNT( * ) + - - 16 ) - + 37 AS col1
----
0
648
40

skipif mysql # not compatible
query III rowsort label-3941
SELECT + + 0 AS col0, - 24 * + - 27 AS col0, - NULLIF ( + - 77, - - COUNT ( * ) + - - 16 ) - + 37 AS col1
----
0
648
40

query I rowsort
SELECT DISTINCT - ( + 37 )
----
-37

query I rowsort
SELECT + 89 - - + 40 + + - 21 AS col0
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3944
SELECT + - COALESCE ( + COUNT( * ), + NULLIF ( + ( + COUNT( * ) ), - + AVG ( DISTINCT ( 70 ) ) + ( - 77 ) * + 58 ) + + CAST( NULL AS SIGNED ), - ( - 91 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3944
SELECT + - COALESCE ( + COUNT ( * ), + NULLIF ( + ( + COUNT ( * ) ), - + AVG ( DISTINCT ( 70 ) ) + ( - 77 ) * + 58 ) + + CAST ( NULL AS INTEGER ), - ( - 91 ) ) col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3945
SELECT ALL + + NULLIF ( 31, CASE - 55 WHEN - ( - 98 ) + 85 THEN - - 14 END + + ( + - COUNT( * ) ) ), 92 AS col1
----
31
92

skipif mysql # not compatible
query II rowsort label-3945
SELECT ALL + + NULLIF ( 31, CASE - 55 WHEN - ( - 98 ) + 85 THEN - - 14 END + + ( + - COUNT ( * ) ) ), 92 AS col1
----
31
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3946
SELECT + ( 15 ) * + 2 + + 83 + 35 - + 7 DIV + 83 * COUNT( - 53 )
----
148

skipif mysql # not compatible
query I rowsort label-3946
SELECT + ( 15 ) * + 2 + + 83 + 35 - + 7 / + 83 * COUNT ( - 53 )
----
148

query I rowsort
SELECT ALL - 24 + + 69 AS col1
----
45

query I rowsort
SELECT ALL 52 + - 78 col2
----
-26

query I rowsort
SELECT - 96 * - 68
----
6528

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT DISTINCT COUNT( ALL - 16 ) + + 52
----
53

skipif mysql # not compatible
query I rowsort label-3950
SELECT DISTINCT COUNT ( ALL - 16 ) + + 52
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-3951
SELECT ALL + COUNT( * ) AS col0, 10 AS col0
----
1
10

skipif mysql # not compatible
query II rowsort label-3951
SELECT ALL + COUNT ( * ) AS col0, 10 AS col0
----
1
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3952
SELECT + 51 DIV + 47
----
1

skipif mysql # not compatible
query I rowsort label-3952
SELECT + 51 / + 47
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT - 57 + - - COUNT( 77 )
----
-56

skipif mysql # not compatible
query I rowsort label-3953
SELECT - 57 + - - COUNT ( 77 )
----
-56

query I rowsort
SELECT - COALESCE ( - 32, + 75 ) AS col1
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3955
SELECT + CAST( NULL AS DECIMAL ) * - 18 * - - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT + CAST ( NULL AS REAL ) * - 18 * - - 63
----
NULL

query I rowsort
SELECT DISTINCT 92 + + 77
----
169

onlyif mysql # aggregate syntax: 
query II rowsort label-3957
SELECT ALL 89, 43 * + + 20 + + 33 * - COUNT( * ) + 45 + COALESCE ( - 46, COUNT( ALL - 89 ) * - 78 ) + - 86 + + 55 * 63 * + 89 * + - SUM( - 30 ) - + - 88 + + 41 * + 49 AS col0
----
89
9254387

skipif mysql # not compatible
query II rowsort label-3957
SELECT ALL 89, 43 * + + 20 + + 33 * - COUNT ( * ) + 45 + COALESCE ( - 46, COUNT ( ALL - 89 ) * - 78 ) + - 86 + + 55 * 63 * + 89 * + - SUM ( - 30 ) - + - 88 + + 41 * + 49 AS col0
----
89
9254387

query II rowsort
SELECT - 97 * - 61 AS col0, + 30 AS col0
----
5917
30

query I rowsort
SELECT ALL + 90 * 96
----
8640

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT - 14 + + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-3960
SELECT - 14 + + COUNT ( * )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3961
SELECT ALL + CASE - + 53 WHEN + + NULLIF ( + COUNT( * ), 5 + - 21 ) + 35 * - 62 THEN 72 + + CAST( COUNT( * ) AS SIGNED ) + 1 * - NULLIF ( 6, - - 0 ) * + + 43 END - - 18 / - - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL + CASE - + 53 WHEN + + NULLIF ( + COUNT ( * ), 5 + - 21 ) + 35 * - 62 THEN 72 + + CAST ( COUNT ( * ) AS INTEGER ) + 1 * - NULLIF ( 6, - - 0 ) * + + 43 END - - 18 / - - 52
----
NULL

query II rowsort
SELECT - 54, 38 AS col0
----
-54
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3963
SELECT - 61 - - - CAST( - 64 AS SIGNED ) + - - 0 AS col0, MAX( ALL + 51 ) + + ( - + CAST( NULL AS SIGNED ) )
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3963
SELECT - 61 - - - CAST ( - 64 AS INTEGER ) + - - 0 AS col0, MAX ( ALL + 51 ) + + ( - + CAST ( NULL AS INTEGER ) )
----
3
NULL

query I rowsort
SELECT - 67 * - 71
----
4757

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3965
SELECT ALL - ( - 28 ) * - - ( - 45 ) + - + 90 + 69 + - 64 + + CAST( + 77 AS SIGNED )
----
-1268

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL - ( - 28 ) * - - ( - 45 ) + - + 90 + 69 + - 64 + + CAST ( + 77 AS INTEGER )
----
-1268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3966
SELECT - 37 - CAST( 23 AS SIGNED ) + - CASE + COUNT( * ) WHEN - 32 THEN - 56 WHEN - 20 THEN NULL WHEN - + 60 + - 83 + - ( 78 ) THEN NULL END + - 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT - 37 - CAST ( 23 AS INTEGER ) + - CASE + COUNT ( * ) WHEN - 32 THEN - 56 WHEN - 20 THEN NULL WHEN - + 60 + - 83 + - ( 78 ) THEN NULL END + - 18 AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( + - 76 ) AS col2
----
-76

query I rowsort
SELECT ALL - 92 * ( - + 84 ) * 62 AS col2
----
479136

query I rowsort
SELECT DISTINCT COALESCE ( + - 39, - 47 ) AS col1
----
-39

query I rowsort
SELECT - 83 - - 50 col0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3971
SELECT ALL 67 DIV 80 * 73 + - SUM( - 25 ) * 6
----
150

skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL 67 / 80 * 73 + - SUM ( - 25 ) * 6
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT - COUNT( * ) * MAX( + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-3972
SELECT - COUNT ( * ) * MAX ( + 43 )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-3973
SELECT ALL + + 6, MIN( DISTINCT + 33 ) AS col1
----
6
33

skipif mysql # not compatible
query II rowsort label-3973
SELECT ALL + + 6, MIN ( DISTINCT + 33 ) AS col1
----
6
33

query II rowsort
SELECT - ( + - 45 ) * - + 74 + - 55 AS col1, + 70
----
-3385
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3975
SELECT + + SUM( + 19 ) DIV + 6 + 82 * 61 + + - 83 col1
----
4922

skipif mysql # not compatible
query I rowsort label-3975
SELECT + + SUM ( + 19 ) / + 6 + 82 * 61 + + - 83 col1
----
4922

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3976
SELECT + COUNT( * ) DIV + 44 * + + COUNT( * ) * 66 + - - 26 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-3976
SELECT + COUNT ( * ) / + 44 * + + COUNT ( * ) * 66 + - - 26 AS col1
----
26

query I rowsort
SELECT - - 88 * + 71 + + 26
----
6274

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL - 23 * - 34 + COUNT( * ) AS col2
----
783

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL - 23 * - 34 + COUNT ( * ) AS col2
----
783

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT DISTINCT COUNT( * ) * + 6 + - - COUNT( * ) col0
----
7

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT COUNT ( * ) * + 6 + - - COUNT ( * ) col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3980
SELECT + 28 AS col2, + CAST( + 1 AS SIGNED )
----
28
1

skipif mysql # not compatible
query II rowsort label-3980
SELECT + 28 AS col2, + CAST ( + 1 AS INTEGER )
----
28
1

query II rowsort
SELECT + 11 AS col2, 8
----
11
8

query I rowsort
SELECT ALL 73 * + 13 + + 81
----
1030

onlyif mysql # aggregate syntax: 
query II rowsort label-3983
SELECT + + COUNT( * ) col2, ( + 91 )
----
1
91

skipif mysql # not compatible
query II rowsort label-3983
SELECT + + COUNT ( * ) col2, ( + 91 )
----
1
91

query I rowsort
SELECT + + 62 - + 62 * 14 AS col2
----
-806

query II rowsort
SELECT DISTINCT + 81 AS col1, + 57
----
81
57

onlyif mysql # aggregate syntax: 
query II rowsort label-3986
SELECT ALL + + 63 AS col0, SUM( 92 ) AS col0
----
63
92

skipif mysql # not compatible
query II rowsort label-3986
SELECT ALL + + 63 AS col0, SUM ( 92 ) AS col0
----
63
92

query I rowsort
SELECT + - 87 + + 45 + + 82 * + 35 * + 46 * + - 92
----
-12145882

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3988
SELECT DISTINCT + + SUM( DISTINCT - 0 ) * - 87 DIV + COUNT( * ) + - 79 col2
----
-79

skipif mysql # not compatible
query I rowsort label-3988
SELECT DISTINCT + + SUM ( DISTINCT - 0 ) * - 87 / + COUNT ( * ) + - 79 col2
----
-79

query II rowsort
SELECT + 97 - + 35 AS col2, 68
----
62
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT + 73 + + NULLIF ( + 13, - - 89 ) - + ( + COUNT( * ) )
----
85

skipif mysql # not compatible
query I rowsort label-3990
SELECT + 73 + + NULLIF ( + 13, - - 89 ) - + ( + COUNT ( * ) )
----
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3991
SELECT ALL + 80 * + ( + CAST( NULL AS DECIMAL ) ) - - - 7 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL + 80 * + ( + CAST ( NULL AS REAL ) ) - - - 7 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT + 61 + + 38 + MIN( ( 68 ) ) AS col2
----
167

skipif mysql # not compatible
query I rowsort label-3992
SELECT + 61 + + 38 + MIN ( ( 68 ) ) AS col2
----
167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3993
SELECT - 67 DIV + NULLIF ( + - COUNT( * ), - + 70 ) col2
----
67

skipif mysql # not compatible
query I rowsort label-3993
SELECT - 67 / + NULLIF ( + - COUNT ( * ), - + 70 ) col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3994
SELECT ALL COALESCE ( - ( + - ( - - 73 ) ), + 75 + + 52 + 22 + 49 + 5 DIV - 61 * 66, - CAST( NULL AS SIGNED ) + - 27 + 67 - - 8 + + - 85 * - + ( 0 ), ( + 18 ) * + COUNT( * ) * + 64 + + - 66 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL COALESCE ( - ( + - ( - - 73 ) ), + 75 + + 52 + 22 + 49 + 5 / - 61 * 66, - CAST ( NULL AS INTEGER ) + - 27 + 67 - - 8 + + - 85 * - + ( 0 ), ( + 18 ) * + COUNT ( * ) * + 64 + + - 66 ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT + 38 + - + COUNT( * ) * + 11 * + 97
----
-1029

skipif mysql # not compatible
query I rowsort label-3995
SELECT + 38 + - + COUNT ( * ) * + 11 * + 97
----
-1029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3996
SELECT + 14 + + 58 + - CAST( - 0 AS SIGNED ) * COUNT( ALL - 6 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-3996
SELECT + 14 + + 58 + - CAST ( - 0 AS INTEGER ) * COUNT ( ALL - 6 ) AS col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3997
SELECT ALL + 32 DIV 24
----
1

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL + 32 / 24
----
1

query I rowsort
SELECT - 60 + 0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3999
SELECT ALL COALESCE ( + 35, 80 * - + 91, COALESCE ( + CASE WHEN + 56 > - - 95 THEN 68 * + 81 ELSE + 36 END, CASE + COUNT( * ) WHEN + + 92 THEN - COUNT( * ) + 11 + + - 60 * 7 * - + 8 * - 24 * - 38 WHEN CASE + ( + ( + - 44 ) ) WHEN + 73 THEN NULL WHEN 63 * - 3 THEN 9 WHEN 17 THEN NULL END THEN 7 WHEN - 74 THEN ( CAST( NULL AS SIGNED ) ) * - 81 ELSE + 39 * 68 END ) * - 90 + 29 * - 64 )
----
35

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL COALESCE ( + 35, 80 * - + 91, COALESCE ( + CASE WHEN + 56 > - - 95 THEN 68 * + 81 ELSE + 36 END, CASE + COUNT ( * ) WHEN + + 92 THEN - COUNT ( * ) + 11 + + - 60 * 7 * - + 8 * - 24 * - 38 WHEN CASE + ( + ( + - 44 ) ) WHEN + 73 THEN NULL WHEN 63 * - 3 THEN 9 WHEN 17 THEN NULL END THEN 7 WHEN - 74 THEN ( CAST ( NULL AS INTEGER ) ) * - 81 ELSE + 39 * 68 END ) * - 90 + 29 * - 64 )
----
35

onlyif mysql # DIV for integer division: 
query II rowsort label-4000
SELECT ALL - 7 + + + 66 AS col2, + 82 + + - 53 DIV 1 * + 3 + + 5
----
59
-72

skipif mysql # not compatible
query II rowsort label-4000
SELECT ALL - 7 + + + 66 AS col2, + 82 + + - 53 / 1 * + 3 + + 5
----
59
-72

query I rowsort
SELECT DISTINCT - + ( - 17 ) + - - 80
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4002
SELECT + - 47 * + - CAST( NULL AS DECIMAL ) + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-4002
SELECT + - 47 * + - CAST ( NULL AS REAL ) + 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT - COUNT( * ) / 95 + NULLIF ( - - CASE + COUNT( * ) WHEN - 60 THEN - - 57 WHEN 58 THEN COUNT( * ) ELSE NULL END, - COUNT( * ) ) + - 54 * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT - COUNT ( * ) / 95 + NULLIF ( - - CASE + COUNT ( * ) WHEN - 60 THEN - - 57 WHEN 58 THEN COUNT ( * ) ELSE NULL END, - COUNT ( * ) ) + - 54 * + 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT + - COUNT( * ) * COUNT( * ) + - + 38 + - 16
----
-55

skipif mysql # not compatible
query I rowsort label-4004
SELECT + - COUNT ( * ) * COUNT ( * ) + - + 38 + - 16
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4005
SELECT 7 - CAST( NULL AS SIGNED ) * - 39 * - - COUNT( 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4005
SELECT 7 - CAST ( NULL AS INTEGER ) * - 39 * - - COUNT ( 6 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4006
SELECT ALL - CAST( 65 AS SIGNED ) AS col0, 58 * - 54 + - ( + + 53 ) DIV + 5 AS col0
----
-65
-3142

skipif mysql # not compatible
query II rowsort label-4006
SELECT ALL - CAST ( 65 AS INTEGER ) AS col0, 58 * - 54 + - ( + + 53 ) / + 5 AS col0
----
-65
-3142

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT - 49 * COUNT( * ) / - ( - 42 ) + + ( - CASE 77 WHEN - 51 THEN - ( - + 5 ) * MIN( DISTINCT - + 41 ) / - - 44 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT - 49 * COUNT ( * ) / - ( - 42 ) + + ( - CASE 77 WHEN - 51 THEN - ( - + 5 ) * MIN ( DISTINCT - + 41 ) / - - 44 END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4008
SELECT 68 * + + ( CAST( NULL AS SIGNED ) ) * - 26 * - + ( 45 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4008
SELECT 68 * + + ( CAST ( NULL AS INTEGER ) ) * - 26 * - + ( 45 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT DISTINCT - + COUNT( + - 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT - + COUNT ( + - 22 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT ALL 70 - - + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL 70 - - + COUNT ( * )
----
71

query I rowsort
SELECT DISTINCT + - 28 * + 22 AS col2
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT DISTINCT + COUNT( + - 70 ) - - - 53
----
-52

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT + COUNT ( + - 70 ) - - - 53
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-4013
SELECT DISTINCT - 80, 47 * - COUNT( * ) + + 69 * + - 78 AS col1
----
-80
-5429

skipif mysql # not compatible
query II rowsort label-4013
SELECT DISTINCT - 80, 47 * - COUNT ( * ) + + 69 * + - 78 AS col1
----
-80
-5429

query II rowsort
SELECT ALL - 83 AS col1, 33
----
-83
33

query II rowsort
SELECT 31, + 99 AS col0
----
31
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4016
SELECT 36 * - 29 + - + 45 + + - 42 DIV + - 27 + + 89
----
-999

skipif mysql # not compatible
query I rowsort label-4016
SELECT 36 * - 29 + - + 45 + + - 42 / + - 27 + + 89
----
-999

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4017
SELECT 99 * + + CAST( + 13 AS SIGNED )
----
1287

skipif mysql # not compatible
query I rowsort label-4017
SELECT 99 * + + CAST ( + 13 AS INTEGER )
----
1287

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT COUNT( * ) * - 19 * - - COALESCE ( - - ( COUNT( * ) ), - 19 * - + 20 + - + 2 + - COUNT( DISTINCT - NULLIF ( + 48, 42 ) ), - - 60 + - 3 + 68 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-4018
SELECT COUNT ( * ) * - 19 * - - COALESCE ( - - ( COUNT ( * ) ), - 19 * - + 20 + - + 2 + - COUNT ( DISTINCT - NULLIF ( + 48, 42 ) ), - - 60 + - 3 + 68 ) AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4019
SELECT DISTINCT - 70 AS col2, - 60 DIV - + COUNT( * ) + - ( + - ( - CAST( + 30 AS SIGNED ) ) ) - + 39 - + 76 * - SUM( ALL - - 56 )
----
-70
4247

skipif mysql # not compatible
query II rowsort label-4019
SELECT DISTINCT - 70 AS col2, - 60 / - + COUNT ( * ) + - ( + - ( - CAST ( + 30 AS INTEGER ) ) ) - + 39 - + 76 * - SUM ( ALL - - 56 )
----
-70
4247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4020
SELECT CAST( NULL AS SIGNED ) + - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT CAST ( NULL AS INTEGER ) + - 85
----
NULL

query II rowsort
SELECT DISTINCT 0 AS col1, 18
----
0
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4022
SELECT DISTINCT 2 AS col2, - COUNT( + - 36 ) AS col1
----
2
-1

skipif mysql # not compatible
query II rowsort label-4022
SELECT DISTINCT 2 AS col2, - COUNT ( + - 36 ) AS col1
----
2
-1

query II rowsort
SELECT DISTINCT 53 col1, + 9 AS col0
----
53
9

query II rowsort
SELECT DISTINCT 11 AS col2, + 46 AS col0
----
11
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT ALL 19 * + COUNT( * ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL 19 * + COUNT ( * ) AS col2
----
19

query II rowsort
SELECT ALL 15, 75 AS col0
----
15
75

query I rowsort
SELECT 60 + + 95 col2
----
155

query I rowsort
SELECT ( + 79 ) * - 91 AS col2
----
-7189

query I rowsort
SELECT 43 - + - 62 AS col0
----
105

query II rowsort
SELECT 35 col0, - 89 AS col1
----
35
-89

query I rowsort
SELECT - 76 - - 41 AS col2
----
-35

query I rowsort
SELECT 42 * + 61
----
2562

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4033
SELECT ALL - - 10 + + CAST( + - 70 AS SIGNED ) AS col1, CASE - 96 WHEN + CAST( - COUNT( * ) AS SIGNED ) + + 62 + + COUNT( * ) THEN + COALESCE ( - 35, - + MAX( DISTINCT 9 ) ) + + 71 + - + 93 END * - 88 AS col0
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-4033
SELECT ALL - - 10 + + CAST ( + - 70 AS INTEGER ) AS col1, CASE - 96 WHEN + CAST ( - COUNT ( * ) AS INTEGER ) + + 62 + + COUNT ( * ) THEN + COALESCE ( - 35, - + MAX ( DISTINCT 9 ) ) + + 71 + - + 93 END * - 88 AS col0
----
-60
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4034
SELECT DISTINCT + - 48 DIV + 17 + + 68 * + 93 AS col0, 63 + + 93 * + 53 col1
----
6322
4992

skipif mysql # not compatible
query II rowsort label-4034
SELECT DISTINCT + - 48 / + 17 + + 68 * + 93 AS col0, 63 + + 93 * + 53 col1
----
6322
4992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4035
SELECT DISTINCT 73 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT 73 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4036
SELECT ALL CASE 66 WHEN + - COUNT( * ) - 71 * + 84 * 62 + - - 58 * - 83 THEN + - 78 - + 49 WHEN + + 32 + 28 * - ( + NULLIF ( + SUM( 45 ), + 54 ) ) THEN - 31 * + - NULLIF ( + - CAST( 15 AS SIGNED ), - 61 ) * - CAST( + 99 AS SIGNED ) WHEN - + 39 THEN COUNT( * ) * - 79 + - 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL CASE 66 WHEN + - COUNT ( * ) - 71 * + 84 * 62 + - - 58 * - 83 THEN + - 78 - + 49 WHEN + + 32 + 28 * - ( + NULLIF ( + SUM ( 45 ), + 54 ) ) THEN - 31 * + - NULLIF ( + - CAST ( 15 AS INTEGER ), - 61 ) * - CAST ( + 99 AS INTEGER ) WHEN - + 39 THEN COUNT ( * ) * - 79 + - 98 END
----
NULL

query II rowsort
SELECT - 73 AS col2, 74
----
-73
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4038
SELECT DISTINCT CAST( - ( - NULLIF ( + 83, - 45 ) ) AS SIGNED ) + + 45 col0
----
128

skipif mysql # not compatible
query I rowsort label-4038
SELECT DISTINCT CAST ( - ( - NULLIF ( + 83, - 45 ) ) AS INTEGER ) + + 45 col0
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-4039
SELECT + - 55 AS col1, + 16 * - ( + COUNT( * ) ) * ( - - 63 ) + - 78 AS col2
----
-55
-1086

skipif mysql # not compatible
query II rowsort label-4039
SELECT + - 55 AS col1, + 16 * - ( + COUNT ( * ) ) * ( - - 63 ) + - 78 AS col2
----
-55
-1086

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4040
SELECT + ( - - 77 ) * - COUNT( * ) + + + CAST( + 27 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-4040
SELECT + ( - - 77 ) * - COUNT ( * ) + + + CAST ( + 27 AS INTEGER )
----
-50

query II rowsort
SELECT + 46 AS col0, 52 AS col1
----
46
52

query I rowsort
SELECT 21 + + 13 + - + 33 * - - 33
----
-1055

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT DISTINCT + COUNT( * ) * - - 74 col0
----
74

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT + COUNT ( * ) * - - 74 col0
----
74

onlyif mysql # DIV for integer division: 
query II rowsort label-4044
SELECT ALL + 90 * + 26 + + - 70 AS col2, 46 DIV 80 * + - 89
----
2270
0

skipif mysql # not compatible
query II rowsort label-4044
SELECT ALL + 90 * + 26 + + - 70 AS col2, 46 / 80 * + - 89
----
2270
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4045
SELECT ( 54 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4045
SELECT ( 54 ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT ALL + - 1 - + COUNT( 16 )
----
-2

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL + - 1 - + COUNT ( 16 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4047
SELECT DISTINCT - CAST( + + 92 AS SIGNED ), MIN( DISTINCT + + 75 ) * 53 + - 55 + - - 94 * ( + 61 ) AS col0
----
-92
9654

skipif mysql # not compatible
query II rowsort label-4047
SELECT DISTINCT - CAST ( + + 92 AS INTEGER ), MIN ( DISTINCT + + 75 ) * 53 + - 55 + - - 94 * ( + 61 ) AS col0
----
-92
9654

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4048
SELECT ALL - CASE + + 50 WHEN - 40 THEN 73 ELSE NULL END, - MAX( + 70 ) DIV 94 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4048
SELECT ALL - CASE + + 50 WHEN - 40 THEN 73 ELSE NULL END, - MAX ( + 70 ) / 94 AS col1
----
NULL
0

query I rowsort
SELECT 93 * - 89 * - - 98
----
-811146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4050
SELECT COUNT( * ) DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-4050
SELECT COUNT ( * ) / + 98
----
0

query I rowsort
SELECT 9 + 47 * + 1 - + 57 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4052
SELECT NULLIF ( + - 2, 14 + - + ( 8 ) * - 90 * 98 ) * CAST( + + 72 AS SIGNED ) + + 60 col1
----
-84

skipif mysql # not compatible
query I rowsort label-4052
SELECT NULLIF ( + - 2, 14 + - + ( 8 ) * - 90 * 98 ) * CAST ( + + 72 AS INTEGER ) + + 60 col1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4053
SELECT 25 DIV + - NULLIF ( - 58, + 55 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4053
SELECT 25 / + - NULLIF ( - 58, + 55 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4054
SELECT DISTINCT + COUNT( - CAST( NULL AS SIGNED ) ) DIV 35 * + 33 col1
----
0

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT + COUNT ( - CAST ( NULL AS INTEGER ) ) / 35 * + 33 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT ALL - MAX( + ( 83 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL - MAX ( + ( 83 ) )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4056
SELECT 37 DIV + 20 * CAST( + ( - NULLIF ( COUNT( * ), - 38 * + 81 ) ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4056
SELECT 37 / + 20 * CAST ( + ( - NULLIF ( COUNT ( * ), - 38 * + 81 ) ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT ALL - 33 * - 55 * 85
----
154275

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT ALL 78 + + + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL 78 + + + COUNT ( * )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4059
SELECT ALL + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 79 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 60 + 61
----
121

query I rowsort
SELECT 34 + - - 75 * - - 73
----
5509

query I rowsort
SELECT 43 + - ( 64 ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT SUM( DISTINCT 95 ) * 64 * - 5
----
-30400

skipif mysql # not compatible
query I rowsort label-4063
SELECT SUM ( DISTINCT 95 ) * 64 * - 5
----
-30400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4064
SELECT - 24 + + 95 + + - 35 + + 62 * + COUNT( * ) / 37 * + 82 + - ( COUNT( * ) ) * - + 76 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT - 24 + + 95 + + - 35 + + 62 * + COUNT ( * ) / 37 * + 82 + - ( COUNT ( * ) ) * - + 76 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 30 - - + 75
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-4066
SELECT DISTINCT COUNT( DISTINCT + 11 ) AS col1, 1 col1
----
1
1

skipif mysql # not compatible
query II rowsort label-4066
SELECT DISTINCT COUNT ( DISTINCT + 11 ) AS col1, 1 col1
----
1
1

query I rowsort
SELECT ALL - 70 + - 31
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ALL + 12 + + + MAX( + + 76 )
----
88

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL + 12 + + + MAX ( + + 76 )
----
88

query I rowsort
SELECT ALL + 90 + - 94
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4070
SELECT DISTINCT 62 + + CASE - 23 WHEN 50 + + ( - 31 ) * + 88 THEN - - NULLIF ( - + 67, + 81 ) * 53 + 70 + - 27 + - + 72 * CAST( - 75 AS SIGNED ) * - + 31 + - - 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT 62 + + CASE - 23 WHEN 50 + + ( - 31 ) * + 88 THEN - - NULLIF ( - + 67, + 81 ) * 53 + 70 + - 27 + - + 72 * CAST ( - 75 AS INTEGER ) * - + 31 + - - 45 END
----
NULL

query I rowsort
SELECT ALL ( - ( - 68 ) )
----
68

query I rowsort
SELECT + - 51 + 79 AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4073
SELECT ALL + ( + + 82 ) * MIN( DISTINCT - CAST( - 29 AS SIGNED ) )
----
2378

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL + ( + + 82 ) * MIN ( DISTINCT - CAST ( - 29 AS INTEGER ) )
----
2378

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT DISTINCT COUNT( DISTINCT + 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4074
SELECT DISTINCT COUNT ( DISTINCT + 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT ALL 89 * 21 * - ( + + COUNT( * ) ) + - 3
----
-1872

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL 89 * 21 * - ( + + COUNT ( * ) ) + - 3
----
-1872

query I rowsort
SELECT - - 69 col2
----
69

query I rowsort
SELECT NULLIF ( + 70, - 18 + - 5 ) AS col1
----
70

query I rowsort
SELECT + 77 * + 14 * 98
----
105644

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT + COALESCE ( + + 52, 51 ) * + - COALESCE ( ( + COUNT( * ) ), ( - - 98 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-4079
SELECT + COALESCE ( + + 52, 51 ) * + - COALESCE ( ( + COUNT ( * ) ), ( - - 98 ) )
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4080
SELECT + - SUM( - 92 ) + - 87 DIV + - 15
----
97

skipif mysql # not compatible
query I rowsort label-4080
SELECT + - SUM ( - 92 ) + - 87 / + - 15
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4081
SELECT DISTINCT 64 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT 64 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 2 * - 89 - 44
----
-222

query II rowsort
SELECT + - 25 * + + 52 + - 67 * - 72 col1, 17
----
3524
17

onlyif mysql # DIV for integer division: 
query I rowsort label-4084
SELECT ALL - 14 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL - 14 / + 43
----
0

query I rowsort
SELECT DISTINCT 61 * - 85 * 40 - - 58 AS col0
----
-207342

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT - 82 * + 52 * + 76 + + NULLIF ( - NULLIF ( + 68, - 74 * - 76 ), + SUM( 19 ) + 17 + + 12 ) + CASE + - COUNT( * ) WHEN + SUM( DISTINCT - 32 ) THEN 22 + - 15 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4086
SELECT - 82 * + 52 * + 76 + + NULLIF ( - NULLIF ( + 68, - 74 * - 76 ), + SUM ( 19 ) + 17 + + 12 ) + CASE + - COUNT ( * ) WHEN + SUM ( DISTINCT - 32 ) THEN 22 + - 15 END AS col0
----
NULL

query I rowsort
SELECT + 45 * + 48 * - 65 AS col1
----
-140400

onlyif mysql # aggregate syntax: 
query II rowsort label-4088
SELECT ALL ( - CASE + 54 WHEN + - 73 THEN NULL WHEN + + 29 THEN NULL WHEN + + 77 THEN - 68 END ) * - 79 - - 21 - + - 76 + + - 80 + 51 - + 78 / COUNT( * ) * + - ( + + 8 ) / 18 + + 51, 26 * + COUNT( * ) - - COUNT( * ) AS col1
----
NULL
27

skipif mysql # not compatible
query II rowsort label-4088
SELECT ALL ( - CASE + 54 WHEN + - 73 THEN NULL WHEN + + 29 THEN NULL WHEN + + 77 THEN - 68 END ) * - 79 - - 21 - + - 76 + + - 80 + 51 - + 78 / COUNT ( * ) * + - ( + + 8 ) / 18 + + 51, 26 * + COUNT ( * ) - - COUNT ( * ) AS col1
----
NULL
27

query I rowsort
SELECT - 53 * 52 * - 61 + + - 41
----
168075

query I rowsort
SELECT ALL + 46 * + 95 AS col1
----
4370

query I rowsort
SELECT + 15 * 35
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT - COUNT( * ) + - 56 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-4092
SELECT - COUNT ( * ) + - 56 AS col0
----
-57

query I rowsort
SELECT - 8 + + 9 AS col0
----
1

query I rowsort
SELECT ALL - ( - - NULLIF ( + + 99, + 81 * + 7 ) ) * + - 0 * - + 10 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT MIN( - 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-4095
SELECT MIN ( - 59 ) AS col1
----
-59

query I rowsort
SELECT ALL + 5 * - 68 + + 99 col1
----
-241

onlyif mysql # DIV for integer division: 
query I rowsort label-4097
SELECT - 37 DIV 7
----
-5

skipif mysql # not compatible
query I rowsort label-4097
SELECT - 37 / 7
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4098
SELECT ALL 40 * - - ( - COUNT( ALL - ( + 70 ) ) ) + - NULLIF ( + 54, ( - 17 ) ) + + + 38 * - 68 * 1 DIV COUNT( ALL 48 ) AS col2
----
-2678

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL 40 * - - ( - COUNT ( ALL - ( + 70 ) ) ) + - NULLIF ( + 54, ( - 17 ) ) + + + 38 * - 68 * 1 / COUNT ( ALL 48 ) AS col2
----
-2678

query I rowsort
SELECT DISTINCT - 84 * + + 72 AS col0
----
-6048

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4100
SELECT - 1 DIV CAST( - 87 AS SIGNED ) * - 35 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4100
SELECT - 1 / CAST ( - 87 AS INTEGER ) * - 35 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4101
SELECT ALL - 11 + 37 * + 90 DIV - 90
----
-48

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL - 11 + 37 * + 90 / - 90
----
-48

query I rowsort
SELECT DISTINCT + 56 + + 12 * - 13
----
-100

query I rowsort
SELECT DISTINCT - 19 * + 6
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT ALL - 61 + - + MAX( DISTINCT + - 99 )
----
38

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL - 61 + - + MAX ( DISTINCT + - 99 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT DISTINCT + COALESCE ( MIN( - 39 ), - + ( - 28 ) ) * 87 * 38
----
-128934

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT + COALESCE ( MIN ( - 39 ), - + ( - 28 ) ) * 87 * 38
----
-128934

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT ALL + SUM( ALL - 75 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL + SUM ( ALL - 75 ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT - COUNT( * ) - COUNT( * ) * - 62
----
61

skipif mysql # not compatible
query I rowsort label-4107
SELECT - COUNT ( * ) - COUNT ( * ) * - 62
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT MAX( 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-4108
SELECT MAX ( 11 ) AS col1
----
11

query I rowsort
SELECT ALL ( - - 74 ) AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4110
SELECT - - NULLIF ( COUNT( ALL + - 93 ), + 84 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT - - NULLIF ( COUNT ( ALL + - 93 ), + 84 ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT ALL + 85 * + - ( - 34 ) * - 23 * + - SUM( ALL 86 ) - + - 23
----
5716443

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL + 85 * + - ( - 34 ) * - 23 * + - SUM ( ALL 86 ) - + - 23
----
5716443

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4112
SELECT + ( - 52 ) - + COUNT( * ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT + ( - 52 ) - + COUNT ( * ) + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT - + SUM( DISTINCT - - ( - 31 ) )
----
31

skipif mysql # not compatible
query I rowsort label-4113
SELECT - + SUM ( DISTINCT - - ( - 31 ) )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT + - NULLIF ( 77, + CASE + COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE + 98 END * - - 31 + - - COUNT( * ) + - CASE - 25 WHEN 92 * - 79 - MAX( + ( + 7 ) ) THEN + 74 END )
----
-77

skipif mysql # not compatible
query I rowsort label-4114
SELECT + - NULLIF ( 77, + CASE + COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE + 98 END * - - 31 + - - COUNT ( * ) + - CASE - 25 WHEN 92 * - 79 - MAX ( + ( + 7 ) ) THEN + 74 END )
----
-77

query II rowsort
SELECT + + 17 AS col1, + 76 * + 80 * - 10
----
17
-60800

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT + - COUNT( * ) * - 28 + - 63 * + 81
----
-5075

skipif mysql # not compatible
query I rowsort label-4116
SELECT + - COUNT ( * ) * - 28 + - 63 * + 81
----
-5075

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT + + COALESCE ( AVG ( + - 52 ), + SUM( ALL - 38 ), + + CASE 23 WHEN 75 + - 63 THEN NULL ELSE + - 18 END ) * + + COALESCE ( - 68, 96 ) + - 76 + - CASE - 21 WHEN NULLIF ( - 5, + - 17 ) THEN NULL WHEN + COUNT( * ) THEN + 72 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT + + COALESCE ( AVG ( + - 52 ), + SUM ( ALL - 38 ), + + CASE 23 WHEN 75 + - 63 THEN NULL ELSE + - 18 END ) * + + COALESCE ( - 68, 96 ) + - 76 + - CASE - 21 WHEN NULLIF ( - 5, + - 17 ) THEN NULL WHEN + COUNT ( * ) THEN + 72 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4118
SELECT + COUNT( * ) * 78 AS col2, COUNT( * ) AS col1
----
78
1

skipif mysql # not compatible
query II rowsort label-4118
SELECT + COUNT ( * ) * 78 AS col2, COUNT ( * ) AS col1
----
78
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4119
SELECT CAST( 31 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-4119
SELECT CAST ( 31 AS INTEGER )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4120
SELECT ALL + CAST( - - 46 AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL + CAST ( - - 46 AS INTEGER )
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4121
SELECT + 15 DIV + - 16 col0
----
0

skipif mysql # not compatible
query I rowsort label-4121
SELECT + 15 / + - 16 col0
----
0

query I rowsort
SELECT DISTINCT ( + 0 ) * - 48 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4123
SELECT CAST( - - NULLIF ( + 41, + 87 ) AS SIGNED ) AS col1, ( - ( 75 ) ) col1
----
41
-75

skipif mysql # not compatible
query II rowsort label-4123
SELECT CAST ( - - NULLIF ( + 41, + 87 ) AS INTEGER ) AS col1, ( - ( 75 ) ) col1
----
41
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4124
SELECT ALL + 61 DIV - + 66 + - 55 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL + 61 / - + 66 + - 55 AS col2
----
-55

query I rowsort
SELECT 6 * + 22 + - 70
----
62

query I rowsort
SELECT ALL 31 + - 35 * 50 col2
----
-1719

query I rowsort
SELECT ALL ( 77 ) + - 42 AS col0
----
35

query I rowsort
SELECT DISTINCT 66 + - 27 AS col2
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-4129
SELECT ALL - 4, + SUM( ALL - + 46 ) * - - CASE - 74 WHEN + 91 THEN COUNT( + 6 ) WHEN - - COUNT( + 30 ) THEN + 5 ELSE + CASE 95 WHEN 45 + + 45 * + 64 THEN NULL ELSE COALESCE ( + 6, + - 52 + ( + COUNT( * ) ) ) END END * - - 95 AS col2
----
-4
-26220

skipif mysql # not compatible
query II rowsort label-4129
SELECT ALL - 4, + SUM ( ALL - + 46 ) * - - CASE - 74 WHEN + 91 THEN COUNT ( + 6 ) WHEN - - COUNT ( + 30 ) THEN + 5 ELSE + CASE 95 WHEN 45 + + 45 * + 64 THEN NULL ELSE COALESCE ( + 6, + - 52 + ( + COUNT ( * ) ) ) END END * - - 95 AS col2
----
-4
-26220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4130
SELECT ALL - MAX( DISTINCT CAST( 93 AS SIGNED ) ) + - + 16 AS col0, - SUM( ALL + - 37 ) AS col1
----
-109
37

skipif mysql # not compatible
query II rowsort label-4130
SELECT ALL - MAX ( DISTINCT CAST ( 93 AS INTEGER ) ) + - + 16 AS col0, - SUM ( ALL + - 37 ) AS col1
----
-109
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4131
SELECT CAST( NULL AS SIGNED ) * + 73 - + 95 + - 64, NULLIF ( + - 54, CASE - + 79 WHEN COUNT( * ) + 79 THEN + - COUNT( ALL + + 45 ) END * - 17 + + 24 + - 40 + 6 ) DIV + 48 AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4131
SELECT CAST ( NULL AS INTEGER ) * + 73 - + 95 + - 64, NULLIF ( + - 54, CASE - + 79 WHEN COUNT ( * ) + 79 THEN + - COUNT ( ALL + + 45 ) END * - 17 + + 24 + - 40 + 6 ) / + 48 AS col1
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT ALL 1 * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL 1 * + COUNT ( * ) AS col0
----
1

query II rowsort
SELECT DISTINCT 76, ( 87 ) + + - 94 + + 62 * - 74 * + 95 AS col1
----
76
-435867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4134
SELECT + CASE - 95 WHEN - + 2 THEN - - 4 * - 48 WHEN + + MAX( + ( - 51 ) ) + + + 55 - - 86 / - - CAST( 55 AS SIGNED ) * + - AVG ( DISTINCT + - CAST( + - 52 AS SIGNED ) ) THEN 7 + + 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT + CASE - 95 WHEN - + 2 THEN - - 4 * - 48 WHEN + + MAX ( + ( - 51 ) ) + + + 55 - - 86 / - - CAST ( 55 AS INTEGER ) * + - AVG ( DISTINCT + - CAST ( + - 52 AS INTEGER ) ) THEN 7 + + 74 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4135
SELECT 19 + CAST( NULL AS SIGNED ) - + + COUNT( * ) + 22 - - CASE + 11 WHEN + 63 THEN COALESCE ( + 61, 25, - + 98 ) * COUNT( * ) / + - 55 * NULLIF ( + 87, + 94 + + 91 + - - 7 - + - 32 - - 45 / + 73 * 68 + - ( - 66 ) + - 67 + + CASE 40 WHEN 20 THEN NULL ELSE + 1 - - + 94 / + 25 * 40 + + 91 END * CAST( NULL AS SIGNED ) / - 11 * 8 ) * - 83 - 77 ELSE 44 * 85 END / 82 / - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4135
SELECT 19 + CAST ( NULL AS INTEGER ) - + + COUNT ( * ) + 22 - - CASE + 11 WHEN + 63 THEN COALESCE ( + 61, 25, - + 98 ) * COUNT ( * ) / + - 55 * NULLIF ( + 87, + 94 + + 91 + - - 7 - + - 32 - - 45 / + 73 * 68 + - ( - 66 ) + - 67 + + CASE 40 WHEN 20 THEN NULL ELSE + 1 - - + 94 / + 25 * 40 + + 91 END * CAST ( NULL AS INTEGER ) / - 11 * 8 ) * - 83 - 77 ELSE 44 * 85 END / 82 / - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT ALL - COUNT( * ) - - 25
----
24

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL - COUNT ( * ) - - 25
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4137
SELECT + NULLIF ( - - 50, - + 42 ) + - + ( + + 73 ) - - 7 - - 23 * - 29 + - COUNT( DISTINCT - 67 ) DIV - - 64 AS col2
----
-683

skipif mysql # not compatible
query I rowsort label-4137
SELECT + NULLIF ( - - 50, - + 42 ) + - + ( + + 73 ) - - 7 - - 23 * - 29 + - COUNT ( DISTINCT - 67 ) / - - 64 AS col2
----
-683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4138
SELECT CAST( + COUNT( * ) AS SIGNED ) - - 29
----
30

skipif mysql # not compatible
query I rowsort label-4138
SELECT CAST ( + COUNT ( * ) AS INTEGER ) - - 29
----
30

query II rowsort
SELECT + 14 AS col2, 31
----
14
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4140
SELECT 99 + - 95 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4140
SELECT 99 + - 95 * + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4141
SELECT ALL CAST( NULL AS SIGNED ) AS col1, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4141
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * )
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT 30 * + MIN( ALL + 66 )
----
1980

skipif mysql # not compatible
query I rowsort label-4142
SELECT 30 * + MIN ( ALL + 66 )
----
1980

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4143
SELECT DISTINCT - - 86 * - CAST( NULL AS DECIMAL ) * - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT - - 86 * - CAST ( NULL AS REAL ) * - 76 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT DISTINCT + 36 - - + 23 * COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT + 36 - - + 23 * COUNT ( * )
----
59

query II rowsort
SELECT ALL 26, + 13 * + 27 AS col1
----
26
351

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT - 95 + - - COUNT( DISTINCT + 62 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-4146
SELECT - 95 + - - COUNT ( DISTINCT + 62 ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL + + 19 * - MAX( 11 ) AS col0
----
-209

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL + + 19 * - MAX ( 11 ) AS col0
----
-209

query II rowsort
SELECT DISTINCT 93 AS col1, + 37 - 49 + - + 41 AS col2
----
93
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4149
SELECT DISTINCT + CAST( + 36 AS SIGNED ) * - CAST( NULL AS SIGNED ) + - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT + CAST ( + 36 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - 1 AS col2
----
NULL

query I rowsort
SELECT 55 * + 93
----
5115

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT ALL - - 7 * COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL - - 7 * COUNT ( * )
----
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4152
SELECT - CAST( NULL AS SIGNED ) AS col0, + 59 DIV - - 80 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4152
SELECT - CAST ( NULL AS INTEGER ) AS col0, + 59 / - - 80 AS col2
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4153
SELECT 78 + + - CASE - CAST( + 6 AS SIGNED ) WHEN - - 21 THEN NULL ELSE 47 * + - 24 + - 85 + + 15 * - + COUNT( * ) END * + + ( - 65 )
----
-79742

skipif mysql # not compatible
query I rowsort label-4153
SELECT 78 + + - CASE - CAST ( + 6 AS INTEGER ) WHEN - - 21 THEN NULL ELSE 47 * + - 24 + - 85 + + 15 * - + COUNT ( * ) END * + + ( - 65 )
----
-79742

query I rowsort
SELECT ALL - - 15 + + 2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4155
SELECT DISTINCT 68 + - 11 AS col2, 46 - + - COUNT( * ) AS col2
----
57
47

skipif mysql # not compatible
query II rowsort label-4155
SELECT DISTINCT 68 + - 11 AS col2, 46 - + - COUNT ( * ) AS col2
----
57
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4156
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( DISTINCT - 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT - 48 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4157
SELECT 73 * - - CAST( NULL AS DECIMAL ) + + + 47 + 51 * - CAST( 70 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4157
SELECT 73 * - - CAST ( NULL AS REAL ) + + + 47 + 51 * - CAST ( 70 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT DISTINCT 21 * - 16 * - COUNT( * ) AS col2
----
336

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT 21 * - 16 * - COUNT ( * ) AS col2
----
336

query I rowsort
SELECT DISTINCT - 28 + + 52 + - + 57 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT SUM( 99 ) * COUNT( * ) * NULLIF ( 74, - - MAX( ALL + - 89 ) + - 95 )
----
7326

skipif mysql # not compatible
query I rowsort label-4160
SELECT SUM ( 99 ) * COUNT ( * ) * NULLIF ( 74, - - MAX ( ALL + - 89 ) + - 95 )
----
7326

query I rowsort
SELECT DISTINCT 85 * 8 AS col2
----
680

query I rowsort
SELECT 79 + + 92 * + 10 * + - 57
----
-52361

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT DISTINCT 78 + + MAX( - 95 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT 78 + + MAX ( - 95 ) AS col0
----
-17

query I rowsort
SELECT DISTINCT - 91 col1
----
-91

query I rowsort
SELECT ALL 13 - 28 AS col1
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4166
SELECT ALL COUNT( * ) DIV ( + 21 ) DIV + 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL COUNT ( * ) / ( + 21 ) / + 29 AS col0
----
0

query I rowsort
SELECT ( 21 ) * 8 - 53 * - 32 + - + 82
----
1782

query II rowsort
SELECT ALL 77 - + 86 AS col0, - 17 * + - COALESCE ( + + 59, 16 + 33 )
----
-9
1003

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT CASE + 43 WHEN COALESCE ( - 48, 22, - - 27 * 86 - - ( 98 ) / - 0 + - CASE - - ( + + 60 ) WHEN + + 24 THEN COALESCE ( + ( - ( + COUNT( * ) ) ), - COALESCE ( + ( - + ( + 90 ) ), + 99 ) / - 89 * - 99 ) WHEN + 14 + 12 * - - 13 THEN NULL WHEN ( - + 27 ) + + + 80 / + - 16 THEN + 72 ELSE + COUNT( * ) + 86 END - 76 * + 94 ) THEN 59 / - 60 END * 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4169
SELECT CASE + 43 WHEN COALESCE ( - 48, 22, - - 27 * 86 - - ( 98 ) / - 0 + - CASE - - ( + + 60 ) WHEN + + 24 THEN COALESCE ( + ( - ( + COUNT ( * ) ) ), - COALESCE ( + ( - + ( + 90 ) ), + 99 ) / - 89 * - 99 ) WHEN + 14 + 12 * - - 13 THEN NULL WHEN ( - + 27 ) + + + 80 / + - 16 THEN + 72 ELSE + COUNT ( * ) + 86 END - 76 * + 94 ) THEN 59 / - 60 END * 11 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT DISTINCT + 0 - + CAST( 11 AS SIGNED ) col2
----
-11

skipif mysql # not compatible
query I rowsort label-4170
SELECT DISTINCT + 0 - + CAST ( 11 AS INTEGER ) col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT 65 + + SUM( - 8 ) - 86 / + CASE + - COALESCE ( - - ( + 92 ), COUNT( + + 52 ) ) WHEN 53 - - 85 * - 60 THEN - 9 * + - COUNT( * ) + 65 WHEN - + 9 * - COUNT( * ) / 66 * 62 + - + 33 THEN + 87 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4171
SELECT 65 + + SUM ( - 8 ) - 86 / + CASE + - COALESCE ( - - ( + 92 ), COUNT ( + + 52 ) ) WHEN 53 - - 85 * - 60 THEN - 9 * + - COUNT ( * ) + 65 WHEN - + 9 * - COUNT ( * ) / 66 * 62 + - + 33 THEN + 87 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 69 * + ( 56 ) + + - 35
----
3829

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT MAX( DISTINCT + - 15 ) * COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-4173
SELECT MAX ( DISTINCT + - 15 ) * COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT DISTINCT + MAX( - 71 ) * + 58 AS col0
----
-4118

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT + MAX ( - 71 ) * + 58 AS col0
----
-4118

query I rowsort
SELECT ALL - - 84 * + 23 + - + 96 + - 51 AS col1
----
1785

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT COUNT( * ) * - 83 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-4176
SELECT COUNT ( * ) * - 83 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT MAX( DISTINCT 18 )
----
18

skipif mysql # not compatible
query I rowsort label-4177
SELECT MAX ( DISTINCT 18 )
----
18

query I rowsort
SELECT COALESCE ( + + 9, - 37 ) + - 24 AS col1
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4179
SELECT + COUNT( * ) - - 10 + - ( 6 ) + - - 63 DIV - 69 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4179
SELECT + COUNT ( * ) - - 10 + - ( 6 ) + - - 63 / - 69 AS col2
----
5

query I rowsort
SELECT - 59 - - - 46 AS col0
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-4181
SELECT ALL + 91 DIV + - ( + 4 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL + 91 / + - ( + 4 ) AS col0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-4182
SELECT - 68 DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-4182
SELECT - 68 / + 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT ALL - SUM( DISTINCT - 31 ) + + - 62 col2
----
-31

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL - SUM ( DISTINCT - 31 ) + + - 62 col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4184
SELECT DISTINCT + - 67 + 31 + + + 87 * + - COUNT( * ) / - COUNT( * ) - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT + - 67 + 31 + + + 87 * + - COUNT ( * ) / - COUNT ( * ) - + CAST ( NULL AS INTEGER ) col1
----
NULL

query II rowsort
SELECT DISTINCT - ( - - 53 ) col0, + 28 * 78 AS col0
----
-53
2184

onlyif mysql # DIV for integer division: 
query I rowsort label-4186
SELECT ALL - 99 + + 31 DIV - - 64 * - 10 col0
----
-99

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL - 99 + + 31 / - - 64 * - 10 col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT ALL + 41 + + ( + NULLIF ( + MAX( - - 94 ), + COUNT( * ) * - 93 + + 87 * + 54 ) ) + COUNT( * )
----
136

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL + 41 + + ( + NULLIF ( + MAX ( - - 94 ), + COUNT ( * ) * - 93 + + 87 * + 54 ) ) + COUNT ( * )
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4188
SELECT 47 - - + 24 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT 47 - - + 24 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 53 * + 73 AS col0
----
3869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4190
SELECT ALL - CAST( NULL AS SIGNED ) + + + 42 + - 42 * - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL - CAST ( NULL AS INTEGER ) + + + 42 + - 42 * - 17
----
NULL

query II rowsort
SELECT + 88 AS col0, + 81 * - ( - 41 ) AS col0
----
88
3321

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4192
SELECT NULLIF ( + CAST( NULL AS SIGNED ), - COUNT( * ) + 3 - + CAST( NULL AS SIGNED ) * - 92 ) AS col2, - MAX( ALL + 20 ) AS col1
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-4192
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) + 3 - + CAST ( NULL AS INTEGER ) * - 92 ) AS col2, - MAX ( ALL + 20 ) AS col1
----
NULL
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4193
SELECT - 49 * - - ( + 59 ) DIV COUNT( DISTINCT + - 90 ) - 71 AS col1, 26 col2
----
-2962
26

skipif mysql # not compatible
query II rowsort label-4193
SELECT - 49 * - - ( + 59 ) / COUNT ( DISTINCT + - 90 ) - 71 AS col1, 26 col2
----
-2962
26

query II rowsort
SELECT + 99 AS col1, - 76 AS col2
----
99
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4195
SELECT ALL 65 * - 75 DIV COUNT( * ) * MIN( DISTINCT + 10 ) - + + 18
----
-48768

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL 65 * - 75 / COUNT ( * ) * MIN ( DISTINCT + 10 ) - + + 18
----
-48768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4196
SELECT ALL 71 * + 82 - + + CAST( + NULLIF ( - - 2, MAX( 57 ) / COALESCE ( + COUNT( * ), - 10 * + - 76 ) ) AS SIGNED ) + - 51
----
5769

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL 71 * + 82 - + + CAST ( + NULLIF ( - - 2, MAX ( 57 ) / COALESCE ( + COUNT ( * ), - 10 * + - 76 ) ) AS INTEGER ) + - 51
----
5769

query I rowsort
SELECT + 84 * - 83 - - 52 col0
----
-6920

query I rowsort
SELECT NULLIF ( - 18, - 66 * + 95 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT + MIN( DISTINCT + NULLIF ( - 38, - + 52 ) ) * + SUM( DISTINCT - 24 ) + 3 * - ( 94 ) + 70 AS col2
----
700

skipif mysql # not compatible
query I rowsort label-4199
SELECT + MIN ( DISTINCT + NULLIF ( - 38, - + 52 ) ) * + SUM ( DISTINCT - 24 ) + 3 * - ( 94 ) + 70 AS col2
----
700

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT SUM( DISTINCT - + ( 5 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-4200
SELECT SUM ( DISTINCT - + ( 5 ) )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4201
SELECT ALL + 80 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL + 80 / 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4202
SELECT + COUNT( * ) * + CASE - NULLIF ( - ( 6 ), + 71 ) WHEN 47 THEN + ( 15 ) END + + - CAST( + 90 AS SIGNED ) - + - 31 * + - 74 + ( - + NULLIF ( 87, - 47 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4202
SELECT + COUNT ( * ) * + CASE - NULLIF ( - ( 6 ), + 71 ) WHEN 47 THEN + ( 15 ) END + + - CAST ( + 90 AS INTEGER ) - + - 31 * + - 74 + ( - + NULLIF ( 87, - 47 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4203
SELECT MAX( + 50 ) * - - 84 / - + 79 + 20 + + 94 / NULLIF ( - - 33, + 4 * - 7 + + SUM( - 26 ) ) * - + CAST( + 52 AS DECIMAL ) + + - ( - 74 ) * + - CASE - - 96 WHEN + 47 * + 61 + + CASE - - COUNT( * ) WHEN 95 THEN + - SUM( ALL - 80 ) * + ( - - 32 ) * - + 8 * + 86 * 13 + + - 62 WHEN 25 THEN - 26 + 11 * ( - 46 ) END * 12 THEN NULL WHEN 50 THEN 3 * - 37 ELSE NULL END * COALESCE ( AVG ( 32 ) + + 62, 54 * 80, 33, - 99 / COUNT( * ) ) + MIN( ALL 53 ) * 63 + 85 / MAX( - 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT MAX ( + 50 ) * - - 84 / - + 79 + 20 + + 94 / NULLIF ( - - 33, + 4 * - 7 + + SUM ( - 26 ) ) * - + CAST ( + 52 AS REAL ) + + - ( - 74 ) * + - CASE - - 96 WHEN + 47 * + 61 + + CASE - - COUNT ( * ) WHEN 95 THEN + - SUM ( ALL - 80 ) * + ( - - 32 ) * - + 8 * + 86 * 13 + + - 62 WHEN 25 THEN - 26 + 11 * ( - 46 ) END * 12 THEN NULL WHEN 50 THEN 3 * - 37 ELSE NULL END * COALESCE ( AVG ( 32 ) + + 62, 54 * 80, 33, - 99 / COUNT ( * ) ) + MIN ( ALL 53 ) * 63 + 85 / MAX ( - 88 )
----
NULL

query I rowsort
SELECT + 24 * - + 90 AS col1
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT ALL + - MAX( ALL - + 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL + - MAX ( ALL - + 47 ) AS col0
----
47

query II rowsort
SELECT - 27 + - COALESCE ( - 19, - 90 ) AS col2, - 20 AS col2
----
-8
-20

query II rowsort
SELECT ALL + 80 AS col2, 58
----
80
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4208
SELECT + - COUNT( * ) * - 30 DIV + 94 + - + 45 col0
----
-45

skipif mysql # not compatible
query I rowsort label-4208
SELECT + - COUNT ( * ) * - 30 / + 94 + - + 45 col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4209
SELECT - - 97 * - - COUNT( - ( 94 ) ) AS col1, - COUNT( * ) * - + 50 + NULLIF ( ( + + AVG ( 5 ) ), + ( 89 ) * - 54 ) * + CASE - 81 WHEN COUNT( * ) THEN - AVG ( DISTINCT - - 87 ) END / - 73 - - 1 + - COALESCE ( CAST( 51 AS SIGNED ), ( - - 1 ) ) + + 40 * - + 59 - - ( 57 )
----
97
NULL

skipif mysql # not compatible
query II rowsort label-4209
SELECT - - 97 * - - COUNT ( - ( 94 ) ) AS col1, - COUNT ( * ) * - + 50 + NULLIF ( ( + + AVG ( 5 ) ), + ( 89 ) * - 54 ) * + CASE - 81 WHEN COUNT ( * ) THEN - AVG ( DISTINCT - - 87 ) END / - 73 - - 1 + - COALESCE ( CAST ( 51 AS INTEGER ), ( - - 1 ) ) + + 40 * - + 59 - - ( 57 )
----
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT + - 92 + - 33 * 61 + - 53 + + - COUNT( * ) * COALESCE ( 0, 99 + + COUNT( * ) ) * + + 98 AS col0
----
-2158

skipif mysql # not compatible
query I rowsort label-4210
SELECT + - 92 + - 33 * 61 + - 53 + + - COUNT ( * ) * COALESCE ( 0, 99 + + COUNT ( * ) ) * + + 98 AS col0
----
-2158

onlyif mysql # DIV for integer division: 
query I rowsort label-4211
SELECT ALL 46 DIV + + 10 + 79 + 89 + 63
----
235

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL 46 / + + 10 + 79 + 89 + 63
----
235

query II rowsort
SELECT - + 92, 11 AS col1
----
-92
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT + 86 DIV - 96 + - 30
----
-30

skipif mysql # not compatible
query I rowsort label-4213
SELECT + 86 / - 96 + - 30
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-4214
SELECT - + 82 AS col2, 12 - + COUNT( * ) AS col2
----
-82
11

skipif mysql # not compatible
query II rowsort label-4214
SELECT - + 82 AS col2, 12 - + COUNT ( * ) AS col2
----
-82
11

query I rowsort
SELECT + - 89 * - 36
----
3204

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT + COUNT( * ) + - 76 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-4216
SELECT + COUNT ( * ) + - 76 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT + 13 - - + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-4217
SELECT + 13 - - + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT ALL - 51 + 17 * - ( - COUNT( * ) )
----
-34

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL - 51 + 17 * - ( - COUNT ( * ) )
----
-34

query I rowsort
SELECT ALL - 45 * - + 25 * - + 45 * - 77 AS col2
----
3898125

query I rowsort
SELECT ALL - 34 + 42 * + 10 * + 90 * 91
----
3439766

onlyif mysql # DIV for integer division: 
query I rowsort label-4221
SELECT ALL + 70 + 12 DIV + 16 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL + 70 + 12 / + 16 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT - - ( ( + MIN( + - 92 ) ) )
----
-92

skipif mysql # not compatible
query I rowsort label-4222
SELECT - - ( ( + MIN ( + - 92 ) ) )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT DISTINCT 58 + - COALESCE ( - COUNT( * ), COUNT( * ) * - 68 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT 58 + - COALESCE ( - COUNT ( * ), COUNT ( * ) * - 68 ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT ALL ( + + COUNT( * ) ) + - 58
----
-57

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL ( + + COUNT ( * ) ) + - 58
----
-57

query I rowsort
SELECT - NULLIF ( - 90, - 96 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT + 74 + ( + + SUM( + - ( + + 95 ) ) )
----
-21

skipif mysql # not compatible
query I rowsort label-4226
SELECT + 74 + ( + + SUM ( + - ( + + 95 ) ) )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT + COUNT( * ) * - - 88 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-4227
SELECT + COUNT ( * ) * - - 88 AS col2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4228
SELECT - ( - 48 ) DIV + 65 * + - 47 + - + 36
----
-36

skipif mysql # not compatible
query I rowsort label-4228
SELECT - ( - 48 ) / + 65 * + - 47 + - + 36
----
-36

query I rowsort
SELECT + 26 + - - 7 * 88 + + - 19 + + 13
----
636

query I rowsort
SELECT ALL - 11 - 32 * 1 AS col2
----
-43

query I rowsort
SELECT - ( + 43 ) * - 93
----
3999

query I rowsort
SELECT - 20 + 39 AS col1
----
19

query II rowsort
SELECT DISTINCT - 38 * 36 AS col1, ( - - 10 ) AS col1
----
-1368
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4234
SELECT DISTINCT 43 DIV + 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT 43 / + 71 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT ALL 29 / + - 45 * - 69 - - NULLIF ( + CASE 9 WHEN + + 96 THEN + + 8 / + 78 WHEN - + CASE + 10 WHEN + 10 * - + 81 THEN - 93 * 29 WHEN 83 * + 73 - 44 * ( - CASE + 15 WHEN - - 36 THEN 2 END ) + - 61 THEN NULL END THEN NULL ELSE 37 * 35 * - CASE - COUNT( * ) WHEN + 95 THEN + + 90 + - - MAX( ALL - ( + - 96 ) ) END END, 70 ) - NULLIF ( - 11, MAX( ALL 23 ) * - 98 + + MAX( DISTINCT 35 ) / 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL 29 / + - 45 * - 69 - - NULLIF ( + CASE 9 WHEN + + 96 THEN + + 8 / + 78 WHEN - + CASE + 10 WHEN + 10 * - + 81 THEN - 93 * 29 WHEN 83 * + 73 - 44 * ( - CASE + 15 WHEN - - 36 THEN 2 END ) + - 61 THEN NULL END THEN NULL ELSE 37 * 35 * - CASE - COUNT ( * ) WHEN + 95 THEN + + 90 + - - MAX ( ALL - ( + - 96 ) ) END END, 70 ) - NULLIF ( - 11, MAX ( ALL 23 ) * - 98 + + MAX ( DISTINCT 35 ) / 93 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4236
SELECT ( + - 74 ) DIV + MIN( DISTINCT - + 15 ) + - 91 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-4236
SELECT ( + - 74 ) / + MIN ( DISTINCT - + 15 ) + - 91 AS col0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-4237
SELECT + 84 DIV 70 * + - 72 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-4237
SELECT + 84 / 70 * + - 72 AS col0
----
-72

query II rowsort
SELECT - 66 + - 45 AS col1, ( 91 ) AS col2
----
-111
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4239
SELECT DISTINCT + COALESCE ( - 20, + MAX( ALL - 77 ), + - 8 * COUNT( * ) * 33 + - + 20 * + + CASE - + 61 WHEN - 65 THEN - CAST( NULLIF ( - + ( COUNT( * ) ), COUNT( * ) + - - 98 ) AS SIGNED ) ELSE - + COUNT( * ) + + - 97 DIV ( CASE CAST( - - 82 AS SIGNED ) WHEN + 64 THEN NULL WHEN + AVG ( ALL + ( - + 68 ) ) * + 49 * + 25 THEN + 74 ELSE NULL END ) END, - - 45 * + + 55 * + 57 * - - 19 )
----
-20

skipif mysql # not compatible
query I rowsort label-4239
SELECT DISTINCT + COALESCE ( - 20, + MAX ( ALL - 77 ), + - 8 * COUNT ( * ) * 33 + - + 20 * + + CASE - + 61 WHEN - 65 THEN - CAST ( NULLIF ( - + ( COUNT ( * ) ), COUNT ( * ) + - - 98 ) AS INTEGER ) ELSE - + COUNT ( * ) + + - 97 / ( CASE CAST ( - - 82 AS INTEGER ) WHEN + 64 THEN NULL WHEN + AVG ( ALL + ( - + 68 ) ) * + 49 * + 25 THEN + 74 ELSE NULL END ) END, - - 45 * + + 55 * + 57 * - - 19 )
----
-20

query I rowsort
SELECT DISTINCT + + 55 AS col1
----
55

query II rowsort
SELECT DISTINCT + ( - 53 ), + ( - 44 ) col2
----
-53
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT DISTINCT - MIN( + + 84 ) * - 33 * - 7 + - 21
----
-19425

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT - MIN ( + + 84 ) * - 33 * - 7 + - 21
----
-19425

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT ALL + 45 * - 45 + 52 + 34 + - COUNT( ALL - - 8 ) * 56 * + - 49 AS col2
----
805

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL + 45 * - 45 + 52 + 34 + - COUNT ( ALL - - 8 ) * 56 * + - 49 AS col2
----
805

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4244
SELECT DISTINCT + 57 DIV - 80 * + 2 * + 3 AS col1, + SUM( - 7 )
----
0
-7

skipif mysql # not compatible
query II rowsort label-4244
SELECT DISTINCT + 57 / - 80 * + 2 * + 3 AS col1, + SUM ( - 7 )
----
0
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-4245
SELECT MIN( 8 ) AS col0, - 83 AS col2
----
8
-83

skipif mysql # not compatible
query II rowsort label-4245
SELECT MIN ( 8 ) AS col0, - 83 AS col2
----
8
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4246
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + - 51 * CAST( NULL AS SIGNED ) / + - ( + 17 ) * - 85 + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + - 51 * CAST ( NULL AS INTEGER ) / + - ( + 17 ) * - 85 + + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT DISTINCT - 96 * + COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-4247
SELECT DISTINCT - 96 * + COUNT ( * )
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4248
SELECT ALL - + 60 * - 90 * - COUNT( * ) + + - MAX( - 90 ) + - - 56 DIV + 63 AS col0, 78 * + + 64 AS col2
----
-5310
4992

skipif mysql # not compatible
query II rowsort label-4248
SELECT ALL - + 60 * - 90 * - COUNT ( * ) + + - MAX ( - 90 ) + - - 56 / + 63 AS col0, 78 * + + 64 AS col2
----
-5310
4992

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT DISTINCT - COALESCE ( + 15, + + COUNT( * ) + 43 + 53 + SUM( DISTINCT 62 ) * 2 )
----
-15

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT - COALESCE ( + 15, + + COUNT ( * ) + 43 + 53 + SUM ( DISTINCT 62 ) * 2 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT DISTINCT NULLIF ( - ( + ( - + COUNT( * ) ) ), + 26 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT NULLIF ( - ( + ( - + COUNT ( * ) ) ), + 26 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4251
SELECT + 91 * CAST( NULL AS SIGNED ) + 23 + 0 - - - CASE CAST( - 78 AS DECIMAL ) WHEN + - MIN( 99 ) + + 1 THEN NULL WHEN - - 19 THEN + 22 * + 90 ELSE 13 END * - + 93 * - - 24 - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT + 91 * CAST ( NULL AS INTEGER ) + 23 + 0 - - - CASE CAST ( - 78 AS REAL ) WHEN + - MIN ( 99 ) + + 1 THEN NULL WHEN - - 19 THEN + 22 * + 90 ELSE 13 END * - + 93 * - - 24 - 98 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT DISTINCT 9 / - + CASE - 93 WHEN - 35 THEN 54 WHEN - + 89 THEN NULL WHEN - 36 + - COUNT( * ) THEN NULL ELSE NULL END * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT 9 / - + CASE - 93 WHEN - 35 THEN 54 WHEN - + 89 THEN NULL WHEN - 36 + - COUNT ( * ) THEN NULL ELSE NULL END * - 23
----
NULL

query I rowsort
SELECT 73 * 94
----
6862

onlyif mysql # aggregate syntax: 
query II rowsort label-4254
SELECT - 86 AS col2, - COUNT( * )
----
-86
-1

skipif mysql # not compatible
query II rowsort label-4254
SELECT - 86 AS col2, - COUNT ( * )
----
-86
-1

query I rowsort
SELECT DISTINCT 55 * + + 4
----
220

query I rowsort
SELECT DISTINCT 67 * + + 64
----
4288

onlyif mysql # DIV for integer division: 
query I rowsort label-4257
SELECT DISTINCT 2 * + + 90 DIV + - 68 col2
----
-2

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT 2 * + + 90 / + - 68 col2
----
-2

query I rowsort
SELECT ALL 37 - + 45 AS col2
----
-8

query I rowsort
SELECT 62 * + 82
----
5084

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT 97 * SUM( DISTINCT - - 17 )
----
1649

skipif mysql # not compatible
query I rowsort label-4260
SELECT 97 * SUM ( DISTINCT - - 17 )
----
1649

onlyif mysql # aggregate syntax: 
query II rowsort label-4261
SELECT + 10, - ( NULLIF ( + 12, + ( + - 19 ) + + - 93 * - - 75 + - - COUNT( * ) + - 12 ) ) col2
----
10
-12

skipif mysql # not compatible
query II rowsort label-4261
SELECT + 10, - ( NULLIF ( + 12, + ( + - 19 ) + + - 93 * - - 75 + - - COUNT ( * ) + - 12 ) ) col2
----
10
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4262
SELECT 7 AS col0, 55 DIV 47 * + - 67 + + SUM( - + 46 )
----
7
-113

skipif mysql # not compatible
query II rowsort label-4262
SELECT 7 AS col0, 55 / 47 * + - 67 + + SUM ( - + 46 )
----
7
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT 87 * - 16 * - COUNT( ALL - 94 ) AS col0
----
1392

skipif mysql # not compatible
query I rowsort label-4263
SELECT 87 * - 16 * - COUNT ( ALL - 94 ) AS col0
----
1392

onlyif mysql # DIV for integer division: 
query I rowsort label-4264
SELECT ALL - 17 DIV - 76 col1
----
0

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL - 17 / - 76 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT ALL - COUNT( DISTINCT + + 81 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL - COUNT ( DISTINCT + + 81 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - 8 * - + CASE - - 80 WHEN + - 4 THEN NULL WHEN + 53 THEN + - 95 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4267
SELECT DISTINCT - COUNT( * ) AS col1, ( + 28 ) DIV - + 2
----
-1
-14

skipif mysql # not compatible
query II rowsort label-4267
SELECT DISTINCT - COUNT ( * ) AS col1, ( + 28 ) / - + 2
----
-1
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4268
SELECT ALL - + 77 + - - CASE + - 79 WHEN - 68 / - 23 + 40 + - + MAX( ALL - 53 ) + + 3 * + 66 * 46 THEN - - 25 * COUNT( * ) - + + CASE + + CAST( NULL AS SIGNED ) WHEN - + 33 * 30 * 9 THEN 7 WHEN - 42 * - + 60 - - 54 * + 46 * + 43 - - 84 * + 44 + - 66 + - CAST( COUNT( * ) AS SIGNED ) THEN NULL ELSE NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL - + 77 + - - CASE + - 79 WHEN - 68 / - 23 + 40 + - + MAX ( ALL - 53 ) + + 3 * + 66 * 46 THEN - - 25 * COUNT ( * ) - + + CASE + + CAST ( NULL AS INTEGER ) WHEN - + 33 * 30 * 9 THEN 7 WHEN - 42 * - + 60 - - 54 * + 46 * + 43 - - 84 * + 44 + - 66 + - CAST ( COUNT ( * ) AS INTEGER ) THEN NULL ELSE NULL END END AS col2
----
NULL

query I rowsort
SELECT ALL - 19 * + 42
----
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT + COALESCE ( - + 25, MIN( + + 97 ) ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-4270
SELECT + COALESCE ( - + 25, MIN ( + + 97 ) ) AS col2
----
-25

query I rowsort
SELECT NULLIF ( - 22, 51 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT ( + SUM( ALL + - 35 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-4272
SELECT ( + SUM ( ALL + - 35 ) )
----
-35

query I rowsort
SELECT DISTINCT + - 48 + - 17 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT 19 * + 61 + + + SUM( DISTINCT CASE + + 51 WHEN 44 THEN 41 * + 78 END ) * + + 64 * 52 + + - NULLIF ( - - 25, 92 ) * 60 * - NULLIF ( - + 36, + 13 * + COUNT( * ) * - 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4274
SELECT 19 * + 61 + + + SUM ( DISTINCT CASE + + 51 WHEN 44 THEN 41 * + 78 END ) * + + 64 * 52 + + - NULLIF ( - - 25, 92 ) * 60 * - NULLIF ( - + 36, + 13 * + COUNT ( * ) * - 94 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4275
SELECT + 12 + + 75 DIV - 89 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4275
SELECT + 12 + + 75 / - 89 AS col1
----
12

query I rowsort
SELECT - + ( + - 77 ) * + + 81 - - 52 AS col2
----
6289

query I rowsort
SELECT DISTINCT - ( + 41 )
----
-41

query I rowsort
SELECT DISTINCT 90 * + 86 + + 49
----
7789

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4279
SELECT - 14 * + ( 19 ) + - 10 + 12 / + - 15 - + 60 / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4279
SELECT - 14 * + ( 19 ) + - 10 + 12 / + - 15 - + 60 / + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT ALL - + 6 + - 49 * COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL - + 6 + - 49 * COUNT ( * )
----
-55

query I rowsort
SELECT DISTINCT + + 43 + + - 23 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT - MIN( COALESCE ( + 88, 21 + + + 31, + 67 ) ) + - COUNT( * ) + - - 93 + - - MIN( DISTINCT - 48 ) * + 99 * 47
----
-223340

skipif mysql # not compatible
query I rowsort label-4282
SELECT - MIN ( COALESCE ( + 88, 21 + + + 31, + 67 ) ) + - COUNT ( * ) + - - 93 + - - MIN ( DISTINCT - 48 ) * + 99 * 47
----
-223340

onlyif mysql # aggregate syntax: 
query II rowsort label-4283
SELECT - 85 AS col0, - SUM( ALL + - 33 )
----
-85
33

skipif mysql # not compatible
query II rowsort label-4283
SELECT - 85 AS col0, - SUM ( ALL + - 33 )
----
-85
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4284
SELECT COALESCE ( 47, 47 * - + 49 * 83 * 76 ) + 70 + - 61 DIV - MIN( - NULLIF ( + + 26, - - 75 * + + 97 ) )
----
115

skipif mysql # not compatible
query I rowsort label-4284
SELECT COALESCE ( 47, 47 * - + 49 * 83 * 76 ) + 70 + - 61 / - MIN ( - NULLIF ( + + 26, - - 75 * + + 97 ) )
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT + 14 * + COUNT( * ) * + - ( 24 ) AS col0
----
-336

skipif mysql # not compatible
query I rowsort label-4285
SELECT + 14 * + COUNT ( * ) * + - ( 24 ) AS col0
----
-336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4286
SELECT ALL - 51 * + + SUM( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL - 51 * + + SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT - CASE + - CASE - 66 WHEN + - NULLIF ( - 22, - 52 ) THEN NULL ELSE + + 33 + - - COUNT( * ) + - 78 * + 10 - 65 + - AVG ( 56 ) END WHEN - - 64 * 16 THEN - 92 WHEN 86 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4287
SELECT - CASE + - CASE - 66 WHEN + - NULLIF ( - 22, - 52 ) THEN NULL ELSE + + 33 + - - COUNT ( * ) + - 78 * + 10 - 65 + - AVG ( 56 ) END WHEN - - 64 * 16 THEN - 92 WHEN 86 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 56 * 85
----
-4760

query II rowsort
SELECT 53 * + 22 AS col1, 79
----
1166
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT ALL - MAX( DISTINCT + 70 ) * 96 - - 99 AS col2
----
-6621

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL - MAX ( DISTINCT + 70 ) * 96 - - 99 AS col2
----
-6621

query I rowsort
SELECT DISTINCT - 65 * 24 AS col2
----
-1560

query II rowsort
SELECT - 42 col2, + ( 27 ) * + - 96 AS col2
----
-42
-2592

onlyif mysql # DIV for integer division: 
query I rowsort label-4293
SELECT 62 DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-4293
SELECT 62 / 74
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4294
SELECT MIN( DISTINCT 37 ) DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-4294
SELECT MIN ( DISTINCT 37 ) / - 91
----
0

query I rowsort
SELECT 7 * 9 AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4296
SELECT 78 + - 38 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT 78 + - 38 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 13 - + 99 * 89
----
-8798

query II rowsort
SELECT ALL 61 AS col0, + 58 * 44 * + 73
----
61
186296

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT ALL + 21 + + - COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL + 21 + + - COUNT ( * ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT ALL 83 * + COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL 83 * + COUNT ( * ) AS col0
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4301
SELECT ALL COALESCE ( + + 20, 54 DIV - SUM( + 45 ) + + - 20 ) * 1 + + + 73 + - 81 DIV - - 69
----
92

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL COALESCE ( + + 20, 54 / - SUM ( + 45 ) + + - 20 ) * 1 + + + 73 + - 81 / - - 69
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT ALL - 83 * - 74 * + 84 + COUNT( * ) AS col0
----
515929

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL - 83 * - 74 * + 84 + COUNT ( * ) AS col0
----
515929

query I rowsort
SELECT 3 + + 82
----
85

query I rowsort
SELECT DISTINCT 12 * - 10 * ( + 28 ) * + 98
----
-329280

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL + COUNT( * ) * + 83 + + 61 AS col1
----
144

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL + COUNT ( * ) * + 83 + + 61 AS col1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT - - 2 * + 50 + 50 + + 67 + 94 * - - COUNT( * ) AS col1
----
311

skipif mysql # not compatible
query I rowsort label-4306
SELECT - - 2 * + 50 + 50 + + 67 + 94 * - - COUNT ( * ) AS col1
----
311

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT ALL COUNT( * ) * - 32 * - + 20 + + + 7 * + + NULLIF ( 9, + + SUM( DISTINCT 37 ) ) + + 76 AS col2
----
779

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL COUNT ( * ) * - 32 * - + 20 + + + 7 * + + NULLIF ( 9, + + SUM ( DISTINCT 37 ) ) + + 76 AS col2
----
779

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4308
SELECT DISTINCT - - ( - 69 ) * 25 + - 96 + + 55 + + 42 + 82 DIV + 89 * - 47, - COUNT( ALL - + 4 ) + - + 7 + + MIN( - 26 ) * 97 AS col1
----
-1724
-2530

skipif mysql # not compatible
query II rowsort label-4308
SELECT DISTINCT - - ( - 69 ) * 25 + - 96 + + 55 + + 42 + 82 / + 89 * - 47, - COUNT ( ALL - + 4 ) + - + 7 + + MIN ( - 26 ) * 97 AS col1
----
-1724
-2530

query I rowsort
SELECT + 43 + - - 63 AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT ALL - NULLIF ( + 34, 75 ) * + 8 + + 92 + - 46 * + 69 + COUNT( * )
----
-3353

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL - NULLIF ( + 34, 75 ) * + 8 + + 92 + - 46 * + 69 + COUNT ( * )
----
-3353

query II rowsort
SELECT - 96 * - 58, 11 * 54 AS col2
----
5568
594

query I rowsort
SELECT ALL - - 16 * COALESCE ( + 61, - 99 ) - - 25 + + + ( 90 )
----
1091

query II rowsort
SELECT ALL - - 93 col0, + 13 AS col0
----
93
13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4314
SELECT ALL + 47 DIV CAST( + - 4 AS SIGNED ) * - 73 * + 49 AS col1
----
39347

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL + 47 / CAST ( + - 4 AS INTEGER ) * - 73 * + 49 AS col1
----
39347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4315
SELECT + 46 * + ( - 46 ) / CAST( 69 AS SIGNED ) - - SUM( ALL + + CAST( NULL AS SIGNED ) ) + - ( + 16 ) * - 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT + 46 * + ( - 46 ) / CAST ( 69 AS INTEGER ) - - SUM ( ALL + + CAST ( NULL AS INTEGER ) ) + - ( + 16 ) * - 28 AS col2
----
NULL

query I rowsort
SELECT ALL - 72 - - - 29 + ( + - 8 ) - + 92
----
-201

query I rowsort
SELECT DISTINCT - 14 * + 55 AS col2
----
-770

query II rowsort
SELECT 63, 25 AS col1
----
63
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4319
SELECT - COUNT( + + 61 ) * + + NULLIF ( - MAX( ALL 34 ), 30 ) * + ( + MIN( 42 ) ) + - 88 + + 89 * 99 * + + ( + - ( + + CASE COUNT( + 41 ) WHEN 99 THEN + 36 + - CAST( NULL AS SIGNED ) WHEN - + 70 THEN NULL ELSE - + 83 END ) ) + - 82 DIV + 72 AS col0
----
732652

skipif mysql # not compatible
query I rowsort label-4319
SELECT - COUNT ( + + 61 ) * + + NULLIF ( - MAX ( ALL 34 ), 30 ) * + ( + MIN ( 42 ) ) + - 88 + + 89 * 99 * + + ( + - ( + + CASE COUNT ( + 41 ) WHEN 99 THEN + 36 + - CAST ( NULL AS INTEGER ) WHEN - + 70 THEN NULL ELSE - + 83 END ) ) + - 82 / + 72 AS col0
----
732652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT DISTINCT CAST( NULL AS SIGNED ) * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4320
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT ALL - COUNT( * ) * - 43 + 6
----
49

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL - COUNT ( * ) * - 43 + 6
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT + 12 - - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-4322
SELECT + 12 - - COUNT ( * )
----
13

query II rowsort
SELECT 43 AS col0, + 92 + - 12 col2
----
43
80

onlyif mysql # aggregate syntax: 
query II rowsort label-4324
SELECT + 75 AS col2, ( - 45 ) * + - 77 * + COUNT( * ) col1
----
75
3465

skipif mysql # not compatible
query II rowsort label-4324
SELECT + 75 AS col2, ( - 45 ) * + - 77 * + COUNT ( * ) col1
----
75
3465

query I rowsort
SELECT ALL 91 * - + ( - 88 )
----
8008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4326
SELECT ALL CASE + 46 WHEN - - CAST( NULL AS SIGNED ) * - 83 / + - 24 THEN NULL WHEN + 10 THEN NULL ELSE - MIN( DISTINCT - - 35 ) - + 14 END col2
----
-49

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL CASE + 46 WHEN - - CAST ( NULL AS INTEGER ) * - 83 / + - 24 THEN NULL WHEN + 10 THEN NULL ELSE - MIN ( DISTINCT - - 35 ) - + 14 END col2
----
-49

query I rowsort
SELECT + 67 * + 77 col2
----
5159

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT - COUNT( - 60 ) * + - 22 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4328
SELECT - COUNT ( - 60 ) * + - 22 AS col0
----
22

query I rowsort
SELECT ALL CASE + ( - - 73 ) WHEN - 0 THEN + 98 * - 53 WHEN + + 44 * + ( + 60 ) + 62 + 74 THEN NULL END
----
NULL

query II rowsort
SELECT ALL - 34 * + - 3 AS col1, - 86
----
102
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT DISTINCT CASE - - COUNT( * ) WHEN + 7 + + 66 * + ( + 69 ) THEN NULL WHEN + - 92 - - 71 + + 9 * - 66 THEN 85 WHEN - - 25 * + 29 * 64 + COUNT( * ) / - 49 - - 53 THEN + 13 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT CASE - - COUNT ( * ) WHEN + 7 + + 66 * + ( + 69 ) THEN NULL WHEN + - 92 - - 71 + + 9 * - 66 THEN 85 WHEN - - 25 * + 29 * 64 + COUNT ( * ) / - 49 - - 53 THEN + 13 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4332
SELECT - COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col2, - 56 + + - 41 * + COUNT( * )
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-4332
SELECT - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col2, - 56 + + - 41 * + COUNT ( * )
----
NULL
-97

query II rowsort
SELECT + 43 + + 6 AS col2, - 61
----
49
-61

query I rowsort
SELECT DISTINCT + 16 * - 71
----
-1136

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT DISTINCT + COUNT( * ) + + 95 + - - 37
----
133

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT + COUNT ( * ) + + 95 + - - 37
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4336
SELECT ALL + 35 + - - 49, - CASE - 39 WHEN - 34 * - COUNT( * ) THEN NULL ELSE - CASE - 72 WHEN - 70 + + - 49 + - + MAX( CAST( NULL AS SIGNED ) ) + 77 + - 51 THEN - ( + CAST( NULL AS SIGNED ) ) WHEN - + 76 * + 81 THEN + 4 * - 8 END END - - 30 AS col1
----
84
NULL

skipif mysql # not compatible
query II rowsort label-4336
SELECT ALL + 35 + - - 49, - CASE - 39 WHEN - 34 * - COUNT ( * ) THEN NULL ELSE - CASE - 72 WHEN - 70 + + - 49 + - + MAX ( CAST ( NULL AS INTEGER ) ) + 77 + - 51 THEN - ( + CAST ( NULL AS INTEGER ) ) WHEN - + 76 * + 81 THEN + 4 * - 8 END END - - 30 AS col1
----
84
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4337
SELECT ALL COUNT( * ) + COUNT( * ) + 66 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL COUNT ( * ) + COUNT ( * ) + 66 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 42 + 52
----
10

query I rowsort
SELECT DISTINCT ( 77 ) AS col2
----
77

query I rowsort
SELECT - 67 - - 34
----
-33

query I rowsort
SELECT - 71 * - - 46 - - - 10 + - 3 * - 19 AS col0
----
-3219

query I rowsort
SELECT DISTINCT + - 72 * 16 - + - 42 AS col1
----
-1110

query I rowsort
SELECT DISTINCT - - 73 * - ( 64 ) + + - 83 - 98
----
-4853

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL - COUNT( * ) * - MIN( DISTINCT 18 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL - COUNT ( * ) * - MIN ( DISTINCT 18 ) AS col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4345
SELECT - 69 * - - CAST( NULL AS SIGNED ) / ( + CASE ( 67 ) WHEN + + 84 THEN + + 48 + + + 52 WHEN + CAST( NULL AS SIGNED ) * 8 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4345
SELECT - 69 * - - CAST ( NULL AS INTEGER ) / ( + CASE ( 67 ) WHEN + + 84 THEN + + 48 + + + 52 WHEN + CAST ( NULL AS INTEGER ) * 8 THEN NULL END ) AS col1
----
NULL

query I rowsort
SELECT ALL + - COALESCE ( + + 82, + 41, + 24 )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4347
SELECT + 96 + + + 34, + ( - ( 68 ) ) DIV CAST( - - COUNT( * ) AS SIGNED ) + - - 52 + + + 42 AS col1
----
130
26

skipif mysql # not compatible
query II rowsort label-4347
SELECT + 96 + + + 34, + ( - ( 68 ) ) / CAST ( - - COUNT ( * ) AS INTEGER ) + - - 52 + + + 42 AS col1
----
130
26

query II rowsort
SELECT + 10 + - 37, 20 AS col2
----
-27
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4349
SELECT ALL + + COUNT( CAST( 81 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL + + COUNT ( CAST ( 81 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4350
SELECT + - 80 DIV + 91 AS col2, COUNT( * ) * NULLIF ( - + 64, + - COUNT( * ) + + 36 - - SUM( + 38 ) * 71 * 1 * - + 91 ) * - 89 AS col1
----
0
5696

skipif mysql # not compatible
query II rowsort label-4350
SELECT + - 80 / + 91 AS col2, COUNT ( * ) * NULLIF ( - + 64, + - COUNT ( * ) + + 36 - - SUM ( + 38 ) * 71 * 1 * - + 91 ) * - 89 AS col1
----
0
5696

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT DISTINCT 15 * - COUNT( * ) col0
----
-15

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT 15 * - COUNT ( * ) col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT ( - 95 ) * + COUNT( ALL + 84 ) + COALESCE ( COUNT( * ), + COUNT( * ) * + - 66 + - 48 )
----
-94

skipif mysql # not compatible
query I rowsort label-4352
SELECT ( - 95 ) * + COUNT ( ALL + 84 ) + COALESCE ( COUNT ( * ), + COUNT ( * ) * + - 66 + - 48 )
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-4353
SELECT DISTINCT 44 DIV 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT 44 / 93 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT + ( - - 78 ) + - COUNT( * ) - - 76 + - 42 * 91 * + 56 + ( - - CASE + + 42 WHEN ( + 95 ) + + COALESCE ( + + COUNT( * ), - 88 * + - ( + COALESCE ( - 61, + 88 * + 66 * + MIN( DISTINCT - 18 ) + + 69 + 49 ) ) ) THEN - 7 WHEN - + 48 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4354
SELECT + ( - - 78 ) + - COUNT ( * ) - - 76 + - 42 * 91 * + 56 + ( - - CASE + + 42 WHEN ( + 95 ) + + COALESCE ( + + COUNT ( * ), - 88 * + - ( + COALESCE ( - 61, + 88 * + 66 * + MIN ( DISTINCT - 18 ) + + 69 + 49 ) ) ) THEN - 7 WHEN - + 48 THEN NULL END )
----
NULL

query I rowsort
SELECT DISTINCT 45 * + 3 + + - 15 * + 80 AS col0
----
-1065

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4356
SELECT - COUNT( - 78 ) * 43 * + 73 * 20 * + + 39 AS col0, COALESCE ( + 78, + 57 + 65 DIV - COUNT( * ), - 95, 75 ) AS col1
----
-2448420
78

skipif mysql # not compatible
query II rowsort label-4356
SELECT - COUNT ( - 78 ) * 43 * + 73 * 20 * + + 39 AS col0, COALESCE ( + 78, + 57 + 65 / - COUNT ( * ), - 95, 75 ) AS col1
----
-2448420
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT ALL CASE - 16 WHEN + 51 - + + 38 THEN NULL WHEN + SUM( DISTINCT - 54 ) * - COALESCE ( - 12, + - 4 ) THEN - 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4357
SELECT ALL CASE - 16 WHEN + 51 - + + 38 THEN NULL WHEN + SUM ( DISTINCT - 54 ) * - COALESCE ( - 12, + - 4 ) THEN - 16 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4358
SELECT + CAST( NULL AS SIGNED ) / - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4358
SELECT + CAST ( NULL AS INTEGER ) / - 8 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 43 + + 9
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT MIN( ALL + - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-4360
SELECT MIN ( ALL + - 39 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT DISTINCT + 21 + + MIN( DISTINCT 24 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT + 21 + + MIN ( DISTINCT 24 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT DISTINCT 37 * - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT 37 * - COUNT ( * )
----
-37

query I rowsort
SELECT ALL - 58 + - 36
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT ALL MIN( ALL - - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL MIN ( ALL - - 64 )
----
64

query I rowsort
SELECT DISTINCT 31 + + - 27 * 50 + - + 60
----
-1379

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4366
SELECT ALL - MIN( + 82 ) + - 18 - 34 + + + 87 + + CAST( NULL AS DECIMAL ) * - 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL - MIN ( + 82 ) + - 18 - 34 + + + 87 + + CAST ( NULL AS REAL ) * - 61 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT ALL + 4 + + ( + 18 ) + - 45 - + 51 + - 91 + + + 6 + - + COUNT( - 99 ) + - 0 + - 44 * - 42 + + 61 * - 70 * 89 - COUNT( * ) * - - MAX( - 14 ) * + MAX( ALL + 24 ) * + 69
----
-355158

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL + 4 + + ( + 18 ) + - 45 - + 51 + - 91 + + + 6 + - + COUNT ( - 99 ) + - 0 + - 44 * - 42 + + 61 * - 70 * 89 - COUNT ( * ) * - - MAX ( - 14 ) * + MAX ( ALL + 24 ) * + 69
----
-355158

query I rowsort
SELECT - 47 + + 6 + + 26 * + 24 * - 23
----
-14393

query I rowsort
SELECT - - 77 + - + 81 * + + 89
----
-7132

query I rowsort
SELECT ALL - 71 - + 9 AS col1
----
-80

query I rowsort
SELECT ALL + - 91 * - 33 + + 69 AS col2
----
3072

onlyif mysql # aggregate syntax: 
query II rowsort label-4372
SELECT 74 col0, 88 + + - 7 - - 59 - + 14 - - COUNT( * ) + + 46
----
74
173

skipif mysql # not compatible
query II rowsort label-4372
SELECT 74 col0, 88 + + - 7 - - 59 - + 14 - - COUNT ( * ) + + 46
----
74
173

query I rowsort
SELECT ALL + 91 - + 72 AS col0
----
19

query I rowsort
SELECT - 87 + + 65 * + 59 * 92 - - 49 AS col2
----
352782

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT + 70 * - 72 + - COUNT( - + 36 )
----
-5041

skipif mysql # not compatible
query I rowsort label-4375
SELECT + 70 * - 72 + - COUNT ( - + 36 )
----
-5041

onlyif mysql # aggregate syntax: 
query II rowsort label-4376
SELECT - + 52 * - ( + + 48 ) AS col2, + COUNT( * ) + + 18 * + COALESCE ( - 55, 1 ) AS col1
----
2496
-989

skipif mysql # not compatible
query II rowsort label-4376
SELECT - + 52 * - ( + + 48 ) AS col2, + COUNT ( * ) + + 18 * + COALESCE ( - 55, 1 ) AS col1
----
2496
-989

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT ALL + - SUM( ALL + + 2 ) * + 34
----
-68

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL + - SUM ( ALL + + 2 ) * + 34
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4378
SELECT - - MIN( - 37 ) DIV + 58 * + + 61 + - 37 col1
----
-37

skipif mysql # not compatible
query I rowsort label-4378
SELECT - - MIN ( - 37 ) / + 58 * + + 61 + - 37 col1
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4379
SELECT - MAX( ALL + 90 ) DIV - 47, 69 * + - 9 + - 88 AS col2
----
1
-709

skipif mysql # not compatible
query II rowsort label-4379
SELECT - MAX ( ALL + 90 ) / - 47, 69 * + - 9 + - 88 AS col2
----
1
-709

query I rowsort
SELECT ALL - - ( 5 )
----
5

query I rowsort
SELECT + 67 * + - 62 * 45
----
-186930

query I rowsort
SELECT + ( - 90 ) AS col0
----
-90

query I rowsort
SELECT ALL - + ( + 9 ) AS col1
----
-9

query I rowsort
SELECT ALL - + ( + 25 ) AS col2
----
-25

query I rowsort
SELECT + COALESCE ( - + 29, 97 ) AS col1
----
-29

query II rowsort
SELECT - 71 AS col2, - 5 AS col0
----
-71
-5

query I rowsort
SELECT ALL 60 * + 8
----
480

query I rowsort
SELECT ALL 69 * 41 AS col2
----
2829

query I rowsort
SELECT DISTINCT + 52 + 90 * + + 78 AS col0
----
7072

query I rowsort
SELECT DISTINCT 79 + + 50 * + 43 AS col1
----
2229

query I rowsort
SELECT ALL 38 + + ( + 84 )
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT MIN( DISTINCT + 28 ) - + + 2 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4392
SELECT MIN ( DISTINCT + 28 ) - + + 2 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT 72 - + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-4393
SELECT 72 - + COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT ALL + 34 + NULLIF ( + 31, + - 6 ) * 34 + + + 24 + + 8 - - + COALESCE ( + CASE - 15 WHEN - + COALESCE ( + 64, + 69 ) THEN - 45 WHEN 88 * + 29 + + 27 + - NULLIF ( COALESCE ( + + ( + NULLIF ( COUNT( * ), - 63 + + + ( - COALESCE ( - + 35, MIN( ALL - - 20 ) - - - COALESCE ( + NULLIF ( - 60, - - 30 ), + - 69 ) / 91 ) ) ) ), + 69, + 19 ), + 16 ) * + 81 * + 53 THEN NULL END, 90, - MIN( ALL 7 ) ) * + 36 * 87 AS col2
----
283000

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL + 34 + NULLIF ( + 31, + - 6 ) * 34 + + + 24 + + 8 - - + COALESCE ( + CASE - 15 WHEN - + COALESCE ( + 64, + 69 ) THEN - 45 WHEN 88 * + 29 + + 27 + - NULLIF ( COALESCE ( + + ( + NULLIF ( COUNT ( * ), - 63 + + + ( - COALESCE ( - + 35, MIN ( ALL - - 20 ) - - - COALESCE ( + NULLIF ( - 60, - - 30 ), + - 69 ) / 91 ) ) ) ), + 69, + 19 ), + 16 ) * + 81 * + 53 THEN NULL END, 90, - MIN ( ALL 7 ) ) * + 36 * 87 AS col2
----
283000

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT ALL 60 + + ( - 65 ) + 42 + COUNT( ALL + 96 ) * + - 9 * + 41 AS col0
----
-332

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL 60 + + ( - 65 ) + 42 + COUNT ( ALL + 96 ) * + - 9 * + 41 AS col0
----
-332

onlyif mysql # aggregate syntax: 
query II rowsort label-4396
SELECT 13 + - - 47 + - ( - - 12 ) + + COUNT( * ) * 34 * - + 43 + - ( + - ( - + CASE - COUNT( * ) WHEN 89 THEN NULL ELSE COUNT( * ) + - - 53 * - 87 END ) ) AS col2, NULLIF ( - 97, + + ( - ( 42 ) ) + 28 * - 36 * + - 62 ) col1
----
3196
-97

skipif mysql # not compatible
query II rowsort label-4396
SELECT 13 + - - 47 + - ( - - 12 ) + + COUNT ( * ) * 34 * - + 43 + - ( + - ( - + CASE - COUNT ( * ) WHEN 89 THEN NULL ELSE COUNT ( * ) + - - 53 * - 87 END ) ) AS col2, NULLIF ( - 97, + + ( - ( 42 ) ) + 28 * - 36 * + - 62 ) col1
----
3196
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-4397
SELECT ALL 25 + + 75 AS col2, 90 DIV - 92 AS col1
----
100
0

skipif mysql # not compatible
query II rowsort label-4397
SELECT ALL 25 + + 75 AS col2, 90 / - 92 AS col1
----
100
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT 97 * MAX( DISTINCT 80 ) AS col0
----
7760

skipif mysql # not compatible
query I rowsort label-4398
SELECT 97 * MAX ( DISTINCT 80 ) AS col0
----
7760

query I rowsort
SELECT 32 * + 15 AS col2
----
480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4400
SELECT ALL - 42 - CAST( 53 AS SIGNED ) + + ( - NULLIF ( MIN( DISTINCT - 5 ), - - 92 ) ) + 57 - + 41 + - + COUNT( * ) * - + CAST( NULL AS SIGNED ) * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL - 42 - CAST ( 53 AS INTEGER ) + + ( - NULLIF ( MIN ( DISTINCT - 5 ), - - 92 ) ) + 57 - + 41 + - + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * 79
----
NULL

query I rowsort
SELECT 42 * - - 69 + + 77 * - - 25 AS col0
----
4823

query II rowsort
SELECT DISTINCT - 87 - + 59 + - 37 + - 60 col2, 68 + - - 27
----
-243
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4403
SELECT DISTINCT CAST( - 98 AS SIGNED ) col1
----
-98

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT CAST ( - 98 AS INTEGER ) col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT ALL - COALESCE ( 74, + + COUNT( - 60 ) * + 16 ) col0
----
-74

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL - COALESCE ( 74, + + COUNT ( - 60 ) * + 16 ) col0
----
-74

query II rowsort
SELECT + 39 * 48 - + 49 * + 77 AS col0, - 4 AS col1
----
-1901
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT ALL - 35 * - 52 + - 65 + NULLIF ( - 15, 99 * - + 56 + + MIN( ALL 61 ) ) * 1
----
1740

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL - 35 * - 52 + - 65 + NULLIF ( - 15, 99 * - + 56 + + MIN ( ALL 61 ) ) * 1
----
1740

onlyif mysql # aggregate syntax: 
query II rowsort label-4407
SELECT DISTINCT - - 21 * + - 94 AS col1, 77 + - + COUNT( * ) * - 64
----
-1974
141

skipif mysql # not compatible
query II rowsort label-4407
SELECT DISTINCT - - 21 * + - 94 AS col1, 77 + - + COUNT ( * ) * - 64
----
-1974
141

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4408
SELECT - 63 / - - COUNT( * ) + - CAST( NULL AS DECIMAL ) - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4408
SELECT - 63 / - - COUNT ( * ) + - CAST ( NULL AS REAL ) - 53
----
NULL

query I rowsort
SELECT 60 - + 35
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4410
SELECT ALL + 83 + + 60 + + - MIN( - + 17 ) DIV - + 4 AS col0
----
139

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL + 83 + + 60 + + - MIN ( - + 17 ) / - + 4 AS col0
----
139

query I rowsort
SELECT 91 * 72
----
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT COUNT( * ) * - 19 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-4412
SELECT COUNT ( * ) * - 19 AS col2
----
-19

query I rowsort
SELECT 72 + + 10 + - 41
----
41

query I rowsort
SELECT 81 + - + 34 + - 9 * COALESCE ( + 26, - 45 )
----
-187

query I rowsort
SELECT DISTINCT - COALESCE ( - 69, - 95 )
----
69

query I rowsort
SELECT ALL - ( + 3 ) AS col1
----
-3

query I rowsort
SELECT 3 * - 16 * 97 + - - 62 AS col0
----
-4594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4418
SELECT 19, + MIN( + CAST( + - 65 AS SIGNED ) ) * + 74 + + 4 - + 25 + + + 35 DIV 78 AS col2
----
19
-4831

skipif mysql # not compatible
query II rowsort label-4418
SELECT 19, + MIN ( + CAST ( + - 65 AS INTEGER ) ) * + 74 + + 4 - + 25 + + + 35 / 78 AS col2
----
19
-4831

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT COUNT( * ) + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4419
SELECT COUNT ( * ) + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL COUNT( * ) - + 77
----
-76

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL COUNT ( * ) - + 77
----
-76

query II rowsort
SELECT - 56 AS col2, - 84 * 61
----
-56
-5124

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4422
SELECT 70 AS col2, CAST( NULL AS SIGNED )
----
70
NULL

skipif mysql # not compatible
query II rowsort label-4422
SELECT 70 AS col2, CAST ( NULL AS INTEGER )
----
70
NULL

query II rowsort
SELECT ALL 58 AS col0, 49 AS col1
----
58
49

query I rowsort
SELECT 6 * 20
----
120

query I rowsort
SELECT 42 * - 38
----
-1596

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT 31 * - 44 + - MAX( ALL 34 ) + + 96 AS col1
----
-1302

skipif mysql # not compatible
query I rowsort label-4426
SELECT 31 * - 44 + - MAX ( ALL 34 ) + + 96 AS col1
----
-1302

onlyif mysql # aggregate syntax: 
query II rowsort label-4427
SELECT 51 AS col2, - COUNT( * )
----
51
-1

skipif mysql # not compatible
query II rowsort label-4427
SELECT 51 AS col2, - COUNT ( * )
----
51
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT DISTINCT - 86 * + MAX( ALL - 94 ) AS col2
----
8084

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT - 86 * + MAX ( ALL - 94 ) AS col2
----
8084

query I rowsort
SELECT ALL 90 - - 2 AS col1
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-4430
SELECT + ( - 5 ) + 16, COALESCE ( 71, - + 78 ) * - - COUNT( * ) AS col1
----
11
71

skipif mysql # not compatible
query II rowsort label-4430
SELECT + ( - 5 ) + 16, COALESCE ( 71, - + 78 ) * - - COUNT ( * ) AS col1
----
11
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT DISTINCT + 58 * - + COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT + 58 * - + COUNT ( * )
----
-58

query I rowsort
SELECT + + 25 * 48
----
1200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4433
SELECT + ( COUNT( * ) ) + + COALESCE ( 52, - 97 DIV - 87 * 5 * - NULLIF ( COUNT( * ), - COUNT( * ) ) + - COUNT( * ) ) + - 57 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4433
SELECT + ( COUNT ( * ) ) + + COALESCE ( 52, - 97 / - 87 * 5 * - NULLIF ( COUNT ( * ), - COUNT ( * ) ) + - COUNT ( * ) ) + - 57 AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4434
SELECT ALL 37 AS col0, + NULLIF ( - 49, - - 25 + + ( COUNT( * ) ) ) / - - AVG ( DISTINCT + + 96 ) + + - CAST( NULL AS SIGNED ) / - 95 col1
----
37
NULL

skipif mysql # not compatible
query II rowsort label-4434
SELECT ALL 37 AS col0, + NULLIF ( - 49, - - 25 + + ( COUNT ( * ) ) ) / - - AVG ( DISTINCT + + 96 ) + + - CAST ( NULL AS INTEGER ) / - 95 col1
----
37
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT + COUNT( * ) - + - 94 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-4435
SELECT + COUNT ( * ) - + - 94 AS col0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4436
SELECT - + 70 DIV NULLIF ( - ( - 38 ), 51 * - - 38 + - 48 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4436
SELECT - + 70 / NULLIF ( - ( - 38 ), 51 * - - 38 + - 48 ) AS col1
----
-1

query I rowsort
SELECT + ( + 70 ) + + 58
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT ALL NULLIF ( + - COALESCE ( 3, - 56 * - COUNT( * ) ), 96 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL NULLIF ( + - COALESCE ( 3, - 56 * - COUNT ( * ) ), 96 ) AS col0
----
-3

query I rowsort
SELECT DISTINCT - 36 * + 13 AS col0
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT + COUNT( - + 23 )
----
1

skipif mysql # not compatible
query I rowsort label-4440
SELECT + COUNT ( - + 23 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT + + COUNT( * ) * CASE - 77 WHEN - - 24 THEN NULL WHEN 56 THEN 64 * 81 * + 14 END + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT + + COUNT ( * ) * CASE - 77 WHEN - - 24 THEN NULL WHEN 56 THEN 64 * 81 * + 14 END + 25
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4442
SELECT - 35 DIV NULLIF ( 53, - 58 * + 86 ) + - ( + 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-4442
SELECT - 35 / NULLIF ( 53, - 58 * + 86 ) + - ( + 57 )
----
-57

query I rowsort
SELECT - - 43 + 28
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT DISTINCT 77 * COUNT( * ) + ( + - 3 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT 77 * COUNT ( * ) + ( + - 3 ) AS col1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4445
SELECT ALL 2 * + 15 + - - CAST( 63 AS SIGNED ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL 2 * + 15 + - - CAST ( 63 AS INTEGER ) AS col1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4446
SELECT + 21 * - CAST( NULL AS SIGNED ) * - - 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4446
SELECT + 21 * - CAST ( NULL AS INTEGER ) * - - 63 AS col2
----
NULL

query I rowsort
SELECT - 27 + 13
----
-14

query I rowsort
SELECT ALL + COALESCE ( + + 97, 12 + 96 * 3 - - 4 + 91 ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT ALL + COUNT( * ) * - 44 + - 7
----
-51

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL + COUNT ( * ) * - 44 + - 7
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT - MAX( ALL - + 44 ) * 58 AS col2
----
2552

skipif mysql # not compatible
query I rowsort label-4450
SELECT - MAX ( ALL - + 44 ) * 58 AS col2
----
2552

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4451
SELECT - 43 / ( AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4451
SELECT - 43 / ( AVG ( DISTINCT - CAST ( NULL AS REAL ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT + MAX( + + 71 ) * COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4452
SELECT + MAX ( + + 71 ) * COUNT ( * ) AS col1
----
71

query I rowsort
SELECT - 61 * - 18
----
1098

onlyif mysql # aggregate syntax: 
query II rowsort label-4454
SELECT COUNT( * ) AS col1, - 35 + 94 AS col0
----
1
59

skipif mysql # not compatible
query II rowsort label-4454
SELECT COUNT ( * ) AS col1, - 35 + 94 AS col0
----
1
59

query I rowsort
SELECT - 25 * + + 35
----
-875

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL COALESCE ( COALESCE ( - + 65, - 61 * 51, COUNT( * ) * 98 + - ( - 34 ) - + - 30 * + NULLIF ( + 36, 58 ) + - 33, - 97 ), + 88 )
----
-65

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL COALESCE ( COALESCE ( - + 65, - 61 * 51, COUNT ( * ) * 98 + - ( - 34 ) - + - 30 * + NULLIF ( + 36, 58 ) + - 33, - 97 ), + 88 )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4457
SELECT - 77 DIV + + COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-4457
SELECT - 77 / + + COUNT ( * )
----
-77

query I rowsort
SELECT DISTINCT COALESCE ( 10, + + 81 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4459
SELECT - + ( + + 32 ) * + CAST( - 51 AS SIGNED ) AS col0
----
1632

skipif mysql # not compatible
query I rowsort label-4459
SELECT - + ( + + 32 ) * + CAST ( - 51 AS INTEGER ) AS col0
----
1632

query II rowsort
SELECT 5 AS col2, - 84
----
5
-84

query II rowsort
SELECT - 38 + + 23, 81 AS col1
----
-15
81

query II rowsort
SELECT - 55, + ( + 25 ) * - - 49 AS col0
----
-55
1225

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT ALL - 7 + + COALESCE ( + 17, COUNT( * ), + ( + 29 ) )
----
10

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL - 7 + + COALESCE ( + 17, COUNT ( * ), + ( + 29 ) )
----
10

query I rowsort
SELECT ALL + 27 + + 5 col0
----
32

query II rowsort
SELECT + 89 AS col2, + 94 * + - 32 + + 41 * - + 14
----
89
-3582

onlyif mysql # DIV for integer division: 
query I rowsort label-4466
SELECT - - 52 DIV 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4466
SELECT - - 52 / 83 AS col2
----
0

query I rowsort
SELECT - 49 - + + 26 + + 28 * - 54 col0
----
-1587

query II rowsort
SELECT - + 74, - 45 AS col0
----
-74
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-4469
SELECT - 40 AS col0, - CASE - - 97 WHEN + 58 THEN + 59 - COUNT( * ) ELSE - - MIN( 51 ) END
----
-40
-51

skipif mysql # not compatible
query II rowsort label-4469
SELECT - 40 AS col0, - CASE - - 97 WHEN + 58 THEN + 59 - COUNT ( * ) ELSE - - MIN ( 51 ) END
----
-40
-51

query I rowsort
SELECT ALL 93 + + + 38 AS col0
----
131

onlyif mysql # aggregate syntax: 
query II rowsort label-4471
SELECT + + 81 * + - 1 AS col2, COUNT( * ) AS col0
----
-81
1

skipif mysql # not compatible
query II rowsort label-4471
SELECT + + 81 * + - 1 AS col2, COUNT ( * ) AS col0
----
-81
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4472
SELECT CAST( - COALESCE ( + + 62, - 48 ) AS SIGNED ) * + 30 + + 54 - - + 80 + 16 + + + 66 * - + 99 * + MIN( + - 21 ) * 93 AS col1
----
12759192

skipif mysql # not compatible
query I rowsort label-4472
SELECT CAST ( - COALESCE ( + + 62, - 48 ) AS INTEGER ) * + 30 + + 54 - - + 80 + 16 + + + 66 * - + 99 * + MIN ( + - 21 ) * 93 AS col1
----
12759192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4473
SELECT ALL - 35 DIV 72 + 52 + MIN( + 50 ) - + + 72
----
30

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL - 35 / 72 + 52 + MIN ( + 50 ) - + + 72
----
30

query I rowsort
SELECT ALL 79 * + 52 AS col1
----
4108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4475
SELECT + 91 * - COUNT( * ) - 26 + + + 79 * - - COUNT( * ) + CAST( + 44 AS SIGNED ) * 45 * + ( + MIN( ALL + 12 ) ) * + COUNT( * ) * + 40 AS col2, - 61
----
950362
-61

skipif mysql # not compatible
query II rowsort label-4475
SELECT + 91 * - COUNT ( * ) - 26 + + + 79 * - - COUNT ( * ) + CAST ( + 44 AS INTEGER ) * 45 * + ( + MIN ( ALL + 12 ) ) * + COUNT ( * ) * + 40 AS col2, - 61
----
950362
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT DISTINCT NULLIF ( - - 7, + 76 + + 98 + - 7 ) DIV + 18
----
0

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT NULLIF ( - - 7, + 76 + + 98 + - 7 ) / + 18
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4477
SELECT CAST( - - ( + + COUNT( * ) ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4477
SELECT CAST ( - - ( + + COUNT ( * ) ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT + 43 + + 30
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4479
SELECT CAST( - 82 AS SIGNED ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-4479
SELECT CAST ( - 82 AS INTEGER ) AS col1
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4480
SELECT COUNT( * ) * - COUNT( * ) DIV 98 + 65
----
65

skipif mysql # not compatible
query I rowsort label-4480
SELECT COUNT ( * ) * - COUNT ( * ) / 98 + 65
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4481
SELECT - 53 * + 37 - + CASE + 18 WHEN - 54 THEN NULL WHEN 58 * - 83 / + - 75 + - 74 THEN - CAST( + 79 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4481
SELECT - 53 * + 37 - + CASE + 18 WHEN - 54 THEN NULL WHEN 58 * - 83 / + - 75 + - 74 THEN - CAST ( + 79 AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4482
SELECT ALL + CAST( NULL AS DECIMAL ) * + CAST( + 50 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL + CAST ( NULL AS REAL ) * + CAST ( + 50 AS REAL )
----
NULL

query I rowsort
SELECT + 1 * 63
----
63

query I rowsort
SELECT 50 * - 38 * + 5 + + ( - + 83 ) AS col2
----
-9583

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4485
SELECT ALL + NULLIF ( + - 64, - 89 * - + NULLIF ( + ( + 87 ), 29 ) * + - CASE - + 77 WHEN + 16 THEN - ( 18 ) WHEN - 28 THEN + NULLIF ( + - MIN( 86 ), 87 ) + - + CASE - 25 WHEN + CAST( 2 AS SIGNED ) * + 75 * + MAX( DISTINCT 6 ) / - - 52 THEN 39 WHEN - 23 THEN NULL ELSE NULL END * + MIN( 21 ) END / - ( - 84 ) - - SUM( DISTINCT - 81 ) - + 50 - - - COUNT( * ) ) col2
----
-64

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL + NULLIF ( + - 64, - 89 * - + NULLIF ( + ( + 87 ), 29 ) * + - CASE - + 77 WHEN + 16 THEN - ( 18 ) WHEN - 28 THEN + NULLIF ( + - MIN ( 86 ), 87 ) + - + CASE - 25 WHEN + CAST ( 2 AS INTEGER ) * + 75 * + MAX ( DISTINCT 6 ) / - - 52 THEN 39 WHEN - 23 THEN NULL ELSE NULL END * + MIN ( 21 ) END / - ( - 84 ) - - SUM ( DISTINCT - 81 ) - + 50 - - - COUNT ( * ) ) col2
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4486
SELECT - 54 + + 93 + - 5 + 77 DIV - CASE + 47 WHEN - 79 DIV + - 8 - + MIN( ALL + 81 ) + 85 THEN 31 ELSE 91 END * + 55 + + 49
----
83

skipif mysql # not compatible
query I rowsort label-4486
SELECT - 54 + + 93 + - 5 + 77 / - CASE + 47 WHEN - 79 / + - 8 - + MIN ( ALL + 81 ) + 85 THEN 31 ELSE 91 END * + 55 + + 49
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT ALL CASE + - 65 WHEN - 41 THEN COUNT( * ) END * + + 40 / + 35 * + - 12 + SUM( ALL - 63 ) * COUNT( ALL - 5 ) + - 55 + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL CASE + - 65 WHEN - 41 THEN COUNT ( * ) END * + + 40 / + 35 * + - 12 + SUM ( ALL - 63 ) * COUNT ( ALL - 5 ) + - 55 + + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT 51 + + COUNT( DISTINCT 68 ) + - ( 39 )
----
13

skipif mysql # not compatible
query I rowsort label-4488
SELECT 51 + + COUNT ( DISTINCT 68 ) + - ( 39 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT ALL - + 27 + - COUNT( * ) + + + 93 + 16 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL - + 27 + - COUNT ( * ) + + + 93 + 16 AS col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4490
SELECT DISTINCT + - NULLIF ( - CAST( + - 14 AS SIGNED ), - + CASE + COUNT( * ) WHEN + NULLIF ( 56, 96 + + 16 ) THEN 23 * - 9 + + 41 ELSE + - 29 END ) DIV - NULLIF ( - 12, - - ( 10 ) + + 11 ) + + - 40
----
-41

skipif mysql # not compatible
query I rowsort label-4490
SELECT DISTINCT + - NULLIF ( - CAST ( + - 14 AS INTEGER ), - + CASE + COUNT ( * ) WHEN + NULLIF ( 56, 96 + + 16 ) THEN 23 * - 9 + + 41 ELSE + - 29 END ) / - NULLIF ( - 12, - - ( 10 ) + + 11 ) + + - 40
----
-41

query I rowsort
SELECT 97 + - 80
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT DISTINCT - ( 39 ) + - COUNT( * ) * + 95 + + - 83 + NULLIF ( + + 40, 23 ) * + 40 * + COUNT( * ) + + - ( 45 )
----
1338

skipif mysql # not compatible
query I rowsort label-4492
SELECT DISTINCT - ( 39 ) + - COUNT ( * ) * + 95 + + - 83 + NULLIF ( + + 40, 23 ) * + 40 * + COUNT ( * ) + + - ( 45 )
----
1338

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT + MIN( - - 81 ) col0
----
81

skipif mysql # not compatible
query I rowsort label-4493
SELECT + MIN ( - - 81 ) col0
----
81

query I rowsort
SELECT ALL + + 48 + - + 66 AS col1
----
-18

query I rowsort
SELECT DISTINCT - - 85 + + - 54
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT DISTINCT + ( 50 ) * 75 * + COUNT( * ) / + 39 * - + CASE - 79 WHEN + 94 + - 26 THEN - + ( + - 77 ) END + 97 * + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT + ( 50 ) * 75 * + COUNT ( * ) / + 39 * - + CASE - 79 WHEN + 94 + - 26 THEN - + ( + - 77 ) END + 97 * + 96 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4497
SELECT ALL - CAST( + 63 AS SIGNED ) + - + CASE - 76 WHEN 69 THEN 24 WHEN + + ( + 29 ) THEN - + 25 ELSE NULL END * + + 54 / - COUNT( * ) * + - 31 + + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL - CAST ( + 63 AS INTEGER ) + - + CASE - 76 WHEN 69 THEN 24 WHEN + + ( + 29 ) THEN - + 25 ELSE NULL END * + + 54 / - COUNT ( * ) * + - 31 + + 9
----
NULL

query II rowsort
SELECT - 67 + - 34 AS col2, 63
----
-101
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT DISTINCT - + 35 + - - 82 * + COUNT( DISTINCT + + COALESCE ( - - 79, - - 54 ) )
----
47

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT - + 35 + - - 82 * + COUNT ( DISTINCT + + COALESCE ( - - 79, - - 54 ) )
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4500
SELECT COUNT( DISTINCT 32 ) + + + 44 + 32 DIV ( + 41 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4500
SELECT COUNT ( DISTINCT 32 ) + + + 44 + 32 / ( + 41 ) AS col0
----
45

query II rowsort
SELECT 12 + - 89 AS col1, + 99 AS col0
----
-77
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4502
SELECT ALL + + ( + - 33 ) + - 49 + - - 92 * - 30 + + CAST( NULL AS SIGNED ) / - 19 / - 37 - - 43 + + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL + + ( + - 33 ) + - 49 + - - 92 * - 30 + + CAST ( NULL AS INTEGER ) / - 19 / - 37 - - 43 + + + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT + ( + 11 ) + ( - + COUNT( * ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4503
SELECT + ( + 11 ) + ( - + COUNT ( * ) ) AS col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT 45 + + 29 + 29 / ( CAST( NULL AS SIGNED ) ) * - 72 * + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4504
SELECT 45 + + 29 + 29 / ( CAST ( NULL AS INTEGER ) ) * - 72 * + + 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT + 17 - + COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4505
SELECT + 17 - + COUNT ( * ) AS col2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4506
SELECT DISTINCT + 89 - - COALESCE ( - 39, + 93 * ( + - 30 ) + - 65 DIV + + ( - 50 ) + - + 58 )
----
50

skipif mysql # not compatible
query I rowsort label-4506
SELECT DISTINCT + 89 - - COALESCE ( - 39, + 93 * ( + - 30 ) + - 65 / + + ( - 50 ) + - + 58 )
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4507
SELECT 44 DIV + 95 + - 87
----
-87

skipif mysql # not compatible
query I rowsort label-4507
SELECT 44 / + 95 + - 87
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-4508
SELECT 35, - 55 * - 90 + + MAX( - 77 ) col0
----
35
4873

skipif mysql # not compatible
query II rowsort label-4508
SELECT 35, - 55 * - 90 + + MAX ( - 77 ) col0
----
35
4873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4509
SELECT ( ( 77 ) ) + + 40 * - CAST( + - NULLIF ( 95, - + 79 ) AS SIGNED ) AS col0
----
3877

skipif mysql # not compatible
query I rowsort label-4509
SELECT ( ( 77 ) ) + + 40 * - CAST ( + - NULLIF ( 95, - + 79 ) AS INTEGER ) AS col0
----
3877

onlyif mysql # aggregate syntax: 
query II rowsort label-4510
SELECT 80, SUM( 19 ) col0
----
80
19

skipif mysql # not compatible
query II rowsort label-4510
SELECT 80, SUM ( 19 ) col0
----
80
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4511
SELECT DISTINCT ( CAST( COUNT( * ) AS SIGNED ) ) * - CASE - COUNT( * ) WHEN 8 - + 70 THEN NULL WHEN COUNT( * ) THEN - COUNT( * ) * - 32 * - 95 END col1, CAST( - 86 AS SIGNED )
----
NULL
-86

skipif mysql # not compatible
query II rowsort label-4511
SELECT DISTINCT ( CAST ( COUNT ( * ) AS INTEGER ) ) * - CASE - COUNT ( * ) WHEN 8 - + 70 THEN NULL WHEN COUNT ( * ) THEN - COUNT ( * ) * - 32 * - 95 END col1, CAST ( - 86 AS INTEGER )
----
NULL
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4512
SELECT COALESCE ( - - 36, - + 94, + 42 * + 46 DIV + + 59 + - - 47 ) * + + 98 + 92 DIV + COUNT( * ) + 68 col2, - 84 AS col2
----
3688
-84

skipif mysql # not compatible
query II rowsort label-4512
SELECT COALESCE ( - - 36, - + 94, + 42 * + 46 / + + 59 + - - 47 ) * + + 98 + 92 / + COUNT ( * ) + 68 col2, - 84 AS col2
----
3688
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT ALL - COUNT( - 94 )
----
-1

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL - COUNT ( - 94 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4514
SELECT ( - 10 ) DIV + + 31
----
0

skipif mysql # not compatible
query I rowsort label-4514
SELECT ( - 10 ) / + + 31
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4515
SELECT 67 AS col0, COALESCE ( + + 51, - - COUNT( * ) ) AS col1
----
67
51

skipif mysql # not compatible
query II rowsort label-4515
SELECT 67 AS col0, COALESCE ( + + 51, - - COUNT ( * ) ) AS col1
----
67
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT ALL 48 DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL 48 / - 61
----
0

query II rowsort
SELECT ALL - 77 AS col2, - 14 col2
----
-77
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-4518
SELECT + 10, + 43 * 51 + - COUNT( * ) AS col1
----
10
2192

skipif mysql # not compatible
query II rowsort label-4518
SELECT + 10, + 43 * 51 + - COUNT ( * ) AS col1
----
10
2192

query I rowsort
SELECT 48 + + + 0
----
48

query I rowsort
SELECT ALL 12 + 69 * 78
----
5394

query I rowsort
SELECT 31 - + - 54 - + 68
----
17

query I rowsort
SELECT ALL + 51 * - 42 AS col1
----
-2142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4523
SELECT - NULLIF ( + 11, + 83 * + + 24 + + CASE 82 WHEN - + 28 * COUNT( * ) + - 19 + + 23 THEN - 63 + COUNT( DISTINCT + 19 ) WHEN - 87 THEN NULL END DIV - 7 ) * + 95 * COUNT( * ) * + 49 * + COALESCE ( MIN( DISTINCT + 46 ), + 73 * - 36 DIV - - 39 )
----
-2355430

skipif mysql # not compatible
query I rowsort label-4523
SELECT - NULLIF ( + 11, + 83 * + + 24 + + CASE 82 WHEN - + 28 * COUNT ( * ) + - 19 + + 23 THEN - 63 + COUNT ( DISTINCT + 19 ) WHEN - 87 THEN NULL END / - 7 ) * + 95 * COUNT ( * ) * + 49 * + COALESCE ( MIN ( DISTINCT + 46 ), + 73 * - 36 / - - 39 )
----
-2355430

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ALL 85 + - 57 * - NULLIF ( + + 59, + - COUNT( * ) )
----
3448

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL 85 + - 57 * - NULLIF ( + + 59, + - COUNT ( * ) )
----
3448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4525
SELECT DISTINCT + COALESCE ( - - 12, - 53 + + MAX( + 77 ) + - 86 * CAST( NULL AS SIGNED ) ) * + ( NULLIF ( - 61, + 21 ) )
----
-732

skipif mysql # not compatible
query I rowsort label-4525
SELECT DISTINCT + COALESCE ( - - 12, - 53 + + MAX ( + 77 ) + - 86 * CAST ( NULL AS INTEGER ) ) * + ( NULLIF ( - 61, + 21 ) )
----
-732

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4526
SELECT ALL - ( 52 ) + + 94 DIV - - ( - 50 ) * - ( - + COUNT( + NULLIF ( 83, + + 29 ) ) )
----
-53

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL - ( 52 ) + + 94 / - - ( - 50 ) * - ( - + COUNT ( + NULLIF ( 83, + + 29 ) ) )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT DISTINCT COUNT( - + COALESCE ( 79, + - 96, - 83 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT COUNT ( - + COALESCE ( 79, + - 96, - 83 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT ALL + - ( + - 6 ) + - + 45 + - 97 * - COUNT( * ) * 43 * - 53
----
-221102

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL + - ( + - 6 ) + - + 45 + - 97 * - COUNT ( * ) * 43 * - 53
----
-221102

onlyif mysql # aggregate syntax: 
query II rowsort label-4529
SELECT ALL - COALESCE ( - COUNT( * ), - 6 ) + - 97 * 28 + + 93 col2, - 12 AS col0
----
-2622
-12

skipif mysql # not compatible
query II rowsort label-4529
SELECT ALL - COALESCE ( - COUNT ( * ), - 6 ) + - 97 * 28 + + 93 col2, - 12 AS col0
----
-2622
-12

query I rowsort
SELECT - 56 - 66 + - - 77 + + 1 - 25 * + 40
----
-1044

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT DISTINCT COUNT( * ) * + + 58 * - + 62 AS col2
----
-3596

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT COUNT ( * ) * + + 58 * - + 62 AS col2
----
-3596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT 50 - - + ( + COUNT( * ) ) + CAST( NULL AS SIGNED ) * - 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT 50 - - + ( + COUNT ( * ) ) + CAST ( NULL AS INTEGER ) * - 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT - COALESCE ( 92, - + 88 * + + ( + - COUNT( * ) ) ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4533
SELECT - COALESCE ( 92, - + 88 * + + ( + - COUNT ( * ) ) ) AS col1
----
-92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4534
SELECT ( + 99 ) + - - COALESCE ( + + CAST( 37 AS SIGNED ), - - CAST( NULL AS SIGNED ) DIV - 20 + + CAST( NULL AS SIGNED ) * 66 * 17 ) + - 67 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-4534
SELECT ( + 99 ) + - - COALESCE ( + + CAST ( 37 AS INTEGER ), - - CAST ( NULL AS INTEGER ) / - 20 + + CAST ( NULL AS INTEGER ) * 66 * 17 ) + - 67 AS col0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4535
SELECT ALL - 75 DIV + 70 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL - 75 / + 70 AS col2
----
-1

query I rowsort
SELECT DISTINCT - 31 - 65 AS col0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4537
SELECT - 72 * + 35 * + NULLIF ( CAST( NULL AS SIGNED ), + - 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT - 72 * + 35 * + NULLIF ( CAST ( NULL AS INTEGER ), + - 26 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4538
SELECT CAST( + MAX( DISTINCT 76 ) AS SIGNED ) + + - 78 * - 2 * + 28 AS col0
----
4444

skipif mysql # not compatible
query I rowsort label-4538
SELECT CAST ( + MAX ( DISTINCT 76 ) AS INTEGER ) + + - 78 * - 2 * + 28 AS col0
----
4444

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT 97 + + COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-4539
SELECT 97 + + COUNT ( * ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT COUNT( * ) * + + 59 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-4540
SELECT COUNT ( * ) * + + 59 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT 6 + - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-4541
SELECT 6 + - COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT ALL - SUM( DISTINCT + 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL - SUM ( DISTINCT + 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT DISTINCT - MAX( DISTINCT + 85 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT - MAX ( DISTINCT + 85 ) AS col0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4544
SELECT ALL - CAST( + 8 AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL - CAST ( + 8 AS INTEGER )
----
-8

query I rowsort
SELECT ALL 38 * - 1 + 68 col2
----
30

query I rowsort
SELECT + 54 - 62
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT COALESCE ( + 45, - - 16 - 42 + + 92 + COUNT( * ) ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4547
SELECT COALESCE ( + 45, - - 16 - 42 + + 92 + COUNT ( * ) ) AS col0
----
45

query I rowsort
SELECT - 25 * - + 17 AS col0
----
425

query II rowsort
SELECT + 30 + - 54 AS col1, + 81
----
-24
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT + SUM( + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-4550
SELECT + SUM ( + 73 )
----
73

query I rowsort
SELECT DISTINCT 10 * - 26 + - + 94
----
-354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4552
SELECT ALL + COUNT( * ) * + ( - AVG ( 27 ) ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL + COUNT ( * ) * + ( - AVG ( 27 ) ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT + 27 * COUNT( * ) - 26 * + - ( - - 11 )
----
313

skipif mysql # not compatible
query I rowsort label-4553
SELECT + 27 * COUNT ( * ) - 26 * + - ( - - 11 )
----
313

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT ALL - ( + COUNT( * ) ) * 41 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL - ( + COUNT ( * ) ) * 41 AS col1
----
-41

query II rowsort
SELECT - 71 * - 21 AS col0, 40 AS col2
----
1491
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT COUNT( DISTINCT - 57 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4556
SELECT COUNT ( DISTINCT - 57 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 29 + 69 * 3
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT + + 90 * NULLIF ( 62, + + 7 / + COUNT( ALL + 18 ) * 98 * 62 + + + 54 + - + 99 + - 10 + - - 5 + + COUNT( * ) ) AS col0
----
5580

skipif mysql # not compatible
query I rowsort label-4558
SELECT + + 90 * NULLIF ( 62, + + 7 / + COUNT ( ALL + 18 ) * 98 * 62 + + + 54 + - + 99 + - 10 + - - 5 + + COUNT ( * ) ) AS col0
----
5580

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT + - ( + 75 ) * + 2 * - SUM( - 14 ) * - COALESCE ( + 36, 4 ) + - COUNT( * ) * - 26 + - 92
----
75534

skipif mysql # not compatible
query I rowsort label-4559
SELECT + - ( + 75 ) * + 2 * - SUM ( - 14 ) * - COALESCE ( + 36, 4 ) + - COUNT ( * ) * - 26 + - 92
----
75534

onlyif mysql # DIV for integer division: 
query I rowsort label-4560
SELECT + 29 + + 38 DIV 33 + 96 * + 38 AS col1
----
3678

skipif mysql # not compatible
query I rowsort label-4560
SELECT + 29 + + 38 / 33 + 96 * + 38 AS col1
----
3678

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL 3 - - 9 + + + COUNT( * ) col2
----
13

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL 3 - - 9 + + + COUNT ( * ) col2
----
13

query I rowsort
SELECT + 43 * 87 col0
----
3741

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4563
SELECT ALL - CASE - - 86 WHEN + 13 THEN - 0 WHEN + 79 + - + 28 THEN 64 * + + 49 + + - 34 + - ( - AVG ( 16 ) ) WHEN - SUM( + 87 ) + + CASE 35 WHEN + 66 * + 8 + 97 + + CAST( NULL AS SIGNED ) * 72 * 7 + - 47 + - MAX( + 35 ) / + COUNT( * ) THEN + 38 ELSE + COUNT( 35 ) * - + 5 + - AVG ( ALL + + CASE 14 WHEN 94 * 99 THEN + 35 END ) END + + COUNT( * ) THEN 41 WHEN + 30 THEN + - AVG ( ALL - 78 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL - CASE - - 86 WHEN + 13 THEN - 0 WHEN + 79 + - + 28 THEN 64 * + + 49 + + - 34 + - ( - AVG ( 16 ) ) WHEN - SUM ( + 87 ) + + CASE 35 WHEN + 66 * + 8 + 97 + + CAST ( NULL AS INTEGER ) * 72 * 7 + - 47 + - MAX ( + 35 ) / + COUNT ( * ) THEN + 38 ELSE + COUNT ( 35 ) * - + 5 + - AVG ( ALL + + CASE 14 WHEN 94 * 99 THEN + 35 END ) END + + COUNT ( * ) THEN 41 WHEN + 30 THEN + - AVG ( ALL - 78 ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4564
SELECT + 70 DIV - 25
----
-2

skipif mysql # not compatible
query I rowsort label-4564
SELECT + 70 / - 25
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4565
SELECT - + CAST( 90 AS SIGNED ) + 18 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4565
SELECT - + CAST ( 90 AS INTEGER ) + 18 AS col1
----
-72

query I rowsort
SELECT ALL 50 * - 97
----
-4850

query I rowsort
SELECT + 56 + + + 31
----
87

query I rowsort
SELECT - CASE - - 71 WHEN + 60 THEN - - 7 * 44 - + + NULLIF ( - 24, 91 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT + CAST( NULL AS SIGNED ) + - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT + CAST ( NULL AS INTEGER ) + - 89 AS col0
----
NULL

query I rowsort
SELECT - 38 - 51 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT DISTINCT SUM( + - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT SUM ( + - 16 )
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-4572
SELECT + 8 + + COUNT( * ) + 88 col1, 2 AS col1
----
97
2

skipif mysql # not compatible
query II rowsort label-4572
SELECT + 8 + + COUNT ( * ) + 88 col1, 2 AS col1
----
97
2

query II rowsort
SELECT DISTINCT 35 AS col0, 42 * 52 AS col1
----
35
2184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4574
SELECT - 61 DIV - + COUNT( * ) * - NULLIF ( - COUNT( * ), 83 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4574
SELECT - 61 / - + COUNT ( * ) * - NULLIF ( - COUNT ( * ), 83 ) AS col1
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4575
SELECT ALL 84 DIV 22 col2
----
3

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL 84 / 22 col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT ALL ( + - COUNT( * ) ) + + 43 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL ( + - COUNT ( * ) ) + + 43 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4577
SELECT ALL - CAST( NULL AS SIGNED ) / - + 74 * - + 74 * + - 66 * + NULLIF ( - 32, 90 ) + - 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL - CAST ( NULL AS INTEGER ) / - + 74 * - + 74 * + - 66 * + NULLIF ( - 32, 90 ) + - 26 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4578
SELECT CAST( 97 AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-4578
SELECT CAST ( 97 AS INTEGER )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT - 7 * + - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-4579
SELECT - 7 * + - COUNT ( * )
----
7

query I rowsort
SELECT ( 28 ) AS col2
----
28

query I rowsort
SELECT ALL - 10 * 63
----
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-4582
SELECT DISTINCT - 39 DIV + 2 + - - 87 * - 53 * 5 * + 53
----
-1221934

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT - 39 / + 2 + - - 87 * - 53 * 5 * + 53
----
-1221934

query II rowsort
SELECT - 71 * - 15 * + 95 AS col0, 93 col1
----
101175
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4584
SELECT DISTINCT + MAX( ALL - ( 71 ) ) AS col2, 35 * - 82
----
-71
-2870

skipif mysql # not compatible
query II rowsort label-4584
SELECT DISTINCT + MAX ( ALL - ( 71 ) ) AS col2, 35 * - 82
----
-71
-2870

query I rowsort
SELECT + ( - 84 )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4586
SELECT ALL + CAST( NULL AS SIGNED ), ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4586
SELECT ALL + CAST ( NULL AS INTEGER ), ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL
NULL

query I rowsort
SELECT - - 80 * - + 62 + - - 14
----
-4946

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT ALL 66 * + SUM( + 36 ) * 23 - 69 + 51
----
54630

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL 66 * + SUM ( + 36 ) * 23 - 69 + 51
----
54630

query I rowsort
SELECT - 91 - + 53 + - ( - 94 ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT DISTINCT COUNT( * ) * - NULLIF ( + 88, 16 )
----
-88

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT COUNT ( * ) * - NULLIF ( + 88, 16 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT DISTINCT + NULLIF ( - - 5, 83 * - + 43 + + COUNT( * ) ) * 23 * + 10
----
1150

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT + NULLIF ( - - 5, 83 * - + 43 + + COUNT ( * ) ) * 23 * + 10
----
1150

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4592
SELECT DISTINCT + 72 AS col2, - 61 DIV COUNT( * ) col1
----
72
-61

skipif mysql # not compatible
query II rowsort label-4592
SELECT DISTINCT + 72 AS col2, - 61 / COUNT ( * ) col1
----
72
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4593
SELECT + - COUNT( CAST( + - 35 AS SIGNED ) ) * 70
----
-70

skipif mysql # not compatible
query I rowsort label-4593
SELECT + - COUNT ( CAST ( + - 35 AS INTEGER ) ) * 70
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4594
SELECT ALL - 73 * - - ( - CAST( + AVG ( 40 ) AS SIGNED ) ) AS col0
----
2920

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL - 73 * - - ( - CAST ( + AVG ( 40 ) AS INTEGER ) ) AS col0
----
2920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4595
SELECT + + 3 - - 69 + + COUNT( * ) DIV 6 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4595
SELECT + + 3 - - 69 + + COUNT ( * ) / 6 AS col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4596
SELECT - 93 DIV + 93 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4596
SELECT - 93 / + 93 AS col1
----
-1

query I rowsort
SELECT + 63 * + 11
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT ALL NULLIF ( + 20, - + COUNT( * ) * COUNT( * ) + 24 )
----
20

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL NULLIF ( + 20, - + COUNT ( * ) * COUNT ( * ) + 24 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT SUM( 61 )
----
61

skipif mysql # not compatible
query I rowsort label-4599
SELECT SUM ( 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT SUM( - 57 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-4600
SELECT SUM ( - 57 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT + 85 * + + CASE + COUNT( * ) WHEN - COUNT( * ) THEN + 3 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT + 85 * + + CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN + 3 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT ALL 97 * + COUNT( * ) * - 81 col2
----
-7857

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL 97 * + COUNT ( * ) * - 81 col2
----
-7857

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4603
SELECT DISTINCT 31 AS col0, + 1 + 53 * 35 DIV + NULLIF ( + 68, + + 98 * + - MAX( ALL + 7 ) ) col1, + 7 + + - 54 + - CASE NULLIF ( + 4, + 88 * + 97 + + CASE - - COUNT( * ) WHEN 31 THEN NULL ELSE + 67 END + COUNT( * ) + - - 10 + + 51 * - + 42 ) WHEN - COALESCE ( - - 62, - 68 ) * + + 94 THEN NULL ELSE - + 69 END
----
31
28
22

skipif mysql # not compatible
query III rowsort label-4603
SELECT DISTINCT 31 AS col0, + 1 + 53 * 35 / + NULLIF ( + 68, + + 98 * + - MAX ( ALL + 7 ) ) col1, + 7 + + - 54 + - CASE NULLIF ( + 4, + 88 * + 97 + + CASE - - COUNT ( * ) WHEN 31 THEN NULL ELSE + 67 END + COUNT ( * ) + - - 10 + + 51 * - + 42 ) WHEN - COALESCE ( - - 62, - 68 ) * + + 94 THEN NULL ELSE - + 69 END
----
31
28
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4604
SELECT ALL CAST( + - 49 AS SIGNED ) + + - 67 AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL CAST ( + - 49 AS INTEGER ) + + - 67 AS col2
----
-116

query I rowsort
SELECT DISTINCT 31 * + 94
----
2914

query II rowsort
SELECT DISTINCT 86, - 56 AS col1
----
86
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4607
SELECT 6 + - MAX( DISTINCT - - 63 ) - 74 * CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT 6 + - MAX ( DISTINCT - - 63 ) - 74 * CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4608
SELECT NULLIF ( + ( + - 35 ), + 50 * 92 * + 44 + 35 + + 71 * - 70 * + CAST( + - COUNT( * ) AS SIGNED ) ) + - 5 + + 86 + - 44 - + COALESCE ( CASE 13 WHEN - CASE + - 90 WHEN - 22 THEN NULL WHEN + ( + ( + + 34 ) ) THEN NULL WHEN ( 33 ) + 82 * - - 0 - 68 THEN 50 ELSE 98 END THEN COUNT( * ) ELSE - - 94 END, - COUNT( DISTINCT + 13 ), 27 + - COALESCE ( + MIN( - - 49 ), + - 98 ) + 88 ) + 72 + 85 + - 8 * + 0
----
65

skipif mysql # not compatible
query I rowsort label-4608
SELECT NULLIF ( + ( + - 35 ), + 50 * 92 * + 44 + 35 + + 71 * - 70 * + CAST ( + - COUNT ( * ) AS INTEGER ) ) + - 5 + + 86 + - 44 - + COALESCE ( CASE 13 WHEN - CASE + - 90 WHEN - 22 THEN NULL WHEN + ( + ( + + 34 ) ) THEN NULL WHEN ( 33 ) + 82 * - - 0 - 68 THEN 50 ELSE 98 END THEN COUNT ( * ) ELSE - - 94 END, - COUNT ( DISTINCT + 13 ), 27 + - COALESCE ( + MIN ( - - 49 ), + - 98 ) + 88 ) + 72 + 85 + - 8 * + 0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4609
SELECT ALL CAST( NULL AS SIGNED ) + - - 49 + - + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL CAST ( NULL AS INTEGER ) + - - 49 + - + 41 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT ( 61 ) + - COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-4610
SELECT ( 61 ) + - COUNT ( * ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT COUNT( * ) + 13 + 86 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-4611
SELECT COUNT ( * ) + 13 + 86 AS col2
----
100

query I rowsort
SELECT 67 * 16
----
1072

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4613
SELECT DISTINCT COUNT( * ) + + + 65, + 34 DIV 51 + 82 AS col2
----
66
82

skipif mysql # not compatible
query II rowsort label-4613
SELECT DISTINCT COUNT ( * ) + + + 65, + 34 / 51 + 82 AS col2
----
66
82

onlyif mysql # aggregate syntax: 
query II rowsort label-4614
SELECT ALL 1 + 88 AS col0, ( + + MAX( DISTINCT + 88 ) ) * + - 95 * - - ( - 49 ) + + - 11 * 39 AS col2
----
89
409211

skipif mysql # not compatible
query II rowsort label-4614
SELECT ALL 1 + 88 AS col0, ( + + MAX ( DISTINCT + 88 ) ) * + - 95 * - - ( - 49 ) + + - 11 * 39 AS col2
----
89
409211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4615
SELECT + 54 * + 18 + + NULLIF ( - 67, + - CASE + ( + 70 ) WHEN + 12 THEN 93 - - 69 ELSE NULL END * + - 35 * ( 15 ) + CAST( + - 25 AS DECIMAL ) ) + 63 * - + SUM( - CAST( NULL AS SIGNED ) ) + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4615
SELECT + 54 * + 18 + + NULLIF ( - 67, + - CASE + ( + 70 ) WHEN + 12 THEN 93 - - 69 ELSE NULL END * + - 35 * ( 15 ) + CAST ( + - 25 AS REAL ) ) + 63 * - + SUM ( - CAST ( NULL AS INTEGER ) ) + + - COUNT ( * )
----
NULL

query I rowsort
SELECT ( 20 ) * - 36
----
-720

onlyif mysql # aggregate syntax: 
query II rowsort label-4617
SELECT DISTINCT - 92 AS col2, COUNT( * ) * 11
----
-92
11

skipif mysql # not compatible
query II rowsort label-4617
SELECT DISTINCT - 92 AS col2, COUNT ( * ) * 11
----
-92
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4618
SELECT DISTINCT - - COUNT( * ) col2, - 72 * + + 97
----
1
-6984

skipif mysql # not compatible
query II rowsort label-4618
SELECT DISTINCT - - COUNT ( * ) col2, - 72 * + + 97
----
1
-6984

query II rowsort
SELECT - 9 + - 2 AS col1, 71 * - 5 * + 12 AS col2
----
-11
-4260

query I rowsort
SELECT 97 * 37 * + 54
----
193806

query I rowsort
SELECT - 18 * + 56 AS col0
----
-1008

query I rowsort
SELECT - 62 * - 55 * + - 51
----
-173910

query II rowsort
SELECT - 69 AS col0, 31 + 46 AS col2
----
-69
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT - 75 + 95 + - COUNT( * ) * - 72 * 73 * 21
----
110396

skipif mysql # not compatible
query I rowsort label-4624
SELECT - 75 + 95 + - COUNT ( * ) * - 72 * 73 * 21
----
110396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4625
SELECT ALL + CASE - COUNT( * ) WHEN 92 * + + MAX( 20 ) THEN 60 ELSE - 59 END - 72 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL + CASE - COUNT ( * ) WHEN 92 * + + MAX ( 20 ) THEN 60 ELSE - 59 END - 72 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT ALL + MAX( - - 22 ) - - COUNT( * ) col1
----
23

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL + MAX ( - - 22 ) - - COUNT ( * ) col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4627
SELECT + + COUNT( * ), + ( 53 ) - - 40 DIV + 86 AS col0
----
1
53

skipif mysql # not compatible
query II rowsort label-4627
SELECT + + COUNT ( * ), + ( 53 ) - - 40 / + 86 AS col0
----
1
53

query I rowsort
SELECT ALL - ( - - 57 )
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4629
SELECT + NULLIF ( + + 84, - - 80 / + 27 ) * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4629
SELECT + NULLIF ( + + 84, - - 80 / + 27 ) * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT + COALESCE ( + 43, - + MIN( - 54 ) )
----
43

skipif mysql # not compatible
query I rowsort label-4630
SELECT + COALESCE ( + 43, - + MIN ( - 54 ) )
----
43

onlyif mysql # DIV for integer division: 
query II rowsort label-4631
SELECT - 61 * 55, 25 DIV + 1 AS col2
----
-3355
25

skipif mysql # not compatible
query II rowsort label-4631
SELECT - 61 * 55, 25 / + 1 AS col2
----
-3355
25

onlyif mysql # aggregate syntax: 
query II rowsort label-4632
SELECT - + COUNT( * ) AS col1, COUNT( ALL + 77 ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-4632
SELECT - + COUNT ( * ) AS col1, COUNT ( ALL + 77 ) AS col0
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT ALL SUM( + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL SUM ( + 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT - 38 * 90 * + SUM( DISTINCT 49 ) + - + 87 - - - 94 * - 49 col2
----
-163061

skipif mysql # not compatible
query I rowsort label-4634
SELECT - 38 * 90 * + SUM ( DISTINCT 49 ) + - + 87 - - - 94 * - 49 col2
----
-163061

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4635
SELECT ALL + COUNT( * ) DIV - - 75 * - 82
----
0

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL + COUNT ( * ) / - - 75 * - 82
----
0

query I rowsort
SELECT 16 + - 26 + + - 94 * + - 9 AS col2
----
836

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT ALL ( + 73 ) + - - 76 - + 92 * + + 55 * COUNT( * ) * - COALESCE ( MAX( ALL + - COALESCE ( - 24, + 83 - + + 11 ) ), 68 ) + + + 27 AS col0
----
121616

skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL ( + 73 ) + - - 76 - + 92 * + + 55 * COUNT ( * ) * - COALESCE ( MAX ( ALL + - COALESCE ( - 24, + 83 - + + 11 ) ), 68 ) + + + 27 AS col0
----
121616

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT ALL + CASE - + 60 WHEN + + 19 THEN + CASE 86 WHEN 84 THEN + 40 * - NULLIF ( + COUNT( * ), 81 ) ELSE - 48 + MIN( + 25 ) END ELSE NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL + CASE - + 60 WHEN + + 19 THEN + CASE 86 WHEN 84 THEN + 40 * - NULLIF ( + COUNT ( * ), 81 ) ELSE - 48 + MIN ( + 25 ) END ELSE NULL END + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4639
SELECT 51 + - COUNT( * ) col0, - MAX( + + COALESCE ( - 80, + - 3 ) ) * + 68 + - ( + 23 ) DIV + 89
----
50
5440

skipif mysql # not compatible
query II rowsort label-4639
SELECT 51 + - COUNT ( * ) col0, - MAX ( + + COALESCE ( - 80, + - 3 ) ) * + 68 + - ( + 23 ) / + 89
----
50
5440

query I rowsort
SELECT ( + - 37 ) + + - 27 AS col0
----
-64

query I rowsort
SELECT ALL 83 - 56 + + 36 col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4642
SELECT DISTINCT 42 * + COUNT( * ) AS col1, ( + + 57 ) * - CAST( - 76 AS SIGNED ) * 92 + + CAST( 88 AS SIGNED )
----
42
398632

skipif mysql # not compatible
query II rowsort label-4642
SELECT DISTINCT 42 * + COUNT ( * ) AS col1, ( + + 57 ) * - CAST ( - 76 AS INTEGER ) * 92 + + CAST ( 88 AS INTEGER )
----
42
398632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4643
SELECT CASE - - CASE COUNT( * ) WHEN - 6 THEN - 89 * + 12 + + 5 WHEN - 81 THEN NULL ELSE NULL END WHEN COUNT( * ) / + + 25 THEN - 27 * - 0 + + - 22 + 27 + 62 / - NULLIF ( + 88, + + 92 ) * - + CAST( NULL AS SIGNED ) WHEN - 46 * - + ( + + 21 ) THEN NULL ELSE NULL END * + 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4643
SELECT CASE - - CASE COUNT ( * ) WHEN - 6 THEN - 89 * + 12 + + 5 WHEN - 81 THEN NULL ELSE NULL END WHEN COUNT ( * ) / + + 25 THEN - 27 * - 0 + + - 22 + 27 + 62 / - NULLIF ( + 88, + + 92 ) * - + CAST ( NULL AS INTEGER ) WHEN - 46 * - + ( + + 21 ) THEN NULL ELSE NULL END * + 40 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4644
SELECT DISTINCT 88 * + + 35 * + 0 AS col1, - COUNT( DISTINCT - 28 )
----
0
-1

skipif mysql # not compatible
query II rowsort label-4644
SELECT DISTINCT 88 * + + 35 * + 0 AS col1, - COUNT ( DISTINCT - 28 )
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT ALL 44 * - 23 * - 72 - - 29 + - COUNT( * ) AS col0
----
72892

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL 44 * - 23 * - 72 - - 29 + - COUNT ( * ) AS col0
----
72892

query I rowsort
SELECT 12 * + 17 + + ( - - 51 )
----
255

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4647
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + - 30 * + - NULLIF ( - 70, 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT DISTINCT - CAST ( NULL AS REAL ) * + - 30 * + - NULLIF ( - 70, 83 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4648
SELECT + MIN( DISTINCT - 61 ) AS col0, 45
----
-61
45

skipif mysql # not compatible
query II rowsort label-4648
SELECT + MIN ( DISTINCT - 61 ) AS col0, 45
----
-61
45

query I rowsort
SELECT - 82 * + + 65
----
-5330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4650
SELECT - 48 DIV + ( COUNT( * ) ) - + + 89
----
-137

skipif mysql # not compatible
query I rowsort label-4650
SELECT - 48 / + ( COUNT ( * ) ) - + + 89
----
-137

query I rowsort
SELECT 60 * + 64 - - 20 AS col1
----
3860

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT 45 * - + 3 + + 92 * 54 + - + 71 + + 38 + 64 * + COUNT( - + 16 )
----
4864

skipif mysql # not compatible
query I rowsort label-4652
SELECT 45 * - + 3 + + 92 * 54 + - + 71 + + 38 + 64 * + COUNT ( - + 16 )
----
4864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4653
SELECT 19 * + 87 / 52 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT 19 * + 87 / 52 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT ALL - + 94 + - CASE 35 WHEN 76 * - SUM( DISTINCT - - 89 ) + - 92 THEN - COUNT( * ) + - 47 WHEN + 56 THEN NULL ELSE - ( 40 ) END
----
-54

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL - + 94 + - CASE 35 WHEN 76 * - SUM ( DISTINCT - - 89 ) + - 92 THEN - COUNT ( * ) + - 47 WHEN + 56 THEN NULL ELSE - ( 40 ) END
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4655
SELECT + 36 * + 76 + - 77 * AVG ( DISTINCT CAST( NULL AS SIGNED ) ) / - CASE - 18 WHEN + ( - - ( + COUNT( - + 27 ) ) ) * 57 * - 93 THEN NULL WHEN - 32 - 94 THEN 19 END - - - 77 + - + 35 * - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT + 36 * + 76 + - 77 * AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) / - CASE - 18 WHEN + ( - - ( + COUNT ( - + 27 ) ) ) * 57 * - 93 THEN NULL WHEN - 32 - 94 THEN 19 END - - - 77 + - + 35 * - 18
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4656
SELECT ALL + COUNT( * ) + + 16 AS col0, + 10
----
17
10

skipif mysql # not compatible
query II rowsort label-4656
SELECT ALL + COUNT ( * ) + + 16 AS col0, + 10
----
17
10

query I rowsort
SELECT - NULLIF ( - - 58, 27 + - 10 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT ALL COUNT( - - 64 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL COUNT ( - - 64 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4659
SELECT - 80 AS col1, COUNT( * ) AS col0
----
-80
1

skipif mysql # not compatible
query II rowsort label-4659
SELECT - 80 AS col1, COUNT ( * ) AS col0
----
-80
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT DISTINCT COUNT( DISTINCT + - 74 )
----
1

skipif mysql # not compatible
query I rowsort label-4660
SELECT DISTINCT COUNT ( DISTINCT + - 74 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT ALL COALESCE ( - 19, - 24 + + 12, + + MIN( ALL - 63 ), + 54 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL COALESCE ( - 19, - 24 + + 12, + + MIN ( ALL - 63 ), + 54 ) AS col1
----
-19

query II rowsort
SELECT - 38 AS col0, - 96 col2
----
-38
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT ALL SUM( DISTINCT - 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL SUM ( DISTINCT - 83 ) AS col2
----
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4664
SELECT ALL + 51 - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL + 51 - + CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT - 49 AS col1, - 7 * 40 AS col2
----
-49
-280

query I rowsort
SELECT - 48 * - - ( 10 )
----
-480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4667
SELECT DISTINCT CASE + 71 WHEN COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN COUNT( * ) * + COALESCE ( 34, - 23 - - CASE + + 88 WHEN + 38 + - - CASE - + 77 WHEN - ( + - 91 ) + MAX( - + 76 ) / 1 / 34 * - COUNT( * ) THEN NULL ELSE - - 82 - - AVG ( DISTINCT - 5 ) * - CAST( + CAST( 20 AS SIGNED ) AS SIGNED ) END THEN 18 END ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT CASE + 71 WHEN COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN COUNT ( * ) * + COALESCE ( 34, - 23 - - CASE + + 88 WHEN + 38 + - - CASE - + 77 WHEN - ( + - 91 ) + MAX ( - + 76 ) / 1 / 34 * - COUNT ( * ) THEN NULL ELSE - - 82 - - AVG ( DISTINCT - 5 ) * - CAST ( + CAST ( 20 AS INTEGER ) AS INTEGER ) END THEN 18 END ) END AS col0
----
NULL

query I rowsort
SELECT - 36 + - - 69
----
33

query II rowsort
SELECT 51 AS col0, 63 * + + 70 AS col0
----
51
4410

query I rowsort
SELECT ALL + 88 - - 91 col1
----
179

query I rowsort
SELECT - 53 * + 16
----
-848

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT - 12 + - 21 + + 61 * - - COUNT( * ) * 78 * 70 * + 32 col0
----
10657887

skipif mysql # not compatible
query I rowsort label-4672
SELECT - 12 + - 21 + + 61 * - - COUNT ( * ) * 78 * 70 * + 32 col0
----
10657887

onlyif mysql # aggregate syntax: 
query II rowsort label-4673
SELECT - COUNT( * ) AS col1, 50 * - + COUNT( * ) AS col2
----
-1
-50

skipif mysql # not compatible
query II rowsort label-4673
SELECT - COUNT ( * ) AS col1, 50 * - + COUNT ( * ) AS col2
----
-1
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-4674
SELECT + 35 DIV - 88 col2
----
0

skipif mysql # not compatible
query I rowsort label-4674
SELECT + 35 / - 88 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4675
SELECT DISTINCT ( + CASE - 98 WHEN 93 * + + 27 THEN 65 WHEN 39 + + + 19 * CAST( + 35 AS SIGNED ) + + MIN( ALL 70 ) THEN + - 41 END ), 9 col2
----
NULL
9

skipif mysql # not compatible
query II rowsort label-4675
SELECT DISTINCT ( + CASE - 98 WHEN 93 * + + 27 THEN 65 WHEN 39 + + + 19 * CAST ( + 35 AS INTEGER ) + + MIN ( ALL 70 ) THEN + - 41 END ), 9 col2
----
NULL
9

query I rowsort
SELECT - - 7 + ( + + 53 ) AS col0
----
60

query I rowsort
SELECT + 13 - - 40 + + 15 + 84 * - 28 AS col2
----
-2284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4678
SELECT ALL + - CASE - 31 WHEN NULLIF ( + 83, + 64 + 70 - + COALESCE ( - + COUNT( * ), COALESCE ( 13, + - 36, 29 * + + ( + 30 ) ) + + + MAX( + 92 ) + - CAST( - 81 AS SIGNED ) ) * 2 ) + - - NULLIF ( + + 64, + 48 ) * + - 12 THEN NULL WHEN - 3 THEN - 12 * + - CAST( NULL AS SIGNED ) END AS col1, 43
----
NULL
43

skipif mysql # not compatible
query II rowsort label-4678
SELECT ALL + - CASE - 31 WHEN NULLIF ( + 83, + 64 + 70 - + COALESCE ( - + COUNT ( * ), COALESCE ( 13, + - 36, 29 * + + ( + 30 ) ) + + + MAX ( + 92 ) + - CAST ( - 81 AS INTEGER ) ) * 2 ) + - - NULLIF ( + + 64, + 48 ) * + - 12 THEN NULL WHEN - 3 THEN - 12 * + - CAST ( NULL AS INTEGER ) END AS col1, 43
----
NULL
43

query I rowsort
SELECT DISTINCT + - 15 col1
----
-15

query I rowsort
SELECT - COALESCE ( 67, + 90 ) * COALESCE ( + 92, - 29 * - - 74 + - 33 ) * 47 col1
----
-289708

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4681
SELECT - CAST( + + NULLIF ( + + 85, - 74 ) AS SIGNED ) AS col1, + 3
----
-85
3

skipif mysql # not compatible
query II rowsort label-4681
SELECT - CAST ( + + NULLIF ( + + 85, - 74 ) AS INTEGER ) AS col1, + 3
----
-85
3

query I rowsort
SELECT 16 * - + 76 + 54 * - - 93 col0
----
3806

query I rowsort
SELECT ALL - + 75 * - 3 + - 53 * - 67 * + ( 70 ) + 28 + 35 AS col2
----
248858

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4684
SELECT CAST( NULL AS DECIMAL ) AS col0, 87 DIV - 11 AS col0
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-4684
SELECT CAST ( NULL AS REAL ) AS col0, 87 / - 11 AS col0
----
NULL
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4685
SELECT DISTINCT + - COALESCE ( + - 68, - 33 DIV + AVG ( DISTINCT 15 ) + 82 + - 45 + 27 * 43 ) * - 34 + 86 AS col2
----
-2226

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT + - COALESCE ( + - 68, - 33 / + AVG ( DISTINCT 15 ) + 82 + - 45 + 27 * 43 ) * - 34 + 86 AS col2
----
-2226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4686
SELECT + MIN( DISTINCT 86 ) * - 9 DIV COUNT( * ) * - 98
----
75852

skipif mysql # not compatible
query I rowsort label-4686
SELECT + MIN ( DISTINCT 86 ) * - 9 / COUNT ( * ) * - 98
----
75852

query I rowsort
SELECT + 14 + 9 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT NULLIF ( - ( + ( + + 34 ) ), + COUNT( * ) ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-4688
SELECT NULLIF ( - ( + ( + + 34 ) ), + COUNT ( * ) ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT ALL COUNT( 77 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL COUNT ( 77 ) AS col0
----
1

query I rowsort
SELECT + 20 + 44
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT MAX( ALL - 82 ) * + 92 + - 82 + + COUNT( * ) col1
----
-7625

skipif mysql # not compatible
query I rowsort label-4691
SELECT MAX ( ALL - 82 ) * + 92 + - 82 + + COUNT ( * ) col1
----
-7625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4692
SELECT ALL CAST( + 92 AS SIGNED ) * - 24 + - + 66 + 79 AS col1
----
-2195

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL CAST ( + 92 AS INTEGER ) * - 24 + - + 66 + 79 AS col1
----
-2195

query I rowsort
SELECT DISTINCT 72 - + 82 AS col0
----
-10

query I rowsort
SELECT - 94 + - 34 * - 67 + 9 AS col0
----
2193

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT ALL ( + - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL ( + - COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4696
SELECT DISTINCT ( + 90 ) AS col1, - COUNT( * )
----
90
-1

skipif mysql # not compatible
query II rowsort label-4696
SELECT DISTINCT ( + 90 ) AS col1, - COUNT ( * )
----
90
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4697
SELECT ALL - - CAST( NULL AS SIGNED ) * 0 * SUM( + 7 ) col1, 19 AS col1
----
NULL
19

skipif mysql # not compatible
query II rowsort label-4697
SELECT ALL - - CAST ( NULL AS INTEGER ) * 0 * SUM ( + 7 ) col1, 19 AS col1
----
NULL
19

query I rowsort
SELECT - ( - 32 ) * - 90 AS col1
----
-2880

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4699
SELECT ALL - - 28 DIV + ( - + 56 ) + + CAST( 65 AS SIGNED ) + + - 4 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL - - 28 / + ( - + 56 ) + + CAST ( 65 AS INTEGER ) + + - 4 AS col1
----
61

query I rowsort
SELECT ALL - 0 + ( - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT CASE - COUNT( * ) WHEN - - 91 / - ( - 52 ) + MIN( DISTINCT - 50 ) THEN NULL ELSE - ( ( - + 86 ) ) END
----
86

skipif mysql # not compatible
query I rowsort label-4701
SELECT CASE - COUNT ( * ) WHEN - - 91 / - ( - 52 ) + MIN ( DISTINCT - 50 ) THEN NULL ELSE - ( ( - + 86 ) ) END
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT - - 20 * - CAST( 9 AS SIGNED ) col2
----
-180

skipif mysql # not compatible
query I rowsort label-4702
SELECT - - 20 * - CAST ( 9 AS INTEGER ) col2
----
-180

query I rowsort
SELECT - + 51 * - - 26
----
-1326

onlyif mysql # DIV for integer division: 
query I rowsort label-4704
SELECT + - 70 DIV + - 93
----
0

skipif mysql # not compatible
query I rowsort label-4704
SELECT + - 70 / + - 93
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4705
SELECT ALL + + 20 DIV - + 14 + - 28
----
-29

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL + + 20 / - + 14 + - 28
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-4706
SELECT DISTINCT - 22 DIV - 74 + + 38 DIV 48 + 99 + - 16 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT - 22 / - 74 + + 38 / 48 + 99 + - 16 AS col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4707
SELECT ALL + 4 + + 25 * + + COUNT( * ) + - 74 * + 6 * + NULLIF ( + CASE 37 WHEN + - 47 + - + 60 THEN 42 ELSE NULL END, - 49 + + - COUNT( * ) + 84 * - 70 * - CAST( + 52 AS SIGNED ) * 50 - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL + 4 + + 25 * + + COUNT ( * ) + - 74 * + 6 * + NULLIF ( + CASE 37 WHEN + - 47 + - + 60 THEN 42 ELSE NULL END, - 49 + + - COUNT ( * ) + 84 * - 70 * - CAST ( + 52 AS INTEGER ) * 50 - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4708
SELECT ( - 56 ) AS col0, + 90 * - COUNT( * ) * + 67
----
-56
-6030

skipif mysql # not compatible
query II rowsort label-4708
SELECT ( - 56 ) AS col0, + 90 * - COUNT ( * ) * + 67
----
-56
-6030

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT ALL - 24 + - - CASE - 6 WHEN COALESCE ( 64, - 76 * + ( 73 ) + - + COUNT( ALL - + 83 ) + 29 / + AVG ( DISTINCT + 38 ) ) THEN + 17 * SUM( ALL - + 0 ) + + 3 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL - 24 + - - CASE - 6 WHEN COALESCE ( 64, - 76 * + ( 73 ) + - + COUNT ( ALL - + 83 ) + 29 / + AVG ( DISTINCT + 38 ) ) THEN + 17 * SUM ( ALL - + 0 ) + + 3 ELSE NULL END
----
NULL

query I rowsort
SELECT 59 * 83 * 8
----
39176

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT 89 + - 83 + + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-4711
SELECT 89 + - 83 + + COUNT ( * )
----
7

query II rowsort
SELECT + ( + + 18 ) AS col0, + 75
----
18
75

query I rowsort
SELECT 25 * + 60
----
1500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4714
SELECT ALL - CAST( + + 40 AS SIGNED ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL - CAST ( + + 40 AS INTEGER ) AS col2
----
-40

query I rowsort
SELECT 51 * + + 28
----
1428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4716
SELECT 40 * - 36 * - CAST( - 30 AS SIGNED )
----
-43200

skipif mysql # not compatible
query I rowsort label-4716
SELECT 40 * - 36 * - CAST ( - 30 AS INTEGER )
----
-43200

onlyif mysql # DIV for integer division: 
query I rowsort label-4717
SELECT DISTINCT 66 DIV 56
----
1

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT 66 / 56
----
1

query I rowsort
SELECT 24 * + 54 * - ( - - 87 ) - - - 96
----
-112848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4719
SELECT 69 + CAST( - CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) + + 78
----
146

skipif mysql # not compatible
query I rowsort label-4719
SELECT 69 + CAST ( - CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) + + 78
----
146

query II rowsort
SELECT ALL 8, 22 AS col2
----
8
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT DISTINCT - 16 + 22 + - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT - 16 + 22 + - COUNT ( * )
----
5

query I rowsort
SELECT DISTINCT 23 * 15
----
345

query I rowsort
SELECT ALL 58 * 76
----
4408

query I rowsort
SELECT ( 4 ) + - 51 * + 69
----
-3515

query I rowsort
SELECT DISTINCT + 53 + + 97
----
150

query I rowsort
SELECT ALL - 98 + + 61
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4727
SELECT 0 + - 97 DIV 61 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4727
SELECT 0 + - 97 / 61 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4728
SELECT ALL 75 + 32 DIV 14
----
77

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL 75 + 32 / 14
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4729
SELECT - COUNT( DISTINCT 41 ) DIV + COALESCE ( COUNT( * ) - ( + CAST( - 32 AS SIGNED ) ), - NULLIF ( 63, - 17 ) * + 40 ) + + 10 * + 51
----
510

skipif mysql # not compatible
query I rowsort label-4729
SELECT - COUNT ( DISTINCT 41 ) / + COALESCE ( COUNT ( * ) - ( + CAST ( - 32 AS INTEGER ) ), - NULLIF ( 63, - 17 ) * + 40 ) + + 10 * + 51
----
510

query I rowsort
SELECT ALL + 36 + - 25
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT DISTINCT - 81 + COUNT( ALL + ( - 27 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT - 81 + COUNT ( ALL + ( - 27 ) )
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4732
SELECT - 4 DIV - NULLIF ( - 46, 51 ) + + 78
----
78

skipif mysql # not compatible
query I rowsort label-4732
SELECT - 4 / - NULLIF ( - 46, 51 ) + + 78
----
78

query I rowsort
SELECT 45 + 5 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT DISTINCT - SUM( ALL 5 ) * 24 AS col1
----
-120

skipif mysql # not compatible
query I rowsort label-4734
SELECT DISTINCT - SUM ( ALL 5 ) * 24 AS col1
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-4735
SELECT 25 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-4735
SELECT 25 / 97
----
0

query I rowsort
SELECT 35 * - 53 AS col2
----
-1855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4737
SELECT DISTINCT - CASE + 45 WHEN + 3 THEN NULL ELSE + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT - CASE + 45 WHEN + 3 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT DISTINCT - 91 * + 90
----
-8190

query I rowsort
SELECT 50 * 4 col1
----
200

query I rowsort
SELECT ALL 25 * 42
----
1050

query I rowsort
SELECT ALL + 29 + 93 * 27 AS col2
----
2540

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT DISTINCT COUNT( * ) + + 49 * 71 AS col0
----
3480

skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT COUNT ( * ) + + 49 * 71 AS col0
----
3480

query I rowsort
SELECT ALL 71 + 33
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-4744
SELECT 91 + - 86 DIV + 24 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4744
SELECT 91 + - 86 / + 24 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT - COUNT( + 71 )
----
-1

skipif mysql # not compatible
query I rowsort label-4745
SELECT - COUNT ( + 71 )
----
-1

query I rowsort
SELECT ALL 41 + - 61 AS col2
----
-20

query I rowsort
SELECT 1 + ( + 97 )
----
98

query I rowsort
SELECT 4 * + 85
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT - 60 + - COUNT( * ) * ( 84 + + 45 ) col1
----
-189

skipif mysql # not compatible
query I rowsort label-4749
SELECT - 60 + - COUNT ( * ) * ( 84 + + 45 ) col1
----
-189

query I rowsort
SELECT - ( + 58 ) AS col0
----
-58

query I rowsort
SELECT ALL + 98 + - 8 AS col2
----
90

query I rowsort
SELECT ( - 69 ) * 51 AS col1
----
-3519

query I rowsort
SELECT DISTINCT 91 + 84
----
175

query I rowsort
SELECT ALL 65 * 33 AS col1
----
2145

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT + MIN( DISTINCT + 74 ) * + 16 col1
----
1184

skipif mysql # not compatible
query I rowsort label-4755
SELECT + MIN ( DISTINCT + 74 ) * + 16 col1
----
1184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4756
SELECT ALL CAST( NULL AS SIGNED ) * - MAX( DISTINCT 57 * - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL CAST ( NULL AS INTEGER ) * - MAX ( DISTINCT 57 * - 87 )
----
NULL

query I rowsort
SELECT DISTINCT - ( - 94 )
----
94

query I rowsort
SELECT + - 91 * - 40 AS col1
----
3640

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4759
SELECT - - CAST( - CASE MIN( + 23 ) WHEN - 60 + 94 THEN + 99 / 68 END AS DECIMAL ) * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4759
SELECT - - CAST ( - CASE MIN ( + 23 ) WHEN - 60 + 94 THEN + 99 / 68 END AS REAL ) * 13
----
NULL

query I rowsort
SELECT + 85 * 25 - 72
----
2053

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT + MAX( + 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-4761
SELECT + MAX ( + 92 ) AS col0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4762
SELECT ALL + 32 DIV + 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL + 32 / + 71 AS col1
----
0

query I rowsort
SELECT + 97 * - - ( 62 ) AS col1
----
6014

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4764
SELECT - COUNT( * ) * + ( 47 ) DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-4764
SELECT - COUNT ( * ) * + ( 47 ) / 71
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT ALL + 5 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL + 5 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4766
SELECT - COALESCE ( - 67, 59 ) DIV 52 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4766
SELECT - COALESCE ( - 67, 59 ) / 52 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4767
SELECT ALL + NULLIF ( + + ( 64 ), + 59 ) DIV + 21
----
3

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL + NULLIF ( + + ( 64 ), + 59 ) / + 21
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4768
SELECT 42 DIV ( 47 ) + 29
----
29

skipif mysql # not compatible
query I rowsort label-4768
SELECT 42 / ( 47 ) + 29
----
29

query I rowsort
SELECT 6 * 93 - 48 AS col2
----
510

query I rowsort
SELECT DISTINCT + 15 * 62 col0
----
930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4771
SELECT - COALESCE ( + 86, CAST( ( COUNT( * ) ) AS SIGNED ) ) DIV 41
----
-2

skipif mysql # not compatible
query I rowsort label-4771
SELECT - COALESCE ( + 86, CAST ( ( COUNT ( * ) ) AS INTEGER ) ) / 41
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4772
SELECT - CAST( NULL AS SIGNED ) / + COALESCE ( 98, + 41 ) * + ( - 47 * 59 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT - CAST ( NULL AS INTEGER ) / + COALESCE ( 98, + 41 ) * + ( - 47 * 59 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 38 * 93 * + 83 + 0 * 64
----
293322

query I rowsort
SELECT DISTINCT 17 * - 80 * 58 + 11
----
-78869

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4775
SELECT ALL + COUNT( ALL - 16 ) DIV 25
----
0

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL + COUNT ( ALL - 16 ) / 25
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4776
SELECT - CAST( - 70 AS SIGNED ) DIV 46
----
1

skipif mysql # not compatible
query I rowsort label-4776
SELECT - CAST ( - 70 AS INTEGER ) / 46
----
1

query I rowsort
SELECT ALL 92 * 88 + - 17 * - 3 AS col2
----
8147

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT ALL + COUNT( + 84 ) * 62 + 33 col1
----
95

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL + COUNT ( + 84 ) * 62 + 33 col1
----
95

query I rowsort
SELECT DISTINCT 4 * 58 + 9
----
241

query I rowsort
SELECT - COALESCE ( + 97, - 28 )
----
-97

query I rowsort
SELECT - - ( + 11 ) AS col1
----
11

query I rowsort
SELECT DISTINCT + - 66 * - + 58 + 4
----
3832

query I rowsort
SELECT ALL 77 - + 4 AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4784
SELECT - 90 + + + CAST( + 77 AS SIGNED )
----
-13

skipif mysql # not compatible
query I rowsort label-4784
SELECT - 90 + + + CAST ( + 77 AS INTEGER )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT + + COUNT( * ) - - - ( - 90 ) * 14 AS col0
----
1261

skipif mysql # not compatible
query I rowsort label-4785
SELECT + + COUNT ( * ) - - - ( - 90 ) * 14 AS col0
----
1261

query I rowsort
SELECT ALL - 25 - + 78 AS col1
----
-103

query I rowsort
SELECT - - ( - 28 ) AS col1
----
-28

query I rowsort
SELECT + - 45 + + 41 AS col0
----
-4

query I rowsort
SELECT + 96 * 83 col2
----
7968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4790
SELECT + - 81 * + 34 * COALESCE ( - 64 * 54, + NULLIF ( + CAST( COUNT( * ) AS SIGNED ), + 53 + ( ( - 72 ) ) ), 1 )
----
9517824

skipif mysql # not compatible
query I rowsort label-4790
SELECT + - 81 * + 34 * COALESCE ( - 64 * 54, + NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), + 53 + ( ( - 72 ) ) ), 1 )
----
9517824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4791
SELECT ALL - - 49 DIV COUNT( * ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL - - 49 / COUNT ( * ) AS col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4792
SELECT + 53 + + + 19 DIV COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4792
SELECT + 53 + + + 19 / COUNT ( * ) AS col2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4793
SELECT 46 DIV - 71 + 49 col0
----
49

skipif mysql # not compatible
query I rowsort label-4793
SELECT 46 / - 71 + 49 col0
----
49

query I rowsort
SELECT + NULLIF ( 13, + + 67 * 14 )
----
13

query II rowsort
SELECT DISTINCT + 2 AS col1, - 74 col0
----
2
-74

query I rowsort
SELECT + ( - 45 ) * - 56
----
2520

onlyif mysql # aggregate syntax: 
query II rowsort label-4797
SELECT ALL + 15, COUNT( * ) * - 61 + - 39 AS col0
----
15
-100

skipif mysql # not compatible
query II rowsort label-4797
SELECT ALL + 15, COUNT ( * ) * - 61 + - 39 AS col0
----
15
-100

query I rowsort
SELECT + ( 92 ) col2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4799
SELECT + 85 AS col0, + CAST( NULL AS SIGNED ) + - 59 + - 25 / ( + COALESCE ( - 34, - 57 * - 54 ) )
----
85
NULL

skipif mysql # not compatible
query II rowsort label-4799
SELECT + 85 AS col0, + CAST ( NULL AS INTEGER ) + - 59 + - 25 / ( + COALESCE ( - 34, - 57 * - 54 ) )
----
85
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4800
SELECT ALL 20 DIV - - 58 + 36 - 13 * COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL 20 / - - 58 + 36 - 13 * COUNT ( * )
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4801
SELECT DISTINCT 45 DIV MIN( ALL - 46 ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT 45 / MIN ( ALL - 46 ) + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4802
SELECT DISTINCT MIN( ALL - 69 ) DIV + 34 + 2
----
0

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT MIN ( ALL - 69 ) / + 34 + 2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4803
SELECT + CAST( NULL AS SIGNED ) * - - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4803
SELECT + CAST ( NULL AS INTEGER ) * - - 85 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4804
SELECT ALL 19 DIV + + COUNT( * ) * - COUNT( * ) + - COUNT( - 63 + + 39 * + ( 30 + 14 * + 83 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL 19 / + + COUNT ( * ) * - COUNT ( * ) + - COUNT ( - 63 + + 39 * + ( 30 + 14 * + 83 ) )
----
-20

query II rowsort
SELECT DISTINCT + 17, ( - 18 ) AS col2
----
17
-18

query I rowsort
SELECT ALL - 39 * - COALESCE ( - + 84, + 90 * + 40 ) * + 49 + - 0 AS col0
----
-160524

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT DISTINCT - CASE + + 79 WHEN - 72 / 76 THEN 56 + + 62 WHEN + COUNT( * ) THEN + COALESCE ( 50, 29 * 6 ) / COALESCE ( 68, + 31 ) + - 16 END * ( - 58 * 89 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT - CASE + + 79 WHEN - 72 / 76 THEN 56 + + 62 WHEN + COUNT ( * ) THEN + COALESCE ( 50, 29 * 6 ) / COALESCE ( 68, + 31 ) + - 16 END * ( - 58 * 89 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT + 75 * + COALESCE ( MAX( 49 ), 60 * - 10, + SUM( - 67 ) ) + - 59
----
3616

skipif mysql # not compatible
query I rowsort label-4808
SELECT + 75 * + COALESCE ( MAX ( 49 ), 60 * - 10, + SUM ( - 67 ) ) + - 59
----
3616

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT - COUNT( ( 57 ) ) * 23 + + ( - COUNT( * ) + - 11 )
----
-35

skipif mysql # not compatible
query I rowsort label-4809
SELECT - COUNT ( ( 57 ) ) * 23 + + ( - COUNT ( * ) + - 11 )
----
-35

query I rowsort
SELECT DISTINCT 0 * + COALESCE ( + - 44, + 71 ) + + 81 AS col0
----
81

query I rowsort
SELECT ( - 69 ) AS col2
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4812
SELECT - 30 DIV NULLIF ( + + 10, + 31 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4812
SELECT - 30 / NULLIF ( + + 10, + 31 ) AS col2
----
-3

query I rowsort
SELECT ALL 6 * 29 + + - 19 + + 22 * 72 * 64
----
101531

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4814
SELECT ALL + COALESCE ( - MAX( 77 ), 82, 20 + - CAST( NULL AS DECIMAL ) / - 53 ) * ( - 72 * - 64 + + CASE - 13 WHEN 54 THEN NULL WHEN 27 THEN ( + 31 ) END * ( 38 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL + COALESCE ( - MAX ( 77 ), 82, 20 + - CAST ( NULL AS REAL ) / - 53 ) * ( - 72 * - 64 + + CASE - 13 WHEN 54 THEN NULL WHEN 27 THEN ( + 31 ) END * ( 38 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT COALESCE ( COUNT( * ), ( 82 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4815
SELECT COALESCE ( COUNT ( * ), ( 82 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT - 81 + - - 87 * - COUNT( * ) AS col1
----
-168

skipif mysql # not compatible
query I rowsort label-4816
SELECT - 81 + - - 87 * - COUNT ( * ) AS col1
----
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4817
SELECT + CAST( + COUNT( * ) AS SIGNED ) * - CASE + 69 WHEN ( + 99 ) THEN NULL ELSE - 74 * - 76 END + 79 * + 70 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-4817
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) * - CASE + 69 WHEN ( + 99 ) THEN NULL ELSE - 74 * - 76 END + 79 * + 70 AS col2
----
-94

query I rowsort
SELECT ALL 69 * - 50 AS col2
----
-3450

query I rowsort
SELECT ALL + CASE ( + 43 ) WHEN 23 * - 38 THEN NULL WHEN + CASE 66 WHEN + 25 THEN NULL WHEN 6 THEN NULL ELSE + 31 * 32 END THEN + 87 / 20 WHEN - 82 / - 18 THEN - 14 END - - 56
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4820
SELECT ALL - COUNT( * ) AS col1, 51 * 11 DIV 10 AS col0
----
-1
56

skipif mysql # not compatible
query II rowsort label-4820
SELECT ALL - COUNT ( * ) AS col1, 51 * 11 / 10 AS col0
----
-1
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4821
SELECT + CAST( NULL AS SIGNED ) + - 27 * - AVG ( - 48 ) - + 67 * + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-4821
SELECT + CAST ( NULL AS INTEGER ) + - 27 * - AVG ( - 48 ) - + 67 * + 37
----
NULL

query I rowsort
SELECT 2 * + 75 AS col2
----
150

query I rowsort
SELECT ALL NULLIF ( - 96, 79 ) AS col2
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-4824
SELECT - COUNT( * ) AS col0, - 25 AS col2
----
-1
-25

skipif mysql # not compatible
query II rowsort label-4824
SELECT - COUNT ( * ) AS col0, - 25 AS col2
----
-1
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT COUNT( * ) + - 49 + + 7
----
-41

skipif mysql # not compatible
query I rowsort label-4825
SELECT COUNT ( * ) + - 49 + + 7
----
-41

query I rowsort
SELECT ALL + + 89 - - 96 * + 47 AS col0
----
4601

query II rowsort
SELECT 17, + 40 AS col1
----
17
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4828
SELECT 82 * MAX( ALL + 41 ) DIV COALESCE ( - 96, + 67 )
----
-35

skipif mysql # not compatible
query I rowsort label-4828
SELECT 82 * MAX ( ALL + 41 ) / COALESCE ( - 96, + 67 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT + 71 + + CASE - + 39 WHEN - COUNT( * ) + + 10 THEN 89 * 94 ELSE NULL END - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4829
SELECT + 71 + + CASE - + 39 WHEN - COUNT ( * ) + + 10 THEN 89 * 94 ELSE NULL END - 65
----
NULL

query II rowsort
SELECT ALL + 15 AS col1, - 29 * + ( 70 )
----
15
-2030

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT - 38 * - COUNT( - CASE 81 WHEN - 98 + + 9 * 3 THEN - 41 * 11 END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4831
SELECT - 38 * - COUNT ( - CASE 81 WHEN - 98 + + 9 * 3 THEN - 41 * 11 END ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4832
SELECT + COUNT( * ) DIV - 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4832
SELECT + COUNT ( * ) / - 28 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4833
SELECT DISTINCT - 3 * + NULLIF ( - - 47, + 60 * + 96 ) * CAST( + NULLIF ( NULLIF ( 13, + 3 ), ( COUNT( * ) ) + + 84 / + NULLIF ( - NULLIF ( 27, - COUNT( * ) ), + COUNT( * ) ) ) AS SIGNED ) AS col2
----
-1833

skipif mysql # not compatible
query I rowsort label-4833
SELECT DISTINCT - 3 * + NULLIF ( - - 47, + 60 * + 96 ) * CAST ( + NULLIF ( NULLIF ( 13, + 3 ), ( COUNT ( * ) ) + + 84 / + NULLIF ( - NULLIF ( 27, - COUNT ( * ) ), + COUNT ( * ) ) ) AS INTEGER ) AS col2
----
-1833

query I rowsort
SELECT ALL - 14 + - 56 * + + 92 * + + 29 + + 96
----
-149326

onlyif mysql # DIV for integer division: 
query I rowsort label-4835
SELECT 34 * 82 DIV 67 col2
----
41

skipif mysql # not compatible
query I rowsort label-4835
SELECT 34 * 82 / 67 col2
----
41

query I rowsort
SELECT ALL 8 + - + 94 + 81 * 7 * + 30
----
16924

onlyif mysql # DIV for integer division: 
query I rowsort label-4837
SELECT DISTINCT 67 DIV + - 48 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT 67 / + - 48 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4838
SELECT 89 DIV - COALESCE ( + ( 44 ), + COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-4838
SELECT 89 / - COALESCE ( + ( 44 ), + COUNT ( * ) )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4839
SELECT ALL 2 * - - 22 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL 2 * - - 22 / + 81
----
0

query I rowsort
SELECT ALL 60 + - 4
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4841
SELECT + COALESCE ( + 5, 25 * - 32, - 16 / 99 + + 79 ) / ( MAX( DISTINCT + CAST( NULL AS SIGNED ) ) * CASE + 84 * 55 WHEN - 84 THEN - 1 * NULLIF ( 70, - CASE WHEN NOT + 74 IS NULL THEN - ( COUNT( * ) ) * 78 + 36 END * - 68 + 76 * 16 ) WHEN 37 THEN NULL WHEN - 67 - - 13 THEN NULL END + COUNT( * ) ) - + 96 / - ( COALESCE ( ( 28 ), - 36 * 88 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT + COALESCE ( + 5, 25 * - 32, - 16 / 99 + + 79 ) / ( MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) * CASE + 84 * 55 WHEN - 84 THEN - 1 * NULLIF ( 70, - CASE WHEN NOT + 74 IS NULL THEN - ( COUNT ( * ) ) * 78 + 36 END * - 68 + 76 * 16 ) WHEN 37 THEN NULL WHEN - 67 - - 13 THEN NULL END + COUNT ( * ) ) - + 96 / - ( COALESCE ( ( 28 ), - 36 * 88 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL + 43 + - MIN( - + 52 ) * 76 col1
----
3995

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL + 43 + - MIN ( - + 52 ) * 76 col1
----
3995

onlyif mysql # DIV for integer division: 
query I rowsort label-4843
SELECT DISTINCT - 88 DIV + 78 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT - 88 / + 78 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4844
SELECT 79 DIV - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-4844
SELECT 79 / - COUNT ( * )
----
-79

query I rowsort
SELECT ALL 25 + + - 60 + - 3
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT 80 * + ( - + 94 ) * + COUNT( * ) - - 51
----
-7469

skipif mysql # not compatible
query I rowsort label-4846
SELECT 80 * + ( - + 94 ) * + COUNT ( * ) - - 51
----
-7469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4847
SELECT ALL 94 + NULLIF ( - + 12, + 22 + + CAST( NULL AS SIGNED ) ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL 94 + NULLIF ( - + 12, + 22 + + CAST ( NULL AS INTEGER ) ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT ALL - - MIN( DISTINCT + + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL - - MIN ( DISTINCT + + 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT + - COUNT( 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-4849
SELECT + - COUNT ( 50 )
----
-1

query I rowsort
SELECT ALL - + 41 - + 57
----
-98

query I rowsort
SELECT ALL - + 36 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT DISTINCT - + COUNT( DISTINCT - - 66 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT - + COUNT ( DISTINCT - - 66 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT COUNT( * ) - - - 42 * 93 * + 47 AS col1
----
-183581

skipif mysql # not compatible
query I rowsort label-4853
SELECT COUNT ( * ) - - - 42 * 93 * + 47 AS col1
----
-183581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4854
SELECT - CASE 70 WHEN + + 69 * - - 80 + - 25 * CAST( NULL AS SIGNED ) THEN ( + 50 ) END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT - CASE 70 WHEN + + 69 * - - 80 + - 25 * CAST ( NULL AS INTEGER ) THEN ( + 50 ) END * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 94 * - - 8 + + ( - - 83 ) AS col0
----
835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4856
SELECT ALL - 9 * - CAST( + + 27 AS SIGNED ) + - COUNT( * ) + 99 col0
----
341

skipif mysql # not compatible
query I rowsort label-4856
SELECT ALL - 9 * - CAST ( + + 27 AS INTEGER ) + - COUNT ( * ) + 99 col0
----
341

query I rowsort
SELECT + 95 - + - 10
----
105

query I rowsort
SELECT 97 * - + 67
----
-6499

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT COUNT( * ) + + - 60
----
-59

skipif mysql # not compatible
query I rowsort label-4859
SELECT COUNT ( * ) + + - 60
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-4860
SELECT DISTINCT 87 * COUNT( * ) AS col1, + 68 AS col2
----
87
68

skipif mysql # not compatible
query II rowsort label-4860
SELECT DISTINCT 87 * COUNT ( * ) AS col1, + 68 AS col2
----
87
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4861
SELECT ALL + COUNT( * ) DIV - - 13
----
0

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + COUNT ( * ) / - - 13
----
0

query I rowsort
SELECT DISTINCT + CASE 35 WHEN + - 3 THEN 19 * - 56 WHEN 11 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 96 - - 7 * 59 - + 60 + + 44 AS col2
----
493

query I rowsort
SELECT 79 + 32
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT DISTINCT - 1 + + 80 * 88 * - 99 * COUNT( * ) + - COALESCE ( + 50, - 21 ) * 33
----
-698611

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT - 1 + + 80 * 88 * - 99 * COUNT ( * ) + - COALESCE ( + 50, - 21 ) * 33
----
-698611

query I rowsort
SELECT ALL + 47 + 55
----
102

query I rowsort
SELECT 60 + + 58 AS col0
----
118

query I rowsort
SELECT ALL - 83 + + 77 col2
----
-6

query I rowsort
SELECT 69 + - 43
----
26

query I rowsort
SELECT ALL - 11 + - 99
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4871
SELECT 30, - CAST( NULL AS SIGNED ) AS col1
----
30
NULL

skipif mysql # not compatible
query II rowsort label-4871
SELECT 30, - CAST ( NULL AS INTEGER ) AS col1
----
30
NULL

query I rowsort
SELECT DISTINCT - 2 + - 82
----
-84

query I rowsort
SELECT ALL 80 * 44 + + + ( - 86 ) AS col2
----
3434

query I rowsort
SELECT DISTINCT 49 * + + 40 + 92
----
2052

query I rowsort
SELECT 66 + - 64
----
2

query I rowsort
SELECT COALESCE ( 67, + 46 * 65 )
----
67

query I rowsort
SELECT 84 * 92 + 29
----
7757

query I rowsort
SELECT 85 * 5 AS col0
----
425

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT COUNT( * ) * SUM( + 56 ) * + 95 * - 73 AS col1
----
-388360

skipif mysql # not compatible
query I rowsort label-4879
SELECT COUNT ( * ) * SUM ( + 56 ) * + 95 * - 73 AS col1
----
-388360

onlyif mysql # DIV for integer division: 
query I rowsort label-4880
SELECT ALL 12 DIV 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL 12 / 55 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT ALL + COUNT( * ) * + ( 66 ) - - - 29
----
37

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL + COUNT ( * ) * + ( 66 ) - - - 29
----
37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4882
SELECT 39 DIV + 10 + + - 80 DIV - + CAST( 74 AS SIGNED ) col0
----
4

skipif mysql # not compatible
query I rowsort label-4882
SELECT 39 / + 10 + + - 80 / - + CAST ( 74 AS INTEGER ) col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4883
SELECT - 53 DIV + - 90 * + 86
----
0

skipif mysql # not compatible
query I rowsort label-4883
SELECT - 53 / + - 90 * + 86
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4884
SELECT ALL + 49 DIV + 35
----
1

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL + 49 / + 35
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4885
SELECT + 70 * + COUNT( * ) * + + 70 AS col1, 94 + + 64
----
4900
158

skipif mysql # not compatible
query II rowsort label-4885
SELECT + 70 * + COUNT ( * ) * + + 70 AS col1, 94 + + 64
----
4900
158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4886
SELECT ALL + COUNT( * ) DIV 5
----
0

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL + COUNT ( * ) / 5
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4887
SELECT DISTINCT + + NULLIF ( - 67, 61 * - CAST( CASE 59 WHEN 55 * 20 + + 89 THEN - COUNT( * ) ELSE NULL END AS SIGNED ) * + 6 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT + + NULLIF ( - 67, 61 * - CAST ( CASE 59 WHEN 55 * 20 + + 89 THEN - COUNT ( * ) ELSE NULL END AS INTEGER ) * + 6 ) AS col0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4888
SELECT DISTINCT + CAST( - 24 AS SIGNED ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT + CAST ( - 24 AS INTEGER ) AS col2
----
-24

query I rowsort
SELECT DISTINCT 69 * + + 33 col0
----
2277

query I rowsort
SELECT - - 33 * + ( - 49 ) + + 45 * - + 58 AS col2
----
-4227

query I rowsort
SELECT ALL 87 * + NULLIF ( + - CASE 25 WHEN - - 4 + 86 THEN NULL ELSE - ( - 40 ) + 4 END, 88 * - 33 )
----
-3828

query I rowsort
SELECT DISTINCT + CASE - + 86 WHEN 33 THEN + 11 * 13 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 69 * - 26
----
1794

query I rowsort
SELECT ALL ( 7 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4895
SELECT ALL CAST( - - 19 AS SIGNED ) + + + COUNT( * ) + - - 73
----
93

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL CAST ( - - 19 AS INTEGER ) + + + COUNT ( * ) + - - 73
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4896
SELECT + - 8 DIV + 64 * - 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4896
SELECT + - 8 / + 64 * - 51 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL 89 + COUNT( * ) + - - CASE + 29 WHEN - COUNT( * ) THEN 51 * 39 WHEN ( + COUNT( * ) ) * - 58 + + 2 THEN ( ( 57 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL 89 + COUNT ( * ) + - - CASE + 29 WHEN - COUNT ( * ) THEN 51 * 39 WHEN ( + COUNT ( * ) ) * - 58 + + 2 THEN ( ( 57 ) ) END
----
NULL

query I rowsort
SELECT - 42 + - 98
----
-140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4899
SELECT ALL - 11 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL - 11 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 17 * + 1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4901
SELECT - 56 + + MIN( + - CAST( - 57 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-4901
SELECT - 56 + + MIN ( + - CAST ( - 57 AS INTEGER ) )
----
1

query II rowsort
SELECT - + 14, 79 col1
----
-14
79

query I rowsort
SELECT ALL - 15 + + 67 AS col1
----
52

query I rowsort
SELECT - ( - 58 )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4905
SELECT ALL 15 AS col2, + SUM( 96 ) AS col0
----
15
96

skipif mysql # not compatible
query II rowsort label-4905
SELECT ALL 15 AS col2, + SUM ( 96 ) AS col0
----
15
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4906
SELECT ALL ( + - 2 ) * - + COUNT( * ) * CAST( + + COUNT( * ) AS SIGNED ) + + 2 + + 91
----
95

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL ( + - 2 ) * - + COUNT ( * ) * CAST ( + + COUNT ( * ) AS INTEGER ) + + 2 + + 91
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT ALL CASE + 75 WHEN + MAX( ALL + 79 ) THEN NULL WHEN 90 THEN + 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL CASE + 75 WHEN + MAX ( ALL + 79 ) THEN NULL WHEN 90 THEN + 52 END
----
NULL

query I rowsort
SELECT ALL 49 + 49 AS col1
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4909
SELECT 8, COUNT( * ) * + SUM( ALL - 37 ) + - - 20 + + 69 AS col1
----
8
52

skipif mysql # not compatible
query II rowsort label-4909
SELECT 8, COUNT ( * ) * + SUM ( ALL - 37 ) + - - 20 + + 69 AS col1
----
8
52

query II rowsort
SELECT 11 AS col2, - 93
----
11
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT ALL MAX( 17 )
----
17

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL MAX ( 17 )
----
17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4912
SELECT DISTINCT 84 - 4 DIV - CASE - 0 WHEN + CAST( NULL AS SIGNED ) + - - ( ( 86 ) ) THEN 51 DIV 25 ELSE + 46 DIV 10 END + ( + 88 )
----
173

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT 84 - 4 / - CASE - 0 WHEN + CAST ( NULL AS INTEGER ) + - - ( ( 86 ) ) THEN 51 / 25 ELSE + 46 / 10 END + ( + 88 )
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT ALL MAX( 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL MAX ( 91 ) AS col0
----
91

query I rowsort
SELECT - ( + COALESCE ( 54, + 97, - ( - - 78 ) * 35 + + 72 ) ) col1
----
-54

query I rowsort
SELECT ALL NULLIF ( 70, 71 * + + 94 + - - 15 ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4916
SELECT 2 AS col2, 60 + 46 * + 18 + + - 63 * 54 + COUNT( + 39 ) AS col0
----
2
-2513

skipif mysql # not compatible
query II rowsort label-4916
SELECT 2 AS col2, 60 + 46 * + 18 + + - 63 * 54 + COUNT ( + 39 ) AS col0
----
2
-2513

query I rowsort
SELECT ALL + ( + 27 ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT ALL - SUM( DISTINCT 34 ) * + - COUNT( * ) + + 53 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL - SUM ( DISTINCT 34 ) * + - COUNT ( * ) + + 53 AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4919
SELECT DISTINCT + NULLIF ( 6, + 95 + + + MIN( DISTINCT CAST( NULL AS SIGNED ) ) * + ( 59 ) ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT + NULLIF ( 6, + 95 + + + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * + ( 59 ) ) AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4920
SELECT 53 DIV - 96 - - 28
----
28

skipif mysql # not compatible
query I rowsort label-4920
SELECT 53 / - 96 - - 28
----
28

query II rowsort
SELECT ALL + 75 AS col1, 61 AS col2
----
75
61

query I rowsort
SELECT ALL + 53 * ( 81 )
----
4293

query I rowsort
SELECT - 47 * - + 71 AS col1
----
3337

query II rowsort
SELECT - - 53 * - + 10, 20 AS col2
----
-530
20

query I rowsort
SELECT + + 47 * + ( - - 79 )
----
3713

query II rowsort
SELECT ALL + ( 80 ), + 97 AS col0
----
80
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT - + CASE + 70 WHEN ( - + 30 ) THEN + CASE - 90 WHEN + 36 THEN - 70 END * + 59 END * COUNT( DISTINCT - 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4927
SELECT - + CASE + 70 WHEN ( - + 30 ) THEN + CASE - 90 WHEN + 36 THEN - 70 END * + 59 END * COUNT ( DISTINCT - 45 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4928
SELECT + + COUNT( * ) AS col0, - 98
----
1
-98

skipif mysql # not compatible
query II rowsort label-4928
SELECT + + COUNT ( * ) AS col0, - 98
----
1
-98

query I rowsort
SELECT ALL + CASE + + 95 WHEN - 54 * + 50 THEN - - 18 WHEN - - 99 / 2 THEN - 56 * - 90 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT DISTINCT - 21 * - - 29 + - 98 + 25 * COUNT( * )
----
-682

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT - 21 * - - 29 + - 98 + 25 * COUNT ( * )
----
-682

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4931
SELECT + 36 * COUNT( * ) + + NULLIF ( 7, + ( - + 22 ) ) + + CAST( 44 + COUNT( * ) * ( + 17 * 85 ) AS SIGNED ) * 50
----
74493

skipif mysql # not compatible
query I rowsort label-4931
SELECT + 36 * COUNT ( * ) + + NULLIF ( 7, + ( - + 22 ) ) + + CAST ( 44 + COUNT ( * ) * ( + 17 * 85 ) AS INTEGER ) * 50
----
74493

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT ALL - - 44 * 84 + - 38 + + - 18 + - 39 * + - COUNT( * ) + + 93
----
3772

skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL - - 44 * 84 + - 38 + + - 18 + - 39 * + - COUNT ( * ) + + 93
----
3772

query II rowsort
SELECT DISTINCT + + 83, 26 col1
----
83
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT ALL - MAX( ALL - ( - 63 ) ) * - 76
----
4788

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL - MAX ( ALL - ( - 63 ) ) * - 76
----
4788

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT - + CASE + - 63 WHEN COUNT( * ) THEN - 59 * + - 58 + - COALESCE ( MAX( DISTINCT + 95 ), - 49, 19 + 56 ) WHEN - 58 * 47 THEN NULL ELSE 40 END + + COUNT( * ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4935
SELECT - + CASE + - 63 WHEN COUNT ( * ) THEN - 59 * + - 58 + - COALESCE ( MAX ( DISTINCT + 95 ), - 49, 19 + 56 ) WHEN - 58 * 47 THEN NULL ELSE 40 END + + COUNT ( * ) AS col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4936
SELECT + + 46 * 34 + - CASE - 85 WHEN - 42 THEN - - CAST( NULL AS SIGNED ) END * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4936
SELECT + + 46 * 34 + - CASE - 85 WHEN - 42 THEN - - CAST ( NULL AS INTEGER ) END * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT + COUNT( * ) + - + 55 * + 5 AS col0
----
-274

skipif mysql # not compatible
query I rowsort label-4937
SELECT + COUNT ( * ) + - + 55 * + 5 AS col0
----
-274

query I rowsort
SELECT ALL + CASE 47 WHEN + 81 THEN + - 98 * - - 32 + + - 42 ELSE - 39 END AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT DISTINCT 77 * - 74 + - COUNT( * ) - COUNT( * )
----
-5700

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT 77 * - 74 + - COUNT ( * ) - COUNT ( * )
----
-5700

query I rowsort
SELECT ALL 15 * + + 39 + 69 - + 71 + + 37 * 98 AS col2
----
4209

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT CASE - 23 WHEN + + COUNT( * ) THEN - MIN( ALL - 51 ) ELSE NULL END * - 29 * 9 - AVG ( ALL ( 96 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4941
SELECT CASE - 23 WHEN + + COUNT ( * ) THEN - MIN ( ALL - 51 ) ELSE NULL END * - 29 * 9 - AVG ( ALL ( 96 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT + COUNT( ALL - 43 )
----
1

skipif mysql # not compatible
query I rowsort label-4942
SELECT + COUNT ( ALL - 43 )
----
1

query I rowsort
SELECT - - COALESCE ( + + 55, CASE - - 27 WHEN 21 THEN - 49 * 82 END + - ( ( - 23 ) + + 42 ), 66 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ALL - 77 * + + COUNT( * ) + + - 39 - - COUNT( * ) * - - COUNT( * ) * - - ( - 88 ) - + MIN( DISTINCT + 22 )
----
-226

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL - 77 * + + COUNT ( * ) + + - 39 - - COUNT ( * ) * - - COUNT ( * ) * - - ( - 88 ) - + MIN ( DISTINCT + 22 )
----
-226

query I rowsort
SELECT + 93 - + 69
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT ALL + + 61 * + + COUNT( - 63 ) + - 2 + - COUNT( DISTINCT - 26 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL + + 61 * + + COUNT ( - 63 ) + - 2 + - COUNT ( DISTINCT - 26 ) AS col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4947
SELECT ALL + 72 AS col0, 61 DIV 47 + 59 + 82 + - COUNT( * )
----
72
141

skipif mysql # not compatible
query II rowsort label-4947
SELECT ALL + 72 AS col0, 61 / 47 + 59 + 82 + - COUNT ( * )
----
72
141

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT DISTINCT + 2 * - + 69 * - - 68 * MAX( ALL - 24 )
----
225216

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT + 2 * - + 69 * - - 68 * MAX ( ALL - 24 )
----
225216

query I rowsort
SELECT ALL 49 - 1 + 75
----
123

query I rowsort
SELECT DISTINCT 8 - 93 + 57
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT DISTINCT MAX( ALL 59 ) * + 18 * - CASE + 65 WHEN + 69 THEN NULL ELSE 44 * + 93 END * 85 + + 6
----
-369384834

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT MAX ( ALL 59 ) * + 18 * - CASE + 65 WHEN + 69 THEN NULL ELSE 44 * + 93 END * 85 + + 6
----
-369384834

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4952
SELECT ALL - 84 - - 71 + + CAST( - 72 AS SIGNED )
----
-85

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL - 84 - - 71 + + CAST ( - 72 AS INTEGER )
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-4953
SELECT + 37 - + COUNT( * ) AS col1, - 60 AS col0
----
36
-60

skipif mysql # not compatible
query II rowsort label-4953
SELECT + 37 - + COUNT ( * ) AS col1, - 60 AS col0
----
36
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4954
SELECT ALL 2 DIV - - 10 AS col1, + COUNT( * ) * 28 AS col1
----
0
28

skipif mysql # not compatible
query II rowsort label-4954
SELECT ALL 2 / - - 10 AS col1, + COUNT ( * ) * 28 AS col1
----
0
28

query I rowsort
SELECT + 13 - + + ( + 78 ) * 58 AS col1
----
-4511

query I rowsort
SELECT - 89 + + - 54 - - 75 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT ALL CASE - 5 WHEN - MAX( DISTINCT - 97 ) THEN NULL WHEN - 69 * - - NULLIF ( + NULLIF ( 52, - 8 ), + 68 ) - - 90 THEN ( 87 ) WHEN MIN( 55 ) / - 55 THEN NULL END * - ( + 16 * + COUNT( + 98 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL CASE - 5 WHEN - MAX ( DISTINCT - 97 ) THEN NULL WHEN - 69 * - - NULLIF ( + NULLIF ( 52, - 8 ), + 68 ) - - 90 THEN ( 87 ) WHEN MIN ( 55 ) / - 55 THEN NULL END * - ( + 16 * + COUNT ( + 98 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 83 * 31 * - 71 * + CASE - + 15 WHEN + 64 THEN NULL WHEN + 72 THEN - ( + 62 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT DISTINCT COUNT( * ) * - CASE - 73 WHEN + ( - SUM( ALL - - 57 ) ) * - 45 + NULLIF ( 94, + COUNT( * ) * 66 + + 59 ) THEN COUNT( * ) + 91 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT COUNT ( * ) * - CASE - 73 WHEN + ( - SUM ( ALL - - 57 ) ) * - 45 + NULLIF ( 94, + COUNT ( * ) * 66 + + 59 ) THEN COUNT ( * ) + 91 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT NULLIF ( - COUNT( * ), SUM( DISTINCT - 52 ) ) + 33 * - + 83
----
-2740

skipif mysql # not compatible
query I rowsort label-4960
SELECT NULLIF ( - COUNT ( * ), SUM ( DISTINCT - 52 ) ) + 33 * - + 83
----
-2740

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT - 8 * COUNT( 3 )
----
-8

skipif mysql # not compatible
query I rowsort label-4961
SELECT - 8 * COUNT ( 3 )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-4962
SELECT DISTINCT + ( 25 ) * + - COUNT( * ), + 44 AS col0
----
-25
44

skipif mysql # not compatible
query II rowsort label-4962
SELECT DISTINCT + ( 25 ) * + - COUNT ( * ), + 44 AS col0
----
-25
44

query I rowsort
SELECT DISTINCT - 69 + - 40 + - 13
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT DISTINCT + 10 + SUM( + 77 ) col2
----
87

skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT + 10 + SUM ( + 77 ) col2
----
87

query I rowsort
SELECT - ( - 82 ) + ( 15 ) col1
----
97

query I rowsort
SELECT ALL + 36 + - 83 col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT DISTINCT + COUNT( * ) * + CASE + 58 WHEN 0 THEN NULL WHEN - 13 * 84 - + 92 + - 75 * + ( + NULLIF ( NULLIF ( 45, 36 ), 19 + + 47 ) ) THEN 58 * + 63 + + ( - 49 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4967
SELECT DISTINCT + COUNT ( * ) * + CASE + 58 WHEN 0 THEN NULL WHEN - 13 * 84 - + 92 + - 75 * + ( + NULLIF ( NULLIF ( 45, 36 ), 19 + + 47 ) ) THEN 58 * + 63 + + ( - 49 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT DISTINCT - - MIN( - - 56 ) + 69 AS col0
----
125

skipif mysql # not compatible
query I rowsort label-4968
SELECT DISTINCT - - MIN ( - - 56 ) + 69 AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT ALL + 86 * - - COUNT( ALL 37 )
----
86

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL + 86 * - - COUNT ( ALL 37 )
----
86

query I rowsort
SELECT DISTINCT - 28 + - 31
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT - COUNT( * ) + - + 67 + 41
----
-27

skipif mysql # not compatible
query I rowsort label-4971
SELECT - COUNT ( * ) + - + 67 + 41
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4972
SELECT ( 71 ) * + 31 + 9 * + + 21 * - MAX( ALL + CAST( NULL AS SIGNED ) ) * + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4972
SELECT ( 71 ) * + 31 + 9 * + + 21 * - MAX ( ALL + CAST ( NULL AS INTEGER ) ) * + 39 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4973
SELECT ALL + COALESCE ( - + 43, + + 99 * - ( + 94 ) + + 65 + 11 + - 95 / 41 * 35 ) - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL + COALESCE ( - + 43, + + 99 * - ( + 94 ) + + 65 + 11 + - 95 / 41 * 35 ) - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 35 * - - 46 AS col1
----
1610

query I rowsort
SELECT DISTINCT + 97 - 20 AS col2
----
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4976
SELECT DISTINCT - 43 DIV + COALESCE ( + 26, - 20 * 17 DIV 3 * + 91 * + CAST( NULL AS SIGNED ) + - 80 + - 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT - 43 / + COALESCE ( + 26, - 20 * 17 / 3 * + 91 * + CAST ( NULL AS INTEGER ) + - 80 + - 23 )
----
-1

query I rowsort
SELECT DISTINCT + 70 * - 96
----
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ALL MIN( - 57 ) * - - 28 AS col0
----
-1596

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL MIN ( - 57 ) * - - 28 AS col0
----
-1596

query I rowsort
SELECT ( + 94 ) * - - 1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT ALL + 62 * - 60 * COUNT( * ) AS col0
----
-3720

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL + 62 * - 60 * COUNT ( * ) AS col0
----
-3720

query II rowsort
SELECT ALL 87 AS col0, 46 AS col0
----
87
46

onlyif mysql # aggregate syntax: 
query II rowsort label-4982
SELECT - 88, MAX( DISTINCT - ( + - NULLIF ( + 42, 18 ) ) ) AS col1
----
-88
42

skipif mysql # not compatible
query II rowsort label-4982
SELECT - 88, MAX ( DISTINCT - ( + - NULLIF ( + 42, 18 ) ) ) AS col1
----
-88
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4983
SELECT ALL + 53 * 35 * COUNT( * ) * + - CASE - 72 WHEN + - 59 + 46 * + + CAST( NULL AS SIGNED ) THEN NULL WHEN MIN( DISTINCT + 57 ) THEN - 75 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL + 53 * 35 * COUNT ( * ) * + - CASE - 72 WHEN + - 59 + 46 * + + CAST ( NULL AS INTEGER ) THEN NULL WHEN MIN ( DISTINCT + 57 ) THEN - 75 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ( - + 43 ) * + COALESCE ( + 3, 13 ) AS col0
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4985
SELECT CAST( NULL AS SIGNED ) * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-4985
SELECT CAST ( NULL AS INTEGER ) * 78
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4986
SELECT CASE 88 WHEN CAST( NULL AS SIGNED ) THEN + - 83 * - 89 END - COUNT( - + 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4986
SELECT CASE 88 WHEN CAST ( NULL AS INTEGER ) THEN + - 83 * - 89 END - COUNT ( - + 68 )
----
NULL

query II rowsort
SELECT ALL 1 AS col2, - ( 75 )
----
1
-75

query I rowsort
SELECT 0 * + 95
----
0

query I rowsort
SELECT 3 + - - 93
----
96

query I rowsort
SELECT NULLIF ( ( 40 ), - + 50 + - ( + 3 ) ) + - ( - 83 ) + - COALESCE ( - 43 + + 96, NULLIF ( 4, 0 + - 35 ) ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT DISTINCT NULLIF ( - 68, + + COUNT( 3 ) + - 1 * + 16 ) + - - 55 + SUM( DISTINCT 56 ) * + 22
----
1219

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT NULLIF ( - 68, + + COUNT ( 3 ) + - 1 * + 16 ) + - - 55 + SUM ( DISTINCT 56 ) * + 22
----
1219

query I rowsort
SELECT ALL 82 + + 47
----
129

query II rowsort
SELECT - - 68 AS col1, 25
----
68
25

query I rowsort
SELECT ALL - CASE 81 WHEN - 6 THEN + 98 - 5 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4995
SELECT ALL 20 + + COALESCE ( - COALESCE ( + COUNT( * ), - + 59 * - - ( - + 5 ) - - 70 * 56 - 80 ), 95 ) + + 91 * ( + CAST( + 85 AS SIGNED ) DIV + 83 ) * 42
----
3841

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL 20 + + COALESCE ( - COALESCE ( + COUNT ( * ), - + 59 * - - ( - + 5 ) - - 70 * 56 - 80 ), 95 ) + + 91 * ( + CAST ( + 85 AS INTEGER ) / + 83 ) * 42
----
3841

query I rowsort
SELECT DISTINCT + - 77 + + 63
----
-14

query I rowsort
SELECT DISTINCT - - ( - - 86 ) + + 31 + + 81 * + 81 * NULLIF ( + - 59, 14 + + 48 ) AS col1
----
-386982

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4998
SELECT DISTINCT - CASE + 8 WHEN - 47 THEN NULL WHEN - ( + - 59 ) THEN 8 * + - 78 + + CAST( NULL AS DECIMAL ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT - CASE + 8 WHEN - 47 THEN NULL WHEN - ( + - 59 ) THEN 8 * + - 78 + + CAST ( NULL AS REAL ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 65 + - 89
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5000
SELECT ALL + NULLIF ( - CAST( + + SUM( DISTINCT - ( 31 ) ) AS SIGNED ), + - 27 ) + + 5 + + 95 - ( - COUNT( * ) ) * - 39 * - 5
----
326

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL + NULLIF ( - CAST ( + + SUM ( DISTINCT - ( 31 ) ) AS INTEGER ), + - 27 ) + + 5 + + 95 - ( - COUNT ( * ) ) * - 39 * - 5
----
326

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT ALL - + CASE + 17 WHEN 48 / + + 18 + - 0 + + - 86 + AVG ( 71 ) / 78 * + 12 THEN - 69 - COUNT( * ) END + + COUNT( * ) * ( 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL - + CASE + 17 WHEN 48 / + + 18 + - 0 + + - 86 + AVG ( 71 ) / 78 * + 12 THEN - 69 - COUNT ( * ) END + + COUNT ( * ) * ( 34 )
----
NULL

query I rowsort
SELECT DISTINCT - + ( 78 )
----
-78

query II rowsort
SELECT DISTINCT - 78, 97 AS col1
----
-78
97

query I rowsort
SELECT ALL + 74 * + 57
----
4218

query I rowsort
SELECT ALL + 63 - + 34 AS col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5006
SELECT DISTINCT - 17 AS col2, 26 DIV + + NULLIF ( - COUNT( * ), + - 0 * 40 * 23 )
----
-17
-26

skipif mysql # not compatible
query II rowsort label-5006
SELECT DISTINCT - 17 AS col2, 26 / + + NULLIF ( - COUNT ( * ), + - 0 * 40 * 23 )
----
-17
-26

query I rowsort
SELECT ALL - - 68 * 76 AS col1
----
5168

query I rowsort
SELECT 59 + - 64 + 91
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT ALL MIN( + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL MIN ( + 52 )
----
52

query I rowsort
SELECT 78 * + - 31 * 59 AS col2
----
-142662

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5011
SELECT ALL - MIN( ALL - + 63 ) DIV - CAST( - COUNT( * ) AS SIGNED ), 65 + - 52 * 68 * 63 col2
----
63
-222703

skipif mysql # not compatible
query II rowsort label-5011
SELECT ALL - MIN ( ALL - + 63 ) / - CAST ( - COUNT ( * ) AS INTEGER ), 65 + - 52 * 68 * 63 col2
----
63
-222703

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5012
SELECT DISTINCT - COALESCE ( + - 99, - 64 + + 88 + + 35 + + - COUNT( * ) * + 64, + + COUNT( * ) ) DIV COUNT( * ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT - COALESCE ( + - 99, - 64 + + 88 + + 35 + + - COUNT ( * ) * + 64, + + COUNT ( * ) ) / COUNT ( * ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT DISTINCT COUNT( * ) * + 89
----
89

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT COUNT ( * ) * + 89
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-5014
SELECT - 7 DIV 72 AS col2, 74
----
0
74

skipif mysql # not compatible
query II rowsort label-5014
SELECT - 7 / 72 AS col2, 74
----
0
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT ALL - 94 + - SUM( 49 ) col1
----
-143

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL - 94 + - SUM ( 49 ) col1
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT - COUNT( * ) + + 97 + - + 67
----
29

skipif mysql # not compatible
query I rowsort label-5016
SELECT - COUNT ( * ) + + 97 + - + 67
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5017
SELECT - 36 DIV COALESCE ( + 49, - + 53, 61 )
----
0

skipif mysql # not compatible
query I rowsort label-5017
SELECT - 36 / COALESCE ( + 49, - + 53, 61 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT - 94 + - + NULLIF ( + CASE COUNT( * ) WHEN 88 + - + ( 34 ) - - 24 THEN - 9 * 50 + ( - 18 ) * - 14 WHEN ( + ( + 82 ) ) * - 79 THEN 68 WHEN + COUNT( * ) THEN NULL END, + NULLIF ( + 49, - AVG ( - 72 ) - 91 ) ) + 68 * + 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT - 94 + - + NULLIF ( + CASE COUNT ( * ) WHEN 88 + - + ( 34 ) - - 24 THEN - 9 * 50 + ( - 18 ) * - 14 WHEN ( + ( + 82 ) ) * - 79 THEN 68 WHEN + COUNT ( * ) THEN NULL END, + NULLIF ( + 49, - AVG ( - 72 ) - 91 ) ) + 68 * + 75 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5019
SELECT + COUNT( * ) + + 97 AS col1, 21 col1
----
98
21

skipif mysql # not compatible
query II rowsort label-5019
SELECT + COUNT ( * ) + + 97 AS col1, 21 col1
----
98
21

query I rowsort
SELECT ALL + 22 * - 43 AS col1
----
-946

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5021
SELECT + 18 * 3 * - + COALESCE ( - 79, - CAST( NULL AS SIGNED ) + ( - 5 ) ), - 78 AS col2
----
4266
-78

skipif mysql # not compatible
query II rowsort label-5021
SELECT + 18 * 3 * - + COALESCE ( - 79, - CAST ( NULL AS INTEGER ) + ( - 5 ) ), - 78 AS col2
----
4266
-78

query I rowsort
SELECT + 76 + - ( 14 ) AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5023
SELECT ALL + ( - + 53 ) + + 32 - + - CAST( NULL AS SIGNED ) * + + NULLIF ( + 76, + - 79 * - CAST( MAX( ALL + 82 ) AS DECIMAL ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL + ( - + 53 ) + + 32 - + - CAST ( NULL AS INTEGER ) * + + NULLIF ( + 76, + - 79 * - CAST ( MAX ( ALL + 82 ) AS REAL ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT DISTINCT 41 * MAX( - 29 )
----
-1189

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT 41 * MAX ( - 29 )
----
-1189

query I rowsort
SELECT DISTINCT + 77 + + + CASE - 82 WHEN 10 THEN - 2 WHEN ( + 10 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT + + COUNT( * ) + 64
----
65

skipif mysql # not compatible
query I rowsort label-5026
SELECT + + COUNT ( * ) + 64
----
65

query I rowsort
SELECT ALL + - 8 + + - 88
----
-96

query I rowsort
SELECT NULLIF ( - - 35, - 95 )
----
35

query II rowsort
SELECT + - 41 + + 30 AS col1, + 83
----
-11
83

query I rowsort
SELECT ALL - 30 + - 44 + - 5
----
-79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5031
SELECT - 10 + - 25 + + 91 DIV 81 AS col0, 35 * - CAST( NULL AS SIGNED )
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-5031
SELECT - 10 + - 25 + + 91 / 81 AS col0, 35 * - CAST ( NULL AS INTEGER )
----
-34
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5032
SELECT - 14 DIV - 87, + COUNT( * ) * - 5 DIV 60
----
0
0

skipif mysql # not compatible
query II rowsort label-5032
SELECT - 14 / - 87, + COUNT ( * ) * - 5 / 60
----
0
0

query I rowsort
SELECT - CASE WHEN NOT - 22 IS NOT NULL THEN + + 25 ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5034
SELECT + 41 * + 83 * + ( + + CASE WHEN 67 IS NULL THEN + 13 / - 25 * - 58 * + CAST( NULL AS DECIMAL ) + 53 END ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5034
SELECT + 41 * + 83 * + ( + + CASE WHEN 67 IS NULL THEN + 13 / - 25 * - 58 * + CAST ( NULL AS REAL ) + 53 END ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 72 * 74 + - 83 col2
----
5245

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT + MIN( + 44 ) * 35 + COUNT( * ) + + NULLIF ( - - 41, 63 )
----
1582

skipif mysql # not compatible
query I rowsort label-5036
SELECT + MIN ( + 44 ) * 35 + COUNT ( * ) + + NULLIF ( - - 41, 63 )
----
1582

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT DISTINCT + ( - COUNT( * ) ) * NULLIF ( NULLIF ( + 66, - 36 + - 52 + 71 ), + 22 ) / ( - CASE - ( - 23 ) WHEN 35 * 77 + 58 THEN + NULLIF ( + 40, + 19 ) END ) - + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT + ( - COUNT ( * ) ) * NULLIF ( NULLIF ( + 66, - 36 + - 52 + 71 ), + 22 ) / ( - CASE - ( - 23 ) WHEN 35 * 77 + 58 THEN + NULLIF ( + 40, + 19 ) END ) - + 82 AS col1
----
NULL

query I rowsort
SELECT ALL 29 * - 81
----
-2349

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5039
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 74 + + 13 + 26 - 26 AS col1, + 60 * 43 - 21
----
NULL
2559

skipif mysql # not compatible
query II rowsort label-5039
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 74 + + 13 + 26 - 26 AS col1, + 60 * 43 - 21
----
NULL
2559

query I rowsort
SELECT DISTINCT 38 * + 35 AS col1
----
1330

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT DISTINCT 52 * + 80 * COUNT( * )
----
4160

skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT 52 * + 80 * COUNT ( * )
----
4160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5042
SELECT DISTINCT + CAST( - 42 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-5042
SELECT DISTINCT + CAST ( - 42 AS INTEGER )
----
-42

query II rowsort
SELECT ALL + 43 AS col0, - 94 * + 59 AS col1
----
43
-5546

query I rowsort
SELECT + 61 * - + 82 AS col0
----
-5002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5045
SELECT CAST( - 25 AS SIGNED ) * - - 50 + - + 70
----
-1320

skipif mysql # not compatible
query I rowsort label-5045
SELECT CAST ( - 25 AS INTEGER ) * - - 50 + - + 70
----
-1320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5046
SELECT + CAST( + 9 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-5046
SELECT + CAST ( + 9 AS INTEGER )
----
9

query I rowsort
SELECT DISTINCT ( - ( + 94 ) ) AS col0
----
-94

query I rowsort
SELECT ALL - 77 * + 31 * - 91 + + 94 AS col1
----
217311

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT - ( - + MIN( ALL + - 36 ) ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-5049
SELECT - ( - + MIN ( ALL + - 36 ) ) AS col2
----
-36

query II rowsort
SELECT - 24 + 41 * + 74 * - 43 + + 54, 75 * ( + 9 ) AS col1
----
-130432
675

query I rowsort
SELECT - 1 + - - 15
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT - MIN( DISTINCT + ( + 55 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-5052
SELECT - MIN ( DISTINCT + ( + 55 ) )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT - 65 * ( + SUM( + - 58 ) ) AS col2
----
3770

skipif mysql # not compatible
query I rowsort label-5053
SELECT - 65 * ( + SUM ( + - 58 ) ) AS col2
----
3770

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT ALL SUM( DISTINCT - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL SUM ( DISTINCT - 83 )
----
-83

query I rowsort
SELECT DISTINCT + 45 + - 44 + - 6 * - 32 * - ( + 66 ) + + + 94 AS col1
----
-12577

query I rowsort
SELECT DISTINCT CASE - 80 WHEN + 80 THEN 61 ELSE 36 END
----
36

query II rowsort
SELECT 96 AS col2, 64
----
96
64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5058
SELECT - 41 * + 37 DIV NULLIF ( + 59, - - 35 * - - CAST( - COALESCE ( AVG ( DISTINCT 88 ), COUNT( * ), - 56 ) AS DECIMAL ) DIV - COUNT( * ) ) DIV + 31
----
0

skipif mysql # not compatible
query I rowsort label-5058
SELECT - 41 * + 37 / NULLIF ( + 59, - - 35 * - - CAST ( - COALESCE ( AVG ( DISTINCT 88 ), COUNT ( * ), - 56 ) AS REAL ) / - COUNT ( * ) ) / + 31
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5059
SELECT ALL + 48 DIV + - 22 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL + 48 / + - 22 AS col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5060
SELECT - 85 + 85 DIV 13 * COUNT( * ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-5060
SELECT - 85 + 85 / 13 * COUNT ( * ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT - SUM( DISTINCT - + 20 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-5061
SELECT - SUM ( DISTINCT - + 20 ) AS col0
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-5062
SELECT - 68 DIV - 2 - - + 75 AS col2
----
109

skipif mysql # not compatible
query I rowsort label-5062
SELECT - 68 / - 2 - - + 75 AS col2
----
109

query I rowsort
SELECT ALL + 99 - + 91 + + - 40 - 92
----
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5064
SELECT DISTINCT - COUNT( * ) * ( 32 ) * CAST( + - NULLIF ( + 13, AVG ( ALL - 8 ) ) AS SIGNED ) AS col0, - 88 * 10
----
416
-880

skipif mysql # not compatible
query II rowsort label-5064
SELECT DISTINCT - COUNT ( * ) * ( 32 ) * CAST ( + - NULLIF ( + 13, AVG ( ALL - 8 ) ) AS INTEGER ) AS col0, - 88 * 10
----
416
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT - + 18 * + - COUNT( * ) + + + COUNT( * ) + - - 84 * - + 88 * + - 19
----
140467

skipif mysql # not compatible
query I rowsort label-5065
SELECT - + 18 * + - COUNT ( * ) + + + COUNT ( * ) + - - 84 * - + 88 * + - 19
----
140467

query I rowsort
SELECT DISTINCT - 96 * - 17 col0
----
1632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5067
SELECT - COUNT( * ) DIV + - 74 + + 67 + 77 AS col0
----
144

skipif mysql # not compatible
query I rowsort label-5067
SELECT - COUNT ( * ) / + - 74 + + 67 + 77 AS col0
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5068
SELECT - 57 * + COUNT( * ) DIV - - 77 + + 6 + + + 63 * CASE 22 WHEN - - 8 * - 53 THEN NULL ELSE + 58 * 51 END
----
186360

skipif mysql # not compatible
query I rowsort label-5068
SELECT - 57 * + COUNT ( * ) / - - 77 + + 6 + + + 63 * CASE 22 WHEN - - 8 * - 53 THEN NULL ELSE + 58 * 51 END
----
186360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5069
SELECT ALL - 38 DIV + 2 - + - MAX( + + 25 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL - 38 / + 2 - + - MAX ( + + 25 ) AS col0
----
6

query II rowsort
SELECT ALL + - COALESCE ( 5, - 9 + + 50, + 74 ) col0, 96 AS col1
----
-5
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5071
SELECT + 84 DIV 10 * 84 * 74
----
49728

skipif mysql # not compatible
query I rowsort label-5071
SELECT + 84 / 10 * 84 * 74
----
49728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5072
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) * - 53 AS col2, + 70 * - COUNT( * )
----
-53
-70

skipif mysql # not compatible
query II rowsort label-5072
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * - 53 AS col2, + 70 * - COUNT ( * )
----
-53
-70

query II rowsort
SELECT 51 col2, + 10
----
51
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5074
SELECT ALL COUNT( CASE + CAST( NULL AS SIGNED ) WHEN - 60 THEN NULL WHEN + - 15 THEN NULL ELSE 46 END ) * + - 2 * 94 AS col1
----
-188

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL COUNT ( CASE + CAST ( NULL AS INTEGER ) WHEN - 60 THEN NULL WHEN + - 15 THEN NULL ELSE 46 END ) * + - 2 * 94 AS col1
----
-188

onlyif mysql # aggregate syntax: 
query II rowsort label-5075
SELECT SUM( ALL - + 63 ) * ( + - COUNT( * ) ) AS col1, 21
----
63
21

skipif mysql # not compatible
query II rowsort label-5075
SELECT SUM ( ALL - + 63 ) * ( + - COUNT ( * ) ) AS col1, 21
----
63
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5076
SELECT ALL + 21 DIV - 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL + 21 / - 92 AS col0
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-5077
SELECT ALL - 33, ( MAX( DISTINCT + 60 ) ) col2, 73 AS col1
----
-33
60
73

skipif mysql # not compatible
query III rowsort label-5077
SELECT ALL - 33, ( MAX ( DISTINCT + 60 ) ) col2, 73 AS col1
----
-33
60
73

query II rowsort
SELECT + 19, - 43 AS col2
----
19
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT ALL COUNT( * ) * - CASE + 24 WHEN + 74 THEN - - 64 + 30 END * + 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL COUNT ( * ) * - CASE + 24 WHEN + 74 THEN - - 64 + 30 END * + 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5080
SELECT ALL COUNT( * ) + + + 80 * + 38 DIV COUNT( * ) AS col0
----
3041

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL COUNT ( * ) + + + 80 * + 38 / COUNT ( * ) AS col0
----
3041

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT - 62 * 30 * - + MAX( 30 ) - 96 AS col0
----
55704

skipif mysql # not compatible
query I rowsort label-5081
SELECT - 62 * 30 * - + MAX ( 30 ) - 96 AS col0
----
55704

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5082
SELECT ALL 13 + - SUM( DISTINCT + 82 ) + + 65 DIV - 38 + + 88 * + 74, 70 DIV + 93 + - COUNT( * ) AS col1
----
6442
-1

skipif mysql # not compatible
query II rowsort label-5082
SELECT ALL 13 + - SUM ( DISTINCT + 82 ) + + 65 / - 38 + + 88 * + 74, 70 / + 93 + - COUNT ( * ) AS col1
----
6442
-1

query II rowsort
SELECT 89 AS col0, 96
----
89
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5084
SELECT - COUNT( DISTINCT - 2 ) * + 99 + - COUNT( * ) * 77 * - CAST( + + 81 AS SIGNED ) - + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5084
SELECT - COUNT ( DISTINCT - 2 ) * + 99 + - COUNT ( * ) * 77 * - CAST ( + + 81 AS INTEGER ) - + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5085
SELECT CAST( NULL AS SIGNED ) / - + 2 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT CAST ( NULL AS INTEGER ) / - + 2 col0
----
NULL

query I rowsort
SELECT ALL ( - 21 ) + 75
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5087
SELECT NULLIF ( - 18, + - 70 + - + CAST( - + 64 AS SIGNED ) * + + 79 ) * - + 0
----
0

skipif mysql # not compatible
query I rowsort label-5087
SELECT NULLIF ( - 18, + - 70 + - + CAST ( - + 64 AS INTEGER ) * + + 79 ) * - + 0
----
0

query I rowsort
SELECT 48 * - 87
----
-4176

query II rowsort
SELECT - 42 AS col0, + 19 AS col2
----
-42
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5090
SELECT CAST( NULL AS DECIMAL ) + + - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5090
SELECT CAST ( NULL AS REAL ) + + - 65 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5091
SELECT ALL ( - - 1 ) + ( ( COUNT( * ) ) ) - - + 41 AS col1, 89 * + 37 * - ( + 16 )
----
43
-52688

skipif mysql # not compatible
query II rowsort label-5091
SELECT ALL ( - - 1 ) + ( ( COUNT ( * ) ) ) - - + 41 AS col1, 89 * + 37 * - ( + 16 )
----
43
-52688

query I rowsort
SELECT ALL + 59 * 0 AS col2
----
0

query I rowsort
SELECT ALL 23 + + 14 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT ALL NULLIF ( - - 77, - 10 + + 15 + - CASE SUM( DISTINCT - 44 ) WHEN + 73 THEN - COALESCE ( 8, + AVG ( 55 ) + + 25 ) ELSE NULL END * 46 * 52 ) * - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL NULLIF ( - - 77, - 10 + + 15 + - CASE SUM ( DISTINCT - 44 ) WHEN + 73 THEN - COALESCE ( 8, + AVG ( 55 ) + + 25 ) ELSE NULL END * 46 * 52 ) * - COUNT ( * )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5095
SELECT 2 + + ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5095
SELECT 2 + + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 3 * - 2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT CASE COUNT( * ) WHEN + COUNT( * ) THEN + + 73 WHEN - ( 2 ) * 89 - - 73 + 34 THEN - 29 END + 19 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-5097
SELECT CASE COUNT ( * ) WHEN + COUNT ( * ) THEN + + 73 WHEN - ( 2 ) * 89 - - 73 + 34 THEN - 29 END + 19 AS col0
----
92

query I rowsort
SELECT ALL - - 41 - + 57
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5099
SELECT - + CAST( 96 AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-5099
SELECT - + CAST ( 96 AS INTEGER )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5100
SELECT - 5 + CAST( + MIN( DISTINCT + 24 ) AS SIGNED ) col2
----
19

skipif mysql # not compatible
query I rowsort label-5100
SELECT - 5 + CAST ( + MIN ( DISTINCT + 24 ) AS INTEGER ) col2
----
19

query I rowsort
SELECT ALL ( - 87 ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT 71 + - SUM( - 44 )
----
115

skipif mysql # not compatible
query I rowsort label-5102
SELECT 71 + - SUM ( - 44 )
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT + COUNT( * ) * - + 41
----
-41

skipif mysql # not compatible
query I rowsort label-5103
SELECT + COUNT ( * ) * - + 41
----
-41

query I rowsort
SELECT + 55 * 39 AS col2
----
2145

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT + COUNT( ALL - 22 )
----
1

skipif mysql # not compatible
query I rowsort label-5105
SELECT + COUNT ( ALL - 22 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5106
SELECT COALESCE ( CAST( NULL AS SIGNED ), + 35 - + - 47 ) + + CAST( - 66 AS SIGNED ) col0
----
16

skipif mysql # not compatible
query I rowsort label-5106
SELECT COALESCE ( CAST ( NULL AS INTEGER ), + 35 - + - 47 ) + + CAST ( - 66 AS INTEGER ) col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT ALL + + 61 * + COUNT( * ) * + ( - 10 ) AS col2
----
-610

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL + + 61 * + COUNT ( * ) * + ( - 10 ) AS col2
----
-610

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5108
SELECT + 8 DIV 60 * + 51 * 54 * + - 21 * 42 * - 42 AS col0, COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-5108
SELECT + 8 / 60 * + 51 * 54 * + - 21 * 42 * - 42 AS col0, COUNT ( * ) AS col1
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5109
SELECT 71 * - CAST( + - 29 AS SIGNED )
----
2059

skipif mysql # not compatible
query I rowsort label-5109
SELECT 71 * - CAST ( + - 29 AS INTEGER )
----
2059

query I rowsort
SELECT ALL - 51 * + ( + 86 )
----
-4386

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT + COUNT( * ) * 40 + 95 AS col1
----
135

skipif mysql # not compatible
query I rowsort label-5111
SELECT + COUNT ( * ) * 40 + 95 AS col1
----
135

query I rowsort
SELECT - 91 * 33
----
-3003

query I rowsort
SELECT ALL + + 49 + - 42 * 94 AS col1
----
-3899

query I rowsort
SELECT ALL - 60 + + 8 * - ( - 11 )
----
28

query I rowsort
SELECT 54 * - 97 * 88 * + 35 + 61 AS col1
----
-16132979

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5116
SELECT ALL + 35 * - MIN( + CAST( + - ( 44 ) AS SIGNED ) ) AS col1
----
1540

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL + 35 * - MIN ( + CAST ( + - ( 44 ) AS INTEGER ) ) AS col1
----
1540

query I rowsort
SELECT DISTINCT - 80 + + 1 * - COALESCE ( - - 47, - 21 ) * + 7
----
-409

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT DISTINCT + NULLIF ( + COUNT( * ), + COUNT( * ) ) + 91 * + + 68 + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT + NULLIF ( + COUNT ( * ), + COUNT ( * ) ) + 91 * + + 68 + + 29
----
NULL

query I rowsort
SELECT 94 * 83
----
7802

query I rowsort
SELECT - 95 * 99 + 40 + + 9 * + 46 + - 8 AS col1
----
-8959

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT 63 * - 84 + - COUNT( * ) AS col1
----
-5293

skipif mysql # not compatible
query I rowsort label-5121
SELECT 63 * - 84 + - COUNT ( * ) AS col1
----
-5293

query I rowsort
SELECT ( 58 ) + + 25 AS col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5123
SELECT ALL ( + + COUNT( * ) ) + - - 85 + 85 * 92 + + 73 * 27, - COALESCE ( CASE + 11 WHEN 4 THEN - + 98 - 39 ELSE NULL END, 26 - - 2, 78 - - 44 DIV COALESCE ( - 5, - CAST( NULL AS SIGNED ), ( 2 ) DIV COALESCE ( 38, 66 * + COUNT( * ), 20 * 52 ) ) ) AS col0
----
9877
-28

skipif mysql # not compatible
query II rowsort label-5123
SELECT ALL ( + + COUNT ( * ) ) + - - 85 + 85 * 92 + + 73 * 27, - COALESCE ( CASE + 11 WHEN 4 THEN - + 98 - 39 ELSE NULL END, 26 - - 2, 78 - - 44 / COALESCE ( - 5, - CAST ( NULL AS INTEGER ), ( 2 ) / COALESCE ( 38, 66 * + COUNT ( * ), 20 * 52 ) ) ) AS col0
----
9877
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT COUNT( * ) * - + 59 * 56 AS col2
----
-3304

skipif mysql # not compatible
query I rowsort label-5124
SELECT COUNT ( * ) * - + 59 * 56 AS col2
----
-3304

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT DISTINCT - COUNT( + - NULLIF ( 15, 6 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT - COUNT ( + - NULLIF ( 15, 6 ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5126
SELECT ALL 53 - + + COUNT( * ), 14 AS col0
----
52
14

skipif mysql # not compatible
query II rowsort label-5126
SELECT ALL 53 - + + COUNT ( * ), 14 AS col0
----
52
14

query I rowsort
SELECT DISTINCT 82 - 15 - - 88
----
155

query I rowsort
SELECT 57 * + - ( + + 77 )
----
-4389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5129
SELECT ALL + CAST( + 59 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL + CAST ( + 59 AS INTEGER )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT 48 * + COUNT( * ) - + 41
----
7

skipif mysql # not compatible
query I rowsort label-5130
SELECT 48 * + COUNT ( * ) - + 41
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT - COUNT( 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-5131
SELECT - COUNT ( 0 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT ALL + 91 * NULLIF ( + + COUNT( * ), + 14 )
----
91

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL + 91 * NULLIF ( + + COUNT ( * ), + 14 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5133
SELECT + COALESCE ( - CASE + COUNT( * ) WHEN 67 THEN - - 1 + - 10 + - + 35 WHEN + - 58 * - ( MAX( ALL 34 ) ) * - - 82 + 14 * COUNT( * ) + - CAST( NULL AS SIGNED ) THEN 93 ELSE 75 END, - COUNT( * ) + ( 67 ) * 27, - 37 ) * + 93 AS col2
----
-6975

skipif mysql # not compatible
query I rowsort label-5133
SELECT + COALESCE ( - CASE + COUNT ( * ) WHEN 67 THEN - - 1 + - 10 + - + 35 WHEN + - 58 * - ( MAX ( ALL 34 ) ) * - - 82 + 14 * COUNT ( * ) + - CAST ( NULL AS INTEGER ) THEN 93 ELSE 75 END, - COUNT ( * ) + ( 67 ) * 27, - 37 ) * + 93 AS col2
----
-6975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5134
SELECT ALL COALESCE ( 64, CAST( NULL AS SIGNED ), + 95 )
----
64

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL COALESCE ( 64, CAST ( NULL AS INTEGER ), + 95 )
----
64

query I rowsort
SELECT - ( - - 27 ) col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT DISTINCT + 97 * + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-5136
SELECT DISTINCT + 97 * + COUNT ( * )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5137
SELECT + 97 + + - 0 + + CAST( NULL AS SIGNED ) * COUNT( + 44 ) * - - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5137
SELECT + 97 + + - 0 + + CAST ( NULL AS INTEGER ) * COUNT ( + 44 ) * - - 59 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5138
SELECT - - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5138
SELECT - - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT ALL + 64 + + + 71 AS col1
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5140
SELECT ALL - 6 + 46 - - - 4 + 60 * + 93 + + COUNT( * ) * 30 + - MAX( - 98 ) * COUNT( + COALESCE ( - 24, + 31 * - 59, 85 * 22 ) ) + COUNT( * ) DIV 75 * 64
----
5744

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL - 6 + 46 - - - 4 + 60 * + 93 + + COUNT ( * ) * 30 + - MAX ( - 98 ) * COUNT ( + COALESCE ( - 24, + 31 * - 59, 85 * 22 ) ) + COUNT ( * ) / 75 * 64
----
5744

query I rowsort
SELECT + ( + + 31 ) AS col2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5142
SELECT 25 DIV - + 28 + + 5 - - SUM( - 46 )
----
-41

skipif mysql # not compatible
query I rowsort label-5142
SELECT 25 / - + 28 + + 5 - - SUM ( - 46 )
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-5143
SELECT ALL - 14 DIV 98 DIV - + 37 * + 63
----
0

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL - 14 / 98 / - + 37 * + 63
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5144
SELECT - - 9 DIV - ( + 17 ) + - 37 * + 35 * 97 + 2
----
-125613

skipif mysql # not compatible
query I rowsort label-5144
SELECT - - 9 / - ( + 17 ) + - 37 * + 35 * 97 + 2
----
-125613

query I rowsort
SELECT ALL + CASE 5 WHEN - 28 * - 33 THEN NULL ELSE + + 92 END
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT ALL - 6 * + 97 + + COUNT( * ) * - COUNT( * ) AS col2
----
-583

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL - 6 * + 97 + + COUNT ( * ) * - COUNT ( * ) AS col2
----
-583

query I rowsort
SELECT NULLIF ( + + 79, + COALESCE ( 12, - - 88 ) ) AS col0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5148
SELECT + 19 DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-5148
SELECT + 19 / 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT - 25 / - ( + 7 ) * - 13 + + + 73 * + - CASE - 39 WHEN 31 THEN + CASE - 16 WHEN + 27 + + COUNT( * ) * - 17 THEN + COUNT( * ) END * - 76 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5149
SELECT - 25 / - ( + 7 ) * - 13 + + + 73 * + - CASE - 39 WHEN 31 THEN + CASE - 16 WHEN + 27 + + COUNT ( * ) * - 17 THEN + COUNT ( * ) END * - 76 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 72 * + 13
----
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT ALL + 79 * + COUNT( * ) * 87 + - 88 * 24 col2
----
4761

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL + 79 * + COUNT ( * ) * 87 + - 88 * 24 col2
----
4761

onlyif mysql # DIV for integer division: 
query I rowsort label-5152
SELECT 95 DIV + 20 - 73 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-5152
SELECT 95 / + 20 - 73 AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT COALESCE ( - 95, + - 11 * + + MIN( - 71 ) + + + 86 + + 47 + - + 88 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-5153
SELECT COALESCE ( - 95, + - 11 * + + MIN ( - 71 ) + + + 86 + + 47 + - + 88 ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT ALL + MIN( - - 52 )
----
52

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL + MIN ( - - 52 )
----
52

query I rowsort
SELECT COALESCE ( 14, + 38, 13 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT DISTINCT + ( - 18 ) * 77 * + 3 * 9 * - 86 + + 40 + - 62 + COUNT( * )
----
3218271

skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT + ( - 18 ) * 77 * + 3 * 9 * - 86 + + 40 + - 62 + COUNT ( * )
----
3218271

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT DISTINCT + 69 * + - COALESCE ( - MIN( + 32 ), + MAX( DISTINCT + 44 ) ) - - + 80 AS col1
----
2288

skipif mysql # not compatible
query I rowsort label-5157
SELECT DISTINCT + 69 * + - COALESCE ( - MIN ( + 32 ), + MAX ( DISTINCT + 44 ) ) - - + 80 AS col1
----
2288

query I rowsort
SELECT - 6 + + 73
----
67

query II rowsort
SELECT ALL + 2 AS col1, 93 AS col2
----
2
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5160
SELECT COUNT( * ) * + 97 * - SUM( + 23 ) DIV + 23 + - 60 + - - 11 col0
----
-146

skipif mysql # not compatible
query I rowsort label-5160
SELECT COUNT ( * ) * + 97 * - SUM ( + 23 ) / + 23 + - 60 + - - 11 col0
----
-146

query I rowsort
SELECT - 99 * + + 80 * + 51 * + 54
----
-21811680

query I rowsort
SELECT DISTINCT - 69 * 3 AS col1
----
-207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5163
SELECT + + 12 * + 45 * - MAX( - 80 ) + + + 34 + + 11 - - - CAST( + COUNT( - - 89 ) AS SIGNED ) AS col1
----
43244

skipif mysql # not compatible
query I rowsort label-5163
SELECT + + 12 * + 45 * - MAX ( - 80 ) + + + 34 + + 11 - - - CAST ( + COUNT ( - - 89 ) AS INTEGER ) AS col1
----
43244

query I rowsort
SELECT - + 31 + + 78 AS col0
----
47

query I rowsort
SELECT ALL - 20 * + - 13 AS col0
----
260

query I rowsort
SELECT ALL ( - 10 )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5167
SELECT DISTINCT + CASE 54 WHEN + 13 + COUNT( * ) THEN NULL ELSE + CASE + 18 WHEN 84 THEN + + CAST( NULL AS DECIMAL ) + - 70 END * 3 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT DISTINCT + CASE 54 WHEN + 13 + COUNT ( * ) THEN NULL ELSE + CASE + 18 WHEN 84 THEN + + CAST ( NULL AS REAL ) + - 70 END * 3 END AS col2
----
NULL

query I rowsort
SELECT + + 81 + + - 66
----
15

query II rowsort
SELECT - 21 AS col2, + 30
----
-21
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT - 76 * + + NULLIF ( + MAX( DISTINCT - 6 ), + COUNT( * ) )
----
456

skipif mysql # not compatible
query I rowsort label-5170
SELECT - 76 * + + NULLIF ( + MAX ( DISTINCT - 6 ), + COUNT ( * ) )
----
456

onlyif mysql # DIV for integer division: 
query I rowsort label-5171
SELECT - 81 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-5171
SELECT - 81 / - 97
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5172
SELECT + 51 + 74 + + COUNT( * ) AS col1, 23 + + COUNT( * ) AS col0
----
126
24

skipif mysql # not compatible
query II rowsort label-5172
SELECT + 51 + 74 + + COUNT ( * ) AS col1, 23 + + COUNT ( * ) AS col0
----
126
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5173
SELECT + + SUM( - 49 ) DIV + - COUNT( * ) - + 34 - + + 35 * - 1
----
50

skipif mysql # not compatible
query I rowsort label-5173
SELECT + + SUM ( - 49 ) / + - COUNT ( * ) - + 34 - + + 35 * - 1
----
50

query I rowsort
SELECT ALL 34 + 74 AS col0
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-5175
SELECT DISTINCT 38 DIV - 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT 38 / - 44 AS col0
----
0

query I rowsort
SELECT DISTINCT - 65 + + 87
----
22

query I rowsort
SELECT + + 54 + 64
----
118

query I rowsort
SELECT ALL - ( + - 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT DISTINCT 96 + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT 96 + COUNT ( * )
----
97

query I rowsort
SELECT ALL - 74 + 31 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT DISTINCT - SUM( + - 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT - SUM ( + - 61 ) AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5182
SELECT + ( + 85 ) + - 89 + + 32 DIV - + CAST( 74 AS SIGNED ) * - 99 * + + 96 + 6 * + - 31
----
-190

skipif mysql # not compatible
query I rowsort label-5182
SELECT + ( + 85 ) + - 89 + + 32 / - + CAST ( 74 AS INTEGER ) * - 99 * + + 96 + 6 * + - 31
----
-190

query I rowsort
SELECT + 78 * 98 AS col0
----
7644

query I rowsort
SELECT + 84 + + 96 + + 28 col1
----
208

query I rowsort
SELECT ALL 90 * - 20
----
-1800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5186
SELECT CAST( + + 9 AS SIGNED ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5186
SELECT CAST ( + + 9 AS INTEGER ) AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5187
SELECT - ( + + COUNT( DISTINCT - 81 ) ) * - 30 + + 21 + COUNT( * ) * - 87 * - CAST( NULL AS SIGNED ) * 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5187
SELECT - ( + + COUNT ( DISTINCT - 81 ) ) * - 30 + + 21 + COUNT ( * ) * - 87 * - CAST ( NULL AS INTEGER ) * 87 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5188
SELECT ALL - COUNT( COALESCE ( + + 60, - - 79 ) ) / + + 76 + - - 47 * + 7 * 74 + - - CAST( NULL AS SIGNED ) + - + 20 - 38 / - CAST( - + 33 AS SIGNED ) + - - ( 97 ) * 65 - - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL - COUNT ( COALESCE ( + + 60, - - 79 ) ) / + + 76 + - - 47 * + 7 * 74 + - - CAST ( NULL AS INTEGER ) + - + 20 - 38 / - CAST ( - + 33 AS INTEGER ) + - - ( 97 ) * 65 - - 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT - 18 * - 22 * + SUM( ALL 27 )
----
10692

skipif mysql # not compatible
query I rowsort label-5189
SELECT - 18 * - 22 * + SUM ( ALL 27 )
----
10692

query I rowsort
SELECT ALL - 0 * 40
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5191
SELECT DISTINCT COUNT( * ) DIV + COUNT( - 64 )
----
1

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT COUNT ( * ) / + COUNT ( - 64 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT + 49 * + 76 + + 5 + + 93 * - - 25 * + COUNT( * )
----
6054

skipif mysql # not compatible
query I rowsort label-5192
SELECT + 49 * + 76 + + 5 + + 93 * - - 25 * + COUNT ( * )
----
6054

query I rowsort
SELECT ALL - 10 * 80 AS col0
----
-800

onlyif mysql # aggregate syntax: 
query II rowsort label-5194
SELECT + 82 * - 47 AS col0, + SUM( - 6 ) AS col0
----
-3854
-6

skipif mysql # not compatible
query II rowsort label-5194
SELECT + 82 * - 47 AS col0, + SUM ( - 6 ) AS col0
----
-3854
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5195
SELECT ALL - 1 * - CAST( - 49 AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL - 1 * - CAST ( - 49 AS INTEGER )
----
-49

query I rowsort
SELECT ( + + NULLIF ( + 99, - 35 ) ) AS col2
----
99

query I rowsort
SELECT + 58 * + 51 AS col2
----
2958

query I rowsort
SELECT - 64 + 97 * 69
----
6629

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5199
SELECT ALL - 37 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL - 37 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5200
SELECT - COUNT( * ) DIV + 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5200
SELECT - COUNT ( * ) / + 55 AS col1
----
0

query I rowsort
SELECT ALL + - NULLIF ( 38, - - 22 * - 38 + - 56 / 17 ) AS col0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5202
SELECT ALL + CAST( - + ( 59 ) AS SIGNED ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL + CAST ( - + ( 59 ) AS INTEGER ) AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5203
SELECT DISTINCT + 58 * + 78 - + + 12 + - - COUNT( * ) * - CAST( NULL AS SIGNED ) + + 73 + + + 43 * - COALESCE ( - COUNT( * ), CASE + 54 WHEN 51 THEN - 11 - + 90 + + 11 WHEN 13 THEN 30 * 18 END * 53 ) - 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT + 58 * + 78 - + + 12 + - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + 73 + + + 43 * - COALESCE ( - COUNT ( * ), CASE + 54 WHEN 51 THEN - 11 - + 90 + + 11 WHEN 13 THEN 30 * 18 END * 53 ) - 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT ALL MIN( DISTINCT + 48 ) col1
----
48

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL MIN ( DISTINCT + 48 ) col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5205
SELECT ALL + 72 * - CAST( NULL AS SIGNED ) + + COUNT( * ) - 87 + - + ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL + 72 * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) - 87 + - + ( + COUNT ( * ) )
----
NULL

query II rowsort
SELECT - 52 * + 46, 60 col0
----
-2392
60

onlyif mysql # aggregate syntax: 
query II rowsort label-5207
SELECT DISTINCT - - 17 + 30, COUNT( + 47 ) col1
----
47
1

skipif mysql # not compatible
query II rowsort label-5207
SELECT DISTINCT - - 17 + 30, COUNT ( + 47 ) col1
----
47
1

query I rowsort
SELECT ALL + 39 + - ( 94 ) * + + 70
----
-6541

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5209
SELECT 39 * - 15 * - - 20 + + + MAX( DISTINCT CAST( - + 64 AS SIGNED ) ) / + 48 * MIN( ALL + + CAST( NULL AS SIGNED ) ) + - AVG ( DISTINCT + 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT 39 * - 15 * - - 20 + + + MAX ( DISTINCT CAST ( - + 64 AS INTEGER ) ) / + 48 * MIN ( ALL + + CAST ( NULL AS INTEGER ) ) + - AVG ( DISTINCT + 65 )
----
NULL

query I rowsort
SELECT COALESCE ( - 32, + 30 * ( + 6 ) + 54, + 44 - - 40, - ( - 67 ) * - ( + - 89 ) ) - + 77 - 62 * - 35
----
2061

query I rowsort
SELECT ALL - - 42 * + 86
----
3612

query I rowsort
SELECT DISTINCT - 36 + + 57
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT ALL + COUNT( * ) * + - 96 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-5213
SELECT ALL + COUNT ( * ) * + - 96 AS col0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5214
SELECT ( - COALESCE ( 23, 65 * - 2 + + 57 ) ) / - SUM( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT ( - COALESCE ( 23, 65 * - 2 + + 57 ) ) / - SUM ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5215
SELECT ALL - + 75 + - + CAST( - + 88 AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL - + 75 + - + CAST ( - + 88 AS INTEGER )
----
13

query I rowsort
SELECT DISTINCT - 81 + + 27
----
-54

query I rowsort
SELECT 4 * - 88 AS col2
----
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT NULLIF ( - 5, + 67 + - COUNT( * ) ) + - 30 + 94 + - COUNT( * ) col1
----
58

skipif mysql # not compatible
query I rowsort label-5218
SELECT NULLIF ( - 5, + 67 + - COUNT ( * ) ) + - 30 + 94 + - COUNT ( * ) col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5219
SELECT 42 * - 50 * - 0 DIV + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5219
SELECT 42 * - 50 * - 0 / + COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5220
SELECT ALL 67 - + 13 + - CAST( NULL AS SIGNED ) * 17 * 55 - + - 4 + + 76 + - + CAST( NULL AS SIGNED ) * - MIN( + 8 ) + ( 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL 67 - + 13 + - CAST ( NULL AS INTEGER ) * 17 * 55 - + - 4 + + 76 + - + CAST ( NULL AS INTEGER ) * - MIN ( + 8 ) + ( 86 )
----
NULL

query I rowsort
SELECT ALL ( 61 ) - + - 27 + + + 48
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5222
SELECT COUNT( * ) DIV CAST( + 82 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5222
SELECT COUNT ( * ) / CAST ( + 82 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5223
SELECT 13 DIV + + ( - 96 ) + + 19
----
19

skipif mysql # not compatible
query I rowsort label-5223
SELECT 13 / + + ( - 96 ) + + 19
----
19

query II rowsort
SELECT DISTINCT - 6 col0, 98 AS col0
----
-6
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5225
SELECT DISTINCT 54 * 31 DIV - CAST( - 50 AS SIGNED ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT 54 * 31 / - CAST ( - 50 AS INTEGER ) AS col2
----
33

query I rowsort
SELECT 58 * + COALESCE ( 37, - - 53 + - - 39 + + 44 ) * - 7
----
-15022

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5227
SELECT ALL COUNT( * ) * CASE 37 WHEN + ( - CASE - 69 WHEN + 98 THEN NULL ELSE COALESCE ( COALESCE ( ( + 5 ), + - 66 * CAST( ( 83 ) AS SIGNED ) ), + 99, + 64 / + 3, - COUNT( * ) ) + - 63 END ) + 96 THEN NULLIF ( CASE 23 WHEN + COUNT( * ) THEN NULLIF ( + 17, - 58 ) + + 18 ELSE NULL END, + 12 * 67 ) WHEN 62 + - 67 * 64 THEN 9 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL COUNT ( * ) * CASE 37 WHEN + ( - CASE - 69 WHEN + 98 THEN NULL ELSE COALESCE ( COALESCE ( ( + 5 ), + - 66 * CAST ( ( 83 ) AS INTEGER ) ), + 99, + 64 / + 3, - COUNT ( * ) ) + - 63 END ) + 96 THEN NULLIF ( CASE 23 WHEN + COUNT ( * ) THEN NULLIF ( + 17, - 58 ) + + 18 ELSE NULL END, + 12 * 67 ) WHEN 62 + - 67 * 64 THEN 9 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 53 * - 62
----
-3286

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT COUNT( * ) * + - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5229
SELECT COUNT ( * ) * + - COUNT ( * ) col1
----
-1

query I rowsort
SELECT 83 * - - 97
----
8051

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT SUM( ALL - 30 ) - + 39
----
-69

skipif mysql # not compatible
query I rowsort label-5231
SELECT SUM ( ALL - 30 ) - + 39
----
-69

query II rowsort
SELECT 77 AS col0, 74
----
77
74

query I rowsort
SELECT DISTINCT - + 57 + + - 50
----
-107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5234
SELECT ALL + + 94 DIV + + COUNT( * ) - - 97 AS col0
----
191

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL + + 94 / + + COUNT ( * ) - - 97 AS col0
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT MIN( ALL + - 34 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-5235
SELECT MIN ( ALL + - 34 ) AS col1
----
-34

query I rowsort
SELECT ALL - - ( + 47 ) + - + 9
----
38

query II rowsort
SELECT + + 48 AS col2, + 59
----
48
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT 94 + + + COUNT( * ) * - - 22 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-5238
SELECT 94 + + + COUNT ( * ) * - - 22 AS col2
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5239
SELECT ALL - + 40 + 40 + + + 98 * CAST( NULL AS SIGNED ) * - - 43 + + - 47 + - - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL - + 40 + 40 + + + 98 * CAST ( NULL AS INTEGER ) * - - 43 + + - 47 + - - 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT 41 + + 70 + + SUM( DISTINCT - - 75 )
----
186

skipif mysql # not compatible
query I rowsort label-5240
SELECT 41 + + 70 + + SUM ( DISTINCT - - 75 )
----
186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5241
SELECT ALL ( - - 24 ) + + - 17 * 63 + - 18 + + ( 93 ) DIV - 59 + + COUNT( + 88 )
----
-1065

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL ( - - 24 ) + + - 17 * 63 + - 18 + + ( 93 ) / - 59 + + COUNT ( + 88 )
----
-1065

query II rowsort
SELECT 55, + 54 AS col0
----
55
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT ALL + COUNT( * ) + + 90
----
91

skipif mysql # not compatible
query I rowsort label-5243
SELECT ALL + COUNT ( * ) + + 90
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5244
SELECT - 56 * + CAST( 16 AS SIGNED ) * - COUNT( * ) + - + COUNT( * ), 5 + + ( - CASE - 87 WHEN 12 THEN - + 25 ELSE NULL END ) + - 4 AS col2
----
895
NULL

skipif mysql # not compatible
query II rowsort label-5244
SELECT - 56 * + CAST ( 16 AS INTEGER ) * - COUNT ( * ) + - + COUNT ( * ), 5 + + ( - CASE - 87 WHEN 12 THEN - + 25 ELSE NULL END ) + - 4 AS col2
----
895
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT 64 * COALESCE ( NULLIF ( NULLIF ( COUNT( * ), + 5 ), - 19 ), COUNT( * ) * - 90 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-5245
SELECT 64 * COALESCE ( NULLIF ( NULLIF ( COUNT ( * ), + 5 ), - 19 ), COUNT ( * ) * - 90 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT ALL + 91 - 88 + COALESCE ( - + 12, COUNT( * ), + + 0 * + - MIN( 62 ) + - - 46 * - - 64 ) col1
----
-9

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL + 91 - 88 + COALESCE ( - + 12, COUNT ( * ), + + 0 * + - MIN ( 62 ) + - - 46 * - - 64 ) col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT 13 * - - 69 * + COUNT( DISTINCT + + 46 )
----
897

skipif mysql # not compatible
query I rowsort label-5247
SELECT 13 * - - 69 * + COUNT ( DISTINCT + + 46 )
----
897

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT COUNT( * ) * + - 69 * - 79
----
5451

skipif mysql # not compatible
query I rowsort label-5248
SELECT COUNT ( * ) * + - 69 * - 79
----
5451

query I rowsort
SELECT DISTINCT + 27 * + + 43 * + 72
----
83592

query I rowsort
SELECT ALL + 18 * + 41 AS col1
----
738

onlyif mysql # DIV for integer division: 
query I rowsort label-5251
SELECT ALL + 45 DIV + 1 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL + 45 / + 1 AS col2
----
45

query II rowsort
SELECT 19 + - - 22 - + - 10 - - 39, - 27 AS col0
----
90
-27

query II rowsort
SELECT 16 AS col2, - 14 + + - 83
----
16
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5254
SELECT 29 + + CAST( NULL AS SIGNED ) + + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-5254
SELECT 29 + + CAST ( NULL AS INTEGER ) + + + 88
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5255
SELECT + 3 DIV + + 75 + - 49
----
-49

skipif mysql # not compatible
query I rowsort label-5255
SELECT + 3 / + + 75 + - 49
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5256
SELECT DISTINCT - CAST( NULLIF ( 40, + + 63 ) AS SIGNED ) AS col2, - 30
----
-40
-30

skipif mysql # not compatible
query II rowsort label-5256
SELECT DISTINCT - CAST ( NULLIF ( 40, + + 63 ) AS INTEGER ) AS col2, - 30
----
-40
-30

query I rowsort
SELECT + 78 * + + 41 + 33 + - 90
----
3141

onlyif mysql # aggregate syntax: 
query III rowsort label-5258
SELECT ALL - 12 col2, + 46 + - 43 * - 18 AS col2, CASE - 71 WHEN 31 * - 43 THEN NULL WHEN 53 THEN SUM( - 48 ) END
----
-12
820
NULL

skipif mysql # not compatible
query III rowsort label-5258
SELECT ALL - 12 col2, + 46 + - 43 * - 18 AS col2, CASE - 71 WHEN 31 * - 43 THEN NULL WHEN 53 THEN SUM ( - 48 ) END
----
-12
820
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5259
SELECT ( + + 26 ) DIV 77 * 43 * + ( 12 ) * 51 - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5259
SELECT ( + + 26 ) / 77 * 43 * + ( 12 ) * 51 - + COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5260
SELECT DISTINCT 88 DIV + 89 * - 85
----
0

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT 88 / + 89 * - 85
----
0

query I rowsort
SELECT ALL 34 * + 40 + 73
----
1433

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5262
SELECT ALL + 77 * - + MIN( ALL 9 ) + - - 29 DIV + 2 AS col2
----
-679

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL + 77 * - + MIN ( ALL 9 ) + - - 29 / + 2 AS col2
----
-679

query I rowsort
SELECT 73 + - 23 col0
----
50

query I rowsort
SELECT ALL 77 * 83 + + 83
----
6474

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5265
SELECT + CAST( NULL AS SIGNED ) * - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5265
SELECT + CAST ( NULL AS INTEGER ) * - 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT DISTINCT 25 * 92 + - SUM( + 78 ) + 85 AS col1
----
2307

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT 25 * 92 + - SUM ( + 78 ) + 85 AS col1
----
2307

query I rowsort
SELECT + 3 + 39
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5268
SELECT DISTINCT - 80 * - + 77 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5268
SELECT DISTINCT - 80 * - + 77 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + ( - - 64 ) AS col0
----
64

query I rowsort
SELECT ALL - 36 + + 60 * + 5 AS col1
----
264

onlyif mysql # aggregate syntax: 
query II rowsort label-5271
SELECT 88, - 81 * ( + COALESCE ( + + 55, + NULLIF ( - 3, + COUNT( * ) ) + COUNT( * ) * - 12, 92 ) ) AS col1
----
88
-4455

skipif mysql # not compatible
query II rowsort label-5271
SELECT 88, - 81 * ( + COALESCE ( + + 55, + NULLIF ( - 3, + COUNT ( * ) ) + COUNT ( * ) * - 12, 92 ) ) AS col1
----
88
-4455

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5272
SELECT ALL - 45 AS col1, CAST( NULL AS DECIMAL ) + - + 18
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-5272
SELECT ALL - 45 AS col1, CAST ( NULL AS REAL ) + - + 18
----
-45
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5273
SELECT + + 76 * - 88 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5273
SELECT + + 76 * - 88 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 19 * + 72 * - 17
----
23256

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5275
SELECT ALL + 22 col1, 27 + NULLIF ( + 71, - - CAST( NULL AS SIGNED ) ) AS col1
----
22
98

skipif mysql # not compatible
query II rowsort label-5275
SELECT ALL + 22 col1, 27 + NULLIF ( + 71, - - CAST ( NULL AS INTEGER ) ) AS col1
----
22
98

query I rowsort
SELECT - - 65 col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT + 72 / 14 * - 67 * + 12 * + CASE + 35 WHEN - + ( 60 ) THEN 1 ELSE NULL END * - 4 / + 70 * + 88 - - + COUNT( * ) * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5277
SELECT + 72 / 14 * - 67 * + 12 * + CASE + 35 WHEN - + ( 60 ) THEN 1 ELSE NULL END * - 4 / + 70 * + 88 - - + COUNT ( * ) * 82
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5278
SELECT - NULLIF ( - - CASE + + 17 WHEN - - 50 THEN CAST( - 22 AS SIGNED ) + - COUNT( * ) ELSE NULL END, - CAST( NULL AS DECIMAL ) ) * - + NULLIF ( COALESCE ( + CAST( + NULLIF ( - - COUNT( * ), + 8 / - NULLIF ( SUM( - 54 ), AVG ( DISTINCT + 61 ) ) + - 65 * + ( NULLIF ( + 56, - 16 ) + 61 * - 3 ) ) AS SIGNED ), - CAST( 21 AS SIGNED ) ), 93 / + COUNT( * ) ) / 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5278
SELECT - NULLIF ( - - CASE + + 17 WHEN - - 50 THEN CAST ( - 22 AS INTEGER ) + - COUNT ( * ) ELSE NULL END, - CAST ( NULL AS REAL ) ) * - + NULLIF ( COALESCE ( + CAST ( + NULLIF ( - - COUNT ( * ), + 8 / - NULLIF ( SUM ( - 54 ), AVG ( DISTINCT + 61 ) ) + - 65 * + ( NULLIF ( + 56, - 16 ) + 61 * - 3 ) ) AS INTEGER ), - CAST ( 21 AS INTEGER ) ), 93 / + COUNT ( * ) ) / 96 AS col0
----
NULL

query I rowsort
SELECT ALL + ( 87 ) * + 61 AS col0
----
5307

query I rowsort
SELECT ALL 31 * - 2 col0
----
-62

query I rowsort
SELECT DISTINCT NULLIF ( - 20, - 62 )
----
-20

query I rowsort
SELECT ALL ( + - 51 ) * - 3
----
153

query I rowsort
SELECT + 90 + - + ( + 52 ) * 19
----
-898

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT - ( + ( - + ( - - CASE + 13 WHEN + - 50 THEN + COUNT( * ) WHEN 13 THEN NULL END ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5284
SELECT - ( + ( - + ( - - CASE + 13 WHEN + - 50 THEN + COUNT ( * ) WHEN 13 THEN NULL END ) ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5285
SELECT + 66 + - - 80 DIV - + 81 + - + 14 * + 15 * - + 37 AS col1
----
7836

skipif mysql # not compatible
query I rowsort label-5285
SELECT + 66 + - - 80 / - + 81 + - + 14 * + 15 * - + 37 AS col1
----
7836

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5286
SELECT - ( - - 53 ) * COUNT( * ) + - - 39 DIV - - 71
----
-53

skipif mysql # not compatible
query I rowsort label-5286
SELECT - ( - - 53 ) * COUNT ( * ) + - - 39 / - - 71
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT DISTINCT SUM( DISTINCT + ( + 32 ) ) + + + NULLIF ( 67, 93 )
----
99

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT SUM ( DISTINCT + ( + 32 ) ) + + + NULLIF ( 67, 93 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT ALL + 78 + - COALESCE ( - + COUNT( * ), - - 92 + + - 4 + - 65, - MIN( + 21 ) + + + 82 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL + 78 + - COALESCE ( - + COUNT ( * ), - - 92 + + - 4 + - 65, - MIN ( + 21 ) + + + 82 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT - ( - MIN( - 81 ) ) * - COUNT( * ) * + 65 AS col2
----
5265

skipif mysql # not compatible
query I rowsort label-5289
SELECT - ( - MIN ( - 81 ) ) * - COUNT ( * ) * + 65 AS col2
----
5265

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5290
SELECT 87 / + CAST( NULL AS DECIMAL ) + + + 34 * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-5290
SELECT 87 / + CAST ( NULL AS REAL ) + + + 34 * + 87
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5291
SELECT DISTINCT + 97 DIV + 49, - 72 AS col1
----
1
-72

skipif mysql # not compatible
query II rowsort label-5291
SELECT DISTINCT + 97 / + 49, - 72 AS col1
----
1
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-5292
SELECT ALL 5 DIV - 97 + + 37 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL 5 / - 97 + + 37 AS col0
----
37

query I rowsort
SELECT ALL COALESCE ( - + 64, - 16, - + 76 + - + 45 * - 44 ) * + 40 AS col0
----
-2560

query I rowsort
SELECT ( - + 49 )
----
-49

query II rowsort
SELECT - 23 * - 3 AS col2, 32 + - 10 + 91 * + - 61 * - - 44 AS col1
----
69
-244222

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT - SUM( - 1 ) * - 81 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-5296
SELECT - SUM ( - 1 ) * - 81 AS col1
----
-81

query I rowsort
SELECT + CASE - + 29 WHEN - + 35 THEN 28 + + 97 / + 86 END / 87 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5298
SELECT ALL + SUM( - 9 ) DIV - 68 + + - 74 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL + SUM ( - 9 ) / - 68 + + - 74 AS col0
----
-74

query I rowsort
SELECT - ( - - 38 ) AS col1
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5300
SELECT ALL - COUNT( * ) * + + MIN( 89 ) - + 83 + + 99 + 95 - + CAST( ( - 34 ) AS SIGNED ) + + 6 * + 36 AS col1
----
272

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL - COUNT ( * ) * + + MIN ( 89 ) - + 83 + + 99 + 95 - + CAST ( ( - 34 ) AS INTEGER ) + + 6 * + 36 AS col1
----
272

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT - 20 + 65 - + MIN( ALL 64 )
----
-19

skipif mysql # not compatible
query I rowsort label-5301
SELECT - 20 + 65 - + MIN ( ALL 64 )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5302
SELECT 5 * + 7 * + SUM( - + 33 ) + CAST( + 65 AS SIGNED ) * + 68 + COUNT( * ) - + COUNT( * ) * + - 6
----
3272

skipif mysql # not compatible
query I rowsort label-5302
SELECT 5 * + 7 * + SUM ( - + 33 ) + CAST ( + 65 AS INTEGER ) * + 68 + COUNT ( * ) - + COUNT ( * ) * + - 6
----
3272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5303
SELECT + - 47 * - + CAST( - 34 AS SIGNED ) AS col1
----
-1598

skipif mysql # not compatible
query I rowsort label-5303
SELECT + - 47 * - + CAST ( - 34 AS INTEGER ) AS col1
----
-1598

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5304
SELECT + 72 * 71 - 30 + 75 + - 15 * + + ( - NULLIF ( - 99, - + CASE + - ( + 50 ) WHEN 61 * - 26 * 21 + - 65 * CAST( 67 AS DECIMAL ) THEN - CAST( 70 AS SIGNED ) WHEN - 63 - 56 / 28 THEN + 38 END * 46 ) ) + 51 * - 38
----
1734

skipif mysql # not compatible
query I rowsort label-5304
SELECT + 72 * 71 - 30 + 75 + - 15 * + + ( - NULLIF ( - 99, - + CASE + - ( + 50 ) WHEN 61 * - 26 * 21 + - 65 * CAST ( 67 AS REAL ) THEN - CAST ( 70 AS INTEGER ) WHEN - 63 - 56 / 28 THEN + 38 END * 46 ) ) + 51 * - 38
----
1734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5305
SELECT ALL + - 67 * - CAST( COUNT( * ) AS SIGNED ) - MIN( DISTINCT + + 13 ) + - 65
----
-11

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL + - 67 * - CAST ( COUNT ( * ) AS INTEGER ) - MIN ( DISTINCT + + 13 ) + - 65
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5306
SELECT - + 19 * CASE + 20 WHEN + - 14 THEN + 24 WHEN - + SUM( + - 37 ) THEN + 3 * + 79 / - ( + - 76 ) WHEN + ( + - 98 ) * 64 THEN + CAST( NULL AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5306
SELECT - + 19 * CASE + 20 WHEN + - 14 THEN + 24 WHEN - + SUM ( + - 37 ) THEN + 3 * + 79 / - ( + - 76 ) WHEN + ( + - 98 ) * 64 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT ALL + 75 * + + 58 AS col2, 73 AS col0
----
4350
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT + + 69 + - MAX( DISTINCT 85 )
----
-16

skipif mysql # not compatible
query I rowsort label-5308
SELECT + + 69 + - MAX ( DISTINCT 85 )
----
-16

query II rowsort
SELECT ALL + + 64 * - 45 - 50 AS col1, + 14 + 35 AS col2
----
-2930
49

query I rowsort
SELECT + - ( + 46 ) + + 92 AS col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5311
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN - - COUNT( * ) THEN - 85 + 91 END AS col2, 37 AS col2
----
NULL
37

skipif mysql # not compatible
query II rowsort label-5311
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN - - COUNT ( * ) THEN - 85 + 91 END AS col2, 37 AS col2
----
NULL
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT MIN( + ( + 10 ) )
----
10

skipif mysql # not compatible
query I rowsort label-5312
SELECT MIN ( + ( + 10 ) )
----
10

query II rowsort
SELECT DISTINCT 57 AS col0, + 0 col1
----
57
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5314
SELECT ALL 14 DIV - - 97
----
0

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL 14 / - - 97
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5315
SELECT + 19 DIV COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-5315
SELECT + 19 / COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT + COUNT( ALL - - ( - 3 ) ) + - ( + 56 ) + 51 * 9 AS col0
----
404

skipif mysql # not compatible
query I rowsort label-5316
SELECT + COUNT ( ALL - - ( - 3 ) ) + - ( + 56 ) + 51 * 9 AS col0
----
404

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT SUM( - + 28 ) col0
----
-28

skipif mysql # not compatible
query I rowsort label-5317
SELECT SUM ( - + 28 ) col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT + 66 * - COUNT( * ) * 64 * + 23 col1
----
-97152

skipif mysql # not compatible
query I rowsort label-5318
SELECT + 66 * - COUNT ( * ) * 64 * + 23 col1
----
-97152

query I rowsort
SELECT + 72 + 98
----
170

onlyif mysql # DIV for integer division: 
query I rowsort label-5320
SELECT ALL 78 DIV - + 28
----
-2

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL 78 / - + 28
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5321
SELECT - ( CAST( + + CAST( - ( + COUNT( * ) ) AS SIGNED ) AS SIGNED ) ) + - 29 + + 73 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-5321
SELECT - ( CAST ( + + CAST ( - ( + COUNT ( * ) ) AS INTEGER ) AS INTEGER ) ) + - 29 + + 73 AS col0
----
45

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5322
SELECT - CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT - CAST ( + - CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

query I rowsort
SELECT ALL 71 + + 93
----
164

query I rowsort
SELECT + 36 * - 69
----
-2484

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5325
SELECT ALL COUNT( * ) DIV + 45 * 3
----
0

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL COUNT ( * ) / + 45 * 3
----
0

query I rowsort
SELECT + 53 + + + 48 AS col0
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-5327
SELECT 93 AS col1, - COUNT( * )
----
93
-1

skipif mysql # not compatible
query II rowsort label-5327
SELECT 93 AS col1, - COUNT ( * )
----
93
-1

query I rowsort
SELECT ALL ( + 98 ) AS col1
----
98

query I rowsort
SELECT + 17 + 49 AS col2
----
66

query II rowsort
SELECT + 51 AS col0, + 22 * - + 8
----
51
-176

query II rowsort
SELECT - 0 * ( + + 62 ) + 41 col0, 13 * - 56 AS col0
----
41
-728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5332
SELECT + 12 DIV - MIN( - - 87 ) * - - 6 + + 97
----
97

skipif mysql # not compatible
query I rowsort label-5332
SELECT + 12 / - MIN ( - - 87 ) * - - 6 + + 97
----
97

query I rowsort
SELECT DISTINCT + - ( - - 15 ) - ( + 92 )
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT ALL - - 33 * - - COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL - - 33 * - - COUNT ( * ) AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-5335
SELECT ALL - - 16 DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL - - 16 / 50
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5336
SELECT DISTINCT - + COUNT( ALL - CAST( - 20 AS DECIMAL ) ) * 76 + - 38 DIV 3 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT - + COUNT ( ALL - CAST ( - 20 AS REAL ) ) * 76 + - 38 / 3 AS col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5337
SELECT - CAST( + COALESCE ( 89, + 39, + ( 5 ) + MIN( DISTINCT + 12 ) - + 59 * - - 98 * 25, + CASE WHEN NULL IS NULL THEN 6 WHEN NOT COUNT( * ) + + COALESCE ( - COUNT( * ), + 67 + - 74, - COUNT( * ) + COUNT( * ) * 40 ) >= CAST( NULL AS SIGNED ) * + ( - 95 * + ( 49 ) ) THEN NULL END ) AS SIGNED ) * + 28 col0
----
-2492

skipif mysql # not compatible
query I rowsort label-5337
SELECT - CAST ( + COALESCE ( 89, + 39, + ( 5 ) + MIN ( DISTINCT + 12 ) - + 59 * - - 98 * 25, + CASE WHEN NULL IS NULL THEN 6 WHEN NOT COUNT ( * ) + + COALESCE ( - COUNT ( * ), + 67 + - 74, - COUNT ( * ) + COUNT ( * ) * 40 ) >= CAST ( NULL AS INTEGER ) * + ( - 95 * + ( 49 ) ) THEN NULL END ) AS INTEGER ) * + 28 col0
----
-2492

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT 59 * 74 + + + ( CASE + + 82 WHEN ( COUNT( * ) ) THEN NULL WHEN + 22 * ( + - COUNT( * ) ) * - 16 + - 15 + 16 + COUNT( * ) * + + 73 * - COUNT( * ) THEN + 73 ELSE - - 40 * COUNT( DISTINCT - 43 + + 24 ) END )
----
4406

skipif mysql # not compatible
query I rowsort label-5338
SELECT 59 * 74 + + + ( CASE + + 82 WHEN ( COUNT ( * ) ) THEN NULL WHEN + 22 * ( + - COUNT ( * ) ) * - 16 + - 15 + 16 + COUNT ( * ) * + + 73 * - COUNT ( * ) THEN + 73 ELSE - - 40 * COUNT ( DISTINCT - 43 + + 24 ) END )
----
4406

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT ALL - - COUNT( ALL - + 96 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL - - COUNT ( ALL - + 96 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5340
SELECT + 45 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5340
SELECT + 45 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5341
SELECT 87 * - COUNT( * ) + 43 + - 89 DIV - + 84 + + - 62 AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-5341
SELECT 87 * - COUNT ( * ) + 43 + - 89 / - + 84 + + - 62 AS col0
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5342
SELECT 86 * - 73 - + 34 - - 86 DIV + 78 - - COUNT( * ) AS col2
----
-6310

skipif mysql # not compatible
query I rowsort label-5342
SELECT 86 * - 73 - + 34 - - 86 / + 78 - - COUNT ( * ) AS col2
----
-6310

query I rowsort
SELECT 77 * 74 AS col2
----
5698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5344
SELECT ALL 30 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL 30 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT MAX( DISTINCT - 99 ) - + 88 AS col1
----
-187

skipif mysql # not compatible
query I rowsort label-5345
SELECT MAX ( DISTINCT - 99 ) - + 88 AS col1
----
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT 67 - + - 95 + - ( - 14 ) * 58 * - - 17 - + COUNT( * ) * - - COUNT( * ) + + + 90 + + 40
----
14095

skipif mysql # not compatible
query I rowsort label-5346
SELECT 67 - + - 95 + - ( - 14 ) * 58 * - - 17 - + COUNT ( * ) * - - COUNT ( * ) + + + 90 + + 40
----
14095

query I rowsort
SELECT ALL 36 + - 93 * + 96
----
-8892

query II rowsort
SELECT ALL 94 + - 53, - 38 AS col2
----
41
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT COUNT( * ) + - 50 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-5349
SELECT COUNT ( * ) + - 50 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT COUNT( ALL - + 3 ) * 19
----
19

skipif mysql # not compatible
query I rowsort label-5350
SELECT COUNT ( ALL - + 3 ) * 19
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5351
SELECT DISTINCT 23 DIV 28
----
0

skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT 23 / 28
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5352
SELECT 11 DIV 68 * 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5352
SELECT 11 / 68 * 85 AS col1
----
0

query I rowsort
SELECT ALL - 51 - - ( - - 10 ) + + 33
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5354
SELECT DISTINCT + MAX( + 5 ) * 89 + - 30 DIV - 83 AS col1
----
445

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT + MAX ( + 5 ) * 89 + - 30 / - 83 AS col1
----
445

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5355
SELECT - 10 DIV + 2 + - 59 + - + 39 + - ( + - 76 ) + + - COUNT( * ) + 98 + 9 DIV + + 24 + - 68 * - + 41 AS col0
----
2858

skipif mysql # not compatible
query I rowsort label-5355
SELECT - 10 / + 2 + - 59 + - + 39 + - ( + - 76 ) + + - COUNT ( * ) + 98 + 9 / + + 24 + - 68 * - + 41 AS col0
----
2858

query I rowsort
SELECT - 36 * + 85
----
-3060

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT ALL 6 * + 42 + - 31 - NULLIF ( + - 12, - 69 ) * MAX( DISTINCT 90 )
----
1301

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL 6 * + 42 + - 31 - NULLIF ( + - 12, - 69 ) * MAX ( DISTINCT 90 )
----
1301

query II rowsort
SELECT ALL 10 * - 71 * 41 + + 85 AS col1, - 66
----
-29025
-66

query I rowsort
SELECT - 50 * + - 93
----
4650

query I rowsort
SELECT DISTINCT - 58 * - 48 * - 97
----
-270048

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT + + NULLIF ( - - NULLIF ( + - 0, - 47 * ( - 91 ) * - 81 + + AVG ( DISTINCT - + 19 ) - 28 + + 57 ), CASE - 7 WHEN + 66 THEN - ( COUNT( * ) ) WHEN + 86 THEN 24 ELSE NULL END - ( 2 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5361
SELECT + + NULLIF ( - - NULLIF ( + - 0, - 47 * ( - 91 ) * - 81 + + AVG ( DISTINCT - + 19 ) - 28 + + 57 ), CASE - 7 WHEN + 66 THEN - ( COUNT ( * ) ) WHEN + 86 THEN 24 ELSE NULL END - ( 2 ) ) AS col2
----
0

query I rowsort
SELECT + 16 * + ( + 14 )
----
224

query I rowsort
SELECT 64 - - 79
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5364
SELECT ALL + AVG ( DISTINCT + + 84 ) + 85 / - 66 * + 10 * - - MAX( ALL + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL + AVG ( DISTINCT + + 84 ) + 85 / - 66 * + 10 * - - MAX ( ALL + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 14 * - 63 AS col1
----
882

onlyif mysql # DIV for integer division: 
query I rowsort label-5366
SELECT 2 DIV - ( - + 29 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5366
SELECT 2 / - ( - + 29 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5367
SELECT + ( + 67 ) + + NULLIF ( 6, - 36 * CASE 73 WHEN + 33 THEN + 6 * COUNT( * ) ELSE 98 * - + 45 + + CAST( + 11 AS SIGNED ) END / 81 * + 5 + - COUNT( NULLIF ( + 73, 97 ) ) ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-5367
SELECT + ( + 67 ) + + NULLIF ( 6, - 36 * CASE 73 WHEN + 33 THEN + 6 * COUNT ( * ) ELSE 98 * - + 45 + + CAST ( + 11 AS INTEGER ) END / 81 * + 5 + - COUNT ( NULLIF ( + 73, 97 ) ) ) AS col2
----
73

query I rowsort
SELECT ( + 14 ) - - + 31 + - + 38
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5369
SELECT ALL + + CASE CAST( + + 24 AS SIGNED ) WHEN + - 68 + - + 32 / - 72 THEN 87 END * + - CAST( + + AVG ( DISTINCT + + 8 ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL + + CASE CAST ( + + 24 AS INTEGER ) WHEN + - 68 + - + 32 / - 72 THEN 87 END * + - CAST ( + + AVG ( DISTINCT + + 8 ) AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL - ( 75 ) + 38
----
-37

query I rowsort
SELECT 91 * - + 44 + + 73
----
-3931

onlyif mysql # DIV for integer division: 
query I rowsort label-5372
SELECT 41 DIV ( - + 10 ) * + 13 + 86 * - 68 AS col0
----
-5900

skipif mysql # not compatible
query I rowsort label-5372
SELECT 41 / ( - + 10 ) * + 13 + 86 * - 68 AS col0
----
-5900

onlyif mysql # DIV for integer division: 
query I rowsort label-5373
SELECT 77 DIV 19 col2
----
4

skipif mysql # not compatible
query I rowsort label-5373
SELECT 77 / 19 col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5374
SELECT ALL + 55 + + + COALESCE ( - - 98, + MAX( ALL + 62 ) + + - 85, 40 * 92 DIV - COUNT( * ), ( + ( - - 59 ) ) ) AS col0
----
153

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL + 55 + + + COALESCE ( - - 98, + MAX ( ALL + 62 ) + + - 85, 40 * 92 / - COUNT ( * ), ( + ( - - 59 ) ) ) AS col0
----
153

query II rowsort
SELECT - 12 * 24 + - 56 AS col0, + 39
----
-344
39

query I rowsort
SELECT 57 + NULLIF ( 72, + 23 * - 20 ) AS col2
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5377
SELECT ALL NULLIF ( + 42, - + 85 * CAST( - 9 AS SIGNED ) )
----
42

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL NULLIF ( + 42, - + 85 * CAST ( - 9 AS INTEGER ) )
----
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5378
SELECT DISTINCT 25, CASE - COALESCE ( 91, 51 * + - 95, + - 53 * + MIN( + - 43 ) + - + COUNT( - 37 ) + - - 36 ) WHEN + 23 / - 85 + - CAST( NULL AS DECIMAL ) THEN + + 22 ELSE + + 7 END AS col0
----
25
7

skipif mysql # not compatible
query II rowsort label-5378
SELECT DISTINCT 25, CASE - COALESCE ( 91, 51 * + - 95, + - 53 * + MIN ( + - 43 ) + - + COUNT ( - 37 ) + - - 36 ) WHEN + 23 / - 85 + - CAST ( NULL AS REAL ) THEN + + 22 ELSE + + 7 END AS col0
----
25
7

query I rowsort
SELECT 76 + + 80 AS col1
----
156

query I rowsort
SELECT ALL - 92 + + - 98 + - 90
----
-280

onlyif mysql # DIV for integer division: 
query I rowsort label-5381
SELECT DISTINCT + 38 DIV + 5
----
7

skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT + 38 / + 5
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5382
SELECT + CAST( - CASE + ( - + 19 ) WHEN + COUNT( * ) THEN + ( + 91 ) * + - 24 + + 94 + - 72 - - - 99 ELSE NULL END AS SIGNED ) + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-5382
SELECT + CAST ( - CASE + ( - + 19 ) WHEN + COUNT ( * ) THEN + ( + 91 ) * + - 24 + + 94 + - 72 - - - 99 ELSE NULL END AS INTEGER ) + 73
----
NULL

query II rowsort
SELECT 23 col2, - 95
----
23
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-5384
SELECT + 59 + 74 DIV 61 col1
----
60

skipif mysql # not compatible
query I rowsort label-5384
SELECT + 59 + 74 / 61 col1
----
60

query I rowsort
SELECT DISTINCT 82 * 84
----
6888

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5386
SELECT - - 14 DIV - COUNT( ALL - - 57 ) AS col2, - 86 * + + 59
----
-14
-5074

skipif mysql # not compatible
query II rowsort label-5386
SELECT - - 14 / - COUNT ( ALL - - 57 ) AS col2, - 86 * + + 59
----
-14
-5074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5387
SELECT + - 9 * + + 14 * - - CAST( COUNT( * ) AS SIGNED ) - COUNT( + + 63 ) AS col2
----
-127

skipif mysql # not compatible
query I rowsort label-5387
SELECT + - 9 * + + 14 * - - CAST ( COUNT ( * ) AS INTEGER ) - COUNT ( + + 63 ) AS col2
----
-127

query I rowsort
SELECT + 43 + + 38 + - 37 AS col2
----
44

query I rowsort
SELECT + 56 + 52
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5390
SELECT + COUNT( * ) DIV 81 * + 8 + - - ( - + 36 ), + 10 + 30 * + 28 * - MAX( - 21 ) * + ( + + 27 ) AS col0
----
-36
476290

skipif mysql # not compatible
query II rowsort label-5390
SELECT + COUNT ( * ) / 81 * + 8 + - - ( - + 36 ), + 10 + 30 * + 28 * - MAX ( - 21 ) * + ( + + 27 ) AS col0
----
-36
476290

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT - - 81 * CASE + 45 WHEN - - 92 - - COUNT( ALL - - 79 ) + - 9 * 46 THEN 51 END + 78 * - MIN( - 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5391
SELECT - - 81 * CASE + 45 WHEN - - 92 - - COUNT ( ALL - - 79 ) + - 9 * 46 THEN 51 END + 78 * - MIN ( - 52 )
----
NULL

query I rowsort
SELECT ALL + - 83 col1
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5393
SELECT DISTINCT + 46 * 18 DIV - 76 DIV COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT + 46 * 18 / - 76 / COUNT ( * )
----
-10

query I rowsort
SELECT ALL - NULLIF ( 82, 33 / - - 87 ) * + 95 + - 0 AS col2
----
-7790

query I rowsort
SELECT + + 7 * + + 13 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT + + MIN( DISTINCT - - 95 ) + - 15
----
80

skipif mysql # not compatible
query I rowsort label-5396
SELECT + + MIN ( DISTINCT - - 95 ) + - 15
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5397
SELECT DISTINCT 29 * - CAST( - 37 AS SIGNED )
----
1073

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT 29 * - CAST ( - 37 AS INTEGER )
----
1073

query I rowsort
SELECT + 65 * + + 57 + + 88 + + 35 + 61
----
3889

query I rowsort
SELECT + + 47 * - 51
----
-2397

query I rowsort
SELECT NULLIF ( + - 5, - NULLIF ( - ( - + 25 ), + ( 46 ) ) ) col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT - 49 + - COUNT( * ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-5401
SELECT - 49 + - COUNT ( * ) AS col1
----
-50

query I rowsort
SELECT ALL 27 * - - 21 + - 22 col2
----
545

query I rowsort
SELECT + ( + 52 ) col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT ALL + 51 * - COUNT( DISTINCT + + 88 ) * - + 1
----
51

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL + 51 * - COUNT ( DISTINCT + + 88 ) * - + 1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5405
SELECT ALL 64 * - 35 / + COUNT( * ) * - + 83 / 52 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5405
SELECT ALL 64 * - 35 / + COUNT ( * ) * - + 83 / 52 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT + COUNT( * ) - 30 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-5406
SELECT + COUNT ( * ) - 30 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT ALL 13 * - - SUM( - 97 )
----
-1261

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL 13 * - - SUM ( - 97 )
----
-1261

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5408
SELECT - 27 AS col0, - 72 + + - CAST( NULL AS SIGNED ) * - ( - + 58 ) / - 22 + + 71 + - - 47
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-5408
SELECT - 27 AS col0, - 72 + + - CAST ( NULL AS INTEGER ) * - ( - + 58 ) / - 22 + + 71 + - - 47
----
-27
NULL

query I rowsort
SELECT ALL + 33 * - + ( + + 42 ) AS col0
----
-1386

onlyif mysql # DIV for integer division: 
query I rowsort label-5410
SELECT - 59 DIV - 22
----
2

skipif mysql # not compatible
query I rowsort label-5410
SELECT - 59 / - 22
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5411
SELECT - ( + + 44 ) * - 18 + - - 63 * 63 + + 1 + - COUNT( * ) + + 39 + - 94 AS col1, + 30
----
4706
30

skipif mysql # not compatible
query II rowsort label-5411
SELECT - ( + + 44 ) * - 18 + - - 63 * 63 + + 1 + - COUNT ( * ) + + 39 + - 94 AS col1, + 30
----
4706
30

query I rowsort
SELECT - 77 + + 67
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-5413
SELECT COUNT( * ), NULLIF ( - + 89, 19 + - - 3 ) * - 61 * + - 43 AS col0
----
1
-233447

skipif mysql # not compatible
query II rowsort label-5413
SELECT COUNT ( * ), NULLIF ( - + 89, 19 + - - 3 ) * - 61 * + - 43 AS col0
----
1
-233447

query I rowsort
SELECT DISTINCT 12 * 53
----
636

onlyif mysql # DIV for integer division: 
query I rowsort label-5415
SELECT ALL + 89 DIV + - 73
----
-1

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL + 89 / + - 73
----
-1

query I rowsort
SELECT ALL NULLIF ( - - 10, - 18 + - - 79 + + + 12 + + 9 - - - 93 - + - ( - + 53 ) )
----
10

query I rowsort
SELECT - + 43 + 25
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-5418
SELECT - - 38 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-5418
SELECT - - 38 / - 75
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5419
SELECT ALL - CAST( NULL AS SIGNED ) / - - COUNT( * ) + - ( - 37 ) * + + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL - CAST ( NULL AS INTEGER ) / - - COUNT ( * ) + - ( - 37 ) * + + COUNT ( * ) col1
----
NULL

query I rowsort
SELECT - ( 9 ) * 38
----
-342

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT DISTINCT - CASE 7 WHEN - - 58 * - COUNT( ALL 10 ) THEN - 68 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT - CASE 7 WHEN - - 58 * - COUNT ( ALL 10 ) THEN - 68 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT - + 67 AS col1, 79 col0
----
-67
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT - 12 + + NULLIF ( + - COUNT( 74 ), 85 )
----
-13

skipif mysql # not compatible
query I rowsort label-5423
SELECT - 12 + + NULLIF ( + - COUNT ( 74 ), 85 )
----
-13

query I rowsort
SELECT ALL - + 17 + - + 82
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5425
SELECT + - COUNT( * ) DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-5425
SELECT + - COUNT ( * ) / 33
----
0

query I rowsort
SELECT - 73 + - - 37 + + - 86 AS col1
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT + - SUM( DISTINCT + 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-5427
SELECT + - SUM ( DISTINCT + 62 )
----
-62

query I rowsort
SELECT - COALESCE ( + 3, - 47 ) * + 6 + 71 col0
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-5429
SELECT + 70 * - - 71 AS col1, - COUNT( * ) + - 49
----
4970
-50

skipif mysql # not compatible
query II rowsort label-5429
SELECT + 70 * - - 71 AS col1, - COUNT ( * ) + - 49
----
4970
-50

query II rowsort
SELECT 30 AS col0, - 39 * + 42
----
30
-1638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5431
SELECT - 33 DIV - 22 - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5431
SELECT - 33 / - 22 - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5432
SELECT + 28 * COUNT( * ) + + COUNT( * ) + + 28 + - 7 DIV + 13 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-5432
SELECT + 28 * COUNT ( * ) + + COUNT ( * ) + + 28 + - 7 / + 13 AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-5433
SELECT DISTINCT + 62 DIV - 90 + 20
----
20

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT + 62 / - 90 + 20
----
20

query I rowsort
SELECT ALL 7 * + - 45
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT + 79 * - ( - + ( 2 ) ) + COUNT( * ) * + 91 * - COUNT( * ) + - NULLIF ( + - ( + 93 ), + + 75 ) AS col1
----
160

skipif mysql # not compatible
query I rowsort label-5435
SELECT + 79 * - ( - + ( 2 ) ) + COUNT ( * ) * + 91 * - COUNT ( * ) + - NULLIF ( + - ( + 93 ), + + 75 ) AS col1
----
160

query II rowsort
SELECT 47 + - 91 - - 60 - 50 * 48 AS col1, - 81 AS col0
----
-2384
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5437
SELECT 83 DIV - 71 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5437
SELECT 83 / - 71 AS col1
----
-1

query I rowsort
SELECT ALL 13 * 60 col0
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT ALL 72 * - + 5 * 46 * ( - - 35 ) * COUNT( * )
----
-579600

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL 72 * - + 5 * 46 * ( - - 35 ) * COUNT ( * )
----
-579600

query I rowsort
SELECT ( + - 61 ) - - 9 AS col0
----
-52

query I rowsort
SELECT 2 + + 21 AS col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5442
SELECT ALL 65 - + + MAX( DISTINCT - + 21 ) * 96 + - CAST( - ( - 15 ) AS SIGNED ) DIV 68 AS col1
----
2081

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL 65 - + + MAX ( DISTINCT - + 21 ) * 96 + - CAST ( - ( - 15 ) AS INTEGER ) / 68 AS col1
----
2081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5443
SELECT + CASE - 81 WHEN - 9 * + CAST( + CASE - 10 WHEN + 75 THEN NULL ELSE - + 19 * CAST( + 52 AS SIGNED ) END AS SIGNED ) * + 62 THEN CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) * MIN( DISTINCT - 67 ) WHEN + 38 THEN NULL END * CAST( NULL AS DECIMAL ) * + NULLIF ( 88, 30 ) + + COALESCE ( + 35, - 83 + 31 ) + - 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT + CASE - 81 WHEN - 9 * + CAST ( + CASE - 10 WHEN + 75 THEN NULL ELSE - + 19 * CAST ( + 52 AS INTEGER ) END AS INTEGER ) * + 62 THEN CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * MIN ( DISTINCT - 67 ) WHEN + 38 THEN NULL END * CAST ( NULL AS REAL ) * + NULLIF ( 88, 30 ) + + COALESCE ( + 35, - 83 + 31 ) + - 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT ALL - MIN( 94 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL - MIN ( 94 ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT MAX( + + 25 ) + - 76 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-5445
SELECT MAX ( + + 25 ) + - 76 AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5446
SELECT ALL + ( + 4 ) * - 42 + - 85 DIV - 88 - - COUNT( * ) AS col0
----
-167

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL + ( + 4 ) * - 42 + - 85 / - 88 - - COUNT ( * ) AS col0
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT 3 * - COUNT( * ) + 14
----
11

skipif mysql # not compatible
query I rowsort label-5447
SELECT 3 * - COUNT ( * ) + 14
----
11

query II rowsort
SELECT 59 + + - 28, + ( + 11 ) AS col1
----
31
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT DISTINCT - - ( + SUM( 91 ) ) + - 37 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT - - ( + SUM ( 91 ) ) + - 37 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT ALL 43 + - COUNT( * ) + + - 65 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL 43 + - COUNT ( * ) + + - 65 AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5451
SELECT 69 + + CAST( - MIN( - - 33 ) AS SIGNED ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-5451
SELECT 69 + + CAST ( - MIN ( - - 33 ) AS INTEGER ) AS col2
----
36

query I rowsort
SELECT DISTINCT 61 + 84 + 49 + + 14 * + - NULLIF ( + + 43, 89 )
----
-408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5453
SELECT 31 * CASE - + COUNT( * ) WHEN - 63 THEN + 5 - + 63 + COUNT( * ) * - 65 / - 3 * CAST( - 21 AS SIGNED ) - - - 91 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT 31 * CASE - + COUNT ( * ) WHEN - 63 THEN + 5 - + 63 + COUNT ( * ) * - 65 / - 3 * CAST ( - 21 AS INTEGER ) - - - 91 END AS col1
----
NULL

query I rowsort
SELECT ALL - ( - 6 ) + - 65 + - 72
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT COUNT( * ) + - 72 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-5455
SELECT COUNT ( * ) + - 72 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT - COUNT( ALL 3 ) * 71
----
-71

skipif mysql # not compatible
query I rowsort label-5456
SELECT - COUNT ( ALL 3 ) * 71
----
-71

query I rowsort
SELECT ( + NULLIF ( + + COALESCE ( + - 42, - 30 ), - - 82 ) )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT ALL - 94 + + COUNT( - ( - 80 ) ) - + 17 * + 8
----
-229

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL - 94 + + COUNT ( - ( - 80 ) ) - + 17 * + 8
----
-229

query I rowsort
SELECT + CASE + + 81 WHEN - 29 THEN 59 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5460
SELECT DISTINCT + CAST( + 13 AS SIGNED ) * COUNT( + 26 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT + CAST ( + 13 AS INTEGER ) * COUNT ( + 26 ) AS col2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5461
SELECT ALL - 33 - 39 DIV - + COUNT( * ) AS col1, 85 + + 80 + - 16 col2
----
6
149

skipif mysql # not compatible
query II rowsort label-5461
SELECT ALL - 33 - 39 / - + COUNT ( * ) AS col1, 85 + + 80 + - 16 col2
----
6
149

onlyif mysql # aggregate syntax: 
query II rowsort label-5462
SELECT DISTINCT - 35 AS col2, 72 * + + 40 + COUNT( * ) * + + 3 AS col2
----
-35
2883

skipif mysql # not compatible
query II rowsort label-5462
SELECT DISTINCT - 35 AS col2, 72 * + + 40 + COUNT ( * ) * + + 3 AS col2
----
-35
2883

query II rowsort
SELECT ALL 25 - + 75 + + - 81 AS col2, 61 AS col0
----
-131
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT DISTINCT - 51 * - 2 * COUNT( * ) * - 80 col2
----
-8160

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT - 51 * - 2 * COUNT ( * ) * - 80 col2
----
-8160

query I rowsort
SELECT 86 * + 28 AS col0
----
2408

query II rowsort
SELECT + 14 col1, - 69 AS col0
----
14
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5467
SELECT CAST( 87 AS SIGNED ) * + MAX( ALL 65 ) + - ( - 70 ) * - ( + + 58 )
----
1595

skipif mysql # not compatible
query I rowsort label-5467
SELECT CAST ( 87 AS INTEGER ) * + MAX ( ALL 65 ) + - ( - 70 ) * - ( + + 58 )
----
1595

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5468
SELECT 76 * + 67 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5468
SELECT 76 * + 67 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5469
SELECT DISTINCT - ( CAST( + 69 AS SIGNED ) )
----
-69

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT - ( CAST ( + 69 AS INTEGER ) )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-5470
SELECT DISTINCT - 16 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT - 16 / + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT 1 * + CASE 52 WHEN + - 77 + + COUNT( * ) THEN NULL ELSE ( + 11 ) END AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5471
SELECT 1 * + CASE 52 WHEN + - 77 + + COUNT ( * ) THEN NULL ELSE ( + 11 ) END AS col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5472
SELECT 8 DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-5472
SELECT 8 / + 45
----
0

query I rowsort
SELECT DISTINCT 23 * + 95
----
2185

query I rowsort
SELECT ALL 58 + 28
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5475
SELECT ( - ( + NULLIF ( - COALESCE ( + 19, 32 * 51 * + COUNT( * ) ), + 28 * + + 46 * - MAX( ALL - 74 ) + + ( - ( 68 ) ) + - - 78 + + COUNT( * ) + ( - 28 ) * - 47 * - 76 * 20 * - NULLIF ( + CAST( NULL AS SIGNED ), + 24 + 66 * - 41 ) ) ) ) * - 50 + - 79 col0
----
-1029

skipif mysql # not compatible
query I rowsort label-5475
SELECT ( - ( + NULLIF ( - COALESCE ( + 19, 32 * 51 * + COUNT ( * ) ), + 28 * + + 46 * - MAX ( ALL - 74 ) + + ( - ( 68 ) ) + - - 78 + + COUNT ( * ) + ( - 28 ) * - 47 * - 76 * 20 * - NULLIF ( + CAST ( NULL AS INTEGER ), + 24 + 66 * - 41 ) ) ) ) * - 50 + - 79 col0
----
-1029

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT 1 + + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5476
SELECT 1 + + COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5477
SELECT MAX( DISTINCT - ( + 85 ) ) col1, - 97 * + 34
----
-85
-3298

skipif mysql # not compatible
query II rowsort label-5477
SELECT MAX ( DISTINCT - ( + 85 ) ) col1, - 97 * + 34
----
-85
-3298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5478
SELECT NULLIF ( + MAX( DISTINCT CAST( - - 80 AS SIGNED ) ), - 72 + + 77 ) * + 68
----
5440

skipif mysql # not compatible
query I rowsort label-5478
SELECT NULLIF ( + MAX ( DISTINCT CAST ( - - 80 AS INTEGER ) ), - 72 + + 77 ) * + 68
----
5440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5479
SELECT DISTINCT COUNT( * ) + + ( - COALESCE ( 81, - CAST( NULL AS SIGNED ) ) )
----
-80

skipif mysql # not compatible
query I rowsort label-5479
SELECT DISTINCT COUNT ( * ) + + ( - COALESCE ( 81, - CAST ( NULL AS INTEGER ) ) )
----
-80

query I rowsort
SELECT ALL 6 + - 69
----
-63

query I rowsort
SELECT ALL - 91 + 96
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT COUNT( DISTINCT - + 94 ) - + 59
----
-58

skipif mysql # not compatible
query I rowsort label-5482
SELECT COUNT ( DISTINCT - + 94 ) - + 59
----
-58

query I rowsort
SELECT DISTINCT - COALESCE ( + 66, + 90, + 6 ) AS col2
----
-66

query II rowsort
SELECT ALL 34 col1, 77
----
34
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT 33 + - + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-5485
SELECT 33 + - + COUNT ( * )
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-5486
SELECT - - ( - SUM( DISTINCT 90 ) ) AS col1, + 57 * 5 AS col2
----
-90
285

skipif mysql # not compatible
query II rowsort label-5486
SELECT - - ( - SUM ( DISTINCT 90 ) ) AS col1, + 57 * 5 AS col2
----
-90
285

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5487
SELECT + 25 * MIN( DISTINCT CAST( NULL AS DECIMAL ) ) * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5487
SELECT + 25 * MIN ( DISTINCT CAST ( NULL AS REAL ) ) * 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT DISTINCT - CASE + 41 WHEN - + 65 * + 7 + + 17 THEN - COUNT( * ) END + - + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT - CASE + 41 WHEN - + 65 * + 7 + + 17 THEN - COUNT ( * ) END + - + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT ALL - - 87 * + 38 + - COUNT( * ) AS col1
----
3305

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL - - 87 * + 38 + - COUNT ( * ) AS col1
----
3305

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5490
SELECT CAST( - 46 AS SIGNED ) * + 39 * + 41
----
-73554

skipif mysql # not compatible
query I rowsort label-5490
SELECT CAST ( - 46 AS INTEGER ) * + 39 * + 41
----
-73554

query I rowsort
SELECT DISTINCT - 95 - 49 AS col1
----
-144

onlyif mysql # DIV for integer division: 
query II rowsort label-5492
SELECT - 30 AS col2, - 48 DIV - - 53
----
-30
0

skipif mysql # not compatible
query II rowsort label-5492
SELECT - 30 AS col2, - 48 / - - 53
----
-30
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5493
SELECT ALL - + CASE + 19 WHEN - 64 THEN NULL WHEN - 22 * + 31 * + + 96 THEN NULL ELSE - 35 + + - 72 END - 3 AS col0, + CAST( NULL AS SIGNED )
----
104
NULL

skipif mysql # not compatible
query II rowsort label-5493
SELECT ALL - + CASE + 19 WHEN - 64 THEN NULL WHEN - 22 * + 31 * + + 96 THEN NULL ELSE - 35 + + - 72 END - 3 AS col0, + CAST ( NULL AS INTEGER )
----
104
NULL

query II rowsort
SELECT ALL + 81 AS col0, - 5
----
81
-5

query I rowsort
SELECT + 2 + - 68
----
-66

query I rowsort
SELECT - 8 * + + 32 AS col1
----
-256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5497
SELECT + CASE + + 15 WHEN NULLIF ( - 94, - + COUNT( * ) ) THEN NULL WHEN 85 THEN - 97 ELSE - 75 END * + 71 * - CASE + + 70 WHEN 61 / - COUNT( * ) THEN - - 75 * COUNT( * ) + - CAST( ( + - 29 ) AS SIGNED ) + - ( + 12 ) * + 5 WHEN - + 72 * 84 * - - 20 THEN NULL ELSE NULL END * 65 + 84 / 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5497
SELECT + CASE + + 15 WHEN NULLIF ( - 94, - + COUNT ( * ) ) THEN NULL WHEN 85 THEN - 97 ELSE - 75 END * + 71 * - CASE + + 70 WHEN 61 / - COUNT ( * ) THEN - - 75 * COUNT ( * ) + - CAST ( ( + - 29 ) AS INTEGER ) + - ( + 12 ) * + 5 WHEN - + 72 * 84 * - - 20 THEN NULL ELSE NULL END * 65 + 84 / 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5498
SELECT ALL CAST( 31 AS SIGNED ) * + - ( 17 ) - + 53 + - COUNT( * ) DIV - 97
----
-580

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL CAST ( 31 AS INTEGER ) * + - ( 17 ) - + 53 + - COUNT ( * ) / - 97
----
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT NULLIF ( 74, + 49 * - NULLIF ( + - ( + COUNT( * ) ), 18 + + 39 - - 2 - - 80 ) ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-5499
SELECT NULLIF ( 74, + 49 * - NULLIF ( + - ( + COUNT ( * ) ), 18 + + 39 - - 2 - - 80 ) ) AS col0
----
74

query I rowsort
SELECT COALESCE ( - + 72, 63, + 56 ) AS col1
----
-72

query I rowsort
SELECT - ( - 45 ) + - 79 AS col2
----
-34

query I rowsort
SELECT - 7 * + 97
----
-679

query I rowsort
SELECT - 24 + + 80
----
56

query I rowsort
SELECT ALL - 29 * + ( 79 ) AS col1
----
-2291

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT DISTINCT - 20 * + + COUNT( * ) * - + 77 AS col2
----
1540

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT - 20 * + + COUNT ( * ) * - + 77 AS col2
----
1540

query I rowsort
SELECT 39 * 7 + 19 AS col1
----
292

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT ALL 51 * + 86 + + MIN( + 54 ) + + 86 + - 2 * + - 21
----
4568

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL 51 * + 86 + + MIN ( + 54 ) + + 86 + - 2 * + - 21
----
4568

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT - SUM( DISTINCT - 34 ) + + 65
----
99

skipif mysql # not compatible
query I rowsort label-5508
SELECT - SUM ( DISTINCT - 34 ) + + 65
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5509
SELECT + 70 - + - 4 * 49 - COALESCE ( - + COUNT( * ), CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) + + ( - 2 ) - - + 23 * - 21 * 28, + 10, 85 )
----
267

skipif mysql # not compatible
query I rowsort label-5509
SELECT + 70 - + - 4 * 49 - COALESCE ( - + COUNT ( * ), CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) + + ( - 2 ) - - + 23 * - 21 * 28, + 10, 85 )
----
267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5510
SELECT ALL + CAST( - 83 AS SIGNED ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL + CAST ( - 83 AS INTEGER ) AS col1
----
-83

query I rowsort
SELECT - 41 * - 50
----
2050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5512
SELECT + 46 + - + 86 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5512
SELECT + 46 + - + 86 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5513
SELECT DISTINCT + 17 * CAST( 28 AS SIGNED ) + - + 61 + 4
----
419

skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT + 17 * CAST ( 28 AS INTEGER ) + - + 61 + 4
----
419

query I rowsort
SELECT DISTINCT ( - ( 19 ) ) * 18 + - 72 + - - 67 AS col0
----
-347

query I rowsort
SELECT ALL ( + 75 ) + 22 AS col0
----
97

query I rowsort
SELECT - 64 + + 16
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT DISTINCT + COUNT( ALL - + 15 ) + + 33 col0
----
34

skipif mysql # not compatible
query I rowsort label-5517
SELECT DISTINCT + COUNT ( ALL - + 15 ) + + 33 col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5518
SELECT ALL CAST( 39 AS SIGNED ) AS col2, 93 + + 84 AS col1
----
39
177

skipif mysql # not compatible
query II rowsort label-5518
SELECT ALL CAST ( 39 AS INTEGER ) AS col2, 93 + + 84 AS col1
----
39
177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5519
SELECT ALL - MIN( ALL - 38 ) + + COUNT( * ) + - 84 + - COUNT( * ) DIV - CASE + 18 WHEN + + 83 THEN + 55 * + 76 ELSE + 76 END
----
-45

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL - MIN ( ALL - 38 ) + + COUNT ( * ) + - 84 + - COUNT ( * ) / - CASE + 18 WHEN + + 83 THEN + 55 * + 76 ELSE + 76 END
----
-45

query I rowsort
SELECT - - 54 * 89
----
4806

query I rowsort
SELECT - + 38 + - 29 AS col2
----
-67

query I rowsort
SELECT - + 80 * + - 34 col0
----
2720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5523
SELECT + + 74 + NULLIF ( + CAST( NULL AS SIGNED ), + 90 + + 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5523
SELECT + + 74 + NULLIF ( + CAST ( NULL AS INTEGER ), + 90 + + 15 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT ALL + MAX( ALL - 51 ) * COUNT( * ) + - - 76
----
25

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL + MAX ( ALL - 51 ) * COUNT ( * ) + - - 76
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT + - 99 + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-5525
SELECT + - 99 + COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT DISTINCT - + 68 * COUNT( * ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-5526
SELECT DISTINCT - + 68 * COUNT ( * ) AS col0
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-5527
SELECT + - 97 + - 76 + - 45 * 56 DIV - + 25 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-5527
SELECT + - 97 + - 76 + - 45 * 56 / - + 25 AS col1
----
-73

query I rowsort
SELECT DISTINCT + 86 - 80
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT + + 22 + - COUNT( * ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-5529
SELECT + + 22 + - COUNT ( * ) AS col1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5530
SELECT ALL CAST( + ( 43 ) AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL CAST ( + ( 43 ) AS INTEGER )
----
43

query I rowsort
SELECT + - 47 * - - 75
----
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT DISTINCT + COUNT( DISTINCT 35 )
----
1

skipif mysql # not compatible
query I rowsort label-5532
SELECT DISTINCT + COUNT ( DISTINCT 35 )
----
1

query I rowsort
SELECT + + ( - + 47 ) - - ( + ( - - 77 ) ) - 74
----
-44

query I rowsort
SELECT - - ( - - 45 ) col1
----
45

query I rowsort
SELECT + 84 + 7
----
91

query II rowsort
SELECT DISTINCT 3, - 25 AS col0
----
3
-25

query I rowsort
SELECT ALL 49 * + 1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT + SUM( + - 58 ) * + 45
----
-2610

skipif mysql # not compatible
query I rowsort label-5538
SELECT + SUM ( + - 58 ) * + 45
----
-2610

onlyif mysql # aggregate syntax: 
query II rowsort label-5539
SELECT DISTINCT 95 * + MIN( - - 37 ) * + 45 * + - COALESCE ( + 92, + 5 * - - 61 + - COUNT( * ) * - COUNT( * ) + + 60 * + 67 + - 19 * 35 - + 35 ), 84 AS col2
----
-14552100
84

skipif mysql # not compatible
query II rowsort label-5539
SELECT DISTINCT 95 * + MIN ( - - 37 ) * + 45 * + - COALESCE ( + 92, + 5 * - - 61 + - COUNT ( * ) * - COUNT ( * ) + + 60 * + 67 + - 19 * 35 - + 35 ), 84 AS col2
----
-14552100
84

query II rowsort
SELECT DISTINCT + 18 AS col1, 69
----
18
69

query I rowsort
SELECT ALL 13 * 44
----
572

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT DISTINCT + CASE + 51 WHEN COUNT( * ) THEN NULL ELSE - 77 * - - COUNT( * ) END AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT + CASE + 51 WHEN COUNT ( * ) THEN NULL ELSE - 77 * - - COUNT ( * ) END AS col2
----
-77

query I rowsort
SELECT + ( - 87 ) AS col0
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5544
SELECT ALL ( - - 81 ) DIV + COUNT( * ) + + 75 AS col2
----
156

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL ( - - 81 ) / + COUNT ( * ) + + 75 AS col2
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5545
SELECT + ( + + 34 ) * - COUNT( * ) + - COUNT( + 47 ) * + + 62 DIV 47 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-5545
SELECT + ( + + 34 ) * - COUNT ( * ) + - COUNT ( + 47 ) * + + 62 / 47 AS col1
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-5546
SELECT ALL + 44 DIV - 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL + 44 / - 94 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5547
SELECT + 41 DIV NULLIF ( - 17, + + 83 )
----
-2

skipif mysql # not compatible
query I rowsort label-5547
SELECT + 41 / NULLIF ( - 17, + + 83 )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5548
SELECT - COUNT( * ) DIV + CASE COUNT( - + 81 ) WHEN - - 97 + AVG ( ALL + 81 ) THEN - + COALESCE ( ( - + 10 ), - SUM( - + 10 ) ) * + 31 + + 29 DIV - 14 ELSE - + 40 END + - ( 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-5548
SELECT - COUNT ( * ) / + CASE COUNT ( - + 81 ) WHEN - - 97 + AVG ( ALL + 81 ) THEN - + COALESCE ( ( - + 10 ), - SUM ( - + 10 ) ) * + 31 + + 29 / - 14 ELSE - + 40 END + - ( 92 )
----
-92

query I rowsort
SELECT ALL + + ( - - 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT MIN( DISTINCT - ( + 1 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5550
SELECT MIN ( DISTINCT - ( + 1 ) )
----
-1

query II rowsort
SELECT + 85, 69 AS col1
----
85
69

query I rowsort
SELECT - - 9 + + 98 AS col0
----
107

query I rowsort
SELECT - 98 * 97
----
-9506

query I rowsort
SELECT + ( - 20 ) + 47
----
27

query I rowsort
SELECT - 65 - + 90 AS col1
----
-155

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5556
SELECT DISTINCT + 4 DIV - + ( + - 14 ) + + + ( + CAST( - - 82 AS SIGNED ) ) - 25 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT + 4 / - + ( + - 14 ) + + + ( + CAST ( - - 82 AS INTEGER ) ) - 25 AS col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5557
SELECT COUNT( * ) + + 95 DIV + + 62 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5557
SELECT COUNT ( * ) + + 95 / + + 62 AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5558
SELECT ALL + + COALESCE ( + 24, 94 DIV - 40 DIV 63 ) DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-5558
SELECT ALL + + COALESCE ( + 24, 94 / - 40 / 63 ) / - 39
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5559
SELECT CAST( NULL AS SIGNED ) + + COALESCE ( 80, + COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5559
SELECT CAST ( NULL AS INTEGER ) + + COALESCE ( 80, + COUNT ( * ) ) col1
----
NULL

query I rowsort
SELECT 54 - - ( - 19 ) + + 8
----
43

query II rowsort
SELECT ALL 4 AS col0, 67 AS col1
----
4
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5562
SELECT 42 DIV - - 45 * + - 24 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5562
SELECT 42 / - - 45 * + - 24 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5563
SELECT COUNT( * ) - COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5563
SELECT COUNT ( * ) - COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT ALL 43 + + + MAX( DISTINCT + 9 )
----
52

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL 43 + + + MAX ( DISTINCT + 9 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5565
SELECT 55 AS col1, - 61 AS col2, 51 * - 8 - + CAST( NULL AS SIGNED )
----
55
-61
NULL

skipif mysql # not compatible
query III rowsort label-5565
SELECT 55 AS col1, - 61 AS col2, 51 * - 8 - + CAST ( NULL AS INTEGER )
----
55
-61
NULL

query I rowsort
SELECT DISTINCT + 20 + + 97 AS col0
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-5567
SELECT DISTINCT 13 AS col0, + COUNT( * )
----
13
1

skipif mysql # not compatible
query II rowsort label-5567
SELECT DISTINCT 13 AS col0, + COUNT ( * )
----
13
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5568
SELECT ALL 64 col2, 35 + - COUNT( * ) AS col0
----
64
34

skipif mysql # not compatible
query II rowsort label-5568
SELECT ALL 64 col2, 35 + - COUNT ( * ) AS col0
----
64
34

query I rowsort
SELECT NULLIF ( - 46, + 77 + + 96 * - 94 ) * 83 - - + 16 AS col1
----
-3802

query I rowsort
SELECT ALL 7 + 63 + - + 45
----
25

query II rowsort
SELECT 82 + 99, - 43 AS col2
----
181
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5572
SELECT + 23, + COALESCE ( 32, + 60 * - 5 * + - 10 + 47 + + CAST( - 97 AS SIGNED ), - 15 ) + + + 0 + + 34 AS col0
----
23
66

skipif mysql # not compatible
query II rowsort label-5572
SELECT + 23, + COALESCE ( 32, + 60 * - 5 * + - 10 + 47 + + CAST ( - 97 AS INTEGER ), - 15 ) + + + 0 + + 34 AS col0
----
23
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5573
SELECT CAST( NULL AS SIGNED ) * 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5573
SELECT CAST ( NULL AS INTEGER ) * 70 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5574
SELECT 76 / 97 * - CAST( NULL AS SIGNED ) * + 84 + + CASE + + 2 WHEN 8 * + + 60 THEN - 14 * + 41 - - 33 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5574
SELECT 76 / 97 * - CAST ( NULL AS INTEGER ) * + 84 + + CASE + + 2 WHEN 8 * + + 60 THEN - 14 * + 41 - - 33 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT + 34, 5 AS col2
----
34
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5576
SELECT ALL CAST( NULL AS SIGNED ) + + 3 + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL CAST ( NULL AS INTEGER ) + + 3 + - 49
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5577
SELECT ALL COALESCE ( + ( 30 ), - + 5 - - 5, 32 * - 80 ) * COALESCE ( - 18, + - 42 * + - NULLIF ( + 47, + 2 ) ) * + 15 * CAST( NULL AS SIGNED ) + + MIN( + 67 ) + + 51 * + + 55, 76 * - + 91 + - - ( 78 ) DIV + 25 * COUNT( * ) + - 41 + + 67 AS col0
----
NULL
-6887

skipif mysql # not compatible
query II rowsort label-5577
SELECT ALL COALESCE ( + ( 30 ), - + 5 - - 5, 32 * - 80 ) * COALESCE ( - 18, + - 42 * + - NULLIF ( + 47, + 2 ) ) * + 15 * CAST ( NULL AS INTEGER ) + + MIN ( + 67 ) + + 51 * + + 55, 76 * - + 91 + - - ( 78 ) / + 25 * COUNT ( * ) + - 41 + + 67 AS col0
----
NULL
-6887

onlyif mysql # aggregate syntax: 
query II rowsort label-5578
SELECT ALL - 55 AS col2, COUNT( * ) AS col0
----
-55
1

skipif mysql # not compatible
query II rowsort label-5578
SELECT ALL - 55 AS col2, COUNT ( * ) AS col0
----
-55
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT ALL - ( + - NULLIF ( COUNT( * ), + 23 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL - ( + - NULLIF ( COUNT ( * ), + 23 ) ) AS col1
----
1

query I rowsort
SELECT ALL ( + 87 ) - + - 37 AS col2
----
124

query I rowsort
SELECT 42 * + 65
----
2730

query I rowsort
SELECT 51 + + 73 AS col0
----
124

query I rowsort
SELECT 39 + + - 27 + 91 col2
----
103

query I rowsort
SELECT + + 27 * - + 35 - + 94
----
-1039

onlyif mysql # aggregate syntax: 
query II rowsort label-5585
SELECT ALL - - 39, + COUNT( * ) AS col2
----
39
1

skipif mysql # not compatible
query II rowsort label-5585
SELECT ALL - - 39, + COUNT ( * ) AS col2
----
39
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5586
SELECT COUNT( * ) + - + 90 AS col2, + 52 * + 24 + - 35 * - 41
----
-89
2683

skipif mysql # not compatible
query II rowsort label-5586
SELECT COUNT ( * ) + - + 90 AS col2, + 52 * + 24 + - 35 * - 41
----
-89
2683

query I rowsort
SELECT + 22 * + 89 AS col1
----
1958

onlyif mysql # DIV for integer division: 
query I rowsort label-5588
SELECT DISTINCT - 10 DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT - 10 / - 57
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5589
SELECT DISTINCT COALESCE ( + 61, - CASE - - 46 WHEN - - CAST( + 58 AS SIGNED ) THEN NULL ELSE - NULLIF ( - + 71, + 7 * + + 55 - 47 * MIN( DISTINCT - 16 ) * - + 26 DIV + 54 ) + + + 74 END * - 33 ) - + 65 DIV - 23 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT COALESCE ( + 61, - CASE - - 46 WHEN - - CAST ( + 58 AS INTEGER ) THEN NULL ELSE - NULLIF ( - + 71, + 7 * + + 55 - 47 * MIN ( DISTINCT - 16 ) * - + 26 / + 54 ) + + + 74 END * - 33 ) - + 65 / - 23 AS col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5590
SELECT 8 + - 72 + - + 81 * + 32 + 42 * - COALESCE ( + 20, + 10 - + 97 * 49 + + + 56 * 93 * COUNT( * ) ) DIV - - COUNT( * ) AS col0, + ( - + 5 ) * 3 + COALESCE ( 36, + - 68 - 83 * + MIN( - - 18 ) - + 92 + - 52 * + 75, COUNT( * ) + 12 ) + 95
----
-3496
116

skipif mysql # not compatible
query II rowsort label-5590
SELECT 8 + - 72 + - + 81 * + 32 + 42 * - COALESCE ( + 20, + 10 - + 97 * 49 + + + 56 * 93 * COUNT ( * ) ) / - - COUNT ( * ) AS col0, + ( - + 5 ) * 3 + COALESCE ( 36, + - 68 - 83 * + MIN ( - - 18 ) - + 92 + - 52 * + 75, COUNT ( * ) + 12 ) + 95
----
-3496
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5591
SELECT + COUNT( DISTINCT - ( - + 73 ) ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5591
SELECT + COUNT ( DISTINCT - ( - + 73 ) ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5592
SELECT ALL + - 68 * - CAST( + CASE + 15 WHEN + COALESCE ( + ( + ( COALESCE ( - ( - - 20 ), - 23 ) ) ), - 0 / - 31 * - 39, 91 / - 42, - 15 + - 22 ) * - 41 + 52 + + 45 THEN - 24 * COUNT( DISTINCT + + ( 73 ) ) WHEN 89 * 24 THEN NULL ELSE NULL END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL + - 68 * - CAST ( + CASE + 15 WHEN + COALESCE ( + ( + ( COALESCE ( - ( - - 20 ), - 23 ) ) ), - 0 / - 31 * - 39, 91 / - 42, - 15 + - 22 ) * - 41 + 52 + + 45 THEN - 24 * COUNT ( DISTINCT + + ( 73 ) ) WHEN 89 * 24 THEN NULL ELSE NULL END AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5593
SELECT - CAST( ( + 27 ) AS SIGNED ) * - + 8 * + - 63
----
-13608

skipif mysql # not compatible
query I rowsort label-5593
SELECT - CAST ( ( + 27 ) AS INTEGER ) * - + 8 * + - 63
----
-13608

query I rowsort
SELECT DISTINCT + 75 * + + 48 AS col0
----
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT DISTINCT + MAX( DISTINCT - + 81 ) * + 29
----
-2349

skipif mysql # not compatible
query I rowsort label-5595
SELECT DISTINCT + MAX ( DISTINCT - + 81 ) * + 29
----
-2349

query I rowsort
SELECT ALL + 25 * - 17
----
-425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5597
SELECT - 12 + + - 3 * - 23 + - + MIN( - CAST( - 45 AS SIGNED ) )
----
12

skipif mysql # not compatible
query I rowsort label-5597
SELECT - 12 + + - 3 * - 23 + - + MIN ( - CAST ( - 45 AS INTEGER ) )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5598
SELECT DISTINCT 77 col0, COALESCE ( 7, - COUNT( * ) ) * - + 65 * + ( 80 )
----
77
-36400

skipif mysql # not compatible
query II rowsort label-5598
SELECT DISTINCT 77 col0, COALESCE ( 7, - COUNT ( * ) ) * - + 65 * + ( 80 )
----
77
-36400

query II rowsort
SELECT - 21 AS col2, 88 col1
----
-21
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT 82 + - 16 + - SUM( 63 )
----
3

skipif mysql # not compatible
query I rowsort label-5600
SELECT 82 + - 16 + - SUM ( 63 )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5601
SELECT DISTINCT - MAX( DISTINCT + + 10 ) DIV + 29 col1
----
0

skipif mysql # not compatible
query I rowsort label-5601
SELECT DISTINCT - MAX ( DISTINCT + + 10 ) / + 29 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT DISTINCT - 88 + 16 * - - ( - - ( - + MIN( ALL + + 31 ) ) ) * + MIN( + 90 )
----
-44728

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT - 88 + 16 * - - ( - - ( - + MIN ( ALL + + 31 ) ) ) * + MIN ( + 90 )
----
-44728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5603
SELECT ALL + 34 + + + 4 + - 80 - + COUNT( * ) + + + 18 + - + CAST( NULL AS SIGNED ) + + ( 87 ) * MIN( + 78 ) * + 29 + - - 42 / - 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL + 34 + + + 4 + - 80 - + COUNT ( * ) + + + 18 + - + CAST ( NULL AS INTEGER ) + + ( 87 ) * MIN ( + 78 ) * + 29 + - - 42 / - 18 AS col0
----
NULL

query I rowsort
SELECT ALL 95 * 79 AS col0
----
7505

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT 72 * + COUNT( * ) * - 45 AS col0
----
-3240

skipif mysql # not compatible
query I rowsort label-5605
SELECT 72 * + COUNT ( * ) * - 45 AS col0
----
-3240

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT COUNT( * ) + - 65 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-5606
SELECT COUNT ( * ) + - 65 AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5607
SELECT DISTINCT MIN( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5607
SELECT DISTINCT MIN ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5608
SELECT ALL - COUNT( * ) * - COUNT( ALL - ( 30 ) ) * - 65 AS col0, 38
----
-65
38

skipif mysql # not compatible
query II rowsort label-5608
SELECT ALL - COUNT ( * ) * - COUNT ( ALL - ( 30 ) ) * - 65 AS col0, 38
----
-65
38

query I rowsort
SELECT 27 + 48 * - + ( - - 96 ) AS col1
----
-4581

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT COUNT( + 87 )
----
1

skipif mysql # not compatible
query I rowsort label-5610
SELECT COUNT ( + 87 )
----
1

query I rowsort
SELECT ALL + 81 * - - 5
----
405

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT DISTINCT - MIN( - ( - 26 ) ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT - MIN ( - ( - 26 ) ) AS col0
----
-26

query I rowsort
SELECT ALL - 74 * + + 84 - + 22 + - 38
----
-6276

onlyif mysql # aggregate syntax: 
query II rowsort label-5614
SELECT MIN( + 20 ) AS col1, 10 + + + 56
----
20
66

skipif mysql # not compatible
query II rowsort label-5614
SELECT MIN ( + 20 ) AS col1, 10 + + + 56
----
20
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT DISTINCT + NULLIF ( + 20, + COALESCE ( 61, - 56 * + - ( 48 ) + - ( - + COUNT( * ) ) + + + COUNT( * ) * - + ( + 23 ) * - - 61, - + 16, - + 20 ) * + + COUNT( * ) * + + 94 + + 42 + 68 * + 38 + MIN( 38 ) + - + 64 * + + COALESCE ( - 67, + 77 + - - 41 ) ) * - 69 - 9 AS col0
----
-1389

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT + NULLIF ( + 20, + COALESCE ( 61, - 56 * + - ( 48 ) + - ( - + COUNT ( * ) ) + + + COUNT ( * ) * - + ( + 23 ) * - - 61, - + 16, - + 20 ) * + + COUNT ( * ) * + + 94 + + 42 + 68 * + 38 + MIN ( 38 ) + - + 64 * + + COALESCE ( - 67, + 77 + - - 41 ) ) * - 69 - 9 AS col0
----
-1389

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT COUNT( * ) * - 6 * 66 AS col1
----
-396

skipif mysql # not compatible
query I rowsort label-5616
SELECT COUNT ( * ) * - 6 * 66 AS col1
----
-396

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5617
SELECT + MIN( DISTINCT CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5617
SELECT + MIN ( DISTINCT CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5618
SELECT CAST( - 53 AS SIGNED ) * + 91
----
-4823

skipif mysql # not compatible
query I rowsort label-5618
SELECT CAST ( - 53 AS INTEGER ) * + 91
----
-4823

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT DISTINCT - - ( - SUM( 41 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT - - ( - SUM ( 41 ) )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5620
SELECT ALL - CASE + - 19 WHEN 93 THEN + COALESCE ( - 82, + ( + + 53 ) * - COUNT( * ) + - 60 + + - 37 + + + NULLIF ( + 8, AVG ( ALL - 13 ) ) * COALESCE ( + - 57, - ( + 73 ) * 28 ) / - + MIN( 61 ) * + ( + 30 ) ) WHEN - 98 THEN COALESCE ( + + 40, + COALESCE ( 6, 62 * - NULLIF ( + NULLIF ( + 94, - 47 ) * + NULLIF ( - 11, + 37 ), + 12 * 71 ) + 28 / ( + 18 * 83 ) ) ) WHEN 4 THEN NULL WHEN 13 * + 59 + - 17 * 84 THEN + ( - 36 ) END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL - CASE + - 19 WHEN 93 THEN + COALESCE ( - 82, + ( + + 53 ) * - COUNT ( * ) + - 60 + + - 37 + + + NULLIF ( + 8, AVG ( ALL - 13 ) ) * COALESCE ( + - 57, - ( + 73 ) * 28 ) / - + MIN ( 61 ) * + ( + 30 ) ) WHEN - 98 THEN COALESCE ( + + 40, + COALESCE ( 6, 62 * - NULLIF ( + NULLIF ( + 94, - 47 ) * + NULLIF ( - 11, + 37 ), + 12 * 71 ) + 28 / ( + 18 * 83 ) ) ) WHEN 4 THEN NULL WHEN 13 * + 59 + - 17 * 84 THEN + ( - 36 ) END * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 20 * - 2 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT ALL - + CASE - 19 WHEN - + 19 THEN - 27 / - COUNT( * ) + 62 + - - 57 / - AVG ( ALL + - 33 ) * 94 - + 48 * + ( 89 ) + - - 18 - + + CASE - 55 WHEN - CASE + 81 WHEN + + 37 + 19 - - 44 + 31 + 0 THEN - + ( 48 ) - + 81 WHEN - 30 THEN 10 + 26 ELSE NULL END + - MAX( 19 + 28 ) * SUM( + 6 ) THEN CASE 85 WHEN 71 + + 94 THEN NULL WHEN CASE 58 WHEN 9 + + 71 THEN NULL ELSE COUNT( * ) + ( 47 ) END THEN + 43 + CASE 3 + - 95 / 57 WHEN 15 THEN 57 + + 26 ELSE NULL END END WHEN + 19 THEN NULL END - - 78 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL - + CASE - 19 WHEN - + 19 THEN - 27 / - COUNT ( * ) + 62 + - - 57 / - AVG ( ALL + - 33 ) * 94 - + 48 * + ( 89 ) + - - 18 - + + CASE - 55 WHEN - CASE + 81 WHEN + + 37 + 19 - - 44 + 31 + 0 THEN - + ( 48 ) - + 81 WHEN - 30 THEN 10 + 26 ELSE NULL END + - MAX ( 19 + 28 ) * SUM ( + 6 ) THEN CASE 85 WHEN 71 + + 94 THEN NULL WHEN CASE 58 WHEN 9 + + 71 THEN NULL ELSE COUNT ( * ) + ( 47 ) END THEN + 43 + CASE 3 + - 95 / 57 WHEN 15 THEN 57 + + 26 ELSE NULL END END WHEN + 19 THEN NULL END - - 78 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT DISTINCT + COUNT( * ) * + - 3
----
-3

skipif mysql # not compatible
query I rowsort label-5623
SELECT DISTINCT + COUNT ( * ) * + - 3
----
-3

query I rowsort
SELECT ALL + 37 * - + 73
----
-2701

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT ALL 16 * - SUM( - + 99 )
----
1584

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL 16 * - SUM ( - + 99 )
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT DISTINCT + + COUNT( + - 92 )
----
1

skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT + + COUNT ( + - 92 )
----
1

query I rowsort
SELECT + NULLIF ( + - 4, - 95 ) + 50
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT 65 * - + ( + - 21 ) + + - 72 + + - MIN( DISTINCT + - 36 )
----
1329

skipif mysql # not compatible
query I rowsort label-5628
SELECT 65 * - + ( + - 21 ) + + - 72 + + - MIN ( DISTINCT + - 36 )
----
1329

query I rowsort
SELECT ALL + + ( 98 )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5630
SELECT + + 49 DIV COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-5630
SELECT + + 49 / COUNT ( * )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5631
SELECT + COALESCE ( - - COUNT( - 10 ), - 47 * + - MAX( ALL - CAST( NULL AS SIGNED ) ) DIV + - COUNT( DISTINCT 75 ) * 93 + - 96 + + 10 + + 57 * - 93 + + - MAX( ALL - ( + - 80 ) ) + 23 * - 22 + 74 ) + - 66 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-5631
SELECT + COALESCE ( - - COUNT ( - 10 ), - 47 * + - MAX ( ALL - CAST ( NULL AS INTEGER ) ) / + - COUNT ( DISTINCT 75 ) * 93 + - 96 + + 10 + + 57 * - 93 + + - MAX ( ALL - ( + - 80 ) ) + 23 * - 22 + 74 ) + - 66 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT + - MIN( 6 ) * + - 21 * + - 8 AS col2
----
-1008

skipif mysql # not compatible
query I rowsort label-5632
SELECT + - MIN ( 6 ) * + - 21 * + - 8 AS col2
----
-1008

query I rowsort
SELECT - - 69 + 36 + + - ( + 41 )
----
64

query I rowsort
SELECT ALL - + 61 + 94 + 49 * 30
----
1503

onlyif mysql # DIV for integer division: 
query I rowsort label-5635
SELECT ALL ( - 23 ) DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL ( - 23 ) / + 43
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5636
SELECT DISTINCT - 36 + 85 + - + COUNT( * ) * - - 28 DIV - + 16 DIV + COUNT( * ) + + 66 - - 61 + 76
----
253

skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT - 36 + 85 + - + COUNT ( * ) * - - 28 / - + 16 / + COUNT ( * ) + + 66 - - 61 + 76
----
253

onlyif mysql # DIV for integer division: 
query I rowsort label-5637
SELECT ALL + + 48 * - NULLIF ( + ( - - 25 ), + 82 ) DIV 5 col0
----
-240

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL + + 48 * - NULLIF ( + ( - - 25 ), + 82 ) / 5 col0
----
-240

query I rowsort
SELECT - 72 * + 25 AS col0
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT DISTINCT COUNT( * ) + + - 2
----
-1

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT COUNT ( * ) + + - 2
----
-1

query I rowsort
SELECT ALL 66 + 5 AS col1
----
71

query II rowsort
SELECT 83, + 35 AS col2
----
83
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT ALL - SUM( ALL + + 45 ) * - + 65 col0
----
2925

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL - SUM ( ALL + + 45 ) * - + 65 col0
----
2925

query I rowsort
SELECT + 89 * 71 AS col0
----
6319

query I rowsort
SELECT DISTINCT - 57 + + + 27
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT DISTINCT + NULLIF ( + 24, - - 48 * + 40 ) + MAX( - + 15 ) - + + 43 * + 74 + + - 38 AS col0
----
-3211

skipif mysql # not compatible
query I rowsort label-5645
SELECT DISTINCT + NULLIF ( + 24, - - 48 * + 40 ) + MAX ( - + 15 ) - + + 43 * + 74 + + - 38 AS col0
----
-3211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5646
SELECT ALL - COUNT( * ) + - CAST( NULL AS SIGNED ) + + 21 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + 21 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT ALL MIN( 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL MIN ( 9 ) AS col1
----
9

query I rowsort
SELECT - 94 * + + 23 * + 16
----
-34592

onlyif mysql # DIV for integer division: 
query I rowsort label-5649
SELECT ALL - 12 DIV + 26
----
0

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL - 12 / + 26
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT ALL - 40 - COUNT( * ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL - 40 - COUNT ( * ) AS col0
----
-41

query I rowsort
SELECT DISTINCT 41 * + 11
----
451

query I rowsort
SELECT - 99 + - 63
----
-162

onlyif mysql # aggregate syntax: 
query II rowsort label-5653
SELECT - 58 * - - 94 * - 23 AS col1, COUNT( - 7 ) AS col1
----
125396
1

skipif mysql # not compatible
query II rowsort label-5653
SELECT - 58 * - - 94 * - 23 AS col1, COUNT ( - 7 ) AS col1
----
125396
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5654
SELECT 77 * - 77 * - - 54 DIV - 6 + - CASE 49 WHEN + 93 THEN NULL ELSE + - COUNT( * ) END
----
53362

skipif mysql # not compatible
query I rowsort label-5654
SELECT 77 * - 77 * - - 54 / - 6 + - CASE 49 WHEN + 93 THEN NULL ELSE + - COUNT ( * ) END
----
53362

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5655
SELECT COALESCE ( 43, + SUM( 39 ), 70 * - 12 + 52 DIV - + 57 ) DIV - + 8 - + + 69 * - 97 * - COUNT( * )
----
-6698

skipif mysql # not compatible
query I rowsort label-5655
SELECT COALESCE ( 43, + SUM ( 39 ), 70 * - 12 + 52 / - + 57 ) / - + 8 - + + 69 * - 97 * - COUNT ( * )
----
-6698

query I rowsort
SELECT ( + - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT - 77 * - + 95 * + - COUNT( * ) + + COALESCE ( 53, - - ( ( - - 14 ) ) )
----
-7262

skipif mysql # not compatible
query I rowsort label-5657
SELECT - 77 * - + 95 * + - COUNT ( * ) + + COALESCE ( 53, - - ( ( - - 14 ) ) )
----
-7262

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5658
SELECT - + 61 DIV ( + COUNT( * ) ) + - - COUNT( * ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-5658
SELECT - + 61 / ( + COUNT ( * ) ) + - - COUNT ( * ) AS col2
----
-60

query I rowsort
SELECT + + 16 * - - 43 col0
----
688

onlyif mysql # aggregate syntax: 
query II rowsort label-5660
SELECT ALL + - COUNT( * ), 22 AS col0
----
-1
22

skipif mysql # not compatible
query II rowsort label-5660
SELECT ALL + - COUNT ( * ), 22 AS col0
----
-1
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5661
SELECT - - 90 DIV - 79 + - SUM( ALL - 42 ) * - 94
----
-3949

skipif mysql # not compatible
query I rowsort label-5661
SELECT - - 90 / - 79 + - SUM ( ALL - 42 ) * - 94
----
-3949

query I rowsort
SELECT ALL - NULLIF ( + NULLIF ( 35, - + 87 ), + 62 * 27 ) * - 54 + + 31 col1
----
1921

query II rowsort
SELECT ALL + 32 AS col2, + 21
----
32
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT ALL + - SUM( + 69 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL + - SUM ( + 69 ) AS col0
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5665
SELECT + - 75 * - + 52 * + + 86 + + CASE - - 96 WHEN 8 THEN - 13 WHEN - COUNT( * ) THEN NULL ELSE NULL END + - NULLIF ( - + CAST( NULL AS SIGNED ), 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5665
SELECT + - 75 * - + 52 * + + 86 + + CASE - - 96 WHEN 8 THEN - 13 WHEN - COUNT ( * ) THEN NULL ELSE NULL END + - NULLIF ( - + CAST ( NULL AS INTEGER ), 10 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5666
SELECT 80 * + 98 + + ( + COUNT( ALL + 87 ) ) + COALESCE ( - ( + NULLIF ( - COALESCE ( - COUNT( * ), + COUNT( - + 74 ) + + 38, + ( - COUNT( * ) ) DIV - 46 ), 75 - + + 34 + 9 ) ), + 23 ) DIV - - 12 * ( - - ( - 34 ) )
----
7841

skipif mysql # not compatible
query I rowsort label-5666
SELECT 80 * + 98 + + ( + COUNT ( ALL + 87 ) ) + COALESCE ( - ( + NULLIF ( - COALESCE ( - COUNT ( * ), + COUNT ( - + 74 ) + + 38, + ( - COUNT ( * ) ) / - 46 ), 75 - + + 34 + 9 ) ), + 23 ) / - - 12 * ( - - ( - 34 ) )
----
7841

query I rowsort
SELECT ALL + ( - - 72 )
----
72

query I rowsort
SELECT ALL 22 * - 28 + 13 - - 22
----
-581

onlyif mysql # DIV for integer division: 
query II rowsort label-5669
SELECT + 99 col0, 90 DIV - - 15 AS col1
----
99
6

skipif mysql # not compatible
query II rowsort label-5669
SELECT + 99 col0, 90 / - - 15 AS col1
----
99
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT + ( + 3 ) * - COUNT( * ) + + 10 * - 74 * + 86 + + - 18 AS col2
----
-63661

skipif mysql # not compatible
query I rowsort label-5670
SELECT + ( + 3 ) * - COUNT ( * ) + + 10 * - 74 * + 86 + + - 18 AS col2
----
-63661

query I rowsort
SELECT - - 20 * - 23 AS col2
----
-460

query I rowsort
SELECT ALL 50 * + 18 AS col1
----
900

query I rowsort
SELECT ALL - 67 * + - NULLIF ( + 22, 6 ) + 65 + + 70 + - + 21 + 60 * + - 38 * + 37
----
-82772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5674
SELECT DISTINCT - 31 * + 30 + COUNT( * ) / + CAST( NULL AS SIGNED ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5674
SELECT DISTINCT - 31 * + 30 + COUNT ( * ) / + CAST ( NULL AS INTEGER ) / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5675
SELECT + - COUNT( * ) DIV + MIN( ALL + 53 ) DIV COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-5675
SELECT + - COUNT ( * ) / + MIN ( ALL + 53 ) / COUNT ( * ) col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5676
SELECT DISTINCT 35 * + 11 + + NULLIF ( 89, CAST( + + COALESCE ( - SUM( - - ( + - 22 ) ), 15 + + + 57 * + 67 ) AS SIGNED ) ) AS col2
----
474

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT 35 * + 11 + + NULLIF ( 89, CAST ( + + COALESCE ( - SUM ( - - ( + - 22 ) ), 15 + + + 57 * + 67 ) AS INTEGER ) ) AS col2
----
474

onlyif mysql # DIV for integer division: 
query I rowsort label-5677
SELECT + 74 DIV - 81 * ( + + 73 )
----
0

skipif mysql # not compatible
query I rowsort label-5677
SELECT + 74 / - 81 * ( + + 73 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT + 0 * + 1 + COUNT( * ) * + 72
----
72

skipif mysql # not compatible
query I rowsort label-5678
SELECT + 0 * + 1 + COUNT ( * ) * + 72
----
72

query I rowsort
SELECT + 66 + + - 64
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5680
SELECT + COALESCE ( - - COUNT( * ), + 67 ) DIV + - 84 AS col1, - 17 * - ( - 38 ) col1
----
0
-646

skipif mysql # not compatible
query II rowsort label-5680
SELECT + COALESCE ( - - COUNT ( * ), + 67 ) / + - 84 AS col1, - 17 * - ( - 38 ) col1
----
0
-646

query I rowsort
SELECT - 30 + 16 * - 14 - 60 AS col0
----
-314

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT + 42 * - COUNT( * ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-5682
SELECT + 42 * - COUNT ( * ) AS col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5683
SELECT ALL CASE - 24 WHEN 30 THEN NULL WHEN + 12 THEN COALESCE ( 95, COUNT( * ), + - ( - AVG ( + - 91 ) ) ) + COUNT( * ) * - CAST( - 41 AS SIGNED ) * - + 2 / - 38 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL CASE - 24 WHEN 30 THEN NULL WHEN + 12 THEN COALESCE ( 95, COUNT ( * ), + - ( - AVG ( + - 91 ) ) ) + COUNT ( * ) * - CAST ( - 41 AS INTEGER ) * - + 2 / - 38 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5684
SELECT ALL SUM( - 61 ), COALESCE ( + 56, + 64 ) * ( - - 34 ) AS col0
----
-61
1904

skipif mysql # not compatible
query II rowsort label-5684
SELECT ALL SUM ( - 61 ), COALESCE ( + 56, + 64 ) * ( - - 34 ) AS col0
----
-61
1904

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT DISTINCT SUM( - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-5685
SELECT DISTINCT SUM ( - 16 )
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-5686
SELECT DISTINCT 11 * 52 DIV + 43 col0
----
13

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT 11 * 52 / + 43 col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5687
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5687
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT DISTINCT CASE + COUNT( * ) WHEN - 37 + + 40 THEN + + CASE WHEN NOT CASE + 38 WHEN AVG ( 64 ) + 81 + - COUNT( * ) THEN - 11 / COUNT( * ) WHEN 7 THEN 11 * + ( - 24 ) END < 8 / + 17 THEN 53 ELSE NULL END WHEN 79 * + 64 + ( + 0 ) + + 73 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5688
SELECT DISTINCT CASE + COUNT ( * ) WHEN - 37 + + 40 THEN + + CASE WHEN NOT CASE + 38 WHEN AVG ( 64 ) + 81 + - COUNT ( * ) THEN - 11 / COUNT ( * ) WHEN 7 THEN 11 * + ( - 24 ) END < 8 / + 17 THEN 53 ELSE NULL END WHEN 79 * + 64 + ( + 0 ) + + 73 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5689
SELECT ALL ( + - 29 ), - 88 * + MIN( 10 ) + - + 73 AS col2
----
-29
-953

skipif mysql # not compatible
query II rowsort label-5689
SELECT ALL ( + - 29 ), - 88 * + MIN ( 10 ) + - + 73 AS col2
----
-29
-953

onlyif mysql # DIV for integer division: 
query I rowsort label-5690
SELECT + COALESCE ( 26, AVG ( ALL - 73 ) DIV 17, + + 16 )
----
26

skipif mysql # not compatible
query I rowsort label-5690
SELECT + COALESCE ( 26, AVG ( ALL - 73 ) / 17, + + 16 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5691
SELECT - + ( CAST( NULL AS SIGNED ) ) * + 42 - - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5691
SELECT - + ( CAST ( NULL AS INTEGER ) ) * + 42 - - 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5692
SELECT DISTINCT + 87 DIV 98 * - + CAST( + - ( + + COUNT( * ) ) AS SIGNED ) + ( + 86 ) + 87 AS col0
----
173

skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT + 87 / 98 * - + CAST ( + - ( + + COUNT ( * ) ) AS INTEGER ) + ( + 86 ) + 87 AS col0
----
173

query I rowsort
SELECT ALL - 29 + ( - ( - - 19 ) ) * 84
----
-1625

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT + + COALESCE ( 69, - - NULLIF ( 30, + + COUNT( * ) / + 75 + + 55 ) + - 12 * - 13, - + 50 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-5694
SELECT + + COALESCE ( 69, - - NULLIF ( 30, + + COUNT ( * ) / + 75 + + 55 ) + - 12 * - 13, - + 50 ) AS col2
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5695
SELECT 85 DIV - + 31 - - 98 * + + 71 + - CASE - SUM( - - 62 ) WHEN - + 97 THEN - 58 ELSE - 21 * 14 + - 23 END AS col2, 80 AS col1
----
7273
80

skipif mysql # not compatible
query II rowsort label-5695
SELECT 85 / - + 31 - - 98 * + + 71 + - CASE - SUM ( - - 62 ) WHEN - + 97 THEN - 58 ELSE - 21 * 14 + - 23 END AS col2, 80 AS col1
----
7273
80

query I rowsort
SELECT - 65 * + 31
----
-2015

query II rowsort
SELECT - 9 * + 95 AS col1, + 97 - - 1
----
-855
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5698
SELECT DISTINCT - COUNT( * ) + 9 AS col2, - 61
----
8
-61

skipif mysql # not compatible
query II rowsort label-5698
SELECT DISTINCT - COUNT ( * ) + 9 AS col2, - 61
----
8
-61

query I rowsort
SELECT ALL 75 + 14
----
89

query II rowsort
SELECT ALL - 2 + - 6, 10 col2
----
-8
10

query I rowsort
SELECT DISTINCT - - 24 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT + CASE - 59 WHEN - + 47 THEN + 65 + - + 9 + - MIN( 20 ) END + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5702
SELECT + CASE - 59 WHEN - + 47 THEN + 65 + - + 9 + - MIN ( 20 ) END + 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT COUNT( * ) * + COUNT( * ) * - + 7 * - 3 col1
----
21

skipif mysql # not compatible
query I rowsort label-5703
SELECT COUNT ( * ) * + COUNT ( * ) * - + 7 * - 3 col1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5704
SELECT 95 + - 19 + - 1 DIV + 42 - - 73 + 80 * 23
----
1989

skipif mysql # not compatible
query I rowsort label-5704
SELECT 95 + - 19 + - 1 / + 42 - - 73 + 80 * 23
----
1989

query II rowsort
SELECT ALL 4 AS col0, 16
----
4
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT DISTINCT MAX( ALL + + 97 ) * - COUNT( * ) * COUNT( * ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT MAX ( ALL + + 97 ) * - COUNT ( * ) * COUNT ( * ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT COUNT( * ) * 76
----
76

skipif mysql # not compatible
query I rowsort label-5707
SELECT COUNT ( * ) * 76
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5708
SELECT DISTINCT + 40 - + - 87 + - + NULLIF ( - 38, - 44 ) - + COALESCE ( - COUNT( * ), + + 4 ) * + COUNT( * ) * - 21 * 14 * 81 DIV + 36 AS col0
----
-496

skipif mysql # not compatible
query I rowsort label-5708
SELECT DISTINCT + 40 - + - 87 + - + NULLIF ( - 38, - 44 ) - + COALESCE ( - COUNT ( * ), + + 4 ) * + COUNT ( * ) * - 21 * 14 * 81 / + 36 AS col0
----
-496

query I rowsort
SELECT ALL CASE - 40 WHEN 77 + 62 + - 23 * 73 * - + 98 THEN 38 * - 67 END - + 98
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5710
SELECT CAST( ( COUNT( 82 ) ) AS SIGNED ) * - - 43 AS col1, + 56 - 5
----
43
51

skipif mysql # not compatible
query II rowsort label-5710
SELECT CAST ( ( COUNT ( 82 ) ) AS INTEGER ) * - - 43 AS col1, + 56 - 5
----
43
51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5711
SELECT ALL CAST( 11 AS SIGNED ) DIV + 13 * - 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL CAST ( 11 AS INTEGER ) / + 13 * - 85 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5712
SELECT DISTINCT 82 DIV + + 3 col1
----
27

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT 82 / + + 3 col1
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-5713
SELECT DISTINCT 89 col0, + 77 * - + 49 * - 29 * 1 + - + NULLIF ( 54, + - COALESCE ( 11, + NULLIF ( + COALESCE ( 40, + + 81 + + - 58, 90 ), + 72 ) * + COUNT( * ) ) )
----
89
109363

skipif mysql # not compatible
query II rowsort label-5713
SELECT DISTINCT 89 col0, + 77 * - + 49 * - 29 * 1 + - + NULLIF ( 54, + - COALESCE ( 11, + NULLIF ( + COALESCE ( 40, + + 81 + + - 58, 90 ), + 72 ) * + COUNT ( * ) ) )
----
89
109363

onlyif mysql # DIV for integer division: 
query I rowsort label-5714
SELECT ( + - 82 ) DIV COALESCE ( - 82, + + 99 ) DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-5714
SELECT ( + - 82 ) / COALESCE ( - 82, + + 99 ) / - 99
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5715
SELECT ALL 17 + ( - - CAST( 39 AS SIGNED ) ) * - 21 + 25 + 41 * 75 DIV 82
----
-740

skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL 17 + ( - - CAST ( 39 AS INTEGER ) ) * - 21 + 25 + 41 * 75 / 82
----
-740

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5716
SELECT ALL CAST( NULL AS DECIMAL ) / 44 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL CAST ( NULL AS REAL ) / 44 col2
----
NULL

query I rowsort
SELECT ALL + 2 * 96 AS col0
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5718
SELECT DISTINCT 78 + - CAST( NULL AS SIGNED ) / + 52 * + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5718
SELECT DISTINCT 78 + - CAST ( NULL AS INTEGER ) / + 52 * + 77
----
NULL

query I rowsort
SELECT ALL 83 + ( + - 8 )
----
75

query I rowsort
SELECT 62 + + 44
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-5721
SELECT ALL 96 + - + 0 + + COUNT( * ) + - COUNT( ALL - ( 98 ) ) + + 60 * - 37 AS col1, + 8
----
-2124
8

skipif mysql # not compatible
query II rowsort label-5721
SELECT ALL 96 + - + 0 + + COUNT ( * ) + - COUNT ( ALL - ( 98 ) ) + + 60 * - 37 AS col1, + 8
----
-2124
8

query I rowsort
SELECT 51 - 79 AS col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5723
SELECT ALL - 42 * CAST( NULLIF ( + COALESCE ( + 79, - 50, + 57 ), - 43 ) AS SIGNED ) * 74
----
-245532

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL - 42 * CAST ( NULLIF ( + COALESCE ( + 79, - 50, + 57 ), - 43 ) AS INTEGER ) * 74
----
-245532

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5724
SELECT + ( - + 29 ) DIV ( 3 ) * - 23 * + 20 + + + 9 + - - NULLIF ( - + ( + 0 ), - 63 + - COUNT( * ) + + COUNT( * ) ) AS col0
----
4149

skipif mysql # not compatible
query I rowsort label-5724
SELECT + ( - + 29 ) / ( 3 ) * - 23 * + 20 + + + 9 + - - NULLIF ( - + ( + 0 ), - 63 + - COUNT ( * ) + + COUNT ( * ) ) AS col0
----
4149

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT ALL - - 29 + + COUNT( * ) + - + 63 * + 67 AS col2
----
-4191

skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL - - 29 + + COUNT ( * ) + - + 63 * + 67 AS col2
----
-4191

query I rowsort
SELECT + + ( - + 7 )
----
-7

query I rowsort
SELECT 0 + - 86
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5728
SELECT ALL 63 + 57 * - - 86 - + COUNT( 60 ) + + 33 DIV - 68 * - + 63 + + COUNT( * )
----
4965

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL 63 + 57 * - - 86 - + COUNT ( 60 ) + + 33 / - 68 * - + 63 + + COUNT ( * )
----
4965

query I rowsort
SELECT DISTINCT 67 + - ( - 86 ) * + 22
----
1959

query I rowsort
SELECT DISTINCT - ( + 85 )
----
-85

query I rowsort
SELECT ALL - - 54 + - 72 AS col0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-5732
SELECT ALL + + 75 DIV + 19 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL + + 75 / + 19 AS col1
----
3

query I rowsort
SELECT ALL + + 50 * + 75
----
3750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5734
SELECT - 79 + - + MAX( ALL - 88 ) DIV + ( 73 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-5734
SELECT - 79 + - + MAX ( ALL - 88 ) / + ( 73 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT ALL - 53 * - 5 * + - COUNT( * ) AS col2
----
-265

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL - 53 * - 5 * + - COUNT ( * ) AS col2
----
-265

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT DISTINCT + COUNT( * ) * + 27
----
27

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT + COUNT ( * ) * + 27
----
27

query II rowsort
SELECT 28 AS col2, 15
----
28
15

query I rowsort
SELECT DISTINCT - 59 col2
----
-59

query II rowsort
SELECT ALL 14, ( 78 ) * + 42 AS col1
----
14
3276

query II rowsort
SELECT 42, - 13 AS col2
----
42
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-5741
SELECT ALL COUNT( * ) col1, 78 + - + ( + 20 ) AS col0
----
1
58

skipif mysql # not compatible
query II rowsort label-5741
SELECT ALL COUNT ( * ) col1, 78 + - + ( + 20 ) AS col0
----
1
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT ALL SUM( ALL - 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL SUM ( ALL - 72 ) AS col0
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5743
SELECT COUNT( * ) * + 98 DIV COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-5743
SELECT COUNT ( * ) * + 98 / COUNT ( * )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT DISTINCT COUNT( ALL 42 )
----
1

skipif mysql # not compatible
query I rowsort label-5744
SELECT DISTINCT COUNT ( ALL 42 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5745
SELECT ALL COALESCE ( + ( 47 ), 50 - MAX( DISTINCT - 74 ) ) AS col0, 98 * - COUNT( * ) + 29 - + 26
----
47
-95

skipif mysql # not compatible
query II rowsort label-5745
SELECT ALL COALESCE ( + ( 47 ), 50 - MAX ( DISTINCT - 74 ) ) AS col0, 98 * - COUNT ( * ) + 29 - + 26
----
47
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5746
SELECT 62 + - - 97 + 76 * 72 * - NULLIF ( - + ( + 23 ), + - CASE + 71 WHEN 75 * + 13 THEN + + 23 * 93 - - 41 WHEN - COALESCE ( - 52, AVG ( 59 ) * + - COUNT( * ) ) THEN + 66 / 82 WHEN - + 52 THEN SUM( - 5 ) END * SUM( ALL - CAST( - - ( 93 ) AS SIGNED ) ) * + 46 ) + - - 2 + 44 + - 99
----
125962

skipif mysql # not compatible
query I rowsort label-5746
SELECT 62 + - - 97 + 76 * 72 * - NULLIF ( - + ( + 23 ), + - CASE + 71 WHEN 75 * + 13 THEN + + 23 * 93 - - 41 WHEN - COALESCE ( - 52, AVG ( 59 ) * + - COUNT ( * ) ) THEN + 66 / 82 WHEN - + 52 THEN SUM ( - 5 ) END * SUM ( ALL - CAST ( - - ( 93 ) AS INTEGER ) ) * + 46 ) + - - 2 + 44 + - 99
----
125962

query II rowsort
SELECT 66 AS col0, 95
----
66
95

query I rowsort
SELECT ALL 23 * + + 98
----
2254

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT COUNT( * ) * 99 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-5749
SELECT COUNT ( * ) * 99 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT ALL 17 + - + ( + SUM( 49 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL 17 + - + ( + SUM ( 49 ) )
----
-32

query I rowsort
SELECT + 23 + + + 75
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT DISTINCT - 46 + - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT - 46 + - COUNT ( * )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5753
SELECT ALL + CAST( 54 AS SIGNED ) * - 29 * MAX( - - 56 ) AS col1
----
-87696

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL + CAST ( 54 AS INTEGER ) * - 29 * MAX ( - - 56 ) AS col1
----
-87696

query II rowsort
SELECT - 46, + 88 AS col1
----
-46
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5755
SELECT ALL 67 + - COUNT( * ) * + 66 DIV SUM( ALL + 57 ) * - 16 - + - 84 + - 64 + - 81 + 89 * 49
----
4383

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL 67 + - COUNT ( * ) * + 66 / SUM ( ALL + 57 ) * - 16 - + - 84 + - 64 + - 81 + 89 * 49
----
4383

query II rowsort
SELECT - + 30, 35 * + - 67 * + 6 AS col0
----
-30
-14070

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5757
SELECT - + COUNT( ALL - 2 ) * + - NULLIF ( + - COUNT( ALL - 24 ), + - NULLIF ( - COUNT( * ), + COALESCE ( - 33, - + COUNT( * ) * - - 67, - - 14 ) * + + 34 * + CASE - - COALESCE ( COALESCE ( 36, + + 70, - 10 * - CASE - 71 WHEN + 55 * + - 42 THEN 22 - + 40 + 52 WHEN 38 + 5 * + 93 THEN NULL ELSE + ( + 40 ) END ), 0, - 52 + 65, - ( 44 ) + COUNT( * ) ) WHEN COUNT( * ) THEN NULL WHEN ( CAST( NULL AS DECIMAL ) ) THEN - 73 ELSE NULL END * + 39 + 33 / 90 ) + ( - ( 10 ) + 64 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5757
SELECT - + COUNT ( ALL - 2 ) * + - NULLIF ( + - COUNT ( ALL - 24 ), + - NULLIF ( - COUNT ( * ), + COALESCE ( - 33, - + COUNT ( * ) * - - 67, - - 14 ) * + + 34 * + CASE - - COALESCE ( COALESCE ( 36, + + 70, - 10 * - CASE - 71 WHEN + 55 * + - 42 THEN 22 - + 40 + 52 WHEN 38 + 5 * + 93 THEN NULL ELSE + ( + 40 ) END ), 0, - 52 + 65, - ( 44 ) + COUNT ( * ) ) WHEN COUNT ( * ) THEN NULL WHEN ( CAST ( NULL AS REAL ) ) THEN - 73 ELSE NULL END * + 39 + 33 / 90 ) + ( - ( 10 ) + 64 ) ) col0
----
-1

query I rowsort
SELECT + + 76 + 30 + 72
----
178

query I rowsort
SELECT DISTINCT - ( - ( - + 12 ) ) col0
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5760
SELECT ALL + 38 DIV 38, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-5760
SELECT ALL + 38 / 38, COUNT ( * )
----
1
1

query I rowsort
SELECT - ( - + ( + + 95 ) )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-5762
SELECT ALL + 21 + MIN( NULLIF ( + 95, 67 + + 55 ) ), 62 AS col0
----
116
62

skipif mysql # not compatible
query II rowsort label-5762
SELECT ALL + 21 + MIN ( NULLIF ( + 95, 67 + + 55 ) ), 62 AS col0
----
116
62

query I rowsort
SELECT + 86 * 5 * - 41 - + ( CASE - 85 WHEN 34 THEN NULL ELSE - + 98 END )
----
-17532

query I rowsort
SELECT + 0 * - 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT DISTINCT + COUNT( - 61 )
----
1

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT + COUNT ( - 61 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT + + 75 * COALESCE ( 0, - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-5766
SELECT + + 75 * COALESCE ( 0, - COUNT ( * ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5767
SELECT + COUNT( * ) AS col0, ( + + 74 ) + 57 - - ( + 72 ) + + CASE + - 37 WHEN - 56 + - 2 + + - CAST( COUNT( * ) AS SIGNED ) + 40 / - - 58 THEN 0 END + - 62 + - 45 - + 68 + + 71 + - 24 * - ( + + 23 ) - + NULLIF ( SUM( ALL + - 91 ), + + 8 ) + CASE - - 68 WHEN 50 THEN - - 6 ELSE - 98 + 87 * 83 END * + 42 / 61
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5767
SELECT + COUNT ( * ) AS col0, ( + + 74 ) + 57 - - ( + 72 ) + + CASE + - 37 WHEN - 56 + - 2 + + - CAST ( COUNT ( * ) AS INTEGER ) + 40 / - - 58 THEN 0 END + - 62 + - 45 - + 68 + + 71 + - 24 * - ( + + 23 ) - + NULLIF ( SUM ( ALL + - 91 ), + + 8 ) + CASE - - 68 WHEN 50 THEN - - 6 ELSE - 98 + 87 * 83 END * + 42 / 61
----
1
NULL

query I rowsort
SELECT + - COALESCE ( + - 86, - + 70 * + 13 - + + 18 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT - CASE - COUNT( * ) WHEN - 23 THEN + COUNT( * ) ELSE + 73 END AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-5769
SELECT - CASE - COUNT ( * ) WHEN - 23 THEN + COUNT ( * ) ELSE + 73 END AS col1
----
-73

query I rowsort
SELECT + - 14 * - 22 + 67
----
375

query II rowsort
SELECT + 25 AS col1, 58 AS col2
----
25
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5772
SELECT ALL + + 77 AS col2, + COALESCE ( - 50, + 53 ) + + 57 * COUNT( * ) DIV + 56
----
77
-49

skipif mysql # not compatible
query II rowsort label-5772
SELECT ALL + + 77 AS col2, + COALESCE ( - 50, + 53 ) + + 57 * COUNT ( * ) / + 56
----
77
-49

query I rowsort
SELECT DISTINCT 81 * + + 50 * - 34
----
-137700

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT 58 * MAX( + 4 ) - + - COUNT( * ) - - 32 * + ( + 51 ) * + COUNT( + + 81 )
----
1865

skipif mysql # not compatible
query I rowsort label-5774
SELECT 58 * MAX ( + 4 ) - + - COUNT ( * ) - - 32 * + ( + 51 ) * + COUNT ( + + 81 )
----
1865

query I rowsort
SELECT - 13 * 33 AS col1
----
-429

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT COALESCE ( - - COUNT( * ), - - 55, 64 + 4 )
----
1

skipif mysql # not compatible
query I rowsort label-5776
SELECT COALESCE ( - - COUNT ( * ), - - 55, 64 + 4 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5777
SELECT CASE + + ( - 50 ) WHEN 56 THEN MIN( 13 ) WHEN 99 THEN NULL END AS col1, 29 AS col1
----
NULL
29

skipif mysql # not compatible
query II rowsort label-5777
SELECT CASE + + ( - 50 ) WHEN 56 THEN MIN ( 13 ) WHEN 99 THEN NULL END AS col1, 29 AS col1
----
NULL
29

query I rowsort
SELECT 58 * 28 + 87 + ( 18 ) + - 42 * - 78 * - 5
----
-14651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5779
SELECT - 65 / - CAST( NULL AS SIGNED ) * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-5779
SELECT - 65 / - CAST ( NULL AS INTEGER ) * 15
----
NULL

query I rowsort
SELECT + 77 * - 30
----
-2310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5781
SELECT - COUNT( * ) * + 78 + + 75 + 92 DIV + 98 - - - 65
----
-68

skipif mysql # not compatible
query I rowsort label-5781
SELECT - COUNT ( * ) * + 78 + + 75 + 92 / + 98 - - - 65
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5782
SELECT + CAST( - 7 AS SIGNED ) AS col2, + 22 * + 93
----
-7
2046

skipif mysql # not compatible
query II rowsort label-5782
SELECT + CAST ( - 7 AS INTEGER ) AS col2, + 22 * + 93
----
-7
2046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5783
SELECT - CASE - COUNT( * ) WHEN - 60 THEN + 17 * + - 23 * + CAST( NULL AS SIGNED ) + - + NULLIF ( + 15, COUNT( * ) ) + 63 + - 89 * + 41 END + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5783
SELECT - CASE - COUNT ( * ) WHEN - 60 THEN + 17 * + - 23 * + CAST ( NULL AS INTEGER ) + - + NULLIF ( + 15, COUNT ( * ) ) + 63 + - 89 * + 41 END + + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5784
SELECT ALL 87 * + CAST( - 50 AS SIGNED ) * 94 + + 8 + - 74 + - 45 + + - CAST( + 53 AS SIGNED )
----
-409064

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL 87 * + CAST ( - 50 AS INTEGER ) * 94 + + 8 + - 74 + - 45 + + - CAST ( + 53 AS INTEGER )
----
-409064

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT ALL COUNT( + - 50 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5785
SELECT ALL COUNT ( + - 50 ) AS col0
----
1

query I rowsort
SELECT ALL - 32 + + 48 * + + ( - - 14 ) * + + 49 AS col2
----
32896

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT - 82 + - - 66 + - - COUNT( * ) + 68 + - - 1 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-5787
SELECT - 82 + - - 66 + - - COUNT ( * ) + 68 + - - 1 AS col0
----
54

query II rowsort
SELECT ALL - 50 + - 74 AS col0, + 58
----
-124
58

query I rowsort
SELECT ALL + 87 + + 86 - - + 13 * + NULLIF ( + - 97, + - 52 ) + 73 * - 60
----
-5468

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT - MIN( DISTINCT + 49 ) - + + 6 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-5790
SELECT - MIN ( DISTINCT + 49 ) - + + 6 AS col2
----
-55

query II rowsort
SELECT DISTINCT ( + 94 ), - 18 + - 18 + ( - 10 ) + + ( - 92 ) AS col1
----
94
-138

query I rowsort
SELECT - - 11 + + 55
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5793
SELECT + COALESCE ( - 56, + 45 DIV + + 59 + - 6 + + 57 + - 75 * + + 89 * + MIN( ALL 5 ) * 88 * + 13 * - + 69 * - ( - 12 ) + - MAX( - + 9 ) + + 21 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-5793
SELECT + COALESCE ( - 56, + 45 / + + 59 + - 6 + + 57 + - 75 * + + 89 * + MIN ( ALL 5 ) * 88 * + 13 * - + 69 * - ( - 12 ) + - MAX ( - + 9 ) + + 21 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT DISTINCT - 0 + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT - 0 + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT - NULLIF ( + - 91, - 60 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT - MIN( ALL - + 70 ) - ( + COUNT( * ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-5796
SELECT - MIN ( ALL - + 70 ) - ( + COUNT ( * ) ) AS col2
----
69

query I rowsort
SELECT - + ( - 55 ) * 46 AS col2
----
2530

query I rowsort
SELECT - 84 - 46 * 86 col2
----
-4040

onlyif mysql # aggregate syntax: 
query II rowsort label-5799
SELECT DISTINCT - 59 * - 94, 17 - + - COUNT( * ) AS col2
----
5546
18

skipif mysql # not compatible
query II rowsort label-5799
SELECT DISTINCT - 59 * - 94, 17 - + - COUNT ( * ) AS col2
----
5546
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT - ( + 99 ) * - - 29 + + - 99 * MAX( ALL + 54 ) AS col2
----
-8217

skipif mysql # not compatible
query I rowsort label-5800
SELECT - ( + 99 ) * - - 29 + + - 99 * MAX ( ALL + 54 ) AS col2
----
-8217

query I rowsort
SELECT + - 4 * + 84 AS col1
----
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT + 87 * 79 * - 39 + - 58 * COUNT( * ) + - + 8
----
-268113

skipif mysql # not compatible
query I rowsort label-5802
SELECT + 87 * 79 * - 39 + - 58 * COUNT ( * ) + - + 8
----
-268113

query I rowsort
SELECT DISTINCT 26 / CASE WHEN ( + 7 ) IS NULL THEN + 6 + + ( - 22 ) END * 5 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5804
SELECT - - ( + 10 ) / - - 88 + - 36 + - CAST( NULL AS SIGNED ) + + - 51 * - + 80 * + CAST( - 63 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5804
SELECT - - ( + 10 ) / - - 88 + - 36 + - CAST ( NULL AS INTEGER ) + + - 51 * - + 80 * + CAST ( - 63 AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5805
SELECT + 14 + - + ( + 92 ) DIV + - 5 + - 35 AS col1, + COALESCE ( - 73, + 82, 56 DIV - 14 )
----
-3
-73

skipif mysql # not compatible
query II rowsort label-5805
SELECT + 14 + - + ( + 92 ) / + - 5 + - 35 AS col1, + COALESCE ( - 73, + 82, 56 / - 14 )
----
-3
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-5806
SELECT ALL + 65 AS col0, - COUNT( * ) * 4 + 2 + - 55
----
65
-57

skipif mysql # not compatible
query II rowsort label-5806
SELECT ALL + 65 AS col0, - COUNT ( * ) * 4 + 2 + - 55
----
65
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-5807
SELECT + 89 * + - SUM( - 63 ), + NULLIF ( 75, 77 ) AS col2
----
5607
75

skipif mysql # not compatible
query II rowsort label-5807
SELECT + 89 * + - SUM ( - 63 ), + NULLIF ( 75, 77 ) AS col2
----
5607
75

query I rowsort
SELECT DISTINCT 13 * + 40
----
520

query I rowsort
SELECT ( - + 81 ) col1
----
-81

query I rowsort
SELECT ALL 48 * - 45 AS col0
----
-2160

query I rowsort
SELECT + 53 * - + 24 AS col1
----
-1272

query I rowsort
SELECT + ( + - 62 )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5813
SELECT DISTINCT 77 * CASE - - 17 WHEN - MIN( - 28 ) + - + CASE + COALESCE ( + ( COALESCE ( - 85, - ( - 80 ), + CASE - 71 WHEN + - 74 THEN + - 71 / + - 42 + + 79 + + - COUNT( * ) + - 31 END * 85 + - 49 ) ), + 82 ) WHEN - CAST( NULL AS DECIMAL ) * 32 / 42 THEN 23 END THEN - COUNT( * ) END AS col1, 14
----
NULL
14

skipif mysql # not compatible
query II rowsort label-5813
SELECT DISTINCT 77 * CASE - - 17 WHEN - MIN ( - 28 ) + - + CASE + COALESCE ( + ( COALESCE ( - 85, - ( - 80 ), + CASE - 71 WHEN + - 74 THEN + - 71 / + - 42 + + 79 + + - COUNT ( * ) + - 31 END * 85 + - 49 ) ), + 82 ) WHEN - CAST ( NULL AS REAL ) * 32 / 42 THEN 23 END THEN - COUNT ( * ) END AS col1, 14
----
NULL
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5814
SELECT DISTINCT 41 + + 44 + ( CAST( NULL AS SIGNED ) ) + - 57 * - + 9 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5814
SELECT DISTINCT 41 + + 44 + ( CAST ( NULL AS INTEGER ) ) + - 57 * - + 9 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5815
SELECT ALL 0 + - + 96 + CAST( NULL AS SIGNED ) + + 28 + - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL 0 + - + 96 + CAST ( NULL AS INTEGER ) + + 28 + - 54 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5816
SELECT ALL 12 * - 88 / + - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL 12 * - 88 / + - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 46 + + - 57 + + 62
----
-41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5818
SELECT 96 col1, COUNT( DISTINCT + CAST( + 44 AS DECIMAL ) )
----
96
1

skipif mysql # not compatible
query II rowsort label-5818
SELECT 96 col1, COUNT ( DISTINCT + CAST ( + 44 AS REAL ) )
----
96
1

query II rowsort
SELECT 4, 30 AS col1
----
4
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5820
SELECT COUNT( * ) * CAST( + NULLIF ( - + 66, + 0 ) AS SIGNED ) + - COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-5820
SELECT COUNT ( * ) * CAST ( + NULLIF ( - + 66, + 0 ) AS INTEGER ) + - COUNT ( * ) AS col1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5821
SELECT ( - - COUNT( - - 60 ) ) - - CAST( - 26 AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-5821
SELECT ( - - COUNT ( - - 60 ) ) - - CAST ( - 26 AS INTEGER )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5822
SELECT 86 + - 9 + CAST( - 8 AS SIGNED ) - 79 * + - CAST( + 48 AS SIGNED )
----
3861

skipif mysql # not compatible
query I rowsort label-5822
SELECT 86 + - 9 + CAST ( - 8 AS INTEGER ) - 79 * + - CAST ( + 48 AS INTEGER )
----
3861

query I rowsort
SELECT ALL - 28 * 0 * + - 94 * - 94 AS col2
----
0

query II rowsort
SELECT DISTINCT 95, - 51 AS col1
----
95
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT ALL - - COUNT( * ) - 47 * + 24 * + 95 + + 35 AS col2
----
-107124

skipif mysql # not compatible
query I rowsort label-5825
SELECT ALL - - COUNT ( * ) - 47 * + 24 * + 95 + + 35 AS col2
----
-107124

onlyif mysql # DIV for integer division: 
query I rowsort label-5826
SELECT DISTINCT + 43 DIV - - 12
----
3

skipif mysql # not compatible
query I rowsort label-5826
SELECT DISTINCT + 43 / - - 12
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5827
SELECT ALL - CAST( - 57 AS SIGNED ) * 60 AS col2, + 0 * + - 30 col1
----
3420
0

skipif mysql # not compatible
query II rowsort label-5827
SELECT ALL - CAST ( - 57 AS INTEGER ) * 60 AS col2, + 0 * + - 30 col1
----
3420
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5828
SELECT DISTINCT COUNT( * ), 5 col2
----
1
5

skipif mysql # not compatible
query II rowsort label-5828
SELECT DISTINCT COUNT ( * ), 5 col2
----
1
5

query I rowsort
SELECT DISTINCT + 77 * + - 32
----
-2464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5830
SELECT DISTINCT + 72 DIV + - COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-5830
SELECT DISTINCT + 72 / + - COUNT ( * ) AS col2
----
-72

query I rowsort
SELECT + 26 * + 2 AS col0
----
52

query I rowsort
SELECT 6 + 76 AS col1
----
82

query I rowsort
SELECT + 9 * + - 57 * - 46 * + + 68 + - 60 + 54 AS col1
----
1604658

onlyif mysql # aggregate syntax: 
query II rowsort label-5834
SELECT - 18 + - + COUNT( * ) - + ( - 62 ), 28 AS col2
----
43
28

skipif mysql # not compatible
query II rowsort label-5834
SELECT - 18 + - + COUNT ( * ) - + ( - 62 ), 28 AS col2
----
43
28

query II rowsort
SELECT 87 AS col0, - 8
----
87
-8

query I rowsort
SELECT ALL ( + - 62 )
----
-62

query I rowsort
SELECT DISTINCT - ( + 98 ) AS col0
----
-98

query I rowsort
SELECT DISTINCT NULLIF ( - 57, - 8 )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5839
SELECT NULLIF ( + - 84, - - 89 ) * - COUNT( ALL 85 ) * 89 + - + CAST( - 35 AS SIGNED ) * + + 89 * + ( - SUM( ALL - 4 ) ) AS col0
----
19936

skipif mysql # not compatible
query I rowsort label-5839
SELECT NULLIF ( + - 84, - - 89 ) * - COUNT ( ALL 85 ) * 89 + - + CAST ( - 35 AS INTEGER ) * + + 89 * + ( - SUM ( ALL - 4 ) ) AS col0
----
19936

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT ALL - + COUNT( + 91 ) * 16 + - 14 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL - + COUNT ( + 91 ) * 16 + - 14 AS col2
----
-30

query I rowsort
SELECT - 55 * + 26 - ( 13 ) - + - 70 AS col0
----
-1373

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT - ( - + COUNT( * ) ) * COUNT( * ) * 98 - - - CASE + 97 WHEN - 85 THEN NULL WHEN - 36 + + + AVG ( + 6 ) THEN NULL WHEN 89 / + + 69 THEN - + 30 * - + 45 + - + 17 + + 83 * + 63 + ( - 94 ) END / + 23 + + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-5842
SELECT - ( - + COUNT ( * ) ) * COUNT ( * ) * 98 - - - CASE + 97 WHEN - 85 THEN NULL WHEN - 36 + + + AVG ( + 6 ) THEN NULL WHEN 89 / + + 69 THEN - + 30 * - + 45 + - + 17 + + 83 * + 63 + ( - 94 ) END / + 23 + + + 38
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5843
SELECT ALL + 67 + + + 26 DIV COUNT( * ) * - COUNT( * ) - - 45 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-5843
SELECT ALL + 67 + + + 26 / COUNT ( * ) * - COUNT ( * ) - - 45 AS col1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5844
SELECT 20 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5844
SELECT 20 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 7 + - 36 col0
----
-29

query I rowsort
SELECT DISTINCT ( ( 25 ) ) + + - 40
----
-15

query I rowsort
SELECT ALL 24 + 48 * 0 + + 78 * 92 + 60 AS col0
----
7260

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT ALL 0 + COALESCE ( + ( - + 66 ), - + MAX( + 20 ), 83 * - COUNT( * ) ) + ( + + 59 ) * + 81
----
4713

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL 0 + COALESCE ( + ( - + 66 ), - + MAX ( + 20 ), 83 * - COUNT ( * ) ) + ( + + 59 ) * + 81
----
4713

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT - 54 * ( + 27 ) - - - COUNT( * ) col0
----
-1459

skipif mysql # not compatible
query I rowsort label-5849
SELECT - 54 * ( + 27 ) - - - COUNT ( * ) col0
----
-1459

onlyif mysql # DIV for integer division: 
query II rowsort label-5850
SELECT ALL 18 DIV 41, - 17 + + 0 AS col0
----
0
-17

skipif mysql # not compatible
query II rowsort label-5850
SELECT ALL 18 / 41, - 17 + + 0 AS col0
----
0
-17

query I rowsort
SELECT DISTINCT + 50 + 10 - - 61 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT DISTINCT 53 * + 95 * - - MIN( DISTINCT 56 ) AS col1
----
281960

skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT 53 * + 95 * - - MIN ( DISTINCT 56 ) AS col1
----
281960

query I rowsort
SELECT ALL 64 + + ( 77 ) AS col1
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-5854
SELECT COUNT( * ) * + + 41, - 85 * 26 AS col1
----
41
-2210

skipif mysql # not compatible
query II rowsort label-5854
SELECT COUNT ( * ) * + + 41, - 85 * 26 AS col1
----
41
-2210

query I rowsort
SELECT 32 * - - 49 + + CASE + 23 WHEN - + 85 * - ( 73 ) - + 83 - 78 THEN NULL ELSE + 85 END
----
1653

query I rowsort
SELECT ALL 58 * - + 61 AS col1
----
-3538

query I rowsort
SELECT + 15 * - 2 - 18 AS col2
----
-48

query I rowsort
SELECT DISTINCT 93 * 57 AS col0
----
5301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5859
SELECT DISTINCT COUNT( ALL + 44 ) - + + CAST( + - 54 AS SIGNED ) col2
----
55

skipif mysql # not compatible
query I rowsort label-5859
SELECT DISTINCT COUNT ( ALL + 44 ) - + + CAST ( + - 54 AS INTEGER ) col2
----
55

query I rowsort
SELECT ALL 10 * 24 AS col0
----
240

onlyif mysql # aggregate syntax: 
query II rowsort label-5861
SELECT ALL 22 * + - 92 AS col2, + COUNT( * ) AS col0
----
-2024
1

skipif mysql # not compatible
query II rowsort label-5861
SELECT ALL 22 * + - 92 AS col2, + COUNT ( * ) AS col0
----
-2024
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5862
SELECT ALL ( - CAST( + - 13 AS SIGNED ) ) - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL ( - CAST ( + - 13 AS INTEGER ) ) - COUNT ( * )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5863
SELECT ALL NULLIF ( - - COALESCE ( CAST( NULL AS SIGNED ), - + 62 ), - COUNT( * ) ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL NULLIF ( - - COALESCE ( CAST ( NULL AS INTEGER ), - + 62 ), - COUNT ( * ) ) AS col1
----
-62

query I rowsort
SELECT + 57 + - - 50
----
107

query I rowsort
SELECT - + ( + + 73 ) AS col1
----
-73

query I rowsort
SELECT ALL + 90 - 22
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT 31 + + - MIN( ALL - 53 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-5867
SELECT 31 + + - MIN ( ALL - 53 ) AS col0
----
84

onlyif mysql # DIV for integer division: 
query II rowsort label-5868
SELECT + 24 DIV + 16, + ( - 48 ) AS col0
----
1
-48

skipif mysql # not compatible
query II rowsort label-5868
SELECT + 24 / + 16, + ( - 48 ) AS col0
----
1
-48

query I rowsort
SELECT 90 * - 60 * - + NULLIF ( - + 80, - 95 + - - 16 )
----
-432000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5870
SELECT DISTINCT + CAST( + 69 AS SIGNED ) * - - MIN( + + 25 ) + + 22
----
1747

skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT + CAST ( + 69 AS INTEGER ) * - - MIN ( + + 25 ) + + 22
----
1747

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5871
SELECT ALL + - NULLIF ( - 66, - 98 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL + - NULLIF ( - 66, - 98 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5872
SELECT ALL - 38 DIV 95 * 1
----
0

skipif mysql # not compatible
query I rowsort label-5872
SELECT ALL - 38 / 95 * 1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5873
SELECT 0 - + CAST( + CASE + - COUNT( * ) WHEN - - 25 * + ( + - 46 ) * 64 + - + ( COUNT( * ) ) * + SUM( - 89 ) THEN + 70 - + - 41 - + 52 + 86 + 35 * - + CASE 48 WHEN - SUM( 95 ) + - + 45 + + - 40 / - + 62 + - 14 / - 34 THEN NULL WHEN - - 66 * 76 + + + NULLIF ( 94, - - ( - + 27 ) ) + - + 33 + - + 13 * - 47 THEN 61 * + 74 END / 61 * 43 WHEN - ( CASE - 69 WHEN + COUNT( * ) + + 38 / - 18 THEN NULL WHEN 54 THEN + 44 - 2 WHEN 34 THEN ( 6 ) * + CAST( NULL AS SIGNED ) + 66 ELSE - 27 END ) / 10 THEN + 91 ELSE - ( - SUM( - 26 ) ) END AS SIGNED ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-5873
SELECT 0 - + CAST ( + CASE + - COUNT ( * ) WHEN - - 25 * + ( + - 46 ) * 64 + - + ( COUNT ( * ) ) * + SUM ( - 89 ) THEN + 70 - + - 41 - + 52 + 86 + 35 * - + CASE 48 WHEN - SUM ( 95 ) + - + 45 + + - 40 / - + 62 + - 14 / - 34 THEN NULL WHEN - - 66 * 76 + + + NULLIF ( 94, - - ( - + 27 ) ) + - + 33 + - + 13 * - 47 THEN 61 * + 74 END / 61 * 43 WHEN - ( CASE - 69 WHEN + COUNT ( * ) + + 38 / - 18 THEN NULL WHEN 54 THEN + 44 - 2 WHEN 34 THEN ( 6 ) * + CAST ( NULL AS INTEGER ) + 66 ELSE - 27 END ) / 10 THEN + 91 ELSE - ( - SUM ( - 26 ) ) END AS INTEGER ) AS col0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5874
SELECT + MIN( - 68 ) + + - 86 + - SUM( DISTINCT - 72 ) - - NULLIF ( + + 41, 88 DIV 79 - ( 96 ) * + CASE - - 17 WHEN - 3 THEN - 68 WHEN - 29 + - + 13 THEN - ( 37 ) * - CASE - COUNT( * ) WHEN + 3 THEN - COUNT( * ) * + CASE 52 WHEN + COUNT( * ) THEN NULL ELSE + COUNT( * ) DIV 38 * - - COUNT( * ) END WHEN + + COUNT( * ) - + + 70 THEN NULL ELSE + ( - + COALESCE ( + - NULLIF ( 93, + 85 ), - COUNT( * ), COUNT( * ) ) ) + CASE + AVG ( 35 ) + + COUNT( * ) WHEN - 36 - 97 THEN 27 - + COUNT( * ) END * + 48 END * 35 + + 46 ELSE - 64 END + + ( + 32 ) ) * 78 DIV 82 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-5874
SELECT + MIN ( - 68 ) + + - 86 + - SUM ( DISTINCT - 72 ) - - NULLIF ( + + 41, 88 / 79 - ( 96 ) * + CASE - - 17 WHEN - 3 THEN - 68 WHEN - 29 + - + 13 THEN - ( 37 ) * - CASE - COUNT ( * ) WHEN + 3 THEN - COUNT ( * ) * + CASE 52 WHEN + COUNT ( * ) THEN NULL ELSE + COUNT ( * ) / 38 * - - COUNT ( * ) END WHEN + + COUNT ( * ) - + + 70 THEN NULL ELSE + ( - + COALESCE ( + - NULLIF ( 93, + 85 ), - COUNT ( * ), COUNT ( * ) ) ) + CASE + AVG ( 35 ) + + COUNT ( * ) WHEN - 36 - 97 THEN 27 - + COUNT ( * ) END * + 48 END * 35 + + 46 ELSE - 64 END + + ( + 32 ) ) * 78 / 82 AS col0
----
-43

query I rowsort
SELECT + 96 + - 31
----
65

query I rowsort
SELECT ALL 65 + 56
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT SUM( ALL - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-5877
SELECT SUM ( ALL - 79 )
----
-79

query I rowsort
SELECT 38 * 19 AS col0
----
722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5879
SELECT - 49 + - CASE 41 WHEN 49 + ( - - COUNT( DISTINCT - 47 ) ) + + 81 * - COUNT( * ) THEN + - 21 WHEN - 62 * CAST( - 59 AS SIGNED ) + ( 0 ) THEN + 84 * + 45 * + - NULLIF ( - 46, + 46 ) * - 17 + 5 ELSE + + ( 7 ) END AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-5879
SELECT - 49 + - CASE 41 WHEN 49 + ( - - COUNT ( DISTINCT - 47 ) ) + + 81 * - COUNT ( * ) THEN + - 21 WHEN - 62 * CAST ( - 59 AS INTEGER ) + ( 0 ) THEN + 84 * + 45 * + - NULLIF ( - 46, + 46 ) * - 17 + 5 ELSE + + ( 7 ) END AS col1
----
-56

query I rowsort
SELECT 69 - 93 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT - COUNT( * ) * + 87 + - 74 + - 18 AS col0
----
-179

skipif mysql # not compatible
query I rowsort label-5881
SELECT - COUNT ( * ) * + 87 + - 74 + - 18 AS col0
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT MIN( ALL - ( - 28 ) ) - COUNT( * ) + + + 18
----
45

skipif mysql # not compatible
query I rowsort label-5882
SELECT MIN ( ALL - ( - 28 ) ) - COUNT ( * ) + + + 18
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5883
SELECT - 38 DIV - 39 + ( + COUNT( * ) ) * 31 * - - ( + + 24 ) + 43 AS col0
----
787

skipif mysql # not compatible
query I rowsort label-5883
SELECT - 38 / - 39 + ( + COUNT ( * ) ) * 31 * - - ( + + 24 ) + 43 AS col0
----
787

query I rowsort
SELECT ALL 62 * 60 + + + 6 AS col0
----
3726

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT ALL + 61 * 21 * COUNT( * ) + - COUNT( DISTINCT - - 7 ) * - ( - + 35 ) + - 91
----
1155

skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL + 61 * 21 * COUNT ( * ) + - COUNT ( DISTINCT - - 7 ) * - ( - + 35 ) + - 91
----
1155

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5886
SELECT - 6 + + + COUNT( DISTINCT - 24 ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5886
SELECT - 6 + + + COUNT ( DISTINCT - 24 ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5887
SELECT ALL + 45 * + MIN( ALL + 23 ) + + - 73 - - 79 - + - 50 + - 5 * + 55 * CAST( 37 AS SIGNED )
----
-9084

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL + 45 * + MIN ( ALL + 23 ) + + - 73 - - 79 - + - 50 + - 5 * + 55 * CAST ( 37 AS INTEGER )
----
-9084

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5888
SELECT ALL 6 * - + CAST( + COUNT( * ) AS SIGNED ) + + + COUNT( * ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL 6 * - + CAST ( + COUNT ( * ) AS INTEGER ) + + + COUNT ( * ) AS col1
----
-5

query I rowsort
SELECT DISTINCT + 46 * - + 1 * + 43 AS col0
----
-1978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5890
SELECT + 99 DIV + 51 + + 66 + + - CAST( + COUNT( * ) AS SIGNED ) * + 50 * + 78
----
-3833

skipif mysql # not compatible
query I rowsort label-5890
SELECT + 99 / + 51 + + 66 + + - CAST ( + COUNT ( * ) AS INTEGER ) * + 50 * + 78
----
-3833

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT - COUNT( * ) * 67
----
-67

skipif mysql # not compatible
query I rowsort label-5891
SELECT - COUNT ( * ) * 67
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT + ( - COUNT( * ) ) * - 20 + - + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-5892
SELECT + ( - COUNT ( * ) ) * - 20 + - + COUNT ( * )
----
19

query I rowsort
SELECT ALL + 28 * 58 AS col1
----
1624

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT DISTINCT 86 * - 55 - - COUNT( * )
----
-4729

skipif mysql # not compatible
query I rowsort label-5894
SELECT DISTINCT 86 * - 55 - - COUNT ( * )
----
-4729

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT MAX( ALL - 16 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-5895
SELECT MAX ( ALL - 16 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT - ( COUNT( * ) ) * + - 25
----
25

skipif mysql # not compatible
query I rowsort label-5896
SELECT - ( COUNT ( * ) ) * + - 25
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5897
SELECT ALL + ( + CASE - 67 WHEN + - 29 THEN NULL ELSE + - CAST( + 43 AS SIGNED ) END ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL + ( + CASE - 67 WHEN + - 29 THEN NULL ELSE + - CAST ( + 43 AS INTEGER ) END ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT 92 * 39 + - MIN( + 15 ) AS col1
----
3573

skipif mysql # not compatible
query I rowsort label-5898
SELECT 92 * 39 + - MIN ( + 15 ) AS col1
----
3573

query I rowsort
SELECT + ( 84 ) col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5900
SELECT + 64 * MAX( DISTINCT - CAST( CASE + - 20 WHEN - + 94 THEN NULL WHEN + 75 THEN NULL WHEN - CAST( + + 5 AS DECIMAL ) THEN 9 + 44 ELSE NULL END AS SIGNED ) ) + - 94 * - + 73 - - - 54 + 79 + - 44 + + ( 79 ) - - + 54 * + + 20 - - + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5900
SELECT + 64 * MAX ( DISTINCT - CAST ( CASE + - 20 WHEN - + 94 THEN NULL WHEN + 75 THEN NULL WHEN - CAST ( + + 5 AS REAL ) THEN 9 + 44 ELSE NULL END AS INTEGER ) ) + - 94 * - + 73 - - - 54 + 79 + - 44 + + ( 79 ) - - + 54 * + + 20 - - + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT ALL - MAX( 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL - MAX ( 58 )
----
-58

query I rowsort
SELECT + - COALESCE ( - 44, 35 ) * - + 17 + - 84
----
-832

query I rowsort
SELECT - 8 - + 65 * 49
----
-3193

query I rowsort
SELECT DISTINCT 52 * - 11 AS col1
----
-572

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT - COUNT( * ) - 3
----
-4

skipif mysql # not compatible
query I rowsort label-5905
SELECT - COUNT ( * ) - 3
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5906
SELECT ALL - COALESCE ( ( 68 ), - - 85, + + CAST( + COUNT( * ) AS SIGNED ) * - 26, + - 11 DIV + + 63 * + + 51 + 26 * 2 ) * 61, 93 AS col0
----
-4148
93

skipif mysql # not compatible
query II rowsort label-5906
SELECT ALL - COALESCE ( ( 68 ), - - 85, + + CAST ( + COUNT ( * ) AS INTEGER ) * - 26, + - 11 / + + 63 * + + 51 + 26 * 2 ) * 61, 93 AS col0
----
-4148
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5907
SELECT ALL CASE - COUNT( * ) WHEN + 34 THEN NULL ELSE + 38 * + + CAST( NULL AS SIGNED ) END, + COALESCE ( + + ( - - 6 ), - 94 ) AS col1
----
NULL
6

skipif mysql # not compatible
query II rowsort label-5907
SELECT ALL CASE - COUNT ( * ) WHEN + 34 THEN NULL ELSE + 38 * + + CAST ( NULL AS INTEGER ) END, + COALESCE ( + + ( - - 6 ), - 94 ) AS col1
----
NULL
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT DISTINCT + + 22 + - + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-5908
SELECT DISTINCT + + 22 + - + COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT COUNT( DISTINCT - 4 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5909
SELECT COUNT ( DISTINCT - 4 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5910
SELECT ALL 97 + - 67 DIV + 63
----
96

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL 97 + - 67 / + 63
----
96

query I rowsort
SELECT + 66 + + ( - 78 ) * + 81
----
-6252

query I rowsort
SELECT ALL 36 + - + 72 * 94
----
-6732

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5913
SELECT CAST( NULL AS SIGNED ), 36 AS col2
----
NULL
36

skipif mysql # not compatible
query II rowsort label-5913
SELECT CAST ( NULL AS INTEGER ), 36 AS col2
----
NULL
36

query II rowsort
SELECT - 22 AS col0, + 15 AS col1
----
-22
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5915
SELECT + 94 DIV - 69 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5915
SELECT + 94 / - 69 AS col1
----
-1

query I rowsort
SELECT ALL 63 + - 58 - - - 83
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT + + COUNT( * ) * - 57
----
-57

skipif mysql # not compatible
query I rowsort label-5917
SELECT + + COUNT ( * ) * - 57
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5918
SELECT DISTINCT 81 + + COUNT( * ) * + - 50 * 42 - 2 + + 97 * - ( 63 ) DIV - 9
----
-1342

skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT 81 + + COUNT ( * ) * + - 50 * 42 - 2 + + 97 * - ( 63 ) / - 9
----
-1342

onlyif mysql # DIV for integer division: 
query II rowsort label-5919
SELECT ALL - 35 + + - 18 DIV + 35, 56 AS col2
----
-35
56

skipif mysql # not compatible
query II rowsort label-5919
SELECT ALL - 35 + + - 18 / + 35, 56 AS col2
----
-35
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5920
SELECT + COUNT( * ) * - COUNT( * ) * + CAST( - 4 AS SIGNED ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-5920
SELECT + COUNT ( * ) * - COUNT ( * ) * + CAST ( - 4 AS INTEGER ) AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5921
SELECT + 83 DIV - 59 AS col2, COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-5921
SELECT + 83 / - 59 AS col2, COUNT ( * ) AS col0
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT DISTINCT COALESCE ( COUNT( * ), - MAX( DISTINCT + 7 ) ) * - 65 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-5922
SELECT DISTINCT COALESCE ( COUNT ( * ), - MAX ( DISTINCT + 7 ) ) * - 65 AS col1
----
-65

query I rowsort
SELECT - 45 * - + 82 - + 15
----
3675

query I rowsort
SELECT DISTINCT 82 * + + 56
----
4592

onlyif mysql # DIV for integer division: 
query I rowsort label-5925
SELECT 69 DIV - + 55 - + 70 col2
----
-71

skipif mysql # not compatible
query I rowsort label-5925
SELECT 69 / - + 55 - + 70 col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT + COUNT( * ) + - - 74 + - MAX( - - ( 77 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-5926
SELECT + COUNT ( * ) + - - 74 + - MAX ( - - ( 77 ) )
----
-2

query I rowsort
SELECT - ( + 41 ) * + 73 AS col0
----
-2993

onlyif mysql # aggregate syntax: 
query II rowsort label-5928
SELECT ALL + NULLIF ( - COUNT( * ), + 41 + - COUNT( * ) ) AS col0, + 41 * - COUNT( ALL 25 ) * - 22 * - MIN( - 11 ) + + 61 AS col2
----
-1
9983

skipif mysql # not compatible
query II rowsort label-5928
SELECT ALL + NULLIF ( - COUNT ( * ), + 41 + - COUNT ( * ) ) AS col0, + 41 * - COUNT ( ALL 25 ) * - 22 * - MIN ( - 11 ) + + 61 AS col2
----
-1
9983

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5929
SELECT + CAST( + 14 AS SIGNED ) col1
----
14

skipif mysql # not compatible
query I rowsort label-5929
SELECT + CAST ( + 14 AS INTEGER ) col1
----
14

query I rowsort
SELECT ALL 89 * + 61 - - + 77 + + 22 - + 73 AS col1
----
5455

onlyif mysql # aggregate syntax: 
query II rowsort label-5931
SELECT ALL + 97 * COALESCE ( + 2, + MAX( + 79 ) ) * - COUNT( * ) AS col0, 71
----
-194
71

skipif mysql # not compatible
query II rowsort label-5931
SELECT ALL + 97 * COALESCE ( + 2, + MAX ( + 79 ) ) * - COUNT ( * ) AS col0, 71
----
-194
71

onlyif mysql # aggregate syntax: 
query II rowsort label-5932
SELECT ( 69 ) * + 27 - + 21 * + SUM( 34 ), - COUNT( * ) AS col0
----
1149
-1

skipif mysql # not compatible
query II rowsort label-5932
SELECT ( 69 ) * + 27 - + 21 * + SUM ( 34 ), - COUNT ( * ) AS col0
----
1149
-1

query I rowsort
SELECT DISTINCT + 15 * + - 80 * 3 AS col0
----
-3600

onlyif mysql # DIV for integer division: 
query I rowsort label-5934
SELECT - 79 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-5934
SELECT - 79 / - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT - - COUNT( * ) * 13 col0
----
13

skipif mysql # not compatible
query I rowsort label-5935
SELECT - - COUNT ( * ) * 13 col0
----
13

query I rowsort
SELECT ALL + 32 * 32 AS col0
----
1024

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT - + ( 29 ) * - 37 - - COUNT( * ) + + 81 col1
----
1155

skipif mysql # not compatible
query I rowsort label-5937
SELECT - + ( 29 ) * - 37 - - COUNT ( * ) + + 81 col1
----
1155

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT ALL ( + 46 ) * - 15 * 63 + - SUM( ALL + 73 ) + + 17 AS col1
----
-43526

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL ( + 46 ) * - 15 * 63 + - SUM ( ALL + 73 ) + + 17 AS col1
----
-43526

query I rowsort
SELECT ALL - + 89 * - 15 + 0 + 69 AS col1
----
1404

query I rowsort
SELECT ALL + - 90 * 49 + + 41 AS col0
----
-4369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5941
SELECT - CAST( - 16 AS SIGNED ) * - 14
----
-224

skipif mysql # not compatible
query I rowsort label-5941
SELECT - CAST ( - 16 AS INTEGER ) * - 14
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT DISTINCT - 61 * - 34 + 84 - COUNT( * ) + - - ( - - 35 ) + + - COUNT( * )
----
2191

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT - 61 * - 34 + 84 - COUNT ( * ) + - - ( - - 35 ) + + - COUNT ( * )
----
2191

query II rowsort
SELECT - + 24 + - + 5 col2, - 51
----
-29
-51

query I rowsort
SELECT ALL - 55 + + 76 AS col2
----
21

query I rowsort
SELECT - - 50 + - 33 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT - + 75 + - SUM( - - 26 ) - + 8 AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-5946
SELECT - + 75 + - SUM ( - - 26 ) - + 8 AS col0
----
-109

onlyif mysql # DIV for integer division: 
query I rowsort label-5947
SELECT + + 69 * + 96 + - 58 DIV - 94 AS col2
----
6624

skipif mysql # not compatible
query I rowsort label-5947
SELECT + + 69 * + 96 + - 58 / - 94 AS col2
----
6624

query I rowsort
SELECT ALL 1 + + 99
----
100

query I rowsort
SELECT ALL + 63 * - 86
----
-5418

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT COUNT( + 58 ) + + - 28
----
-27

skipif mysql # not compatible
query I rowsort label-5950
SELECT COUNT ( + 58 ) + + - 28
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-5951
SELECT ALL 48 * - COUNT( * ) AS col1, - MAX( + + 22 ) col2
----
-48
-22

skipif mysql # not compatible
query II rowsort label-5951
SELECT ALL 48 * - COUNT ( * ) AS col1, - MAX ( + + 22 ) col2
----
-48
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT 64 + 5 + - 78 * - 93 + - 8 * + + COUNT( * )
----
7315

skipif mysql # not compatible
query I rowsort label-5952
SELECT 64 + 5 + - 78 * - 93 + - 8 * + + COUNT ( * )
----
7315

query I rowsort
SELECT ( 58 ) - - 32
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5954
SELECT 90 - - - COALESCE ( - - ( - ( + 35 ) ), + + 92 * + + 13 + - + 18 + - - 10 * + 92, + 66 * + 99 DIV + - CASE 96 WHEN - - 38 * + + MAX( DISTINCT 57 ) THEN - NULLIF ( + 17, MIN( + + 10 ) ) DIV - 44 WHEN - 23 * - 84 + 48 THEN + 89 + + COUNT( * ) + - 0 * - 20 END ) AS col0
----
125

skipif mysql # not compatible
query I rowsort label-5954
SELECT 90 - - - COALESCE ( - - ( - ( + 35 ) ), + + 92 * + + 13 + - + 18 + - - 10 * + 92, + 66 * + 99 / + - CASE 96 WHEN - - 38 * + + MAX ( DISTINCT 57 ) THEN - NULLIF ( + 17, MIN ( + + 10 ) ) / - 44 WHEN - 23 * - 84 + 48 THEN + 89 + + COUNT ( * ) + - 0 * - 20 END ) AS col0
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-5955
SELECT ALL 35 DIV + 19
----
1

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL 35 / + 19
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT 61 * + COUNT( + ( + 61 ) )
----
61

skipif mysql # not compatible
query I rowsort label-5956
SELECT 61 * + COUNT ( + ( + 61 ) )
----
61

onlyif mysql # DIV for integer division: 
query II rowsort label-5957
SELECT DISTINCT 70 * + 24 AS col2, - 31 DIV - 82 AS col1
----
1680
0

skipif mysql # not compatible
query II rowsort label-5957
SELECT DISTINCT 70 * + 24 AS col2, - 31 / - 82 AS col1
----
1680
0

query I rowsort
SELECT 80 + + 26 * - 48 AS col2
----
-1168

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT ALL 99 * + COUNT( * ) * + 2 AS col1
----
198

skipif mysql # not compatible
query I rowsort label-5959
SELECT ALL 99 * + COUNT ( * ) * + 2 AS col1
----
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5960
SELECT ALL - CASE - COUNT( * ) WHEN MAX( ALL + - CAST( 59 AS SIGNED ) ) THEN - - 51 WHEN 17 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL - CASE - COUNT ( * ) WHEN MAX ( ALL + - CAST ( 59 AS INTEGER ) ) THEN - - 51 WHEN 17 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 93 * 23 * - + 28 AS col1
----
-59892

onlyif mysql # DIV for integer division: 
query I rowsort label-5962
SELECT 5 DIV - + 4 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5962
SELECT 5 / - + 4 AS col1
----
-1

query I rowsort
SELECT - ( + 96 ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT DISTINCT + + 72 + + + ( + + CASE + 89 WHEN 2 THEN NULL WHEN - 93 THEN NULL WHEN + 32 THEN NULL ELSE + 77 * 35 END ) + COUNT( * )
----
2768

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT + + 72 + + + ( + + CASE + 89 WHEN 2 THEN NULL WHEN - 93 THEN NULL WHEN + 32 THEN NULL ELSE + 77 * 35 END ) + COUNT ( * )
----
2768

onlyif mysql # aggregate syntax: 
query II rowsort label-5965
SELECT DISTINCT - 53 + + - COUNT( * ) + - + CASE - MIN( DISTINCT - 74 ) WHEN + 49 THEN - 96 + 25 WHEN - + 54 * - + SUM( ALL + 54 ) + + COUNT( * ) * - ( + 75 ) THEN - 8 END AS col1, + 79 * + ( 88 ) - COUNT( * ) + - 64
----
NULL
6887

skipif mysql # not compatible
query II rowsort label-5965
SELECT DISTINCT - 53 + + - COUNT ( * ) + - + CASE - MIN ( DISTINCT - 74 ) WHEN + 49 THEN - 96 + 25 WHEN - + 54 * - + SUM ( ALL + 54 ) + + COUNT ( * ) * - ( + 75 ) THEN - 8 END AS col1, + 79 * + ( 88 ) - COUNT ( * ) + - 64
----
NULL
6887

onlyif mysql # aggregate syntax: 
query II rowsort label-5966
SELECT ALL MIN( - 48 ) + + 8 * + 13 * NULLIF ( COUNT( * ), + 66 ) AS col0, 25
----
56
25

skipif mysql # not compatible
query II rowsort label-5966
SELECT ALL MIN ( - 48 ) + + 8 * + 13 * NULLIF ( COUNT ( * ), + 66 ) AS col0, 25
----
56
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5967
SELECT DISTINCT - NULLIF ( - - 82, CAST( + - 50 AS DECIMAL ) * - 47 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-5967
SELECT DISTINCT - NULLIF ( - - 82, CAST ( + - 50 AS REAL ) * - 47 ) AS col2
----
-82

query I rowsort
SELECT ALL - + 96 + + ( + 33 )
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-5969
SELECT - - 36 * 28 + 82 + - 56 + - ( - NULLIF ( SUM( DISTINCT + - 90 ), 37 ) ) * - 25 * ( - 84 ) * ( + COUNT( * ) ) + 33 * + 47 + 9 AS col1, MIN( - 83 )
----
-186406
-83

skipif mysql # not compatible
query II rowsort label-5969
SELECT - - 36 * 28 + 82 + - 56 + - ( - NULLIF ( SUM ( DISTINCT + - 90 ), 37 ) ) * - 25 * ( - 84 ) * ( + COUNT ( * ) ) + 33 * + 47 + 9 AS col1, MIN ( - 83 )
----
-186406
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT ALL - + COALESCE ( - 24, + - CASE - 61 WHEN - 68 * - 11 * - + 62 + 66 + ( COUNT( + + 51 ) ) + + + COALESCE ( + 16, - 94, - - 73 ) * 57 + 87 + CASE - 24 WHEN + - 62 + 11 + 34 THEN - - 69 * - 80 + + 50 WHEN + + 75 * + 27 THEN CASE - 54 WHEN 43 + + ( + 59 ) THEN - - 95 ELSE + 3 * + 73 END ELSE 11 END / 85 / - 17 THEN 18 WHEN 34 * 74 + 33 THEN + 87 + - SUM( - 51 ) * - 62 WHEN AVG ( + 52 ) THEN + 71 WHEN - COUNT( * ) + 44 THEN - 97 ELSE - 71 END + + 72, COUNT( * ) * 42 ) * + 47 AS col1
----
1128

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL - + COALESCE ( - 24, + - CASE - 61 WHEN - 68 * - 11 * - + 62 + 66 + ( COUNT ( + + 51 ) ) + + + COALESCE ( + 16, - 94, - - 73 ) * 57 + 87 + CASE - 24 WHEN + - 62 + 11 + 34 THEN - - 69 * - 80 + + 50 WHEN + + 75 * + 27 THEN CASE - 54 WHEN 43 + + ( + 59 ) THEN - - 95 ELSE + 3 * + 73 END ELSE 11 END / 85 / - 17 THEN 18 WHEN 34 * 74 + 33 THEN + 87 + - SUM ( - 51 ) * - 62 WHEN AVG ( + 52 ) THEN + 71 WHEN - COUNT ( * ) + 44 THEN - 97 ELSE - 71 END + + 72, COUNT ( * ) * 42 ) * + 47 AS col1
----
1128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5971
SELECT CAST( + 15 AS SIGNED ) + - ( ( + + COUNT( * ) ) ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-5971
SELECT CAST ( + 15 AS INTEGER ) + - ( ( + + COUNT ( * ) ) ) AS col1
----
14

query I rowsort
SELECT ALL - 59 + - 8 - - 32
----
-35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5973
SELECT ALL - CASE 71 WHEN + COALESCE ( - + SUM( - 46 ), - + 76 + + - CAST( - 82 AS DECIMAL ), 36 ) THEN + 68 ELSE SUM( - 70 ) END AS col0
----
70

skipif mysql # not compatible
query I rowsort label-5973
SELECT ALL - CASE 71 WHEN + COALESCE ( - + SUM ( - 46 ), - + 76 + + - CAST ( - 82 AS REAL ), 36 ) THEN + 68 ELSE SUM ( - 70 ) END AS col0
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-5974
SELECT ( + 3 ) - - 4 + ( + 5 ) * + SUM( ALL + 93 ) col2, 25 + - 84
----
472
-59

skipif mysql # not compatible
query II rowsort label-5974
SELECT ( + 3 ) - - 4 + ( + 5 ) * + SUM ( ALL + 93 ) col2, 25 + - 84
----
472
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5975
SELECT 98 * + COALESCE ( - ( + 82 ), - 44 DIV 14 + - + 40 + - + 49 * - COUNT( * ) DIV - + MIN( DISTINCT + 66 ) ) + 16 AS col1
----
-8020

skipif mysql # not compatible
query I rowsort label-5975
SELECT 98 * + COALESCE ( - ( + 82 ), - 44 / 14 + - + 40 + - + 49 * - COUNT ( * ) / - + MIN ( DISTINCT + 66 ) ) + 16 AS col1
----
-8020

onlyif mysql # aggregate syntax: 
query II rowsort label-5976
SELECT DISTINCT - + 62 - + + COUNT( * ) + COALESCE ( - - 15, - - 19 * - 23 ) + + - 5 AS col2, 79 * + - 16
----
-53
-1264

skipif mysql # not compatible
query II rowsort label-5976
SELECT DISTINCT - + 62 - + + COUNT ( * ) + COALESCE ( - - 15, - - 19 * - 23 ) + + - 5 AS col2, 79 * + - 16
----
-53
-1264

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT - 42 * - - COUNT( DISTINCT + 43 ) - + - 76
----
34

skipif mysql # not compatible
query I rowsort label-5977
SELECT - 42 * - - COUNT ( DISTINCT + 43 ) - + - 76
----
34

query I rowsort
SELECT DISTINCT - - 12 - + + 22
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-5979
SELECT ALL + MAX( DISTINCT + - 65 ) AS col2, + 7 col0
----
-65
7

skipif mysql # not compatible
query II rowsort label-5979
SELECT ALL + MAX ( DISTINCT + - 65 ) AS col2, + 7 col0
----
-65
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT COUNT( - 49 ) + - 52 * - - 70 + 86 AS col0
----
-3553

skipif mysql # not compatible
query I rowsort label-5980
SELECT COUNT ( - 49 ) + - 52 * - - 70 + 86 AS col0
----
-3553

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5981
SELECT ALL + 5 DIV + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL + 5 / + COUNT ( * )
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5982
SELECT 71 DIV - - 22
----
3

skipif mysql # not compatible
query I rowsort label-5982
SELECT 71 / - - 22
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5983
SELECT DISTINCT + 87 * - - 34 * - COUNT( * ), - 20 AS col2
----
-2958
-20

skipif mysql # not compatible
query II rowsort label-5983
SELECT DISTINCT + 87 * - - 34 * - COUNT ( * ), - 20 AS col2
----
-2958
-20

query I rowsort
SELECT ALL 35 - + 14 col0
----
21

query II rowsort
SELECT DISTINCT 22, 73 AS col1
----
22
73

query I rowsort
SELECT ALL - 15 * 71 * - 18 AS col2
----
19170

query I rowsort
SELECT 96 * - - 79 AS col1
----
7584

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT COUNT( ALL - 20 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5988
SELECT COUNT ( ALL - 20 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT COUNT( + 18 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5989
SELECT COUNT ( + 18 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5990
SELECT 43 DIV - 24 - - 23
----
22

skipif mysql # not compatible
query I rowsort label-5990
SELECT 43 / - 24 - - 23
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT + MAX( 38 )
----
38

skipif mysql # not compatible
query I rowsort label-5991
SELECT + MAX ( 38 )
----
38

query I rowsort
SELECT - ( + 24 ) * + + 20 + 67
----
-413

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT ALL + ( - 39 ) * 22 + - 83 - + 52 * - COUNT( * ) * + - 22
----
-2085

skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL + ( - 39 ) * 22 + - 83 - + 52 * - COUNT ( * ) * + - 22
----
-2085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5994
SELECT 54, NULLIF ( + - CASE - + ( 21 ) WHEN + + COUNT( * ) THEN - NULLIF ( + COUNT( CAST( NULL AS SIGNED ) ), - - 89 * 68 ) / + ( - - 81 ) END, - 95 ) * - 49 + - CAST( 18 AS SIGNED ) + - + 51 * - - 87 + - 31 + - 45 + NULLIF ( - MIN( + 15 ), 77 * + + 4 + - MAX( ALL 86 ) + 56 * - COUNT( * ) * 35 * - 78 * - + 45 * - 53 ) + 51 - - + 1 + 87 - 21 - 66 * ( 2 ) AS col2
----
54
NULL

skipif mysql # not compatible
query II rowsort label-5994
SELECT 54, NULLIF ( + - CASE - + ( 21 ) WHEN + + COUNT ( * ) THEN - NULLIF ( + COUNT ( CAST ( NULL AS INTEGER ) ), - - 89 * 68 ) / + ( - - 81 ) END, - 95 ) * - 49 + - CAST ( 18 AS INTEGER ) + - + 51 * - - 87 + - 31 + - 45 + NULLIF ( - MIN ( + 15 ), 77 * + + 4 + - MAX ( ALL 86 ) + 56 * - COUNT ( * ) * 35 * - 78 * - + 45 * - 53 ) + 51 - - + 1 + 87 - 21 - 66 * ( 2 ) AS col2
----
54
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5995
SELECT ALL - 46 * 60 DIV 50 + - COALESCE ( + - 69, - - 84 * - 68, + + COUNT( * ) * - - 86 )
----
14

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL - 46 * 60 / 50 + - COALESCE ( + - 69, - - 84 * - 68, + + COUNT ( * ) * - - 86 )
----
14

query II rowsort
SELECT + 39, 63 AS col1
----
39
63

query I rowsort
SELECT ALL + 30 + - 74
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT 0 * - - 45 * + - 10 + + NULLIF ( - - ( - + COUNT( * ) ), 46 * - 26 + + 5 + - 84 / + COUNT( * ) * 36 * + 79 * - + COUNT( * ) ) * 10 * + 94 AS col0
----
-940

skipif mysql # not compatible
query I rowsort label-5998
SELECT 0 * - - 45 * + - 10 + + NULLIF ( - - ( - + COUNT ( * ) ), 46 * - 26 + + 5 + - 84 / + COUNT ( * ) * 36 * + 79 * - + COUNT ( * ) ) * 10 * + 94 AS col0
----
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT + MIN( ALL + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-5999
SELECT + MIN ( ALL + 50 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6000
SELECT - + ( ( + COALESCE ( + 97, + + 18 + + 95 + + - COUNT( * ) * + 60 + - CAST( - + COUNT( * ) AS SIGNED ) * 44, + + 13 ) ) ) DIV - MAX( - 86 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6000
SELECT - + ( ( + COALESCE ( + 97, + + 18 + + 95 + + - COUNT ( * ) * + 60 + - CAST ( - + COUNT ( * ) AS INTEGER ) * 44, + + 13 ) ) ) / - MAX ( - 86 ) AS col2
----
-1

query I rowsort
SELECT 69 * - 34 - + 30 + ( - 77 ) + - - 36 AS col0
----
-2417

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT ALL + MIN( + 32 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL + MIN ( + 32 ) AS col1
----
32

query I rowsort
SELECT DISTINCT ( + 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT DISTINCT - COUNT( * ) - - 70 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT - COUNT ( * ) - - 70 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT - - COUNT( * ) * + 53 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-6005
SELECT - - COUNT ( * ) * + 53 AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT DISTINCT MIN( - - 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT MIN ( - - 51 ) AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6007
SELECT DISTINCT - - CAST( - 71 AS SIGNED ) - + 7 - - 93
----
15

skipif mysql # not compatible
query I rowsort label-6007
SELECT DISTINCT - - CAST ( - 71 AS INTEGER ) - + 7 - - 93
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6008
SELECT + 30 * + CAST( NULL AS SIGNED ) AS col2, + 99 * + 34 + + + 81 col2
----
NULL
3447

skipif mysql # not compatible
query II rowsort label-6008
SELECT + 30 * + CAST ( NULL AS INTEGER ) AS col2, + 99 * + 34 + + + 81 col2
----
NULL
3447

onlyif mysql # aggregate syntax: 
query II rowsort label-6009
SELECT - COUNT( * ) * 79, + COUNT( * ) col2
----
-79
1

skipif mysql # not compatible
query II rowsort label-6009
SELECT - COUNT ( * ) * 79, + COUNT ( * ) col2
----
-79
1

query I rowsort
SELECT DISTINCT + 0 * - 13 col0
----
0

query I rowsort
SELECT - 24 + 38
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-6012
SELECT - COUNT( * ) + + ( + 18 ) + 56 AS col2, 85 AS col1
----
73
85

skipif mysql # not compatible
query II rowsort label-6012
SELECT - COUNT ( * ) + + ( + 18 ) + 56 AS col2, 85 AS col1
----
73
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6013
SELECT DISTINCT + 1 * - COUNT( * ) * - 91 * - 14 col1, 56
----
-1274
56

skipif mysql # not compatible
query II rowsort label-6013
SELECT DISTINCT + 1 * - COUNT ( * ) * - 91 * - 14 col1, 56
----
-1274
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6014
SELECT - 94 + + - CASE - COALESCE ( - ( - - 20 ), + 24 * + - CAST( - 61 AS SIGNED ) ) WHEN + CASE 84 WHEN - + COUNT( * ) THEN NULL WHEN NULLIF ( MIN( ALL + 19 ), 34 ) - - 57 THEN - 52 ELSE - MAX( ALL 34 ) END * 11 + - 11 THEN NULL WHEN + NULLIF ( - 62, + + COUNT( * ) ) / + 46 THEN + 78 + 80 END * - 23 * - MIN( - ( + 53 ) ) * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-6014
SELECT - 94 + + - CASE - COALESCE ( - ( - - 20 ), + 24 * + - CAST ( - 61 AS INTEGER ) ) WHEN + CASE 84 WHEN - + COUNT ( * ) THEN NULL WHEN NULLIF ( MIN ( ALL + 19 ), 34 ) - - 57 THEN - 52 ELSE - MAX ( ALL 34 ) END * 11 + - 11 THEN NULL WHEN + NULLIF ( - 62, + + COUNT ( * ) ) / + 46 THEN + 78 + 80 END * - 23 * - MIN ( - ( + 53 ) ) * 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT DISTINCT ( + COALESCE ( ( - 19 ), + COUNT( + - NULLIF ( + 16, + + 77 ) ) ) ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-6015
SELECT DISTINCT ( + COALESCE ( ( - 19 ), + COUNT ( + - NULLIF ( + 16, + + 77 ) ) ) ) AS col0
----
-19

query I rowsort
SELECT DISTINCT - 29 + - 98 AS col2
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT - 41 * + MAX( + 96 ) AS col2
----
-3936

skipif mysql # not compatible
query I rowsort label-6017
SELECT - 41 * + MAX ( + 96 ) AS col2
----
-3936

query I rowsort
SELECT - 46 + + - 51 + + 15 AS col0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6019
SELECT - 23 DIV - - 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6019
SELECT - 23 / - - 55 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6020
SELECT - ( - CAST( NULL AS DECIMAL ) ) + + 91 - 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6020
SELECT - ( - CAST ( NULL AS REAL ) ) + + 91 - 22 AS col2
----
NULL

query I rowsort
SELECT ALL + 38 * + + 83
----
3154

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT ALL - 84 + + 34 + + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL - 84 + + 34 + + COUNT ( * )
----
-49

query II rowsort
SELECT + 16 + 30, + 67 AS col1
----
46
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6024
SELECT DISTINCT - 44 * - CAST( NULL AS SIGNED ) * AVG ( ALL 78 ) + + COALESCE ( 42, + 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT - 44 * - CAST ( NULL AS INTEGER ) * AVG ( ALL 78 ) + + COALESCE ( 42, + 51 )
----
NULL

query I rowsort
SELECT ALL + 61 * - + ( 77 ) * + 53 + 81 col1
----
-248860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6026
SELECT ALL + 56 * - + ( + 72 ) + 65 * + 0 + + 35 + + CASE + + ( - CAST( - 65 AS SIGNED ) ) WHEN - - 26 THEN + - 60 ELSE NULL END * - 42 - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL + 56 * - + ( + 72 ) + 65 * + 0 + + 35 + + CASE + + ( - CAST ( - 65 AS INTEGER ) ) WHEN - - 26 THEN + - 60 ELSE NULL END * - 42 - 41
----
NULL

query I rowsort
SELECT - - NULLIF ( 4, - - 97 ) + + + 9
----
13

query I rowsort
SELECT DISTINCT - + 37 * + 89 + 0 AS col1
----
-3293

query I rowsort
SELECT ALL - + 72 * + 39 + NULLIF ( + 20, + 57 )
----
-2788

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6030
SELECT - + 98 DIV 72 + 28 + + 39 * - 15 + - - MIN( - ( - - 20 ) ) + - ( - + 8 ) - - + 86 * 14 * + COUNT( - + 74 ) * + 16 * - 37 * - 0 AS col2, + 53 * - - 39 AS col2
----
-570
2067

skipif mysql # not compatible
query II rowsort label-6030
SELECT - + 98 / 72 + 28 + + 39 * - 15 + - - MIN ( - ( - - 20 ) ) + - ( - + 8 ) - - + 86 * 14 * + COUNT ( - + 74 ) * + 16 * - 37 * - 0 AS col2, + 53 * - - 39 AS col2
----
-570
2067

query I rowsort
SELECT - - 62 + - 99 * 38 AS col0
----
-3700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6032
SELECT + + ( + 63 ) * + + 0 DIV - + 39 * - + COUNT( * ) DIV COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6032
SELECT + + ( + 63 ) * + + 0 / - + 39 * - + COUNT ( * ) / COUNT ( * ) AS col2
----
0

query I rowsort
SELECT ALL - 76 * - 41 AS col1
----
3116

query I rowsort
SELECT ALL - 33 * + 98 - 2 + + + 28
----
-3208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6035
SELECT - 41 * - 87 * 25 - MAX( ALL + + 3 ) - + COUNT( * ) - - - CAST( + 31 AS SIGNED ) / + CAST( NULL AS SIGNED ) * + CAST( - 52 AS SIGNED ) / ( ( - + 35 ) ) + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6035
SELECT - 41 * - 87 * 25 - MAX ( ALL + + 3 ) - + COUNT ( * ) - - - CAST ( + 31 AS INTEGER ) / + CAST ( NULL AS INTEGER ) * + CAST ( - 52 AS INTEGER ) / ( ( - + 35 ) ) + 92 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6036
SELECT + + 38 DIV + - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6036
SELECT + + 38 / + - 90 AS col0
----
0

query I rowsort
SELECT + 33 + - 45
----
-12

query I rowsort
SELECT ALL 3 * 61 * - 15
----
-2745

query I rowsort
SELECT + 47 + - 31 - - 34
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT + - COALESCE ( - + 25, + COUNT( * ) )
----
25

skipif mysql # not compatible
query I rowsort label-6040
SELECT + - COALESCE ( - + 25, + COUNT ( * ) )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6041
SELECT + 90 DIV + - 64
----
-1

skipif mysql # not compatible
query I rowsort label-6041
SELECT + 90 / + - 64
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6042
SELECT + 60 / + CAST( NULL AS SIGNED ) / + + 68 / + CAST( NULL AS SIGNED ) AS col2, - 43 * - 50 AS col2
----
NULL
2150

skipif mysql # not compatible
query II rowsort label-6042
SELECT + 60 / + CAST ( NULL AS INTEGER ) / + + 68 / + CAST ( NULL AS INTEGER ) AS col2, - 43 * - 50 AS col2
----
NULL
2150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6043
SELECT + COUNT( * ) * + NULLIF ( + CAST( NULL AS SIGNED ), + 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6043
SELECT + COUNT ( * ) * + NULLIF ( + CAST ( NULL AS INTEGER ), + 29 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6044
SELECT + CAST( + + 80 AS SIGNED ) + + 21 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-6044
SELECT + CAST ( + + 80 AS INTEGER ) + + 21 AS col2
----
101

query I rowsort
SELECT - ( + 71 ) AS col0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6046
SELECT - CAST( - 18 AS SIGNED ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-6046
SELECT - CAST ( - 18 AS INTEGER ) AS col0
----
18

query I rowsort
SELECT DISTINCT + 69 * + 49
----
3381

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT ALL - COUNT( * ) + 76 + + + 99
----
174

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL - COUNT ( * ) + 76 + + + 99
----
174

query I rowsort
SELECT ALL 76 + - 79 AS col2
----
-3

query I rowsort
SELECT DISTINCT 11 + ( + 50 ) + + 42
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6051
SELECT DISTINCT SUM( DISTINCT + CASE + - 97 WHEN - 46 THEN NULL WHEN + 66 THEN + 44 + 81 - 60 WHEN - - 81 THEN CAST( 61 AS SIGNED ) WHEN - 90 + + 97 THEN NULL END ) * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6051
SELECT DISTINCT SUM ( DISTINCT + CASE + - 97 WHEN - 46 THEN NULL WHEN + 66 THEN + 44 + 81 - 60 WHEN - - 81 THEN CAST ( 61 AS INTEGER ) WHEN - 90 + + 97 THEN NULL END ) * + 50
----
NULL

query I rowsort
SELECT - 40 + - 85
----
-125

query I rowsort
SELECT ALL + 52 * - - 36 AS col0
----
1872

query I rowsort
SELECT + ( + 29 ) * + 21 - + 58
----
551

query I rowsort
SELECT DISTINCT + 34 + 51 - + ( + - 33 ) AS col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT ALL - ( COUNT( * ) ) + 61 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL - ( COUNT ( * ) ) + 61 AS col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6057
SELECT DISTINCT CAST( - 25 AS SIGNED ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT CAST ( - 25 AS INTEGER ) AS col1
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-6058
SELECT ALL + 32 DIV - + 74 col0
----
0

skipif mysql # not compatible
query I rowsort label-6058
SELECT ALL + 32 / - + 74 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6059
SELECT DISTINCT - - 60 DIV + 16 + + 89 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT - - 60 / + 16 + + 89 AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6060
SELECT ALL + + 93 DIV + 78 + 71
----
72

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL + + 93 / + 78 + 71
----
72

query I rowsort
SELECT 83 * - 27 - 14 + 80 * - + ( + 30 )
----
-4655

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT - - 77 * 24 + - 32 * ( NULLIF ( + 30, + 78 - + COALESCE ( NULLIF ( + 2, CASE - 77 WHEN 15 + NULLIF ( - 93, - MAX( - 67 ) * 48 + + + 21 + + - 39 ) * + 62 + - - ( - 87 ) THEN NULL WHEN + COUNT( * ) + - - 27 + - 55 THEN 6 * + 9 * - 63 + + CASE WHEN - 16 > ( + 56 * NULLIF ( - - COUNT( * ), + 78 - + 75 ) * - 44 + - COUNT( - 57 ) + 14 * + ( - COUNT( * ) ) ) THEN ( 70 ) * 89 ELSE NULL END END ), 92 ) + 63 ) )
----
888

skipif mysql # not compatible
query I rowsort label-6062
SELECT - - 77 * 24 + - 32 * ( NULLIF ( + 30, + 78 - + COALESCE ( NULLIF ( + 2, CASE - 77 WHEN 15 + NULLIF ( - 93, - MAX ( - 67 ) * 48 + + + 21 + + - 39 ) * + 62 + - - ( - 87 ) THEN NULL WHEN + COUNT ( * ) + - - 27 + - 55 THEN 6 * + 9 * - 63 + + CASE WHEN - 16 > ( + 56 * NULLIF ( - - COUNT ( * ), + 78 - + 75 ) * - 44 + - COUNT ( - 57 ) + 14 * + ( - COUNT ( * ) ) ) THEN ( 70 ) * 89 ELSE NULL END END ), 92 ) + 63 ) )
----
888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6063
SELECT + ( 63 ) * + - 5 * - - 94 + - CAST( 97 AS SIGNED ) * - 23
----
-27379

skipif mysql # not compatible
query I rowsort label-6063
SELECT + ( 63 ) * + - 5 * - - 94 + - CAST ( 97 AS INTEGER ) * - 23
----
-27379

query I rowsort
SELECT DISTINCT - + 48 * + + 55
----
-2640

query I rowsort
SELECT + 72 + + 47 + 62 AS col2
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT ALL - 28 - - + 53 + + CASE - 8 WHEN - 79 THEN NULL WHEN - 55 * + CASE 90 WHEN + - 54 + + 71 * + 14 + + + AVG ( ALL + 1 ) THEN 3 WHEN + - 11 * 92 THEN NULL END THEN + SUM( ( + + 7 ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL - 28 - - + 53 + + CASE - 8 WHEN - 79 THEN NULL WHEN - 55 * + CASE 90 WHEN + - 54 + + 71 * + 14 + + + AVG ( ALL + 1 ) THEN 3 WHEN + - 11 * 92 THEN NULL END THEN + SUM ( ( + + 7 ) ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 46 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT ALL + - 35 - - COUNT( * ) * - 91 AS col0
----
-126

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL + - 35 - - COUNT ( * ) * - 91 AS col0
----
-126

query I rowsort
SELECT - ( 89 ) * + - NULLIF ( + 13, + 61 )
----
1157

query I rowsort
SELECT 67 * - 36 - NULLIF ( ( 10 ), - + 42 * - ( + 30 ) + + 19 ) col1
----
-2422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6071
SELECT DISTINCT - + CAST( + 94 AS SIGNED ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT - + CAST ( + 94 AS INTEGER ) AS col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6072
SELECT ALL + - CAST( NULL AS SIGNED ) * + COUNT( + 74 ) * - 94 * 86 * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL + - CAST ( NULL AS INTEGER ) * + COUNT ( + 74 ) * - 94 * 86 * 36
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6073
SELECT - 61 * - 78 * 23 * - ( + MIN( + 25 ) ) * 6 + 67, 17 * + 47 AS col1
----
-16415033
799

skipif mysql # not compatible
query II rowsort label-6073
SELECT - 61 * - 78 * 23 * - ( + MIN ( + 25 ) ) * 6 + 67, 17 * + 47 AS col1
----
-16415033
799

query I rowsort
SELECT 98 * + 36
----
3528

query I rowsort
SELECT - 59 * - 43 + + 42 AS col0
----
2579

query I rowsort
SELECT ( + 10 ) * 6 * + 17 AS col0
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT ALL - COUNT( DISTINCT 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL - COUNT ( DISTINCT 45 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6078
SELECT DISTINCT - CAST( + 3 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT - CAST ( + 3 AS INTEGER )
----
-3

query I rowsort
SELECT ALL 13 + + 75
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-6080
SELECT DISTINCT + 28 + - 76 - + 26 + - 23 * + - COUNT( * ) + - + 81 AS col1, - COUNT( * ) AS col1
----
-132
-1

skipif mysql # not compatible
query II rowsort label-6080
SELECT DISTINCT + 28 + - 76 - + 26 + - 23 * + - COUNT ( * ) + - + 81 AS col1, - COUNT ( * ) AS col1
----
-132
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT ALL COUNT( + 16 ) + - + 93 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL COUNT ( + 16 ) + - + 93 AS col0
----
-92

query I rowsort
SELECT DISTINCT 24 + 30
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6083
SELECT ALL 35 * - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL 35 * - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6084
SELECT 42, 94 * - + 77 + + 25 * - COUNT( * ) AS col0
----
42
-7263

skipif mysql # not compatible
query II rowsort label-6084
SELECT 42, 94 * - + 77 + + 25 * - COUNT ( * ) AS col0
----
42
-7263

query I rowsort
SELECT 70 + - + 35 AS col2
----
35

query I rowsort
SELECT DISTINCT 70 * - 85 AS col0
----
-5950

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT ALL COUNT( * ) + + ( 95 ) * + 52 * + 55
----
271701

skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL COUNT ( * ) + + ( 95 ) * + 52 * + 55
----
271701

query II rowsort
SELECT 91 AS col0, 88 col0
----
91
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT 89 + - + NULLIF ( 99, - - COUNT( * ) + - - 64 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-6089
SELECT 89 + - + NULLIF ( 99, - - COUNT ( * ) + - - 64 ) AS col0
----
-10

query I rowsort
SELECT ALL 23 + - 35 + - 94
----
-106

query I rowsort
SELECT 95 * 5
----
475

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT ALL CASE - - ( + 44 ) WHEN COUNT( * ) THEN + 3 ELSE + MIN( + 13 ) + 95 + + - 50 END + 23
----
81

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL CASE - - ( + 44 ) WHEN COUNT ( * ) THEN + 3 ELSE + MIN ( + 13 ) + 95 + + - 50 END + 23
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT ( MIN( - - 61 ) ) + - 17
----
44

skipif mysql # not compatible
query I rowsort label-6093
SELECT ( MIN ( - - 61 ) ) + - 17
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-6094
SELECT ALL 37 col2, - COUNT( * ) + 29 AS col2
----
37
28

skipif mysql # not compatible
query II rowsort label-6094
SELECT ALL 37 col2, - COUNT ( * ) + 29 AS col2
----
37
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6095
SELECT CAST( NULL AS SIGNED ) + + - 79 * 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6095
SELECT CAST ( NULL AS INTEGER ) + + - 79 * 32 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6096
SELECT - - ( + - NULLIF ( + ( + 8 ), - MIN( - NULLIF ( + - NULLIF ( - ( - + 32 ), + 39 ), ( 22 ) ) ) ) ) AS col2, + 7
----
-8
7

skipif mysql # not compatible
query II rowsort label-6096
SELECT - - ( + - NULLIF ( + ( + 8 ), - MIN ( - NULLIF ( + - NULLIF ( - ( - + 32 ), + 39 ), ( 22 ) ) ) ) ) AS col2, + 7
----
-8
7

query II rowsort
SELECT ALL + 62 AS col1, 40 * + 32 * - 26
----
62
-33280

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ALL + ( + ( - + MAX( + + 22 ) ) ) * + COUNT( * ) * + MAX( ALL + NULLIF ( 80, + 9 ) ) * - 81 * + 17 + - - 89 * 88 - + + 63 AS col0
----
2431289

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL + ( + ( - + MAX ( + + 22 ) ) ) * + COUNT ( * ) * + MAX ( ALL + NULLIF ( 80, + 9 ) ) * - 81 * + 17 + - - 89 * 88 - + + 63 AS col0
----
2431289

query II rowsort
SELECT + 43 + - 57, 17 AS col2
----
-14
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6100
SELECT 65 + + 97 - + 2 DIV COUNT( * )
----
160

skipif mysql # not compatible
query I rowsort label-6100
SELECT 65 + + 97 - + 2 / COUNT ( * )
----
160

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6101
SELECT - - CASE + NULLIF ( - + ( - + 81 ), - 3 ) WHEN + 81 THEN + 83 DIV - MIN( + 81 ) WHEN + + 85 THEN NULL WHEN - CAST( + 87 AS DECIMAL ) THEN + 82 ELSE NULL END
----
-1

skipif mysql # not compatible
query I rowsort label-6101
SELECT - - CASE + NULLIF ( - + ( - + 81 ), - 3 ) WHEN + 81 THEN + 83 / - MIN ( + 81 ) WHEN + + 85 THEN NULL WHEN - CAST ( + 87 AS REAL ) THEN + 82 ELSE NULL END
----
-1

query II rowsort
SELECT + 91 AS col2, + 35 AS col1
----
91
35

onlyif mysql # aggregate syntax: 
query II rowsort label-6103
SELECT ALL - + 18 AS col1, - 1 + - - CASE - 56 WHEN + + SUM( ALL - 77 ) THEN + ( + COUNT( * ) ) WHEN + COALESCE ( ( 63 ), - 53 ) THEN 33 ELSE NULL END
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-6103
SELECT ALL - + 18 AS col1, - 1 + - - CASE - 56 WHEN + + SUM ( ALL - 77 ) THEN + ( + COUNT ( * ) ) WHEN + COALESCE ( ( 63 ), - 53 ) THEN 33 ELSE NULL END
----
-18
NULL

query II rowsort
SELECT DISTINCT + 49 * - + 18 AS col2, - 39 * + 57 col0
----
-882
-2223

query II rowsort
SELECT 78, + 46 AS col2
----
78
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6106
SELECT + 29 * ( 94 ) * + 31 - - ( - + 55 ) DIV - CASE - COUNT( * ) WHEN - - 33 THEN - COUNT( * ) ELSE - 32 END, + 55 * 19 AS col2
----
84505
1045

skipif mysql # not compatible
query II rowsort label-6106
SELECT + 29 * ( 94 ) * + 31 - - ( - + 55 ) / - CASE - COUNT ( * ) WHEN - - 33 THEN - COUNT ( * ) ELSE - 32 END, + 55 * 19 AS col2
----
84505
1045

query I rowsort
SELECT - 68 + - 51
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6108
SELECT - CAST( 63 AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-6108
SELECT - CAST ( 63 AS INTEGER )
----
-63

query I rowsort
SELECT 46 + + 34 * - - 56
----
1950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6110
SELECT - 51 * + COUNT( * ) - - + 4 DIV ( + + MAX( 37 ) ) + 64
----
13

skipif mysql # not compatible
query I rowsort label-6110
SELECT - 51 * + COUNT ( * ) - - + 4 / ( + + MAX ( 37 ) ) + 64
----
13

query I rowsort
SELECT DISTINCT - 33 + ( ( 96 ) ) AS col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6112
SELECT DISTINCT - 22 DIV - + 59 * 75 * - 44 DIV 43 * + 22 + - + MIN( + 32 ) + + ( - - NULLIF ( - + COUNT( * ), - - COUNT( * ) ) )
----
-33

skipif mysql # not compatible
query I rowsort label-6112
SELECT DISTINCT - 22 / - + 59 * 75 * - 44 / 43 * + 22 + - + MIN ( + 32 ) + + ( - - NULLIF ( - + COUNT ( * ), - - COUNT ( * ) ) )
----
-33

query I rowsort
SELECT DISTINCT + 69 * - + 80 AS col1
----
-5520

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT ALL - COUNT( * ) + 31 + + 84 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL - COUNT ( * ) + 31 + + 84 AS col1
----
114

query I rowsort
SELECT DISTINCT - 42 + + 97 * - - 53 * - 24 + - + ( + 34 ) AS col0
----
-123460

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT 90 + + + CASE - + COUNT( * ) WHEN - + 19 - + - 48 * - 27 - - - 83 * + 23 THEN - 46 + + 63 WHEN + MIN( ALL 43 ) - 47 THEN - MAX( - - 7 ) + + COUNT( * ) ELSE + ( - 60 ) - + - 53 END
----
83

skipif mysql # not compatible
query I rowsort label-6116
SELECT 90 + + + CASE - + COUNT ( * ) WHEN - + 19 - + - 48 * - 27 - - - 83 * + 23 THEN - 46 + + 63 WHEN + MIN ( ALL 43 ) - 47 THEN - MAX ( - - 7 ) + + COUNT ( * ) ELSE + ( - 60 ) - + - 53 END
----
83

query I rowsort
SELECT 15 + NULLIF ( - 92, - + 25 ) col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT ALL COUNT( * ) + + COUNT( ( - 59 ) ) * + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL COUNT ( * ) + + COUNT ( ( - 59 ) ) * + COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT DISTINCT MAX( - 18 ) col2
----
-18

skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT MAX ( - 18 ) col2
----
-18

query I rowsort
SELECT 5 * 44
----
220

query I rowsort
SELECT 95 - - + 46 * - 40
----
-1745

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT ALL 58 * + COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL 58 * + COUNT ( * ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6123
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) AS col1, + MIN( DISTINCT - + 5 ) * + COUNT( * )
----
1
-5

skipif mysql # not compatible
query II rowsort label-6123
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) AS col1, + MIN ( DISTINCT - + 5 ) * + COUNT ( * )
----
1
-5

query I rowsort
SELECT DISTINCT - - 26 * + - 63 + + 34
----
-1604

query I rowsort
SELECT + + 0 - + 58
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT - + SUM( - + ( - 19 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-6126
SELECT - + SUM ( - + ( - 19 ) )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6127
SELECT - ( - - CAST( + - COUNT( ALL - + ( - - 98 ) ) AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6127
SELECT - ( - - CAST ( + - COUNT ( ALL - + ( - - 98 ) ) AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT + - 76 * + CASE 7 WHEN AVG ( ALL + 30 ) - 15 THEN - + COUNT( * ) END * ( + 74 ) * - - COUNT( * ) + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-6128
SELECT + - 76 * + CASE 7 WHEN AVG ( ALL + 30 ) - 15 THEN - + COUNT ( * ) END * ( + 74 ) * - - COUNT ( * ) + + 21
----
NULL

query I rowsort
SELECT - 68 * + + 91 + 63 AS col2
----
-6125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6130
SELECT ALL CAST( NULLIF ( + + COUNT( * ), + MIN( - ( + 93 ) ) * - 22 - - 28 - - 93 * - 40 ) AS SIGNED ) * 46 + + + 57 AS col1, 74
----
103
74

skipif mysql # not compatible
query II rowsort label-6130
SELECT ALL CAST ( NULLIF ( + + COUNT ( * ), + MIN ( - ( + 93 ) ) * - 22 - - 28 - - 93 * - 40 ) AS INTEGER ) * 46 + + + 57 AS col1, 74
----
103
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6131
SELECT - + CAST( + 76 AS SIGNED ) DIV COALESCE ( - + COUNT( * ), - 33 * 30 * + 27 ) + + 23
----
99

skipif mysql # not compatible
query I rowsort label-6131
SELECT - + CAST ( + 76 AS INTEGER ) / COALESCE ( - + COUNT ( * ), - 33 * 30 * + 27 ) + + 23
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6132
SELECT ALL - - 76 * - 39 * + - ( - - 2 ) + 93, 89 * - COUNT( * ) AS col2
----
6021
-89

skipif mysql # not compatible
query II rowsort label-6132
SELECT ALL - - 76 * - 39 * + - ( - - 2 ) + 93, 89 * - COUNT ( * ) AS col2
----
6021
-89

query I rowsort
SELECT ALL 96 * + - 67 + + 50 * + ( + + 15 ) - - 70
----
-5612

query II rowsort
SELECT ALL - 70 * + 95 + + + 27 + ( 37 ) * - + CASE - 81 WHEN - 8 THEN + - 22 + + 17 END AS col1, - 7
----
NULL
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT + CASE - + COALESCE ( + COUNT( * ), + 78 * + COUNT( * ) * + 96 + - MIN( 52 ), + - 24 ) WHEN + - 93 THEN - 18 WHEN + NULLIF ( + - 36, + - ( - - 29 ) * - 59 + + 42 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6135
SELECT + CASE - + COALESCE ( + COUNT ( * ), + 78 * + COUNT ( * ) * + 96 + - MIN ( 52 ), + - 24 ) WHEN + - 93 THEN - 18 WHEN + NULLIF ( + - 36, + - ( - - 29 ) * - 59 + + 42 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT DISTINCT 11 * - COUNT( * ) + 55 + - MAX( ALL - + ( + 81 ) )
----
125

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT 11 * - COUNT ( * ) + 55 + - MAX ( ALL - + ( + 81 ) )
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT ALL 60 * + SUM( 94 ) * - - 90 + + + 23 + - ( - + 19 ) * - COUNT( * ) + 47
----
507651

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL 60 * + SUM ( 94 ) * - - 90 + + + 23 + - ( - + 19 ) * - COUNT ( * ) + 47
----
507651

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT ALL NULLIF ( + 22, + 30 + - + 65 / COUNT( * ) ) * - 28 + - - COALESCE ( - + COUNT( * ), + 55, + 26 - 33 ) AS col0
----
-617

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL NULLIF ( + 22, + 30 + - + 65 / COUNT ( * ) ) * - 28 + - - COALESCE ( - + COUNT ( * ), + 55, + 26 - 33 ) AS col0
----
-617

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6139
SELECT CASE - - ( + - AVG ( ALL 38 ) ) WHEN + 95 THEN + - CAST( NULL AS SIGNED ) + - 14 ELSE 15 * - - 22 END
----
330

skipif mysql # not compatible
query I rowsort label-6139
SELECT CASE - - ( + - AVG ( ALL 38 ) ) WHEN + 95 THEN + - CAST ( NULL AS INTEGER ) + - 14 ELSE 15 * - - 22 END
----
330

onlyif mysql # aggregate syntax: 
query II rowsort label-6140
SELECT + COUNT( * ) * - 91 * + + 44, 57 col0
----
-4004
57

skipif mysql # not compatible
query II rowsort label-6140
SELECT + COUNT ( * ) * - 91 * + + 44, 57 col0
----
-4004
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT COALESCE ( - - MIN( ALL + + 62 ), 41 )
----
62

skipif mysql # not compatible
query I rowsort label-6141
SELECT COALESCE ( - - MIN ( ALL + + 62 ), 41 )
----
62

query I rowsort
SELECT DISTINCT ( 3 ) * 7 + - + 33 AS col2
----
-12

query I rowsort
SELECT - ( COALESCE ( + + 87, + COALESCE ( + - 4, 83 * - 97, - - 88 ) ) ) * + - 72 AS col1
----
6264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6144
SELECT ALL 94 DIV CAST( + 89 AS SIGNED ) DIV 41 + COALESCE ( + 3, + COUNT( * ) )
----
3

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL 94 / CAST ( + 89 AS INTEGER ) / 41 + COALESCE ( + 3, + COUNT ( * ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT DISTINCT COUNT( * ) * - ( + 44 ) - 1 + - + 81 col0
----
-126

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT COUNT ( * ) * - ( + 44 ) - 1 + - + 81 col0
----
-126

query I rowsort
SELECT ALL - ( + 78 ) * - + 57 AS col1
----
4446

query I rowsort
SELECT - 66 * - 3 + - ( 29 ) * - + 77
----
2431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6148
SELECT + COUNT( * ) * + 4 * + COUNT( * ) * 47 + 32 - - 12 AS col2, CAST( + - COUNT( * ) AS SIGNED )
----
232
-1

skipif mysql # not compatible
query II rowsort label-6148
SELECT + COUNT ( * ) * + 4 * + COUNT ( * ) * 47 + 32 - - 12 AS col2, CAST ( + - COUNT ( * ) AS INTEGER )
----
232
-1

query I rowsort
SELECT ALL - 21 * 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6150
SELECT - 46 + - + 97 - + COUNT( * ) AS col2, 44 * - COALESCE ( - 18, 0, - 76 ) * + - 78
----
-144
-61776

skipif mysql # not compatible
query II rowsort label-6150
SELECT - 46 + - + 97 - + COUNT ( * ) AS col2, 44 * - COALESCE ( - 18, 0, - 76 ) * + - 78
----
-144
-61776

query I rowsort
SELECT ALL ( 98 )
----
98

query I rowsort
SELECT - - 4 * + + 65 AS col1
----
260

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT - - 46 + + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-6153
SELECT - - 46 + + COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT - + CASE 58 WHEN 87 THEN - - 44 * + + 12 WHEN + - 4 THEN NULL END * 97 - - + COUNT( + 17 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6154
SELECT - + CASE 58 WHEN 87 THEN - - 44 * + + 12 WHEN + - 4 THEN NULL END * 97 - - + COUNT ( + 17 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6155
SELECT ALL + 49 DIV + 39
----
1

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL + 49 / + 39
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT MIN( 48 )
----
48

skipif mysql # not compatible
query I rowsort label-6156
SELECT MIN ( 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT + COUNT( - 85 ) + 2
----
3

skipif mysql # not compatible
query I rowsort label-6157
SELECT + COUNT ( - 85 ) + 2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6158
SELECT - + COUNT( * ) AS col2, + 42
----
-1
42

skipif mysql # not compatible
query II rowsort label-6158
SELECT - + COUNT ( * ) AS col2, + 42
----
-1
42

onlyif mysql # aggregate syntax: 
query II rowsort label-6159
SELECT - COUNT( * ) col0, - COUNT( * ) + - + 48 AS col0
----
-1
-49

skipif mysql # not compatible
query II rowsort label-6159
SELECT - COUNT ( * ) col0, - COUNT ( * ) + - + 48 AS col0
----
-1
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT DISTINCT + 66 + + - 49 + COALESCE ( - 19, 53 + + ( + - 87 ) + + SUM( ALL - - 57 ) * + + COUNT( * ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6160
SELECT DISTINCT + 66 + + - 49 + COALESCE ( - 19, 53 + + ( + - 87 ) + + SUM ( ALL - - 57 ) * + + COUNT ( * ) ) AS col0
----
-2

query I rowsort
SELECT ALL CASE - 93 WHEN + + 96 THEN 7 END
----
NULL

query I rowsort
SELECT DISTINCT - 97 + - 60
----
-157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6163
SELECT + CAST( - ( 70 ) AS SIGNED ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-6163
SELECT + CAST ( - ( 70 ) AS INTEGER ) AS col1
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6164
SELECT DISTINCT 11 DIV 23 + + + 6 + + MAX( ALL + 57 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-6164
SELECT DISTINCT 11 / 23 + + + 6 + + MAX ( ALL + 57 ) AS col2
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-6165
SELECT DISTINCT - 44 DIV 42 * + 5 + + 9 * - 58 AS col2
----
-527

skipif mysql # not compatible
query I rowsort label-6165
SELECT DISTINCT - 44 / 42 * + 5 + + 9 * - 58 AS col2
----
-527

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT + 4 * 18 * - COUNT( * ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-6166
SELECT + 4 * 18 * - COUNT ( * ) AS col0
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6167
SELECT ALL 19 DIV + ( + 57 ) * + 75 + + MIN( DISTINCT + + 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL 19 / + ( + 57 ) * + 75 + + MIN ( DISTINCT + + 77 ) AS col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6168
SELECT + CAST( NULL AS SIGNED ) + - + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-6168
SELECT + CAST ( NULL AS INTEGER ) + - + 25
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6169
SELECT + COUNT( + + 55 ) * + 11 DIV 91 + - 9 col2, + 43
----
-9
43

skipif mysql # not compatible
query II rowsort label-6169
SELECT + COUNT ( + + 55 ) * + 11 / 91 + - 9 col2, + 43
----
-9
43

query I rowsort
SELECT - 0 * + - 92
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6171
SELECT ( + 52 ), - COUNT( ALL + 77 ) col1
----
52
-1

skipif mysql # not compatible
query II rowsort label-6171
SELECT ( + 52 ), - COUNT ( ALL + 77 ) col1
----
52
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6172
SELECT DISTINCT COUNT( * ) * - 31, 58 * + 9 + - - 69 AS col1
----
-31
591

skipif mysql # not compatible
query II rowsort label-6172
SELECT DISTINCT COUNT ( * ) * - 31, 58 * + 9 + - - 69 AS col1
----
-31
591

query I rowsort
SELECT DISTINCT 31 * + + 11 - - 38 AS col1
----
379

query I rowsort
SELECT - 58 + - - 99
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT ALL - MIN( ALL + - ( - 41 ) ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL - MIN ( ALL + - ( - 41 ) ) AS col0
----
-41

query I rowsort
SELECT 53 * + 58 + + 91
----
3165

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6177
SELECT ALL + CAST( - - 60 AS SIGNED ) DIV + - 30
----
-2

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL + CAST ( - - 60 AS INTEGER ) / + - 30
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6178
SELECT CAST( NULL AS SIGNED ) * - - COUNT( * ) * + + 68 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6178
SELECT CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * + + 68 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6179
SELECT DISTINCT - + 26 * 12 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT - + 26 * 12 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6180
SELECT 42 * - + CAST( NULL AS SIGNED ) - + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-6180
SELECT 42 * - + CAST ( NULL AS INTEGER ) - + + 56
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6181
SELECT + 98 - 53 DIV - 39 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-6181
SELECT + 98 - 53 / - 39 AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6182
SELECT ALL - - 97 + 90 + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL - - 97 + 90 + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT + ( 60 ) - - NULLIF ( + COUNT( * ), COUNT( * ) ) * - + NULLIF ( 12, COALESCE ( - + COUNT( * ), - 30, - - COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6183
SELECT + ( 60 ) - - NULLIF ( + COUNT ( * ), COUNT ( * ) ) * - + NULLIF ( 12, COALESCE ( - + COUNT ( * ), - 30, - - COUNT ( * ) ) )
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + 17, 76 * - 60, - 74 ) AS col2
----
-17

query I rowsort
SELECT ALL - - 5 + - 98 + - 9 AS col2
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6186
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + MAX( 81 ) * - 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6186
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + MAX ( 81 ) * - 87 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6187
SELECT ALL + - CAST( NULL AS SIGNED ) + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL + - CAST ( NULL AS INTEGER ) + 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6188
SELECT DISTINCT + 43 DIV 99 * - COUNT( * ) * 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT + 43 / 99 * - COUNT ( * ) * 97 AS col2
----
0

query II rowsort
SELECT 93 + 63 AS col2, 83
----
156
83

onlyif mysql # DIV for integer division: 
query I rowsort label-6190
SELECT - 88 DIV 76 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6190
SELECT - 88 / 76 AS col1
----
-1

query I rowsort
SELECT + 28 * 68 * 63
----
119952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6192
SELECT - 77 * + MAX( ALL 14 ) - + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2, 6 * COUNT( * ) AS col2
----
NULL
6

skipif mysql # not compatible
query II rowsort label-6192
SELECT - 77 * + MAX ( ALL 14 ) - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2, 6 * COUNT ( * ) AS col2
----
NULL
6

query I rowsort
SELECT ALL + 20 * 39 AS col1
----
780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6194
SELECT ALL + 66 - - MIN( ALL - 67 ) + - 22 - - - 5 * + 27 + + + CAST( - + COUNT( * ) AS SIGNED ) * 2 * + CAST( - 96 AS SIGNED ) * 13 * COUNT( * ) * + 37 + + + 90, 22 AS col0
----
92284
22

skipif mysql # not compatible
query II rowsort label-6194
SELECT ALL + 66 - - MIN ( ALL - 67 ) + - 22 - - - 5 * + 27 + + + CAST ( - + COUNT ( * ) AS INTEGER ) * 2 * + CAST ( - 96 AS INTEGER ) * 13 * COUNT ( * ) * + 37 + + + 90, 22 AS col0
----
92284
22

onlyif mysql # DIV for integer division: 
query I rowsort label-6195
SELECT ALL 59 DIV - 12 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL 59 / - 12 AS col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6196
SELECT 8 DIV - COUNT( * ) * - + CAST( + + COUNT( * ) AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-6196
SELECT 8 / - COUNT ( * ) * - + CAST ( + + COUNT ( * ) AS INTEGER )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6197
SELECT - 20 * + + 80 + + - 8 DIV - 58 + + - 68
----
-1668

skipif mysql # not compatible
query I rowsort label-6197
SELECT - 20 * + + 80 + + - 8 / - 58 + + - 68
----
-1668

query I rowsort
SELECT 89 * + 29
----
2581

query II rowsort
SELECT ALL - 60 AS col0, 58 AS col0
----
-60
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6200
SELECT ( - 82 ) * - + 26 * - CAST( - + 57 AS SIGNED ) AS col0, 4 AS col1
----
121524
4

skipif mysql # not compatible
query II rowsort label-6200
SELECT ( - 82 ) * - + 26 * - CAST ( - + 57 AS INTEGER ) AS col0, 4 AS col1
----
121524
4

query I rowsort
SELECT ALL 86 + + 8 + + 7 * - 43 + - 26 col2
----
-233

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT DISTINCT ( + 57 ) * - + COUNT( * ) * - 83
----
4731

skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT ( + 57 ) * - + COUNT ( * ) * - 83
----
4731

onlyif mysql # aggregate syntax: 
query II rowsort label-6203
SELECT ALL 39 AS col0, 34 + - + SUM( - + 98 ) col0
----
39
132

skipif mysql # not compatible
query II rowsort label-6203
SELECT ALL 39 AS col0, 34 + - + SUM ( - + 98 ) col0
----
39
132

onlyif mysql # DIV for integer division: 
query I rowsort label-6204
SELECT 67 DIV - - 98 + + - 2 + - 37 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-6204
SELECT 67 / - - 98 + + - 2 + - 37 AS col0
----
-39

query I rowsort
SELECT + 43 * - 26 col1
----
-1118

onlyif mysql # DIV for integer division: 
query I rowsort label-6206
SELECT - + 23 * 54 + 52 DIV + 31
----
-1241

skipif mysql # not compatible
query I rowsort label-6206
SELECT - + 23 * 54 + 52 / + 31
----
-1241

query I rowsort
SELECT + 96 + 94 + - - 72 + + + 66
----
328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6208
SELECT + CAST( NULL AS SIGNED ) + + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-6208
SELECT + CAST ( NULL AS INTEGER ) + + - 81
----
NULL

query I rowsort
SELECT 36 + - 7 + + - 96
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT ALL - COALESCE ( + NULLIF ( - 61, 80 - + - 57 ), COUNT( * ) * - 7, + 80 + - 66 ) + 60 - - + 73 * + 48 - - 78
----
3703

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL - COALESCE ( + NULLIF ( - 61, 80 - + - 57 ), COUNT ( * ) * - 7, + 80 + - 66 ) + 60 - - + 73 * + 48 - - 78
----
3703

query I rowsort
SELECT - 46 + 40
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6212
SELECT ALL - 6 DIV + - NULLIF ( - 80, + 27 * - 77 + - - ( - COUNT( * ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL - 6 / + - NULLIF ( - 80, + 27 * - 77 + - - ( - COUNT ( * ) ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6213
SELECT - - CAST( NULL AS SIGNED ) AS col1, 38 + 24
----
NULL
62

skipif mysql # not compatible
query II rowsort label-6213
SELECT - - CAST ( NULL AS INTEGER ) AS col1, 38 + 24
----
NULL
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT ALL - 56 - NULLIF ( + 7, 40 * COUNT( * ) + - - COUNT( * ) + 59 ) * 62 AS col0
----
-490

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL - 56 - NULLIF ( + 7, 40 * COUNT ( * ) + - - COUNT ( * ) + 59 ) * 62 AS col0
----
-490

query I rowsort
SELECT DISTINCT - 23 - 0 AS col1
----
-23

query I rowsort
SELECT - - CASE - 16 WHEN + 29 THEN NULL ELSE - 65 + + + 61 END
----
-4

query I rowsort
SELECT 18 + - 73 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-6218
SELECT DISTINCT MIN( ALL 78 ) AS col2, 19 * COUNT( * )
----
78
19

skipif mysql # not compatible
query II rowsort label-6218
SELECT DISTINCT MIN ( ALL 78 ) AS col2, 19 * COUNT ( * )
----
78
19

query II rowsort
SELECT - 92 col2, 62 AS col0
----
-92
62

query I rowsort
SELECT ALL 77 * 93
----
7161

query II rowsort
SELECT DISTINCT - 31, 56 AS col0
----
-31
56

query I rowsort
SELECT ALL - COALESCE ( 60, - - 4 )
----
-60

query I rowsort
SELECT COALESCE ( + 69, + 3 ) AS col1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6224
SELECT NULLIF ( + + 55, - CAST( + 11 AS SIGNED ) ) col0
----
55

skipif mysql # not compatible
query I rowsort label-6224
SELECT NULLIF ( + + 55, - CAST ( + 11 AS INTEGER ) ) col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT 89 * + ( COUNT( * ) )
----
89

skipif mysql # not compatible
query I rowsort label-6225
SELECT 89 * + ( COUNT ( * ) )
----
89

query I rowsort
SELECT ALL + CASE + 58 WHEN + + 27 + + 58 + 29 THEN NULL ELSE - 47 END
----
-47

query I rowsort
SELECT - 5 - - 24 + - + 2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6228
SELECT + 11 DIV + MIN( - + 99 )
----
0

skipif mysql # not compatible
query I rowsort label-6228
SELECT + 11 / + MIN ( - + 99 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6229
SELECT ALL - 62 * COUNT( * ) / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6229
SELECT ALL - 62 * COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT - 23 + + 97 + + COUNT( * ) - 61 * + COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-6230
SELECT - 23 + + 97 + + COUNT ( * ) - 61 * + COUNT ( * ) AS col1
----
14

query I rowsort
SELECT 90 * - 39 + ( - 30 ) - + 16
----
-3556

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT DISTINCT + COUNT( * ) * - 64 * - SUM( ALL + + 67 ) + ( + 71 ) - + 44 col1
----
4315

skipif mysql # not compatible
query I rowsort label-6232
SELECT DISTINCT + COUNT ( * ) * - 64 * - SUM ( ALL + + 67 ) + ( + 71 ) - + 44 col1
----
4315

query I rowsort
SELECT DISTINCT + 17 * + - 54 * 83
----
-76194

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT COUNT( COALESCE ( + - 93, + 94 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6234
SELECT COUNT ( COALESCE ( + - 93, + 94 ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6235
SELECT ALL + CAST( + + 38 AS SIGNED ) col2
----
38

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL + CAST ( + + 38 AS INTEGER ) col2
----
38

query I rowsort
SELECT DISTINCT - 66 * + + 88 + - - 62 AS col0
----
-5746

query I rowsort
SELECT + 28 * - 22 AS col1
----
-616

query I rowsort
SELECT + - 67 + - + 91
----
-158

query II rowsort
SELECT + + 67 col2, - 87
----
67
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT + 50 + COUNT( * ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-6240
SELECT + 50 + COUNT ( * ) AS col1
----
51

query II rowsort
SELECT DISTINCT + - 20 AS col1, 69 col1
----
-20
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6242
SELECT + 13 * + 39 + + + 48 DIV - 8 + + 16 * 83
----
1829

skipif mysql # not compatible
query I rowsort label-6242
SELECT + 13 * + 39 + + + 48 / - 8 + + 16 * 83
----
1829

query II rowsort
SELECT ALL + 18 AS col1, - COALESCE ( - 14, + 65 ) AS col0
----
18
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT DISTINCT - ( + + 7 ) * + + COUNT( * ) - + ( - + 95 )
----
88

skipif mysql # not compatible
query I rowsort label-6244
SELECT DISTINCT - ( + + 7 ) * + + COUNT ( * ) - + ( - + 95 )
----
88

query II rowsort
SELECT ALL - 95 AS col2, 37
----
-95
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6246
SELECT + 83 * - + CAST( CAST( - 99 AS SIGNED ) AS SIGNED ) AS col0, + 82 AS col1
----
8217
82

skipif mysql # not compatible
query II rowsort label-6246
SELECT + 83 * - + CAST ( CAST ( - 99 AS INTEGER ) AS INTEGER ) AS col0, + 82 AS col1
----
8217
82

query I rowsort
SELECT + 10 - 31 AS col2
----
-21

query II rowsort
SELECT DISTINCT - 12 col0, 26 * 18 + + 42
----
-12
510

query I rowsort
SELECT + 37 * + 27 AS col0
----
999

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6250
SELECT ALL 95 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL 95 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 65 - + + 64 * + + 16 AS col0
----
-959

query I rowsort
SELECT ALL + ( - + 18 ) * + NULLIF ( - - 70, - 76 )
----
-1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6253
SELECT - 41 - - - 47 + + ( + + CASE 24 WHEN - 70 * - + CAST( NULL AS SIGNED ) THEN COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6253
SELECT - 41 - - - 47 + + ( + + CASE 24 WHEN - 70 * - + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6254
SELECT - 12 DIV ( - 22 ) + + 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-6254
SELECT - 12 / ( - 22 ) + + 6 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT + 82 + - + ( - + ( + COUNT( * ) ) )
----
83

skipif mysql # not compatible
query I rowsort label-6255
SELECT + 82 + - + ( - + ( + COUNT ( * ) ) )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6256
SELECT ALL 88 * MIN( - - CAST( - + 92 AS SIGNED ) ) col2
----
-8096

skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL 88 * MIN ( - - CAST ( - + 92 AS INTEGER ) ) col2
----
-8096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6257
SELECT DISTINCT - COALESCE ( 66, 79, + 42 + CAST( + 57 AS SIGNED ) ) DIV 12 * CASE 55 WHEN + 36 THEN + 45 * + 77 * + 5 + + ( + 76 ) WHEN + CASE 52 WHEN - - 25 THEN + CAST( + 91 AS SIGNED ) END THEN - + 21 * - - 54 ELSE + COALESCE ( 84, 62 + SUM( ALL + - 1 ) ) END DIV - 25 + - 77 + - 0
----
-61

skipif mysql # not compatible
query I rowsort label-6257
SELECT DISTINCT - COALESCE ( 66, 79, + 42 + CAST ( + 57 AS INTEGER ) ) / 12 * CASE 55 WHEN + 36 THEN + 45 * + 77 * + 5 + + ( + 76 ) WHEN + CASE 52 WHEN - - 25 THEN + CAST ( + 91 AS INTEGER ) END THEN - + 21 * - - 54 ELSE + COALESCE ( 84, 62 + SUM ( ALL + - 1 ) ) END / - 25 + - 77 + - 0
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-6258
SELECT ALL + 55 DIV - - 99 + 56 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL + 55 / - - 99 + 56 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT DISTINCT - COUNT( DISTINCT + + 56 ) * 28 + - 76 AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT - COUNT ( DISTINCT + + 56 ) * 28 + - 76 AS col0
----
-104

query I rowsort
SELECT ALL 93 * 6 * + + 23 + - 54
----
12780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6261
SELECT DISTINCT + 39 * + 24 * NULLIF ( COUNT( DISTINCT - + 6 ), + 36 * COUNT( * ) / + 78 * + CAST( NULL AS SIGNED ) ) + - + 42 * + 43 * - 33 + - 33 * + 72
----
58158

skipif mysql # not compatible
query I rowsort label-6261
SELECT DISTINCT + 39 * + 24 * NULLIF ( COUNT ( DISTINCT - + 6 ), + 36 * COUNT ( * ) / + 78 * + CAST ( NULL AS INTEGER ) ) + - + 42 * + 43 * - 33 + - 33 * + 72
----
58158

query II rowsort
SELECT ( + - 34 ) AS col0, 49
----
-34
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT ALL - COUNT( * ) * COUNT( ALL + - 43 ) + - NULLIF ( - MAX( DISTINCT 39 ), - + MIN( DISTINCT NULLIF ( + 2, - 98 + 44 ) ) )
----
38

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL - COUNT ( * ) * COUNT ( ALL + - 43 ) + - NULLIF ( - MAX ( DISTINCT 39 ), - + MIN ( DISTINCT NULLIF ( + 2, - 98 + 44 ) ) )
----
38

query II rowsort
SELECT DISTINCT + ( + 86 ) AS col2, 69 - - 53
----
86
122

query I rowsort
SELECT + - 97 AS col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6266
SELECT DISTINCT - 21 * 62 * + + CAST( - 24 AS SIGNED ) + 93 col2, - COUNT( * )
----
31341
-1

skipif mysql # not compatible
query II rowsort label-6266
SELECT DISTINCT - 21 * 62 * + + CAST ( - 24 AS INTEGER ) + 93 col2, - COUNT ( * )
----
31341
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT + SUM( DISTINCT + + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-6267
SELECT + SUM ( DISTINCT + + 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT ALL - SUM( ALL ( - 96 ) ) * - 98 - 75
----
-9483

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL - SUM ( ALL ( - 96 ) ) * - 98 - 75
----
-9483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6269
SELECT DISTINCT + 92 * - MIN( ALL - 53 ) - + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT + 92 * - MIN ( ALL - 53 ) - + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6270
SELECT - + 11 * MIN( DISTINCT + - 63 ) * MAX( ALL 56 ) - 96 - 71 DIV + 85, COUNT( * ) + 22 * 53 AS col2
----
38712
1167

skipif mysql # not compatible
query II rowsort label-6270
SELECT - + 11 * MIN ( DISTINCT + - 63 ) * MAX ( ALL 56 ) - 96 - 71 / + 85, COUNT ( * ) + 22 * 53 AS col2
----
38712
1167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6271
SELECT ALL + COUNT( * ) DIV - 28 * + 7 + - 5 - + - 62 + - COALESCE ( + - 14, CASE COUNT( * ) WHEN - ( - 27 ) THEN + 31 END, - MAX( + NULLIF ( 24, - 27 - 83 ) ) ) + - ( COUNT( * ) ) DIV + COALESCE ( - + 10, - COUNT( * ), 51 + 35, - COUNT( * ) ) + 60 * + + 34 AS col0
----
2111

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL + COUNT ( * ) / - 28 * + 7 + - 5 - + - 62 + - COALESCE ( + - 14, CASE COUNT ( * ) WHEN - ( - 27 ) THEN + 31 END, - MAX ( + NULLIF ( 24, - 27 - 83 ) ) ) + - ( COUNT ( * ) ) / + COALESCE ( - + 10, - COUNT ( * ), 51 + 35, - COUNT ( * ) ) + 60 * + + 34 AS col0
----
2111

onlyif mysql # DIV for integer division: 
query I rowsort label-6272
SELECT - 67 DIV + 62 + - 54
----
-55

skipif mysql # not compatible
query I rowsort label-6272
SELECT - 67 / + 62 + - 54
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT - 81 + - SUM( DISTINCT + 21 ) + + + 74 + COUNT( * ) * - COUNT( * ) col0
----
-29

skipif mysql # not compatible
query I rowsort label-6273
SELECT - 81 + - SUM ( DISTINCT + 21 ) + + + 74 + COUNT ( * ) * - COUNT ( * ) col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT DISTINCT - NULLIF ( 13, 5 + - COUNT( * ) )
----
-13

skipif mysql # not compatible
query I rowsort label-6274
SELECT DISTINCT - NULLIF ( 13, 5 + - COUNT ( * ) )
----
-13

query I rowsort
SELECT - 94 + - + 86 AS col1
----
-180

query I rowsort
SELECT - 93 * + 12 - - 4 * 57 * - 93
----
-22320

query II rowsort
SELECT - 8 + - 10 col2, 27
----
-18
27

query I rowsort
SELECT - + 43 * + 90 col2
----
-3870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6279
SELECT + - 84 + + CAST( COUNT( + + CAST( - ( 45 ) AS SIGNED ) ) AS SIGNED ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-6279
SELECT + - 84 + + CAST ( COUNT ( + + CAST ( - ( 45 ) AS INTEGER ) ) AS INTEGER ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT - + MAX( ALL + 66 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-6280
SELECT - + MAX ( ALL + 66 ) AS col0
----
-66

query I rowsort
SELECT + + 9 * - 64 AS col0
----
-576

query I rowsort
SELECT + + 93 + COALESCE ( - 41, + 68 )
----
52

query I rowsort
SELECT DISTINCT 89 * - + ( + - 96 ) AS col1
----
8544

onlyif mysql # DIV for integer division: 
query I rowsort label-6284
SELECT 92 * 55 DIV - 33
----
-153

skipif mysql # not compatible
query I rowsort label-6284
SELECT 92 * 55 / - 33
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6285
SELECT COUNT( * ) + 70 + - + 55 - - 61 AS col2, + CAST( + ( 99 ) AS SIGNED ) * 36 * + + 24
----
77
85536

skipif mysql # not compatible
query II rowsort label-6285
SELECT COUNT ( * ) + 70 + - + 55 - - 61 AS col2, + CAST ( + ( 99 ) AS INTEGER ) * 36 * + + 24
----
77
85536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6286
SELECT 37 + + 43 + - 23 + - COALESCE ( - 32, - 12 * + - 58, - 0 * 76 + - - NULLIF ( - + CAST( NULL AS SIGNED ), + 6 ) * + - 28 ) * MAX( DISTINCT + + 9 ) / + + COUNT( + 85 ) * - CAST( NULL AS SIGNED ) * - 41 * + 98 + - 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6286
SELECT 37 + + 43 + - 23 + - COALESCE ( - 32, - 12 * + - 58, - 0 * 76 + - - NULLIF ( - + CAST ( NULL AS INTEGER ), + 6 ) * + - 28 ) * MAX ( DISTINCT + + 9 ) / + + COUNT ( + 85 ) * - CAST ( NULL AS INTEGER ) * - 41 * + 98 + - 90 AS col1
----
NULL

query I rowsort
SELECT 14 + + + ( - 95 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT COUNT( * ) * - - 65 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-6288
SELECT COUNT ( * ) * - - 65 AS col2
----
65

query II rowsort
SELECT DISTINCT 9 AS col0, - 44 + 13 AS col2
----
9
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT ALL COUNT( * ) + 60 * - ( 67 ) + + - COUNT( * ) + - 73 * ( - - COUNT( - 12 ) ) - - 46 * + 72
----
-781

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL COUNT ( * ) + 60 * - ( 67 ) + + - COUNT ( * ) + - 73 * ( - - COUNT ( - 12 ) ) - - 46 * + 72
----
-781

query I rowsort
SELECT ALL 70 + + 8 * + + 88
----
774

query I rowsort
SELECT DISTINCT 29 * - 81 * + ( 45 )
----
-105705

onlyif mysql # aggregate syntax: 
query II rowsort label-6293
SELECT ALL NULLIF ( + 21, + 18 ) + + - 41 + 48 * 65 + - 84 + - + COUNT( * ) AS col2, COUNT( * )
----
3015
1

skipif mysql # not compatible
query II rowsort label-6293
SELECT ALL NULLIF ( + 21, + 18 ) + + - 41 + 48 * 65 + - 84 + - + COUNT ( * ) AS col2, COUNT ( * )
----
3015
1

query I rowsort
SELECT DISTINCT 99 + 18 * - 91 AS col2
----
-1539

query I rowsort
SELECT ALL + 99 * 10
----
990

query I rowsort
SELECT DISTINCT 69 * + CASE 79 WHEN 81 THEN 51 WHEN - 11 + + 36 * + 51 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6297
SELECT - 70 / - 91 + + CAST( NULL AS DECIMAL ) + + ( + 71 ) * + 70 * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-6297
SELECT - 70 / - 91 + + CAST ( NULL AS REAL ) + + ( + 71 ) * + 70 * - 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT COUNT( * ) - - 62
----
63

skipif mysql # not compatible
query I rowsort label-6298
SELECT COUNT ( * ) - - 62
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT DISTINCT - + 25 - - MAX( ALL 16 ) + - - 19 + + - ( COUNT( * ) )
----
9

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT - + 25 - - MAX ( ALL 16 ) + - - 19 + + - ( COUNT ( * ) )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT DISTINCT - + MIN( ALL + 44 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT - + MIN ( ALL + 44 ) AS col1
----
-44

query I rowsort
SELECT DISTINCT 68 - - 30
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT 65 + + 94 + - - COUNT( 71 ) + - - COUNT( * ) AS col2
----
161

skipif mysql # not compatible
query I rowsort label-6302
SELECT 65 + + 94 + - - COUNT ( 71 ) + - - COUNT ( * ) AS col2
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6303
SELECT - CASE + - 81 WHEN 58 / 7 THEN NULL ELSE + - COUNT( * ) / - 17 * 82 + + - COUNT( * ) + - 27 * + + AVG ( - 60 ) / + 81 + - CAST( NULL AS SIGNED ) END * + 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6303
SELECT - CASE + - 81 WHEN 58 / 7 THEN NULL ELSE + - COUNT ( * ) / - 17 * 82 + + - COUNT ( * ) + - 27 * + + AVG ( - 60 ) / + 81 + - CAST ( NULL AS INTEGER ) END * + 59 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT COUNT( * ) + - 0 + - 90 col0
----
-89

skipif mysql # not compatible
query I rowsort label-6304
SELECT COUNT ( * ) + - 0 + - 90 col0
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-6305
SELECT ALL - COUNT( * ), - ( + COUNT( * ) ) AS col2
----
-1
-1

skipif mysql # not compatible
query II rowsort label-6305
SELECT ALL - COUNT ( * ), - ( + COUNT ( * ) ) AS col2
----
-1
-1

query I rowsort
SELECT + ( 77 ) + 73 AS col0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT COALESCE ( + - COUNT( * ), COUNT( * ) ) * 86
----
-86

skipif mysql # not compatible
query I rowsort label-6307
SELECT COALESCE ( + - COUNT ( * ), COUNT ( * ) ) * 86
----
-86

query I rowsort
SELECT ALL - ( + 90 ) AS col2
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-6309
SELECT 92 DIV + 53
----
1

skipif mysql # not compatible
query I rowsort label-6309
SELECT 92 / + 53
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6310
SELECT 37 * - 30 * - NULLIF ( - 32, + 2 ) * + ( + + 89 ) + + NULLIF ( 2, 73 DIV - + 52 * - 25 - - 18 ) DIV + - MAX( - 43 ) col2
----
-3161280

skipif mysql # not compatible
query I rowsort label-6310
SELECT 37 * - 30 * - NULLIF ( - 32, + 2 ) * + ( + + 89 ) + + NULLIF ( 2, 73 / - + 52 * - 25 - - 18 ) / + - MAX ( - 43 ) col2
----
-3161280

query I rowsort
SELECT ALL - 76 + - + 72 AS col2
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT 8 - - - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-6312
SELECT 8 - - - COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT DISTINCT - 31 + - - COUNT( * ) - - 6
----
-24

skipif mysql # not compatible
query I rowsort label-6313
SELECT DISTINCT - 31 + - - COUNT ( * ) - - 6
----
-24

query I rowsort
SELECT 17 + 90 AS col2
----
107

query I rowsort
SELECT ALL ( - 7 ) * + 95
----
-665

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT MAX( ALL - - 19 )
----
19

skipif mysql # not compatible
query I rowsort label-6316
SELECT MAX ( ALL - - 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT MAX( + ( + 77 ) )
----
77

skipif mysql # not compatible
query I rowsort label-6317
SELECT MAX ( + ( + 77 ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT 52 + - COUNT( * ) + + - 24 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-6318
SELECT 52 + - COUNT ( * ) + + - 24 AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6319
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ), 46 + + 12 AS col1
----
-1
58

skipif mysql # not compatible
query II rowsort label-6319
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ), 46 + + 12 AS col1
----
-1
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6320
SELECT ALL - CAST( + + 69 AS SIGNED ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-6320
SELECT ALL - CAST ( + + 69 AS INTEGER ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT + + ( CASE COUNT( * ) WHEN - + COUNT( * ) THEN + 66 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6321
SELECT + + ( CASE COUNT ( * ) WHEN - + COUNT ( * ) THEN + 66 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6322
SELECT ALL 70 * - + 8 AS col2, COUNT( * ) * 19 AS col0
----
-560
19

skipif mysql # not compatible
query II rowsort label-6322
SELECT ALL 70 * - + 8 AS col2, COUNT ( * ) * 19 AS col0
----
-560
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT 36 * - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-6323
SELECT 36 * - COUNT ( * )
----
-36

query I rowsort
SELECT ( + - 50 ) - - - 16
----
-66

query I rowsort
SELECT ( 28 ) * - 97 * - - ( + 92 )
----
-249872

query I rowsort
SELECT ALL - ( - 12 ) * + 73
----
876

query I rowsort
SELECT + 63 + + + 55
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-6328
SELECT + + MAX( + 34 ) AS col1, - 10 AS col1
----
34
-10

skipif mysql # not compatible
query II rowsort label-6328
SELECT + + MAX ( + 34 ) AS col1, - 10 AS col1
----
34
-10

query I rowsort
SELECT + 35 * + + 67 * - 39 + - 71
----
-91526

onlyif mysql # aggregate syntax: 
query II rowsort label-6330
SELECT DISTINCT - + SUM( DISTINCT - 53 ) col1, 14 AS col2
----
53
14

skipif mysql # not compatible
query II rowsort label-6330
SELECT DISTINCT - + SUM ( DISTINCT - 53 ) col1, 14 AS col2
----
53
14

onlyif mysql # aggregate syntax: 
query II rowsort label-6331
SELECT ALL - - 43 + 88, - SUM( ALL - ( + + 12 ) ) AS col0
----
131
12

skipif mysql # not compatible
query II rowsort label-6331
SELECT ALL - - 43 + 88, - SUM ( ALL - ( + + 12 ) ) AS col0
----
131
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6332
SELECT + 12 - + 22 + COALESCE ( - ( CASE 26 WHEN 42 THEN + 0 DIV 53 * + 14 * - 19 * + 22 + - COUNT( * ) WHEN 0 THEN 69 END ), + 90 * - 40, CAST( NULL AS SIGNED ) + - 92 - + 87 * + 94 ) + + - 43 AS col1, - 80 AS col0
----
-3653
-80

skipif mysql # not compatible
query II rowsort label-6332
SELECT + 12 - + 22 + COALESCE ( - ( CASE 26 WHEN 42 THEN + 0 / 53 * + 14 * - 19 * + 22 + - COUNT ( * ) WHEN 0 THEN 69 END ), + 90 * - 40, CAST ( NULL AS INTEGER ) + - 92 - + 87 * + 94 ) + + - 43 AS col1, - 80 AS col0
----
-3653
-80

query I rowsort
SELECT ALL + - 86 col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT + COUNT( ALL - 91 ) * - 32 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-6334
SELECT + COUNT ( ALL - 91 ) * - 32 AS col2
----
-32

query I rowsort
SELECT - + 76 + + 51
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT - MAX( ALL - 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6336
SELECT - MAX ( ALL - 10 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT + - CASE + - 76 WHEN - 61 * 9 - + 81 THEN NULL WHEN 84 * + + COUNT( * ) + 61 + + 48 THEN - - 35 END + - COUNT( * ) - + ( - COUNT( * ) ) + - 38 - - 92 * + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6337
SELECT + - CASE + - 76 WHEN - 61 * 9 - + 81 THEN NULL WHEN 84 * + + COUNT ( * ) + 61 + + 48 THEN - - 35 END + - COUNT ( * ) - + ( - COUNT ( * ) ) + - 38 - - 92 * + 32 AS col2
----
NULL

query I rowsort
SELECT + 6 + - 29 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT - COUNT( * ) - + 30
----
-31

skipif mysql # not compatible
query I rowsort label-6339
SELECT - COUNT ( * ) - + 30
----
-31

query I rowsort
SELECT - 59 + - 34
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6341
SELECT ALL ( + - CAST( NULL AS SIGNED ) ) + - + 75 * - 59 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6341
SELECT ALL ( + - CAST ( NULL AS INTEGER ) ) + - + 75 * - 59 col1
----
NULL

query I rowsort
SELECT DISTINCT + 90 + + + ( - 13 )
----
77

query I rowsort
SELECT DISTINCT NULLIF ( - 96, 3 )
----
-96

query I rowsort
SELECT - 53 + + 89 AS col1
----
36

query I rowsort
SELECT - 29 + 12
----
-17

query I rowsort
SELECT DISTINCT COALESCE ( 94, 83, - + 17 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT ALL + 45 - + 72 + + COUNT( + 22 ) * + - ( + 21 ) + - ( - + NULLIF ( + 71, + 54 - - - 86 ) ) + + - 95 * + COUNT( * ) + - 64
----
-136

skipif mysql # not compatible
query I rowsort label-6347
SELECT ALL + 45 - + 72 + + COUNT ( + 22 ) * + - ( + 21 ) + - ( - + NULLIF ( + 71, + 54 - - - 86 ) ) + + - 95 * + COUNT ( * ) + - 64
----
-136

query I rowsort
SELECT - 17 * 96 col1
----
-1632

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT ALL NULLIF ( - COUNT( * ), + MIN( DISTINCT 17 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL NULLIF ( - COUNT ( * ), + MIN ( DISTINCT 17 ) )
----
-1

query I rowsort
SELECT DISTINCT + 27 - + 52 AS col2
----
-25

query I rowsort
SELECT - 10 + - + 4
----
-14

onlyif mysql # aggregate syntax: 
query III rowsort label-6352
SELECT DISTINCT COUNT( * ) AS col1, - 80 + + 48 col2, + 62
----
1
-32
62

skipif mysql # not compatible
query III rowsort label-6352
SELECT DISTINCT COUNT ( * ) AS col1, - 80 + + 48 col2, + 62
----
1
-32
62

onlyif mysql # aggregate syntax: 
query II rowsort label-6353
SELECT ALL 81 * + ( COUNT( * ) ), 94 AS col0
----
81
94

skipif mysql # not compatible
query II rowsort label-6353
SELECT ALL 81 * + ( COUNT ( * ) ), 94 AS col0
----
81
94

query I rowsort
SELECT ALL COALESCE ( - 80, 86 )
----
-80

query I rowsort
SELECT DISTINCT + ( - - 67 )
----
67

query I rowsort
SELECT + ( + 67 ) * + 89
----
5963

query I rowsort
SELECT ALL + 10 * - 93 AS col1
----
-930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6358
SELECT + CAST( + 94 AS SIGNED ) + + ( - 52 )
----
42

skipif mysql # not compatible
query I rowsort label-6358
SELECT + CAST ( + 94 AS INTEGER ) + + ( - 52 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT ALL COUNT( ALL + 37 ) * 93 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL COUNT ( ALL + 37 ) * 93 AS col1
----
93

query I rowsort
SELECT ( - 38 )
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6361
SELECT 38 DIV ( 81 ) + - COALESCE ( + NULLIF ( - CASE - 58 WHEN + COUNT( * ) * - 5 THEN + 28 ELSE - 28 END, - 30 ) + 82, - 28 * + 36 - 44 * 44 )
----
-110

skipif mysql # not compatible
query I rowsort label-6361
SELECT 38 / ( 81 ) + - COALESCE ( + NULLIF ( - CASE - 58 WHEN + COUNT ( * ) * - 5 THEN + 28 ELSE - 28 END, - 30 ) + 82, - 28 * + 36 - 44 * 44 )
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT + ( COUNT( * ) ) * NULLIF ( 50, NULLIF ( 90, 21 + 69 ) ) - 40 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6362
SELECT + ( COUNT ( * ) ) * NULLIF ( 50, NULLIF ( 90, 21 + 69 ) ) - 40 AS col0
----
10

query I rowsort
SELECT DISTINCT - 92 * - 99
----
9108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6364
SELECT ALL + NULLIF ( NULLIF ( 58, 59 + + 64 * 5 ), - CASE 72 WHEN CAST( NULL AS SIGNED ) / + 32 + + 5 THEN - 76 * ( 7 ) END * 95 )
----
58

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL + NULLIF ( NULLIF ( 58, 59 + + 64 * 5 ), - CASE 72 WHEN CAST ( NULL AS INTEGER ) / + 32 + + 5 THEN - 76 * ( 7 ) END * 95 )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6365
SELECT ALL 67 DIV 30
----
2

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL 67 / 30
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6366
SELECT + 73 DIV 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6366
SELECT + 73 / 74 AS col0
----
0

query I rowsort
SELECT DISTINCT 16 * 8 + 71 col2
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT + CASE - 48 WHEN 57 THEN + 94 / + 51 WHEN COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6368
SELECT + CASE - 48 WHEN 57 THEN + 94 / + 51 WHEN COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6369
SELECT ALL + NULLIF ( - 59, 92 + + COUNT( DISTINCT - 27 ) ) * CAST( - 62 * - 46 + - 65 AS SIGNED ) + + COALESCE ( CAST( 35 AS SIGNED ) - - NULLIF ( 27, - 2 ) * + 20, 21 * - 18 )
----
-163858

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL + NULLIF ( - 59, 92 + + COUNT ( DISTINCT - 27 ) ) * CAST ( - 62 * - 46 + - 65 AS INTEGER ) + + COALESCE ( CAST ( 35 AS INTEGER ) - - NULLIF ( 27, - 2 ) * + 20, 21 * - 18 )
----
-163858

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6370
SELECT ALL 31 DIV COALESCE ( - COUNT( * ), 41, 5 + + 95 )
----
-31

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL 31 / COALESCE ( - COUNT ( * ), 41, 5 + + 95 )
----
-31

query I rowsort
SELECT + 43 + 14 * + 62
----
911

query I rowsort
SELECT + 54 * 84
----
4536

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT + COUNT( 99 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6373
SELECT + COUNT ( 99 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT + 19 * NULLIF ( 86 * 33, 11 + NULLIF ( + COUNT( * ) + 7, 97 ) )
----
53922

skipif mysql # not compatible
query I rowsort label-6374
SELECT + 19 * NULLIF ( 86 * 33, 11 + NULLIF ( + COUNT ( * ) + 7, 97 ) )
----
53922

query I rowsort
SELECT ALL - 72 * + 49 + + 71
----
-3457

query I rowsort
SELECT + CASE 66 WHEN 33 * 19 THEN 41 WHEN - 52 THEN NULL END
----
NULL

query I rowsort
SELECT + NULLIF ( - 67, - 26 ) AS col2
----
-67

query I rowsort
SELECT + 83 * 23 AS col2
----
1909

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT ALL + SUM( DISTINCT + ( + 81 ) ) * - 50 + - COUNT( * )
----
-4051

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL + SUM ( DISTINCT + ( + 81 ) ) * - 50 + - COUNT ( * )
----
-4051

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6380
SELECT DISTINCT COUNT( CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6380
SELECT DISTINCT COUNT ( CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6381
SELECT DISTINCT - 62 * 69 + - COUNT( * ) DIV 88
----
-4278

skipif mysql # not compatible
query I rowsort label-6381
SELECT DISTINCT - 62 * 69 + - COUNT ( * ) / 88
----
-4278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6382
SELECT - CAST( 52 AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-6382
SELECT - CAST ( 52 AS INTEGER )
----
-52

query I rowsort
SELECT ALL + 13 + 36
----
49

query I rowsort
SELECT + 53 * + 26
----
1378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6385
SELECT - ( CAST( - 85 AS SIGNED ) ) col1
----
85

skipif mysql # not compatible
query I rowsort label-6385
SELECT - ( CAST ( - 85 AS INTEGER ) ) col1
----
85

query I rowsort
SELECT + 17 - 43
----
-26

query I rowsort
SELECT - 23 * 69 AS col0
----
-1587

query I rowsort
SELECT + 93 - + 48 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT ALL CASE - COUNT( ALL 48 ) WHEN + 27 - - 6 * 86 THEN + 52 / - 4 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL CASE - COUNT ( ALL 48 ) WHEN + 27 - - 6 * 86 THEN + 52 / - 4 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT DISTINCT COUNT( 76 )
----
1

skipif mysql # not compatible
query I rowsort label-6390
SELECT DISTINCT COUNT ( 76 )
----
1

query I rowsort
SELECT - 87 * NULLIF ( 20 * 62, + 46 )
----
-107880

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT DISTINCT - COUNT( ALL + 76 ) * ( 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-6392
SELECT DISTINCT - COUNT ( ALL + 76 ) * ( 73 )
----
-73

query I rowsort
SELECT DISTINCT 10 - 55
----
-45

query I rowsort
SELECT - 39 - - 60 col2
----
21

query I rowsort
SELECT ALL - 78 * + 22 AS col1
----
-1716

query I rowsort
SELECT + 51 * 27 AS col1
----
1377

query I rowsort
SELECT - - ( + 43 ) - + 51 * 45 AS col1
----
-2252

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT + COUNT( * ) * 69
----
69

skipif mysql # not compatible
query I rowsort label-6398
SELECT + COUNT ( * ) * 69
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6399
SELECT - + 78 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT - + 78 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - - 50 * 15
----
750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6401
SELECT ALL 47 / - 70 + CAST( NULL AS SIGNED ) * + 28 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6401
SELECT ALL 47 / - 70 + CAST ( NULL AS INTEGER ) * + 28 col1
----
NULL

query I rowsort
SELECT + NULLIF ( 94, + COALESCE ( + 24, + 95, + 4 * - 12 ) + 60 * - 8 ) AS col1
----
94

query I rowsort
SELECT DISTINCT - 57 + + 82
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6404
SELECT - CASE 49 WHEN 36 THEN 22 END * + 79 + CAST( + 11 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6404
SELECT - CASE 49 WHEN 36 THEN 22 END * + 79 + CAST ( + 11 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT ALL - MIN( 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL - MIN ( 65 )
----
-65

query I rowsort
SELECT + 25 + 1
----
26

query I rowsort
SELECT ALL + - 59 + 87
----
28

query I rowsort
SELECT 99 + - ( 65 ) AS col2
----
34

query I rowsort
SELECT ( ( 76 ) ) * 16 + + ( 51 )
----
1267

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT ALL - - SUM( ALL 47 ) + + 19
----
66

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL - - SUM ( ALL 47 ) + + 19
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT DISTINCT + + 17 + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT + + 17 + COUNT ( * )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6412
SELECT DISTINCT COUNT( * ) DIV - 16 col1
----
0

skipif mysql # not compatible
query I rowsort label-6412
SELECT DISTINCT COUNT ( * ) / - 16 col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6413
SELECT DISTINCT - CAST( - - CAST( NULL AS DECIMAL ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6413
SELECT DISTINCT - CAST ( - - CAST ( NULL AS REAL ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT ALL - MIN( + CASE 4 WHEN 88 THEN 65 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL - MIN ( + CASE 4 WHEN 88 THEN 65 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6415
SELECT 27 * ( + ( - CAST( 37 AS SIGNED ) ) ) * 83
----
-82917

skipif mysql # not compatible
query I rowsort label-6415
SELECT 27 * ( + ( - CAST ( 37 AS INTEGER ) ) ) * 83
----
-82917

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6416
SELECT + 17 * - + CAST( 30 AS SIGNED ) + 24 AS col2
----
-486

skipif mysql # not compatible
query I rowsort label-6416
SELECT + 17 * - + CAST ( 30 AS INTEGER ) + 24 AS col2
----
-486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6417
SELECT COUNT( * ) + 1 - 95 DIV CAST( + 82 + 92 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-6417
SELECT COUNT ( * ) + 1 - 95 / CAST ( + 82 + 92 AS INTEGER )
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6418
SELECT CASE + 92 WHEN CAST( + 35 AS SIGNED ) THEN NULL ELSE - 78 + 75 END DIV 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6418
SELECT CASE + 92 WHEN CAST ( + 35 AS INTEGER ) THEN NULL ELSE - 78 + 75 END / 14 AS col2
----
0

query I rowsort
SELECT DISTINCT 29 * + + 98
----
2842

query I rowsort
SELECT ALL 5 * + 70 AS col0
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT CASE 71 WHEN 23 THEN NULL WHEN ( 64 ) - + 88 THEN + COALESCE ( ( - 29 ), + 42, NULLIF ( 36, - ( 28 ) * AVG ( DISTINCT 10 ) + ( 25 + - COUNT( ALL 68 + 21 ) ) ) ) + + 29 ELSE NULL END + ( - 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6421
SELECT CASE 71 WHEN 23 THEN NULL WHEN ( 64 ) - + 88 THEN + COALESCE ( ( - 29 ), + 42, NULLIF ( 36, - ( 28 ) * AVG ( DISTINCT 10 ) + ( 25 + - COUNT ( ALL 68 + 21 ) ) ) ) + + 29 ELSE NULL END + ( - 48 )
----
NULL

query I rowsort
SELECT DISTINCT 34 * 34 * + 47
----
54332

query I rowsort
SELECT ALL 69 * ( - 11 )
----
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT ( COUNT( * ) ) + + 1
----
2

skipif mysql # not compatible
query I rowsort label-6424
SELECT ( COUNT ( * ) ) + + 1
----
2

query I rowsort
SELECT 51 * + 25 AS col2
----
1275

query I rowsort
SELECT 93 * + 81 AS col0
----
7533

query I rowsort
SELECT 96 + 17 * 34 col1
----
674

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6428
SELECT - COUNT( - CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6428
SELECT - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6429
SELECT CAST( + 16 AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6429
SELECT CAST ( + 16 AS INTEGER ) AS col0
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6430
SELECT ALL - 10 * - 7 + + ( - 68 ) DIV COUNT( * ) col1
----
2

skipif mysql # not compatible
query I rowsort label-6430
SELECT ALL - 10 * - 7 + + ( - 68 ) / COUNT ( * ) col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6431
SELECT ALL - 99 + + ( CAST( + 47 AS SIGNED ) )
----
-52

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL - 99 + + ( CAST ( + 47 AS INTEGER ) )
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6432
SELECT DISTINCT COUNT( * ) DIV + 26 * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT COUNT ( * ) / + 26 * - COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6433
SELECT ALL - CAST( NULL AS SIGNED ) + - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL - CAST ( NULL AS INTEGER ) + - 23 AS col2
----
NULL

query I rowsort
SELECT ALL + 61 + - + 68
----
-7

query I rowsort
SELECT ALL 26 * - - 34 * + 60 AS col2
----
53040

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT DISTINCT + 91 + - + MIN( + 1 ) * - 8 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-6436
SELECT DISTINCT + 91 + - + MIN ( + 1 ) * - 8 AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6437
SELECT 34 + - CAST( 10 AS SIGNED ) * - 63 col2
----
664

skipif mysql # not compatible
query I rowsort label-6437
SELECT 34 + - CAST ( 10 AS INTEGER ) * - 63 col2
----
664

query I rowsort
SELECT ALL + + 57 + - 54 + + 31
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT - + MAX( + ( + 83 ) ) * 24 + 65
----
-1927

skipif mysql # not compatible
query I rowsort label-6439
SELECT - + MAX ( + ( + 83 ) ) * 24 + 65
----
-1927

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT COUNT( DISTINCT - ( 18 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6440
SELECT COUNT ( DISTINCT - ( 18 ) )
----
1

query I rowsort
SELECT ALL - 23 + 92
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6442
SELECT ALL + NULLIF ( - - 31, + 40 ) - + 43 * CASE COUNT( * ) * ( + 23 ) + + NULLIF ( - 48, - 68 + ( ( - NULLIF ( NULLIF ( COUNT( * ), - MAX( ALL 44 ) ), 87 ) ) + COUNT( * ) ) / - 40 ) WHEN 36 THEN - 82 / COALESCE ( COUNT( * ) * - 62, + 83 / + CAST( - 91 AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL + NULLIF ( - - 31, + 40 ) - + 43 * CASE COUNT ( * ) * ( + 23 ) + + NULLIF ( - 48, - 68 + ( ( - NULLIF ( NULLIF ( COUNT ( * ), - MAX ( ALL 44 ) ), 87 ) ) + COUNT ( * ) ) / - 40 ) WHEN 36 THEN - 82 / COALESCE ( COUNT ( * ) * - 62, + 83 / + CAST ( - 91 AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT ALL - + 44 * 8 - + NULLIF ( + 80, + 76 ) * 99 AS col1
----
-8272

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT DISTINCT - MIN( 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-6444
SELECT DISTINCT - MIN ( 48 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT - 32 * + ( - COUNT( * ) ) + 56
----
88

skipif mysql # not compatible
query I rowsort label-6445
SELECT - 32 * + ( - COUNT ( * ) ) + 56
----
88

query I rowsort
SELECT 46 * - 93 * - 87 AS col1
----
372186

query I rowsort
SELECT DISTINCT - ( + 11 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT ALL - COUNT( * ) * + 2 * - - 56
----
-112

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL - COUNT ( * ) * + 2 * - - 56
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT 23 * SUM( + 35 ) AS col1
----
805

skipif mysql # not compatible
query I rowsort label-6449
SELECT 23 * SUM ( + 35 ) AS col1
----
805

query I rowsort
SELECT DISTINCT - 95 - + 47 + - - 4
----
-138

query I rowsort
SELECT 36 * + 23 * - 60 * 66 AS col0
----
-3278880

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT COUNT( + + ( + + 28 ) ) * 40 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-6452
SELECT COUNT ( + + ( + + 28 ) ) * 40 AS col1
----
40

query I rowsort
SELECT ALL - COALESCE ( + NULLIF ( - 61, 52 ), - 90 )
----
61

query II rowsort
SELECT 38, - 87 * - - 55 AS col1
----
38
-4785

onlyif mysql # aggregate syntax: 
query II rowsort label-6455
SELECT ALL COUNT( * ) AS col2, 45 + ( + 59 )
----
1
104

skipif mysql # not compatible
query II rowsort label-6455
SELECT ALL COUNT ( * ) AS col2, 45 + ( + 59 )
----
1
104

onlyif mysql # DIV for integer division: 
query I rowsort label-6456
SELECT ALL 58 DIV - - 44 col0
----
1

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL 58 / - - 44 col0
----
1

query I rowsort
SELECT 48 * + 20 * 45 AS col0
----
43200

query I rowsort
SELECT 51 + 63
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT CASE - - 31 WHEN + - 49 THEN - COUNT( * ) ELSE NULL END * MAX( DISTINCT - 95 / + 52 + - 34 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6459
SELECT CASE - - 31 WHEN + - 49 THEN - COUNT ( * ) ELSE NULL END * MAX ( DISTINCT - 95 / + 52 + - 34 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6460
SELECT ALL 22 DIV - + 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6460
SELECT ALL 22 / - + 75 AS col0
----
0

query II rowsort
SELECT 38 AS col0, - 71
----
38
-71

query I rowsort
SELECT 67 - - + 31 + - 67
----
31

query I rowsort
SELECT ALL 15 * + - 50
----
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT ALL MAX( ALL + 70 ) + + COUNT( * ) * + COUNT( DISTINCT 60 ) col2
----
71

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL MAX ( ALL + 70 ) + + COUNT ( * ) * + COUNT ( DISTINCT 60 ) col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT ALL + - MIN( 66 ) + - 61 AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL + - MIN ( 66 ) + - 61 AS col0
----
-127

query I rowsort
SELECT DISTINCT + 81 + 64 AS col0
----
145

query I rowsort
SELECT 49 + 88
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6468
SELECT ALL - CAST( 91 AS SIGNED ) + + COUNT( * ) DIV + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL - CAST ( 91 AS INTEGER ) + + COUNT ( * ) / + COUNT ( * )
----
-90

query I rowsort
SELECT ALL ( 54 ) + 84 + + 77 * 69 AS col1
----
5451

query I rowsort
SELECT DISTINCT 15 + ( 44 ) AS col0
----
59

query I rowsort
SELECT DISTINCT - 62 + + 39
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6472
SELECT DISTINCT + 87 + 23 DIV - - COUNT( * )
----
110

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT + 87 + 23 / - - COUNT ( * )
----
110

query I rowsort
SELECT ALL 37 + + 37 col1
----
74

query I rowsort
SELECT + + 49 + - 44 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT + - MAX( DISTINCT + - 66 ) + + 89 AS col1
----
155

skipif mysql # not compatible
query I rowsort label-6475
SELECT + - MAX ( DISTINCT + - 66 ) + + 89 AS col1
----
155

query I rowsort
SELECT ALL + + 4 AS col1
----
4

query I rowsort
SELECT DISTINCT + - 54 * - 46 + 51 AS col2
----
2535

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6478
SELECT DISTINCT + - 15 * + 28 / 5 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6478
SELECT DISTINCT + - 15 * + 28 / 5 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 56 * - 29 AS col2
----
-1624

onlyif mysql # DIV for integer division: 
query I rowsort label-6480
SELECT ALL 26 DIV - 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL 26 / - 48 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT DISTINCT + + COALESCE ( - 22, + COALESCE ( 16, + COUNT( + ( - 43 ) ) * + 17 + 40 ), 5 - 11 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-6481
SELECT DISTINCT + + COALESCE ( - 22, + COALESCE ( 16, + COUNT ( + ( - 43 ) ) * + 17 + 40 ), 5 - 11 ) AS col1
----
-22

query I rowsort
SELECT DISTINCT ( + 37 ) * - 24 AS col1
----
-888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6483
SELECT DISTINCT + 72 * - ( + 7 ) * COALESCE ( 43 DIV - 38, + 92, 13 ) - + COUNT( * ) col0
----
503

skipif mysql # not compatible
query I rowsort label-6483
SELECT DISTINCT + 72 * - ( + 7 ) * COALESCE ( 43 / - 38, + 92, 13 ) - + COUNT ( * ) col0
----
503

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT + - 22 + + COUNT( * ) + + + 91 + + 12 * + 45 AS col2
----
610

skipif mysql # not compatible
query I rowsort label-6484
SELECT + - 22 + + COUNT ( * ) + + + 91 + + 12 * + 45 AS col2
----
610

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT ALL + MAX( DISTINCT + 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL + MAX ( DISTINCT + 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT NULLIF ( COUNT( * ), 19 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6486
SELECT NULLIF ( COUNT ( * ), 19 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6487
SELECT + MAX( ALL + 68 ) DIV 54 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6487
SELECT + MAX ( ALL + 68 ) / 54 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6488
SELECT - ( - COUNT( * ) ) DIV 29
----
0

skipif mysql # not compatible
query I rowsort label-6488
SELECT - ( - COUNT ( * ) ) / 29
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6489
SELECT ALL + 54 DIV - + 58
----
0

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL + 54 / - + 58
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6490
SELECT - 2 * + + 76 + - 11 * + CASE WHEN ( CASE 91 WHEN COALESCE ( + 69, + 54 + + COUNT( * ) / COUNT( * ) ) / - ( - 86 ) THEN - 49 + COALESCE ( 29, 21 * 17 ) WHEN + 52 * + 59 + + 5 THEN CASE - NULLIF ( 27, 51 ) WHEN - COUNT( * ) + + 60 * 31 THEN - COALESCE ( 51, MIN( - 54 ) * 88, 52 ) * - 15 END END ) NOT IN ( - COUNT( * ) - 31 * - 72 ) THEN 59 END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6490
SELECT - 2 * + + 76 + - 11 * + CASE WHEN ( CASE 91 WHEN COALESCE ( + 69, + 54 + + COUNT ( * ) / COUNT ( * ) ) / - ( - 86 ) THEN - 49 + COALESCE ( 29, 21 * 17 ) WHEN + 52 * + 59 + + 5 THEN CASE - NULLIF ( 27, 51 ) WHEN - COUNT ( * ) + + 60 * 31 THEN - COALESCE ( 51, MIN ( - 54 ) * 88, 52 ) * - 15 END END ) NOT IN ( - COUNT ( * ) - 31 * - 72 ) THEN 59 END * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT + COUNT( * ) * + 27 * - 61 + + + COUNT( DISTINCT NULLIF ( - 55, - 22 ) ) * + 14 AS col0
----
-1633

skipif mysql # not compatible
query I rowsort label-6491
SELECT + COUNT ( * ) * + 27 * - 61 + + + COUNT ( DISTINCT NULLIF ( - 55, - 22 ) ) * + 14 AS col0
----
-1633

query I rowsort
SELECT - 46 + + - COALESCE ( + ( 63 ), - 19 )
----
-109

query I rowsort
SELECT - 64 + + + 71 * - + 98 * - ( 24 )
----
166928

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT - COUNT( * ) * CASE + 86 WHEN + + 35 THEN 95 + 60 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6494
SELECT - COUNT ( * ) * CASE + 86 WHEN + + 35 THEN 95 + 60 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT DISTINCT COUNT( * ) * + MIN( ALL 55 ) * - COALESCE ( + COUNT( * ), + 87, 41 ) + 99 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-6495
SELECT DISTINCT COUNT ( * ) * + MIN ( ALL 55 ) * - COALESCE ( + COUNT ( * ), + 87, 41 ) + 99 AS col1
----
44

query II rowsort
SELECT + ( - 19 ), 61 * + - 25 col0
----
-19
-1525

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT ALL 76 * SUM( 27 ) + COUNT( * ) * ( - 12 * 75 )
----
1152

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL 76 * SUM ( 27 ) + COUNT ( * ) * ( - 12 * 75 )
----
1152

query I rowsort
SELECT DISTINCT - 10 + - + 77
----
-87

query I rowsort
SELECT ALL + 47 * 83
----
3901

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT ALL - COUNT( + 5 ) + + 15
----
14

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL - COUNT ( + 5 ) + + 15
----
14

query I rowsort
SELECT - 80 + + 48 + ( + 32 ) AS col0
----
0

query I rowsort
SELECT DISTINCT + 65 * - + 28 AS col2
----
-1820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6503
SELECT - CAST( - 19 AS SIGNED ) + 60 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-6503
SELECT - CAST ( - 19 AS INTEGER ) + 60 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT - + 13 + 0 + + 99 + + 11 * - SUM( ALL - 71 * + 24 ) AS col2
----
18830

skipif mysql # not compatible
query I rowsort label-6504
SELECT - + 13 + 0 + + 99 + + 11 * - SUM ( ALL - 71 * + 24 ) AS col2
----
18830

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT ALL - CASE + - 96 WHEN + SUM( + 52 ) * COUNT( * ) + 21 THEN - 39 WHEN CASE - 46 WHEN 18 * + 26 THEN 92 END * 82 + - COUNT( * ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL - CASE + - 96 WHEN + SUM ( + 52 ) * COUNT ( * ) + 21 THEN - 39 WHEN CASE - 46 WHEN 18 * + 26 THEN 92 END * 82 + - COUNT ( * ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT DISTINCT - + 27 + + 50 + + - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-6506
SELECT DISTINCT - + 27 + + 50 + + - COUNT ( * )
----
22

query I rowsort
SELECT ALL - - 77 + ( + + 97 )
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT + - 89 + - + ( - 76 ) * - COUNT( * )
----
-165

skipif mysql # not compatible
query I rowsort label-6508
SELECT + - 89 + - + ( - 76 ) * - COUNT ( * )
----
-165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6509
SELECT - - 78 DIV - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-6509
SELECT - - 78 / - COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT + 74 * + + 36 - NULLIF ( - - 38, 15 * 35 + ( + 48 + 48 * COUNT( * ) ) * 81 )
----
2626

skipif mysql # not compatible
query I rowsort label-6510
SELECT + 74 * + + 36 - NULLIF ( - - 38, 15 * 35 + ( + 48 + 48 * COUNT ( * ) ) * 81 )
----
2626

query I rowsort
SELECT ALL 44 * + 77 AS col0
----
3388

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6512
SELECT - COUNT( * ) + + NULLIF ( + 22, - 50 + NULLIF ( + CAST( + 99 AS DECIMAL ) + - 55, 53 * + 87 ) ) * + 93 AS col1
----
2045

skipif mysql # not compatible
query I rowsort label-6512
SELECT - COUNT ( * ) + + NULLIF ( + 22, - 50 + NULLIF ( + CAST ( + 99 AS REAL ) + - 55, 53 * + 87 ) ) * + 93 AS col1
----
2045

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT DISTINCT - 39 * 35 * + + NULLIF ( + 55, - MAX( + 86 ) ) AS col2
----
-75075

skipif mysql # not compatible
query I rowsort label-6513
SELECT DISTINCT - 39 * 35 * + + NULLIF ( + 55, - MAX ( + 86 ) ) AS col2
----
-75075

query I rowsort
SELECT DISTINCT + + 35 * + 51 * - NULLIF ( 47, - 15 )
----
-83895

query I rowsort
SELECT + 54 * 31 + - 60
----
1614

query I rowsort
SELECT DISTINCT + 15 * - - 83 AS col1
----
1245

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT + + COALESCE ( + NULLIF ( - 63, + COUNT( * ) + + 51 ), + 62 ) + - 65 * - 31 AS col2
----
1952

skipif mysql # not compatible
query I rowsort label-6517
SELECT + + COALESCE ( + NULLIF ( - 63, + COUNT ( * ) + + 51 ), + 62 ) + - 65 * - 31 AS col2
----
1952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6518
SELECT + - 76 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6518
SELECT + - 76 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + - 71 * + 79 AS col0
----
-5609

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT DISTINCT 47 * + COUNT( * ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-6520
SELECT DISTINCT 47 * + COUNT ( * ) AS col2
----
47

query I rowsort
SELECT DISTINCT + 41 * - 19 * COALESCE ( COALESCE ( 60, 46 ), + 40 )
----
-46740

onlyif mysql # DIV for integer division: 
query I rowsort label-6522
SELECT DISTINCT 23 DIV 90 + + + 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-6522
SELECT DISTINCT 23 / 90 + + + 54 AS col1
----
54

query I rowsort
SELECT ( 82 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT ALL 73 * + - 85 + + MIN( + 47 ) * + + 82
----
-2351

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL 73 * + - 85 + + MIN ( + 47 ) * + + 82
----
-2351

query I rowsort
SELECT + 40 * + + 46 * + 50 * - + 11 AS col2
----
-1012000

query I rowsort
SELECT ALL 98 * + 2 * 15 + - 18 * 48
----
2076

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT ALL 5 * + COUNT( ALL - - 98 ) * ( - SUM( DISTINCT + 74 ) ) AS col1
----
-370

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL 5 * + COUNT ( ALL - - 98 ) * ( - SUM ( DISTINCT + 74 ) ) AS col1
----
-370

onlyif mysql # DIV for integer division: 
query I rowsort label-6528
SELECT - 93 DIV + 92
----
-1

skipif mysql # not compatible
query I rowsort label-6528
SELECT - 93 / + 92
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6529
SELECT + 69, CAST( + + CASE - COUNT( * ) WHEN + + 84 THEN 59 * - 63 WHEN ( 91 ) THEN NULL ELSE NULL END AS SIGNED ) AS col2
----
69
NULL

skipif mysql # not compatible
query II rowsort label-6529
SELECT + 69, CAST ( + + CASE - COUNT ( * ) WHEN + + 84 THEN 59 * - 63 WHEN ( 91 ) THEN NULL ELSE NULL END AS INTEGER ) AS col2
----
69
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6530
SELECT ALL CAST( NULL AS DECIMAL ) * + COALESCE ( - 38, COUNT( DISTINCT - 49 ) ) + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL CAST ( NULL AS REAL ) * + COALESCE ( - 38, COUNT ( DISTINCT - 49 ) ) + 36
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - - 4, - 70 * + + 77 + 97 ) AS col0
----
4

query I rowsort
SELECT ALL + COALESCE ( - + 55, + 30, - 11 ) * + 30 + + 7 col1
----
-1643

query II rowsort
SELECT NULLIF ( 34, + - 67 ) AS col0, 58 + - ( 88 )
----
34
-30

query I rowsort
SELECT ALL 39 + + + 51 + - 94 AS col0
----
-4

query I rowsort
SELECT DISTINCT 98 + 93 - + 13 AS col1
----
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6536
SELECT ALL - + ( 67 ) + + NULLIF ( - 38, + - COUNT( * ) * - COALESCE ( - 84, SUM( DISTINCT 30 ) * AVG ( DISTINCT CAST( NULL AS SIGNED ) + 30 ) ) ) * 62
----
-2423

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL - + ( 67 ) + + NULLIF ( - 38, + - COUNT ( * ) * - COALESCE ( - 84, SUM ( DISTINCT 30 ) * AVG ( DISTINCT CAST ( NULL AS INTEGER ) + 30 ) ) ) * 62
----
-2423

query I rowsort
SELECT DISTINCT + + 63 * + 52 AS col2
----
3276

query I rowsort
SELECT + 66 + + 22 * - 88 - - 35
----
-1835

query I rowsort
SELECT DISTINCT + - 12 * + 62
----
-744

query I rowsort
SELECT 89 - 71 AS col1
----
18

query I rowsort
SELECT - 2 + - + NULLIF ( 83, - + 12 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT ALL - ( COUNT( * ) ) - - 21 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-6542
SELECT ALL - ( COUNT ( * ) ) - - 21 AS col0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6543
SELECT + COUNT( * ) * 61 DIV 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6543
SELECT + COUNT ( * ) * 61 / 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT ALL + COUNT( * ) - - - 24 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL + COUNT ( * ) - - - 24 AS col2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6545
SELECT ALL MIN( - 59 ) DIV - COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL MIN ( - 59 ) / - COUNT ( * ) AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6546
SELECT + 82 + CASE - - 34 WHEN - CAST( NULL AS DECIMAL ) THEN ( - 86 ) WHEN 5 THEN 40 * CAST( 41 * - 84 AS SIGNED ) WHEN 99 + + ( 56 ) * - COUNT( * ) THEN NULL ELSE NULL END / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6546
SELECT + 82 + CASE - - 34 WHEN - CAST ( NULL AS REAL ) THEN ( - 86 ) WHEN 5 THEN 40 * CAST ( 41 * - 84 AS INTEGER ) WHEN 99 + + ( 56 ) * - COUNT ( * ) THEN NULL ELSE NULL END / COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6547
SELECT + 52 - - 44 + - 55 - 87 * - + CAST( + 75 AS SIGNED ) * + 23 * + 96 AS col1
----
14407241

skipif mysql # not compatible
query I rowsort label-6547
SELECT + 52 - - 44 + - 55 - 87 * - + CAST ( + 75 AS INTEGER ) * + 23 * + 96 AS col1
----
14407241

query II rowsort
SELECT 7, - 0 * - - 34 + - + 87 AS col2
----
7
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6549
SELECT 37 DIV 75 * 13 AS col2, + ( - COUNT( * ) ) AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-6549
SELECT 37 / 75 * 13 AS col2, + ( - COUNT ( * ) ) AS col1
----
0
-1

query I rowsort
SELECT ALL - 94 * - 44 * CASE - 54 WHEN - + 25 THEN - ( 42 ) ELSE + 63 END AS col1
----
260568

query I rowsort
SELECT 68 * 29
----
1972

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6552
SELECT - COUNT( * ) + + MAX( DISTINCT - 24 ) + 1 + - 88 DIV + 43 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-6552
SELECT - COUNT ( * ) + + MAX ( DISTINCT - 24 ) + 1 + - 88 / + 43 AS col1
----
-26

query I rowsort
SELECT ALL 65 * 45 AS col0
----
2925

onlyif mysql # DIV for integer division: 
query I rowsort label-6554
SELECT 52 DIV + COALESCE ( - ( 88 ), - 44 + + 19 + + 94, - 25 )
----
0

skipif mysql # not compatible
query I rowsort label-6554
SELECT 52 / + COALESCE ( - ( 88 ), - 44 + + 19 + + 94, - 25 )
----
0

query I rowsort
SELECT ALL - ( 67 ) + - 92 AS col0
----
-159

onlyif mysql # aggregate syntax: 
query II rowsort label-6556
SELECT 54 AS col0, + 70 + - COUNT( * )
----
54
69

skipif mysql # not compatible
query II rowsort label-6556
SELECT 54 AS col0, + 70 + - COUNT ( * )
----
54
69

onlyif mysql # aggregate syntax: 
query II rowsort label-6557
SELECT ALL MIN( DISTINCT - 34 ) + + + ( + + 86 ) AS col1, - 15 * ( 5 ) AS col0
----
52
-75

skipif mysql # not compatible
query II rowsort label-6557
SELECT ALL MIN ( DISTINCT - 34 ) + + + ( + + 86 ) AS col1, - 15 * ( 5 ) AS col0
----
52
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT DISTINCT + 82 * COUNT( * ) col0
----
82

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT + 82 * COUNT ( * ) col0
----
82

query I rowsort
SELECT ALL 35 + 1
----
36

query II rowsort
SELECT 68, 35 * - 36 + + 96 AS col2
----
68
-1164

query I rowsort
SELECT ALL 46 + - - 71 AS col1
----
117

query I rowsort
SELECT DISTINCT 64 + + 26 AS col1
----
90

query I rowsort
SELECT 58 + + 76 AS col1
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-6564
SELECT - 62 DIV - + 42 - + ( + - 63 )
----
64

skipif mysql # not compatible
query I rowsort label-6564
SELECT - 62 / - + 42 - + ( + - 63 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT + 62 * + 24 * - + COUNT( ALL - 85 ) + + 92
----
-1396

skipif mysql # not compatible
query I rowsort label-6565
SELECT + 62 * + 24 * - + COUNT ( ALL - 85 ) + + 92
----
-1396

onlyif mysql # DIV for integer division: 
query I rowsort label-6566
SELECT ALL 39 DIV + ( - 41 )
----
0

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL 39 / + ( - 41 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6567
SELECT ALL 45 + - 57 - + 12 DIV + 12, + COUNT( * ) - - + 41 + + 48 AS col1
----
-13
90

skipif mysql # not compatible
query II rowsort label-6567
SELECT ALL 45 + - 57 - + 12 / + 12, + COUNT ( * ) - - + 41 + + 48 AS col1
----
-13
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6568
SELECT CAST( NULL AS SIGNED ) + - 1 - 30 * + + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-6568
SELECT CAST ( NULL AS INTEGER ) + - 1 - 30 * + + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT DISTINCT - COUNT( DISTINCT 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT - COUNT ( DISTINCT 78 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6570
SELECT - 60 DIV 41 * + - 29 + + 18
----
47

skipif mysql # not compatible
query I rowsort label-6570
SELECT - 60 / 41 * + - 29 + + 18
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT DISTINCT ( + MIN( ALL - 91 ) ) col1
----
-91

skipif mysql # not compatible
query I rowsort label-6571
SELECT DISTINCT ( + MIN ( ALL - 91 ) ) col1
----
-91

query I rowsort
SELECT - 73 + 85
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6573
SELECT - - COALESCE ( + 85, + CASE - + 14 WHEN CAST( NULL AS SIGNED ) * + 72 THEN NULL WHEN 67 THEN 51 - 80 END * + 68 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-6573
SELECT - - COALESCE ( + 85, + CASE - + 14 WHEN CAST ( NULL AS INTEGER ) * + 72 THEN NULL WHEN 67 THEN 51 - 80 END * + 68 ) AS col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-6574
SELECT ALL - 50 DIV - 24 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL - 50 / - 24 AS col2
----
2

query I rowsort
SELECT 34 * - - 47 + + 9 AS col2
----
1607

query II rowsort
SELECT DISTINCT + 78 AS col2, + 68 * - + 8 AS col1
----
78
-544

onlyif mysql # DIV for integer division: 
query I rowsort label-6577
SELECT + COALESCE ( + 17, + 61, - - 76 * 62 - + COALESCE ( + COALESCE ( 3, 60 ), 56, + 4 DIV - 43 ) ) * 19 AS col0
----
323

skipif mysql # not compatible
query I rowsort label-6577
SELECT + COALESCE ( + 17, + 61, - - 76 * 62 - + COALESCE ( + COALESCE ( 3, 60 ), 56, + 4 / - 43 ) ) * 19 AS col0
----
323

onlyif mysql # aggregate syntax: 
query II rowsort label-6578
SELECT DISTINCT + 67, - COUNT( * ) * 63 * - - 40 * + ( 28 ) AS col0
----
67
-70560

skipif mysql # not compatible
query II rowsort label-6578
SELECT DISTINCT + 67, - COUNT ( * ) * 63 * - - 40 * + ( 28 ) AS col0
----
67
-70560

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6579
SELECT DISTINCT - 55 AS col0, + 77 * + + 62 DIV - - COUNT( + COALESCE ( - - 61, ( + 6 ) ) ) * - 1
----
-55
-4774

skipif mysql # not compatible
query II rowsort label-6579
SELECT DISTINCT - 55 AS col0, + 77 * + + 62 / - - COUNT ( + COALESCE ( - - 61, ( + 6 ) ) ) * - 1
----
-55
-4774

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT - CASE - 26 WHEN + SUM( 40 ) THEN 56 WHEN + + COUNT( * ) + 17 THEN 76 ELSE NULL END * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6580
SELECT - CASE - 26 WHEN + SUM ( 40 ) THEN 56 WHEN + + COUNT ( * ) + 17 THEN 76 ELSE NULL END * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT 3 * + MIN( 27 ) * - + 73 - 39
----
-5952

skipif mysql # not compatible
query I rowsort label-6581
SELECT 3 * + MIN ( 27 ) * - + 73 - 39
----
-5952

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT - MIN( ALL 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-6582
SELECT - MIN ( ALL 91 )
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-6583
SELECT ALL 65 AS col0, - MAX( DISTINCT 70 )
----
65
-70

skipif mysql # not compatible
query II rowsort label-6583
SELECT ALL 65 AS col0, - MAX ( DISTINCT 70 )
----
65
-70

query I rowsort
SELECT ALL - - 43 * + ( + 67 )
----
2881

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT ALL + CASE + 49 WHEN ( - - 15 ) * + COUNT( + ( 8 ) ) THEN NULL WHEN 63 / - 3 THEN NULL WHEN 2 THEN 4 + - COALESCE ( 1, + 78 + 95 ) WHEN - SUM( - 90 ) THEN 41 * - 86 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL + CASE + 49 WHEN ( - - 15 ) * + COUNT ( + ( 8 ) ) THEN NULL WHEN 63 / - 3 THEN NULL WHEN 2 THEN 4 + - COALESCE ( 1, + 78 + 95 ) WHEN - SUM ( - 90 ) THEN 41 * - 86 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT - + ( - NULLIF ( + 79, + NULLIF ( - 3, - COUNT( * ) ) ) )
----
79

skipif mysql # not compatible
query I rowsort label-6586
SELECT - + ( - NULLIF ( + 79, + NULLIF ( - 3, - COUNT ( * ) ) ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT ALL + + ( - COUNT( ALL + 7 ) ) + 45 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL + + ( - COUNT ( ALL + 7 ) ) + 45 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT DISTINCT MAX( 22 )
----
22

skipif mysql # not compatible
query I rowsort label-6588
SELECT DISTINCT MAX ( 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT COALESCE ( ( COUNT( ALL + - 22 ) ), + COUNT( * ) + + 84 + 53 + 18, 76 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6589
SELECT COALESCE ( ( COUNT ( ALL + - 22 ) ), + COUNT ( * ) + + 84 + 53 + 18, 76 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT MIN( ( + ( ( 62 ) ) ) ) + - 35 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-6590
SELECT MIN ( ( + ( ( 62 ) ) ) ) + - 35 AS col0
----
27

query I rowsort
SELECT 81 * - 60
----
-4860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6592
SELECT 87 + 79 + + CAST( - 95 AS SIGNED ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-6592
SELECT 87 + 79 + + CAST ( - 95 AS INTEGER ) AS col1
----
71

query I rowsort
SELECT ALL 58 * - 80 + + 45 col2
----
-4595

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT ALL ( COUNT( * ) ) * 93 + - 73 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL ( COUNT ( * ) ) * 93 + - 73 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT 71 * + + MIN( ALL - 27 )
----
-1917

skipif mysql # not compatible
query I rowsort label-6595
SELECT 71 * + + MIN ( ALL - 27 )
----
-1917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6596
SELECT ALL CAST( NULL AS SIGNED ) * + + COUNT( DISTINCT + 47 ) + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL CAST ( NULL AS INTEGER ) * + + COUNT ( DISTINCT + 47 ) + + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT DISTINCT 70 * + MIN( DISTINCT + CASE ( + 53 ) WHEN + - 96 THEN + 10 - 45 * 9 END ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT 70 * + MIN ( DISTINCT + CASE ( + 53 ) WHEN + - 96 THEN + 10 - 45 * 9 END ) - - COUNT ( * )
----
NULL

query I rowsort
SELECT - ( - ( - - 87 ) ) * + CASE + - 5 WHEN - 57 THEN - - 72 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6599
SELECT MAX( - - 77 ) AS col2, + COALESCE ( ( - 96 ), + COUNT( * ) ) * - 11 - COUNT( * ) * + 98
----
77
958

skipif mysql # not compatible
query II rowsort label-6599
SELECT MAX ( - - 77 ) AS col2, + COALESCE ( ( - 96 ), + COUNT ( * ) ) * - 11 - COUNT ( * ) * + 98
----
77
958

query I rowsort
SELECT ALL - 34 * - 23
----
782

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT MAX( - - 32 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6601
SELECT MAX ( - - 32 ) AS col2
----
32

query I rowsort
SELECT - 39 * + NULLIF ( + 9, 53 + 32 * - 33 )
----
-351

query II rowsort
SELECT ( + - 28 ) AS col0, + 75 AS col2
----
-28
75

query I rowsort
SELECT + + 16 * + - 60 * + + 24 AS col2
----
-23040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6605
SELECT DISTINCT - 88 * + CAST( + 52 AS SIGNED ) AS col2
----
-4576

skipif mysql # not compatible
query I rowsort label-6605
SELECT DISTINCT - 88 * + CAST ( + 52 AS INTEGER ) AS col2
----
-4576

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT DISTINCT + 77 * 17 * + 56 + - COUNT( * ) * + 41 AS col1
----
73263

skipif mysql # not compatible
query I rowsort label-6606
SELECT DISTINCT + 77 * 17 * + 56 + - COUNT ( * ) * + 41 AS col1
----
73263

query I rowsort
SELECT DISTINCT + 72 * - 70 AS col0
----
-5040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6608
SELECT - CASE - CAST( NULL AS SIGNED ) WHEN 29 THEN - - 73 WHEN - 64 * + + 60 THEN NULL WHEN 9 THEN 76 ELSE CASE - 54 WHEN SUM( + 97 ) * 85 THEN 16 END * 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6608
SELECT - CASE - CAST ( NULL AS INTEGER ) WHEN 29 THEN - - 73 WHEN - 64 * + + 60 THEN NULL WHEN 9 THEN 76 ELSE CASE - 54 WHEN SUM ( + 97 ) * 85 THEN 16 END * 46 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6609
SELECT + 51 + - - 96 * COALESCE ( - 60, - 7, 94 * CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) + - CAST( NULL AS SIGNED ) )
----
-5709

skipif mysql # not compatible
query I rowsort label-6609
SELECT + 51 + - - 96 * COALESCE ( - 60, - 7, 94 * CAST ( CAST ( NULL AS REAL ) AS INTEGER ) + - CAST ( NULL AS INTEGER ) )
----
-5709

onlyif mysql # DIV for integer division: 
query I rowsort label-6610
SELECT + - 39 DIV + - 1 col1
----
39

skipif mysql # not compatible
query I rowsort label-6610
SELECT + - 39 / + - 1 col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT + + 33 * - + SUM( ALL + - 75 ) + + 77 AS col2
----
2552

skipif mysql # not compatible
query I rowsort label-6611
SELECT + + 33 * - + SUM ( ALL + - 75 ) + + 77 AS col2
----
2552

query I rowsort
SELECT ALL + NULLIF ( - - 84, - 34 ) AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6613
SELECT - CASE WHEN NOT NULL IN ( 26, - COUNT( * ), - + 78 * - MAX( 35 ) / 98 + - 36 ) THEN CAST( NULL AS SIGNED ) - - 28 * - MIN( DISTINCT COALESCE ( - 48, 14 ) * 74 ) ELSE - 48 * + 63 END
----
3024

skipif mysql # not compatible
query I rowsort label-6613
SELECT - CASE WHEN NOT NULL IN ( 26, - COUNT ( * ), - + 78 * - MAX ( 35 ) / 98 + - 36 ) THEN CAST ( NULL AS INTEGER ) - - 28 * - MIN ( DISTINCT COALESCE ( - 48, 14 ) * 74 ) ELSE - 48 * + 63 END
----
3024

query I rowsort
SELECT - 48 * 76 AS col2
----
-3648

query I rowsort
SELECT ALL - 94 + 81
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT + - 89 + + - CASE + + 23 WHEN + 64 * + - 15 + + - 80 - - 61 * 23 THEN NULL ELSE + 84 END * - CASE 26 / - CASE 71 WHEN 1 * 80 - 56 THEN NULL WHEN + 40 THEN NULL ELSE COUNT( * ) END - 12 WHEN 92 + + CASE COUNT( * ) + 99 WHEN + 19 THEN + 95 + NULLIF ( - 18 - - 12, - COUNT( * ) * 26 ) WHEN 26 THEN NULL END THEN 39 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6616
SELECT + - 89 + + - CASE + + 23 WHEN + 64 * + - 15 + + - 80 - - 61 * 23 THEN NULL ELSE + 84 END * - CASE 26 / - CASE 71 WHEN 1 * 80 - 56 THEN NULL WHEN + 40 THEN NULL ELSE COUNT ( * ) END - 12 WHEN 92 + + CASE COUNT ( * ) + 99 WHEN + 19 THEN + 95 + NULLIF ( - 18 - - 12, - COUNT ( * ) * 26 ) WHEN 26 THEN NULL END THEN 39 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6617
SELECT DISTINCT + NULLIF ( - ( + 48 ), + + CAST( NULL AS SIGNED ) * ( 12 ) ) * + + 85 * - COALESCE ( + 56, + 21 + CAST( NULL AS SIGNED ) * 66 ) AS col2
----
228480

skipif mysql # not compatible
query I rowsort label-6617
SELECT DISTINCT + NULLIF ( - ( + 48 ), + + CAST ( NULL AS INTEGER ) * ( 12 ) ) * + + 85 * - COALESCE ( + 56, + 21 + CAST ( NULL AS INTEGER ) * 66 ) AS col2
----
228480

onlyif mysql # aggregate syntax: 
query II rowsort label-6618
SELECT DISTINCT + COUNT( * ) + 46 AS col1, 74 + - - 96 + COUNT( * ) * 14 AS col0
----
47
184

skipif mysql # not compatible
query II rowsort label-6618
SELECT DISTINCT + COUNT ( * ) + 46 AS col1, 74 + - - 96 + COUNT ( * ) * 14 AS col0
----
47
184

query I rowsort
SELECT + - 39 + NULLIF ( + 38, - 36 / AVG ( - 65 ) * 2 + 73 ) AS col2
----
-1

query I rowsort
SELECT ALL + 12 + + - NULLIF ( + 79, + 59 ) * + 98 AS col0
----
-7730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6621
SELECT DISTINCT CASE + + 98 WHEN + 58 + + + COUNT( * ) + 22 + - ( CAST( NULL AS SIGNED ) ) * + COUNT( * ) * - COUNT( 88 + 25 / + 83 ) THEN NULL ELSE ( + ( 53 ) ) + + 77 END
----
130

skipif mysql # not compatible
query I rowsort label-6621
SELECT DISTINCT CASE + + 98 WHEN + 58 + + + COUNT ( * ) + 22 + - ( CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * - COUNT ( 88 + 25 / + 83 ) THEN NULL ELSE ( + ( 53 ) ) + + 77 END
----
130

query I rowsort
SELECT - NULLIF ( - - 58, - + 5 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT - COUNT( * ) * + + 11
----
-11

skipif mysql # not compatible
query I rowsort label-6623
SELECT - COUNT ( * ) * + + 11
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6624
SELECT - CAST( NULL AS SIGNED ) + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6624
SELECT - CAST ( NULL AS INTEGER ) + + 38
----
NULL

query I rowsort
SELECT ALL - 37 + + 65
----
28

query I rowsort
SELECT - ( + + 26 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT + COUNT( * ) * - + 42
----
-42

skipif mysql # not compatible
query I rowsort label-6627
SELECT + COUNT ( * ) * - + 42
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-6628
SELECT DISTINCT 29 * 62 DIV - 86
----
-20

skipif mysql # not compatible
query I rowsort label-6628
SELECT DISTINCT 29 * 62 / - 86
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6629
SELECT ALL CAST( NULL AS SIGNED ) / + + 79 - - - ( ( + 6 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6629
SELECT ALL CAST ( NULL AS INTEGER ) / + + 79 - - - ( ( + 6 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT ALL + MIN( 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL + MIN ( 25 ) AS col0
----
25

query I rowsort
SELECT DISTINCT 81 * + 40
----
3240

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6632
SELECT - 51 - - + 80 * + + COALESCE ( NULLIF ( + 74, - MIN( ALL NULLIF ( - CAST( 28 AS DECIMAL ), + 52 ) ) * 69 ), - 81 ) col2
----
5869

skipif mysql # not compatible
query I rowsort label-6632
SELECT - 51 - - + 80 * + + COALESCE ( NULLIF ( + 74, - MIN ( ALL NULLIF ( - CAST ( 28 AS REAL ), + 52 ) ) * 69 ), - 81 ) col2
----
5869

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6633
SELECT DISTINCT COUNT( + 43 ) DIV 25 + + ( - + ( - - 50 ) ) - + 3
----
-53

skipif mysql # not compatible
query I rowsort label-6633
SELECT DISTINCT COUNT ( + 43 ) / 25 + + ( - + ( - - 50 ) ) - + 3
----
-53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6634
SELECT + 53 DIV 43 + CAST( - 20 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-6634
SELECT + 53 / 43 + CAST ( - 20 AS INTEGER )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT DISTINCT + CASE - 65 WHEN + COUNT( * ) THEN NULL WHEN - SUM( + - 75 ) THEN + 43 * - 31 / + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT + CASE - 65 WHEN + COUNT ( * ) THEN NULL WHEN - SUM ( + - 75 ) THEN + 43 * - 31 / + COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6636
SELECT - 15 + 86 DIV - ( - + 55 ) - - 22 - + 72 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-6636
SELECT - 15 + 86 / - ( - + 55 ) - - 22 - + 72 AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6637
SELECT - CAST( COUNT( * ) AS SIGNED ) * - MAX( 33 ) + 29 DIV - - 36
----
33

skipif mysql # not compatible
query I rowsort label-6637
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * - MAX ( 33 ) + 29 / - - 36
----
33

query I rowsort
SELECT - 80 * 4 AS col1
----
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT - MIN( 50 ) + 76
----
26

skipif mysql # not compatible
query I rowsort label-6639
SELECT - MIN ( 50 ) + 76
----
26

query I rowsort
SELECT DISTINCT + + 14 * - 85 AS col0
----
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT - - ( - - ( - COUNT( * ) ) ) + - 54
----
-55

skipif mysql # not compatible
query I rowsort label-6641
SELECT - - ( - - ( - COUNT ( * ) ) ) + - 54
----
-55

query I rowsort
SELECT ALL - 48 * 85
----
-4080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6643
SELECT + + 79 + - COALESCE ( + + 31, + COUNT( * ), + COUNT( * ) + - 96 + - - 77 * - CAST( + 45 AS SIGNED ) )
----
48

skipif mysql # not compatible
query I rowsort label-6643
SELECT + + 79 + - COALESCE ( + + 31, + COUNT ( * ), + COUNT ( * ) + - 96 + - - 77 * - CAST ( + 45 AS INTEGER ) )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6644
SELECT + CAST( NULL AS SIGNED ) AS col0, 55 + - SUM( DISTINCT - 39 ) DIV - 15 AS col1
----
NULL
53

skipif mysql # not compatible
query II rowsort label-6644
SELECT + CAST ( NULL AS INTEGER ) AS col0, 55 + - SUM ( DISTINCT - 39 ) / - 15 AS col1
----
NULL
53

query I rowsort
SELECT - - 9 * + 62 + + 62 * - 57 AS col1
----
-2976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6646
SELECT + - 15 * - 19 + - 19 * + CAST( - 78 AS SIGNED )
----
1767

skipif mysql # not compatible
query I rowsort label-6646
SELECT + - 15 * - 19 + - 19 * + CAST ( - 78 AS INTEGER )
----
1767

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6647
SELECT ALL + + COUNT( * ) * ( - + 32 ) DIV - 65 * + 47 + ( + 32 ) * - + CAST( 50 AS SIGNED )
----
-1600

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL + + COUNT ( * ) * ( - + 32 ) / - 65 * + 47 + ( + 32 ) * - + CAST ( 50 AS INTEGER )
----
-1600

query I rowsort
SELECT + + 29 + - 25 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6649
SELECT NULLIF ( + 39, - ( CAST( NULL AS SIGNED ) ) ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-6649
SELECT NULLIF ( + 39, - ( CAST ( NULL AS INTEGER ) ) ) AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6650
SELECT ALL - COUNT( * ) * 99 + - COALESCE ( CAST( + 93 AS SIGNED ), + 3 * - 70 * COUNT( * ), 9 * 70 ) * 7 AS col2
----
-750

skipif mysql # not compatible
query I rowsort label-6650
SELECT ALL - COUNT ( * ) * 99 + - COALESCE ( CAST ( + 93 AS INTEGER ), + 3 * - 70 * COUNT ( * ), 9 * 70 ) * 7 AS col2
----
-750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6651
SELECT - 85 * - 84 + + + CAST( - 22 AS SIGNED )
----
7118

skipif mysql # not compatible
query I rowsort label-6651
SELECT - 85 * - 84 + + + CAST ( - 22 AS INTEGER )
----
7118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6652
SELECT ALL + - 24 * + ( + 35 ) * + COUNT( * ) + + 65 + - - 30 - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL + - 24 * + ( + 35 ) * + COUNT ( * ) + + 65 + - - 30 - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT - + COUNT( 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-6653
SELECT - + COUNT ( 75 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6654
SELECT DISTINCT - 0 * - 59 * + + 26 DIV + - 12 + + 88 col2
----
88

skipif mysql # not compatible
query I rowsort label-6654
SELECT DISTINCT - 0 * - 59 * + + 26 / + - 12 + + 88 col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT ALL 38 + COALESCE ( 37, - 96 ) - + 21 + 43 + + COUNT( * ) * + + 66 * + MIN( - 34 * ( - 59 * 70 ) )
----
9267817

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL 38 + COALESCE ( 37, - 96 ) - + 21 + 43 + + COUNT ( * ) * + + 66 * + MIN ( - 34 * ( - 59 * 70 ) )
----
9267817

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT ALL + SUM( - + 45 ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL + SUM ( - + 45 ) col1
----
-45

query II rowsort
SELECT ALL 51 + 72 * - - 48, 17 AS col2
----
3507
17

query I rowsort
SELECT + + 77 * - 25
----
-1925

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT - COALESCE ( - 86, - + COUNT( * ) ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-6659
SELECT - COALESCE ( - 86, - + COUNT ( * ) ) AS col0
----
86

query I rowsort
SELECT DISTINCT 47 + + 33 AS col1
----
80

query I rowsort
SELECT - COALESCE ( + + 72, 75 ) AS col1
----
-72

query I rowsort
SELECT ALL 82 + ( + 1 ) col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT + ( - 77 ) + - + CASE - MAX( DISTINCT - 83 ) WHEN 29 THEN - 5 * + - 26 + + + 21 + 27 * 55 END - 89 * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6663
SELECT + ( - 77 ) + - + CASE - MAX ( DISTINCT - 83 ) WHEN 29 THEN - 5 * + - 26 + + + 21 + 27 * 55 END - 89 * + 20
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6664
SELECT DISTINCT MAX( - 46 ) AS col2, 28 + 23 * + - 46 AS col1
----
-46
-1030

skipif mysql # not compatible
query II rowsort label-6664
SELECT DISTINCT MAX ( - 46 ) AS col2, 28 + 23 * + - 46 AS col1
----
-46
-1030

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT + COUNT( + 77 ) + + 90 - - MIN( DISTINCT - + 86 ) * 40
----
-3349

skipif mysql # not compatible
query I rowsort label-6665
SELECT + COUNT ( + 77 ) + + 90 - - MIN ( DISTINCT - + 86 ) * 40
----
-3349

query I rowsort
SELECT ALL 88 * + - 48 AS col0
----
-4224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6667
SELECT 87 * - + NULLIF ( - 96, - CAST( 25 AS SIGNED ) * + 84 / 46 )
----
8352

skipif mysql # not compatible
query I rowsort label-6667
SELECT 87 * - + NULLIF ( - 96, - CAST ( 25 AS INTEGER ) * + 84 / 46 )
----
8352

onlyif mysql # DIV for integer division: 
query I rowsort label-6668
SELECT ALL 70 DIV + + 63
----
1

skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL 70 / + + 63
----
1

query I rowsort
SELECT ALL + 6 - + - 43 - + 28 * - NULLIF ( - ( - 16 ), 41 * + 19 * - 82 + 56 )
----
497

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT COALESCE ( + + 59, + 58, 21 * ( COUNT( * ) ), - COALESCE ( - 44, - 93, + 58 ) * - 32 ) + + 62
----
121

skipif mysql # not compatible
query I rowsort label-6670
SELECT COALESCE ( + + 59, + 58, 21 * ( COUNT ( * ) ), - COALESCE ( - 44, - 93, + 58 ) * - 32 ) + + 62
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-6671
SELECT 6 DIV - 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6671
SELECT 6 / - 57 AS col2
----
0

query I rowsort
SELECT 12 + + + 90 + 68 * + + 70
----
4862

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT - 99 * - COUNT( * ) + - 67 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6673
SELECT - 99 * - COUNT ( * ) + - 67 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT ALL + CASE + 0 WHEN + + 74 + + 96 THEN NULL WHEN + ( + 2 ) THEN - COUNT( * ) / - - 95 ELSE NULL END * 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL + CASE + 0 WHEN + + 74 + + 96 THEN NULL WHEN + ( + 2 ) THEN - COUNT ( * ) / - - 95 ELSE NULL END * 29 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6675
SELECT CAST( NULL AS SIGNED ) * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-6675
SELECT CAST ( NULL AS INTEGER ) * + 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT MAX( DISTINCT + 33 ) col2
----
33

skipif mysql # not compatible
query I rowsort label-6676
SELECT MAX ( DISTINCT + 33 ) col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT DISTINCT - NULLIF ( + COUNT( * ), 82 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6677
SELECT DISTINCT - NULLIF ( + COUNT ( * ), 82 ) AS col2
----
-1

query I rowsort
SELECT ALL + 94 + + - 8
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6679
SELECT + CAST( - + 24 AS SIGNED ) AS col1, + 2
----
-24
2

skipif mysql # not compatible
query II rowsort label-6679
SELECT + CAST ( - + 24 AS INTEGER ) AS col1, + 2
----
-24
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT CASE COUNT( ALL + 95 ) WHEN - ( - - 33 ) THEN 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6680
SELECT CASE COUNT ( ALL + 95 ) WHEN - ( - - 33 ) THEN 75 END
----
NULL

query I rowsort
SELECT ALL - 2 + + - 99 + + 90
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-6682
SELECT ( + 96 ) DIV - - 71 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6682
SELECT ( + 96 ) / - - 71 AS col0
----
1

query I rowsort
SELECT + 3 * 31 AS col1
----
93

query I rowsort
SELECT ALL + + 11 + - + 16 col2
----
-5

query I rowsort
SELECT 22 * + 67 * 97 - + + 89 AS col0
----
142889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6686
SELECT DISTINCT - CAST( NULL AS SIGNED ) / 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT ALL - + MAX( ALL - + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL - + MAX ( ALL - + 98 )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6688
SELECT ALL - ( 80 ) + 94 + - - 72 DIV + + 87
----
14

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL - ( 80 ) + 94 + - - 72 / + + 87
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6689
SELECT - 69 DIV - 64 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6689
SELECT - 69 / - 64 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6690
SELECT ALL - 67 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL - 67 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT DISTINCT - - 86 + - COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT - - 86 + - COUNT ( * ) AS col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6692
SELECT ALL + - 23 + - CAST( + 27 AS SIGNED ) - + 28 col2, + ( - CASE - - 56 WHEN + + 76 THEN 89 ELSE NULL END ) AS col1
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-6692
SELECT ALL + - 23 + - CAST ( + 27 AS INTEGER ) - + 28 col2, + ( - CASE - - 56 WHEN + + 76 THEN 89 ELSE NULL END ) AS col1
----
-78
NULL

query I rowsort
SELECT ALL - 17 * 47 AS col2
----
-799

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6694
SELECT 6 * CAST( + 21 AS SIGNED ) - + 60 AS col0, COUNT( * )
----
66
1

skipif mysql # not compatible
query II rowsort label-6694
SELECT 6 * CAST ( + 21 AS INTEGER ) - + 60 AS col0, COUNT ( * )
----
66
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT DISTINCT + + MIN( ALL - 60 ) * + 47
----
-2820

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT + + MIN ( ALL - 60 ) * + 47
----
-2820

query II rowsort
SELECT DISTINCT - - ( + 82 ) + 24 + + 33 AS col2, 27 * - - 81 * + - 88 AS col2
----
139
-192456

query I rowsort
SELECT ALL + 26 + + 27 AS col2
----
53

query I rowsort
SELECT ALL - 73 - - 92
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT SUM( ALL 16 ) + + 15 * 54 AS col1
----
826

skipif mysql # not compatible
query I rowsort label-6699
SELECT SUM ( ALL 16 ) + + 15 * 54 AS col1
----
826

query I rowsort
SELECT 80 + 45 - + + ( - + 92 ) AS col0
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT ALL - 74 - + 25 + + - SUM( - 85 ) + - 49 * 61 * + + 38 * + - ( 82 )
----
9313710

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL - 74 - + 25 + + - SUM ( - 85 ) + - 49 * 61 * + + 38 * + - ( 82 )
----
9313710

query II rowsort
SELECT 47, 27 AS col1
----
47
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6703
SELECT CASE + 64 WHEN - 4 THEN 99 * + - 94 WHEN - 24 - - - 26 / - 75 * + + 88 THEN + - ( + CAST( NULL AS SIGNED ) ) * 45 ELSE NULL END * - 0 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6703
SELECT CASE + 64 WHEN - 4 THEN 99 * + - 94 WHEN - 24 - - - 26 / - 75 * + + 88 THEN + - ( + CAST ( NULL AS INTEGER ) ) * 45 ELSE NULL END * - 0 col2
----
NULL

query I rowsort
SELECT ALL 93 * - + 79
----
-7347

query I rowsort
SELECT 86 * - + 5 * 15
----
-6450

onlyif mysql # DIV for integer division: 
query I rowsort label-6706
SELECT 22 * 40 DIV ( + + 14 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-6706
SELECT 22 * 40 / ( + + 14 ) AS col0
----
62

query I rowsort
SELECT DISTINCT 28 * + 10 AS col0
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT ALL COUNT( * ) * 95 * - - 54 AS col1
----
5130

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL COUNT ( * ) * 95 * - - 54 AS col1
----
5130

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT NULLIF ( + 91, + 82 * - SUM( ALL 52 ) - + CASE - - 19 WHEN - - 41 THEN 87 ELSE + 73 END + + 87 * 21 ) * - 81
----
-7371

skipif mysql # not compatible
query I rowsort label-6709
SELECT NULLIF ( + 91, + 82 * - SUM ( ALL 52 ) - + CASE - - 19 WHEN - - 41 THEN 87 ELSE + 73 END + + 87 * 21 ) * - 81
----
-7371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6710
SELECT ALL CAST( + + 69 AS SIGNED ) + CAST( + 42 AS SIGNED ) * - 15 * - 55 AS col2
----
34719

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL CAST ( + + 69 AS INTEGER ) + CAST ( + 42 AS INTEGER ) * - 15 * - 55 AS col2
----
34719

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT MAX( - 96 ) col0
----
-96

skipif mysql # not compatible
query I rowsort label-6711
SELECT MAX ( - 96 ) col0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6712
SELECT + - COALESCE ( + 21, ( - 34 ), - - CASE - 87 WHEN 44 THEN + 8 * + 18 + AVG ( - 86 ) + - COUNT( ( + 40 ) ) ELSE 70 END DIV 35 )
----
-21

skipif mysql # not compatible
query I rowsort label-6712
SELECT + - COALESCE ( + 21, ( - 34 ), - - CASE - 87 WHEN 44 THEN + 8 * + 18 + AVG ( - 86 ) + - COUNT ( ( + 40 ) ) ELSE 70 END / 35 )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6713
SELECT - 76 DIV - MAX( 62 ) + 32 * - - 2 - + + COUNT( * ) * 28 + MIN( ALL + - 10 ) + - 1 * - COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-6713
SELECT - 76 / - MAX ( 62 ) + 32 * - - 2 - + + COUNT ( * ) * 28 + MIN ( ALL + - 10 ) + - 1 * - COUNT ( * ) AS col0
----
28

query I rowsort
SELECT ALL 43 + + - 38
----
5

query I rowsort
SELECT + COALESCE ( - 54, - 87 * + + 4 * 95 + + CASE - 10 WHEN + 91 THEN NULL ELSE - 64 END, + + 17 * 44, - 15 * + 1 ) + - 45
----
-99

query I rowsort
SELECT DISTINCT - + ( - + 28 ) AS col1
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6717
SELECT ALL 70 + - - 58 + - 80 DIV - 72
----
129

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL 70 + - - 58 + - 80 / - 72
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT ALL - 71 + - + COUNT( * ) + + - 19 + - ( + COUNT( * ) ) + COUNT( * ) + + 15 col2
----
-76

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL - 71 + - + COUNT ( * ) + + - 19 + - ( + COUNT ( * ) ) + COUNT ( * ) + + 15 col2
----
-76

query I rowsort
SELECT + - 3 col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6720
SELECT ALL - 16 + + 19 * - 33 * 70 + - - COUNT( * ), - 91 * CAST( NULL AS SIGNED ) * - 4 * COALESCE ( - CAST( NULL AS SIGNED ), + 13 ) - 2 / + COUNT( * ) AS col0
----
-43905
NULL

skipif mysql # not compatible
query II rowsort label-6720
SELECT ALL - 16 + + 19 * - 33 * 70 + - - COUNT ( * ), - 91 * CAST ( NULL AS INTEGER ) * - 4 * COALESCE ( - CAST ( NULL AS INTEGER ), + 13 ) - 2 / + COUNT ( * ) AS col0
----
-43905
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6721
SELECT - 76 * + 92 - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6721
SELECT - 76 * + 92 - CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT DISTINCT + 88 - - 19 AS col2
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6723
SELECT - 0 * + + 38 + - 11 DIV - 96 * 82 + - 16 * - 49 + + 17 AS col0, - SUM( - - 28 )
----
801
-28

skipif mysql # not compatible
query II rowsort label-6723
SELECT - 0 * + + 38 + - 11 / - 96 * 82 + - 16 * - 49 + + 17 AS col0, - SUM ( - - 28 )
----
801
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT ALL - + MAX( ( - 45 ) ) - - - 8 + - 57 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL - + MAX ( ( - 45 ) ) - - - 8 + - 57 AS col0
----
-20

query I rowsort
SELECT - 42 * + - 18 * + 60
----
45360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6726
SELECT CASE - - 46 WHEN ( + + 24 ) THEN - + 59 * - 81 + 12 WHEN + 32 THEN NULL ELSE CAST( - ( + 79 ) AS SIGNED ) + - 58 END * 63 AS col0
----
-8631

skipif mysql # not compatible
query I rowsort label-6726
SELECT CASE - - 46 WHEN ( + + 24 ) THEN - + 59 * - 81 + 12 WHEN + 32 THEN NULL ELSE CAST ( - ( + 79 ) AS INTEGER ) + - 58 END * 63 AS col0
----
-8631

query I rowsort
SELECT - 82 * + 97 * + 64 AS col1
----
-509056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6728
SELECT ALL MIN( ALL CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL MIN ( ALL CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT - COUNT( * ) * - 6 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-6729
SELECT - COUNT ( * ) * - 6 AS col2
----
6

query I rowsort
SELECT ALL COALESCE ( 62, + 56 * 91 * 41 * + 93 * + - 27 )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6731
SELECT - COUNT( * ) DIV 1
----
-1

skipif mysql # not compatible
query I rowsort label-6731
SELECT - COUNT ( * ) / 1
----
-1

query I rowsort
SELECT ALL COALESCE ( 45, + 72 ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT DISTINCT - 61 * + CASE 78 WHEN - NULLIF ( - 66, + 89 * 78 ) THEN NULL WHEN + + ( + 7 ) + - 95 THEN NULL WHEN - 18 THEN 10 - - MIN( + 47 ) * - 5 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6733
SELECT DISTINCT - 61 * + CASE 78 WHEN - NULLIF ( - 66, + 89 * 78 ) THEN NULL WHEN + + ( + 7 ) + - 95 THEN NULL WHEN - 18 THEN 10 - - MIN ( + 47 ) * - 5 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6734
SELECT - CAST( NULL AS SIGNED ) * + - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6734
SELECT - CAST ( NULL AS INTEGER ) * + - 20 AS col1
----
NULL

query II rowsort
SELECT 38 AS col1, + 23 + - 38 * - 1 AS col1
----
38
61

query II rowsort
SELECT - 51, - 7 col0
----
-51
-7

query I rowsort
SELECT DISTINCT - 88 * - - CASE - - 49 WHEN + 78 + - 74 + + 49 THEN NULL WHEN + 45 THEN - 63 + + AVG ( DISTINCT + 29 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT + 81 * - NULLIF ( + 99, - ( NULLIF ( - ( + 7 ), - + COALESCE ( - + 98, 52 + - 56 * + SUM( - 38 ) ) ) ) ) AS col1
----
-8019

skipif mysql # not compatible
query I rowsort label-6738
SELECT + 81 * - NULLIF ( + 99, - ( NULLIF ( - ( + 7 ), - + COALESCE ( - + 98, 52 + - 56 * + SUM ( - 38 ) ) ) ) ) AS col1
----
-8019

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT DISTINCT - COUNT( + CASE - ( + 35 ) WHEN - 6 * ( - 70 ) THEN NULL WHEN + 23 - + + 12 THEN NULL WHEN + 68 * + 24 * 39 THEN - 77 END ) * ( + 7 + 98 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6739
SELECT DISTINCT - COUNT ( + CASE - ( + 35 ) WHEN - 6 * ( - 70 ) THEN NULL WHEN + 23 - + + 12 THEN NULL WHEN + 68 * + 24 * 39 THEN - 77 END ) * ( + 7 + 98 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT ALL MIN( ALL 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL MIN ( ALL 3 ) AS col1
----
3

query II rowsort
SELECT 33 AS col2, + 34
----
33
34

query II rowsort
SELECT ALL 73 AS col2, 54 + - - 84 * - 46
----
73
-3810

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT + COUNT( * ) + + 22 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-6743
SELECT + COUNT ( * ) + + 22 AS col2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6744
SELECT - 88 DIV - + 22 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6744
SELECT - 88 / - + 22 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT + 58 + - - COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-6745
SELECT + 58 + - - COUNT ( * ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-6746
SELECT + - COUNT( * ), 69 AS col0
----
-1
69

skipif mysql # not compatible
query II rowsort label-6746
SELECT + - COUNT ( * ), 69 AS col0
----
-1
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT + + MAX( DISTINCT - 41 ) * COUNT( * ) + + + 45 * 86 * MAX( - 61 ) * + ( + 35 ) + - 83 + - - 11
----
-8262563

skipif mysql # not compatible
query I rowsort label-6747
SELECT + + MAX ( DISTINCT - 41 ) * COUNT ( * ) + + + 45 * 86 * MAX ( - 61 ) * + ( + 35 ) + - 83 + - - 11
----
-8262563

query I rowsort
SELECT NULLIF ( + CASE - 10 WHEN 55 + 25 THEN NULL WHEN - 79 THEN NULL ELSE - 56 * - 67 END, + - 27 )
----
3752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6749
SELECT ALL + CASE - - NULLIF ( + 13, - - CAST( NULL AS SIGNED ) * - + 91 + + 54 ) WHEN COUNT( * ) THEN NULL ELSE + 75 END
----
75

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL + CASE - - NULLIF ( + 13, - - CAST ( NULL AS INTEGER ) * - + 91 + + 54 ) WHEN COUNT ( * ) THEN NULL ELSE + 75 END
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6750
SELECT - + 5 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-6750
SELECT - + 5 / - 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT ALL 32 * - COUNT( DISTINCT - 73 ) + + - 67 + + 23
----
-76

skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL 32 * - COUNT ( DISTINCT - 73 ) + + - 67 + + 23
----
-76

query II rowsort
SELECT ALL + + 81 col0, + 42 + - 29 col2
----
81
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT + CASE COUNT( * ) WHEN - 88 - + 99 * + 80 THEN - 46 + + - COALESCE ( 21, - 11 ) - 80 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6753
SELECT + CASE COUNT ( * ) WHEN - 88 - + 99 * + 80 THEN - 46 + + - COALESCE ( 21, - 11 ) - 80 END col1
----
NULL

query II rowsort
SELECT ALL + 31, + 63 + - 72 AS col0
----
31
-9

query I rowsort
SELECT + 60 * + 63
----
3780

query II rowsort
SELECT ALL + 21, - 18 + + + 57 AS col2
----
21
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT + SUM( 3 ) * - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-6757
SELECT + SUM ( 3 ) * - COUNT ( * )
----
-3

query I rowsort
SELECT DISTINCT + + CASE + 20 WHEN + 67 * 52 + 43 * 69 THEN NULL WHEN 7 THEN - 89 / - 14 + + 94 - + 29 - 83 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT - 56 * 21 * + MAX( DISTINCT - + 6 ) + + 57 * - 92 + - 98 - ( 47 ) * CASE - 38 WHEN + 79 + + 31 * - 40 THEN 31 - + 3 * + 27 ELSE + 37 END + ( + 59 + - MAX( + 0 ) )
----
34

skipif mysql # not compatible
query I rowsort label-6759
SELECT - 56 * 21 * + MAX ( DISTINCT - + 6 ) + + 57 * - 92 + - 98 - ( 47 ) * CASE - 38 WHEN + 79 + + 31 * - 40 THEN 31 - + 3 * + 27 ELSE + 37 END + ( + 59 + - MAX ( + 0 ) )
----
34

query I rowsort
SELECT - + 98 * 65
----
-6370

query I rowsort
SELECT DISTINCT 79 * - 83 AS col1
----
-6557

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT ALL 60 * COUNT( * ) - 82 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL 60 * COUNT ( * ) - 82 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-6763
SELECT DISTINCT + COUNT( * ), 40 col0
----
1
40

skipif mysql # not compatible
query II rowsort label-6763
SELECT DISTINCT + COUNT ( * ), 40 col0
----
1
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT - MAX( DISTINCT - - 81 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-6764
SELECT - MAX ( DISTINCT - - 81 ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT ALL + 3 * 46 * COUNT( * ) - + 49
----
89

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL + 3 * 46 * COUNT ( * ) - + 49
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT + 59 * 74 * - COUNT( * ) * - 85 col2
----
371110

skipif mysql # not compatible
query I rowsort label-6766
SELECT + 59 * 74 * - COUNT ( * ) * - 85 col2
----
371110

onlyif mysql # aggregate syntax: 
query II rowsort label-6767
SELECT DISTINCT 65 * COUNT( * ) AS col2, 95 AS col0
----
65
95

skipif mysql # not compatible
query II rowsort label-6767
SELECT DISTINCT 65 * COUNT ( * ) AS col2, 95 AS col0
----
65
95

query I rowsort
SELECT + 6 + - 57
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-6769
SELECT + COUNT( * ) * + 26, 41 AS col0
----
26
41

skipif mysql # not compatible
query II rowsort label-6769
SELECT + COUNT ( * ) * + 26, 41 AS col0
----
26
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6770
SELECT - 29 * + MAX( ALL 32 ), CAST( NULL AS SIGNED ) * - 6 AS col1
----
-928
NULL

skipif mysql # not compatible
query II rowsort label-6770
SELECT - 29 * + MAX ( ALL 32 ), CAST ( NULL AS INTEGER ) * - 6 AS col1
----
-928
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6771
SELECT COUNT( DISTINCT - ( + + ( - CASE + CAST( - CAST( 76 AS SIGNED ) AS SIGNED ) WHEN - - 48 THEN ( + 54 ) END ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6771
SELECT COUNT ( DISTINCT - ( + + ( - CASE + CAST ( - CAST ( 76 AS INTEGER ) AS INTEGER ) WHEN - - 48 THEN ( + 54 ) END ) ) ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6772
SELECT ALL + 2 + + MAX( DISTINCT 60 ) + - + 59 DIV + - 92 * - ( + 68 )
----
62

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL + 2 + + MAX ( DISTINCT 60 ) + - + 59 / + - 92 * - ( + 68 )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6773
SELECT ALL + ( COUNT( * ) ) DIV - + 46 * - - SUM( DISTINCT + + 44 ) + - 78 * + 83 AS col2
----
-6474

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL + ( COUNT ( * ) ) / - + 46 * - - SUM ( DISTINCT + + 44 ) + - 78 * + 83 AS col2
----
-6474

onlyif mysql # aggregate syntax: 
query II rowsort label-6774
SELECT DISTINCT MIN( - + 49 ) AS col0, 96 + - COALESCE ( - 88, - 88 * - - COUNT( * ) * 42 ) col2
----
-49
184

skipif mysql # not compatible
query II rowsort label-6774
SELECT DISTINCT MIN ( - + 49 ) AS col0, 96 + - COALESCE ( - 88, - 88 * - - COUNT ( * ) * 42 ) col2
----
-49
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6775
SELECT - 28 + + CASE - + 17 WHEN - NULLIF ( 30, 98 ) - - COUNT( * ) THEN NULL WHEN CAST( COUNT( * ) AS SIGNED ) + + COUNT( * ) + - CAST( NULL AS SIGNED ) THEN NULL ELSE + 46 END DIV 37
----
-27

skipif mysql # not compatible
query I rowsort label-6775
SELECT - 28 + + CASE - + 17 WHEN - NULLIF ( 30, 98 ) - - COUNT ( * ) THEN NULL WHEN CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 46 END / 37
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT ALL + COUNT( * ) * + ( - 43 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL + COUNT ( * ) * + ( - 43 ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT ALL 10 + - - 98 - + - COUNT( * ) AS col0
----
109

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL 10 + - - 98 - + - COUNT ( * ) AS col0
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6778
SELECT DISTINCT CAST( + + CASE 26 WHEN - COUNT( * ) / COUNT( * ) / - - 77 / - - COUNT( * ) THEN NULL WHEN - 50 THEN + + 20 WHEN - CAST( + 94 AS SIGNED ) + - 34 THEN + 47 * 24 END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6778
SELECT DISTINCT CAST ( + + CASE 26 WHEN - COUNT ( * ) / COUNT ( * ) / - - 77 / - - COUNT ( * ) THEN NULL WHEN - 50 THEN + + 20 WHEN - CAST ( + 94 AS INTEGER ) + - 34 THEN + 47 * 24 END AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT + 92 * - SUM( DISTINCT - - 16 )
----
-1472

skipif mysql # not compatible
query I rowsort label-6779
SELECT + 92 * - SUM ( DISTINCT - - 16 )
----
-1472

query II rowsort
SELECT ALL + 12 * 19, - 92 AS col2
----
228
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6781
SELECT - COUNT( * ) DIV 97 * + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6781
SELECT - COUNT ( * ) / 97 * + + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT - 74 + + 31 * 70 * + - 2
----
-4414

query I rowsort
SELECT ALL - + 92 + + 86
----
-6

query I rowsort
SELECT - 95 - - + ( 58 ) + 41 AS col0
----
4

query I rowsort
SELECT - - ( + ( - + 47 ) )
----
-47

query II rowsort
SELECT - 8 + - + ( 73 ) + 13 * - - 79, 66 col1
----
946
66

query I rowsort
SELECT - - 76 * 1 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT ALL - - ( + COUNT( * ) ) * + 67
----
67

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL - - ( + COUNT ( * ) ) * + 67
----
67

query I rowsort
SELECT DISTINCT ( 77 ) AS col1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6790
SELECT DISTINCT + 69 DIV + - 25 - + COUNT( * ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6790
SELECT DISTINCT + 69 / + - 25 - + COUNT ( * ) AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6791
SELECT - 49 * - CAST( NULL AS SIGNED ) AS col1, - 55 DIV 76 col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6791
SELECT - 49 * - CAST ( NULL AS INTEGER ) AS col1, - 55 / 76 col0
----
NULL
0

query I rowsort
SELECT - + 41 / AVG ( DISTINCT - + ( - CASE - + 51 WHEN - + 25 * 68 + COALESCE ( 45, - - 31 ) THEN NULL WHEN - - 73 THEN - - 70 ELSE NULL END ) ) + - 79 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6793
SELECT ALL - 26 DIV + - 75 - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL - 26 / + - 75 - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6794
SELECT + 21 * + - COUNT( * ) * MAX( ALL + 67 ) + + 47 AS col1, ( - 53 )
----
-1360
-53

skipif mysql # not compatible
query II rowsort label-6794
SELECT + 21 * + - COUNT ( * ) * MAX ( ALL + 67 ) + + 47 AS col1, ( - 53 )
----
-1360
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT - - 50 * COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-6795
SELECT - - 50 * COUNT ( * )
----
50

query I rowsort
SELECT - 24 + + 80 AS col0
----
56

onlyif mysql # DIV for integer division: 
query II rowsort label-6797
SELECT + 94 DIV 59 AS col1, 33 + + 82 + + + 64 AS col1
----
1
179

skipif mysql # not compatible
query II rowsort label-6797
SELECT + 94 / 59 AS col1, 33 + + 82 + + + 64 AS col1
----
1
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6798
SELECT + 29 * + 44 + + + 62 + COUNT( * ) * + ( + - CASE + 28 WHEN 17 THEN NULL ELSE NULLIF ( + + MAX( DISTINCT 64 ), - 70 * 28 ) END ) + - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6798
SELECT + 29 * + 44 + + + 62 + COUNT ( * ) * + ( + - CASE + 28 WHEN 17 THEN NULL ELSE NULLIF ( + + MAX ( DISTINCT 64 ), - 70 * 28 ) END ) + - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 94 * + - 75 AS col0
----
-7050

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6800
SELECT COUNT( * ) DIV + + 97 AS col1, 10 * + 20 AS col0
----
0
200

skipif mysql # not compatible
query II rowsort label-6800
SELECT COUNT ( * ) / + + 97 AS col1, 10 * + 20 AS col0
----
0
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6801
SELECT - CASE - NULLIF ( + + 86, + 17 ) WHEN - - CAST( - SUM( - 68 ) AS SIGNED ) THEN + 53 WHEN - 40 THEN + 24 END + - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6801
SELECT - CASE - NULLIF ( + + 86, + 17 ) WHEN - - CAST ( - SUM ( - 68 ) AS INTEGER ) THEN + 53 WHEN - 40 THEN + 24 END + - 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT ALL - MAX( 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL - MAX ( 40 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT 96 + - + 88 + + COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-6803
SELECT 96 + - + 88 + + COUNT ( * ) AS col0
----
9

query II rowsort
SELECT DISTINCT - 67, 9 AS col2
----
-67
9

query I rowsort
SELECT ( 60 ) + - ( + - ( - 21 ) ) + - 83 * - 87
----
7260

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6806
SELECT ALL COUNT( * ) DIV - 61 * + 57 AS col2, + COALESCE ( 10, - + 82 * - - ( + NULLIF ( 0, - 38 ) ) + - 47 + 1 - + 83 DIV ( 24 ), 57 + + 94 ) * 17 AS col0
----
0
170

skipif mysql # not compatible
query II rowsort label-6806
SELECT ALL COUNT ( * ) / - 61 * + 57 AS col2, + COALESCE ( 10, - + 82 * - - ( + NULLIF ( 0, - 38 ) ) + - 47 + 1 - + 83 / ( 24 ), 57 + + 94 ) * 17 AS col0
----
0
170

query I rowsort
SELECT DISTINCT 11 + - 15
----
-4

query I rowsort
SELECT ALL ( + 92 ) + 25
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6809
SELECT - 95, - CAST( - 90 AS SIGNED ) AS col1
----
-95
90

skipif mysql # not compatible
query II rowsort label-6809
SELECT - 95, - CAST ( - 90 AS INTEGER ) AS col1
----
-95
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6810
SELECT ALL COUNT( * ) + + 89 + + CASE 44 WHEN - 4 THEN 94 ELSE - 14 * - + 14 * + COUNT( ALL - 73 ) * - 99 * - ( - CASE 67 WHEN + 56 * - 47 THEN + 31 END ) + - 89 + + 44 END * + 13 * COALESCE ( + MAX( 15 ) * - ( 92 * ( 15 * 21 ) ) + 54 * 36, + CASE + COALESCE ( 61, + COUNT( * ) * SUM( 35 ) ) WHEN + CAST( NULL AS DECIMAL ) THEN NULL WHEN 14 - 37 THEN - COUNT( * ) END + + CASE 34 WHEN - 70 THEN CAST( NULL AS SIGNED ) + + ( COALESCE ( 47, - CAST( COUNT( DISTINCT 11 ) AS SIGNED ) / 75 ) + 0 ) WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL COUNT ( * ) + + 89 + + CASE 44 WHEN - 4 THEN 94 ELSE - 14 * - + 14 * + COUNT ( ALL - 73 ) * - 99 * - ( - CASE 67 WHEN + 56 * - 47 THEN + 31 END ) + - 89 + + 44 END * + 13 * COALESCE ( + MAX ( 15 ) * - ( 92 * ( 15 * 21 ) ) + 54 * 36, + CASE + COALESCE ( 61, + COUNT ( * ) * SUM ( 35 ) ) WHEN + CAST ( NULL AS REAL ) THEN NULL WHEN 14 - 37 THEN - COUNT ( * ) END + + CASE 34 WHEN - 70 THEN CAST ( NULL AS INTEGER ) + + ( COALESCE ( 47, - CAST ( COUNT ( DISTINCT 11 ) AS INTEGER ) / 75 ) + 0 ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6811
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6811
SELECT DISTINCT CAST ( NULL AS REAL ) + - 39 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT COUNT( * ) * - 41 * COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-6812
SELECT COUNT ( * ) * - 41 * COUNT ( * )
----
-41

query I rowsort
SELECT DISTINCT 75 + + 74 * 71 AS col0
----
5329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6814
SELECT DISTINCT - CASE + COUNT( * ) WHEN - 12 THEN NULL WHEN + 18 THEN - - 16 * - + COALESCE ( - 60, + - 12 * - MIN( 1 ) + - COUNT( * ) + - + COUNT( * ) / - CASE COUNT( * ) WHEN CASE 37 WHEN 45 + - MAX( + 87 ) THEN + CAST( NULL AS SIGNED ) + 25 WHEN + 4 + 66 / + 76 THEN NULL ELSE NULL END * 7 THEN 33 * + 54 WHEN + AVG ( DISTINCT 15 ) THEN NULL END * - CASE + 74 / 39 WHEN CAST( NULL AS SIGNED ) * 51 THEN NULL WHEN + CAST( + 0 AS SIGNED ) THEN CAST( NULL AS SIGNED ) WHEN - 46 THEN NULL END, 65 ) * CASE + 58 * - 75 + 42 WHEN 54 THEN 55 WHEN 24 - ( - 44 ) THEN NULL ELSE - 4 END END + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6814
SELECT DISTINCT - CASE + COUNT ( * ) WHEN - 12 THEN NULL WHEN + 18 THEN - - 16 * - + COALESCE ( - 60, + - 12 * - MIN ( 1 ) + - COUNT ( * ) + - + COUNT ( * ) / - CASE COUNT ( * ) WHEN CASE 37 WHEN 45 + - MAX ( + 87 ) THEN + CAST ( NULL AS INTEGER ) + 25 WHEN + 4 + 66 / + 76 THEN NULL ELSE NULL END * 7 THEN 33 * + 54 WHEN + AVG ( DISTINCT 15 ) THEN NULL END * - CASE + 74 / 39 WHEN CAST ( NULL AS INTEGER ) * 51 THEN NULL WHEN + CAST ( + 0 AS INTEGER ) THEN CAST ( NULL AS INTEGER ) WHEN - 46 THEN NULL END, 65 ) * CASE + 58 * - 75 + 42 WHEN 54 THEN 55 WHEN 24 - ( - 44 ) THEN NULL ELSE - 4 END END + 43 AS col0
----
NULL

query II rowsort
SELECT 95, - 97 AS col1
----
95
-97

query II rowsort
SELECT DISTINCT 68 AS col1, 40 col0
----
68
40

query I rowsort
SELECT 50 * + + 33 AS col2
----
1650

query II rowsort
SELECT - 72, - 38 + + + 78 + 17 + - 34 * 67 AS col1
----
-72
-2221

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT ALL 56 + + 36 - - - 50 * - + COUNT( * ) + + + 43 AS col0
----
185

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL 56 + + 36 - - - 50 * - + COUNT ( * ) + + + 43 AS col0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT COUNT( * ) + - COUNT( * ) * 33 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-6820
SELECT COUNT ( * ) + - COUNT ( * ) * 33 AS col0
----
-32

query I rowsort
SELECT - 97 - + - 46 AS col1
----
-51

query I rowsort
SELECT ALL + 94 * + 4 col2
----
376

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT - MAX( + 43 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-6823
SELECT - MAX ( + 43 ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-6824
SELECT ALL - 3 * + 38 * - + MAX( 74 ) AS col0, - 14 + COUNT( * ) AS col2
----
8436
-13

skipif mysql # not compatible
query II rowsort label-6824
SELECT ALL - 3 * + 38 * - + MAX ( 74 ) AS col0, - 14 + COUNT ( * ) AS col2
----
8436
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-6825
SELECT 81 AS col0, + COUNT( ALL 18 )
----
81
1

skipif mysql # not compatible
query II rowsort label-6825
SELECT 81 AS col0, + COUNT ( ALL 18 )
----
81
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT ( 80 ) + + 7 - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-6826
SELECT ( 80 ) + + 7 - COUNT ( * )
----
86

query I rowsort
SELECT + 47 * - 7 + + 81
----
-248

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6828
SELECT DISTINCT + 1 * CAST( NULL AS SIGNED ) * - - 2 AS col2, 21
----
NULL
21

skipif mysql # not compatible
query II rowsort label-6828
SELECT DISTINCT + 1 * CAST ( NULL AS INTEGER ) * - - 2 AS col2, 21
----
NULL
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6829
SELECT + - AVG ( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6829
SELECT + - AVG ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6830
SELECT + COUNT( * ), 85 - 46 - - COUNT( * ) DIV - 91 AS col0
----
1
39

skipif mysql # not compatible
query II rowsort label-6830
SELECT + COUNT ( * ), 85 - 46 - - COUNT ( * ) / - 91 AS col0
----
1
39

query I rowsort
SELECT 40 * + 4 AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT DISTINCT - CASE - 75 WHEN 21 THEN + 17 * - ( - + MIN( ALL + 92 ) ) * + COUNT( 99 ) WHEN + + 66 + - 40 THEN NULL WHEN 13 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6832
SELECT DISTINCT - CASE - 75 WHEN 21 THEN + 17 * - ( - + MIN ( ALL + 92 ) ) * + COUNT ( 99 ) WHEN + + 66 + - 40 THEN NULL WHEN 13 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 19 * 31 AS col1
----
589

query I rowsort
SELECT ALL + - 97 * + 33 AS col0
----
-3201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6835
SELECT + 2 + + - COUNT( * ) - + 15 * 91 + CAST( + 29 AS SIGNED ) * + SUM( DISTINCT - + 36 ) * + - 5 + - 38 AS col0
----
3818

skipif mysql # not compatible
query I rowsort label-6835
SELECT + 2 + + - COUNT ( * ) - + 15 * 91 + CAST ( + 29 AS INTEGER ) * + SUM ( DISTINCT - + 36 ) * + - 5 + - 38 AS col0
----
3818

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT + COALESCE ( - 56, + 38 + - NULLIF ( 26, + - MIN( - - 69 ) ) * - 53 * 41 * + COUNT( * ), + MAX( DISTINCT - 16 ) * - 66 )
----
-56

skipif mysql # not compatible
query I rowsort label-6836
SELECT + COALESCE ( - 56, + 38 + - NULLIF ( 26, + - MIN ( - - 69 ) ) * - 53 * 41 * + COUNT ( * ), + MAX ( DISTINCT - 16 ) * - 66 )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6837
SELECT ALL + SUM( DISTINCT 17 ) DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL + SUM ( DISTINCT 17 ) / 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT 80 * - - COUNT( - + 1 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-6838
SELECT 80 * - - COUNT ( - + 1 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT COUNT( * ) * + + 16 * + COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6839
SELECT COUNT ( * ) * + + 16 * + COUNT ( * ) AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6840
SELECT CAST( NULL AS SIGNED ) * - + ( + COUNT( * ) ) * - + 30 + 65 * 76 - - NULLIF ( - 27, - - 36 * - CAST( NULL AS SIGNED ) + + 1 ) + - 60 + - - 53 * 84 + - 93 * 57 * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-6840
SELECT CAST ( NULL AS INTEGER ) * - + ( + COUNT ( * ) ) * - + 30 + 65 * 76 - - NULLIF ( - 27, - - 36 * - CAST ( NULL AS INTEGER ) + + 1 ) + - 60 + - - 53 * 84 + - 93 * 57 * + 15
----
NULL

query I rowsort
SELECT ALL + 57 + + 12 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT DISTINCT + COUNT( * ) + + 50 * ( - 16 ) + COUNT( * ) + + 86 + - 46 - 97 * + ( - - 31 )
----
-3765

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT + COUNT ( * ) + + 50 * ( - 16 ) + COUNT ( * ) + + 86 + - 46 - 97 * + ( - - 31 )
----
-3765

query I rowsort
SELECT ALL - 84 + + 78 * 44 AS col0
----
3348

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT DISTINCT CASE + 26 WHEN 47 + - - 82 THEN + - COUNT( * ) WHEN - 23 * + + ( + - 51 ) THEN - + COUNT( * ) - - - 44 * + 61 + + + 47 END + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT CASE + 26 WHEN 47 + - - 82 THEN + - COUNT ( * ) WHEN - 23 * + + ( + - 51 ) THEN - + COUNT ( * ) - - - 44 * + 61 + + + 47 END + + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 16 + 5 * 47 * + + 11 AS col2
----
2601

query I rowsort
SELECT 31 * - 22
----
-682

query I rowsort
SELECT 5 + + 57 col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6848
SELECT - CAST( - + 47 AS SIGNED ) * - + CASE - 14 WHEN 82 THEN 86 * + - 67 + - + MIN( DISTINCT - - NULLIF ( - 70, - 2 ) ) / - + 69 - + ( 71 ) WHEN + COUNT( * ) + + MAX( ALL 62 ) THEN 33 * AVG ( 81 ) + 75 END - + 49 * + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6848
SELECT - CAST ( - + 47 AS INTEGER ) * - + CASE - 14 WHEN 82 THEN 86 * + - 67 + - + MIN ( DISTINCT - - NULLIF ( - 70, - 2 ) ) / - + 69 - + ( 71 ) WHEN + COUNT ( * ) + + MAX ( ALL 62 ) THEN 33 * AVG ( 81 ) + 75 END - + 49 * + 31 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6849
SELECT 14 + - 54 * - 23 * - CAST( NULL AS SIGNED ) + + ( + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6849
SELECT 14 + - 54 * - 23 * - CAST ( NULL AS INTEGER ) + + ( + COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT 50 - - - 34
----
16

query I rowsort
SELECT 21 * - - 47
----
987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6852
SELECT 56 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT 56 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL ( - + 62 ) - 99
----
-161

query I rowsort
SELECT 40 + - 3
----
37

query II rowsort
SELECT DISTINCT 9 * - + 58 AS col0, - 9 AS col2
----
-522
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6856
SELECT - CAST( + + MIN( + - 14 ) AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-6856
SELECT - CAST ( + + MIN ( + - 14 ) AS INTEGER )
----
14

query I rowsort
SELECT ALL COALESCE ( 21, - 29 )
----
21

query I rowsort
SELECT 26 + 20
----
46

query I rowsort
SELECT - CASE + 76 WHEN + - 67 * + 39 + - COALESCE ( - + 29, + + 61, - AVG ( 45 ) ) THEN + 8 ELSE NULL END * + 14 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT ALL SUM( - + 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL SUM ( - + 29 )
----
-29

query I rowsort
SELECT ALL COALESCE ( - 75, + NULLIF ( - - 61, 74 ) + - 67, - - 15 ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT DISTINCT - - COALESCE ( 96, + COUNT( ALL 20 ), + 21, - 77 ) * ( - 36 )
----
-3456

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT - - COALESCE ( 96, + COUNT ( ALL 20 ), + 21, - 77 ) * ( - 36 )
----
-3456

query I rowsort
SELECT DISTINCT + + 94 AS col1
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6864
SELECT ALL - + 3 * - + CAST( NULL AS DECIMAL ) + - 8 * + 94 AS col1, - 85 AS col2
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-6864
SELECT ALL - + 3 * - + CAST ( NULL AS REAL ) + - 8 * + 94 AS col1, - 85 AS col2
----
NULL
-85

query II rowsort
SELECT - 42 - + 53 col0, 27 col0
----
-95
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6866
SELECT DISTINCT 12 DIV 49 + 73
----
73

skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT 12 / 49 + 73
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6867
SELECT - + COALESCE ( + 93, - - 36 DIV - 69 ) * + 40 - - CAST( - 45 AS SIGNED ) - - 86 DIV + 67 + COUNT( ALL + 89 )
----
-3763

skipif mysql # not compatible
query I rowsort label-6867
SELECT - + COALESCE ( + 93, - - 36 / - 69 ) * + 40 - - CAST ( - 45 AS INTEGER ) - - 86 / + 67 + COUNT ( ALL + 89 )
----
-3763

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6868
SELECT + 0 DIV + NULLIF ( - - MAX( - 17 ), + 65 ) - + 45 * 27 * - - 53 AS col0
----
-64395

skipif mysql # not compatible
query I rowsort label-6868
SELECT + 0 / + NULLIF ( - - MAX ( - 17 ), + 65 ) - + 45 * 27 * - - 53 AS col0
----
-64395

query I rowsort
SELECT 1 * - 81 + - + 75 AS col1
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT - 65 * - - SUM( + + 93 )
----
-6045

skipif mysql # not compatible
query I rowsort label-6870
SELECT - 65 * - - SUM ( + + 93 )
----
-6045

onlyif mysql # aggregate syntax: 
query II rowsort label-6871
SELECT + 83, + 49 * - SUM( 1 ) - - 14 AS col1
----
83
-35

skipif mysql # not compatible
query II rowsort label-6871
SELECT + 83, + 49 * - SUM ( 1 ) - - 14 AS col1
----
83
-35

query I rowsort
SELECT DISTINCT 7 * - 74 + - - 43 AS col2
----
-475

query I rowsort
SELECT ALL + ( + ( 88 ) ) AS col1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6874
SELECT DISTINCT + CAST( - + ( + 33 ) AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT + CAST ( - + ( + 33 ) AS INTEGER )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT ALL - 78 * - COUNT( * ) * + 85 + 64 AS col1
----
6694

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL - 78 * - COUNT ( * ) * + 85 + 64 AS col1
----
6694

query I rowsort
SELECT - 22 + - - 28 + + 21 * + 6 + 37 AS col1
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT - 99 + + 45 + + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-6877
SELECT - 99 + + 45 + + COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT DISTINCT - 8 * + + COUNT( * ) * - COUNT( * ) * 85 AS col0
----
680

skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT - 8 * + + COUNT ( * ) * - COUNT ( * ) * 85 AS col0
----
680

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6879
SELECT + 51 + COALESCE ( - - 29, NULLIF ( 66, - 96 ) ), CAST( - - 39 AS SIGNED ) AS col1
----
80
39

skipif mysql # not compatible
query II rowsort label-6879
SELECT + 51 + COALESCE ( - - 29, NULLIF ( 66, - 96 ) ), CAST ( - - 39 AS INTEGER ) AS col1
----
80
39

query I rowsort
SELECT - 63 * + 29
----
-1827

query I rowsort
SELECT + 68 * 15 AS col1
----
1020

query I rowsort
SELECT DISTINCT - ( 11 ) * + ( 20 ) * 8 + 50 * + 16 AS col1
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT - COUNT( ALL - 86 ) + + + ( 38 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-6883
SELECT - COUNT ( ALL - 86 ) + + + ( 38 ) AS col0
----
37

query I rowsort
SELECT ALL - 90 * + 9 AS col2
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT DISTINCT + ( COUNT( * ) ) * 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT + ( COUNT ( * ) ) * 32 AS col2
----
32

query I rowsort
SELECT + 2 * - + 79 * + 18 - 23 + + ( - 68 )
----
-2935

query II rowsort
SELECT 36 AS col2, - 37 AS col0
----
36
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT + COUNT( * ) + + COUNT( * ) / - - 57 + + COUNT( DISTINCT + 53 ) * CASE - COUNT( * ) WHEN - + 34 * + 47 * + MIN( ALL - 87 ) THEN + 99 * - 55 - - 9 ELSE NULL END + 28 + + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6888
SELECT + COUNT ( * ) + + COUNT ( * ) / - - 57 + + COUNT ( DISTINCT + 53 ) * CASE - COUNT ( * ) WHEN - + 34 * + 47 * + MIN ( ALL - 87 ) THEN + 99 * - 55 - - 9 ELSE NULL END + 28 + + 58
----
NULL

query II rowsort
SELECT + 97 AS col0, + 43 AS col0
----
97
43

query I rowsort
SELECT + - 6 + - - 33
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6891
SELECT ALL - 1 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL - 1 / + 73
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6892
SELECT - ( + - 90 ) * + 14 + 62 / + CASE 16 WHEN + 77 THEN + + 7 * + 94 WHEN + 57 * - + 67 * + 43 + COUNT( * ) - - 28 + + + 28 - + 21 * MAX( DISTINCT 33 - ( 94 ) ) THEN NULL WHEN 70 THEN NULL ELSE CAST( NULL AS SIGNED ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6892
SELECT - ( + - 90 ) * + 14 + 62 / + CASE 16 WHEN + 77 THEN + + 7 * + 94 WHEN + 57 * - + 67 * + 43 + COUNT ( * ) - - 28 + + + 28 - + 21 * MAX ( DISTINCT 33 - ( 94 ) ) THEN NULL WHEN 70 THEN NULL ELSE CAST ( NULL AS INTEGER ) END col2
----
NULL

query I rowsort
SELECT + + 31 * - 25
----
-775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6894
SELECT + CAST( + NULLIF ( 37, - 48 ) AS SIGNED ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-6894
SELECT + CAST ( + NULLIF ( 37, - 48 ) AS INTEGER ) AS col1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6895
SELECT + + CAST( - 59 AS SIGNED ) - - 42 AS col1, - 34
----
-17
-34

skipif mysql # not compatible
query II rowsort label-6895
SELECT + + CAST ( - 59 AS INTEGER ) - - 42 AS col1, - 34
----
-17
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT + - 71 * 10 * + - MIN( - 20 ) + + 58 + + ( + NULLIF ( COUNT( * ), - + 33 / - COUNT( * ) * - 22 ) )
----
-14141

skipif mysql # not compatible
query I rowsort label-6896
SELECT + - 71 * 10 * + - MIN ( - 20 ) + + 58 + + ( + NULLIF ( COUNT ( * ), - + 33 / - COUNT ( * ) * - 22 ) )
----
-14141

query I rowsort
SELECT ALL 43 + - + 23
----
20

query I rowsort
SELECT DISTINCT - ( + - 47 ) * - - 87 + + 60
----
4149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6899
SELECT + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6899
SELECT + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 71 * + COALESCE ( - 41, + + 9 )
----
2911

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6901
SELECT + 45 - + ( + CAST( 37 AS SIGNED ) )
----
8

skipif mysql # not compatible
query I rowsort label-6901
SELECT + 45 - + ( + CAST ( 37 AS INTEGER ) )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6902
SELECT ALL + 27 DIV 39 + - - 82 AS col1, + NULLIF ( + ( - COUNT( * ) ), + 83 )
----
82
-1

skipif mysql # not compatible
query II rowsort label-6902
SELECT ALL + 27 / 39 + - - 82 AS col1, + NULLIF ( + ( - COUNT ( * ) ), + 83 )
----
82
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6903
SELECT + COUNT( * ) AS col0, 12
----
1
12

skipif mysql # not compatible
query II rowsort label-6903
SELECT + COUNT ( * ) AS col0, 12
----
1
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT + COUNT( * ) * - ( + + 42 ) * - + 9 + - + 99
----
279

skipif mysql # not compatible
query I rowsort label-6904
SELECT + COUNT ( * ) * - ( + + 42 ) * - + 9 + - + 99
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6905
SELECT CAST( - + 36 AS SIGNED ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-6905
SELECT CAST ( - + 36 AS INTEGER ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT ALL COUNT( + - 2 ) * + + 95 * + CASE + - 9 WHEN + AVG ( + ( + 67 ) ) THEN - - COUNT( * ) * - - 27 WHEN 17 THEN ( + + 8 ) * - 99 - + 12 * 28 * COUNT( * ) WHEN + 66 / + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL COUNT ( + - 2 ) * + + 95 * + CASE + - 9 WHEN + AVG ( + ( + 67 ) ) THEN - - COUNT ( * ) * - - 27 WHEN 17 THEN ( + + 8 ) * - 99 - + 12 * 28 * COUNT ( * ) WHEN + 66 / + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT + 93 + + + COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-6907
SELECT + 93 + + + COUNT ( * ) AS col0
----
94

query I rowsort
SELECT + 11 * 46
----
506

query I rowsort
SELECT + ( 23 )
----
23

query I rowsort
SELECT + 87 * + - 13
----
-1131

onlyif mysql # aggregate syntax: 
query II rowsort label-6911
SELECT ALL + COUNT( * ) AS col1, + 97 AS col0
----
1
97

skipif mysql # not compatible
query II rowsort label-6911
SELECT ALL + COUNT ( * ) AS col1, + 97 AS col0
----
1
97

query II rowsort
SELECT ALL + 4, - 7 - - - 26 col1
----
4
-33

query I rowsort
SELECT + 39 - + - 25 * 17
----
464

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT ALL - 80 * - - MIN( - - 60 ) - - + 26
----
-4774

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL - 80 * - - MIN ( - - 60 ) - - + 26
----
-4774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6915
SELECT - COUNT( * ) + - + CAST( NULL AS SIGNED ) / - + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6915
SELECT - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) / - + 43
----
NULL

query I rowsort
SELECT ALL 20 * 29 - + 59 AS col1
----
521

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT COALESCE ( 0, + COUNT( * ) + + - MAX( DISTINCT - + 49 ), + CASE + + NULLIF ( 34, - 61 ) WHEN + 55 * + COUNT( * ) - 9 + + 34 THEN NULL WHEN - 80 THEN NULL ELSE + COUNT( * ) + 32 - + ( 23 ) END )
----
0

skipif mysql # not compatible
query I rowsort label-6917
SELECT COALESCE ( 0, + COUNT ( * ) + + - MAX ( DISTINCT - + 49 ), + CASE + + NULLIF ( 34, - 61 ) WHEN + 55 * + COUNT ( * ) - 9 + + 34 THEN NULL WHEN - 80 THEN NULL ELSE + COUNT ( * ) + 32 - + ( 23 ) END )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6918
SELECT ALL + MAX( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL + MAX ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6919
SELECT + 21 * + - COALESCE ( + 91, + - 95 * 48, + 3 * + NULLIF ( + ( - + 68 ), CAST( NULL AS DECIMAL ) ) * - + 38 ), CASE - + 24 WHEN + 90 THEN - - 22 + 74 / + ( 47 + SUM( DISTINCT + CAST( - 34 AS SIGNED ) ) ) END * ( + 72 ) AS col2
----
-1911
NULL

skipif mysql # not compatible
query II rowsort label-6919
SELECT + 21 * + - COALESCE ( + 91, + - 95 * 48, + 3 * + NULLIF ( + ( - + 68 ), CAST ( NULL AS REAL ) ) * - + 38 ), CASE - + 24 WHEN + 90 THEN - - 22 + 74 / + ( 47 + SUM ( DISTINCT + CAST ( - 34 AS INTEGER ) ) ) END * ( + 72 ) AS col2
----
-1911
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT + COUNT( * ) + - 26 * - 73 col2
----
1899

skipif mysql # not compatible
query I rowsort label-6920
SELECT + COUNT ( * ) + - 26 * - 73 col2
----
1899

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT - MIN( 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-6921
SELECT - MIN ( 59 ) AS col0
----
-59

query I rowsort
SELECT - - 77 - 96
----
-19

query I rowsort
SELECT ALL - 72 * + + 81
----
-5832

query I rowsort
SELECT - - 56 col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT + COUNT( * ) * + 46 * + 51 + - ( - 45 ) col0
----
2391

skipif mysql # not compatible
query I rowsort label-6925
SELECT + COUNT ( * ) * + 46 * + 51 + - ( - 45 ) col0
----
2391

onlyif mysql # DIV for integer division: 
query I rowsort label-6926
SELECT + 66 + + - 90 DIV - NULLIF ( + 36, - + 12 + + ( 21 ) - - 7 )
----
68

skipif mysql # not compatible
query I rowsort label-6926
SELECT + 66 + + - 90 / - NULLIF ( + 36, - + 12 + + ( 21 ) - - 7 )
----
68

query II rowsort
SELECT ALL + 89, 18 AS col0
----
89
18

onlyif mysql # aggregate syntax: 
query II rowsort label-6928
SELECT - + 33 col0, 60 * MIN( ALL - 8 )
----
-33
-480

skipif mysql # not compatible
query II rowsort label-6928
SELECT - + 33 col0, 60 * MIN ( ALL - 8 )
----
-33
-480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6929
SELECT ALL - COALESCE ( 58, + + 21, + 66 * - 38 - - CASE + ( + + 63 ) WHEN - + 3 THEN 39 ELSE NULL END + - 4 * + CASE + - 9 WHEN + 75 + 65 + - - 88 * 8 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN 71 ELSE NULL END ) * 34
----
-1972

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL - COALESCE ( 58, + + 21, + 66 * - 38 - - CASE + ( + + 63 ) WHEN - + 3 THEN 39 ELSE NULL END + - 4 * + CASE + - 9 WHEN + 75 + 65 + - - 88 * 8 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN 71 ELSE NULL END ) * 34
----
-1972

query I rowsort
SELECT DISTINCT - + 66 + + 8 + - 82
----
-140

query II rowsort
SELECT ALL 99 AS col0, + 1
----
99
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6932
SELECT ALL - COALESCE ( + CASE - + 18 WHEN 61 THEN NULL WHEN - - COUNT( * ) THEN 72 END, 53 + - + ( - + 6 ) + 41 DIV - + 81 ) + - CAST( - + 81 AS SIGNED ) * - 31 AS col1
----
-2570

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL - COALESCE ( + CASE - + 18 WHEN 61 THEN NULL WHEN - - COUNT ( * ) THEN 72 END, 53 + - + ( - + 6 ) + 41 / - + 81 ) + - CAST ( - + 81 AS INTEGER ) * - 31 AS col1
----
-2570

query I rowsort
SELECT ALL 46 + + - CASE + 80 WHEN ( 44 ) THEN NULL WHEN 92 THEN + 48 + - 9 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6934
SELECT + 24 DIV + ( + 96 )
----
0

skipif mysql # not compatible
query I rowsort label-6934
SELECT + 24 / + ( + 96 )
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( - 21, 67 ) + + 78
----
57

query II rowsort
SELECT + 33, - 4 AS col2
----
33
-4

query I rowsort
SELECT 35 + - 47 * 44 * COALESCE ( + - 48, + 58 + 12 ) AS col0
----
99299

query I rowsort
SELECT - + ( - 83 )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-6939
SELECT - 91 + - 25 DIV 66 + 11
----
-80

skipif mysql # not compatible
query I rowsort label-6939
SELECT - 91 + - 25 / 66 + 11
----
-80

query I rowsort
SELECT - 4 + 83
----
79

query I rowsort
SELECT ALL ( - + 89 ) - - 31
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT ALL 0 * - COUNT( * ) * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL 0 * - COUNT ( * ) * COUNT ( * )
----
0

query I rowsort
SELECT ALL - 25 * 5
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT 31 - - MAX( ALL 61 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-6944
SELECT 31 - - MAX ( ALL 61 ) AS col1
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6945
SELECT ALL ( CAST( ( - 26 ) AS SIGNED ) ) - + - 67 + + 21 + - - 85 AS col0
----
147

skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL ( CAST ( ( - 26 ) AS INTEGER ) ) - + - 67 + + 21 + - - 85 AS col0
----
147

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6946
SELECT 21 + + 28 * + + 36 + COALESCE ( COUNT( * ), - CASE - 48 WHEN - 94 THEN - - 55 * 85 * 34 WHEN + 23 / 79 + - 12 + AVG ( - 15 ) THEN NULL END ) * COUNT( * ) + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6946
SELECT 21 + + 28 * + + 36 + COALESCE ( COUNT ( * ), - CASE - 48 WHEN - 94 THEN - - 55 * 85 * 34 WHEN + 23 / 79 + - 12 + AVG ( - 15 ) THEN NULL END ) * COUNT ( * ) + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6947
SELECT COUNT( CAST( NULL AS DECIMAL ) ) * + 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6947
SELECT COUNT ( CAST ( NULL AS REAL ) ) * + 62 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6948
SELECT 30 + - + 29 * - + 28 + - 6 + - 49 AS col2, 48 DIV - 51 * - 96 col0
----
787
0

skipif mysql # not compatible
query II rowsort label-6948
SELECT 30 + - + 29 * - + 28 + - 6 + - 49 AS col2, 48 / - 51 * - 96 col0
----
787
0

query I rowsort
SELECT - 16 * + ( 22 ) + + - 31 AS col0
----
-383

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT COUNT( * ) * - 40 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-6950
SELECT COUNT ( * ) * - 40 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT 49 + + 52 + - + COUNT( * ) + + 87 * COUNT( * ) * - 48
----
-4076

skipif mysql # not compatible
query I rowsort label-6951
SELECT 49 + + 52 + - + COUNT ( * ) + + 87 * COUNT ( * ) * - 48
----
-4076

onlyif mysql # aggregate syntax: 
query II rowsort label-6952
SELECT DISTINCT 86 * 15 * + COUNT( * ) AS col2, + 71 AS col1
----
1290
71

skipif mysql # not compatible
query II rowsort label-6952
SELECT DISTINCT 86 * 15 * + COUNT ( * ) AS col2, + 71 AS col1
----
1290
71

query I rowsort
SELECT ( 55 ) + + + 41 + + 43 * + 25 - + 66
----
1105

query II rowsort
SELECT DISTINCT 33 * 98 AS col1, 41
----
3234
41

onlyif mysql # aggregate syntax: 
query III rowsort label-6955
SELECT ALL 76 + 36 AS col1, MIN( 20 ) + - 72 AS col2, 23 / ( 91 ) - + + CASE + + NULLIF ( - + MAX( ALL + + 84 ), + + 57 ) WHEN + SUM( DISTINCT + 58 ) THEN NULL WHEN - 64 + + 57 THEN 86 END + ( - NULLIF ( + 78, 85 ) ) * - 44 * 48 AS col0
----
112
-52
NULL

skipif mysql # not compatible
query III rowsort label-6955
SELECT ALL 76 + 36 AS col1, MIN ( 20 ) + - 72 AS col2, 23 / ( 91 ) - + + CASE + + NULLIF ( - + MAX ( ALL + + 84 ), + + 57 ) WHEN + SUM ( DISTINCT + 58 ) THEN NULL WHEN - 64 + + 57 THEN 86 END + ( - NULLIF ( + 78, 85 ) ) * - 44 * 48 AS col0
----
112
-52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT COUNT( * ) + - 71 - + 50 + - 30 * - - 33 + - - 0 AS col1
----
-1110

skipif mysql # not compatible
query I rowsort label-6956
SELECT COUNT ( * ) + - 71 - + 50 + - 30 * - - 33 + - - 0 AS col1
----
-1110

query I rowsort
SELECT 63 * + 30
----
1890

query I rowsort
SELECT ALL - + 63 + + - 37
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-6959
SELECT ALL MAX( ALL - 37 ) AS col0, COUNT( * ) AS col0
----
-37
1

skipif mysql # not compatible
query II rowsort label-6959
SELECT ALL MAX ( ALL - 37 ) AS col0, COUNT ( * ) AS col0
----
-37
1

query I rowsort
SELECT + 30 - + - 1 * + 41 AS col2
----
71

query I rowsort
SELECT - NULLIF ( + 53, - 87 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT 70 + 41 + MAX( DISTINCT 8 ) * - - 74 * + - 61 * ( - 27 ) * CASE + + 2 WHEN - 42 THEN NULL WHEN - + NULLIF ( + - 53, + 64 * 44 ) * + + 71 THEN + COUNT( * ) / - ( 34 ) END * - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6962
SELECT 70 + 41 + MAX ( DISTINCT 8 ) * - - 74 * + - 61 * ( - 27 ) * CASE + + 2 WHEN - 42 THEN NULL WHEN - + NULLIF ( + - 53, + 64 * 44 ) * + + 71 THEN + COUNT ( * ) / - ( 34 ) END * - 98 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6963
SELECT DISTINCT - - NULLIF ( - - 68, + + 71 ) + - CAST( + + 97 AS SIGNED ) + 36 - 89 * - 43 AS col2
----
3834

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT - - NULLIF ( - - 68, + + 71 ) + - CAST ( + + 97 AS INTEGER ) + 36 - 89 * - 43 AS col2
----
3834

onlyif mysql # DIV for integer division: 
query I rowsort label-6964
SELECT ALL 49 DIV - 89 + + NULLIF ( - - 97, 25 )
----
97

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL 49 / - 89 + + NULLIF ( - - 97, 25 )
----
97

query I rowsort
SELECT DISTINCT + 16 - 29
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-6966
SELECT 25 * ( 26 ) AS col1, 89 + ( - MIN( DISTINCT - 73 ) ) + ( + + 70 ) AS col1
----
650
232

skipif mysql # not compatible
query II rowsort label-6966
SELECT 25 * ( 26 ) AS col1, 89 + ( - MIN ( DISTINCT - 73 ) ) + ( + + 70 ) AS col1
----
650
232

query I rowsort
SELECT 31 + + - 40
----
-9

query I rowsort
SELECT 41 + + 49 AS col0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6969
SELECT ALL - 21 - CAST( - 27 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL - 21 - CAST ( - 27 AS INTEGER )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT ALL SUM( DISTINCT 49 )
----
49

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL SUM ( DISTINCT 49 )
----
49

query I rowsort
SELECT 15 * - 4 * CASE 25 WHEN + 10 THEN - ( - + 49 ) END * 27 + - + 98
----
NULL

query II rowsort
SELECT + 44, ( - 67 ) AS col0
----
44
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT ALL - SUM( + 51 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL - SUM ( + 51 ) AS col0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6974
SELECT ALL + 67 DIV 50 * 90
----
90

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL + 67 / 50 * 90
----
90

query II rowsort
SELECT ALL - 11 AS col0, + 61 AS col2
----
-11
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6976
SELECT DISTINCT - 82 AS col0, 34 * + CASE + 22 WHEN - 26 + - + COUNT( * ) THEN + 25 WHEN - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + + 22 THEN NULL ELSE 6 * + + 37 END + 1 * 38 * 57
----
-82
9714

skipif mysql # not compatible
query II rowsort label-6976
SELECT DISTINCT - 82 AS col0, 34 * + CASE + 22 WHEN - 26 + - + COUNT ( * ) THEN + 25 WHEN - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + 22 THEN NULL ELSE 6 * + + 37 END + 1 * 38 * 57
----
-82
9714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6977
SELECT MIN( ALL + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6977
SELECT MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6978
SELECT + 8 col1, + COUNT( * ) DIV 63 AS col1
----
8
0

skipif mysql # not compatible
query II rowsort label-6978
SELECT + 8 col1, + COUNT ( * ) / 63 AS col1
----
8
0

query I rowsort
SELECT 39 + + + 10 col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT SUM( DISTINCT 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-6980
SELECT SUM ( DISTINCT 99 ) AS col0
----
99

query I rowsort
SELECT ALL 92 * - + 41
----
-3772

query II rowsort
SELECT + 19, + 62 AS col2
----
19
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT MAX( DISTINCT + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-6983
SELECT MAX ( DISTINCT + 71 )
----
71

query II rowsort
SELECT + 22 AS col0, + 8 AS col2
----
22
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT MAX( DISTINCT + 26 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6985
SELECT MAX ( DISTINCT + 26 ) AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6986
SELECT ALL CAST( - - 42 AS SIGNED ) * - 39 + - ( + 12 ) + CAST( + NULLIF ( + - COUNT( * ), - 16 ) AS SIGNED ) + + 52
----
-1599

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL CAST ( - - 42 AS INTEGER ) * - 39 + - ( + 12 ) + CAST ( + NULLIF ( + - COUNT ( * ), - 16 ) AS INTEGER ) + + 52
----
-1599

query I rowsort
SELECT ALL 24 * + + 57 + 90
----
1458

query II rowsort
SELECT + 15 * - + 35 - ( + 38 ) * 39 * - 86, 64 AS col2
----
126927
64

query I rowsort
SELECT ALL + + 7 * + 4 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT + COUNT( * ) + - 1
----
0

skipif mysql # not compatible
query I rowsort label-6990
SELECT + COUNT ( * ) + - 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT ALL + + CASE + 35 WHEN - 75 THEN + - 59 WHEN + 45 * + 97 / - ( - COUNT( DISTINCT + NULLIF ( + - 11, 62 ) ) ) - + 74 + 99 THEN + - 68 WHEN ( + COUNT( * ) ) THEN - - 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL + + CASE + 35 WHEN - 75 THEN + - 59 WHEN + 45 * + 97 / - ( - COUNT ( DISTINCT + NULLIF ( + - 11, 62 ) ) ) - + 74 + 99 THEN + - 68 WHEN ( + COUNT ( * ) ) THEN - - 61 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT ALL + 53 + COUNT( ALL + 27 ) * - 93 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL + 53 + COUNT ( ALL + 27 ) * - 93 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-6993
SELECT - COALESCE ( COUNT( * ), + CASE + 66 WHEN - 76 THEN + + ( - 89 ) END + 41 ) AS col1, + 43 + 45
----
-1
88

skipif mysql # not compatible
query II rowsort label-6993
SELECT - COALESCE ( COUNT ( * ), + CASE + 66 WHEN - 76 THEN + + ( - 89 ) END + 41 ) AS col1, + 43 + 45
----
-1
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6994
SELECT ALL 10 + + - COUNT( * ) DIV 2
----
10

skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL 10 + + - COUNT ( * ) / 2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6995
SELECT - + 14 + - COUNT( * ) + + ( 91 ) * - 83 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6995
SELECT - + 14 + - COUNT ( * ) + + ( 91 ) * - 83 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6996
SELECT - 28 * + 63 DIV 61 * - 40 - - - 75 + COUNT( * ) * COUNT( * ) * 69
----
1114

skipif mysql # not compatible
query I rowsort label-6996
SELECT - 28 * + 63 / 61 * - 40 - - - 75 + COUNT ( * ) * COUNT ( * ) * 69
----
1114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6997
SELECT - 95 AS col0, COUNT( * ) * - - 5 + + 98 DIV 50 * + 50 AS col2
----
-95
55

skipif mysql # not compatible
query II rowsort label-6997
SELECT - 95 AS col0, COUNT ( * ) * - - 5 + + 98 / 50 * + 50 AS col2
----
-95
55

query I rowsort
SELECT + 11 + - 87
----
-76

query II rowsort
SELECT ALL - ( + NULLIF ( + - ( - 19 ), + 92 ) ) * - 15 AS col0, + 45
----
285
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT ALL SUM( ALL 80 ) - - 65 * ( + COALESCE ( + - ( + 14 ), - - 29 + + 88 ) )
----
-830

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL SUM ( ALL 80 ) - - 65 * ( + COALESCE ( + - ( + 14 ), - - 29 + + 88 ) )
----
-830

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7001
SELECT ALL COALESCE ( 95, + SUM( ALL + - 48 ) * + 57, - - COALESCE ( - 71, + + 57, - + ( CASE + 73 WHEN - 26 + + NULLIF ( - + 34, + 26 ) * 46 THEN NULL ELSE 94 END ) DIV + 85, - ( COUNT( * ) ) ), SUM( DISTINCT - 72 ) * - 57 ) * COALESCE ( COALESCE ( - COUNT( * ), + 58 ), - 95 * NULLIF ( 82 * 97, + 5 + + 87 ), + 89 DIV - 12 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL COALESCE ( 95, + SUM ( ALL + - 48 ) * + 57, - - COALESCE ( - 71, + + 57, - + ( CASE + 73 WHEN - 26 + + NULLIF ( - + 34, + 26 ) * 46 THEN NULL ELSE 94 END ) / + 85, - ( COUNT ( * ) ) ), SUM ( DISTINCT - 72 ) * - 57 ) * COALESCE ( COALESCE ( - COUNT ( * ), + 58 ), - 95 * NULLIF ( 82 * 97, + 5 + + 87 ), + 89 / - 12 ) AS col2
----
-95

query I rowsort
SELECT DISTINCT ( - 11 ) * + + 54 - + 93 AS col2
----
-687

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7003
SELECT + CAST( + 67 AS SIGNED ) + 38 AS col0, + 12 * - 16 * + 87 DIV - COUNT( * ) AS col2
----
105
16704

skipif mysql # not compatible
query II rowsort label-7003
SELECT + CAST ( + 67 AS INTEGER ) + 38 AS col0, + 12 * - 16 * + 87 / - COUNT ( * ) AS col2
----
105
16704

query I rowsort
SELECT ALL ( + 92 ) AS col1
----
92

query II rowsort
SELECT 84 AS col0, - 39
----
84
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-7006
SELECT ALL 2, MAX( DISTINCT - 93 ) AS col2
----
2
-93

skipif mysql # not compatible
query II rowsort label-7006
SELECT ALL 2, MAX ( DISTINCT - 93 ) AS col2
----
2
-93

query I rowsort
SELECT + - 38 * - CASE WHEN ( 6 ) IS NOT NULL THEN 8 END
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT - - 32 * + - 26 - COUNT( * ) + + 93 + COUNT( * ) - + + 96 * - - NULLIF ( + + 6, - 47 ) * 36 AS col1
----
-21475

skipif mysql # not compatible
query I rowsort label-7008
SELECT - - 32 * + - 26 - COUNT ( * ) + + 93 + COUNT ( * ) - + + 96 * - - NULLIF ( + + 6, - 47 ) * 36 AS col1
----
-21475

query I rowsort
SELECT + 94 + + 95 AS col1
----
189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7010
SELECT - 59 + COUNT( + 12 ) + - - 6 + - + 11 DIV + 84 + + 8 - 14
----
-58

skipif mysql # not compatible
query I rowsort label-7010
SELECT - 59 + COUNT ( + 12 ) + - - 6 + - + 11 / + 84 + + 8 - 14
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT + 88 + - - CASE + 98 WHEN + CASE AVG ( - - 32 ) WHEN - 53 THEN - 88 * ( - 91 ) + COUNT( * ) END + - - 38 + - 83 THEN - 9 + 19 WHEN - 21 THEN NULL END * + 61 + + + 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7011
SELECT + 88 + - - CASE + 98 WHEN + CASE AVG ( - - 32 ) WHEN - 53 THEN - 88 * ( - 91 ) + COUNT ( * ) END + - - 38 + - 83 THEN - 9 + 19 WHEN - 21 THEN NULL END * + 61 + + + 5 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT + 46 * 80 DIV + 7 AS col0
----
525

skipif mysql # not compatible
query I rowsort label-7012
SELECT + 46 * 80 / + 7 AS col0
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT - CASE - + COUNT( * ) WHEN + SUM( - 37 ) / + + SUM( ALL 87 ) + + 13 THEN 72 * 1 * - NULLIF ( 33, COUNT( 92 ) * 58 * + + COUNT( * ) / - - 52 ) END * + + COUNT( * ) + - + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-7013
SELECT - CASE - + COUNT ( * ) WHEN + SUM ( - 37 ) / + + SUM ( ALL 87 ) + + 13 THEN 72 * 1 * - NULLIF ( 33, COUNT ( 92 ) * 58 * + + COUNT ( * ) / - - 52 ) END * + + COUNT ( * ) + - + 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT + 64 + - - 35 + + COUNT( * ) col2
----
100

skipif mysql # not compatible
query I rowsort label-7014
SELECT + 64 + - - 35 + + COUNT ( * ) col2
----
100

query I rowsort
SELECT ALL NULLIF ( - 53, + - 27 + 20 )
----
-53

query I rowsort
SELECT ALL + 35 * + 10
----
350

query II rowsort
SELECT - COALESCE ( + + 98, + - 65 + - 97 * + 82 + + 0, - 38 ) + + + 12 + + + 37 AS col2, + 50 * + + 46 AS col1
----
-49
2300

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7018
SELECT ALL CAST( NULL AS DECIMAL ) * - - COUNT( * ) * - 38 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7018
SELECT ALL CAST ( NULL AS REAL ) * - - COUNT ( * ) * - 38 col0
----
NULL

query II rowsort
SELECT ( - 26 ) AS col2, 60
----
-26
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7020
SELECT - 8 * - + CASE CAST( + 85 AS SIGNED ) WHEN - 5 THEN - - COALESCE ( + CAST( NULL AS DECIMAL ), 53 * + 31 ) - - 5 WHEN 42 THEN SUM( 96 ) * 11 WHEN + + 84 + 24 * - COUNT( * ) THEN 94 END + + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7020
SELECT - 8 * - + CASE CAST ( + 85 AS INTEGER ) WHEN - 5 THEN - - COALESCE ( + CAST ( NULL AS REAL ), 53 * + 31 ) - - 5 WHEN 42 THEN SUM ( 96 ) * 11 WHEN + + 84 + 24 * - COUNT ( * ) THEN 94 END + + 65 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT - COUNT( * ) + + + 37 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-7021
SELECT - COUNT ( * ) + + + 37 AS col1
----
36

query I rowsort
SELECT DISTINCT + COALESCE ( + + NULLIF ( + 99, - 40 * - 44 - - 79 ), 35 ) AS col1
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7023
SELECT - MAX( CAST( + + 56 AS SIGNED ) ) * + + 23 - + + 56 + + + COUNT( * ) - + 72 * - - COUNT( * ) col0
----
-1415

skipif mysql # not compatible
query I rowsort label-7023
SELECT - MAX ( CAST ( + + 56 AS INTEGER ) ) * + + 23 - + + 56 + + + COUNT ( * ) - + 72 * - - COUNT ( * ) col0
----
-1415

onlyif mysql # DIV for integer division: 
query I rowsort label-7024
SELECT + 39 + + COALESCE ( - 76, 63 DIV - 19 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-7024
SELECT + 39 + + COALESCE ( - 76, 63 / - 19 ) AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7025
SELECT DISTINCT + NULLIF ( + 67, 73 / - 36 + - - 52 + + AVG ( NULLIF ( - CAST( NULL AS SIGNED ), + CAST( - 23 AS DECIMAL ) ) ) - + + COUNT( * ) - - 34 + + 80 )
----
67

skipif mysql # not compatible
query I rowsort label-7025
SELECT DISTINCT + NULLIF ( + 67, 73 / - 36 + - - 52 + + AVG ( NULLIF ( - CAST ( NULL AS INTEGER ), + CAST ( - 23 AS REAL ) ) ) - + + COUNT ( * ) - - 34 + + 80 )
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-7026
SELECT DISTINCT 13 * + COUNT( * ) + + + 85 - - 32, + 54 * 80 * - 67 AS col0
----
130
-289440

skipif mysql # not compatible
query II rowsort label-7026
SELECT DISTINCT 13 * + COUNT ( * ) + + + 85 - - 32, + 54 * 80 * - 67 AS col0
----
130
-289440

query I rowsort
SELECT ALL 92 * + - 39 + - + 48 AS col2
----
-3636

query I rowsort
SELECT - 99 * 54
----
-5346

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT + 68 + + ( - 94 ) + + 29 * 2 * COUNT( * ) + - + 31 / + - CASE 72 WHEN SUM( 19 ) + + NULLIF ( + AVG ( ALL + + 64 ), + 81 ) THEN + 32 END + - ( - 77 ) - - 20 * 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7029
SELECT + 68 + + ( - 94 ) + + 29 * 2 * COUNT ( * ) + - + 31 / + - CASE 72 WHEN SUM ( 19 ) + + NULLIF ( + AVG ( ALL + + 64 ), + 81 ) THEN + 32 END + - ( - 77 ) - - 20 * 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT + SUM( 6 )
----
6

skipif mysql # not compatible
query I rowsort label-7030
SELECT + SUM ( 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT - NULLIF ( - 56, - + 80 ) * + SUM( DISTINCT - 84 ) + 99 AS col2
----
-4605

skipif mysql # not compatible
query I rowsort label-7031
SELECT - NULLIF ( - 56, - + 80 ) * + SUM ( DISTINCT - 84 ) + 99 AS col2
----
-4605

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT - + 32 * + 72 + + SUM( + 69 ) - - 15 + - 7 * + 27 AS col0
----
-2409

skipif mysql # not compatible
query I rowsort label-7032
SELECT - + 32 * + 72 + + SUM ( + 69 ) - - 15 + - 7 * + 27 AS col0
----
-2409

query I rowsort
SELECT - + 77 * - - 92 col2
----
-7084

onlyif mysql # aggregate syntax: 
query II rowsort label-7034
SELECT + - NULLIF ( SUM( 6 ), + 61 ) AS col0, 57 * ( 17 ) + + 0
----
-6
969

skipif mysql # not compatible
query II rowsort label-7034
SELECT + - NULLIF ( SUM ( 6 ), + 61 ) AS col0, 57 * ( 17 ) + + 0
----
-6
969

query II rowsort
SELECT DISTINCT - 38 * + 92 AS col0, 57
----
-3496
57

onlyif mysql # aggregate syntax: 
query II rowsort label-7036
SELECT ALL ( - 27 ), - COALESCE ( - 12, COUNT( ALL + 82 ) - + - 58 ) + 32 AS col2
----
-27
44

skipif mysql # not compatible
query II rowsort label-7036
SELECT ALL ( - 27 ), - COALESCE ( - 12, COUNT ( ALL + 82 ) - + - 58 ) + 32 AS col2
----
-27
44

query I rowsort
SELECT + ( + 78 ) * - 75 + - 16 AS col1
----
-5866

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7038
SELECT - AVG ( + CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7038
SELECT - AVG ( + CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT - 28 - - ( 66 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7040
SELECT + ( - + COALESCE ( + CASE + 29 WHEN - 41 * + 39 THEN NULL ELSE - 54 END, + 39 ) ) / + CASE WHEN ( - CAST( NULL AS SIGNED ) BETWEEN NULL AND - 12 - 17 ) THEN COUNT( * ) * - COUNT( * ) + - - 76 END + + 79 - COUNT( * ) * - 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7040
SELECT + ( - + COALESCE ( + CASE + 29 WHEN - 41 * + 39 THEN NULL ELSE - 54 END, + 39 ) ) / + CASE WHEN ( - CAST ( NULL AS INTEGER ) BETWEEN NULL AND - 12 - 17 ) THEN COUNT ( * ) * - COUNT ( * ) + - - 76 END + + 79 - COUNT ( * ) * - 28 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT + - 45 + - COUNT( ALL + 21 ) * + 74
----
-119

skipif mysql # not compatible
query I rowsort label-7041
SELECT + - 45 + - COUNT ( ALL + 21 ) * + 74
----
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-7042
SELECT + 53 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-7042
SELECT + 53 / + 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT + COUNT( * ) - + - COUNT( DISTINCT 63 )
----
2

skipif mysql # not compatible
query I rowsort label-7043
SELECT + COUNT ( * ) - + - COUNT ( DISTINCT 63 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7044
SELECT DISTINCT 87 * + CAST( - 90 AS SIGNED ) AS col1, 9 - 56 + - + 43 AS col1
----
-7830
-90

skipif mysql # not compatible
query II rowsort label-7044
SELECT DISTINCT 87 * + CAST ( - 90 AS INTEGER ) AS col1, 9 - 56 + - + 43 AS col1
----
-7830
-90

query I rowsort
SELECT ALL ( - + 67 ) * + ( + + 18 )
----
-1206

onlyif mysql # DIV for integer division: 
query I rowsort label-7046
SELECT + 17 DIV - 29
----
0

skipif mysql # not compatible
query I rowsort label-7046
SELECT + 17 / - 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT ALL COUNT( * ) + - ( CASE - 42 WHEN + 5 * + - 83 THEN + COUNT( * ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL COUNT ( * ) + - ( CASE - 42 WHEN + 5 * + - 83 THEN + COUNT ( * ) ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7048
SELECT DISTINCT CAST( + + 88 AS SIGNED ) * COALESCE ( + - 74, 69 * - ( 50 ) + - 88 )
----
-6512

skipif mysql # not compatible
query I rowsort label-7048
SELECT DISTINCT CAST ( + + 88 AS INTEGER ) * COALESCE ( + - 74, 69 * - ( 50 ) + - 88 )
----
-6512

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT + COUNT( * ) * 21 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-7049
SELECT + COUNT ( * ) * 21 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT - ( + NULLIF ( - CASE + - 37 WHEN + 44 * 59 * 90 THEN + + 75 + + 53 - COUNT( * ) + 73 + - + 31 * - - 68 * + ( - - 76 ) WHEN + 91 THEN - - 51 END, + - 40 * - + 3 * + 11 - - 67 / - 32 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7050
SELECT - ( + NULLIF ( - CASE + - 37 WHEN + 44 * 59 * 90 THEN + + 75 + + 53 - COUNT ( * ) + 73 + - + 31 * - - 68 * + ( - - 76 ) WHEN + 91 THEN - - 51 END, + - 40 * - + 3 * + 11 - - 67 / - 32 ) ) AS col2
----
NULL

query II rowsort
SELECT 75 AS col1, + 64 AS col2
----
75
64

query I rowsort
SELECT DISTINCT 10 + + 18
----
28

query I rowsort
SELECT ALL 69 + - 69
----
0

query II rowsort
SELECT + 61 AS col1, - 15 AS col0
----
61
-15

query I rowsort
SELECT DISTINCT - 14 + 73 AS col2
----
59

query I rowsort
SELECT DISTINCT 74 + + 81 * 22 AS col2
----
1856

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT ALL 33 + + + SUM( ALL 65 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL 33 + + + SUM ( ALL 65 ) AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7058
SELECT ALL 9 + NULLIF ( - SUM( ALL - 36 ), + - CAST( - 42 AS SIGNED ) )
----
45

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL 9 + NULLIF ( - SUM ( ALL - 36 ), + - CAST ( - 42 AS INTEGER ) )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7059
SELECT DISTINCT - 94 + MAX( + - 23 ) + - 53 DIV - + 37 AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-7059
SELECT DISTINCT - 94 + MAX ( + - 23 ) + - 53 / - + 37 AS col2
----
-116

query I rowsort
SELECT - 83 + 36 * 91 AS col1
----
3193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7061
SELECT ALL - + 40 * + COUNT( * ) DIV + 42 col2
----
0

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL - + 40 * + COUNT ( * ) / + 42 col2
----
0

query I rowsort
SELECT - NULLIF ( - 32, - - 48 ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT CASE + 3 WHEN - 42 THEN - + 38 + + 58 WHEN + - 95 THEN - - MIN( ALL + 27 ) - 2 ELSE - 60 END
----
-60

skipif mysql # not compatible
query I rowsort label-7063
SELECT CASE + 3 WHEN - 42 THEN - + 38 + + 58 WHEN + - 95 THEN - - MIN ( ALL + 27 ) - 2 ELSE - 60 END
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT + 81 * 94 + COUNT( * ) * MAX( ALL - 60 ) - - MAX( DISTINCT + 11 )
----
7565

skipif mysql # not compatible
query I rowsort label-7064
SELECT + 81 * 94 + COUNT ( * ) * MAX ( ALL - 60 ) - - MAX ( DISTINCT + 11 )
----
7565

onlyif mysql # aggregate syntax: 
query II rowsort label-7065
SELECT 59 AS col0, - 51 + - 13 + COUNT( ALL + 86 ) * - SUM( + 60 ) col1
----
59
-124

skipif mysql # not compatible
query II rowsort label-7065
SELECT 59 AS col0, - 51 + - 13 + COUNT ( ALL + 86 ) * - SUM ( + 60 ) col1
----
59
-124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7066
SELECT + 89 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7066
SELECT + 89 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT ALL - - CASE 58 WHEN - 65 * 76 THEN NULL WHEN - + 40 THEN + - COUNT( DISTINCT 78 ) ELSE + 71 END
----
71

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL - - CASE 58 WHEN - 65 * 76 THEN NULL WHEN - + 40 THEN + - COUNT ( DISTINCT 78 ) ELSE + 71 END
----
71

query I rowsort
SELECT 17 + - - 92
----
109

query II rowsort
SELECT ALL - 7, 60 col1
----
-7
60

query I rowsort
SELECT 97 + - 61
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7071
SELECT - CAST( COUNT( * ) AS SIGNED ) * 61 - + 88
----
-149

skipif mysql # not compatible
query I rowsort label-7071
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * 61 - + 88
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT ALL - MIN( DISTINCT - - 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL - MIN ( DISTINCT - - 94 ) AS col1
----
-94

query I rowsort
SELECT 74 * - 28 * - ( - 20 ) AS col1
----
-41440

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT + SUM( - 45 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-7074
SELECT + SUM ( - 45 ) AS col2
----
-45

query I rowsort
SELECT 8 * - 46 + - 99 AS col0
----
-467

query I rowsort
SELECT 40 * + 36 * - + ( 18 ) * - 36 col2
----
933120

query II rowsort
SELECT 52 AS col1, 62 + - + 52 * + 42 AS col2
----
52
-2122

query II rowsort
SELECT 60, - 81 + - 63 AS col2
----
60
-144

query I rowsort
SELECT 30 + + 67 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT COUNT( * ) + - 52
----
-51

skipif mysql # not compatible
query I rowsort label-7080
SELECT COUNT ( * ) + - 52
----
-51

query II rowsort
SELECT 47, 71 + 8 + 97 * 57 AS col0
----
47
5608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7082
SELECT SUM( - 86 ) DIV - - 63 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7082
SELECT SUM ( - 86 ) / - - 63 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT 55 + + - 81 * NULLIF ( + COUNT( * ), + - COALESCE ( - 28, - 2, 89 ) - - 70 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-7083
SELECT 55 + + - 81 * NULLIF ( + COUNT ( * ), + - COALESCE ( - 28, - 2, 89 ) - - 70 ) AS col2
----
-26

query I rowsort
SELECT DISTINCT 62 * 93 AS col0
----
5766

query I rowsort
SELECT ALL 33 + - 78
----
-45

query I rowsort
SELECT DISTINCT 92 * 23 * 14
----
29624

query I rowsort
SELECT 84 + 68 AS col1
----
152

query I rowsort
SELECT ALL 15 - - 10 + 64 + 93 * - 78 AS col0
----
-7165

query I rowsort
SELECT 90 + + ( - + 15 )
----
75

query I rowsort
SELECT DISTINCT 27 * + ( + 82 )
----
2214

query II rowsort
SELECT ALL - 29 AS col0, CASE + 8 WHEN - + 25 THEN - 15 ELSE NULL END * - - 28 AS col0
----
-29
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7092
SELECT - 90 * 3, - 82 DIV - 82 AS col0
----
-270
1

skipif mysql # not compatible
query II rowsort label-7092
SELECT - 90 * 3, - 82 / - 82 AS col0
----
-270
1

query II rowsort
SELECT - 30 AS col1, - 72
----
-30
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7094
SELECT - COUNT( * ) DIV - COUNT( * ) - + 5 + 21 + + 46 * - COUNT( - - 6 )
----
-29

skipif mysql # not compatible
query I rowsort label-7094
SELECT - COUNT ( * ) / - COUNT ( * ) - + 5 + 21 + + 46 * - COUNT ( - - 6 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT DISTINCT - + COALESCE ( COUNT( * ), 52 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT - + COALESCE ( COUNT ( * ), 52 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7096
SELECT ALL - 42 AS col1, + 43 + - MIN( DISTINCT - 19 ) + + 11 * + 68 * - - MIN( + - 10 ) AS col1
----
-42
-7418

skipif mysql # not compatible
query II rowsort label-7096
SELECT ALL - 42 AS col1, + 43 + - MIN ( DISTINCT - 19 ) + + 11 * + 68 * - - MIN ( + - 10 ) AS col1
----
-42
-7418

query II rowsort
SELECT + 64 AS col1, - ( + 60 ) + - + 96 * + - 54 AS col2
----
64
5124

query I rowsort
SELECT 32 * 34 * - 61 * + 40 AS col2
----
-2654720

query II rowsort
SELECT ALL - 19 AS col2, 56 * - 34 * + 46
----
-19
-87584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7100
SELECT MIN( ALL - 39 ) DIV + - 59 col0
----
0

skipif mysql # not compatible
query I rowsort label-7100
SELECT MIN ( ALL - 39 ) / + - 59 col0
----
0

query I rowsort
SELECT ALL + 89 * 50 * 25
----
111250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7102
SELECT ( - 59 ) + + COUNT( * ) * + 4 DIV + COUNT( * ) + + COUNT( * ) DIV + 67 + + + 98
----
43

skipif mysql # not compatible
query I rowsort label-7102
SELECT ( - 59 ) + + COUNT ( * ) * + 4 / + COUNT ( * ) + + COUNT ( * ) / + 67 + + + 98
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7103
SELECT CAST( NULL AS SIGNED ) + + AVG ( ALL - ( 63 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7103
SELECT CAST ( NULL AS INTEGER ) + + AVG ( ALL - ( 63 ) )
----
NULL

query II rowsort
SELECT DISTINCT - 68, - 43 AS col0
----
-68
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT - + 1 * COUNT( * ) + - ( - + 30 ) * + 92 AS col2
----
2759

skipif mysql # not compatible
query I rowsort label-7105
SELECT - + 1 * COUNT ( * ) + - ( - + 30 ) * + 92 AS col2
----
2759

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7106
SELECT 42 DIV + COUNT( + - 36 )
----
42

skipif mysql # not compatible
query I rowsort label-7106
SELECT 42 / + COUNT ( + - 36 )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7107
SELECT - ( COUNT( * ) ) DIV + 41
----
0

skipif mysql # not compatible
query I rowsort label-7107
SELECT - ( COUNT ( * ) ) / + 41
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7108
SELECT DISTINCT - 95 + + + COUNT( DISTINCT + NULLIF ( - ( 52 ), - 2 + 71 * COALESCE ( + 71, - 50 ) ) ) + - 33 + + + CASE - 6 WHEN + + 95 THEN 81 ELSE NULLIF ( ( - - 27 ), + + 58 * + COALESCE ( + 66, COUNT( * ) * 21 + + 97, ( 64 ) * 74 + MAX( - 20 ) ) + - 27 DIV + 5 ) * 27 END DIV 8 DIV + 45
----
-125

skipif mysql # not compatible
query I rowsort label-7108
SELECT DISTINCT - 95 + + + COUNT ( DISTINCT + NULLIF ( - ( 52 ), - 2 + 71 * COALESCE ( + 71, - 50 ) ) ) + - 33 + + + CASE - 6 WHEN + + 95 THEN 81 ELSE NULLIF ( ( - - 27 ), + + 58 * + COALESCE ( + 66, COUNT ( * ) * 21 + + 97, ( 64 ) * 74 + MAX ( - 20 ) ) + - 27 / + 5 ) * 27 END / 8 / + 45
----
-125

query I rowsort
SELECT DISTINCT + 37 + - 6
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7110
SELECT ALL + - ( - + 76 ) DIV - 3 + + 92 * + + 60 + + 22
----
5517

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL + - ( - + 76 ) / - 3 + + 92 * + + 60 + + 22
----
5517

query I rowsort
SELECT + 55 + 55 - + + 47
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT ALL - 31 + - - 75 + + SUM( DISTINCT + - 3 ) * - 73
----
263

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL - 31 + - - 75 + + SUM ( DISTINCT + - 3 ) * - 73
----
263

query I rowsort
SELECT ALL + 76 + + ( + 25 ) * + 34 - 74 + - 10 AS col1
----
842

onlyif mysql # aggregate syntax: 
query II rowsort label-7114
SELECT ALL COUNT( ALL - 58 ) AS col1, - 23
----
1
-23

skipif mysql # not compatible
query II rowsort label-7114
SELECT ALL COUNT ( ALL - 58 ) AS col1, - 23
----
1
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT DISTINCT - ( + 21 ) + + COUNT( * ) * + 34 col2
----
13

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT - ( + 21 ) + + COUNT ( * ) * + 34 col2
----
13

query I rowsort
SELECT 33 + - 52
----
-19

query I rowsort
SELECT ALL - 31 + + - 55
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7118
SELECT - SUM( - - 72 ) * - + 38 / - 43 * - CAST( NULL AS SIGNED ) AS col1, 85 * + COUNT( * ) * + 53 * + 85 + + ( - 49 )
----
NULL
382876

skipif mysql # not compatible
query II rowsort label-7118
SELECT - SUM ( - - 72 ) * - + 38 / - 43 * - CAST ( NULL AS INTEGER ) AS col1, 85 * + COUNT ( * ) * + 53 * + 85 + + ( - 49 )
----
NULL
382876

query I rowsort
SELECT ALL + 32 + - 34
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT ALL - 69 - + - 25 * + 83 * + ( - CASE + COUNT( * ) WHEN 31 * + - 1 THEN + COALESCE ( + + COUNT( * ), - + COUNT( + 12 ) ) END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL - 69 - + - 25 * + 83 * + ( - CASE + COUNT ( * ) WHEN 31 * + - 1 THEN + COALESCE ( + + COUNT ( * ), - + COUNT ( + 12 ) ) END ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7121
SELECT DISTINCT NULLIF ( + CAST( 11 AS SIGNED ), MAX( - 28 ) ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-7121
SELECT DISTINCT NULLIF ( + CAST ( 11 AS INTEGER ), MAX ( - 28 ) ) AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7122
SELECT + ( 5 ) * - - 81 + CAST( 31 AS SIGNED ) + - 33
----
403

skipif mysql # not compatible
query I rowsort label-7122
SELECT + ( 5 ) * - - 81 + CAST ( 31 AS INTEGER ) + - 33
----
403

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7123
SELECT DISTINCT CASE - COALESCE ( - - 9, - + COALESCE ( + 34, - 82 ) + + 54 ) WHEN - - NULLIF ( + - 57, - - 14 / CASE + 65 WHEN + + 34 THEN + - 66 ELSE 30 END / - 38 * - 92 + + CAST( - 65 AS DECIMAL ) * - 63 * - COUNT( * ) * 48 ) THEN NULL WHEN 21 THEN NULL WHEN + SUM( DISTINCT ( + 3 ) ) * COUNT( * ) THEN NULL ELSE - 99 END AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT CASE - COALESCE ( - - 9, - + COALESCE ( + 34, - 82 ) + + 54 ) WHEN - - NULLIF ( + - 57, - - 14 / CASE + 65 WHEN + + 34 THEN + - 66 ELSE 30 END / - 38 * - 92 + + CAST ( - 65 AS REAL ) * - 63 * - COUNT ( * ) * 48 ) THEN NULL WHEN 21 THEN NULL WHEN + SUM ( DISTINCT ( + 3 ) ) * COUNT ( * ) THEN NULL ELSE - 99 END AS col1
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7124
SELECT ALL SUM( 54 ) DIV - ( 25 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7124
SELECT ALL SUM ( 54 ) / - ( 25 ) AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7125
SELECT - 74 DIV 82 * - - 13 + + CAST( 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7125
SELECT - 74 / 82 * - - 13 + + CAST ( 0 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7126
SELECT ALL + 1 DIV 63 AS col0, 75
----
0
75

skipif mysql # not compatible
query II rowsort label-7126
SELECT ALL + 1 / 63 AS col0, 75
----
0
75

query I rowsort
SELECT ALL + + ( + 17 ) * + 28 col0
----
476

query I rowsort
SELECT DISTINCT 93 * + 3 * 27
----
7533

query II rowsort
SELECT + ( + - 79 ), - 90 - + ( - ( + - COALESCE ( - + 38, 67 ) ) ) col1
----
-79
-52

query I rowsort
SELECT - - 54 + - - 23
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT NULLIF ( 36, - COUNT( * ) * 1 )
----
36

skipif mysql # not compatible
query I rowsort label-7131
SELECT NULLIF ( 36, - COUNT ( * ) * 1 )
----
36

query I rowsort
SELECT ALL + + 19 * - 38 + - - 1 + 52 AS col1
----
-669

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7133
SELECT DISTINCT + + CAST( - SUM( - 7 ) AS SIGNED ) * - COUNT( * ) + - - 5 + + ( + 23 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT + + CAST ( - SUM ( - 7 ) AS INTEGER ) * - COUNT ( * ) + - - 5 + + ( + 23 ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT ALL - 82 * - 53 + COUNT( * ) AS col2
----
4347

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL - 82 * - 53 + COUNT ( * ) AS col2
----
4347

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT COUNT( 5 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7135
SELECT COUNT ( 5 ) AS col2
----
1

query I rowsort
SELECT DISTINCT 48 * - - 27 + - 64 col2
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT MAX( 80 )
----
80

skipif mysql # not compatible
query I rowsort label-7137
SELECT MAX ( 80 )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7138
SELECT ALL + 73 DIV + + COUNT( * ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL + 73 / + + COUNT ( * ) AS col2
----
73

query I rowsort
SELECT DISTINCT 57 - - 32 col1
----
89

query I rowsort
SELECT ALL + 0 - 85
----
-85

query I rowsort
SELECT - 21 - 54
----
-75

query I rowsort
SELECT ALL CASE - - 77 WHEN - 85 THEN NULL ELSE + 22 END
----
22

query I rowsort
SELECT - 98 - + 90
----
-188

query I rowsort
SELECT ALL + 1 - + + 34 col1
----
-33

onlyif mysql # DIV for integer division: 
query II rowsort label-7145
SELECT - 68 + + - 11 + - - 9 DIV - 55 AS col0, + 8 * 20 * 75 * 17
----
-79
204000

skipif mysql # not compatible
query II rowsort label-7145
SELECT - 68 + + - 11 + - - 9 / - 55 AS col0, + 8 * 20 * 75 * 17
----
-79
204000

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT - ( - + 94 ) * + COUNT( * ) * 65 * 66 AS col2
----
403260

skipif mysql # not compatible
query I rowsort label-7146
SELECT - ( - + 94 ) * + COUNT ( * ) * 65 * 66 AS col2
----
403260

query I rowsort
SELECT - ( + + 48 ) + ( 69 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT - MIN( ALL + 53 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-7148
SELECT - MIN ( ALL + 53 ) AS col1
----
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-7149
SELECT DISTINCT 20 AS col0, + 29 DIV - - 66
----
20
0

skipif mysql # not compatible
query II rowsort label-7149
SELECT DISTINCT 20 AS col0, + 29 / - - 66
----
20
0

query I rowsort
SELECT - 21 + + 71 - 8 + 47 * - 10
----
-428

onlyif mysql # DIV for integer division: 
query I rowsort label-7151
SELECT - + 94 DIV + 77 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7151
SELECT - + 94 / + 77 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7152
SELECT - 65 * + - 63 + - COUNT( * ) + + - COUNT( * ) * - - 24 DIV 27
----
4094

skipif mysql # not compatible
query I rowsort label-7152
SELECT - 65 * + - 63 + - COUNT ( * ) + + - COUNT ( * ) * - - 24 / 27
----
4094

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7153
SELECT - 62 * 50 / + - 95 - 29 - 92 + + + COUNT( * ) * + 34 + 22 + 56 * 9 + - 6 / + ( - 21 ) * - 28 * + CAST( NULL AS DECIMAL ) + - 67 + + + 91 + 72 + 36 * 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7153
SELECT - 62 * 50 / + - 95 - 29 - 92 + + + COUNT ( * ) * + 34 + 22 + 56 * 9 + - 6 / + ( - 21 ) * - 28 * + CAST ( NULL AS REAL ) + - 67 + + + 91 + 72 + 36 * 23 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7154
SELECT + 74 * + 45 - - 44 + - - 24 + ( - + 80 ) * + - SUM( + 2 ) * - 97 AS col1, + COALESCE ( - - 37, - 92 * 21 ) + - SUM( ALL - 53 )
----
-12122
90

skipif mysql # not compatible
query II rowsort label-7154
SELECT + 74 * + 45 - - 44 + - - 24 + ( - + 80 ) * + - SUM ( + 2 ) * - 97 AS col1, + COALESCE ( - - 37, - 92 * 21 ) + - SUM ( ALL - 53 )
----
-12122
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT + - CASE WHEN NULL <= COUNT( * ) THEN + 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7155
SELECT + - CASE WHEN NULL <= COUNT ( * ) THEN + 31 END
----
NULL

query I rowsort
SELECT + 62 + + 32 - 65 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT ALL + 6 * + - COUNT( * ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL + 6 * + - COUNT ( * ) AS col1
----
-6

query II rowsort
SELECT + 83 AS col2, - 25 AS col0
----
83
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7159
SELECT ALL - - 53 DIV 10 + - COUNT( * ) + + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL - - 53 / 10 + - COUNT ( * ) + + COUNT ( * ) AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7160
SELECT + - 68 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7160
SELECT + - 68 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7161
SELECT ALL + - 68 AS col1, - NULLIF ( - 70, + COUNT( ALL - 85 ) )
----
-68
70

skipif mysql # not compatible
query II rowsort label-7161
SELECT ALL + - 68 AS col1, - NULLIF ( - 70, + COUNT ( ALL - 85 ) )
----
-68
70

query I rowsort
SELECT ALL - + 61 * + CASE 4 WHEN ( - ( + - 40 ) ) THEN - 78 WHEN + - 80 * 14 THEN + 13 END
----
NULL

query I rowsort
SELECT ( + - 33 ) * + 62 col0
----
-2046

query I rowsort
SELECT ALL 52 + 78 AS col0
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7165
SELECT 65 + + CAST( ( - 90 ) AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-7165
SELECT 65 + + CAST ( ( - 90 ) AS INTEGER )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7166
SELECT DISTINCT COALESCE ( - - SUM( 1 ), + 34 ) * 62 + 90 * 72 - 93 + 79 - 66 - CAST( - 29 AS SIGNED ) col0
----
6491

skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT COALESCE ( - - SUM ( 1 ), + 34 ) * 62 + 90 * 72 - 93 + 79 - 66 - CAST ( - 29 AS INTEGER ) col0
----
6491

query II rowsort
SELECT DISTINCT 51 * + - 89 AS col0, + 70 AS col2
----
-4539
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7168
SELECT DISTINCT 69 * + 72 AS col1, + ( + CAST( 17 AS SIGNED ) ) - 37 AS col1
----
4968
-20

skipif mysql # not compatible
query II rowsort label-7168
SELECT DISTINCT 69 * + 72 AS col1, + ( + CAST ( 17 AS INTEGER ) ) - 37 AS col1
----
4968
-20

query I rowsort
SELECT 58 + - 63 * - - 74 col2
----
-4604

query I rowsort
SELECT 10 + + + 46 AS col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7171
SELECT 84 * 49 DIV + CAST( - COUNT( * ) AS SIGNED ) AS col0, 39 AS col0
----
-4116
39

skipif mysql # not compatible
query II rowsort label-7171
SELECT 84 * 49 / + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 39 AS col0
----
-4116
39

query I rowsort
SELECT DISTINCT 68 * - + 90
----
-6120

query I rowsort
SELECT ALL - + 5 * 65
----
-325

query II rowsort
SELECT ALL + ( - 20 ) AS col2, 75
----
-20
75

query I rowsort
SELECT 38 * + 16
----
608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7176
SELECT ALL CAST( 81 AS SIGNED ) + - + 50 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL CAST ( 81 AS INTEGER ) + - + 50 AS col0
----
31

query I rowsort
SELECT DISTINCT - ( 43 ) + + 95 AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7178
SELECT - COUNT( * ) DIV - 46, + 69 AS col2
----
0
69

skipif mysql # not compatible
query II rowsort label-7178
SELECT - COUNT ( * ) / - 46, + 69 AS col2
----
0
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7179
SELECT COUNT( * ) * + 49 AS col1, + ( - 39 ) DIV + 48 AS col1
----
49
0

skipif mysql # not compatible
query II rowsort label-7179
SELECT COUNT ( * ) * + 49 AS col1, + ( - 39 ) / + 48 AS col1
----
49
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT ALL - CASE 78 WHEN - + 71 / + - 24 * COUNT( + 30 ) THEN - 63 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL - CASE 78 WHEN - + 71 / + - 24 * COUNT ( + 30 ) THEN - 63 ELSE NULL END
----
NULL

query I rowsort
SELECT 17 * - + 51 + - 87
----
-954

query I rowsort
SELECT + 33 * + 46
----
1518

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT - SUM( DISTINCT 22 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-7183
SELECT - SUM ( DISTINCT 22 ) AS col2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7184
SELECT DISTINCT 51 + + 21 DIV COALESCE ( 84, COUNT( * ) )
----
51

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT 51 + + 21 / COALESCE ( 84, COUNT ( * ) )
----
51

query I rowsort
SELECT ALL - + COALESCE ( + ( + 96 ), + 28 ) + - - COALESCE ( + ( + + 56 ), - 80 ) + 68 * - 71 AS col0
----
-4868

query I rowsort
SELECT DISTINCT - + ( - + 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT DISTINCT - - COUNT( * ) * - - 29 * COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT - - COUNT ( * ) * - - 29 * COUNT ( * ) AS col1
----
29

query II rowsort
SELECT ALL - + 59 + - 44 AS col1, 57
----
-103
57

onlyif mysql # aggregate syntax: 
query II rowsort label-7189
SELECT - 66 + + COUNT( * ), - 59 AS col2
----
-65
-59

skipif mysql # not compatible
query II rowsort label-7189
SELECT - 66 + + COUNT ( * ), - 59 AS col2
----
-65
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7190
SELECT + 54 / 83 - + - AVG ( - 38 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7190
SELECT + 54 / 83 - + - AVG ( - 38 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT + + COALESCE ( - COUNT( * ), - + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-7191
SELECT + + COALESCE ( - COUNT ( * ), - + 1 )
----
-1

query I rowsort
SELECT 49 * - COALESCE ( - 94, + ( + 43 ) * - + 71, + 59 ) AS col1
----
4606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7193
SELECT 85 * - 29 * + + CASE + 53 WHEN + COUNT( * ) / + ( - 52 ) + 53 + - ( - 67 ) - COUNT( + 11 ) * - 64 * - 32 THEN + 25 + - CAST( + 28 AS SIGNED ) WHEN + 71 * - + 77 THEN 13 ELSE - - 31 * - COUNT( * ) - COUNT( * ) END AS col2, 7 AS col1
----
78880
7

skipif mysql # not compatible
query II rowsort label-7193
SELECT 85 * - 29 * + + CASE + 53 WHEN + COUNT ( * ) / + ( - 52 ) + 53 + - ( - 67 ) - COUNT ( + 11 ) * - 64 * - 32 THEN + 25 + - CAST ( + 28 AS INTEGER ) WHEN + 71 * - + 77 THEN 13 ELSE - - 31 * - COUNT ( * ) - COUNT ( * ) END AS col2, 7 AS col1
----
78880
7

query I rowsort
SELECT ALL - 72 * 3 AS col2
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7195
SELECT DISTINCT - CAST( NULL AS SIGNED ) - NULLIF ( + 27, 43 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7195
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - NULLIF ( + 27, 43 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT ALL - CASE - 31 WHEN + 80 * 73 THEN + + 49 / NULLIF ( - 16, 26 ) + + + MAX( DISTINCT - - 43 ) WHEN - 41 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL - CASE - 31 WHEN + 80 * 73 THEN + + 49 / NULLIF ( - 16, 26 ) + + + MAX ( DISTINCT - - 43 ) WHEN - 41 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 5 * + - 39 AS col0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT DISTINCT - ( - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7198
SELECT DISTINCT - ( - COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT ALL - 73 * COALESCE ( + 9, 72 )
----
-657

onlyif mysql # aggregate syntax: 
query II rowsort label-7200
SELECT ALL - 49 AS col2, MAX( 50 ) AS col2
----
-49
50

skipif mysql # not compatible
query II rowsort label-7200
SELECT ALL - 49 AS col2, MAX ( 50 ) AS col2
----
-49
50

onlyif mysql # aggregate syntax: 
query II rowsort label-7201
SELECT DISTINCT - 52 AS col2, - COALESCE ( - + COUNT( * ), - 48 ) AS col0
----
-52
1

skipif mysql # not compatible
query II rowsort label-7201
SELECT DISTINCT - 52 AS col2, - COALESCE ( - + COUNT ( * ), - 48 ) AS col0
----
-52
1

query I rowsort
SELECT ALL - 55 * - 70 AS col0
----
3850

query I rowsort
SELECT DISTINCT + 1 - - + 90
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7204
SELECT COUNT( * ) * + ( - 73 ) * + 19 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7204
SELECT COUNT ( * ) * + ( - 73 ) * + 19 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7205
SELECT - 52 * - COUNT( * ) DIV + 84 + + + ( - + 84 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-7205
SELECT - 52 * - COUNT ( * ) / + 84 + + + ( - + 84 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT SUM( ALL + - 92 ) - - 77 * + - 73
----
-5713

skipif mysql # not compatible
query I rowsort label-7206
SELECT SUM ( ALL + - 92 ) - - 77 * + - 73
----
-5713

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT DISTINCT MAX( ALL 29 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT MAX ( ALL 29 ) AS col1
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7208
SELECT 0 * + ( + + 55 ) AS col1, 87 + - 71 + + - 71 + + CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7208
SELECT 0 * + ( + + 55 ) AS col1, 87 + - 71 + + - 71 + + CAST ( NULL AS INTEGER )
----
0
NULL

query II rowsort
SELECT 64 AS col1, 20 * - 71 * ( 30 )
----
64
-42600

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT ALL MAX( - NULLIF ( - 24, - + 11 ) ) col2
----
24

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL MAX ( - NULLIF ( - 24, - + 11 ) ) col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT ALL COUNT( * ) + - - 93 + - + 52 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL COUNT ( * ) + - - 93 + - + 52 AS col1
----
42

query I rowsort
SELECT ALL 85 * 70 AS col0
----
5950

query I rowsort
SELECT - 81 * + CASE 79 WHEN - COALESCE ( + 96, + 72 ) THEN NULL ELSE - ( - - 60 ) END - 20 AS col2
----
4840

query I rowsort
SELECT ALL - 22 + + 68
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT MAX( + 0 ) + - - 30 + - ( + + 82 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-7215
SELECT MAX ( + 0 ) + - - 30 + - ( + + 82 ) AS col2
----
-52

query I rowsort
SELECT + 90 - - - 59 + 94
----
125

query I rowsort
SELECT 40 + - + 4
----
36

query I rowsort
SELECT 83 - + 46 AS col0
----
37

query I rowsort
SELECT ALL - 31 + 74
----
43

query I rowsort
SELECT ( + 95 ) * + - 71
----
-6745

query I rowsort
SELECT - 56 + - - 70 * - + 91
----
-6426

onlyif mysql # DIV for integer division: 
query I rowsort label-7222
SELECT ALL 0 + - 93 DIV + 3
----
-31

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL 0 + - 93 / + 3
----
-31

query II rowsort
SELECT ALL + 6, 9 AS col0
----
6
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT ALL 44 * MIN( ALL 16 )
----
704

skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL 44 * MIN ( ALL 16 )
----
704

query I rowsort
SELECT 9 + + 46
----
55

query I rowsort
SELECT - 97 + ( 54 )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7227
SELECT ALL CASE + 33 WHEN + - 74 * COUNT( * ) THEN NULL WHEN - CASE - COUNT( * ) WHEN + 92 THEN - + 66 * + 40 - - 99 - - - 49 ELSE NULL END + - - 51 * + COUNT( * ) THEN + 6 - 30 ELSE NULL END + CAST( + 38 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL CASE + 33 WHEN + - 74 * COUNT ( * ) THEN NULL WHEN - CASE - COUNT ( * ) WHEN + 92 THEN - + 66 * + 40 - - 99 - - - 49 ELSE NULL END + - - 51 * + COUNT ( * ) THEN + 6 - 30 ELSE NULL END + CAST ( + 38 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7228
SELECT ALL - ( + ( + - 20 ) ) / - + CAST( NULL AS DECIMAL ) * + 71 * + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-7228
SELECT ALL - ( + ( + - 20 ) ) / - + CAST ( NULL AS REAL ) * + 71 * + 77
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7229
SELECT + + COALESCE ( 65, - COUNT( * ) ) AS col0, + 1
----
65
1

skipif mysql # not compatible
query II rowsort label-7229
SELECT + + COALESCE ( 65, - COUNT ( * ) ) AS col0, + 1
----
65
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT + 15 * + + 12 + - COUNT( * ) * + - 60 * + 1 * + - ( + + 53 )
----
-3000

skipif mysql # not compatible
query I rowsort label-7230
SELECT + 15 * + + 12 + - COUNT ( * ) * + - 60 * + 1 * + - ( + + 53 )
----
-3000

query II rowsort
SELECT DISTINCT + + 7 AS col0, 2 AS col1
----
7
2

query II rowsort
SELECT 74, 7 * + 26 AS col0
----
74
182

onlyif mysql # aggregate syntax: 
query II rowsort label-7233
SELECT DISTINCT + 98, - CASE - 39 WHEN + 92 THEN COALESCE ( 79, + + NULLIF ( 13, 16 ) * - - 88 + - 89 + + NULLIF ( + 55, - - 0 ) - - 55, + 36 / + 12 ) + - 15 ELSE NULL END + + + 14 + + + 41 + + 92 + + + 17 * - ( + 66 ) * - 95 * + SUM( + 2 ) col1
----
98
NULL

skipif mysql # not compatible
query II rowsort label-7233
SELECT DISTINCT + 98, - CASE - 39 WHEN + 92 THEN COALESCE ( 79, + + NULLIF ( 13, 16 ) * - - 88 + - 89 + + NULLIF ( + 55, - - 0 ) - - 55, + 36 / + 12 ) + - 15 ELSE NULL END + + + 14 + + + 41 + + 92 + + + 17 * - ( + 66 ) * - 95 * + SUM ( + 2 ) col1
----
98
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7234
SELECT - 35 * - + COUNT( * ) DIV + - COALESCE ( 51, - COALESCE ( + + MIN( DISTINCT - 63 ), NULLIF ( 74, + 73 * - - 44 * 20 ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7234
SELECT - 35 * - + COUNT ( * ) / + - COALESCE ( 51, - COALESCE ( + + MIN ( DISTINCT - 63 ), NULLIF ( 74, + 73 * - - 44 * 20 ) ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT ALL 41 * - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL 41 * - COUNT ( * )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT DISTINCT + COUNT( DISTINCT + 57 )
----
1

skipif mysql # not compatible
query I rowsort label-7236
SELECT DISTINCT + COUNT ( DISTINCT + 57 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7237
SELECT DISTINCT + 36 col1, MAX( ALL - 82 ) AS col2
----
36
-82

skipif mysql # not compatible
query II rowsort label-7237
SELECT DISTINCT + 36 col1, MAX ( ALL - 82 ) AS col2
----
36
-82

query II rowsort
SELECT + 79 AS col1, + 20 AS col2
----
79
20

onlyif mysql # aggregate syntax: 
query II rowsort label-7239
SELECT DISTINCT + COUNT( * ), 93 AS col2
----
1
93

skipif mysql # not compatible
query II rowsort label-7239
SELECT DISTINCT + COUNT ( * ), 93 AS col2
----
1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT - COUNT( * ) * 30 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-7240
SELECT - COUNT ( * ) * 30 AS col2
----
-30

query I rowsort
SELECT + ( + ( + 90 ) ) * COALESCE ( - 42, 61 ) - 53 - 23
----
-3856

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7242
SELECT COUNT( * ) col1, - COALESCE ( 97, + 91, + - 69 DIV - 96 * - COALESCE ( + - 18, + ( 59 ) ) * + ( + - 80 ) ) AS col1
----
1
-97

skipif mysql # not compatible
query II rowsort label-7242
SELECT COUNT ( * ) col1, - COALESCE ( 97, + 91, + - 69 / - 96 * - COALESCE ( + - 18, + ( 59 ) ) * + ( + - 80 ) ) AS col1
----
1
-97

query I rowsort
SELECT ALL + ( - NULLIF ( 84, + 56 + + 50 ) ) AS col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7244
SELECT - 75 * - ( - MAX( DISTINCT - 16 ) ) * + 69 * + NULLIF ( + CAST( - 35 AS SIGNED ), - 56 * 70 )
----
-2898000

skipif mysql # not compatible
query I rowsort label-7244
SELECT - 75 * - ( - MAX ( DISTINCT - 16 ) ) * + 69 * + NULLIF ( + CAST ( - 35 AS INTEGER ), - 56 * 70 )
----
-2898000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7245
SELECT DISTINCT - COUNT( * ) DIV 38
----
0

skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT - COUNT ( * ) / 38
----
0

query I rowsort
SELECT ALL + 32 * + 23 / + ( 11 ) + + 93 * + CASE - - 50 WHEN 28 THEN NULL WHEN - 19 THEN - 94 END AS col1
----
NULL

query II rowsort
SELECT ALL + 24 * + 6 AS col1, 55
----
144
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT - COALESCE ( - - 66, + + 31 * 41 ) - - 74 - + 72 + - 15 * ( - + MIN( 45 ) ) * - 11 + - 94 AS col0
----
-7583

skipif mysql # not compatible
query I rowsort label-7248
SELECT - COALESCE ( - - 66, + + 31 * 41 ) - - 74 - + 72 + - 15 * ( - + MIN ( 45 ) ) * - 11 + - 94 AS col0
----
-7583

onlyif mysql # DIV for integer division: 
query I rowsort label-7249
SELECT ALL + 51 DIV 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL + 51 / 78 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7250
SELECT ALL - 79 + 96 * - ( + - ( + MAX( - CAST( NULL AS SIGNED ) ) ) ) * - + 40 + + CAST( + 99 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL - 79 + 96 * - ( + - ( + MAX ( - CAST ( NULL AS INTEGER ) ) ) ) * - + 40 + + CAST ( + 99 AS INTEGER )
----
NULL

query I rowsort
SELECT + 9 + 87 AS col1
----
96

query I rowsort
SELECT DISTINCT ( - 65 ) AS col2
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7253
SELECT - + 71 * + 66 + - COUNT( * ) - - 26 AS col1, COUNT( * ) DIV - 82 * + + 59 AS col1
----
-4661
0

skipif mysql # not compatible
query II rowsort label-7253
SELECT - + 71 * + 66 + - COUNT ( * ) - - 26 AS col1, COUNT ( * ) / - 82 * + + 59 AS col1
----
-4661
0

query I rowsort
SELECT + 1 + 22 + 45 * 93
----
4208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7255
SELECT ALL 71 + + CAST( NULL AS SIGNED ) * + 40 * - CAST( 63 AS SIGNED ) + NULLIF ( 41, CASE - 69 WHEN - + COUNT( * ) - - - ( - 64 ) * + 24 * - 12 THEN - 96 * - 66 + - 66 + 46 + + 44 / + + NULLIF ( 91, 69 * - 18 + - + 43 ) * + 97 / + + 14 * - 77 END ) / CAST( - CAST( 43 AS SIGNED ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL 71 + + CAST ( NULL AS INTEGER ) * + 40 * - CAST ( 63 AS INTEGER ) + NULLIF ( 41, CASE - 69 WHEN - + COUNT ( * ) - - - ( - 64 ) * + 24 * - 12 THEN - 96 * - 66 + - 66 + 46 + + 44 / + + NULLIF ( 91, 69 * - 18 + - + 43 ) * + 97 / + + 14 * - 77 END ) / CAST ( - CAST ( 43 AS INTEGER ) AS REAL ) AS col2
----
NULL

query II rowsort
SELECT 9 AS col0, 94 * - 38 * + - 67
----
9
239324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7257
SELECT ALL CAST( - + 80 AS SIGNED ) + - - 48
----
-32

skipif mysql # not compatible
query I rowsort label-7257
SELECT ALL CAST ( - + 80 AS INTEGER ) + - - 48
----
-32

query I rowsort
SELECT - 54 * 33
----
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT ALL SUM( - 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-7259
SELECT ALL SUM ( - 17 ) AS col1
----
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7260
SELECT ALL CAST( NULL AS DECIMAL ) * - ( - 4 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL CAST ( NULL AS REAL ) * - ( - 4 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7261
SELECT - COUNT( * ), NULLIF ( + 24, 65 ) AS col2
----
-1
24

skipif mysql # not compatible
query II rowsort label-7261
SELECT - COUNT ( * ), NULLIF ( + 24, 65 ) AS col2
----
-1
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT ALL - COUNT( * ) - - 19
----
18

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL - COUNT ( * ) - - 19
----
18

query I rowsort
SELECT DISTINCT 55 - + 37 col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT - + COUNT( DISTINCT - + 97 )
----
-1

skipif mysql # not compatible
query I rowsort label-7264
SELECT - + COUNT ( DISTINCT - + 97 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT - + 69 - + 44 * + - MAX( 96 ) * + 87 - - 78 AS col1
----
367497

skipif mysql # not compatible
query I rowsort label-7265
SELECT - + 69 - + 44 * + - MAX ( 96 ) * + 87 - - 78 AS col1
----
367497

query II rowsort
SELECT ALL 96, 97 + + 23 AS col0
----
96
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7267
SELECT ALL - COALESCE ( 31, + COUNT( * ), - 28 + - 70 ) * 9 DIV 49 * + - ( 65 ) * 4 AS col2
----
1300

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL - COALESCE ( 31, + COUNT ( * ), - 28 + - 70 ) * 9 / 49 * + - ( 65 ) * 4 AS col2
----
1300

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT + 57 * + - 60 - - + MAX( - - 18 )
----
-3402

skipif mysql # not compatible
query I rowsort label-7268
SELECT + 57 * + - 60 - - + MAX ( - - 18 )
----
-3402

onlyif mysql # DIV for integer division: 
query II rowsort label-7269
SELECT ALL 47 AS col2, 81 DIV + + 82
----
47
0

skipif mysql # not compatible
query II rowsort label-7269
SELECT ALL 47 AS col2, 81 / + + 82
----
47
0

query I rowsort
SELECT + 84 - + 80 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT ALL + COUNT( * ) * - 30 - + 17 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL + COUNT ( * ) * - 30 - + 17 AS col1
----
-47

query I rowsort
SELECT + ( 58 ) * 36 + - 44 + + 51 * 95 AS col0
----
6889

onlyif mysql # DIV for integer division: 
query I rowsort label-7273
SELECT + ( 41 ) DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-7273
SELECT + ( 41 ) / - 49
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7274
SELECT CAST( NULL AS SIGNED ) * - 16 * - 68 * + COALESCE ( + + 93, CASE - CAST( NULL AS SIGNED ) WHEN + 91 / + 65 + 91 * - + 93 THEN NULL ELSE 34 + + COUNT( * ) END + - 78 * - COALESCE ( 66, - 30 - - ( 80 ) * - CASE - - ( + 25 ) WHEN + 99 THEN NULL ELSE + ( - 39 ) * - + 48 - + 29 + - 40 END * 95 ) ) * - CAST( NULL AS SIGNED ) - COALESCE ( + 48, - 32 + 77 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7274
SELECT CAST ( NULL AS INTEGER ) * - 16 * - 68 * + COALESCE ( + + 93, CASE - CAST ( NULL AS INTEGER ) WHEN + 91 / + 65 + 91 * - + 93 THEN NULL ELSE 34 + + COUNT ( * ) END + - 78 * - COALESCE ( 66, - 30 - - ( 80 ) * - CASE - - ( + 25 ) WHEN + 99 THEN NULL ELSE + ( - 39 ) * - + 48 - + 29 + - 40 END * 95 ) ) * - CAST ( NULL AS INTEGER ) - COALESCE ( + 48, - 32 + 77 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7275
SELECT + 93 * - NULLIF ( + 39, + ( CAST( NULL AS SIGNED ) ) ) * + - 30 AS col0
----
108810

skipif mysql # not compatible
query I rowsort label-7275
SELECT + 93 * - NULLIF ( + 39, + ( CAST ( NULL AS INTEGER ) ) ) * + - 30 AS col0
----
108810

query I rowsort
SELECT + ( - + 80 ) + 53 * + + 33 - ( - 34 ) col1
----
1703

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7277
SELECT + ( - + 35 ) / - CAST( NULL AS SIGNED ) * + - COUNT( DISTINCT - + 43 ) - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-7277
SELECT + ( - + 35 ) / - CAST ( NULL AS INTEGER ) * + - COUNT ( DISTINCT - + 43 ) - 7
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7278
SELECT - 75 DIV 86 * + 95 col2
----
0

skipif mysql # not compatible
query I rowsort label-7278
SELECT - 75 / 86 * + 95 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7279
SELECT DISTINCT 56 DIV 34 DIV - 13 + + 75
----
75

skipif mysql # not compatible
query I rowsort label-7279
SELECT DISTINCT 56 / 34 / - 13 + + 75
----
75

query I rowsort
SELECT ALL - 56 * 17
----
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT ALL - COUNT( * ) * - COALESCE ( + - COUNT( * ), - 2 * 76 ) + 13 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL - COUNT ( * ) * - COALESCE ( + - COUNT ( * ), - 2 * 76 ) + 13 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT + 44 * COUNT( * ) + - 53 * + - 50 AS col0
----
2694

skipif mysql # not compatible
query I rowsort label-7282
SELECT + 44 * COUNT ( * ) + - 53 * + - 50 AS col0
----
2694

query I rowsort
SELECT ALL + ( 60 ) AS col2
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7284
SELECT DISTINCT 94 * + + COUNT( * ) + 84 DIV - COALESCE ( + + SUM( + 87 ), 4 )
----
94

skipif mysql # not compatible
query I rowsort label-7284
SELECT DISTINCT 94 * + + COUNT ( * ) + 84 / - COALESCE ( + + SUM ( + 87 ), 4 )
----
94

query I rowsort
SELECT - 15 * + 95
----
-1425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7286
SELECT ALL 0 * - 54 * - 49 * + 8 * + - ( + ( - + 29 ) ) DIV + - 15 + + - 90 + + 69 - - 51 * + 36 + COUNT( * )
----
1816

skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL 0 * - 54 * - 49 * + 8 * + - ( + ( - + 29 ) ) / + - 15 + + - 90 + + 69 - - 51 * + 36 + COUNT ( * )
----
1816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7287
SELECT ALL CAST( - 51 AS SIGNED ) * - MIN( DISTINCT - - 91 ) + + + 26 + + - 99 + + - 72 * + - 27
----
6512

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL CAST ( - 51 AS INTEGER ) * - MIN ( DISTINCT - - 91 ) + + + 26 + + - 99 + + - 72 * + - 27
----
6512

query II rowsort
SELECT + ( - 24 ) * - - 74 AS col0, 28
----
-1776
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT ALL + SUM( 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL + SUM ( 20 ) AS col1
----
20

query I rowsort
SELECT DISTINCT - NULLIF ( + - 99, 31 ) * + 51 * + 23 + + - 3 AS col2
----
116124

query I rowsort
SELECT - 44 + - 71
----
-115

onlyif mysql # aggregate syntax: 
query II rowsort label-7292
SELECT NULLIF ( - 64, - COALESCE ( - + 61, - 0 ) ), - COUNT( * ) * COUNT( * ) * - 80 AS col1
----
-64
80

skipif mysql # not compatible
query II rowsort label-7292
SELECT NULLIF ( - 64, - COALESCE ( - + 61, - 0 ) ), - COUNT ( * ) * COUNT ( * ) * - 80 AS col1
----
-64
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT + + COUNT( - + ( 65 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7293
SELECT + + COUNT ( - + ( 65 ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7294
SELECT - + 34 + - - CAST( - - 76 AS SIGNED ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-7294
SELECT - + 34 + - - CAST ( - - 76 AS INTEGER ) AS col2
----
42

query I rowsort
SELECT ALL - 90 * + 61 * + 28 * + ( - + 69 ) - - 24 AS col0
----
10606704

query I rowsort
SELECT ALL + - 27 * - 45 AS col0
----
1215

query I rowsort
SELECT - 18 + 17 + + 99 + + - 86
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT 72 + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-7298
SELECT 72 + COUNT ( * )
----
73

query I rowsort
SELECT - 2 - - 80 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT DISTINCT - COUNT( ALL 92 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7300
SELECT DISTINCT - COUNT ( ALL 92 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT + MAX( - 76 ) + + 27 + - - 9
----
-40

skipif mysql # not compatible
query I rowsort label-7301
SELECT + MAX ( - 76 ) + + 27 + - - 9
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT - SUM( DISTINCT - ( + 48 ) )
----
48

skipif mysql # not compatible
query I rowsort label-7302
SELECT - SUM ( DISTINCT - ( + 48 ) )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT + 68 + + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-7303
SELECT + 68 + + COUNT ( * )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT ALL COUNT( 96 )
----
1

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL COUNT ( 96 )
----
1

query I rowsort
SELECT COALESCE ( + 11, + 23 ) + 61 - - 25
----
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7306
SELECT ALL CAST( + CAST( + 94 AS DECIMAL ) AS SIGNED ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL CAST ( + CAST ( + 94 AS REAL ) AS INTEGER ) AS col2
----
94

query I rowsort
SELECT + 95 + 37 AS col2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT COUNT( 83 ) * + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7308
SELECT COUNT ( 83 ) * + + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7309
SELECT DISTINCT COUNT( * ) + - 23 + - 48, - NULLIF ( COUNT( * ), 21 + + - 17 ) AS col1
----
-70
-1

skipif mysql # not compatible
query II rowsort label-7309
SELECT DISTINCT COUNT ( * ) + - 23 + - 48, - NULLIF ( COUNT ( * ), 21 + + - 17 ) AS col1
----
-70
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-7310
SELECT - 40 DIV + - 28 + + + 65, 54 AS col0
----
66
54

skipif mysql # not compatible
query II rowsort label-7310
SELECT - 40 / + - 28 + + + 65, 54 AS col0
----
66
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT ALL COUNT( * ) + + 9 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL COUNT ( * ) + + 9 AS col2
----
10

query II rowsort
SELECT ALL - 97 + + 94 + + 12 AS col1, 4 + - 33 col1
----
9
-29

query II rowsort
SELECT ALL - 64, + 67 * - - 44 AS col0
----
-64
2948

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT COUNT( * ) + - 7 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-7314
SELECT COUNT ( * ) + - 7 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT DISTINCT 45 + 69 + - 25 + - 20 + + COUNT( * ) * - 50 * + + 92 * - 23 * + 31 AS col0
----
3279869

skipif mysql # not compatible
query I rowsort label-7315
SELECT DISTINCT 45 + 69 + - 25 + - 20 + + COUNT ( * ) * - 50 * + + 92 * - 23 * + 31 AS col0
----
3279869

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7316
SELECT ALL COUNT( * ) + 60 + + 47, MIN( DISTINCT - 63 ) * + - COUNT( * ) - + - 66 * CAST( NULL AS SIGNED ) + + AVG ( + + 34 ) AS col2
----
108
NULL

skipif mysql # not compatible
query II rowsort label-7316
SELECT ALL COUNT ( * ) + 60 + + 47, MIN ( DISTINCT - 63 ) * + - COUNT ( * ) - + - 66 * CAST ( NULL AS INTEGER ) + + AVG ( + + 34 ) AS col2
----
108
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7317
SELECT 80 AS col2, + ( + 47 ) * + - ( + + 51 ) * - COUNT( * ) + + - ( - 5 )
----
80
2402

skipif mysql # not compatible
query II rowsort label-7317
SELECT 80 AS col2, + ( + 47 ) * + - ( + + 51 ) * - COUNT ( * ) + + - ( - 5 )
----
80
2402

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7318
SELECT ALL 80 + - 98 * - 70 - + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7318
SELECT ALL 80 + - 98 * - 70 - + - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT + 53, 78 AS col1
----
53
78

query I rowsort
SELECT 28 * - 29 AS col0
----
-812

onlyif mysql # DIV for integer division: 
query I rowsort label-7321
SELECT ALL 74 DIV - - 93
----
0

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL 74 / - - 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT 35 + + + 80 + + + COUNT( * )
----
116

skipif mysql # not compatible
query I rowsort label-7322
SELECT 35 + + + 80 + + + COUNT ( * )
----
116

query I rowsort
SELECT DISTINCT 91 + + 4 * 71 + 15 AS col1
----
390

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7324
SELECT 44 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7324
SELECT 44 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT ALL 26 + + - 16 + - - SUM( - + 39 )
----
-29

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL 26 + + - 16 + - - SUM ( - + 39 )
----
-29

query I rowsort
SELECT DISTINCT ( + 37 ) * - 52
----
-1924

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT 63 * - - COUNT( * ) + 58 + - - 96
----
217

skipif mysql # not compatible
query I rowsort label-7327
SELECT 63 * - - COUNT ( * ) + 58 + - - 96
----
217

query I rowsort
SELECT + 27 - - 57 AS col2
----
84

query I rowsort
SELECT ALL + + ( + + 63 ) * 29 * + 34 AS col2
----
62118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7330
SELECT - 36 + 6 + 55 + + SUM( DISTINCT 22 ) DIV - + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-7330
SELECT - 36 + 6 + 55 + + SUM ( DISTINCT 22 ) / - + COUNT ( * )
----
3

query I rowsort
SELECT ALL - + ( + 38 ) AS col2
----
-38

query I rowsort
SELECT ALL - 49 - - 23
----
-26

query I rowsort
SELECT 7 * - 28
----
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-7334
SELECT COALESCE ( + - 58, - 18 * + 76 DIV - 17 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-7334
SELECT COALESCE ( + - 58, - 18 * + 76 / - 17 ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-7335
SELECT + 83 * - ( 55 ) + - COUNT( * ), + 42 AS col0
----
-4566
42

skipif mysql # not compatible
query II rowsort label-7335
SELECT + 83 * - ( 55 ) + - COUNT ( * ), + 42 AS col0
----
-4566
42

query II rowsort
SELECT + 13 AS col0, + 96 AS col2
----
13
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT ALL - COALESCE ( - CASE + 76 WHEN - 98 * + + 81 THEN NULL WHEN + COUNT( + 43 ) - - 2 THEN + + 30 * - 38 END, 33, 7 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-7337
SELECT ALL - COALESCE ( - CASE + 76 WHEN - 98 * + + 81 THEN NULL WHEN + COUNT ( + 43 ) - - 2 THEN + + 30 * - 38 END, 33, 7 ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT + SUM( 84 ) + + + 46
----
130

skipif mysql # not compatible
query I rowsort label-7338
SELECT + SUM ( 84 ) + + + 46
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-7339
SELECT DISTINCT - 50 DIV + - 38
----
1

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT - 50 / + - 38
----
1

query I rowsort
SELECT ALL - ( COALESCE ( + 93, - 67 ) ) * + 6 + 81 * + + 91 * - 0
----
-558

query I rowsort
SELECT - 66 * 90 AS col1
----
-5940

onlyif mysql # DIV for integer division: 
query I rowsort label-7342
SELECT ALL - 6 DIV ( 14 ) * 76
----
0

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL - 6 / ( 14 ) * 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT DISTINCT - MIN( + 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-7343
SELECT DISTINCT - MIN ( + 53 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7344
SELECT DISTINCT - - 74 + - 85 * - CAST( NULL AS SIGNED ) + + + COALESCE ( + + 23, - COUNT( * ) + + ( + 19 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT - - 74 + - 85 * - CAST ( NULL AS INTEGER ) + + + COALESCE ( + + 23, - COUNT ( * ) + + ( + 19 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT DISTINCT - - SUM( DISTINCT - 0 ) * + 68
----
0

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT - - SUM ( DISTINCT - 0 ) * + 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT DISTINCT NULLIF ( - CASE + - 37 WHEN - + 36 THEN - COUNT( * ) + + 97 + - COUNT( * ) * + 33 * - 16 WHEN + + 95 THEN NULL ELSE + + 36 END, + COUNT( * ) ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT NULLIF ( - CASE + - 37 WHEN - + 36 THEN - COUNT ( * ) + + 97 + - COUNT ( * ) * + 33 * - 16 WHEN + + 95 THEN NULL ELSE + + 36 END, + COUNT ( * ) ) AS col2
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7347
SELECT ALL - MAX( ALL - 52 ) + - 80 + - ( - 98 ) DIV COUNT( * ) DIV - 62 + - 63 * 91 AS col0
----
-5762

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL - MAX ( ALL - 52 ) + - 80 + - ( - 98 ) / COUNT ( * ) / - 62 + - 63 * 91 AS col0
----
-5762

query I rowsort
SELECT ALL + 64 * 57 * + - 27
----
-98496

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT 84 - + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-7349
SELECT 84 - + COUNT ( * )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7350
SELECT ALL + ( + 69 ) * + 89 - 30 - 74 + + COUNT( * ) * + COUNT( - - CAST( NULL AS SIGNED ) ) * 68 * + 85 + COUNT( * ) AS col2
----
6038

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL + ( + 69 ) * + 89 - 30 - 74 + + COUNT ( * ) * + COUNT ( - - CAST ( NULL AS INTEGER ) ) * 68 * + 85 + COUNT ( * ) AS col2
----
6038

query II rowsort
SELECT 3 - 49 AS col2, + 4 - - 11
----
-46
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7352
SELECT ALL 17 * - - 24 + 72 * + 61 AS col1, MAX( ALL + CAST( NULL AS SIGNED ) ) * 50
----
4800
NULL

skipif mysql # not compatible
query II rowsort label-7352
SELECT ALL 17 * - - 24 + 72 * + 61 AS col1, MAX ( ALL + CAST ( NULL AS INTEGER ) ) * 50
----
4800
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7353
SELECT ALL + MAX( 97 ) * 58 + + + 30 * + 81 DIV - COUNT( * ) AS col1
----
3196

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL + MAX ( 97 ) * 58 + + + 30 * + 81 / - COUNT ( * ) AS col1
----
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT COUNT( + 4 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7354
SELECT COUNT ( + 4 ) AS col1
----
1

query I rowsort
SELECT ALL + 89 * - 27 * - 23 + - ( + 60 )
----
55209

query I rowsort
SELECT 93 + - ( + 18 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT DISTINCT 33 * MAX( DISTINCT 67 ) AS col2
----
2211

skipif mysql # not compatible
query I rowsort label-7357
SELECT DISTINCT 33 * MAX ( DISTINCT 67 ) AS col2
----
2211

query I rowsort
SELECT 66 * + ( + + 70 ) + + - ( - - ( + - 76 ) ) AS col0
----
4696

query I rowsort
SELECT 38 - + - NULLIF ( - 99, - + NULLIF ( + 52, + 4 * 10 ) ) + - - 10 AS col0
----
-51

query I rowsort
SELECT ALL 50 * + + 69 AS col1
----
3450

query I rowsort
SELECT ALL - 23 * - 5 - - 62
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT DISTINCT - COUNT( * ) - - 73
----
72

skipif mysql # not compatible
query I rowsort label-7362
SELECT DISTINCT - COUNT ( * ) - - 73
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-7363
SELECT DISTINCT - + COUNT( + 72 ) col1, - 36 AS col1
----
-1
-36

skipif mysql # not compatible
query II rowsort label-7363
SELECT DISTINCT - + COUNT ( + 72 ) col1, - 36 AS col1
----
-1
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7364
SELECT ALL 78 DIV + - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL 78 / + - COUNT ( * )
----
-78

query II rowsort
SELECT + + 93 * - 53 AS col0, - 83
----
-4929
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7366
SELECT + - COALESCE ( - COUNT( * ), - 44 * + - 59, + - 77 DIV NULLIF ( - 67, - + 56 + ( + 74 ) ) - 15 * - 4 * + 49 ) + 61
----
62

skipif mysql # not compatible
query I rowsort label-7366
SELECT + - COALESCE ( - COUNT ( * ), - 44 * + - 59, + - 77 / NULLIF ( - 67, - + 56 + ( + 74 ) ) - 15 * - 4 * + 49 ) + 61
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7367
SELECT - + CAST( NULL AS SIGNED ) * - SUM( DISTINCT - 97 ) - - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7367
SELECT - + CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT - 97 ) - - 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT + 36 + CASE - COUNT( * ) WHEN + + COALESCE ( + 79, 25 / + 6 ) THEN NULL WHEN - 74 + + 2 * + - ( - + 79 ) * + ( + ( 84 ) ) THEN - - COALESCE ( - ( COALESCE ( - + 36, + COUNT( * ) ) ), + 52 / + 87 + 6 + + + 6 / ( + + 76 ) ) WHEN + - 40 THEN + - COUNT( * ) END + + COALESCE ( - 39, 27 ) * ( - 58 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7368
SELECT + 36 + CASE - COUNT ( * ) WHEN + + COALESCE ( + 79, 25 / + 6 ) THEN NULL WHEN - 74 + + 2 * + - ( - + 79 ) * + ( + ( 84 ) ) THEN - - COALESCE ( - ( COALESCE ( - + 36, + COUNT ( * ) ) ), + 52 / + 87 + 6 + + + 6 / ( + + 76 ) ) WHEN + - 40 THEN + - COUNT ( * ) END + + COALESCE ( - 39, 27 ) * ( - 58 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7369
SELECT ALL - 55 + + - COALESCE ( + 20, + 65 ) + - 63 * + + COALESCE ( + COALESCE ( 9, + 5 ), - 1 * - ( + 41 ), - COUNT( * ) + + - 47 ) - + CAST( NULL AS SIGNED ) + + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-7369
SELECT ALL - 55 + + - COALESCE ( + 20, + 65 ) + - 63 * + + COALESCE ( + COALESCE ( 9, + 5 ), - 1 * - ( + 41 ), - COUNT ( * ) + + - 47 ) - + CAST ( NULL AS INTEGER ) + + + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT - + COUNT( * ) - 68 - NULLIF ( + - ( - + 69 ), COUNT( * ) + - + COUNT( * ) ) col0
----
-138

skipif mysql # not compatible
query I rowsort label-7370
SELECT - + COUNT ( * ) - 68 - NULLIF ( + - ( - + 69 ), COUNT ( * ) + - + COUNT ( * ) ) col0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT DISTINCT + COUNT( * ) * + - 91
----
-91

skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT + COUNT ( * ) * + - 91
----
-91

query I rowsort
SELECT ALL + 86 + 39 * ( + 65 ) AS col0
----
2621

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT - - 75 - + MIN( 71 ) + + + 38 - SUM( DISTINCT + - 19 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-7373
SELECT - - 75 - + MIN ( 71 ) + + + 38 - SUM ( DISTINCT + - 19 ) AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7374
SELECT ALL - + ( - 27 ) + - 52 * + AVG ( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL - + ( - 27 ) + - 52 * + AVG ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + ( - 9 ) + - 60 + + 69 * + - 33
----
-2346

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT DISTINCT MIN( DISTINCT + 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-7376
SELECT DISTINCT MIN ( DISTINCT + 65 ) AS col2
----
65

query I rowsort
SELECT ALL - 97 + + + ( - 26 )
----
-123

query I rowsort
SELECT - 22 + - 67 col2
----
-89

query I rowsort
SELECT ALL 28 + + + 13 AS col2
----
41

query I rowsort
SELECT - 99 + 27 + + + ( - 40 )
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT DISTINCT MIN( 27 )
----
27

skipif mysql # not compatible
query I rowsort label-7381
SELECT DISTINCT MIN ( 27 )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7382
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) + - 88 AS col2, CAST( NULL AS DECIMAL ) + - + 23 + - + CASE + ( - 70 ) WHEN 48 / ( - - 20 ) - 74 THEN 84 + + AVG ( + - ( - 79 ) ) ELSE - 8 / - 22 * CAST( ( + 55 ) AS DECIMAL ) * COALESCE ( - - 21, + 37, + 3 * + + 46 * + 77 ) + + 96 END * + 11
----
-87
NULL

skipif mysql # not compatible
query II rowsort label-7382
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + - 88 AS col2, CAST ( NULL AS REAL ) + - + 23 + - + CASE + ( - 70 ) WHEN 48 / ( - - 20 ) - 74 THEN 84 + + AVG ( + - ( - 79 ) ) ELSE - 8 / - 22 * CAST ( ( + 55 ) AS REAL ) * COALESCE ( - - 21, + 37, + 3 * + + 46 * + 77 ) + + 96 END * + 11
----
-87
NULL

query I rowsort
SELECT - 92 * + 34 col1
----
-3128

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT ALL MIN( ALL 58 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL MIN ( ALL 58 ) AS col0
----
58

query I rowsort
SELECT - 69 + 59 * 84 AS col2
----
4887

onlyif mysql # aggregate syntax: 
query II rowsort label-7386
SELECT + 97 col0, + 79 - - NULLIF ( + + COALESCE ( - 90, 56 + - 69, 94 ), - 75 ) + + COUNT( * ) - 55
----
97
-65

skipif mysql # not compatible
query II rowsort label-7386
SELECT + 97 col0, + 79 - - NULLIF ( + + COALESCE ( - 90, 56 + - 69, 94 ), - 75 ) + + COUNT ( * ) - 55
----
97
-65

query I rowsort
SELECT ( - ( - + 37 ) )
----
37

query II rowsort
SELECT 98 * - + 79 + + 40 - - + 69 + - 60 col1, 69
----
-7693
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT ALL + 29 / + CASE AVG ( ALL + 70 ) WHEN - - COUNT( * ) THEN - + 56 - - + 5 WHEN + - 86 THEN NULL ELSE - - 91 END - + + 52 * + + CASE - 36 WHEN CASE 71 WHEN 17 THEN NULL ELSE 53 * - - COUNT( * ) + + COUNT( * ) END THEN 23 WHEN COUNT( * ) THEN 21 + 88 * - 78 * + ( + MIN( 41 ) ) * + 12 + 68 * - COALESCE ( + 9, ( + 95 ) ) END - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-7389
SELECT ALL + 29 / + CASE AVG ( ALL + 70 ) WHEN - - COUNT ( * ) THEN - + 56 - - + 5 WHEN + - 86 THEN NULL ELSE - - 91 END - + + 52 * + + CASE - 36 WHEN CASE 71 WHEN 17 THEN NULL ELSE 53 * - - COUNT ( * ) + + COUNT ( * ) END THEN 23 WHEN COUNT ( * ) THEN 21 + 88 * - 78 * + ( + MIN ( 41 ) ) * + 12 + 68 * - COALESCE ( + 9, ( + 95 ) ) END - 24
----
NULL

query I rowsort
SELECT - 56 * 54 col1
----
-3024

query I rowsort
SELECT - 62 * - - 19 AS col0
----
-1178

onlyif mysql # DIV for integer division: 
query I rowsort label-7392
SELECT 34 DIV + + 32 + + - 89
----
-88

skipif mysql # not compatible
query I rowsort label-7392
SELECT 34 / + + 32 + + - 89
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT ( SUM( ALL - + 36 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-7393
SELECT ( SUM ( ALL - + 36 ) )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7394
SELECT - 26 + + CAST( NULL AS SIGNED ) * + 87 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7394
SELECT - 26 + + CAST ( NULL AS INTEGER ) * + 87 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7395
SELECT ALL + NULLIF ( + CAST( 19 AS SIGNED ), 89 * + COALESCE ( - + COUNT( * ), - CAST( NULL AS SIGNED ) + 71 ) ) * 82 + - 14 * - 31 - - 88 AS col0
----
2080

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL + NULLIF ( + CAST ( 19 AS INTEGER ), 89 * + COALESCE ( - + COUNT ( * ), - CAST ( NULL AS INTEGER ) + 71 ) ) * 82 + - 14 * - 31 - - 88 AS col0
----
2080

query I rowsort
SELECT - + 2 - 63
----
-65

query I rowsort
SELECT + + NULLIF ( - 5, 32 + - - 67 )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7398
SELECT ALL + CAST( + - 97 AS SIGNED ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL + CAST ( + - 97 AS INTEGER ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT COUNT( * ) * - - 73 * - - 41 - - + 40 + - COALESCE ( + ( - 13 ), - 84 ) AS col2
----
3046

skipif mysql # not compatible
query I rowsort label-7399
SELECT COUNT ( * ) * - - 73 * - - 41 - - + 40 + - COALESCE ( + ( - 13 ), - 84 ) AS col2
----
3046

query I rowsort
SELECT - AVG ( CASE + + 21 WHEN 98 THEN + - 70 WHEN + 89 THEN NULL WHEN ( + 41 ) + - 64 - - + 18 * + 18 * - 28 / - 55 THEN NULL ELSE NULL END ) * - 41
----
NULL

query I rowsort
SELECT + 54 + + - 83
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT DISTINCT - + 8 * + COUNT( * ) + + + 81
----
73

skipif mysql # not compatible
query I rowsort label-7402
SELECT DISTINCT - + 8 * + COUNT ( * ) + + + 81
----
73

query I rowsort
SELECT ALL + + ( - + ( 2 ) )
----
-2

query II rowsort
SELECT DISTINCT + + 47, - 25 AS col0
----
47
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT ALL + MIN( ALL + 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL + MIN ( ALL + 42 ) AS col0
----
42

query I rowsort
SELECT - + 45 + - 10 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT DISTINCT 82 * - - COUNT( * ) + 81 + - + 55 + + 56 * + - 59
----
-3196

skipif mysql # not compatible
query I rowsort label-7407
SELECT DISTINCT 82 * - - COUNT ( * ) + 81 + - + 55 + + 56 * + - 59
----
-3196

query II rowsort
SELECT DISTINCT + + 74 AS col1, 60 * + 94 col1
----
74
5640

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7409
SELECT ALL + COUNT( * ) AS col0, + COUNT( * ) DIV 79 * - - 65 col0
----
1
0

skipif mysql # not compatible
query II rowsort label-7409
SELECT ALL + COUNT ( * ) AS col0, + COUNT ( * ) / 79 * - - 65 col0
----
1
0

query I rowsort
SELECT + + CASE - + 62 WHEN - 57 THEN + 89 END / - - ( + 98 )
----
NULL

query I rowsort
SELECT ALL 41 * + ( - 36 ) * + 22 + + 57 * 0 * - - 84
----
-32472

query I rowsort
SELECT DISTINCT - NULLIF ( 26, - 45 ) * + - 69 + + 3
----
1797

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT + 84 + - - 86 + - - COUNT( * ) AS col1
----
171

skipif mysql # not compatible
query I rowsort label-7413
SELECT + 84 + - - 86 + - - COUNT ( * ) AS col1
----
171

query I rowsort
SELECT DISTINCT + NULLIF ( + 13, 65 ) * 48
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT + 99 * + 23 * + ( - - MIN( - 61 ) ) AS col0
----
-138897

skipif mysql # not compatible
query I rowsort label-7415
SELECT + 99 * + 23 * + ( - - MIN ( - 61 ) ) AS col0
----
-138897

query I rowsort
SELECT ALL - 92 + 24
----
-68

query II rowsort
SELECT ALL 82, - ( - + ( + ( 89 ) ) ) AS col2
----
82
89

query I rowsort
SELECT ALL 57 * - ( - - 88 ) * + + 29 AS col1
----
-145464

query I rowsort
SELECT - 69 * 97
----
-6693

query II rowsort
SELECT 80 AS col2, + 89
----
80
89

query I rowsort
SELECT ALL ( - + 7 ) col2
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7422
SELECT + 9 - + + 9 * + COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7422
SELECT + 9 - + + 9 * + COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + 67 AS col0, 55
----
67
55

query I rowsort
SELECT ALL + 30 * + + 42 AS col1
----
1260

onlyif mysql # DIV for integer division: 
query I rowsort label-7425
SELECT 67 DIV - + 94 + ( 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-7425
SELECT 67 / - + 94 + ( 28 ) AS col0
----
28

query II rowsort
SELECT + 17, 71 AS col1
----
17
71

query I rowsort
SELECT - 39 * - 66
----
2574

query I rowsort
SELECT 5 - + - 94 * - 12 * 97 AS col0
----
-109411

query I rowsort
SELECT + 52 * + - 24 * 73
----
-91104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7430
SELECT ALL - + 81 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL - + 81 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7431
SELECT DISTINCT + COUNT( * ) * + CASE COUNT( * ) WHEN - 90 * 79 + - 82 THEN + 49 + + - CAST( + 60 AS SIGNED ) ELSE 73 * - 14 - 25 * - 66 * - COUNT( * ) * - - 15 END - - - 10 - + 95 AS col1
----
-25877

skipif mysql # not compatible
query I rowsort label-7431
SELECT DISTINCT + COUNT ( * ) * + CASE COUNT ( * ) WHEN - 90 * 79 + - 82 THEN + 49 + + - CAST ( + 60 AS INTEGER ) ELSE 73 * - 14 - 25 * - 66 * - COUNT ( * ) * - - 15 END - - - 10 - + 95 AS col1
----
-25877

query I rowsort
SELECT + 5 * + - 41 AS col2
----
-205

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT 31 + + COUNT( * ) col1
----
32

skipif mysql # not compatible
query I rowsort label-7433
SELECT 31 + + COUNT ( * ) col1
----
32

query I rowsort
SELECT DISTINCT - 72 + - COALESCE ( + + 54, + + 97, - 5 * + - 14 ) AS col0
----
-126

query I rowsort
SELECT + - ( + 6 ) col1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7436
SELECT CAST( NULL AS SIGNED ) * + - ( + 55 ) + - + 44 - + + ( - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7436
SELECT CAST ( NULL AS INTEGER ) * + - ( + 55 ) + - + 44 - + + ( - COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT - 55 * - 70 AS col0
----
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT DISTINCT + 27 + - 78 - NULLIF ( + MAX( ALL - 63 ), + - 43 * 0 ) * - 36 * MAX( - + 27 ) AS col1
----
61185

skipif mysql # not compatible
query I rowsort label-7438
SELECT DISTINCT + 27 + - 78 - NULLIF ( + MAX ( ALL - 63 ), + - 43 * 0 ) * - 36 * MAX ( - + 27 ) AS col1
----
61185

query I rowsort
SELECT 41 + + 84 * - - 39 + - 94 AS col2
----
3223

onlyif mysql # aggregate syntax: 
query II rowsort label-7440
SELECT + + SUM( ALL 86 ) AS col0, - 22 + + ( - - 25 )
----
86
3

skipif mysql # not compatible
query II rowsort label-7440
SELECT + + SUM ( ALL 86 ) AS col0, - 22 + + ( - - 25 )
----
86
3

query I rowsort
SELECT ALL + 94 * 98 AS col1
----
9212

onlyif mysql # aggregate syntax: 
query II rowsort label-7442
SELECT - 11 AS col0, COUNT( + + NULLIF ( - - 91, 38 ) )
----
-11
1

skipif mysql # not compatible
query II rowsort label-7442
SELECT - 11 AS col0, COUNT ( + + NULLIF ( - - 91, 38 ) )
----
-11
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7443
SELECT 49, ( - NULLIF ( SUM( ALL 84 ), - 38 ) ) AS col2
----
49
-84

skipif mysql # not compatible
query II rowsort label-7443
SELECT 49, ( - NULLIF ( SUM ( ALL 84 ), - 38 ) ) AS col2
----
49
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT ALL + COUNT( * ) * - + 25
----
-25

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL + COUNT ( * ) * - + 25
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7445
SELECT ALL COALESCE ( CAST( - 61 AS SIGNED ), - 38 * - + 73 * - + 65 DIV - CAST( + 8 AS SIGNED ) DIV + + COUNT( + ( + 50 ) ) ) - - - NULLIF ( - - NULLIF ( + + 86, 31 ), COUNT( * ) ) + - 44 AS col0, - 42 AS col1
----
-191
-42

skipif mysql # not compatible
query II rowsort label-7445
SELECT ALL COALESCE ( CAST ( - 61 AS INTEGER ), - 38 * - + 73 * - + 65 / - CAST ( + 8 AS INTEGER ) / + + COUNT ( + ( + 50 ) ) ) - - - NULLIF ( - - NULLIF ( + + 86, 31 ), COUNT ( * ) ) + - 44 AS col0, - 42 AS col1
----
-191
-42

query I rowsort
SELECT 13 + + - 4 * 15 * 43 col2
----
-2567

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7447
SELECT 84 + 79 / + 40 * 18 + 68 + - CAST( - 1 AS DECIMAL ) - - - CAST( NULL AS SIGNED ) / - + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7447
SELECT 84 + 79 / + 40 * 18 + 68 + - CAST ( - 1 AS REAL ) - - - CAST ( NULL AS INTEGER ) / - + 98 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7448
SELECT COALESCE ( + 1, + CAST( 8 AS SIGNED ) ) * + - MAX( - + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-7448
SELECT COALESCE ( + 1, + CAST ( 8 AS INTEGER ) ) * + - MAX ( - + 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT SUM( 38 ) + - COUNT( 50 ) * + 65 * - 7 + - 38 * - + COUNT( * ) AS col1
----
531

skipif mysql # not compatible
query I rowsort label-7449
SELECT SUM ( 38 ) + - COUNT ( 50 ) * + 65 * - 7 + - 38 * - + COUNT ( * ) AS col1
----
531

query I rowsort
SELECT ( 32 ) + + - 13 + - - 25
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7451
SELECT COUNT( * ) + 99, + CAST( - - 68 AS SIGNED ) * 93 + 55 + - 15 - 98 * - 39 * + 61 * + 39 AS col0
----
100
9098902

skipif mysql # not compatible
query II rowsort label-7451
SELECT COUNT ( * ) + 99, + CAST ( - - 68 AS INTEGER ) * 93 + 55 + - 15 - 98 * - 39 * + 61 * + 39 AS col0
----
100
9098902

query I rowsort
SELECT 9 * + - ( - 3 )
----
27

query I rowsort
SELECT NULLIF ( - 3, 12 ) * 84 - ( 85 ) AS col1
----
-337

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7454
SELECT CAST( NULL AS SIGNED ) + 59 + 84 * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-7454
SELECT CAST ( NULL AS INTEGER ) + 59 + 84 * - 44
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7455
SELECT ALL CAST( NULL AS SIGNED ) * + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL CAST ( NULL AS INTEGER ) * + 38 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT NULLIF ( - 58, + COUNT( * ) ) + - 29 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-7456
SELECT NULLIF ( - 58, + COUNT ( * ) ) + - 29 AS col1
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-7457
SELECT ALL + 62 DIV - + 39
----
-1

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL + 62 / - + 39
----
-1

query I rowsort
SELECT ALL COALESCE ( - - 13, - 42 * - 23, - 3 * + 67 ) * + CASE + 85 WHEN + 40 THEN - - 92 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT DISTINCT ( - 57 ) * + 64 + COUNT( * ) AS col0
----
-3647

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT ( - 57 ) * + 64 + COUNT ( * ) AS col0
----
-3647

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT NULLIF ( 55, - MIN( DISTINCT - 80 ) - - 64 * + 25 ) * + ( - 28 ) AS col0
----
-1540

skipif mysql # not compatible
query I rowsort label-7460
SELECT NULLIF ( 55, - MIN ( DISTINCT - 80 ) - - 64 * + 25 ) * + ( - 28 ) AS col0
----
-1540

onlyif mysql # DIV for integer division: 
query I rowsort label-7461
SELECT + - 47 DIV + 87 + - - 25 + + 8 + + + 26
----
59

skipif mysql # not compatible
query I rowsort label-7461
SELECT + - 47 / + 87 + - - 25 + + 8 + + + 26
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT + 36 * - + MIN( ALL - 73 ) * + 29
----
76212

skipif mysql # not compatible
query I rowsort label-7462
SELECT + 36 * - + MIN ( ALL - 73 ) * + 29
----
76212

query I rowsort
SELECT DISTINCT - 83 + + 15 AS col1
----
-68

query I rowsort
SELECT ALL - 25 + + + 58 * - 19 + - 79 AS col0
----
-1206

query I rowsort
SELECT + 94 * 48
----
4512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7466
SELECT ALL + 34 * - ( - + ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL + 34 * - ( - + ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT + - 47 * 74 + + - COALESCE ( + + 24, 52 ) - + 85 AS col2
----
-3587

query II rowsort
SELECT DISTINCT 72 + - 59, - 70 AS col1
----
13
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-7469
SELECT ALL 90 + - ( 17 ) DIV + + 20 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL 90 + - ( 17 ) / + + 20 AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7470
SELECT + CASE COUNT( * ) WHEN + 57 THEN NULL WHEN + COUNT( * ) / + AVG ( + 16 ) * - COUNT( * ) + 88 THEN - COUNT( * ) END * COUNT( * ) * CAST( - - 90 AS DECIMAL ) - - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-7470
SELECT + CASE COUNT ( * ) WHEN + 57 THEN NULL WHEN + COUNT ( * ) / + AVG ( + 16 ) * - COUNT ( * ) + 88 THEN - COUNT ( * ) END * COUNT ( * ) * CAST ( - - 90 AS REAL ) - - 43
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7471
SELECT + 3 * - - 47 - 75 DIV MAX( - 19 ) * + COUNT( * ) + + 51 * + ( 80 ) AS col1
----
4224

skipif mysql # not compatible
query I rowsort label-7471
SELECT + 3 * - - 47 - 75 / MAX ( - 19 ) * + COUNT ( * ) + + 51 * + ( 80 ) AS col1
----
4224

onlyif mysql # DIV for integer division: 
query I rowsort label-7472
SELECT DISTINCT + 40 * ( + 38 ) * 98 DIV ( - 61 ) * - 83 AS col0
----
202603

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT + 40 * ( + 38 ) * 98 / ( - 61 ) * - 83 AS col0
----
202603

query I rowsort
SELECT 68 * - 60
----
-4080

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT CASE - 16 WHEN NULLIF ( 66, + COUNT( * ) + 13 + + 77 * + + 21 * + ( 51 ) ) * + COUNT( * ) THEN + - 82 WHEN - - 91 THEN NULL ELSE NULL END * - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-7474
SELECT CASE - 16 WHEN NULLIF ( 66, + COUNT ( * ) + 13 + + 77 * + + 21 * + ( 51 ) ) * + COUNT ( * ) THEN + - 82 WHEN - - 91 THEN NULL ELSE NULL END * - 91
----
NULL

query I rowsort
SELECT + 82 * 22 + + 41 * 6 AS col2
----
2050

onlyif mysql # DIV for integer division: 
query I rowsort label-7476
SELECT 86 DIV + 83
----
1

skipif mysql # not compatible
query I rowsort label-7476
SELECT 86 / + 83
----
1

query I rowsort
SELECT DISTINCT 75 + 52 * 61 + - 35 + - 51 * - 39 + - + ( - + 88 )
----
5289

query I rowsort
SELECT NULLIF ( - 57, + 14 ) - 18 AS col2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7479
SELECT ALL - - SUM( DISTINCT + 65 ) DIV 22 * - 83
----
-166

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL - - SUM ( DISTINCT + 65 ) / 22 * - 83
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT ALL - - COUNT( + 48 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL - - COUNT ( + 48 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - 47 - - 45 AS col2
----
-2

query I rowsort
SELECT ALL + 75 * 42
----
3150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7483
SELECT DISTINCT COUNT( * ) AS col0, + 55 * + CAST( NULL AS SIGNED ) * - NULLIF ( - MIN( ALL + 26 ), CASE - 12 WHEN - ( 67 ) * + 97 THEN - 44 / 49 WHEN + ( + - COUNT( * ) ) / 87 * + - 92 THEN NULL ELSE - 26 + - 17 - 80 - + + 49 / + + AVG ( 64 ) - 29 + + - 53 - - CAST( NULL AS SIGNED ) * MAX( ALL - + 85 ) / + + 20 - - 91 END )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7483
SELECT DISTINCT COUNT ( * ) AS col0, + 55 * + CAST ( NULL AS INTEGER ) * - NULLIF ( - MIN ( ALL + 26 ), CASE - 12 WHEN - ( 67 ) * + 97 THEN - 44 / 49 WHEN + ( + - COUNT ( * ) ) / 87 * + - 92 THEN NULL ELSE - 26 + - 17 - 80 - + + 49 / + + AVG ( 64 ) - 29 + + - 53 - - CAST ( NULL AS INTEGER ) * MAX ( ALL - + 85 ) / + + 20 - - 91 END )
----
1
NULL

query I rowsort
SELECT 9 * - 22
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-7485
SELECT ALL COALESCE ( - 40, 72 DIV - CASE + - 73 WHEN - 46 THEN 36 + + + 64 END + + NULLIF ( - 69, + 0 ) )
----
-40

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL COALESCE ( - 40, 72 / - CASE + - 73 WHEN - 46 THEN 36 + + + 64 END + + NULLIF ( - 69, + 0 ) )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7486
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - COALESCE ( - CASE - 98 WHEN + 38 THEN COUNT( * ) / COALESCE ( + 57, 30 / 2 / 39 + - 13 ) ELSE COUNT( * ) END, - 73, 90 + + 74 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - COALESCE ( - CASE - 98 WHEN + 38 THEN COUNT ( * ) / COALESCE ( + 57, 30 / 2 / 39 + - 13 ) ELSE COUNT ( * ) END, - 73, 90 + + 74 ) col2
----
NULL

query I rowsort
SELECT 22 * - + 92 * + 1 AS col2
----
-2024

query I rowsort
SELECT + 62 * - 27
----
-1674

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT - 74 + - COUNT( * ) col0
----
-75

skipif mysql # not compatible
query I rowsort label-7489
SELECT - 74 + - COUNT ( * ) col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT - 50 + + MIN( DISTINCT + 94 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7490
SELECT - 50 + + MIN ( DISTINCT + 94 ) AS col1
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-7491
SELECT ALL 20 DIV 2 * 57 AS col1
----
570

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL 20 / 2 * 57 AS col1
----
570

query I rowsort
SELECT - 26 + - 12 * 8
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT + 32 * MAX( ALL 47 ) AS col1
----
1504

skipif mysql # not compatible
query I rowsort label-7493
SELECT + 32 * MAX ( ALL 47 ) AS col1
----
1504

query II rowsort
SELECT 78, - 59 + + ( - 60 ) - 69 - + - 64 * 71 AS col2
----
78
4356

query I rowsort
SELECT DISTINCT 55 + - - 20
----
75

query I rowsort
SELECT + - NULLIF ( - + 18, 30 ) - + 79 AS col0
----
-61

query I rowsort
SELECT ALL - 85 + + 68 * + + 85 + - 18
----
5677

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7498
SELECT ALL 17 * - SUM( + + 90 ), - NULLIF ( + CAST( NULL AS SIGNED ), COUNT( * ) - - + 56 + + COUNT( * ) / + 49 * - + 1 ) - + COUNT( * ) AS col2
----
-1530
NULL

skipif mysql # not compatible
query II rowsort label-7498
SELECT ALL 17 * - SUM ( + + 90 ), - NULLIF ( + CAST ( NULL AS INTEGER ), COUNT ( * ) - - + 56 + + COUNT ( * ) / + 49 * - + 1 ) - + COUNT ( * ) AS col2
----
-1530
NULL

query II rowsort
SELECT + 0 col0, 62
----
0
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT DISTINCT + 35 * 94 + + COALESCE ( - 71, 75 ) + - + 28 + - - ( + CASE + 7 WHEN MAX( DISTINCT - 44 ) * - + ( + + 23 ) * 70 / - 86 + + COUNT( * ) THEN - + 68 END ) * - MIN( ALL - + 37 ) * - + 99 + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-7500
SELECT DISTINCT + 35 * 94 + + COALESCE ( - 71, 75 ) + - + 28 + - - ( + CASE + 7 WHEN MAX ( DISTINCT - 44 ) * - + ( + + 23 ) * 70 / - 86 + + COUNT ( * ) THEN - + 68 END ) * - MIN ( ALL - + 37 ) * - + 99 + + 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT ALL ( + 82 ) * + SUM( - - ( - 3 ) ) + COALESCE ( + + 10, + - 37, + + COUNT( * ) )
----
-236

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL ( + 82 ) * + SUM ( - - ( - 3 ) ) + COALESCE ( + + 10, + - 37, + + COUNT ( * ) )
----
-236

query I rowsort
SELECT + 58 + - 72 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT ALL + COALESCE ( + COUNT( * ), SUM( + - 12 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL + COALESCE ( + COUNT ( * ), SUM ( + - 12 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7504
SELECT DISTINCT + - COUNT( * ) col2, + 16 * - 55
----
-1
-880

skipif mysql # not compatible
query II rowsort label-7504
SELECT DISTINCT + - COUNT ( * ) col2, + 16 * - 55
----
-1
-880

onlyif mysql # aggregate syntax: 
query II rowsort label-7505
SELECT - 23, + ( COUNT( ALL - 38 ) ) col2
----
-23
1

skipif mysql # not compatible
query II rowsort label-7505
SELECT - 23, + ( COUNT ( ALL - 38 ) ) col2
----
-23
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT ALL - CASE COUNT( * ) WHEN + - 96 THEN + + NULLIF ( + + 19, - 73 ) * - 31 WHEN 64 THEN - - 54 END * - 87 + - 90 + - 21 - + + 18 / 98
----
NULL

skipif mysql # not compatible
query I rowsort label-7506
SELECT ALL - CASE COUNT ( * ) WHEN + - 96 THEN + + NULLIF ( + + 19, - 73 ) * - 31 WHEN 64 THEN - - 54 END * - 87 + - 90 + - 21 - + + 18 / 98
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7507
SELECT + + ( + + 58 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7507
SELECT + + ( + + 58 ) * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + + 68, 58 AS col0
----
68
58

query II rowsort
SELECT ALL + 3, 45 AS col1
----
3
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT + MIN( 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-7510
SELECT + MIN ( 25 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT ALL + COUNT( ALL 64 )
----
1

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL + COUNT ( ALL 64 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT ALL 79 * - - 35 - - + 51 + + 45 + + COUNT( * ) * + 12 * + + 78
----
3797

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL 79 * - - 35 - - + 51 + + 45 + + COUNT ( * ) * + 12 * + + 78
----
3797

onlyif mysql # DIV for integer division: 
query II rowsort label-7513
SELECT + 30 * - 12 + + 67 AS col0, 42 DIV + ( - ( - 73 ) ) - + - 99 AS col0
----
-293
99

skipif mysql # not compatible
query II rowsort label-7513
SELECT + 30 * - 12 + + 67 AS col0, 42 / + ( - ( - 73 ) ) - + - 99 AS col0
----
-293
99

query I rowsort
SELECT DISTINCT + 84 * - 29 AS col0
----
-2436

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7515
SELECT - 28 DIV + - COALESCE ( + 18, + COUNT( DISTINCT 59 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7515
SELECT - 28 / + - COALESCE ( + 18, + COUNT ( DISTINCT 59 ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7516
SELECT ALL 34 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL 34 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT + 40 + + 89 - COUNT( * )
----
128

skipif mysql # not compatible
query I rowsort label-7517
SELECT + 40 + + 89 - COUNT ( * )
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT - 46 * + + COUNT( ALL - 48 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-7518
SELECT - 46 * + + COUNT ( ALL - 48 ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT ALL - COUNT( * ) * - 21 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL - COUNT ( * ) * - 21 AS col0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-7520
SELECT ALL + CASE - 71 WHEN + 30 THEN + + 72 + COUNT( * ) + 72 / + 81 WHEN - + AVG ( DISTINCT + + 78 ) * + 75 THEN NULL END, - 89 AS col1
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-7520
SELECT ALL + CASE - 71 WHEN + 30 THEN + + 72 + COUNT ( * ) + 72 / + 81 WHEN - + AVG ( DISTINCT + + 78 ) * + 75 THEN NULL END, - 89 AS col1
----
NULL
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7521
SELECT + 34 + NULLIF ( - + CAST( NULL AS DECIMAL ), + 80 + 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7521
SELECT + 34 + NULLIF ( - + CAST ( NULL AS REAL ), + 80 + 70 )
----
NULL

query I rowsort
SELECT ALL ( + 49 ) AS col0
----
49

query I rowsort
SELECT - 40 * 6 + - 20 + - - 68 - 83 - 77 * + 16 * - 4 + + - 78 * + - COALESCE ( 80, 82, - 15 ) AS col0
----
10893

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT ALL SUM( DISTINCT + + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL SUM ( DISTINCT + + 36 )
----
36

query I rowsort
SELECT - 62 + + 2
----
-60

query I rowsort
SELECT + 74 + - - 3 * - ( - + 32 ) * - ( - 53 )
----
5162

query II rowsort
SELECT - 80 + - 4 AS col0, + 93 AS col1
----
-84
93

query I rowsort
SELECT DISTINCT COALESCE ( - 99, 55, + NULLIF ( - 65, + 9 ) * + ( - 49 ) ) AS col2
----
-99

query I rowsort
SELECT + 50 * 28
----
1400

query I rowsort
SELECT - 56 + - - 71 + - 0 * - 46 * + 71
----
15

query I rowsort
SELECT DISTINCT - 26 + + 77 * + 39 AS col2
----
2977

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT ALL + 72 + + 5 + 21 + - 19 - - COUNT( * ) * 28 AS col0
----
107

skipif mysql # not compatible
query I rowsort label-7532
SELECT ALL + 72 + + 5 + 21 + - 19 - - COUNT ( * ) * 28 AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT ALL - 8 + + ( ( + - 4 ) ) - + - COUNT( * ) col0
----
-11

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL - 8 + + ( ( + - 4 ) ) - + - COUNT ( * ) col0
----
-11

query I rowsort
SELECT - 20 + - + 6 + + 3
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-7535
SELECT ALL - 99 * + + MIN( DISTINCT - 8 ) * + COUNT( * ) col1, - 33
----
792
-33

skipif mysql # not compatible
query II rowsort label-7535
SELECT ALL - 99 * + + MIN ( DISTINCT - 8 ) * + COUNT ( * ) col1, - 33
----
792
-33

query I rowsort
SELECT - 76 + - ( - 58 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT - - MAX( 99 )
----
99

skipif mysql # not compatible
query I rowsort label-7537
SELECT - - MAX ( 99 )
----
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7538
SELECT ALL - ( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL - ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

query II rowsort
SELECT - 38 + - 79 col2, - 7 + + 19 - + 93 col2
----
-117
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-7540
SELECT - + 68 DIV 41 * + + COALESCE ( + 30, + 88 * - 63 ) + 58 * + 40 AS col2
----
2290

skipif mysql # not compatible
query I rowsort label-7540
SELECT - + 68 / 41 * + + COALESCE ( + 30, + 88 * - 63 ) + 58 * + 40 AS col2
----
2290

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT + - 62 + + - ( + ( + COUNT( * ) ) )
----
-63

skipif mysql # not compatible
query I rowsort label-7541
SELECT + - 62 + + - ( + ( + COUNT ( * ) ) )
----
-63

query I rowsort
SELECT - 51 * + - 95 col1
----
4845

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7543
SELECT - ( + + CAST( NULL AS SIGNED ) ), - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7543
SELECT - ( + + CAST ( NULL AS INTEGER ) ), - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7544
SELECT ALL CAST( NULL AS SIGNED ) / - 45 - - + 87 + - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL CAST ( NULL AS INTEGER ) / - 45 - - + 87 + - 90 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7545
SELECT ALL - 45 DIV - - 32 - + 51 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL - 45 / - - 32 - + 51 AS col2
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7546
SELECT - 78 DIV + CAST( - COUNT( * ) AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-7546
SELECT - 78 / + CAST ( - COUNT ( * ) AS INTEGER )
----
78

query II rowsort
SELECT ALL + 90 * - 15 AS col1, - 84
----
-1350
-84

query I rowsort
SELECT - + ( + + 81 ) + - 11 AS col1
----
-92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7549
SELECT ALL - 16 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL - 16 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 10 * 29 + + 50
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT DISTINCT - 99 * + ( + 53 ) * COUNT( * ) + + + 88 AS col2
----
-5159

skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT - 99 * + ( + 53 ) * COUNT ( * ) + + + 88 AS col2
----
-5159

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7552
SELECT ALL - CASE - COALESCE ( COUNT( * ), - 10 + - MAX( + - 63 ) - 14, - 23 * - - 45 ) WHEN + 92 THEN - 80 + - + ( 15 ) + + CAST( - - 24 AS DECIMAL ) * ( - 37 ) + + - 57 * + 55 / - + 52 * - 57 END * + COALESCE ( 19, - 18 + + - 23 + 98, - + ( - 75 ) / + AVG ( ALL - 65 ) ) * CASE 81 WHEN - 70 * - 36 + NULLIF ( 63, - 72 * NULLIF ( 27, - 84 ) ) THEN NULL ELSE - 64 END + 65 * - 89 + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL - CASE - COALESCE ( COUNT ( * ), - 10 + - MAX ( + - 63 ) - 14, - 23 * - - 45 ) WHEN + 92 THEN - 80 + - + ( 15 ) + + CAST ( - - 24 AS REAL ) * ( - 37 ) + + - 57 * + 55 / - + 52 * - 57 END * + COALESCE ( 19, - 18 + + - 23 + 98, - + ( - 75 ) / + AVG ( ALL - 65 ) ) * CASE 81 WHEN - 70 * - 36 + NULLIF ( 63, - 72 * NULLIF ( 27, - 84 ) ) THEN NULL ELSE - 64 END + 65 * - 89 + + 54
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7553
SELECT + 46 + + + COUNT( * ) + - + 4 * + - SUM( DISTINCT - 35 ), + 75 * - 99 AS col1
----
-93
-7425

skipif mysql # not compatible
query II rowsort label-7553
SELECT + 46 + + + COUNT ( * ) + - + 4 * + - SUM ( DISTINCT - 35 ), + 75 * - 99 AS col1
----
-93
-7425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7554
SELECT + 17 * - 46 DIV - COUNT( * )
----
782

skipif mysql # not compatible
query I rowsort label-7554
SELECT + 17 * - 46 / - COUNT ( * )
----
782

query I rowsort
SELECT + ( - + 48 ) AS col0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7556
SELECT 84 * + 7 - COALESCE ( - 44, - - 51 ) + - 60 + - 12 + - + ( + + 18 ) + + 67 DIV 58 + + 97 * - - COUNT( * ) col0
----
640

skipif mysql # not compatible
query I rowsort label-7556
SELECT 84 * + 7 - COALESCE ( - 44, - - 51 ) + - 60 + - 12 + - + ( + + 18 ) + + 67 / 58 + + 97 * - - COUNT ( * ) col0
----
640

query I rowsort
SELECT ALL 81 * 67 * - 27
----
-146529

onlyif mysql # DIV for integer division: 
query I rowsort label-7558
SELECT ALL - 3 + + 52 DIV + 31 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL - 3 + + 52 / + 31 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT 63 * - - MIN( ALL 83 ) AS col2
----
5229

skipif mysql # not compatible
query I rowsort label-7559
SELECT 63 * - - MIN ( ALL 83 ) AS col2
----
5229

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7560
SELECT CAST( NULL AS SIGNED ) * - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-7560
SELECT CAST ( NULL AS INTEGER ) * - 13
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7561
SELECT ALL 38 + - - NULLIF ( - 89, + CASE + 62 WHEN - CAST( NULL AS SIGNED ) * COUNT( * ) * - + 2 THEN + ( - 7 ) ELSE + 29 END ) + + + 3
----
-48

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL 38 + - - NULLIF ( - 89, + CASE + 62 WHEN - CAST ( NULL AS INTEGER ) * COUNT ( * ) * - + 2 THEN + ( - 7 ) ELSE + 29 END ) + + + 3
----
-48

query I rowsort
SELECT DISTINCT COALESCE ( - 36, - + 5, 16 ) + + 30
----
-6

query I rowsort
SELECT ALL 2 + - 18
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7564
SELECT ALL + 50 DIV - - ( + + 65 ) * - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL + 50 / - - ( + + 65 ) * - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT DISTINCT - 95 + + - 43
----
-138

query I rowsort
SELECT + 13 + - 81 * CASE - ( - 38 ) WHEN - 45 THEN - 16 * 32 END
----
NULL

query I rowsort
SELECT 84 + - 0
----
84

query I rowsort
SELECT - 40 + - ( + + 98 )
----
-138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7569
SELECT ALL - 11 - ( + + 5 ) DIV MIN( DISTINCT + + 24 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL - 11 - ( + + 5 ) / MIN ( DISTINCT + + 24 ) AS col0
----
-11

query I rowsort
SELECT 61 * + 82
----
5002

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT + 63 + COUNT( * ) - + 54 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-7571
SELECT + 63 + COUNT ( * ) - + 54 AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7572
SELECT ALL - 61 * + ( + 27 ) - - CAST( NULL AS SIGNED ) - 91 * + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL - 61 * + ( + 27 ) - - CAST ( NULL AS INTEGER ) - 91 * + 58
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7573
SELECT 54 + + 40 * + + 40 - - 80 - 73 AS col1, - 32 - 9 * + + 91 * ( + COUNT( * ) ) + + ( - ( + 59 ) ) col2
----
1661
-910

skipif mysql # not compatible
query II rowsort label-7573
SELECT 54 + + 40 * + + 40 - - 80 - 73 AS col1, - 32 - 9 * + + 91 * ( + COUNT ( * ) ) + + ( - ( + 59 ) ) col2
----
1661
-910

query I rowsort
SELECT ( + 11 ) * - 19 AS col1
----
-209

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7575
SELECT - CAST( NULL AS SIGNED ) * - 40 + - NULLIF ( - 36, + 53 ) AS col1, ( + 63 )
----
NULL
63

skipif mysql # not compatible
query II rowsort label-7575
SELECT - CAST ( NULL AS INTEGER ) * - 40 + - NULLIF ( - 36, + 53 ) AS col1, ( + 63 )
----
NULL
63

query I rowsort
SELECT ALL - + 29 AS col1
----
-29

query I rowsort
SELECT - 56 + + 63 AS col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7578
SELECT 15 DIV - 57 - + 44
----
-44

skipif mysql # not compatible
query I rowsort label-7578
SELECT 15 / - 57 - + 44
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT DISTINCT - + ( - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7579
SELECT DISTINCT - + ( - + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7580
SELECT ALL + - 12 DIV - - SUM( + 22 ) - - 59 - + - 51 - + 86
----
24

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL + - 12 / - - SUM ( + 22 ) - - 59 - + - 51 - + 86
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT + MIN( ALL 79 ) col0
----
79

skipif mysql # not compatible
query I rowsort label-7581
SELECT + MIN ( ALL 79 ) col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT DISTINCT - MAX( + 43 ) + + 39 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-7582
SELECT DISTINCT - MAX ( + 43 ) + + 39 AS col2
----
-4

query I rowsort
SELECT DISTINCT ( + 86 ) * 3 AS col0
----
258

query I rowsort
SELECT DISTINCT ( + 59 ) + - + 68
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7585
SELECT COUNT( * ) DIV - - 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7585
SELECT COUNT ( * ) / - - 59 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7586
SELECT DISTINCT + 98 * - 5 * - 43 * - 84 AS col0, CAST( + 34 AS SIGNED ) AS col2
----
-1769880
34

skipif mysql # not compatible
query II rowsort label-7586
SELECT DISTINCT + 98 * - 5 * - 43 * - 84 AS col0, CAST ( + 34 AS INTEGER ) AS col2
----
-1769880
34

query I rowsort
SELECT 8 * + 58 * + 80 + + ( + 64 )
----
37184

query I rowsort
SELECT 54 - - 83 + 16 * - - 72
----
1289

query I rowsort
SELECT - 32 * + - 32 + + 7 AS col1
----
1031

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT 37 + ( - COUNT( * ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-7590
SELECT 37 + ( - COUNT ( * ) ) AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7591
SELECT MAX( 48 ) * - + ( - + CAST( + 3 AS SIGNED ) ) AS col0
----
144

skipif mysql # not compatible
query I rowsort label-7591
SELECT MAX ( 48 ) * - + ( - + CAST ( + 3 AS INTEGER ) ) AS col0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT DISTINCT - ( + 58 ) + + MIN( ALL - 41 )
----
-99

skipif mysql # not compatible
query I rowsort label-7592
SELECT DISTINCT - ( + 58 ) + + MIN ( ALL - 41 )
----
-99

query II rowsort
SELECT ALL 52, 77 + + 29 AS col0
----
52
106

query I rowsort
SELECT ALL NULLIF ( 68, + - 75 ) + + 71 AS col0
----
139

query II rowsort
SELECT ALL 6, + ( - 29 ) * 72 AS col2
----
6
-2088

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT 72 + - COUNT( * ) * 73 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7596
SELECT 72 + - COUNT ( * ) * 73 AS col1
----
-1

query I rowsort
SELECT ALL 85 - - 87 + 91 AS col2
----
263

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7598
SELECT COUNT( * ) * - 57 AS col0, 15 DIV 41 AS col0
----
-57
0

skipif mysql # not compatible
query II rowsort label-7598
SELECT COUNT ( * ) * - 57 AS col0, 15 / 41 AS col0
----
-57
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7599
SELECT ALL 55 DIV - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL 55 / - 90 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT 50 + + COUNT( * ) * + 50
----
100

skipif mysql # not compatible
query I rowsort label-7600
SELECT 50 + + COUNT ( * ) * + 50
----
100

query II rowsort
SELECT - 85 AS col1, + 24 + + - 31 AS col1
----
-85
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7602
SELECT - MIN( CAST( NULL AS SIGNED ) ) + + + COALESCE ( CAST( NULL AS SIGNED ), 73 + - + 39 + - + 3 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7602
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) + + + COALESCE ( CAST ( NULL AS INTEGER ), 73 + - + 39 + - + 3 ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7603
SELECT DISTINCT 12 * - COUNT( + 11 ) + 78 + + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7603
SELECT DISTINCT 12 * - COUNT ( + 11 ) + 78 + + - CAST ( NULL AS REAL ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 97 AS col0, - 97 AS col2
----
97
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7605
SELECT DISTINCT - COUNT( * ) * + - ( - + 45 ) * COALESCE ( + 0, 54 * + - ( 39 ) * + CAST( - NULLIF ( - - 17, + 61 DIV + 74 + 18 ) AS SIGNED ) DIV - - CASE - + 64 WHEN 8 THEN + 65 * 37 + 1 END + 17 * - + 33 )
----
0

skipif mysql # not compatible
query I rowsort label-7605
SELECT DISTINCT - COUNT ( * ) * + - ( - + 45 ) * COALESCE ( + 0, 54 * + - ( 39 ) * + CAST ( - NULLIF ( - - 17, + 61 / + 74 + 18 ) AS INTEGER ) / - - CASE - + 64 WHEN 8 THEN + 65 * 37 + 1 END + 17 * - + 33 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT 55 - + + COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-7606
SELECT 55 - + + COUNT ( * ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-7607
SELECT ALL + COUNT( * ) AS col1, 33 col0
----
1
33

skipif mysql # not compatible
query II rowsort label-7607
SELECT ALL + COUNT ( * ) AS col1, 33 col0
----
1
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT ( + 79 ) * + COUNT( * ) * - - 84 * - + NULLIF ( 15, - 38 * - 32 + - + 99 + + - 14 )
----
-99540

skipif mysql # not compatible
query I rowsort label-7608
SELECT ( + 79 ) * + COUNT ( * ) * - - 84 * - + NULLIF ( 15, - 38 * - 32 + - + 99 + + - 14 )
----
-99540

query I rowsort
SELECT + 19 * + ( - 55 )
----
-1045

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7610
SELECT DISTINCT - 28 * 1 + - 12 + 44 AS col2, + 57 * - ( - CAST( NULL AS SIGNED ) ) AS col1
----
4
NULL

skipif mysql # not compatible
query II rowsort label-7610
SELECT DISTINCT - 28 * 1 + - 12 + 44 AS col2, + 57 * - ( - CAST ( NULL AS INTEGER ) ) AS col1
----
4
NULL

query I rowsort
SELECT ALL + 72 * - - 89
----
6408

onlyif mysql # aggregate syntax: 
query II rowsort label-7612
SELECT - 11 + - COUNT( * ) col1, 87
----
-12
87

skipif mysql # not compatible
query II rowsort label-7612
SELECT - 11 + - COUNT ( * ) col1, 87
----
-12
87

query II rowsort
SELECT DISTINCT + 30 * + 12, 53 AS col2
----
360
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT ALL + 44 * 11 + + CASE + 68 WHEN 13 THEN + 74 WHEN 61 + + 76 THEN + COUNT( DISTINCT + - 18 ) END * 36 * + - COALESCE ( + - COUNT( * ), - - ( + 76 ) * - 36 * 71 + + 92 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL + 44 * 11 + + CASE + 68 WHEN 13 THEN + 74 WHEN 61 + + 76 THEN + COUNT ( DISTINCT + - 18 ) END * 36 * + - COALESCE ( + - COUNT ( * ), - - ( + 76 ) * - 36 * 71 + + 92 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7615
SELECT + 75 * + - CAST( NULL AS SIGNED ), + 85 + + 28 AS col1
----
NULL
113

skipif mysql # not compatible
query II rowsort label-7615
SELECT + 75 * + - CAST ( NULL AS INTEGER ), + 85 + + 28 AS col1
----
NULL
113

query I rowsort
SELECT 21 * - 18 - 60 AS col1
----
-438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7617
SELECT - 57 + 57 * + COUNT( * ) - + CAST( + 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-7617
SELECT - 57 + 57 * + COUNT ( * ) - + CAST ( + 5 AS INTEGER )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT DISTINCT + COUNT( * ) * - NULLIF ( COUNT( * ), - - 54 + - 31 * - AVG ( 47 ) * 36 ) + + 92 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT + COUNT ( * ) * - NULLIF ( COUNT ( * ), - - 54 + - 31 * - AVG ( 47 ) * 36 ) + + 92 AS col1
----
91

query I rowsort
SELECT - ( - 68 ) + + 82 * + 76 AS col0
----
6300

onlyif mysql # DIV for integer division: 
query I rowsort label-7620
SELECT DISTINCT + 67 DIV 21
----
3

skipif mysql # not compatible
query I rowsort label-7620
SELECT DISTINCT + 67 / 21
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT DISTINCT - 51 * + + 31 * - 88 + + + COUNT( * ) * 53 AS col2
----
139181

skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT - 51 * + + 31 * - 88 + + + COUNT ( * ) * 53 AS col2
----
139181

query I rowsort
SELECT ALL 91 * + 26
----
2366

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT DISTINCT 39 * 24 * - + COUNT( * ) - + + 66
----
-1002

skipif mysql # not compatible
query I rowsort label-7623
SELECT DISTINCT 39 * 24 * - + COUNT ( * ) - + + 66
----
-1002

query I rowsort
SELECT ALL ( - - 47 ) * + 75 - 32
----
3493

query I rowsort
SELECT + 50 * - 1
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7626
SELECT ALL - 50 * CASE - CAST( NULL AS SIGNED ) WHEN + COUNT( - 3 ) - 20 THEN NULL WHEN + 70 THEN + - ( + NULLIF ( COUNT( * ), COUNT( * ) * - ( - + CASE 22 WHEN - ( - - 0 ) THEN + SUM( DISTINCT + + 92 ) + NULLIF ( - 91, + + 48 ) + 83 * + SUM( ALL + - 62 ) WHEN - - 44 THEN NULL END ) * COALESCE ( - + 52, - ( + 36 ) * - 85 ) * + 2 - - - AVG ( + - CASE WHEN ( 57 ) >= - 76 THEN 28 + + 35 ELSE NULL END ) ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL - 50 * CASE - CAST ( NULL AS INTEGER ) WHEN + COUNT ( - 3 ) - 20 THEN NULL WHEN + 70 THEN + - ( + NULLIF ( COUNT ( * ), COUNT ( * ) * - ( - + CASE 22 WHEN - ( - - 0 ) THEN + SUM ( DISTINCT + + 92 ) + NULLIF ( - 91, + + 48 ) + 83 * + SUM ( ALL + - 62 ) WHEN - - 44 THEN NULL END ) * COALESCE ( - + 52, - ( + 36 ) * - 85 ) * + 2 - - - AVG ( + - CASE WHEN ( 57 ) >= - 76 THEN 28 + + 35 ELSE NULL END ) ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT DISTINCT + 95 * MIN( ALL - - ( - - 6 ) )
----
570

skipif mysql # not compatible
query I rowsort label-7627
SELECT DISTINCT + 95 * MIN ( ALL - - ( - - 6 ) )
----
570

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT SUM( ALL 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-7628
SELECT SUM ( ALL 89 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT ALL 49 - + 40 + + 61 + + COUNT( * ) * 83 * 19
----
1647

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL 49 - + 40 + + 61 + + COUNT ( * ) * 83 * 19
----
1647

query I rowsort
SELECT - COALESCE ( ( + 5 ), - 95, 48 * - + COALESCE ( + 79, - 46 ) - - 20 ) col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7631
SELECT - + 5 * 94 DIV + - 80 + - 39 * + ( + + 56 ) AS col0
----
-2179

skipif mysql # not compatible
query I rowsort label-7631
SELECT - + 5 * 94 / + - 80 + - 39 * + ( + + 56 ) AS col0
----
-2179

query I rowsort
SELECT DISTINCT ( 33 )
----
33

query I rowsort
SELECT - 98 + + + 85 + - 63 AS col2
----
-76

query II rowsort
SELECT ( - 79 ) AS col2, 20
----
-79
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7635
SELECT ALL MAX( CASE - CAST( - 34 AS SIGNED ) WHEN + - 98 THEN NULL WHEN - 92 THEN 19 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL MAX ( CASE - CAST ( - 34 AS INTEGER ) WHEN + - 98 THEN NULL WHEN - 92 THEN 19 END ) AS col2
----
NULL

query I rowsort
SELECT + - 79 + 33
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7637
SELECT ALL - 68 * + 56 + - + COALESCE ( + 94, COUNT( * ) * + 6 * - NULLIF ( + 96, 61 DIV + 33 ) * + 76 * SUM( - - 51 ) DIV + 41 )
----
-3902

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL - 68 * + 56 + - + COALESCE ( + 94, COUNT ( * ) * + 6 * - NULLIF ( + 96, 61 / + 33 ) * + 76 * SUM ( - - 51 ) / + 41 )
----
-3902

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7638
SELECT + ( + COALESCE ( - 21, + - COUNT( * ), + - 23 ) ) DIV + + 57
----
0

skipif mysql # not compatible
query I rowsort label-7638
SELECT + ( + COALESCE ( - 21, + - COUNT ( * ), + - 23 ) ) / + + 57
----
0

query I rowsort
SELECT ALL 87 + - 41
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT + 61 + + MAX( ALL + - 73 )
----
-12

skipif mysql # not compatible
query I rowsort label-7640
SELECT + 61 + + MAX ( ALL + - 73 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7641
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), - 44 ) * + + NULLIF ( - ( + 86 ), + + AVG ( 89 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), - 44 ) * + + NULLIF ( - ( + 86 ), + + AVG ( 89 ) ) AS col0
----
NULL

query I rowsort
SELECT + 74 + + + 32 AS col0
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7643
SELECT CAST( + 13 AS SIGNED ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-7643
SELECT CAST ( + 13 AS INTEGER ) AS col0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-7644
SELECT + 75 DIV 18 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-7644
SELECT + 75 / 18 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7645
SELECT + ( + ( CAST( - 41 AS SIGNED ) ) )
----
-41

skipif mysql # not compatible
query I rowsort label-7645
SELECT + ( + ( CAST ( - 41 AS INTEGER ) ) )
----
-41

query I rowsort
SELECT - 16 + 55 + - 75 * - 58 * + 6 AS col1
----
26139

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT ( - - NULLIF ( - 85, + COUNT( - ( + - 39 ) ) * - + 12 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-7647
SELECT ( - - NULLIF ( - 85, + COUNT ( - ( + - 39 ) ) * - + 12 ) )
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7648
SELECT + CAST( + + 61 AS SIGNED ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-7648
SELECT + CAST ( + + 61 AS INTEGER ) AS col2
----
61

query I rowsort
SELECT ALL + 81 * 1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7650
SELECT DISTINCT - 7 * + + 22 * CASE 46 WHEN COALESCE ( + CAST( 22 AS SIGNED ), - MAX( DISTINCT - 46 ) * - - 63 - + 27 * + 13, - COUNT( - - 78 ) ) + - 82 * 20 * + COUNT( * ) THEN - MAX( ALL - + 83 ) ELSE NULL END * - 78 * + NULLIF ( + ( + - 21 ), + - CASE 8 WHEN - 11 THEN + 38 * - 89 END ) - - 92 * + 99 + - 84 + 56 + 20 * - 76 * 60 * - + CAST( 35 AS SIGNED ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT - 7 * + + 22 * CASE 46 WHEN COALESCE ( + CAST ( 22 AS INTEGER ), - MAX ( DISTINCT - 46 ) * - - 63 - + 27 * + 13, - COUNT ( - - 78 ) ) + - 82 * 20 * + COUNT ( * ) THEN - MAX ( ALL - + 83 ) ELSE NULL END * - 78 * + NULLIF ( + ( + - 21 ), + - CASE 8 WHEN - 11 THEN + 38 * - 89 END ) - - 92 * + 99 + - 84 + 56 + 20 * - 76 * 60 * - + CAST ( 35 AS INTEGER ) * + + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL + 92 AS col0, 75
----
92
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7652
SELECT DISTINCT + 63 * + 96 * - 63, + 73 * + NULLIF ( - - 47, CAST( + - 40 AS SIGNED ) / + COUNT( * ) ) AS col2
----
-381024
3431

skipif mysql # not compatible
query II rowsort label-7652
SELECT DISTINCT + 63 * + 96 * - 63, + 73 * + NULLIF ( - - 47, CAST ( + - 40 AS INTEGER ) / + COUNT ( * ) ) AS col2
----
-381024
3431

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT - ( - CASE - 63 WHEN + COUNT( * ) * 97 - 11 THEN + 9 ELSE 89 END ) + 50
----
139

skipif mysql # not compatible
query I rowsort label-7653
SELECT - ( - CASE - 63 WHEN + COUNT ( * ) * 97 - 11 THEN + 9 ELSE 89 END ) + 50
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7654
SELECT ALL + CAST( NULL AS SIGNED ), ( - 63 ) AS col1
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-7654
SELECT ALL + CAST ( NULL AS INTEGER ), ( - 63 ) AS col1
----
NULL
-63

query II rowsort
SELECT ( + ( - + 81 ) ), 67 AS col2
----
-81
67

query I rowsort
SELECT ALL 80 * + 43 AS col2
----
3440

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT + MIN( ALL - 40 ) + - 36 * - 82 AS col0
----
2912

skipif mysql # not compatible
query I rowsort label-7657
SELECT + MIN ( ALL - 40 ) + - 36 * - 82 AS col0
----
2912

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7658
SELECT + CAST( NULL AS SIGNED ) AS col0, + 10 AS col1
----
NULL
10

skipif mysql # not compatible
query II rowsort label-7658
SELECT + CAST ( NULL AS INTEGER ) AS col0, + 10 AS col1
----
NULL
10

query I rowsort
SELECT ( - + 31 )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7660
SELECT + CASE ( - 93 ) WHEN + NULLIF ( - 8, 72 ) + + + 85 * 4 THEN - ( + CAST( - + 19 AS SIGNED ) ) * + + 12 * 15 * + 94 WHEN - - 28 THEN NULL ELSE NULL END * + AVG ( DISTINCT - 94 ) + CASE + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) WHEN - 7 THEN - - NULLIF ( 7, - + 30 ) + MIN( 53 ) + - COALESCE ( 58, - - CASE + - 53 WHEN - CAST( NULL AS DECIMAL ) / + ( - 34 ) THEN NULL WHEN + + 69 THEN + ( + - 26 ) + + - 14 END + 67 ) * - SUM( DISTINCT + 55 * - 58 ) ELSE 10 + 3 END + + 59 / + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7660
SELECT + CASE ( - 93 ) WHEN + NULLIF ( - 8, 72 ) + + + 85 * 4 THEN - ( + CAST ( - + 19 AS INTEGER ) ) * + + 12 * 15 * + 94 WHEN - - 28 THEN NULL ELSE NULL END * + AVG ( DISTINCT - 94 ) + CASE + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) WHEN - 7 THEN - - NULLIF ( 7, - + 30 ) + MIN ( 53 ) + - COALESCE ( 58, - - CASE + - 53 WHEN - CAST ( NULL AS REAL ) / + ( - 34 ) THEN NULL WHEN + + 69 THEN + ( + - 26 ) + + - 14 END + 67 ) * - SUM ( DISTINCT + 55 * - 58 ) ELSE 10 + 3 END + + 59 / + 22 AS col0
----
NULL

query I rowsort
SELECT - CASE + 50 WHEN - + 67 - - 12 * 94 THEN - - 0 END - - ( - 63 ) + + - 26 + 59 AS col1
----
NULL

query I rowsort
SELECT - 26 * + + 89 * + 26
----
-60164

query I rowsort
SELECT 18 * - NULLIF ( - 52, - 92 ) * + 12 + 45 + + + 86 AS col2
----
11363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7664
SELECT - 2 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7664
SELECT - 2 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 58, + + 32 ) AS col1
----
58

query I rowsort
SELECT COALESCE ( - 86, - 35 ) AS col2
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7667
SELECT DISTINCT + 10 AS col2, - 50 * 58 + - 93 + - 27 * - 10 + - ( - CASE - - 27 WHEN - - 94 THEN - COUNT( * ) * - + CAST( NULL AS SIGNED ) * + 25 * - 97 + - 72 + - - COUNT( * ) ELSE - - 11 + + + 82 + - 66 + - 32 + - - CAST( NULL AS SIGNED ) * 84 * + 34 + - CAST( NULL AS SIGNED ) * - 8 END ) + + 90 AS col1
----
10
NULL

skipif mysql # not compatible
query II rowsort label-7667
SELECT DISTINCT + 10 AS col2, - 50 * 58 + - 93 + - 27 * - 10 + - ( - CASE - - 27 WHEN - - 94 THEN - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * + 25 * - 97 + - 72 + - - COUNT ( * ) ELSE - - 11 + + + 82 + - 66 + - 32 + - - CAST ( NULL AS INTEGER ) * 84 * + 34 + - CAST ( NULL AS INTEGER ) * - 8 END ) + + 90 AS col1
----
10
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7668
SELECT - - 34 DIV - - 13 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7668
SELECT - - 34 / - - 13 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7669
SELECT ALL - COUNT( * ) DIV - + ( - 4 ) DIV - + 73 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL - COUNT ( * ) / - + ( - 4 ) / - + 73 / 52
----
0

query I rowsort
SELECT - 15 + - 68
----
-83

query II rowsort
SELECT ALL + 72 col2, - 18 AS col0
----
72
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT ALL 73 * + COUNT( * ) * - + 94 AS col2
----
-6862

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL 73 * + COUNT ( * ) * - + 94 AS col2
----
-6862

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT - 42 + 37 - - + COUNT( * ) - - NULLIF ( 0, + + COUNT( DISTINCT - ( 37 ) ) + 91 ) * - + ( 87 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7673
SELECT - 42 + 37 - - + COUNT ( * ) - - NULLIF ( 0, + + COUNT ( DISTINCT - ( 37 ) ) + 91 ) * - + ( 87 ) AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7674
SELECT ALL - - 81 / - 28 * COUNT( * ) / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7674
SELECT ALL - - 81 / - 28 * COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7675
SELECT - - CAST( NULL AS SIGNED ) AS col1, 78 col2
----
NULL
78

skipif mysql # not compatible
query II rowsort label-7675
SELECT - - CAST ( NULL AS INTEGER ) AS col1, 78 col2
----
NULL
78

query II rowsort
SELECT - 26, - 86 AS col2
----
-26
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT + - CASE WHEN NOT NULL NOT BETWEEN NULL AND 88 THEN ( - 71 ) ELSE + + CASE COUNT( * ) WHEN - 26 + ( - - ( - - 0 ) ) * 26 / - MIN( + 5 ) * - 38 THEN 20 END * - 2 - 8 + - 7 END + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7677
SELECT + - CASE WHEN NOT NULL NOT BETWEEN NULL AND 88 THEN ( - 71 ) ELSE + + CASE COUNT ( * ) WHEN - 26 + ( - - ( - - 0 ) ) * 26 / - MIN ( + 5 ) * - 38 THEN 20 END * - 2 - 8 + - 7 END + 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7678
SELECT ALL + 71 * - CASE + 45 WHEN - 30 - + 27 - + + 31 + - NULLIF ( + - 44, + 92 ) THEN NULL WHEN COUNT( * ) * - + CAST( NULL AS SIGNED ) THEN + 60 ELSE NULL END * + COUNT( * ), MAX( DISTINCT - 22 ) AS col0
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-7678
SELECT ALL + 71 * - CASE + 45 WHEN - 30 - + 27 - + + 31 + - NULLIF ( + - 44, + 92 ) THEN NULL WHEN COUNT ( * ) * - + CAST ( NULL AS INTEGER ) THEN + 60 ELSE NULL END * + COUNT ( * ), MAX ( DISTINCT - 22 ) AS col0
----
NULL
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT + + 2 + - - 50 * + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-7679
SELECT + + 2 + - - 50 * + COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT - - 33 * - MIN( DISTINCT 22 ) AS col1
----
-726

skipif mysql # not compatible
query I rowsort label-7680
SELECT - - 33 * - MIN ( DISTINCT 22 ) AS col1
----
-726

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT + MAX( + 5 ) + + + 20
----
25

skipif mysql # not compatible
query I rowsort label-7681
SELECT + MAX ( + 5 ) + + + 20
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT DISTINCT - + ( + ( COUNT( * ) ) ) + + + ( 40 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT - + ( + ( COUNT ( * ) ) ) + + + ( 40 ) AS col1
----
39

query I rowsort
SELECT ALL 75 + - + 3
----
72

query I rowsort
SELECT DISTINCT - ( 62 ) + - 32 * + 12 AS col1
----
-446

query I rowsort
SELECT DISTINCT - 78 * - 73
----
5694

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT - SUM( + - 38 ) * NULLIF ( - 57, - 91 )
----
-2166

skipif mysql # not compatible
query I rowsort label-7686
SELECT - SUM ( + - 38 ) * NULLIF ( - 57, - 91 )
----
-2166

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7687
SELECT ALL + COALESCE ( - 99, - + 51 * + CASE - 26 WHEN - - 16 * CAST( 22 AS SIGNED ) THEN - 7 END DIV 24 * + - 39 ), + 37 DIV + + 17 AS col0
----
-99
2

skipif mysql # not compatible
query II rowsort label-7687
SELECT ALL + COALESCE ( - 99, - + 51 * + CASE - 26 WHEN - - 16 * CAST ( 22 AS INTEGER ) THEN - 7 END / 24 * + - 39 ), + 37 / + + 17 AS col0
----
-99
2

query I rowsort
SELECT ALL + 86 + + - 91 AS col2
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7689
SELECT 87 - COALESCE ( - + 96, - + CAST( - - 93 AS SIGNED ) )
----
183

skipif mysql # not compatible
query I rowsort label-7689
SELECT 87 - COALESCE ( - + 96, - + CAST ( - - 93 AS INTEGER ) )
----
183

onlyif mysql # aggregate syntax: 
query II rowsort label-7690
SELECT - + COUNT( * ) col1, 54
----
-1
54

skipif mysql # not compatible
query II rowsort label-7690
SELECT - + COUNT ( * ) col1, 54
----
-1
54

query I rowsort
SELECT 21 * 5 AS col2
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7692
SELECT ALL 46 / - + SUM( + 97 ) * CAST( NULL AS SIGNED ) * + 67 + COUNT( * ) + + - 24 * + AVG ( DISTINCT - 47 ) / - + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL 46 / - + SUM ( + 97 ) * CAST ( NULL AS INTEGER ) * + 67 + COUNT ( * ) + + - 24 * + AVG ( DISTINCT - 47 ) / - + 43 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7693
SELECT DISTINCT 81 * + + COUNT( * ) * - COALESCE ( 76, + NULLIF ( + ( + 52 ), + 20 * 39 + - 27 + + 4 - + ( + + 74 ) * - CAST( NULL AS SIGNED ) * 92 ) + + - ( - 92 ), - - 8 - + 31 ) * ( - 55 )
----
338580

skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT 81 * + + COUNT ( * ) * - COALESCE ( 76, + NULLIF ( + ( + 52 ), + 20 * 39 + - 27 + + 4 - + ( + + 74 ) * - CAST ( NULL AS INTEGER ) * 92 ) + + - ( - 92 ), - - 8 - + 31 ) * ( - 55 )
----
338580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7694
SELECT DISTINCT + COUNT( * ) - - 96 - - - CASE - CAST( - 25 AS SIGNED ) WHEN - 8 THEN ( + 76 ) * + + COUNT( * ) + 54 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT DISTINCT + COUNT ( * ) - - 96 - - - CASE - CAST ( - 25 AS INTEGER ) WHEN - 8 THEN ( + 76 ) * + + COUNT ( * ) + 54 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7695
SELECT + COALESCE ( + 83, + - 14 ) * - + MIN( ALL + + 19 ) - + - CAST( NULL AS SIGNED ) + + - 43 * + - COUNT( * ) + - 96 AS col2, + COUNT( * ) / + 21 / + AVG ( ALL + CAST( NULL AS SIGNED ) ) + - 95 + 32
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7695
SELECT + COALESCE ( + 83, + - 14 ) * - + MIN ( ALL + + 19 ) - + - CAST ( NULL AS INTEGER ) + + - 43 * + - COUNT ( * ) + - 96 AS col2, + COUNT ( * ) / + 21 / + AVG ( ALL + CAST ( NULL AS INTEGER ) ) + - 95 + 32
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT DISTINCT COUNT( * ) * - - 70 col1
----
70

skipif mysql # not compatible
query I rowsort label-7696
SELECT DISTINCT COUNT ( * ) * - - 70 col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT SUM( DISTINCT 46 ) * + 18 + + + 10 * - ( 41 ) AS col2
----
418

skipif mysql # not compatible
query I rowsort label-7697
SELECT SUM ( DISTINCT 46 ) * + 18 + + + 10 * - ( 41 ) AS col2
----
418

onlyif mysql # DIV for integer division: 
query I rowsort label-7698
SELECT ALL 32 DIV 5
----
6

skipif mysql # not compatible
query I rowsort label-7698
SELECT ALL 32 / 5
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT 7 + SUM( + + 72 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-7699
SELECT 7 + SUM ( + + 72 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT DISTINCT - COUNT( * ) * - 76
----
76

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT - COUNT ( * ) * - 76
----
76

query I rowsort
SELECT ALL - - 74 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT DISTINCT MAX( DISTINCT - 71 ) + + NULLIF ( + 68, + 72 * + 41 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT MAX ( DISTINCT - 71 ) + + NULLIF ( + 68, + 72 * + 41 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT ALL - - COUNT( * ) * - + SUM( DISTINCT + - 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL - - COUNT ( * ) * - + SUM ( DISTINCT + - 61 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-7704
SELECT DISTINCT - COUNT( * ) + - 62, + 83 AS col2
----
-63
83

skipif mysql # not compatible
query II rowsort label-7704
SELECT DISTINCT - COUNT ( * ) + - 62, + 83 AS col2
----
-63
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7705
SELECT + + MIN( COALESCE ( - 45, - - 39, 38 ) ) * - COUNT( * ) - COUNT( * ) - - + 41 + - 74 * + 98 AS col1, + ( + + ( - COUNT( * ) ) ) * - 95 AS col1
----
-7167
95

skipif mysql # not compatible
query II rowsort label-7705
SELECT + + MIN ( COALESCE ( - 45, - - 39, 38 ) ) * - COUNT ( * ) - COUNT ( * ) - - + 41 + - 74 * + 98 AS col1, + ( + + ( - COUNT ( * ) ) ) * - 95 AS col1
----
-7167
95

query I rowsort
SELECT - ( + 66 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT - 80 * - 21 + COUNT( * ) + + 26 + 93 + - 5 - - - 41 - 80
----
1674

skipif mysql # not compatible
query I rowsort label-7707
SELECT - 80 * - 21 + COUNT ( * ) + + 26 + 93 + - 5 - - - 41 - 80
----
1674

query II rowsort
SELECT ALL + 42 + + + 28 AS col2, - 40 * 95 * 28 * - 41 AS col0
----
70
4362400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7709
SELECT DISTINCT + + 16 + CAST( NULL AS SIGNED ) / - + COALESCE ( 31, - 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT + + 16 + CAST ( NULL AS INTEGER ) / - + COALESCE ( 31, - 80 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7710
SELECT ALL - MIN( ALL 99 ) + - + 22 + COUNT( * ), - ( + 71 ) * 89 + - - 58 AS col2
----
-120
-6261

skipif mysql # not compatible
query II rowsort label-7710
SELECT ALL - MIN ( ALL 99 ) + - + 22 + COUNT ( * ), - ( + 71 ) * 89 + - - 58 AS col2
----
-120
-6261

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT + 16 - - - COUNT( * ) + + 13
----
28

skipif mysql # not compatible
query I rowsort label-7711
SELECT + 16 - - - COUNT ( * ) + + 13
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT DISTINCT + 49 + - COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-7712
SELECT DISTINCT + 49 + - COUNT ( * ) AS col2
----
48

query I rowsort
SELECT ALL - - 74 + 64
----
138

query I rowsort
SELECT 2 + + 41
----
43

query I rowsort
SELECT - 79 - + 27 AS col2
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7716
SELECT ALL + + 61 * + 29 + + - CASE + - 90 WHEN + - COUNT( * ) THEN + + CASE 65 WHEN + 29 * - MIN( + 71 ) * - - ( + 62 ) + - ( - - 68 ) + - 50 + 81 + + - 85 + - + 83 THEN NULL WHEN - - 86 THEN NULL ELSE 23 END + - 72 + 49 * 4 WHEN - 19 - CAST( NULL AS SIGNED ) - + CAST( 85 AS SIGNED ) * + 55 THEN NULL END + - ( - 12 ) * - - ( 18 ) * + - ( 92 ) * + 39 * - 75 + + + MIN( - 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL + + 61 * + 29 + + - CASE + - 90 WHEN + - COUNT ( * ) THEN + + CASE 65 WHEN + 29 * - MIN ( + 71 ) * - - ( + 62 ) + - ( - - 68 ) + - 50 + 81 + + - 85 + - + 83 THEN NULL WHEN - - 86 THEN NULL ELSE 23 END + - 72 + 49 * 4 WHEN - 19 - CAST ( NULL AS INTEGER ) - + CAST ( 85 AS INTEGER ) * + 55 THEN NULL END + - ( - 12 ) * - - ( 18 ) * + - ( 92 ) * + 39 * - 75 + + + MIN ( - 53 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT COUNT( * ) * + COUNT( * ) * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7717
SELECT COUNT ( * ) * + COUNT ( * ) * + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7718
SELECT 31 + - 79 + CAST( 48 AS SIGNED ) * + 58 * + 20 AS col0
----
55632

skipif mysql # not compatible
query I rowsort label-7718
SELECT 31 + - 79 + CAST ( 48 AS INTEGER ) * + 58 * + 20 AS col0
----
55632

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT 66 * + ( - COUNT( * ) )
----
-66

skipif mysql # not compatible
query I rowsort label-7719
SELECT 66 * + ( - COUNT ( * ) )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7720
SELECT ALL 71 AS col1, - 47 * - - CAST( + 52 AS SIGNED )
----
71
-2444

skipif mysql # not compatible
query II rowsort label-7720
SELECT ALL 71 AS col1, - 47 * - - CAST ( + 52 AS INTEGER )
----
71
-2444

query I rowsort
SELECT 56 + - 10 + - 26
----
20

query II rowsort
SELECT ALL 27, + 85 + - 46 col0
----
27
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7723
SELECT ALL - COUNT( * ), - 20 AS col2
----
-1
-20

skipif mysql # not compatible
query II rowsort label-7723
SELECT ALL - COUNT ( * ), - 20 AS col2
----
-1
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7724
SELECT 46 DIV COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-7724
SELECT 46 / COUNT ( * )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7725
SELECT 82 * + - COUNT( * ) DIV COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-7725
SELECT 82 * + - COUNT ( * ) / COUNT ( * )
----
-82

query I rowsort
SELECT 72 * - 26 * 43 AS col0
----
-80496

query I rowsort
SELECT ALL 26 * + 14 AS col1
----
364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7728
SELECT DISTINCT + 46 DIV - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-7728
SELECT DISTINCT + 46 / - COUNT ( * )
----
-46

query II rowsort
SELECT + 57 AS col1, - 5 AS col1
----
57
-5

query I rowsort
SELECT ALL - 62 col0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-7731
SELECT COUNT( DISTINCT + + 12 ) * - 86 AS col0, COUNT( * )
----
-86
1

skipif mysql # not compatible
query II rowsort label-7731
SELECT COUNT ( DISTINCT + + 12 ) * - 86 AS col0, COUNT ( * )
----
-86
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7732
SELECT - 11 * 65 DIV 26
----
-27

skipif mysql # not compatible
query I rowsort label-7732
SELECT - 11 * 65 / 26
----
-27

query I rowsort
SELECT 30 + - 23 AS col2
----
7

query I rowsort
SELECT + ( - - 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7735
SELECT DISTINCT + 13 + 17 + + + 76 + - ( + 81 ), COUNT( * ) * - + 6 AS col1
----
25
-6

skipif mysql # not compatible
query II rowsort label-7735
SELECT DISTINCT + 13 + 17 + + + 76 + - ( + 81 ), COUNT ( * ) * - + 6 AS col1
----
25
-6

query I rowsort
SELECT ALL + 80 + ( - + 3 ) + + 4 col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT + + 75 + + COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-7737
SELECT + + 75 + + COUNT ( * ) AS col1
----
76

query I rowsort
SELECT + - 0 + 59
----
59

query I rowsort
SELECT DISTINCT - 89 * 0 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7740
SELECT ALL AVG ( + + 48 ) + + + 39 - - CAST( NULL AS SIGNED ) * + 98 * - - 6 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL AVG ( + + 48 ) + + + 39 - - CAST ( NULL AS INTEGER ) * + 98 * - - 6 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 41 + - 24
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7742
SELECT + 80 * - CAST( - 63 AS SIGNED )
----
5040

skipif mysql # not compatible
query I rowsort label-7742
SELECT + 80 * - CAST ( - 63 AS INTEGER )
----
5040

onlyif mysql # aggregate syntax: 
query II rowsort label-7743
SELECT - MAX( - - 30 ) * - + 14, 13 + ( 15 ) AS col1
----
420
28

skipif mysql # not compatible
query II rowsort label-7743
SELECT - MAX ( - - 30 ) * - + 14, 13 + ( 15 ) AS col1
----
420
28

onlyif mysql # aggregate syntax: 
query II rowsort label-7744
SELECT ALL + 28 * 65 - + COUNT( * ) * MAX( ALL + - 33 ) AS col2, + ( - + ( + - 1 ) )
----
1853
1

skipif mysql # not compatible
query II rowsort label-7744
SELECT ALL + 28 * 65 - + COUNT ( * ) * MAX ( ALL + - 33 ) AS col2, + ( - + ( + - 1 ) )
----
1853
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT - SUM( DISTINCT + - NULLIF ( + 93, - 27 ) ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-7745
SELECT - SUM ( DISTINCT + - NULLIF ( + 93, - 27 ) ) AS col1
----
93

query I rowsort
SELECT + + 73 * + 39 * - + 97 col0
----
-276159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7747
SELECT DISTINCT AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7747
SELECT DISTINCT AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query II rowsort
SELECT ALL 67 AS col1, - 13
----
67
-13

query II rowsort
SELECT - 69 col2, 94
----
-69
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7750
SELECT ALL + 22 DIV ( - + COUNT( * ) )
----
-22

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL + 22 / ( - + COUNT ( * ) )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT DISTINCT COUNT( 92 )
----
1

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT COUNT ( 92 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7752
SELECT ALL COUNT( * ), ( - - 74 ) AS col2
----
1
74

skipif mysql # not compatible
query II rowsort label-7752
SELECT ALL COUNT ( * ), ( - - 74 ) AS col2
----
1
74

onlyif mysql # DIV for integer division: 
query I rowsort label-7753
SELECT - ( + - 14 ) * 36 DIV 85 col2
----
5

skipif mysql # not compatible
query I rowsort label-7753
SELECT - ( + - 14 ) * 36 / 85 col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT + COUNT( * ) - + 39
----
-38

skipif mysql # not compatible
query I rowsort label-7754
SELECT + COUNT ( * ) - + 39
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-7755
SELECT - ( + - 69 ) DIV 18 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7755
SELECT - ( + - 69 ) / 18 AS col0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7756
SELECT 37, - ( + 59 ) DIV - 24 col1
----
37
2

skipif mysql # not compatible
query II rowsort label-7756
SELECT 37, - ( + 59 ) / - 24 col1
----
37
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT - 39 * - MAX( ALL + 12 ) AS col1
----
468

skipif mysql # not compatible
query I rowsort label-7757
SELECT - 39 * - MAX ( ALL + 12 ) AS col1
----
468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7758
SELECT - COUNT( * ) + ( 21 ) / - CAST( NULL AS SIGNED ) + - 24 / - 60 * 28 * + COALESCE ( + 67, + 77 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7758
SELECT - COUNT ( * ) + ( 21 ) / - CAST ( NULL AS INTEGER ) + - 24 / - 60 * 28 * + COALESCE ( + 67, + 77 ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7759
SELECT DISTINCT - 50 * - - CAST( - - 64 AS SIGNED )
----
-3200

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT - 50 * - - CAST ( - - 64 AS INTEGER )
----
-3200

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7760
SELECT ALL + COUNT( * ) AS col2, - 12 DIV + 20 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-7760
SELECT ALL + COUNT ( * ) AS col2, - 12 / + 20 AS col0
----
1
0

query I rowsort
SELECT DISTINCT 60 * 4 * - 27 + - 82 AS col1
----
-6562

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7762
SELECT CAST( NULL AS SIGNED ) * + + 49 + + 66 / - 93 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7762
SELECT CAST ( NULL AS INTEGER ) * + + 49 + + 66 / - 93 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT ALL 4 * - 4 + - + COUNT( * ) + 12 * + 96 + 65 + SUM( 39 ) AS col1
----
1239

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL 4 * - 4 + - + COUNT ( * ) + 12 * + 96 + 65 + SUM ( 39 ) AS col1
----
1239

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7764
SELECT DISTINCT + COALESCE ( - 46, COUNT( * ), + 51 * - 38 DIV + + COALESCE ( + 73, - 32 * - 53 DIV ( + COUNT( * ) ) + - COUNT( * ) + - + CASE - COUNT( * ) WHEN 8 THEN NULL WHEN + 53 THEN + + ( + 57 ) ELSE NULL END * 93 * + COUNT( * ) * + 51 ) ) AS col1, 55
----
-46
55

skipif mysql # not compatible
query II rowsort label-7764
SELECT DISTINCT + COALESCE ( - 46, COUNT ( * ), + 51 * - 38 / + + COALESCE ( + 73, - 32 * - 53 / ( + COUNT ( * ) ) + - COUNT ( * ) + - + CASE - COUNT ( * ) WHEN 8 THEN NULL WHEN + 53 THEN + + ( + 57 ) ELSE NULL END * 93 * + COUNT ( * ) * + 51 ) ) AS col1, 55
----
-46
55

query II rowsort
SELECT ALL + - 78 AS col0, 46 - + - 0 AS col2
----
-78
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7766
SELECT 64 DIV - 30 + - COUNT( DISTINCT + + 76 ) + - + 76 + 46 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-7766
SELECT 64 / - 30 + - COUNT ( DISTINCT + + 76 ) + - + 76 + 46 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-7767
SELECT + COUNT( * ) col2, + NULLIF ( 54, + 95 ) * + 97 AS col1
----
1
5238

skipif mysql # not compatible
query II rowsort label-7767
SELECT + COUNT ( * ) col2, + NULLIF ( 54, + 95 ) * + 97 AS col1
----
1
5238

query I rowsort
SELECT + + 90 + + - 97
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT + ( + COUNT( ALL + COALESCE ( + 8, + 32 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-7769
SELECT + ( + COUNT ( ALL + COALESCE ( + 8, + 32 ) ) )
----
1

query II rowsort
SELECT + 28 AS col1, 1 AS col0
----
28
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7771
SELECT - - CAST( NULL AS SIGNED ) * - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT - - CAST ( NULL AS INTEGER ) * - 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7772
SELECT - CASE + + MIN( DISTINCT 55 ) WHEN - ( 19 ) * - 5 THEN 19 WHEN 72 * + - COUNT( * ) THEN - 27 + 28 / 88 * - + 37 ELSE NULL END * 93 AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7772
SELECT - CASE + + MIN ( DISTINCT 55 ) WHEN - ( 19 ) * - 5 THEN 19 WHEN 72 * + - COUNT ( * ) THEN - 27 + 28 / 88 * - + 37 ELSE NULL END * 93 AS col0, COUNT ( * )
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7773
SELECT + - 63 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-7773
SELECT + - 63 / + 72
----
0

query I rowsort
SELECT DISTINCT + + 4 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT - + COUNT( + 68 ) + - + 46 col0
----
-47

skipif mysql # not compatible
query I rowsort label-7775
SELECT - + COUNT ( + 68 ) + - + 46 col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT + + COUNT( ALL + + 47 ) * - 41
----
-41

skipif mysql # not compatible
query I rowsort label-7776
SELECT + + COUNT ( ALL + + 47 ) * - 41
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-7777
SELECT - ( COUNT( * ) ) AS col2, 20 AS col2
----
-1
20

skipif mysql # not compatible
query II rowsort label-7777
SELECT - ( COUNT ( * ) ) AS col2, 20 AS col2
----
-1
20

query I rowsort
SELECT ALL - 21 * ( + 63 ) - + COALESCE ( + 88, - 74 + + 23 - + 86 )
----
-1411

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7779
SELECT + 0 / - 50 + - CAST( NULL AS SIGNED ) + + COUNT( * ) * 54 * + 53 * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT + 0 / - 50 + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * 54 * + 53 * + 95
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + + 5, 18 ) AS col2
----
5

query I rowsort
SELECT ALL + 36 * 88 * + ( 18 )
----
57024

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT SUM( DISTINCT - - 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7782
SELECT SUM ( DISTINCT - - 33 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT + 45 + + 20 - - 21 * + NULLIF ( - - 42, - + 70 + MAX( DISTINCT 85 ) ) AS col2
----
947

skipif mysql # not compatible
query I rowsort label-7783
SELECT + 45 + + 20 - - 21 * + NULLIF ( - - 42, - + 70 + MAX ( DISTINCT 85 ) ) AS col2
----
947

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT + NULLIF ( + CASE - 36 WHEN + 59 THEN - 98 * MAX( ALL - 51 ) + + 27 * 5 WHEN + 70 * + 38 + - 63 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN - + CASE - 0 WHEN 6 * + 29 THEN - + 61 * - 62 WHEN - COUNT( * ) * - CASE + + 46 WHEN + 99 * - - 7 THEN + 17 END + - - COUNT( 65 ) + + COUNT( * ) THEN NULL END THEN + + ( + 86 ) * 45 - 41 * - 64 + + 33 * 52 ELSE + 29 END, + + 65 ) + + + 93 AS col0
----
122

skipif mysql # not compatible
query I rowsort label-7784
SELECT + NULLIF ( + CASE - 36 WHEN + 59 THEN - 98 * MAX ( ALL - 51 ) + + 27 * 5 WHEN + 70 * + 38 + - 63 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN - + CASE - 0 WHEN 6 * + 29 THEN - + 61 * - 62 WHEN - COUNT ( * ) * - CASE + + 46 WHEN + 99 * - - 7 THEN + 17 END + - - COUNT ( 65 ) + + COUNT ( * ) THEN NULL END THEN + + ( + 86 ) * 45 - 41 * - 64 + + 33 * 52 ELSE + 29 END, + + 65 ) + + + 93 AS col0
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7785
SELECT - CAST( NULL AS SIGNED ) - - + 82 AS col1, + 91 * + + 71 + + 62, + 74 + - ( - 91 ) * - 5 AS col0
----
NULL
6523
-381

skipif mysql # not compatible
query III rowsort label-7785
SELECT - CAST ( NULL AS INTEGER ) - - + 82 AS col1, + 91 * + + 71 + + 62, + 74 + - ( - 91 ) * - 5 AS col0
----
NULL
6523
-381

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT + COALESCE ( + 39, - COUNT( * ) * 6 + + ( 69 ) - 43 ) * - 31 col0
----
-1209

skipif mysql # not compatible
query I rowsort label-7786
SELECT + COALESCE ( + 39, - COUNT ( * ) * 6 + + ( 69 ) - 43 ) * - 31 col0
----
-1209

query I rowsort
SELECT + 98 + + - 58
----
40

query I rowsort
SELECT - 4 - - 65 + 32 * - - 3 col2
----
157

query I rowsort
SELECT ALL 80 + 32
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-7790
SELECT DISTINCT NULLIF ( + + 93, 42 - ( - NULLIF ( - 61, + CASE ( - + COALESCE ( + ( 70 ), - 49 * + - 18 ) ) WHEN - 67 THEN + + 72 * 50 * - 66 WHEN 5 * 80 THEN NULL END + + 95 ) ) - - COUNT( ALL + 6 ) ) AS col2, 58 + 76 AS col2
----
93
134

skipif mysql # not compatible
query II rowsort label-7790
SELECT DISTINCT NULLIF ( + + 93, 42 - ( - NULLIF ( - 61, + CASE ( - + COALESCE ( + ( 70 ), - 49 * + - 18 ) ) WHEN - 67 THEN + + 72 * 50 * - 66 WHEN 5 * 80 THEN NULL END + + 95 ) ) - - COUNT ( ALL + 6 ) ) AS col2, 58 + 76 AS col2
----
93
134

query II rowsort
SELECT DISTINCT 15 + - 4 AS col0, 79
----
11
79

query II rowsort
SELECT DISTINCT + 73 + + 3 AS col1, 84 AS col1
----
76
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT - 44 + 64 + + COUNT( * ) * + + 2 - - 2
----
24

skipif mysql # not compatible
query I rowsort label-7793
SELECT - 44 + 64 + + COUNT ( * ) * + + 2 - - 2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7794
SELECT + CAST( - - COUNT( * ) AS SIGNED ) AS col1, 65
----
1
65

skipif mysql # not compatible
query II rowsort label-7794
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) AS col1, 65
----
1
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT ALL + MIN( + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL + MIN ( + 58 )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7796
SELECT + CASE + - 29 WHEN - 22 DIV - + 5 + - - 24 THEN - SUM( ALL - 40 ) + + + 88 ELSE + - 49 + - + 64 END DIV + 68 + SUM( DISTINCT 58 ) - - SUM( DISTINCT 80 ) + + + 44 * + 99 AS col2
----
4493

skipif mysql # not compatible
query I rowsort label-7796
SELECT + CASE + - 29 WHEN - 22 / - + 5 + - - 24 THEN - SUM ( ALL - 40 ) + + + 88 ELSE + - 49 + - + 64 END / + 68 + SUM ( DISTINCT 58 ) - - SUM ( DISTINCT 80 ) + + + 44 * + 99 AS col2
----
4493

query I rowsort
SELECT - 55 * + 56
----
-3080

onlyif mysql # aggregate syntax: 
query II rowsort label-7798
SELECT - 14 * 36 AS col2, COUNT( * ) AS col2
----
-504
1

skipif mysql # not compatible
query II rowsort label-7798
SELECT - 14 * 36 AS col2, COUNT ( * ) AS col2
----
-504
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7799
SELECT ALL - - 93 DIV - 5 * + - COUNT( * ) + - + 71
----
-53

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL - - 93 / - 5 * + - COUNT ( * ) + - + 71
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT ALL + CASE + - 38 WHEN + + 98 THEN - 19 WHEN + COUNT( * ) THEN NULL ELSE NULL END * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL + CASE + - 38 WHEN + + 98 THEN - 19 WHEN + COUNT ( * ) THEN NULL ELSE NULL END * 13
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7801
SELECT DISTINCT + 11 * - COALESCE ( + + 16, 57 - CAST( NULL AS SIGNED ) + + + 1 + + + 1 * 9 * 60, 61 ) * + 97
----
-17072

skipif mysql # not compatible
query I rowsort label-7801
SELECT DISTINCT + 11 * - COALESCE ( + + 16, 57 - CAST ( NULL AS INTEGER ) + + + 1 + + + 1 * 9 * 60, 61 ) * + 97
----
-17072

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7802
SELECT - CAST( 87 AS SIGNED ) DIV - 35 + - NULLIF ( + 56, - 56 + ( + - 1 ) + - - 70 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-7802
SELECT - CAST ( 87 AS INTEGER ) / - 35 + - NULLIF ( + 56, - 56 + ( + - 1 ) + - - 70 ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT MAX( ALL + 23 )
----
23

skipif mysql # not compatible
query I rowsort label-7803
SELECT MAX ( ALL + 23 )
----
23

query I rowsort
SELECT ALL - + ( - + ( - 94 ) ) AS col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7805
SELECT + MIN( DISTINCT - ( + + CAST( NULL AS SIGNED ) ) ) + 18 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7805
SELECT + MIN ( DISTINCT - ( + + CAST ( NULL AS INTEGER ) ) ) + 18 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT DISTINCT - SUM( 77 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-7806
SELECT DISTINCT - SUM ( 77 ) AS col2
----
-77

query I rowsort
SELECT DISTINCT - - 25 * + - 41 * 22 * - - 24
----
-541200

onlyif mysql # DIV for integer division: 
query I rowsort label-7808
SELECT 72 DIV + + 68 col1
----
1

skipif mysql # not compatible
query I rowsort label-7808
SELECT 72 / + + 68 col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7809
SELECT 85 DIV + 39 col0
----
2

skipif mysql # not compatible
query I rowsort label-7809
SELECT 85 / + 39 col0
----
2

query I rowsort
SELECT 91 + + 52 AS col0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT 62 / + 12 * - ( + - CASE + + 87 WHEN 91 / - COUNT( * ) THEN + - 37 / + 16 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7811
SELECT 62 / + 12 * - ( + - CASE + + 87 WHEN 91 / - COUNT ( * ) THEN + - 37 / + 16 END ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7812
SELECT ( + - COUNT( * ) ) + 86 + + ( - + 75 ) + + 91 - + - ( AVG ( ALL - - 35 ) ) * + 39 * 67 * - CAST( NULL AS SIGNED ) * NULLIF ( + 74, + 45 ) + 97 * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7812
SELECT ( + - COUNT ( * ) ) + 86 + + ( - + 75 ) + + 91 - + - ( AVG ( ALL - - 35 ) ) * + 39 * 67 * - CAST ( NULL AS INTEGER ) * NULLIF ( + 74, + 45 ) + 97 * 31
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7813
SELECT ALL COUNT( * ) + CASE + - 1 WHEN + SUM( DISTINCT + 6 ) THEN + + 85 + 10 * - - ( - - 37 ) * - 88 + + 16 WHEN + 11 THEN NULL WHEN 15 THEN NULL ELSE ( CAST( - 46 AS SIGNED ) ) END, + 93 * + 24 col1
----
-45
2232

skipif mysql # not compatible
query II rowsort label-7813
SELECT ALL COUNT ( * ) + CASE + - 1 WHEN + SUM ( DISTINCT + 6 ) THEN + + 85 + 10 * - - ( - - 37 ) * - 88 + + 16 WHEN + 11 THEN NULL WHEN 15 THEN NULL ELSE ( CAST ( - 46 AS INTEGER ) ) END, + 93 * + 24 col1
----
-45
2232

query II rowsort
SELECT - 79 AS col0, 31 * + - 16 + 1
----
-79
-495

onlyif mysql # DIV for integer division: 
query I rowsort label-7815
SELECT 75 DIV - - 16 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7815
SELECT 75 / - - 16 AS col1
----
4

query I rowsort
SELECT ALL - 5 + 82 - ( + + 19 ) AS col2
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7817
SELECT DISTINCT + 50 + 69 DIV 54 * 24
----
74

skipif mysql # not compatible
query I rowsort label-7817
SELECT DISTINCT + 50 + 69 / 54 * 24
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT ALL CASE + COUNT( ( + - 27 ) ) WHEN - + 50 THEN + + 8 * + MAX( ( 52 ) ) WHEN 54 * + 17 * 80 + 63 / + 88 THEN + + 81 ELSE CASE 54 WHEN - + 10 - - 65 * - 27 THEN + MAX( ALL - 12 ) * + + 17 + - 83 WHEN 71 THEN NULL END END + - 86 - + 51 + + ( + MAX( DISTINCT 68 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL CASE + COUNT ( ( + - 27 ) ) WHEN - + 50 THEN + + 8 * + MAX ( ( 52 ) ) WHEN 54 * + 17 * 80 + 63 / + 88 THEN + + 81 ELSE CASE 54 WHEN - + 10 - - 65 * - 27 THEN + MAX ( ALL - 12 ) * + + 17 + - 83 WHEN 71 THEN NULL END END + - 86 - + 51 + + ( + MAX ( DISTINCT 68 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT ( - COUNT( * ) ) + COALESCE ( + + 66, - + 51 * + + 60 + 78, + - 63 + 59 ) + + 6 * + 83 AS col2
----
563

skipif mysql # not compatible
query I rowsort label-7819
SELECT ( - COUNT ( * ) ) + COALESCE ( + + 66, - + 51 * + + 60 + 78, + - 63 + 59 ) + + 6 * + 83 AS col2
----
563

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT DISTINCT ( + COUNT( * ) ) + - 62
----
-61

skipif mysql # not compatible
query I rowsort label-7820
SELECT DISTINCT ( + COUNT ( * ) ) + - 62
----
-61

query II rowsort
SELECT 92 AS col1, + 20 * - + 31 * - 87 * 52 AS col1
----
92
2804880

query II rowsort
SELECT 62, + 89 AS col1
----
62
89

query II rowsort
SELECT 32 + 18 + + + 30 col2, + 39
----
80
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT 35 * - - COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-7824
SELECT 35 * - - COUNT ( * ) AS col0
----
35

query I rowsort
SELECT 6 * 49
----
294

query I rowsort
SELECT ALL 13 * - - 11 * - 19
----
-2717

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT DISTINCT - COUNT( 87 ) - - - 15 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-7827
SELECT DISTINCT - COUNT ( 87 ) - - - 15 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT DISTINCT - + 94 - - + CASE - COUNT( * ) WHEN + - 36 THEN - 24 END - - - COUNT( * ) * ( - 17 ) * - 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7828
SELECT DISTINCT - + 94 - - + CASE - COUNT ( * ) WHEN + - 36 THEN - 24 END - - - COUNT ( * ) * ( - 17 ) * - 49 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT DISTINCT - + COUNT( DISTINCT - 65 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT - + COUNT ( DISTINCT - 65 ) AS col0
----
-1

query II rowsort
SELECT + 14, 87 AS col2
----
14
87

query II rowsort
SELECT - 29 + + 13 + + 41 * 45 * + 81 * 5 AS col1, + 62
----
747209
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT + COUNT( DISTINCT + 62 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7832
SELECT + COUNT ( DISTINCT + 62 ) AS col1
----
1

query I rowsort
SELECT + ( + 86 ) AS col0
----
86

query I rowsort
SELECT 94 * + + ( + ( - 29 ) ) + + + 13 col2
----
-2713

query I rowsort
SELECT + 23 * + 7 AS col2
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT ALL - + COALESCE ( + 91, 43 ) + + ( - + 70 ) * + COUNT( * )
----
-161

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL - + COALESCE ( + 91, 43 ) + + ( - + 70 ) * + COUNT ( * )
----
-161

query I rowsort
SELECT 25 - 43 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT 56 + - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-7838
SELECT 56 + - COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-7839
SELECT ALL - NULLIF ( - 63, SUM( - 68 ) ) col1, MIN( ALL + 61 )
----
63
61

skipif mysql # not compatible
query II rowsort label-7839
SELECT ALL - NULLIF ( - 63, SUM ( - 68 ) ) col1, MIN ( ALL + 61 )
----
63
61

query I rowsort
SELECT 1 * - 28 * - + 29 AS col2
----
812

query I rowsort
SELECT DISTINCT - 91 + - 90 AS col0
----
-181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7842
SELECT DISTINCT - 18 + 27 + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7842
SELECT DISTINCT - 18 + 27 + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 91 - - 58 AS col0
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7844
SELECT ALL - 1 + + + CASE 69 WHEN + 35 * CAST( - 42 AS SIGNED ) - + + CAST( NULL AS SIGNED ) THEN NULL ELSE - 53 END
----
-54

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL - 1 + + + CASE 69 WHEN + 35 * CAST ( - 42 AS INTEGER ) - + + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 53 END
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT ALL + COUNT( * ) * CASE 91 WHEN 46 THEN - 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL + COUNT ( * ) * CASE 91 WHEN 46 THEN - 35 END
----
NULL

query I rowsort
SELECT ALL - 74 + - - 53 + - 35 col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT 81 + + SUM( ALL - 85 ) col1
----
-4

skipif mysql # not compatible
query I rowsort label-7847
SELECT 81 + + SUM ( ALL - 85 ) col1
----
-4

query I rowsort
SELECT 16 * + 81
----
1296

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT ( - 24 ) - - 28 + + 8 + + + ( 89 ) * + COUNT( DISTINCT - 2 ) AS col2
----
101

skipif mysql # not compatible
query I rowsort label-7849
SELECT ( - 24 ) - - 28 + + 8 + + + ( 89 ) * + COUNT ( DISTINCT - 2 ) AS col2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT - 85 + + MAX( + + 23 ) col2
----
-62

skipif mysql # not compatible
query I rowsort label-7850
SELECT - 85 + + MAX ( + + 23 ) col2
----
-62

query I rowsort
SELECT - 2 * ( - 49 )
----
98

query I rowsort
SELECT DISTINCT + 56 - 75 AS col1
----
-19

query I rowsort
SELECT ALL - ( - 58 )
----
58

query I rowsort
SELECT - - 72 * + 22 + 82 + 16 AS col2
----
1682

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT + 78 * + + MIN( ALL + + 36 ) * 9
----
25272

skipif mysql # not compatible
query I rowsort label-7855
SELECT + 78 * + + MIN ( ALL + + 36 ) * 9
----
25272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7856
SELECT ALL COUNT( * ) * + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL COUNT ( * ) * + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7857
SELECT - 79 DIV - + 99 + + 72 - 42 * - 92 * 90 + - - COALESCE ( - 8, + 57 ) AS col1
----
347824

skipif mysql # not compatible
query I rowsort label-7857
SELECT - 79 / - + 99 + + 72 - 42 * - 92 * 90 + - - COALESCE ( - 8, + 57 ) AS col1
----
347824

query I rowsort
SELECT ALL 74 * - 35
----
-2590

query II rowsort
SELECT + ( + 31 ) * - 96 + - 14 AS col2, 42
----
-2990
42

query I rowsort
SELECT + + 1 * - + 85 AS col1
----
-85

query I rowsort
SELECT ALL + 51 * 36 AS col0
----
1836

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT 40 * + - 30 * - 11 * - 96 + + - COUNT( * ) * COUNT( * ) AS col2
----
-1267201

skipif mysql # not compatible
query I rowsort label-7862
SELECT 40 * + - 30 * - 11 * - 96 + + - COUNT ( * ) * COUNT ( * ) AS col2
----
-1267201

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7863
SELECT DISTINCT - 29 DIV + + 91, MIN( - 92 ) AS col1
----
0
-92

skipif mysql # not compatible
query II rowsort label-7863
SELECT DISTINCT - 29 / + + 91, MIN ( - 92 ) AS col1
----
0
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT DISTINCT - - COUNT( * ) * - CASE - + 93 WHEN + + 32 - - 35 THEN NULL WHEN 30 + 11 THEN NULL ELSE - MAX( ALL + + 15 ) - - 63 END + + - 52 + NULLIF ( - 53, + - 9 ) * + 41
----
-2273

skipif mysql # not compatible
query I rowsort label-7864
SELECT DISTINCT - - COUNT ( * ) * - CASE - + 93 WHEN + + 32 - - 35 THEN NULL WHEN 30 + 11 THEN NULL ELSE - MAX ( ALL + + 15 ) - - 63 END + + - 52 + NULLIF ( - 53, + - 9 ) * + 41
----
-2273

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT + COUNT( * ) + - + 57 * - 61
----
3478

skipif mysql # not compatible
query I rowsort label-7865
SELECT + COUNT ( * ) + - + 57 * - 61
----
3478

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7866
SELECT + CAST( + 45 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-7866
SELECT + CAST ( + 45 AS INTEGER )
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7867
SELECT - 7 DIV - + 36 * 72 DIV 93 + - 49 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-7867
SELECT - 7 / - + 36 * 72 / 93 + - 49 AS col2
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7868
SELECT - - CAST( + COUNT( ALL - 54 ) AS SIGNED ) * - 50 + 20 + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-7868
SELECT - - CAST ( + COUNT ( ALL - 54 ) AS INTEGER ) * - 50 + 20 + COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7869
SELECT - 16 - + COUNT( * ) DIV COUNT( * ) + + 87 + 52 + ( 41 ) AS col1
----
163

skipif mysql # not compatible
query I rowsort label-7869
SELECT - 16 - + COUNT ( * ) / COUNT ( * ) + + 87 + 52 + ( 41 ) AS col1
----
163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7870
SELECT - 12 * + + 22 + + - CAST( COUNT( * ) AS SIGNED )
----
-265

skipif mysql # not compatible
query I rowsort label-7870
SELECT - 12 * + + 22 + + - CAST ( COUNT ( * ) AS INTEGER )
----
-265

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT + COUNT( * ) * + + 79 - - 90
----
169

skipif mysql # not compatible
query I rowsort label-7871
SELECT + COUNT ( * ) * + + 79 - - 90
----
169

query I rowsort
SELECT ALL 64 * - - 93 * - 45 + - + 4
----
-267844

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7873
SELECT + MIN( 6 ) DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-7873
SELECT + MIN ( 6 ) / 33
----
0

query I rowsort
SELECT - 57 * + 57 + - - 28
----
-3221

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT DISTINCT COUNT( * ) * - - 2 + - 20 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT COUNT ( * ) * - - 2 + - 20 AS col2
----
-18

query I rowsort
SELECT + ( - + 24 ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT ALL 76 * 34 + + MIN( - + 13 )
----
2571

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL 76 * 34 + + MIN ( - + 13 )
----
2571

query I rowsort
SELECT - 92 + - - 77 * + + 12 * - 79 AS col0
----
-73088

query I rowsort
SELECT ALL + ( - 3 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT DISTINCT MAX( DISTINCT - 70 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-7880
SELECT DISTINCT MAX ( DISTINCT - 70 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT ALL 13 * - COUNT( * ) + + + 44
----
31

skipif mysql # not compatible
query I rowsort label-7881
SELECT ALL 13 * - COUNT ( * ) + + + 44
----
31

query I rowsort
SELECT + 56 * - 16 * - + ( 10 ) col0
----
8960

query I rowsort
SELECT - ( + 69 ) AS col2
----
-69

query I rowsort
SELECT - 15 + + 59 + - + 87 * + 29 - + - ( + 82 ) AS col2
----
-2397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7885
SELECT ALL COALESCE ( - 84, CAST( NULL AS SIGNED ) + + + 61 * - 62, + 49 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-7885
SELECT ALL COALESCE ( - 84, CAST ( NULL AS INTEGER ) + + + 61 * - 62, + 49 ) AS col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7886
SELECT - COUNT( * ) * 55 * - SUM( DISTINCT + ( 22 ) ) * + - 60 + NULLIF ( + MAX( ALL - 68 ), CAST( + COUNT( DISTINCT 23 ) AS SIGNED ) ) - + + 45 * ( + 50 ), - NULLIF ( CAST( NULL AS SIGNED ), CASE - CAST( NULL AS SIGNED ) WHEN ( - COUNT( * ) ) / - 92 THEN 37 * + CAST( + COUNT( DISTINCT + 80 ) AS SIGNED ) + 89 WHEN + COUNT( + 80 ) THEN NULL END ) col1
----
-74918
NULL

skipif mysql # not compatible
query II rowsort label-7886
SELECT - COUNT ( * ) * 55 * - SUM ( DISTINCT + ( 22 ) ) * + - 60 + NULLIF ( + MAX ( ALL - 68 ), CAST ( + COUNT ( DISTINCT 23 ) AS INTEGER ) ) - + + 45 * ( + 50 ), - NULLIF ( CAST ( NULL AS INTEGER ), CASE - CAST ( NULL AS INTEGER ) WHEN ( - COUNT ( * ) ) / - 92 THEN 37 * + CAST ( + COUNT ( DISTINCT + 80 ) AS INTEGER ) + 89 WHEN + COUNT ( + 80 ) THEN NULL END ) col1
----
-74918
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT ALL MAX( ALL + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL MAX ( ALL + 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT ALL + ( + 44 ) * + 37 * - 9 * - COUNT( * ) * - 44 + + - 34 + NULLIF ( - 69, 53 ) - 87
----
-644878

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL + ( + 44 ) * + 37 * - 9 * - COUNT ( * ) * - 44 + + - 34 + NULLIF ( - 69, 53 ) - 87
----
-644878

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT DISTINCT COALESCE ( COUNT( * ), - - 19, + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7889
SELECT DISTINCT COALESCE ( COUNT ( * ), - - 19, + COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7890
SELECT DISTINCT NULLIF ( MIN( - 4 ), + CAST( 82 AS SIGNED ) ) * + 6 col1
----
-24

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT NULLIF ( MIN ( - 4 ), + CAST ( 82 AS INTEGER ) ) * + 6 col1
----
-24

query I rowsort
SELECT DISTINCT + 52 * - 36
----
-1872

query I rowsort
SELECT ALL + + 60 * + - 99 AS col2
----
-5940

onlyif mysql # aggregate syntax: 
query II rowsort label-7893
SELECT - COUNT( * ) - + ( 4 ) + - ( 61 ) col2, ( 17 )
----
-66
17

skipif mysql # not compatible
query II rowsort label-7893
SELECT - COUNT ( * ) - + ( 4 ) + - ( 61 ) col2, ( 17 )
----
-66
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7894
SELECT - - 35 DIV - + ( + + ( - 61 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7894
SELECT - - 35 / - + ( + + ( - 61 ) ) AS col2
----
0

query I rowsort
SELECT + - 30 + 21 AS col1
----
-9

query I rowsort
SELECT - + 60 * - + 44 + 90 + + + 52 AS col2
----
2782

query I rowsort
SELECT - 51 + 37 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7898
SELECT ALL CAST( NULL AS SIGNED ) * - CASE + 41 WHEN + 7 + + 77 THEN NULL ELSE + CASE WHEN - 6 BETWEEN NULL AND ( - 85 ) THEN + COUNT( * ) ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL CAST ( NULL AS INTEGER ) * - CASE + 41 WHEN + 7 + + 77 THEN NULL ELSE + CASE WHEN - 6 BETWEEN NULL AND ( - 85 ) THEN + COUNT ( * ) ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7899
SELECT DISTINCT COUNT( * ) DIV - 34 + - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT COUNT ( * ) / - 34 + - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7900
SELECT + 97 * - 19 + - 15 AS col1, - COUNT( * ) AS col0
----
-1858
-1

skipif mysql # not compatible
query II rowsort label-7900
SELECT + 97 * - 19 + - 15 AS col1, - COUNT ( * ) AS col0
----
-1858
-1

query I rowsort
SELECT + - 28 + - 14
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7902
SELECT ALL + COALESCE ( + 92, + 18, MAX( - - 8 ) * - 69 - + - 87 * - 75 DIV + 21 - - 6 * 56 )
----
92

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL + COALESCE ( + 92, + 18, MAX ( - - 8 ) * - 69 - + - 87 * - 75 / + 21 - - 6 * 56 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT + - ( - + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7903
SELECT + - ( - + COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7904
SELECT DISTINCT COUNT( * ) / - - 56 + 3 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT COUNT ( * ) / - - 56 + 3 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7905
SELECT + CASE - 94 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + 9 THEN ( - COALESCE ( 13, + - 8 * + 55 ) ) - - 43 * - COUNT( * ) ELSE NULL END * - COUNT( * ) * + + 48 + - 27 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7905
SELECT + CASE - 94 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + 9 THEN ( - COALESCE ( 13, + - 8 * + 55 ) ) - - 43 * - COUNT ( * ) ELSE NULL END * - COUNT ( * ) * + + 48 + - 27 col2
----
NULL

query II rowsort
SELECT ALL + 20 AS col2, - 88
----
20
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7907
SELECT ALL + 46 DIV COUNT( + 58 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-7907
SELECT ALL + 46 / COUNT ( + 58 ) AS col1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7908
SELECT + CAST( + 19 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-7908
SELECT + CAST ( + 19 AS INTEGER )
----
19

query I rowsort
SELECT + 63 * 25 AS col0
----
1575

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7910
SELECT - 97 * - CASE + - 59 WHEN CAST( NULL AS DECIMAL ) THEN NULL WHEN + 19 THEN NULL WHEN COALESCE ( 69, + 8 / - + 97 ) THEN 69 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7910
SELECT - 97 * - CASE + - 59 WHEN CAST ( NULL AS REAL ) THEN NULL WHEN + 19 THEN NULL WHEN COALESCE ( 69, + 8 / - + 97 ) THEN 69 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7911
SELECT 26 DIV NULLIF ( + - COUNT( * ), - COUNT( * ) * - - 61 )
----
-26

skipif mysql # not compatible
query I rowsort label-7911
SELECT 26 / NULLIF ( + - COUNT ( * ), - COUNT ( * ) * - - 61 )
----
-26

query I rowsort
SELECT ( 26 ) * + 74
----
1924

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7913
SELECT CAST( NULL AS DECIMAL ) * + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-7913
SELECT CAST ( NULL AS REAL ) * + - 29
----
NULL

query II rowsort
SELECT ALL 44 * + 82, 42 * 0 AS col1
----
3608
0

query II rowsort
SELECT ALL 52 AS col1, 32 * + 59
----
52
1888

query II rowsort
SELECT 32 * - 76, 52 AS col1
----
-2432
52

query II rowsort
SELECT - 7, + 37 col0
----
-7
37

query I rowsort
SELECT COALESCE ( 67, 79, + - 30 ) - - 80
----
147

query I rowsort
SELECT DISTINCT NULLIF ( + 17, + 79 + + 58 )
----
17

query I rowsort
SELECT ALL - + 45 + + 50
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7921
SELECT DISTINCT + 51 + COUNT( * ) * + ( - SUM( DISTINCT + 91 ) ) * - MAX( ALL - 70 ) * + - COALESCE ( + CAST( NULL AS SIGNED ), + 15 * - 46 ) AS col0, - 95 + + COUNT( * ) AS col1
----
-4395249
-94

skipif mysql # not compatible
query II rowsort label-7921
SELECT DISTINCT + 51 + COUNT ( * ) * + ( - SUM ( DISTINCT + 91 ) ) * - MAX ( ALL - 70 ) * + - COALESCE ( + CAST ( NULL AS INTEGER ), + 15 * - 46 ) AS col0, - 95 + + COUNT ( * ) AS col1
----
-4395249
-94

query II rowsort
SELECT DISTINCT - 93 + 91 + + 30 * - 80, - 27 col2
----
-2402
-27

query I rowsort
SELECT ALL + + 32 * + ( 88 ) AS col1
----
2816

query III rowsort
SELECT ALL + - 16 + 21 AS col0, - 96 - - - 22 AS col1, 49 AS col1
----
5
-118
49

query I rowsort
SELECT ALL - + 53 + + - 33 * 87 + 70 + - 15
----
-2869

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7926
SELECT DISTINCT + COUNT( * ) * - 13 DIV + 2 + - + COALESCE ( 24, - 35 * - 77 + CASE 59 WHEN + + NULLIF ( - 54, + 58 * 73 + + 14 + - 34 ) * - ( 95 ) - - - 70 THEN 18 WHEN + 86 THEN + 96 * - 94 - - 66 + + COUNT( - 23 ) + + - 89 - - 53 * + + 95 * - COUNT( DISTINCT + 69 ) ELSE - 7 END + + 4 )
----
-30

skipif mysql # not compatible
query I rowsort label-7926
SELECT DISTINCT + COUNT ( * ) * - 13 / + 2 + - + COALESCE ( 24, - 35 * - 77 + CASE 59 WHEN + + NULLIF ( - 54, + 58 * 73 + + 14 + - 34 ) * - ( 95 ) - - - 70 THEN 18 WHEN + 86 THEN + 96 * - 94 - - 66 + + COUNT ( - 23 ) + + - 89 - - 53 * + + 95 * - COUNT ( DISTINCT + 69 ) ELSE - 7 END + + 4 )
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-7927
SELECT COUNT( * ) + - 28, 12 AS col2
----
-27
12

skipif mysql # not compatible
query II rowsort label-7927
SELECT COUNT ( * ) + - 28, 12 AS col2
----
-27
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT COUNT( * ) * 64 + + 11
----
75

skipif mysql # not compatible
query I rowsort label-7928
SELECT COUNT ( * ) * 64 + + 11
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7929
SELECT ALL - + 59 AS col0, MIN( + 59 ) AS col2
----
-59
59

skipif mysql # not compatible
query II rowsort label-7929
SELECT ALL - + 59 AS col0, MIN ( + 59 ) AS col2
----
-59
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7930
SELECT + 3 + - - 51 + + COALESCE ( + 92, + CAST( NULL AS SIGNED ) - - + 27, + CAST( NULL AS SIGNED ) + + NULLIF ( + + 43, - 66 ) ) * - 36 * - 12 + + 23 * - 95
----
37613

skipif mysql # not compatible
query I rowsort label-7930
SELECT + 3 + - - 51 + + COALESCE ( + 92, + CAST ( NULL AS INTEGER ) - - + 27, + CAST ( NULL AS INTEGER ) + + NULLIF ( + + 43, - 66 ) ) * - 36 * - 12 + + 23 * - 95
----
37613

onlyif mysql # aggregate syntax: 
query II rowsort label-7931
SELECT ALL - - 25, ( COUNT( * ) ) AS col2
----
25
1

skipif mysql # not compatible
query II rowsort label-7931
SELECT ALL - - 25, ( COUNT ( * ) ) AS col2
----
25
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7932
SELECT DISTINCT 5 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-7932
SELECT DISTINCT 5 / - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT NULLIF ( - - 85, 53 ) - - COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-7933
SELECT NULLIF ( - - 85, 53 ) - - COUNT ( * ) AS col1
----
86

query I rowsort
SELECT 78 * - - 50 * + 13 + + - 21
----
50679

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7935
SELECT ALL ( CAST( - CAST( 97 AS SIGNED ) AS SIGNED ) ) * 43
----
-4171

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL ( CAST ( - CAST ( 97 AS INTEGER ) AS INTEGER ) ) * 43
----
-4171

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT ALL + 70 * SUM( + 87 ) * + + COUNT( * )
----
6090

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL + 70 * SUM ( + 87 ) * + + COUNT ( * )
----
6090

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7937
SELECT 16 + + - COUNT( * ) * CAST( - 62 AS SIGNED ) + - + ( + 62 ) + + 17 AS col1, CAST( 14 AS SIGNED )
----
33
14

skipif mysql # not compatible
query II rowsort label-7937
SELECT 16 + + - COUNT ( * ) * CAST ( - 62 AS INTEGER ) + - + ( + 62 ) + + 17 AS col1, CAST ( 14 AS INTEGER )
----
33
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT ALL COALESCE ( - COUNT( * ), + 91 + - 91, - NULLIF ( - 30, - + 71 ) ) * - 89 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL COALESCE ( - COUNT ( * ), + 91 + - 91, - NULLIF ( - 30, - + 71 ) ) * - 89 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT - NULLIF ( 33, - ( + 83 ) / + 45 ) * - COUNT( * ) - - CASE + 15 WHEN + 51 THEN - - 20 WHEN - 2 THEN NULL END + - 20 + - + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7939
SELECT - NULLIF ( 33, - ( + 83 ) / + 45 ) * - COUNT ( * ) - - CASE + 15 WHEN + 51 THEN - - 20 WHEN - 2 THEN NULL END + - 20 + - + 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT COUNT( * ) + + 77
----
78

skipif mysql # not compatible
query I rowsort label-7940
SELECT COUNT ( * ) + + 77
----
78

query I rowsort
SELECT 45 * 4
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-7942
SELECT ALL 31 DIV + ( - ( - ( - 81 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-7942
SELECT ALL 31 / + ( - ( - ( - 81 ) ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7943
SELECT 22 + - 14 + - - CAST( - 21 AS SIGNED )
----
-13

skipif mysql # not compatible
query I rowsort label-7943
SELECT 22 + - 14 + - - CAST ( - 21 AS INTEGER )
----
-13

query I rowsort
SELECT DISTINCT 23 + 16 + - + 21 col1
----
18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7945
SELECT + 1 DIV + CAST( + 66 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7945
SELECT + 1 / + CAST ( + 66 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7946
SELECT ALL - SUM( + 48 ) AS col0, - COUNT( * ) AS col0
----
-48
-1

skipif mysql # not compatible
query II rowsort label-7946
SELECT ALL - SUM ( + 48 ) AS col0, - COUNT ( * ) AS col0
----
-48
-1

query I rowsort
SELECT + 33 + ( - + 80 )
----
-47

query I rowsort
SELECT ALL - 64 + - 85 col1
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT 66 + - + COUNT( * ) col0
----
65

skipif mysql # not compatible
query I rowsort label-7949
SELECT 66 + - + COUNT ( * ) col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT + COUNT( - + 44 ) * + 1 + - - 48 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-7950
SELECT + COUNT ( - + 44 ) * + 1 + - - 48 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT ALL + 89 + - ( + 59 ) + + MAX( - - 77 ) - - 78 AS col0
----
185

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL + 89 + - ( + 59 ) + + MAX ( - - 77 ) - - 78 AS col0
----
185

query I rowsort
SELECT 15 - + 54 + + 31
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7953
SELECT ALL - ( 52 ) + 62, - CAST( NULL AS SIGNED ) AS col0
----
10
NULL

skipif mysql # not compatible
query II rowsort label-7953
SELECT ALL - ( 52 ) + 62, - CAST ( NULL AS INTEGER ) AS col0
----
10
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7954
SELECT MIN( ALL - 61 ) * - + CAST( NULL AS DECIMAL ) + + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7954
SELECT MIN ( ALL - 61 ) * - + CAST ( NULL AS REAL ) + + 67 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT ALL - MAX( ALL 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL - MAX ( ALL 94 )
----
-94

query I rowsort
SELECT 75 * 37
----
2775

query I rowsort
SELECT 10 * - 4
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT NULLIF ( - + COUNT( * ), - COUNT( * ) + 1 * ( + - 58 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7958
SELECT NULLIF ( - + COUNT ( * ), - COUNT ( * ) + 1 * ( + - 58 ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7959
SELECT COUNT( * ) AS col0, 96 col2
----
1
96

skipif mysql # not compatible
query II rowsort label-7959
SELECT COUNT ( * ) AS col0, 96 col2
----
1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT ALL + ( + COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL + ( + COUNT ( * ) ) col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7961
SELECT DISTINCT + 1 * - 62 DIV - 16, ( + 32 ) AS col1
----
3
32

skipif mysql # not compatible
query II rowsort label-7961
SELECT DISTINCT + 1 * - 62 / - 16, ( + 32 ) AS col1
----
3
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7962
SELECT ALL + 71 AS col2, COUNT( * ) DIV + + 99 * + 19 col1
----
71
0

skipif mysql # not compatible
query II rowsort label-7962
SELECT ALL + 71 AS col2, COUNT ( * ) / + + 99 * + 19 col1
----
71
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7963
SELECT DISTINCT + CAST( 6 AS SIGNED ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT + CAST ( 6 AS INTEGER ) AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7964
SELECT ALL + COALESCE ( - 19, - 16 * COUNT( * ), + - ( 2 ) - + CAST( NULL AS SIGNED ) + - 18 )
----
-19

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL + COALESCE ( - 19, - 16 * COUNT ( * ), + - ( 2 ) - + CAST ( NULL AS INTEGER ) + - 18 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT - 56 * - COUNT( ALL ( - + NULLIF ( + 92, + 46 ) ) )
----
56

skipif mysql # not compatible
query I rowsort label-7965
SELECT - 56 * - COUNT ( ALL ( - + NULLIF ( + 92, + 46 ) ) )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7966
SELECT ALL - COUNT( * ) DIV + 12 col1
----
0

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL - COUNT ( * ) / + 12 col1
----
0

query I rowsort
SELECT - 26 * 66
----
-1716

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT ALL - 98 * + 21 * - COUNT( * ) + - - ( + 18 ) AS col0
----
2076

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL - 98 * + 21 * - COUNT ( * ) + - - ( + 18 ) AS col0
----
2076

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7969
SELECT - 20 + 95 + - 19, CAST( - 36 AS SIGNED ) AS col1
----
56
-36

skipif mysql # not compatible
query II rowsort label-7969
SELECT - 20 + 95 + - 19, CAST ( - 36 AS INTEGER ) AS col1
----
56
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT ALL 90 + - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL 90 + - COUNT ( * )
----
89

query I rowsort
SELECT - 96 + - 48 AS col1
----
-144

query I rowsort
SELECT ALL 8 * 14 AS col2
----
112

query I rowsort
SELECT DISTINCT - 39 + + 13 col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT ALL 25 + + COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL 25 + + COUNT ( * ) AS col1
----
26

query II rowsort
SELECT DISTINCT 49 AS col2, 59 * 43
----
49
2537

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7976
SELECT ALL - COUNT( * ) + - 50 DIV + + 79 AS col1, 4 col0
----
-1
4

skipif mysql # not compatible
query II rowsort label-7976
SELECT ALL - COUNT ( * ) + - 50 / + + 79 AS col1, 4 col0
----
-1
4

query I rowsort
SELECT + - 98 + 89 AS col1
----
-9

query I rowsort
SELECT + + 23 + 72 AS col0
----
95

query II rowsort
SELECT - 28 AS col1, 60 * + 31
----
-28
1860

query I rowsort
SELECT ALL + 43 + - 61 * + - 75 AS col1
----
4618

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7981
SELECT + 2 + + - CAST( NULL AS SIGNED ) * - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7981
SELECT + 2 + + - CAST ( NULL AS INTEGER ) * - 1 AS col2
----
NULL

query I rowsort
SELECT ALL 41 * + 77 + 83 AS col0
----
3240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7983
SELECT + + 46 * - + COUNT( * ) + - 76 DIV + - 34 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-7983
SELECT + + 46 * - + COUNT ( * ) + - 76 / + - 34 AS col1
----
-44

query I rowsort
SELECT ALL ( 16 ) - - + ( 46 ) * + NULLIF ( + - 98, - - 12 ) + + + 12 AS col1
----
-4480

query II rowsort
SELECT - + 6, 45 AS col1
----
-6
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT DISTINCT COUNT( * ) - - 85
----
86

skipif mysql # not compatible
query I rowsort label-7986
SELECT DISTINCT COUNT ( * ) - - 85
----
86

query II rowsort
SELECT - + 83, 82 col1
----
-83
82

query I rowsort
SELECT ALL 16 * + + 49 AS col2
----
784

query I rowsort
SELECT ALL - 16 * - - 95
----
-1520

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT - COALESCE ( ( 4 ), + - COUNT( * ) + ( COUNT( * ) ), - 17 )
----
-4

skipif mysql # not compatible
query I rowsort label-7990
SELECT - COALESCE ( ( 4 ), + - COUNT ( * ) + ( COUNT ( * ) ), - 17 )
----
-4

query I rowsort
SELECT DISTINCT 69 * + 67
----
4623

query I rowsort
SELECT + COALESCE ( - 39, - - ( 75 ) ) + - 56
----
-95

query I rowsort
SELECT - 98 * - 32 * - + 89
----
-279104

query I rowsort
SELECT + 10 + - 33 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT ALL + COUNT( ALL - 98 )
----
1

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL + COUNT ( ALL - 98 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7996
SELECT CAST( - 85 AS SIGNED )
----
-85

skipif mysql # not compatible
query I rowsort label-7996
SELECT CAST ( - 85 AS INTEGER )
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7997
SELECT 79 * + COUNT( * ) DIV + + 87 * + - 27 + - 25 + + + 74 * - 8
----
-617

skipif mysql # not compatible
query I rowsort label-7997
SELECT 79 * + COUNT ( * ) / + + 87 * + - 27 + - 25 + + + 74 * - 8
----
-617

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7998
SELECT - 3 DIV COUNT( ALL + 46 ) + - + ( - 75 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7998
SELECT - 3 / COUNT ( ALL + 46 ) + - + ( - 75 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT ALL + SUM( ALL + ( - + 46 ) ) col1
----
-46

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL + SUM ( ALL + ( - + 46 ) ) col1
----
-46

query II rowsort
SELECT ALL 21 * 0, 84 col0
----
0
84

query II rowsort
SELECT - 32 + - + 62 AS col2, 94 * 24 AS col1
----
-94
2256

query I rowsort
SELECT ( + NULLIF ( + + 96, - 37 ) )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8003
SELECT + CAST( + 76 AS SIGNED ) AS col0, + 31 + - 65 + - 77 * 70 * + 60 * - 23
----
76
7438166

skipif mysql # not compatible
query II rowsort label-8003
SELECT + CAST ( + 76 AS INTEGER ) AS col0, + 31 + - 65 + - 77 * 70 * + 60 * - 23
----
76
7438166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8004
SELECT ( CAST( - 51 AS SIGNED ) ) col2
----
-51

skipif mysql # not compatible
query I rowsort label-8004
SELECT ( CAST ( - 51 AS INTEGER ) ) col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8005
SELECT + CAST( - - ( - ( + 86 ) ) AS SIGNED ) AS col2, - 62 * + 70
----
-86
-4340

skipif mysql # not compatible
query II rowsort label-8005
SELECT + CAST ( - - ( - ( + 86 ) ) AS INTEGER ) AS col2, - 62 * + 70
----
-86
-4340

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT 16 * - COUNT( * ) + - + 57 * + 98
----
-5602

skipif mysql # not compatible
query I rowsort label-8006
SELECT 16 * - COUNT ( * ) + - + 57 * + 98
----
-5602

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT ALL - ( - + 20 ) * + COALESCE ( + + 73, - + MAX( ALL - ( - 19 ) ) ) + + 33
----
1493

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL - ( - + 20 ) * + COALESCE ( + + 73, - + MAX ( ALL - ( - 19 ) ) ) + + 33
----
1493

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8009
SELECT ALL + COUNT( + 67 ) * + 89 DIV - 42 + + 74 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL + COUNT ( + 67 ) * + 89 / - 42 + + 74 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT NULLIF ( + 91, CASE + COUNT( * ) WHEN + 34 THEN NULL WHEN + 81 THEN NULL WHEN - + COUNT( DISTINCT - 30 ) + - MAX( DISTINCT + 88 ) + - 88 THEN NULL ELSE + 11 + + + 20 END * + 7 * + - 36 )
----
91

skipif mysql # not compatible
query I rowsort label-8010
SELECT NULLIF ( + 91, CASE + COUNT ( * ) WHEN + 34 THEN NULL WHEN + 81 THEN NULL WHEN - + COUNT ( DISTINCT - 30 ) + - MAX ( DISTINCT + 88 ) + - 88 THEN NULL ELSE + 11 + + + 20 END * + 7 * + - 36 )
----
91

query I rowsort
SELECT ALL + - CASE 7 WHEN - 1 + + 73 THEN + + 61 WHEN - 89 THEN - - 98 + + - 91 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT - MIN( NULLIF ( 71, - 30 ) )
----
-71

skipif mysql # not compatible
query I rowsort label-8012
SELECT - MIN ( NULLIF ( 71, - 30 ) )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT - 72 * - + ( + COALESCE ( NULLIF ( + SUM( ALL 52 ), - COALESCE ( - 16, + - 53, - 47 * + - AVG ( DISTINCT + + 65 ) ) ), - - 84, - 38 ) ) * 63
----
235872

skipif mysql # not compatible
query I rowsort label-8013
SELECT - 72 * - + ( + COALESCE ( NULLIF ( + SUM ( ALL 52 ), - COALESCE ( - 16, + - 53, - 47 * + - AVG ( DISTINCT + + 65 ) ) ), - - 84, - 38 ) ) * 63
----
235872

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT + COUNT( DISTINCT + 46 )
----
1

skipif mysql # not compatible
query I rowsort label-8014
SELECT + COUNT ( DISTINCT + 46 )
----
1

query I rowsort
SELECT + + 86 + + 44 * - + 81 AS col2
----
-3478

query I rowsort
SELECT ALL - ( + - 18 )
----
18

query I rowsort
SELECT - ( + ( - 17 ) ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT - + 1 * + COUNT( * ) + 72
----
71

skipif mysql # not compatible
query I rowsort label-8018
SELECT - + 1 * + COUNT ( * ) + 72
----
71

query I rowsort
SELECT + 31 + - - 84
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8020
SELECT ALL - - 54 - CAST( NULL AS SIGNED ) * 31 * + - 35, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8020
SELECT ALL - - 54 - CAST ( NULL AS INTEGER ) * 31 * + - 35, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8021
SELECT ALL CASE COUNT( * ) WHEN 8 THEN + 16 WHEN - + 72 + 6 THEN - 46 ELSE NULL END AS col1, - 88 + NULLIF ( + 24, 17 * - 1 * - + 21 ) DIV - 47
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-8021
SELECT ALL CASE COUNT ( * ) WHEN 8 THEN + 16 WHEN - + 72 + 6 THEN - 46 ELSE NULL END AS col1, - 88 + NULLIF ( + 24, 17 * - 1 * - + 21 ) / - 47
----
NULL
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-8022
SELECT - MAX( ALL + 72 ), 86 + - 68 AS col2
----
-72
18

skipif mysql # not compatible
query II rowsort label-8022
SELECT - MAX ( ALL + 72 ), 86 + - 68 AS col2
----
-72
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT - COUNT( * ) - 46 * - - SUM( DISTINCT 75 ) + - + 13 + + 68 AS col0
----
-3396

skipif mysql # not compatible
query I rowsort label-8023
SELECT - COUNT ( * ) - 46 * - - SUM ( DISTINCT 75 ) + - + 13 + + 68 AS col0
----
-3396

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT NULLIF ( - 16, 32 ) + MAX( DISTINCT + + 81 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-8024
SELECT NULLIF ( - 16, 32 ) + MAX ( DISTINCT + + 81 ) AS col0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8025
SELECT DISTINCT COUNT( * ) DIV - 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8025
SELECT DISTINCT COUNT ( * ) / - 53 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT DISTINCT NULLIF ( 89, - 79 ) * - - 2 * + COUNT( * ) AS col1
----
178

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT NULLIF ( 89, - 79 ) * - - 2 * + COUNT ( * ) AS col1
----
178

onlyif mysql # DIV for integer division: 
query I rowsort label-8027
SELECT DISTINCT + 29 DIV + NULLIF ( - 69, - 44 )
----
0

skipif mysql # not compatible
query I rowsort label-8027
SELECT DISTINCT + 29 / + NULLIF ( - 69, - 44 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8028
SELECT COALESCE ( - 17, - COUNT( * ) DIV 37 * + 89 ) * + 5
----
-85

skipif mysql # not compatible
query I rowsort label-8028
SELECT COALESCE ( - 17, - COUNT ( * ) / 37 * + 89 ) * + 5
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT DISTINCT ( + COUNT( * ) ) + + + 58
----
59

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT ( + COUNT ( * ) ) + + + 58
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8030
SELECT ALL COALESCE ( + MIN( - 69 ), - 65 + 34 DIV - 86, + + 51 * - 0 ) * + + SUM( ALL - - 38 ) * 32 AS col0, - 45 + - CAST( NULL AS SIGNED ) - + - 38
----
-83904
NULL

skipif mysql # not compatible
query II rowsort label-8030
SELECT ALL COALESCE ( + MIN ( - 69 ), - 65 + 34 / - 86, + + 51 * - 0 ) * + + SUM ( ALL - - 38 ) * 32 AS col0, - 45 + - CAST ( NULL AS INTEGER ) - + - 38
----
-83904
NULL

query I rowsort
SELECT DISTINCT 80 * 56
----
4480

onlyif mysql # aggregate syntax: 
query II rowsort label-8032
SELECT ALL 15 + 62 + ( + + CASE - - 99 WHEN + MAX( DISTINCT 69 ) * + MAX( + + 67 ) THEN - 73 + 44 + + 89 * - 41 WHEN + 58 + - 52 THEN + 59 + + 58 ELSE NULL END ) - + 76 AS col1, 62 + - + 19 AS col1
----
NULL
43

skipif mysql # not compatible
query II rowsort label-8032
SELECT ALL 15 + 62 + ( + + CASE - - 99 WHEN + MAX ( DISTINCT 69 ) * + MAX ( + + 67 ) THEN - 73 + 44 + + 89 * - 41 WHEN + 58 + - 52 THEN + 59 + + 58 ELSE NULL END ) - + 76 AS col1, 62 + - + 19 AS col1
----
NULL
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8033
SELECT 16 * COALESCE ( + COALESCE ( 59, + CAST( NULL AS SIGNED ) + + + 61 ), - 10 ) AS col0
----
944

skipif mysql # not compatible
query I rowsort label-8033
SELECT 16 * COALESCE ( + COALESCE ( 59, + CAST ( NULL AS INTEGER ) + + + 61 ), - 10 ) AS col0
----
944

query II rowsort
SELECT 9 AS col2, + 68 + 13 * + + 11
----
9
211

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8035
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 42 * - + 74 AS col0, + 68
----
NULL
68

skipif mysql # not compatible
query II rowsort label-8035
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 42 * - + 74 AS col0, + 68
----
NULL
68

query II rowsort
SELECT 90 AS col2, - 25
----
90
-25

query I rowsort
SELECT ALL - 21 + - 68 AS col2
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-8038
SELECT 60 DIV + 52 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8038
SELECT 60 / + 52 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT COALESCE ( 30, SUM( - 36 ) ) * ( 95 ) AS col0
----
2850

skipif mysql # not compatible
query I rowsort label-8039
SELECT COALESCE ( 30, SUM ( - 36 ) ) * ( 95 ) AS col0
----
2850

query I rowsort
SELECT DISTINCT 66 * + 69
----
4554

query I rowsort
SELECT ALL 25 - 76 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT 85 * - COUNT( - 51 ) + 97 * - 92 AS col0
----
-9009

skipif mysql # not compatible
query I rowsort label-8042
SELECT 85 * - COUNT ( - 51 ) + 97 * - 92 AS col0
----
-9009

query I rowsort
SELECT ALL + 58 * + ( 2 ) AS col0
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-8044
SELECT 85 * ( 35 DIV - 14 )
----
-170

skipif mysql # not compatible
query I rowsort label-8044
SELECT 85 * ( 35 / - 14 )
----
-170

query I rowsort
SELECT ALL + 49 * - 85 AS col2
----
-4165

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT ( + ( - MAX( ALL - 92 ) ) ) * 84
----
7728

skipif mysql # not compatible
query I rowsort label-8046
SELECT ( + ( - MAX ( ALL - 92 ) ) ) * 84
----
7728

query I rowsort
SELECT 60 + + 90 * 72
----
6540

query I rowsort
SELECT DISTINCT - COALESCE ( - 74, 75 ) col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT DISTINCT 24 - MIN( DISTINCT + 19 + 80 )
----
-75

skipif mysql # not compatible
query I rowsort label-8049
SELECT DISTINCT 24 - MIN ( DISTINCT + 19 + 80 )
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8050
SELECT ALL + COUNT( * ) DIV 32
----
0

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL + COUNT ( * ) / 32
----
0

query I rowsort
SELECT 85 + ( 81 ) AS col2
----
166

query I rowsort
SELECT 94 + 20 AS col0
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-8053
SELECT ALL + 14 DIV + 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL + 14 / + 58 AS col0
----
0

query I rowsort
SELECT 84 + 31 * + 37
----
1231

onlyif mysql # DIV for integer division: 
query I rowsort label-8055
SELECT 94 + - 60 DIV + 1 col2
----
34

skipif mysql # not compatible
query I rowsort label-8055
SELECT 94 + - 60 / + 1 col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8056
SELECT ALL + COALESCE ( 62, + 6 + COUNT( * ) * - ( + 31 - CASE - 43 WHEN + 6 THEN NULL WHEN + COUNT( * ) THEN CAST( NULL AS SIGNED ) + + ( - 36 ) END ) ) * + 82
----
5084

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL + COALESCE ( 62, + 6 + COUNT ( * ) * - ( + 31 - CASE - 43 WHEN + 6 THEN NULL WHEN + COUNT ( * ) THEN CAST ( NULL AS INTEGER ) + + ( - 36 ) END ) ) * + 82
----
5084

query I rowsort
SELECT 0 * + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT ALL + MAX( 92 ) + 15
----
107

skipif mysql # not compatible
query I rowsort label-8058
SELECT ALL + MAX ( 92 ) + 15
----
107

query I rowsort
SELECT DISTINCT + 42 * + ( 39 ) col2
----
1638

query I rowsort
SELECT ALL 75 + - 14 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT COUNT( * ) + 36 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-8061
SELECT COUNT ( * ) + 36 AS col1
----
37

query I rowsort
SELECT ALL + 24 * 6 AS col1
----
144

query I rowsort
SELECT DISTINCT - 70 + 72 col2
----
2

query I rowsort
SELECT 29 + 49
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT DISTINCT SUM( ALL + ( 47 ) ) col0
----
47

skipif mysql # not compatible
query I rowsort label-8065
SELECT DISTINCT SUM ( ALL + ( 47 ) ) col0
----
47

query I rowsort
SELECT ALL - 52 + 22
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT 6 + - CASE - 56 + - 60 WHEN COUNT( * ) * + 28 THEN - 13 ELSE 35 END
----
-29

skipif mysql # not compatible
query I rowsort label-8067
SELECT 6 + - CASE - 56 + - 60 WHEN COUNT ( * ) * + 28 THEN - 13 ELSE 35 END
----
-29

query I rowsort
SELECT 16 + + 1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8069
SELECT 25 + 38 DIV - SUM( ALL 86 - + ( 70 ) )
----
23

skipif mysql # not compatible
query I rowsort label-8069
SELECT 25 + 38 / - SUM ( ALL 86 - + ( 70 ) )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT ALL - CAST( 1 AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL - CAST ( 1 AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT ALL NULLIF ( + 57, + 28 * + 42 ) * + CASE + 66 WHEN 94 THEN NULL ELSE 31 * - 39 END + + 18
----
-68895

query I rowsort
SELECT COALESCE ( 72, 77 * 62 ) + 34 col2
----
106

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8073
SELECT DISTINCT + CAST( 30 AS SIGNED ) DIV - 14
----
-2

skipif mysql # not compatible
query I rowsort label-8073
SELECT DISTINCT + CAST ( 30 AS INTEGER ) / - 14
----
-2

query I rowsort
SELECT ALL 61 * - 91 AS col2
----
-5551

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT ALL + 73 * 30 + COUNT( ALL 96 )
----
2191

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL + 73 * 30 + COUNT ( ALL 96 )
----
2191

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT DISTINCT 78 * + NULLIF ( - 36, + COUNT( * ) * - 0 )
----
-2808

skipif mysql # not compatible
query I rowsort label-8076
SELECT DISTINCT 78 * + NULLIF ( - 36, + COUNT ( * ) * - 0 )
----
-2808

onlyif mysql # DIV for integer division: 
query I rowsort label-8077
SELECT 31 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-8077
SELECT 31 / - 97
----
0

query I rowsort
SELECT DISTINCT 66 * 84 AS col1
----
5544

query I rowsort
SELECT ALL 25 * + 58
----
1450

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT - 11 + - ( SUM( 80 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-8080
SELECT - 11 + - ( SUM ( 80 ) )
----
-91

query I rowsort
SELECT ALL - + ( 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT 66 * - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-8082
SELECT 66 * - COUNT ( * )
----
-66

query I rowsort
SELECT ALL + 90 * - 61 AS col0
----
-5490

query I rowsort
SELECT + + 58 col1
----
58

query I rowsort
SELECT ALL - + 60 col0
----
-60

query I rowsort
SELECT ALL + 73 * - 52 col1
----
-3796

query I rowsort
SELECT - - 34 * - 62 col2
----
-2108

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8088
SELECT ALL - CAST( NULL AS DECIMAL ) * 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL - CAST ( NULL AS REAL ) * 87 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 79 + 92
----
171

query I rowsort
SELECT + - 74 * 76 col0
----
-5624

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT DISTINCT - - 62 + MIN( ALL 12 )
----
74

skipif mysql # not compatible
query I rowsort label-8091
SELECT DISTINCT - - 62 + MIN ( ALL 12 )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8092
SELECT ALL + 88 + 35 DIV 42
----
88

skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL + 88 + 35 / 42
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT ( - ( + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8093
SELECT ( - ( + COUNT ( * ) ) )
----
-1

query I rowsort
SELECT - 40 * 78 col2
----
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT ALL - CASE WHEN NOT 48 BETWEEN NULL AND NULL THEN + 25 + + 88 WHEN NOT 28 <> NULL THEN - NULLIF ( AVG ( 78 ), - COUNT( * ) ) END / - 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL - CASE WHEN NOT 48 BETWEEN NULL AND NULL THEN + 25 + + 88 WHEN NOT 28 <> NULL THEN - NULLIF ( AVG ( 78 ), - COUNT ( * ) ) END / - 4 AS col0
----
NULL

query I rowsort
SELECT ALL + 20 + - + 76 AS col1
----
-56

query I rowsort
SELECT + 45 * - - 89 AS col2
----
4005

query I rowsort
SELECT + 4 * 58
----
232

query I rowsort
SELECT - 27 + - 7
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT DISTINCT - COUNT( * ) + - - 10 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-8100
SELECT DISTINCT - COUNT ( * ) + - - 10 AS col0
----
9

query I rowsort
SELECT DISTINCT COALESCE ( - 83, 93 * 21 + - 3 ) AS col0
----
-83

query I rowsort
SELECT ALL - 21 + + 64 * + 67 AS col2
----
4267

query I rowsort
SELECT ALL + 66 - + - 16 AS col1
----
82

query I rowsort
SELECT - 26 - - 17
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT ALL + MAX( 11 ) col2
----
11

skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL + MAX ( 11 ) col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8106
SELECT DISTINCT + CAST( + 85 AS SIGNED ) * 78
----
6630

skipif mysql # not compatible
query I rowsort label-8106
SELECT DISTINCT + CAST ( + 85 AS INTEGER ) * 78
----
6630

onlyif mysql # DIV for integer division: 
query I rowsort label-8107
SELECT 85 DIV - ( 20 ) - + 65 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-8107
SELECT 85 / - ( 20 ) - + 65 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT - COUNT( * ) * 9 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8108
SELECT - COUNT ( * ) * 9 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT + SUM( + 30 )
----
30

skipif mysql # not compatible
query I rowsort label-8109
SELECT + SUM ( + 30 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT + 37 * - - SUM( ALL 33 )
----
1221

skipif mysql # not compatible
query I rowsort label-8110
SELECT + 37 * - - SUM ( ALL 33 )
----
1221

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8111
SELECT ( ( COALESCE ( COUNT( * ), - COALESCE ( 53, + 65 DIV - 40 ) ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8111
SELECT ( ( COALESCE ( COUNT ( * ), - COALESCE ( 53, + 65 / - 40 ) ) ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8112
SELECT + 99 * - + CAST( NULL AS SIGNED ) * - 31 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8112
SELECT + 99 * - + CAST ( NULL AS INTEGER ) * - 31 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT + - MIN( 24 ) col0
----
-24

skipif mysql # not compatible
query I rowsort label-8113
SELECT + - MIN ( 24 ) col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT + + 3 * 85 - COUNT( ALL 99 )
----
254

skipif mysql # not compatible
query I rowsort label-8114
SELECT + + 3 * 85 - COUNT ( ALL 99 )
----
254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8115
SELECT + MAX( DISTINCT + 8 ) / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8115
SELECT + MAX ( DISTINCT + 8 ) / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8116
SELECT ALL - - 48 / - NULLIF ( 11, 9 ) * + CAST( NULL AS SIGNED ) + - NULLIF ( COUNT( * ) - 4 * 23, + 40 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL - - 48 / - NULLIF ( 11, 9 ) * + CAST ( NULL AS INTEGER ) + - NULLIF ( COUNT ( * ) - 4 * 23, + 40 ) AS col1
----
NULL

query I rowsort
SELECT ALL 14 * 44 AS col0
----
616

query I rowsort
SELECT ALL - 44 * - 49 AS col1
----
2156

query I rowsort
SELECT + 97 * - 89 AS col2
----
-8633

query I rowsort
SELECT + + 64 * + 29 * + NULLIF ( 46, 52 - - 62 * - 10 ) col2
----
85376

query I rowsort
SELECT - 41 + - + 43 col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8122
SELECT + - 89 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8122
SELECT + - 89 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 55 + + + 38 * 88 AS col1
----
3399

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT - - COUNT( * ) * 71 - ( 93 + 59 * 19 )
----
-1143

skipif mysql # not compatible
query I rowsort label-8124
SELECT - - COUNT ( * ) * 71 - ( 93 + 59 * 19 )
----
-1143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8125
SELECT + 64 * - + 2 + - COUNT( * ) + 79 DIV - 72 col0
----
-130

skipif mysql # not compatible
query I rowsort label-8125
SELECT + 64 * - + 2 + - COUNT ( * ) + 79 / - 72 col0
----
-130

query I rowsort
SELECT DISTINCT + 39 * + + 81
----
3159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8127
SELECT DISTINCT + 66 * + 41 + - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8127
SELECT DISTINCT + 66 * + 41 + - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT ALL + 30 * - 76 + - COUNT( * )
----
-2281

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL + 30 * - 76 + - COUNT ( * )
----
-2281

query I rowsort
SELECT - + ( + - 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT DISTINCT COUNT( 31 ) * - 39 + - 72 AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-8130
SELECT DISTINCT COUNT ( 31 ) * - 39 + - 72 AS col1
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8131
SELECT - CAST( - - 50 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-8131
SELECT - CAST ( - - 50 AS INTEGER )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT DISTINCT MIN( 42 ) + + - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-8132
SELECT DISTINCT MIN ( 42 ) + + - COUNT ( * )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8133
SELECT ALL 22 + + + ( - + 72 ) DIV 46 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL 22 + + + ( - + 72 ) / 46 AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8134
SELECT ALL CASE + 39 WHEN 10 THEN 34 * + 18 + ( CAST( NULL AS SIGNED ) - + COALESCE ( + CASE WHEN NULL NOT BETWEEN ( - 5 ) AND - CASE + MIN( 86 ) WHEN - 40 THEN NULL WHEN 63 THEN COUNT( * ) * 19 ELSE + 45 * + 62 END THEN 8 END, - NULLIF ( + CAST( NULL AS SIGNED ), + 32 * 97 ) + + 75 * + 19 ) ) WHEN - 99 * 1 THEN 13 WHEN + 77 * 0 THEN NULL END + + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL CASE + 39 WHEN 10 THEN 34 * + 18 + ( CAST ( NULL AS INTEGER ) - + COALESCE ( + CASE WHEN NULL NOT BETWEEN ( - 5 ) AND - CASE + MIN ( 86 ) WHEN - 40 THEN NULL WHEN 63 THEN COUNT ( * ) * 19 ELSE + 45 * + 62 END THEN 8 END, - NULLIF ( + CAST ( NULL AS INTEGER ), + 32 * 97 ) + + 75 * + 19 ) ) WHEN - 99 * 1 THEN 13 WHEN + 77 * 0 THEN NULL END + + 66 AS col2
----
NULL

query I rowsort
SELECT - ( - - 31 )
----
-31

query I rowsort
SELECT - ( - 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT + 80 * 60 * - - MAX( ALL - 86 ) AS col2
----
-412800

skipif mysql # not compatible
query I rowsort label-8137
SELECT + 80 * 60 * - - MAX ( ALL - 86 ) AS col2
----
-412800

query I rowsort
SELECT ALL 92 * - - 20 AS col1
----
1840

query I rowsort
SELECT DISTINCT - 53 - - - 71 * 44 + 35
----
-3142

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT DISTINCT 21 * - ( - COUNT( * ) ) * - 21
----
-441

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT 21 * - ( - COUNT ( * ) ) * - 21
----
-441

query I rowsort
SELECT ALL - 35 - + ( - + 4 )
----
-31

query I rowsort
SELECT + 50 * + - 20 AS col1
----
-1000

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT DISTINCT COUNT( - 87 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT COUNT ( - 87 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT ALL COUNT( * ) - - 73
----
74

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL COUNT ( * ) - - 73
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT + 32 + + ( + COUNT( * ) ) * + 85
----
117

skipif mysql # not compatible
query I rowsort label-8145
SELECT + 32 + + ( + COUNT ( * ) ) * + 85
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8146
SELECT + MAX( - 45 ) * + - 89 * - CAST( ( - 57 ) * - 0 AS SIGNED ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8146
SELECT + MAX ( - 45 ) * + - 89 * - CAST ( ( - 57 ) * - 0 AS INTEGER ) + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8147
SELECT - CAST( + 43 AS SIGNED ) * 55 AS col0
----
-2365

skipif mysql # not compatible
query I rowsort label-8147
SELECT - CAST ( + 43 AS INTEGER ) * 55 AS col0
----
-2365

query I rowsort
SELECT ALL ( - 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT + NULLIF ( - - COALESCE ( - 53, + MAX( DISTINCT + 39 ) + - ( + 94 ) ), - 80 ) + 64
----
11

skipif mysql # not compatible
query I rowsort label-8149
SELECT + NULLIF ( - - COALESCE ( - 53, + MAX ( DISTINCT + 39 ) + - ( + 94 ) ), - 80 ) + 64
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT + COUNT( ALL - 83 )
----
1

skipif mysql # not compatible
query I rowsort label-8150
SELECT + COUNT ( ALL - 83 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8151
SELECT ALL + COUNT( * ) col0, + 99 AS col2
----
1
99

skipif mysql # not compatible
query II rowsort label-8151
SELECT ALL + COUNT ( * ) col0, + 99 AS col2
----
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT ALL - - 87 * CASE 89 WHEN + 31 * + 52 THEN 51 ELSE MIN( - 84 ) END
----
-7308

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL - - 87 * CASE 89 WHEN + 31 * + 52 THEN 51 ELSE MIN ( - 84 ) END
----
-7308

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT - + 17 + - COUNT( * ) - + MAX( - 63 ) * 60 AS col0
----
3762

skipif mysql # not compatible
query I rowsort label-8153
SELECT - + 17 + - COUNT ( * ) - + MAX ( - 63 ) * 60 AS col0
----
3762

query I rowsort
SELECT DISTINCT - + 71 * + 6
----
-426

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT DISTINCT - COUNT( * ) * - 66 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-8155
SELECT DISTINCT - COUNT ( * ) * - 66 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT DISTINCT - 95 * MAX( DISTINCT 75 ) AS col2
----
-7125

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT - 95 * MAX ( DISTINCT 75 ) AS col2
----
-7125

query I rowsort
SELECT ALL + ( - 0 ) col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8158
SELECT - NULLIF ( + CAST( + 20 AS SIGNED ), 18 DIV 68 ) DIV SUM( 51 * 68 + 68 ) + SUM( DISTINCT 13 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8158
SELECT - NULLIF ( + CAST ( + 20 AS INTEGER ), 18 / 68 ) / SUM ( 51 * 68 + 68 ) + SUM ( DISTINCT 13 ) AS col1
----
13

query I rowsort
SELECT ALL - + 95 * + + 55 + - + 29 AS col0
----
-5254

query I rowsort
SELECT ALL - + 20 + 82 * - 24 AS col2
----
-1988

query I rowsort
SELECT - 39 * - 66 AS col2
----
2574

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT + COALESCE ( ( + - MIN( DISTINCT + 5 ) ), 56, 74, COUNT( * ) - + 67 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-8162
SELECT + COALESCE ( ( + - MIN ( DISTINCT + 5 ) ), 56, 74, COUNT ( * ) - + 67 ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8163
SELECT + 55 AS col0, + COUNT( + - 70 ) - - 37
----
55
38

skipif mysql # not compatible
query II rowsort label-8163
SELECT + 55 AS col0, + COUNT ( + - 70 ) - - 37
----
55
38

query I rowsort
SELECT ALL + NULLIF ( 15, - 40 ) + - 38 * + 70 AS col2
----
-2645

onlyif mysql # aggregate syntax: 
query II rowsort label-8165
SELECT ALL - - COUNT( * ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-8165
SELECT ALL - - COUNT ( * ), COUNT ( * )
----
1
1

query I rowsort
SELECT ALL - 46 + + 10 col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT COUNT( * ) * - 74 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-8167
SELECT COUNT ( * ) * - 74 AS col2
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-8168
SELECT ALL - + 3 DIV - - 24 col2
----
0

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL - + 3 / - - 24 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT ALL - NULLIF ( - + COUNT( * ), 49 - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL - NULLIF ( - + COUNT ( * ), 49 - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8170
SELECT DISTINCT - - 78 + + 14 + 37 DIV - COUNT( * ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT - - 78 + + 14 + 37 / - COUNT ( * ) AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8171
SELECT ALL 28 * - - CAST( - 25 AS SIGNED ) DIV COUNT( * ) col1
----
-700

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL 28 * - - CAST ( - 25 AS INTEGER ) / COUNT ( * ) col1
----
-700

query II rowsort
SELECT + + 21 AS col1, - 78
----
21
-78

query I rowsort
SELECT DISTINCT - COALESCE ( - 14, + 87, + 77 ) + + 50 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT ALL + + ( + ( MAX( DISTINCT + 31 ) ) ) + 57 * + 44 col1
----
2539

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL + + ( + ( MAX ( DISTINCT + 31 ) ) ) + 57 * + 44 col1
----
2539

query I rowsort
SELECT 24 * + 43 AS col2
----
1032

query I rowsort
SELECT 9 - 85 AS col0
----
-76

query I rowsort
SELECT 16 + - ( 75 )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8178
SELECT COUNT( * ) DIV - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8178
SELECT COUNT ( * ) / - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT ALL 68 - 66 * + 9 + COUNT( * ) + - 25
----
-550

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL 68 - 66 * + 9 + COUNT ( * ) + - 25
----
-550

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8180
SELECT ALL - CASE + 41 WHEN - + COUNT( * ) * + 74 - - COALESCE ( - 24 + + CAST( NULL AS DECIMAL ), - COALESCE ( - 76, + ( 78 ) + + 40 ) * 99 ) THEN - ( + 15 ) / + ( COUNT( * ) ) END * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL - CASE + 41 WHEN - + COUNT ( * ) * + 74 - - COALESCE ( - 24 + + CAST ( NULL AS REAL ), - COALESCE ( - 76, + ( 78 ) + + 40 ) * 99 ) THEN - ( + 15 ) / + ( COUNT ( * ) ) END * 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT 54 * + 96 * MIN( ALL 78 )
----
404352

skipif mysql # not compatible
query I rowsort label-8181
SELECT 54 * + 96 * MIN ( ALL 78 )
----
404352

query I rowsort
SELECT 60 + 24 * + + 6
----
204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8183
SELECT ALL CAST( NULL AS SIGNED ) - - 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL CAST ( NULL AS INTEGER ) - - 0 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT 44 + - 46 + 18 * - COUNT( * ) + - COALESCE ( 21, COUNT( * ) + + 14 * + 64 ) * - 22
----
442

skipif mysql # not compatible
query I rowsort label-8184
SELECT 44 + - 46 + 18 * - COUNT ( * ) + - COALESCE ( 21, COUNT ( * ) + + 14 * + 64 ) * - 22
----
442

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT COUNT( DISTINCT - ( + 96 ) ) * - 70 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-8185
SELECT COUNT ( DISTINCT - ( + 96 ) ) * - 70 AS col0
----
-70

query I rowsort
SELECT ALL 2 * 34 AS col2
----
68

query I rowsort
SELECT ALL 66 * + 23
----
1518

query I rowsort
SELECT ALL - - ( + 12 ) + - 34 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-8189
SELECT + SUM( + 36 ), - 16 AS col2
----
36
-16

skipif mysql # not compatible
query II rowsort label-8189
SELECT + SUM ( + 36 ), - 16 AS col2
----
36
-16

query I rowsort
SELECT ALL + NULLIF ( + 28, CASE - 22 WHEN 15 THEN + 22 END ) AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-8191
SELECT - 87 DIV 46 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8191
SELECT - 87 / 46 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT 10 * + ( + COUNT( * ) ) + 64
----
74

skipif mysql # not compatible
query I rowsort label-8192
SELECT 10 * + ( + COUNT ( * ) ) + 64
----
74

query I rowsort
SELECT ALL 26 + 91 + - 73 * - 83 * ( 17 ) * - 73
----
-7519102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8194
SELECT + + SUM( 5 ) DIV - ( + 68 ) - 65
----
-65

skipif mysql # not compatible
query I rowsort label-8194
SELECT + + SUM ( 5 ) / - ( + 68 ) - 65
----
-65

query I rowsort
SELECT DISTINCT - + ( + 52 ) AS col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8196
SELECT + 10 - + - CAST( NULL AS SIGNED ) AS col1, 43
----
NULL
43

skipif mysql # not compatible
query II rowsort label-8196
SELECT + 10 - + - CAST ( NULL AS INTEGER ) AS col1, 43
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT + COALESCE ( - COUNT( * ), - + 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-8197
SELECT + COALESCE ( - COUNT ( * ), - + 66 )
----
-1

query I rowsort
SELECT + 93 * 9 + - 71
----
766

onlyif mysql # DIV for integer division: 
query I rowsort label-8199
SELECT + 37 * + + 24 + 84 DIV + - 86 + 22
----
910

skipif mysql # not compatible
query I rowsort label-8199
SELECT + 37 * + + 24 + 84 / + - 86 + 22
----
910

query I rowsort
SELECT ALL - 50 + - 38
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT ALL - 1 + + + COUNT( + NULLIF ( + 70, CASE 47 WHEN + 78 THEN 45 ELSE - 60 * + 96 END * 68 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL - 1 + + + COUNT ( + NULLIF ( + 70, CASE 47 WHEN + 78 THEN 45 ELSE - 60 * + 96 END * 68 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8202
SELECT 59 - + 8 DIV + 49
----
59

skipif mysql # not compatible
query I rowsort label-8202
SELECT 59 - + 8 / + 49
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8203
SELECT ALL + 15 + 90 DIV 67
----
16

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL + 15 + 90 / 67
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8204
SELECT DISTINCT - MAX( DISTINCT 64 ) * - CAST( NULL AS SIGNED ) + + 74 / 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT - MAX ( DISTINCT 64 ) * - CAST ( NULL AS INTEGER ) + + 74 / 78 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT DISTINCT - SUM( DISTINCT 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-8205
SELECT DISTINCT - SUM ( DISTINCT 33 ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT 19 + + - 21 * - COUNT( * ) * MIN( DISTINCT + + 33 ) AS col1
----
712

skipif mysql # not compatible
query I rowsort label-8206
SELECT 19 + + - 21 * - COUNT ( * ) * MIN ( DISTINCT + + 33 ) AS col1
----
712

query I rowsort
SELECT 54 - - - 67 AS col1
----
-13

query I rowsort
SELECT - 78 * - 19 + + - 40
----
1442

query I rowsort
SELECT ALL + ( - 2 ) - + 48
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8210
SELECT 35 * + CAST( NULL AS SIGNED ) * - - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-8210
SELECT 35 * + CAST ( NULL AS INTEGER ) * - - 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT ALL - COUNT( ALL + - 76 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL - COUNT ( ALL + - 76 ) AS col2
----
-1

query I rowsort
SELECT ALL 21 * 9
----
189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8213
SELECT ALL + COUNT( * ) DIV ( 91 ), + CASE - COALESCE ( + CASE + 38 WHEN - NULLIF ( 20, + 64 ) * + COUNT( * ) + 43 THEN COUNT( 98 ) + 30 ELSE NULL END, - 10 * 26 ) WHEN + CAST( NULL AS SIGNED ) * - 17 + 58 THEN NULL ELSE - 27 * + 60 END col0
----
0
-1620

skipif mysql # not compatible
query II rowsort label-8213
SELECT ALL + COUNT ( * ) / ( 91 ), + CASE - COALESCE ( + CASE + 38 WHEN - NULLIF ( 20, + 64 ) * + COUNT ( * ) + 43 THEN COUNT ( 98 ) + 30 ELSE NULL END, - 10 * 26 ) WHEN + CAST ( NULL AS INTEGER ) * - 17 + 58 THEN NULL ELSE - 27 * + 60 END col0
----
0
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT MIN( DISTINCT + 35 ) * + 41 - COUNT( * ) col2
----
1434

skipif mysql # not compatible
query I rowsort label-8214
SELECT MIN ( DISTINCT + 35 ) * + 41 - COUNT ( * ) col2
----
1434

query I rowsort
SELECT 63 + 85 AS col1
----
148

query I rowsort
SELECT 41 + - 22 AS col1
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8217
SELECT ( COUNT( * ) ) * - - 21 DIV 12 + 98 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-8217
SELECT ( COUNT ( * ) ) * - - 21 / 12 + 98 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT SUM( DISTINCT 65 ) + + 33 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-8218
SELECT SUM ( DISTINCT 65 ) + + 33 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT DISTINCT + COUNT( * ) * - - 36
----
36

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT + COUNT ( * ) * - - 36
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT ALL 60 + + + CASE - 67 WHEN + 58 THEN NULL WHEN + 57 * + 35 THEN + 94 + - COUNT( * ) * 9 END - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL 60 + + + CASE - 67 WHEN + 58 THEN NULL WHEN + 57 * + 35 THEN + 94 + - COUNT ( * ) * 9 END - 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT ALL COUNT( - - 42 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL COUNT ( - - 42 ) col0
----
1

query I rowsort
SELECT ALL + 45 + 24 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT + + 40 + + 83 - - COUNT( * ) + + - 32
----
92

skipif mysql # not compatible
query I rowsort label-8223
SELECT + + 40 + + 83 - - COUNT ( * ) + + - 32
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8224
SELECT + CASE CASE - 9 WHEN + MIN( 43 ) THEN + CAST( + 86 AS SIGNED ) END WHEN - 33 * COUNT( * ) + 92 THEN 70 WHEN - 51 THEN 57 END - - ( 17 + + CAST( NULL AS SIGNED ) * + 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8224
SELECT + CASE CASE - 9 WHEN + MIN ( 43 ) THEN + CAST ( + 86 AS INTEGER ) END WHEN - 33 * COUNT ( * ) + 92 THEN 70 WHEN - 51 THEN 57 END - - ( 17 + + CAST ( NULL AS INTEGER ) * + 68 )
----
NULL

query I rowsort
SELECT + 7 + + + 47 + + ( - - 2 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8226
SELECT + 77 - 9 + - 53 + - 35 + NULLIF ( 9, MAX( ALL - 39 ) ) + CAST( CASE 60 WHEN ( + ( 27 ) ) * ( - 97 ) THEN NULL ELSE 50 / - MIN( ALL + 7 * 16 ) + 19 * - 31 END + 54 AS SIGNED ) AS col2
----
-546

skipif mysql # not compatible
query I rowsort label-8226
SELECT + 77 - 9 + - 53 + - 35 + NULLIF ( 9, MAX ( ALL - 39 ) ) + CAST ( CASE 60 WHEN ( + ( 27 ) ) * ( - 97 ) THEN NULL ELSE 50 / - MIN ( ALL + 7 * 16 ) + 19 * - 31 END + 54 AS INTEGER ) AS col2
----
-546

query I rowsort
SELECT ALL 47 + + 61 AS col0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT ALL + + 77 * 73 + - 68 * + CASE COUNT( * ) WHEN + 82 + 54 THEN NULL WHEN - 26 * - 53 THEN NULL ELSE - ( + 38 ) + 60 END * + 59 AS col2
----
-82643

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL + + 77 * 73 + - 68 * + CASE COUNT ( * ) WHEN + 82 + 54 THEN NULL WHEN - 26 * - 53 THEN NULL ELSE - ( + 38 ) + 60 END * + 59 AS col2
----
-82643

query I rowsort
SELECT + 30 * - 29 * - 49
----
42630

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT + ( - MAX( ALL 34 ) ) * + 88
----
-2992

skipif mysql # not compatible
query I rowsort label-8230
SELECT + ( - MAX ( ALL 34 ) ) * + 88
----
-2992

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT ALL + COUNT( 21 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL + COUNT ( 21 ) col1
----
1

query II rowsort
SELECT - 44 * + 94 + - 84 AS col0, - 10 + 6 col1
----
-4220
-4

query I rowsort
SELECT ALL - 46 * + 99 + 99 AS col1
----
-4455

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT + + 80 * - COUNT( * ) col1
----
-80

skipif mysql # not compatible
query I rowsort label-8234
SELECT + + 80 * - COUNT ( * ) col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT - - 75 + - + COUNT( * ) * - 49 AS col2
----
124

skipif mysql # not compatible
query I rowsort label-8235
SELECT - - 75 + - + COUNT ( * ) * - 49 AS col2
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-8236
SELECT + - 64 DIV + 19
----
-3

skipif mysql # not compatible
query I rowsort label-8236
SELECT + - 64 / + 19
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8237
SELECT - 93 DIV - MIN( ( - 19 ) ) col1
----
-4

skipif mysql # not compatible
query I rowsort label-8237
SELECT - 93 / - MIN ( ( - 19 ) ) col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT + - COUNT( + + 89 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8238
SELECT + - COUNT ( + + 89 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT + - NULLIF ( - COUNT( * ), - - 83 / + 40 ) * 15 + + 3 + + 36
----
54

skipif mysql # not compatible
query I rowsort label-8239
SELECT + - NULLIF ( - COUNT ( * ), - - 83 / + 40 ) * 15 + + 3 + + 36
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT ALL + - SUM( - 23 ) col0
----
23

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL + - SUM ( - 23 ) col0
----
23

query I rowsort
SELECT ALL + 46 * + + 87 - + 81
----
3921

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8242
SELECT CASE + 11 WHEN + - 55 THEN NULL ELSE - + 81 * COUNT( * ) + + 80 DIV + MAX( - 39 ) END AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-8242
SELECT CASE + 11 WHEN + - 55 THEN NULL ELSE - + 81 * COUNT ( * ) + + 80 / + MAX ( - 39 ) END AS col2
----
-83

query II rowsort
SELECT ALL + 19, NULLIF ( + 83, + 79 ) col0
----
19
83

query I rowsort
SELECT DISTINCT + COALESCE ( - - 93, 98 ) AS col2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8245
SELECT + 18 AS col2, - 70 * - CAST( NULL AS SIGNED ) * + 9 AS col1
----
18
NULL

skipif mysql # not compatible
query II rowsort label-8245
SELECT + 18 AS col2, - 70 * - CAST ( NULL AS INTEGER ) * + 9 AS col1
----
18
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8246
SELECT SUM( - CAST( NULL AS SIGNED ) ) col0, - COUNT( * ) + + 11 AS col0
----
NULL
10

skipif mysql # not compatible
query II rowsort label-8246
SELECT SUM ( - CAST ( NULL AS INTEGER ) ) col0, - COUNT ( * ) + + 11 AS col0
----
NULL
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8247
SELECT - COALESCE ( + + CASE + + 16 WHEN - + 22 THEN + 25 WHEN + 34 THEN NULL END, - CAST( NULL AS SIGNED ) / 0 ) * + 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8247
SELECT - COALESCE ( + + CASE + + 16 WHEN - + 22 THEN + 25 WHEN + 34 THEN NULL END, - CAST ( NULL AS INTEGER ) / 0 ) * + 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT DISTINCT CASE + COUNT( - 98 ) WHEN + 52 THEN + ( - 92 ) WHEN 25 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8248
SELECT DISTINCT CASE + COUNT ( - 98 ) WHEN + 52 THEN + ( - 92 ) WHEN 25 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( 79, - 95 * 94 / + - 87 - - - 56 )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8250
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) + 9 DIV - 46
----
1

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) + 9 / - 46
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT ALL - COUNT( * ) + 43
----
42

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL - COUNT ( * ) + 43
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT - COUNT( * ) - 55 * 6 AS col0
----
-331

skipif mysql # not compatible
query I rowsort label-8252
SELECT - COUNT ( * ) - 55 * 6 AS col0
----
-331

query I rowsort
SELECT ALL NULLIF ( + - 21, + 56 * - 43 )
----
-21

query I rowsort
SELECT ALL - 75 + + 27 + 85 AS col0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8255
SELECT - - CAST( NULL AS SIGNED ) + 53 * 28 * + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-8255
SELECT - - CAST ( NULL AS INTEGER ) + 53 * 28 * + - 46
----
NULL

query I rowsort
SELECT DISTINCT + 83 + - - 78 AS col1
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT DISTINCT + 72 * - COALESCE ( + 38, CASE - 28 WHEN - - 41 THEN NULL ELSE - COUNT( * ) END - + 80 * COUNT( * ), 64 ) * - 16
----
43776

skipif mysql # not compatible
query I rowsort label-8257
SELECT DISTINCT + 72 * - COALESCE ( + 38, CASE - 28 WHEN - - 41 THEN NULL ELSE - COUNT ( * ) END - + 80 * COUNT ( * ), 64 ) * - 16
----
43776

query II rowsort
SELECT ALL 62 AS col0, 91 + - + 78 + + 21 + ( - 0 )
----
62
34

query II rowsort
SELECT DISTINCT 78 col1, - ( + 96 ) col1
----
78
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT + - 28 * + - COUNT( + 35 ) - - 51 + - 16
----
63

skipif mysql # not compatible
query I rowsort label-8260
SELECT + - 28 * + - COUNT ( + 35 ) - - 51 + - 16
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-8261
SELECT DISTINCT + 94 AS col2, + MAX( 57 ) * - COUNT( * ) + + 79
----
94
22

skipif mysql # not compatible
query II rowsort label-8261
SELECT DISTINCT + 94 AS col2, + MAX ( 57 ) * - COUNT ( * ) + + 79
----
94
22

onlyif mysql # aggregate syntax: 
query II rowsort label-8262
SELECT ALL CASE COUNT( * ) WHEN + - 79 THEN + 18 END, 23 col1
----
NULL
23

skipif mysql # not compatible
query II rowsort label-8262
SELECT ALL CASE COUNT ( * ) WHEN + - 79 THEN + 18 END, 23 col1
----
NULL
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT + COUNT( DISTINCT - 42 )
----
1

skipif mysql # not compatible
query I rowsort label-8263
SELECT + COUNT ( DISTINCT - 42 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8264
SELECT - ( - + CAST( + 76 AS SIGNED ) ) DIV COUNT( * ) * + 16 - - 4 * - ( + 23 ) AS col0
----
1124

skipif mysql # not compatible
query I rowsort label-8264
SELECT - ( - + CAST ( + 76 AS INTEGER ) ) / COUNT ( * ) * + 16 - - 4 * - ( + 23 ) AS col0
----
1124

query I rowsort
SELECT DISTINCT + - 34 AS col1
----
-34

query I rowsort
SELECT - ( - 38 ) - + 75 AS col1
----
-37

query I rowsort
SELECT + + 1 * - 78
----
-78

query I rowsort
SELECT + 48 * + - 23 - - 35 + - 21 * - 51 * + 92 - - 45 * 16 col0
----
98183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8269
SELECT 71 DIV + 82 - 15 + COUNT( - 28 ) DIV 31
----
-15

skipif mysql # not compatible
query I rowsort label-8269
SELECT 71 / + 82 - 15 + COUNT ( - 28 ) / 31
----
-15

query I rowsort
SELECT ALL 57 * 32
----
1824

query I rowsort
SELECT ( 41 ) AS col1
----
41

query I rowsort
SELECT 71 * 77 + + + 90 + 73 AS col1
----
5630

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT + 21 / 42 * - CASE - - 31 WHEN - 93 THEN - - 48 END / - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8273
SELECT + 21 / 42 * - CASE - - 31 WHEN - 93 THEN - - 48 END / - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL COUNT( * ) * 68 + - 25
----
43

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL COUNT ( * ) * 68 + - 25
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT + COUNT( * ) * + 83 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-8275
SELECT + COUNT ( * ) * + 83 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT + 68 + - ( - - COUNT( * ) )
----
67

skipif mysql # not compatible
query I rowsort label-8276
SELECT + 68 + - ( - - COUNT ( * ) )
----
67

query II rowsort
SELECT - 73 - + 91 AS col1, 92
----
-164
92

onlyif mysql # DIV for integer division: 
query II rowsort label-8278
SELECT ALL 79 DIV + 20, 34 AS col1
----
3
34

skipif mysql # not compatible
query II rowsort label-8278
SELECT ALL 79 / + 20, 34 AS col1
----
3
34

onlyif mysql # DIV for integer division: 
query II rowsort label-8279
SELECT + 85 DIV 92 col2, + 92 AS col2
----
0
92

skipif mysql # not compatible
query II rowsort label-8279
SELECT + 85 / 92 col2, + 92 AS col2
----
0
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8280
SELECT ALL + CAST( NULL AS SIGNED ) * - 9 * - + 72 * + - AVG ( DISTINCT + + 54 ) + + 91 + + COUNT( * ) + 5 / 60 * + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL + CAST ( NULL AS INTEGER ) * - 9 * - + 72 * + - AVG ( DISTINCT + + 54 ) + + 91 + + COUNT ( * ) + 5 / 60 * + 92 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8281
SELECT ALL + 49 * NULLIF ( - 33, - 96 ) + + - CAST( - 97 AS SIGNED ) + + 1 + + 87 AS col1
----
-1432

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL + 49 * NULLIF ( - 33, - 96 ) + + - CAST ( - 97 AS INTEGER ) + + 1 + + 87 AS col1
----
-1432

query I rowsort
SELECT ALL 94 * + - 92 + 64 col1
----
-8584

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT COUNT( * ) * - - COALESCE ( 97, + + 71 ) * + MAX( - 89 ) + - 71 AS col0
----
-8704

skipif mysql # not compatible
query I rowsort label-8283
SELECT COUNT ( * ) * - - COALESCE ( 97, + + 71 ) * + MAX ( - 89 ) + - 71 AS col0
----
-8704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8284
SELECT ALL + 82 + - 86 + + 4 * - 34 + MAX( + + CAST( NULL AS SIGNED ) ) * - 31 * - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL + 82 + - 86 + + 4 * - 34 + MAX ( + + CAST ( NULL AS INTEGER ) ) * - 31 * - 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT 88 + + + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-8285
SELECT 88 + + + COUNT ( * )
----
89

query I rowsort
SELECT 78 * - + 55 * - - 47 AS col0
----
-201630

query I rowsort
SELECT DISTINCT - + 36 + - 2 + 80 + - 61 col1
----
-19

query I rowsort
SELECT ALL - ( + 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT 88 * - 15 + - COUNT( * ) AS col0
----
-1321

skipif mysql # not compatible
query I rowsort label-8289
SELECT 88 * - 15 + - COUNT ( * ) AS col0
----
-1321

query I rowsort
SELECT 19 + - 2 AS col0
----
17

query I rowsort
SELECT DISTINCT - + NULLIF ( - 94, + 55 ) - - - 86
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8292
SELECT 65 + + + CAST( - ( + 78 ) AS SIGNED ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-8292
SELECT 65 + + + CAST ( - ( + 78 ) AS INTEGER ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT SUM( + ( - 78 ) ) - - - 17
----
-95

skipif mysql # not compatible
query I rowsort label-8293
SELECT SUM ( + ( - 78 ) ) - - - 17
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT DISTINCT + - 56 * + - COUNT( ALL - ( + 86 ) )
----
56

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT + - 56 * + - COUNT ( ALL - ( + 86 ) )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8295
SELECT + CAST( NULL AS SIGNED ) + - + 84 - + 5 * + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-8295
SELECT + CAST ( NULL AS INTEGER ) + - + 84 - + 5 * + + 11
----
NULL

query I rowsort
SELECT DISTINCT - + 27 * - + 4 * - 33 * 25
----
-89100

onlyif mysql # aggregate syntax: 
query II rowsort label-8297
SELECT + COUNT( + 87 ) col2, + 72
----
1
72

skipif mysql # not compatible
query II rowsort label-8297
SELECT + COUNT ( + 87 ) col2, + 72
----
1
72

onlyif mysql # DIV for integer division: 
query I rowsort label-8298
SELECT + 98 DIV + 86 + 17
----
18

skipif mysql # not compatible
query I rowsort label-8298
SELECT + 98 / + 86 + 17
----
18

query I rowsort
SELECT ALL - CASE + 20 WHEN 44 + - - 58 - + - 88 * + - 22 THEN + 25 WHEN + 58 * 15 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 73 * - + 39 * + CASE - 66 WHEN - 13 THEN NULL WHEN - + 51 * + - COALESCE ( + 5, 72 * + 98 + + 24, 36 * - 4 ) * - 83 THEN - 94 ELSE - 11 END
----
31317

query I rowsort
SELECT ALL 86 + + + 40 AS col1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT 79 + + 98 + CASE + COUNT( * ) WHEN + - 98 + - + 78 + + MAX( - + 79 ) - COUNT( * ) THEN NULL WHEN + MIN( + 16 ) + COALESCE ( COUNT( * ), - 6, COUNT( * ) ) THEN + CASE - ( 65 ) WHEN - COUNT( * ) * - 7 + 50 THEN + 42 END END * COALESCE ( 52 + ( 61 ), + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8302
SELECT 79 + + 98 + CASE + COUNT ( * ) WHEN + - 98 + - + 78 + + MAX ( - + 79 ) - COUNT ( * ) THEN NULL WHEN + MIN ( + 16 ) + COALESCE ( COUNT ( * ), - 6, COUNT ( * ) ) THEN + CASE - ( 65 ) WHEN - COUNT ( * ) * - 7 + 50 THEN + 42 END END * COALESCE ( 52 + ( 61 ), + 32 )
----
NULL

query I rowsort
SELECT ALL 3 * 25 AS col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8304
SELECT DISTINCT 38 * - CASE 11 WHEN 83 THEN NULL WHEN + - 94 * - - ( - 48 ) - - 98 - + 26 - COUNT( * ) THEN NULL ELSE 13 + + 39 DIV + 22 END
----
-532

skipif mysql # not compatible
query I rowsort label-8304
SELECT DISTINCT 38 * - CASE 11 WHEN 83 THEN NULL WHEN + - 94 * - - ( - 48 ) - - 98 - + 26 - COUNT ( * ) THEN NULL ELSE 13 + + 39 / + 22 END
----
-532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8305
SELECT DISTINCT + 58 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT + 58 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 73 + 55 + - ( + - 71 ) AS col0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT ALL COUNT( * ) + + 99
----
100

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL COUNT ( * ) + + 99
----
100

query I rowsort
SELECT DISTINCT 2 * + 42 AS col2
----
84

query I rowsort
SELECT 88 * - 18 AS col2
----
-1584

query I rowsort
SELECT DISTINCT 37 + - 26 * 92 AS col2
----
-2355

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT ( - + ( - COUNT( * ) ) ) * + COALESCE ( - 11, - + 5 * - 3 ) - + ( - 54 )
----
43

skipif mysql # not compatible
query I rowsort label-8311
SELECT ( - + ( - COUNT ( * ) ) ) * + COALESCE ( - 11, - + 5 * - 3 ) - + ( - 54 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8312
SELECT COALESCE ( - - 87, - 62, - + 98 * - - COUNT( * ) - + ( + + 7 ) ) * - CAST( NULL AS SIGNED ) + 71 / - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-8312
SELECT COALESCE ( - - 87, - 62, - + 98 * - - COUNT ( * ) - + ( + + 7 ) ) * - CAST ( NULL AS INTEGER ) + 71 / - 38
----
NULL

query II rowsort
SELECT - 48 AS col2, 70
----
-48
70

query II rowsort
SELECT 20 + + + ( - 4 ) AS col0, - 29
----
16
-29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8315
SELECT DISTINCT COUNT( * ) * 40 * - - ( + CAST( NULL AS DECIMAL ) ) + ( + 40 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8315
SELECT DISTINCT COUNT ( * ) * 40 * - - ( + CAST ( NULL AS REAL ) ) + ( + 40 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT DISTINCT + MIN( DISTINCT - ( + 43 ) ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT + MIN ( DISTINCT - ( + 43 ) ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT - 96 + + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-8317
SELECT - 96 + + COUNT ( * )
----
-95

query I rowsort
SELECT 3 * 60 col1
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8319
SELECT - COUNT( * ) - COALESCE ( 65, + CAST( NULL AS SIGNED ) ) + + CAST( NULL AS SIGNED ) * - MAX( - 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8319
SELECT - COUNT ( * ) - COALESCE ( 65, + CAST ( NULL AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) * - MAX ( - 93 )
----
NULL

query I rowsort
SELECT 82 * + 6 + + - 12
----
480

onlyif mysql # aggregate syntax: 
query II rowsort label-8321
SELECT + 37 * + MAX( DISTINCT 64 ), ( + - COUNT( * ) ) AS col1
----
2368
-1

skipif mysql # not compatible
query II rowsort label-8321
SELECT + 37 * + MAX ( DISTINCT 64 ), ( + - COUNT ( * ) ) AS col1
----
2368
-1

query I rowsort
SELECT + 46 + - 20
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT - - COUNT( ALL + + 66 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8323
SELECT - - COUNT ( ALL + + 66 ) AS col2
----
1

query I rowsort
SELECT ALL - COALESCE ( 86, - 9 + - ( - ( - 76 ) ), + 31 + + 89 ) AS col2
----
-86

query I rowsort
SELECT ALL - ( + 28 ) AS col0
----
-28

query II rowsort
SELECT ALL - 92, - 99 AS col2
----
-92
-99

query II rowsort
SELECT DISTINCT - 79 AS col2, - 4 * - 25 * + 46
----
-79
4600

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT DISTINCT - + MAX( - 80 ) * - + 63 AS col0
----
-5040

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT - + MAX ( - 80 ) * - + 63 AS col0
----
-5040

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8329
SELECT 0 AS col1, - ( CAST( NULL AS DECIMAL ) ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8329
SELECT 0 AS col1, - ( CAST ( NULL AS REAL ) ) AS col2
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8330
SELECT DISTINCT + 88 + CAST( NULL AS SIGNED ) + + + 18 + 41 + COUNT( * ) * + - COALESCE ( + + COUNT( * ), + - 71 / + 58 + COALESCE ( 33, AVG ( 0 ) * - 32, + 25 * 45 ) * - 58, 63 * AVG ( ALL + 21 ), - 14 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8330
SELECT DISTINCT + 88 + CAST ( NULL AS INTEGER ) + + + 18 + 41 + COUNT ( * ) * + - COALESCE ( + + COUNT ( * ), + - 71 / + 58 + COALESCE ( 33, AVG ( 0 ) * - 32, + 25 * 45 ) * - 58, 63 * AVG ( ALL + 21 ), - 14 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8331
SELECT - NULLIF ( CASE + ( + - 85 ) WHEN + 43 - + 93 * - NULLIF ( 18, + MIN( DISTINCT - 67 ) ) * 79 + + 31 THEN NULL WHEN + 29 * 68 THEN CAST( 0 AS SIGNED ) END, + 68 * 46 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8331
SELECT - NULLIF ( CASE + ( + - 85 ) WHEN + 43 - + 93 * - NULLIF ( 18, + MIN ( DISTINCT - 67 ) ) * 79 + + 31 THEN NULL WHEN + 29 * 68 THEN CAST ( 0 AS INTEGER ) END, + 68 * 46 ) AS col2
----
NULL

query II rowsort
SELECT 31 AS col1, + 42
----
31
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT + SUM( DISTINCT + + 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-8333
SELECT + SUM ( DISTINCT + + 83 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT ALL - COUNT( * ) * + - 40 + + - 54 * 59 * + 56 + + 44 + 42 * + 40
----
-176652

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL - COUNT ( * ) * + - 40 + + - 54 * 59 * + 56 + + 44 + 42 * + 40
----
-176652

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8335
SELECT 8 DIV + + COUNT( 90 ) - ( COUNT( - 51 ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-8335
SELECT 8 / + + COUNT ( 90 ) - ( COUNT ( - 51 ) ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT 44 - - SUM( + 33 ) * - 66 AS col0
----
-2134

skipif mysql # not compatible
query I rowsort label-8336
SELECT 44 - - SUM ( + 33 ) * - 66 AS col0
----
-2134

onlyif mysql # aggregate syntax: 
query II rowsort label-8337
SELECT 80 * - 9 * MAX( 84 ) AS col2, 64 + 73
----
-60480
137

skipif mysql # not compatible
query II rowsort label-8337
SELECT 80 * - 9 * MAX ( 84 ) AS col2, 64 + 73
----
-60480
137

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT ALL + 72 * + - COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-8338
SELECT ALL + 72 * + - COUNT ( * ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT COUNT( DISTINCT - 41 ) * - ( + 18 ) + + 75
----
57

skipif mysql # not compatible
query I rowsort label-8339
SELECT COUNT ( DISTINCT - 41 ) * - ( + 18 ) + + 75
----
57

query I rowsort
SELECT ALL - ( + - 68 ) AS col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8341
SELECT 63 DIV 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8341
SELECT 63 / 67 AS col1
----
0

query II rowsort
SELECT ALL 11 * + 42 * - 12 + 99 * COALESCE ( - + 42, - - 97 ), 53 * NULLIF ( + 38, NULLIF ( 50, 5 * 28 ) ) AS col1
----
-9702
2014

query I rowsort
SELECT 69 * - ( - + 67 ) AS col1
----
4623

query II rowsort
SELECT ALL + 72 * - 69 col1, - 70 + - + 25 AS col0
----
-4968
-95

query II rowsort
SELECT ALL 17 * + 2 * - 60 + - + 59, 30 AS col2
----
-2099
30

query I rowsort
SELECT - 38 - - 26 + + - 9 AS col0
----
-21

query II rowsort
SELECT ALL + ( - 24 ), + 56 AS col1
----
-24
56

query I rowsort
SELECT DISTINCT 80 * + - 16 + + 7 col2
----
-1273

onlyif mysql # aggregate syntax: 
query II rowsort label-8349
SELECT COUNT( ALL 59 ) AS col1, + 55 AS col0
----
1
55

skipif mysql # not compatible
query II rowsort label-8349
SELECT COUNT ( ALL 59 ) AS col1, + 55 AS col0
----
1
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8350
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * - NULLIF ( 66, 96 * 66 ) * + ( - ( 30 ) ) * COUNT( * ) + - 26 * + 47 + 15 AS col0
----
773

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * - NULLIF ( 66, 96 * 66 ) * + ( - ( 30 ) ) * COUNT ( * ) + - 26 * + 47 + 15 AS col0
----
773

onlyif mysql # DIV for integer division: 
query I rowsort label-8351
SELECT 46 * + + 95 * + 21 + 52 DIV + + 20 + 91 * 72 * + + 64 + - 39 AS col0
----
511061

skipif mysql # not compatible
query I rowsort label-8351
SELECT 46 * + + 95 * + 21 + 52 / + + 20 + 91 * 72 * + + 64 + - 39 AS col0
----
511061

query I rowsort
SELECT - ( - 55 ) + - 63 * 12 AS col2
----
-701

query I rowsort
SELECT DISTINCT 49 * + 34 AS col2
----
1666

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT - CASE + - 96 WHEN 61 THEN NULL WHEN + 94 THEN + + COUNT( * ) ELSE NULL END * + 7 + - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8354
SELECT - CASE + - 96 WHEN 61 THEN NULL WHEN + 94 THEN + + COUNT ( * ) ELSE NULL END * + 7 + - 41 AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( + 27, + 14 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8356
SELECT DISTINCT - COUNT( * ) * - + 35 + - 45 - - 65 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT - COUNT ( * ) * - + 35 + - 45 - - 65 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8357
SELECT - - 97 / CAST( NULL AS SIGNED ), + 30 - - + 30 AS col1
----
NULL
60

skipif mysql # not compatible
query II rowsort label-8357
SELECT - - 97 / CAST ( NULL AS INTEGER ), + 30 - - + 30 AS col1
----
NULL
60

query I rowsort
SELECT + - 91 * 0 + + 96 AS col1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8359
SELECT + COUNT( DISTINCT ( + 23 ) ) + + 66 AS col1, 50 col1
----
67
50

skipif mysql # not compatible
query II rowsort label-8359
SELECT + COUNT ( DISTINCT ( + 23 ) ) + + 66 AS col1, 50 col1
----
67
50

query I rowsort
SELECT + + 16 * - 99 + + - 12 + + - 77 * + COALESCE ( 41, + 61 )
----
-4753

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8361
SELECT ALL - CAST( + MIN( + 86 ) AS SIGNED ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL - CAST ( + MIN ( + 86 ) AS INTEGER ) AS col2
----
-86

query I rowsort
SELECT + 74 + - + 32 + 77 - + - 22
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT ALL NULLIF ( 80, - CASE - - 68 WHEN - + 21 THEN - 77 ELSE NULL END * + + 82 + COUNT( * ) ) * SUM( ( 9 ) )
----
720

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL NULLIF ( 80, - CASE - - 68 WHEN - + 21 THEN - 77 ELSE NULL END * + + 82 + COUNT ( * ) ) * SUM ( ( 9 ) )
----
720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8364
SELECT DISTINCT + COUNT( * ) DIV - - 56 * 97 + + 20
----
20

skipif mysql # not compatible
query I rowsort label-8364
SELECT DISTINCT + COUNT ( * ) / - - 56 * 97 + + 20
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8365
SELECT + - 39 + CAST( NULL AS SIGNED ) + - - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8365
SELECT + - 39 + CAST ( NULL AS INTEGER ) + - - 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT DISTINCT - - 89 * + + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-8366
SELECT DISTINCT - - 89 * + + COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT ALL + + COUNT( * ) + COALESCE ( + 84, - 43 * ( - COALESCE ( - 32, + 43, + 63 ) ) * + 52 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL + + COUNT ( * ) + COALESCE ( + 84, - 43 * ( - COALESCE ( - 32, + 43, + 63 ) ) * + 52 ) AS col2
----
85

query I rowsort
SELECT + + 64 + - COALESCE ( + NULLIF ( - + 25, + + 56 ), + 57 ) AS col2
----
89

query I rowsort
SELECT + + 78 + - 46 - + + 79
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT - - COALESCE ( - COUNT( * ), + 14, + ( + - 24 ) + 73 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8370
SELECT - - COALESCE ( - COUNT ( * ), + 14, + ( + - 24 ) + 73 ) AS col2
----
-1

query I rowsort
SELECT - + ( - 16 ) AS col1
----
16

query I rowsort
SELECT + 90 + 12 AS col0
----
102

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8373
SELECT - 98 - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8373
SELECT - 98 - + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8374
SELECT ALL CASE + 59 WHEN - COUNT( * ) + - - 85 * + 11 THEN - + ( - + 57 ) * + 66 ELSE - - AVG ( ALL CAST( NULL AS SIGNED ) ) END + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL CASE + 59 WHEN - COUNT ( * ) + - - 85 * + 11 THEN - + ( - + 57 ) * + 66 ELSE - - AVG ( ALL CAST ( NULL AS INTEGER ) ) END + 36
----
NULL

query II rowsort
SELECT DISTINCT 7 AS col2, + 69
----
7
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8376
SELECT CAST( 39 AS SIGNED ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-8376
SELECT CAST ( 39 AS INTEGER ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8377
SELECT + 62 + 61 * 74 + + + MIN( ALL + + 90 ) * - - 96 AS col0, - 27 + + 24 AS col1
----
13216
-3

skipif mysql # not compatible
query II rowsort label-8377
SELECT + 62 + 61 * 74 + + + MIN ( ALL + + 90 ) * - - 96 AS col0, - 27 + + 24 AS col1
----
13216
-3

query I rowsort
SELECT ALL + 41 * - 75
----
-3075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8379
SELECT ( - + CASE NULLIF ( 35, - COUNT( * ) ) WHEN + 22 THEN NULL WHEN - 99 / - + COUNT( * ) THEN + 62 + 37 + ( + CAST( NULL AS SIGNED ) ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8379
SELECT ( - + CASE NULLIF ( 35, - COUNT ( * ) ) WHEN + 22 THEN NULL WHEN - 99 / - + COUNT ( * ) THEN + 62 + 37 + ( + CAST ( NULL AS INTEGER ) ) END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8380
SELECT ALL 76 DIV - - 71 + + 1 + 12
----
14

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL 76 / - - 71 + + 1 + 12
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT ( + MIN( - 58 ) ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-8381
SELECT ( + MIN ( - 58 ) ) AS col0
----
-58

query I rowsort
SELECT + ( + + 23 ) col2
----
23

query I rowsort
SELECT + NULLIF ( 45, COALESCE ( + - NULLIF ( + 0, - 26 ), 3 * 59 * - 22 / - 95 / + 33 ) * 11 ) * - 30
----
-1350

query I rowsort
SELECT ALL + 41 * 13 * + CASE - + 81 WHEN 25 + 74 THEN 93 + + - 72 * + COALESCE ( - + 72, 97 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT - 79 * - + COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-8385
SELECT - 79 * - + COUNT ( * ) AS col0
----
79

query I rowsort
SELECT - 85 + - 65
----
-150

query I rowsort
SELECT ALL + 23 * - 94 * 81 AS col2
----
-175122

query I rowsort
SELECT DISTINCT - 69 * - 81 AS col0
----
5589

query II rowsort
SELECT DISTINCT + 27, - 8 AS col0
----
27
-8

query I rowsort
SELECT - 49 * 91 * - 47 AS col0
----
209573

query I rowsort
SELECT ALL - 78 * - - 71 AS col0
----
-5538

query I rowsort
SELECT ALL + ( - - 16 ) AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8393
SELECT DISTINCT + CASE - 34 WHEN CAST( NULL AS SIGNED ) THEN - 88 - + 3 WHEN + 28 THEN - + 4 ELSE 3 * + 24 + - 65 + 57 DIV ( + 86 + + COUNT( * ) ) END
----
7

skipif mysql # not compatible
query I rowsort label-8393
SELECT DISTINCT + CASE - 34 WHEN CAST ( NULL AS INTEGER ) THEN - 88 - + 3 WHEN + 28 THEN - + 4 ELSE 3 * + 24 + - 65 + 57 / ( + 86 + + COUNT ( * ) ) END
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8394
SELECT - + CASE + 15 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - + COUNT( * ) + - 61 * - COUNT( * ) THEN NULL WHEN + + 81 THEN - + AVG ( ALL + - 85 ) END + SUM( ALL - 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8394
SELECT - + CASE + 15 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - + COUNT ( * ) + - 61 * - COUNT ( * ) THEN NULL WHEN + + 81 THEN - + AVG ( ALL + - 85 ) END + SUM ( ALL - 28 )
----
NULL

query I rowsort
SELECT - - 1 * + + 68 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT - - 95 * - - 97 * - - 13 - + + COUNT( * ) AS col0
----
119794

skipif mysql # not compatible
query I rowsort label-8396
SELECT - - 95 * - - 97 * - - 13 - + + COUNT ( * ) AS col0
----
119794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8397
SELECT - - CASE - + 31 WHEN - 2 THEN NULL ELSE + - 37 * + - MIN( - 52 ) - - - 6 END * - 36 * - 41 DIV - + COUNT( COALESCE ( ( - 3 ), 50 ) ) - - ( + COUNT( * ) + 17 )
----
2848698

skipif mysql # not compatible
query I rowsort label-8397
SELECT - - CASE - + 31 WHEN - 2 THEN NULL ELSE + - 37 * + - MIN ( - 52 ) - - - 6 END * - 36 * - 41 / - + COUNT ( COALESCE ( ( - 3 ), 50 ) ) - - ( + COUNT ( * ) + 17 )
----
2848698

query I rowsort
SELECT - CASE 35 WHEN - 58 + - + 32 THEN - 48 - + 65 END * NULLIF ( + + 56, + 6 ) * 60 - - 69 * + 2 AS col0
----
NULL

query I rowsort
SELECT - 63 - + + 83 AS col1
----
-146

query I rowsort
SELECT ALL 16 * - - 88 AS col0
----
1408

query II rowsort
SELECT 48 col2, + 48 + + 50 + + - 54
----
48
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT + - COUNT( * ) - + COUNT( ALL 42 )
----
-2

skipif mysql # not compatible
query I rowsort label-8402
SELECT + - COUNT ( * ) - + COUNT ( ALL 42 )
----
-2

query II rowsort
SELECT ALL - 99 + - 6 + ( + 96 ) - - 48 + + 18 * + + 18 * + 52 AS col0, 82 * + + 46 AS col0
----
16887
3772

query I rowsort
SELECT ALL - 88 + 76 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-8405
SELECT DISTINCT COUNT( * ) AS col1, - MIN( DISTINCT + 43 ) + - 59 * COUNT( * )
----
1
-102

skipif mysql # not compatible
query II rowsort label-8405
SELECT DISTINCT COUNT ( * ) AS col1, - MIN ( DISTINCT + 43 ) + - 59 * COUNT ( * )
----
1
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8406
SELECT ALL 5 + + 98 * + MIN( 46 ) * 29 * - COUNT( * ), 14 DIV - COALESCE ( + + 39, + COUNT( * ) ) col2
----
-130727
0

skipif mysql # not compatible
query II rowsort label-8406
SELECT ALL 5 + + 98 * + MIN ( 46 ) * 29 * - COUNT ( * ), 14 / - COALESCE ( + + 39, + COUNT ( * ) ) col2
----
-130727
0

query I rowsort
SELECT - ( + - 25 ) AS col1
----
25

query I rowsort
SELECT 73 * 51
----
3723

onlyif mysql # DIV for integer division: 
query I rowsort label-8409
SELECT ALL 27 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL 27 / + 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT DISTINCT 86 + - SUM( DISTINCT - 30 ) + COALESCE ( + + MAX( DISTINCT 68 ), + 87 ) * - MIN( DISTINCT 5 )
----
-224

skipif mysql # not compatible
query I rowsort label-8410
SELECT DISTINCT 86 + - SUM ( DISTINCT - 30 ) + COALESCE ( + + MAX ( DISTINCT 68 ), + 87 ) * - MIN ( DISTINCT 5 )
----
-224

onlyif mysql # aggregate syntax: 
query II rowsort label-8411
SELECT 85 AS col0, + 13 * - COUNT( - 50 ) * + 5 * - 25 col2
----
85
1625

skipif mysql # not compatible
query II rowsort label-8411
SELECT 85 AS col0, + 13 * - COUNT ( - 50 ) * + 5 * - 25 col2
----
85
1625

query I rowsort
SELECT ALL 21 - ( - 43 ) col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT MAX( + + ( 33 ) ) * 73
----
2409

skipif mysql # not compatible
query I rowsort label-8413
SELECT MAX ( + + ( 33 ) ) * 73
----
2409

query II rowsort
SELECT 57, - 87 * - COALESCE ( - 33, 44 * - 87, - ( - 89 ) ) AS col1
----
57
-2871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8415
SELECT 82 DIV MAX( + 93 ) - + + 28 + + 70
----
42

skipif mysql # not compatible
query I rowsort label-8415
SELECT 82 / MAX ( + 93 ) - + + 28 + + 70
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT ALL MIN( - 62 ) * + 41 + + CASE + + 90 WHEN 76 THEN + + 14 + + 59 * 19 ELSE NULL END * + COUNT( * ) * - - 74 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL MIN ( - 62 ) * + 41 + + CASE + + 90 WHEN 76 THEN + + 14 + + 59 * 19 ELSE NULL END * + COUNT ( * ) * - - 74 col0
----
NULL

query I rowsort
SELECT 14 * + + 68 * ( + 82 )
----
78064

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8418
SELECT CASE + 94 WHEN + ( NULLIF ( - 68, - ( + + 93 ) ) ) THEN - 8 ELSE - COUNT( * ) * + - 25 DIV + COUNT( * ) - 96 * 53 END * 50 + - 40 AS col1
----
-253190

skipif mysql # not compatible
query I rowsort label-8418
SELECT CASE + 94 WHEN + ( NULLIF ( - 68, - ( + + 93 ) ) ) THEN - 8 ELSE - COUNT ( * ) * + - 25 / + COUNT ( * ) - 96 * 53 END * 50 + - 40 AS col1
----
-253190

query II rowsort
SELECT 84, 61 AS col0
----
84
61

query II rowsort
SELECT DISTINCT - 30 AS col0, 14
----
-30
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT ALL - CASE - 51 WHEN - + CAST( + 90 AS SIGNED ) THEN + - ( - - 68 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL - CASE - 51 WHEN - + CAST ( + 90 AS INTEGER ) THEN + - ( - - 68 ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - CASE + 38 WHEN AVG ( DISTINCT - - 63 ) + 30 THEN + 83 ELSE 92 + + + 99 * - 64 * - - 84 END AS col0
----
532132

query I rowsort
SELECT 23 + + + 83 + CASE + - 36 WHEN 36 THEN - - 64 END + - 6 / - + 9 * + NULLIF ( + 66, + ( 40 ) + + 61 ) * 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT ALL - CASE + 70 WHEN + 85 THEN + COUNT( * ) + - 1 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL - CASE + 70 WHEN + 85 THEN + COUNT ( * ) + - 1 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8425
SELECT CAST( 47 AS SIGNED ) DIV - + 69 + + + 26 col0
----
26

skipif mysql # not compatible
query I rowsort label-8425
SELECT CAST ( 47 AS INTEGER ) / - + 69 + + + 26 col0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8426
SELECT - CASE - 87 WHEN + + COUNT( * ) + - + 69 * + 70 - - MIN( ALL + + 14 ) THEN NULL WHEN + 11 THEN - - 50 ELSE + 42 - - 32 + COUNT( * ) * - 60 END * - 53 + - 36 DIV + 70
----
742

skipif mysql # not compatible
query I rowsort label-8426
SELECT - CASE - 87 WHEN + + COUNT ( * ) + - + 69 * + 70 - - MIN ( ALL + + 14 ) THEN NULL WHEN + 11 THEN - - 50 ELSE + 42 - - 32 + COUNT ( * ) * - 60 END * - 53 + - 36 / + 70
----
742

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8427
SELECT - - 21 DIV + ( + ( COUNT( * ) ) ) + - 80 + 95 AS col0, 46 * + 82
----
36
3772

skipif mysql # not compatible
query II rowsort label-8427
SELECT - - 21 / + ( + ( COUNT ( * ) ) ) + - 80 + 95 AS col0, 46 * + 82
----
36
3772

query II rowsort
SELECT ALL - 75 AS col0, - 36 * 31
----
-75
-1116

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT - - 6 * 51 + - + NULLIF ( + 14, + NULLIF ( + 17, 36 * - COUNT( DISTINCT + - 89 ) ) / - 80 )
----
292

skipif mysql # not compatible
query I rowsort label-8429
SELECT - - 6 * 51 + - + NULLIF ( + 14, + NULLIF ( + 17, 36 * - COUNT ( DISTINCT + - 89 ) ) / - 80 )
----
292

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT ALL + 83 + + - SUM( 64 ) + - 43
----
-24

skipif mysql # not compatible
query I rowsort label-8430
SELECT ALL + 83 + + - SUM ( 64 ) + - 43
----
-24

query I rowsort
SELECT ALL - - 60 + - 21 + + - 87 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-8432
SELECT DISTINCT - 29, COALESCE ( - ( + 5 ), MAX( 18 ), - COUNT( * ) * + + 64 ) AS col0
----
-29
-5

skipif mysql # not compatible
query II rowsort label-8432
SELECT DISTINCT - 29, COALESCE ( - ( + 5 ), MAX ( 18 ), - COUNT ( * ) * + + 64 ) AS col0
----
-29
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT ALL - 3 + + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-8433
SELECT ALL - 3 + + COUNT ( * )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8434
SELECT 88 DIV + 18
----
4

skipif mysql # not compatible
query I rowsort label-8434
SELECT 88 / + 18
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT + 97 + COUNT( * ) * 81
----
178

skipif mysql # not compatible
query I rowsort label-8435
SELECT + 97 + COUNT ( * ) * 81
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT ALL - ( - 51 ) + 23 * COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL - ( - 51 ) + 23 * COUNT ( * )
----
74

query II rowsort
SELECT - - 36, 21 + - 61 AS col2
----
36
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT MIN( + - 23 ) + + 54
----
31

skipif mysql # not compatible
query I rowsort label-8438
SELECT MIN ( + - 23 ) + + 54
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-8439
SELECT - + 83 col2, 48 + 80 * - - SUM( - + 89 ) + + - 46 AS col2
----
-83
-7118

skipif mysql # not compatible
query II rowsort label-8439
SELECT - + 83 col2, 48 + 80 * - - SUM ( - + 89 ) + + - 46 AS col2
----
-83
-7118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8440
SELECT - - COUNT( * ), - COUNT( * ) * 60 + + 73 + - COUNT( * ) * + 55 * 94 + + CAST( 46 AS SIGNED ) AS col1
----
1
-5111

skipif mysql # not compatible
query II rowsort label-8440
SELECT - - COUNT ( * ), - COUNT ( * ) * 60 + + 73 + - COUNT ( * ) * + 55 * 94 + + CAST ( 46 AS INTEGER ) AS col1
----
1
-5111

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT 13 + + SUM( DISTINCT - 35 ) + + 26 * 41 * 64 + 9 AS col2
----
68211

skipif mysql # not compatible
query I rowsort label-8441
SELECT 13 + + SUM ( DISTINCT - 35 ) + + 26 * 41 * 64 + 9 AS col2
----
68211

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT 57 * COUNT( * ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-8442
SELECT 57 * COUNT ( * ) AS col1
----
57

query I rowsort
SELECT ALL - - 43 + 19
----
62

query I rowsort
SELECT ALL + 18 * + 54 * - NULLIF ( + - 53, + - 75 ) * 11
----
566676

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8445
SELECT 36 + 82 DIV - - CAST( - ( MIN( DISTINCT + CAST( - - 37 AS SIGNED ) ) ) AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-8445
SELECT 36 + 82 / - - CAST ( - ( MIN ( DISTINCT + CAST ( - - 37 AS INTEGER ) ) ) AS INTEGER )
----
34

query I rowsort
SELECT DISTINCT 74 * - 18 AS col2
----
-1332

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT DISTINCT - 68 * + COUNT( * ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-8447
SELECT DISTINCT - 68 * + COUNT ( * ) AS col2
----
-68

query I rowsort
SELECT ALL + 13 - + 24
----
-11

query I rowsort
SELECT 89 + - 81 AS col2
----
8

query I rowsort
SELECT 60 + - 41 AS col0
----
19

query I rowsort
SELECT DISTINCT - 41 * + + 66 AS col0
----
-2706

query I rowsort
SELECT 69 + + 26
----
95

query I rowsort
SELECT 72 * + - 68 * + 21 AS col1
----
-102816

onlyif mysql # DIV for integer division: 
query I rowsort label-8454
SELECT 79 + 28 - - + 66 DIV 6 AS col2
----
118

skipif mysql # not compatible
query I rowsort label-8454
SELECT 79 + 28 - - + 66 / 6 AS col2
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8455
SELECT SUM( - + 20 ) * - 88 + + - CASE + 23 WHEN + + COUNT( * ) * - - 19 * - COUNT( * ) THEN 85 + - COALESCE ( + COUNT( 54 ), - CAST( + 74 AS SIGNED ) - 66 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8455
SELECT SUM ( - + 20 ) * - 88 + + - CASE + 23 WHEN + + COUNT ( * ) * - - 19 * - COUNT ( * ) THEN 85 + - COALESCE ( + COUNT ( 54 ), - CAST ( + 74 AS INTEGER ) - 66 ) END
----
NULL

query II rowsort
SELECT 98 * 75 AS col2, ( 86 ) * + + 60
----
7350
5160

query I rowsort
SELECT 4 + - 72 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT MAX( + 10 ) * - 6 - - 68 * - - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-8458
SELECT MAX ( + 10 ) * - 6 - - 68 * - - COUNT ( * )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8459
SELECT CAST( NULL AS SIGNED ) * + 64 * - 65 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8459
SELECT CAST ( NULL AS INTEGER ) * + 64 * - 65 col1
----
NULL

query I rowsort
SELECT ALL 48 + + 18 AS col1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8461
SELECT DISTINCT 53 + + + 23, 62 * - - ( COUNT( * ) ) + + COUNT( * ) AS col0
----
76
63

skipif mysql # not compatible
query II rowsort label-8461
SELECT DISTINCT 53 + + + 23, 62 * - - ( COUNT ( * ) ) + + COUNT ( * ) AS col0
----
76
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8462
SELECT DISTINCT MIN( 0 ) * - 87 + - SUM( 77 ) + 15 * + SUM( ALL - 73 ) - 26 + - + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + + 1 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8462
SELECT DISTINCT MIN ( 0 ) * - 87 + - SUM ( 77 ) + 15 * + SUM ( ALL - 73 ) - 26 + - + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) + + 1 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT + COUNT( * ) * COUNT( * ) * + - 57 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-8463
SELECT + COUNT ( * ) * COUNT ( * ) * + - 57 AS col0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-8464
SELECT ALL - 54 + 41 + + 34 DIV - 8 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL - 54 + 41 + + 34 / - 8 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT ALL + - MIN( ALL + 81 ) + - 5
----
-86

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL + - MIN ( ALL + 81 ) + - 5
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT 72 * + SUM( ALL - 21 ) AS col2
----
-1512

skipif mysql # not compatible
query I rowsort label-8466
SELECT 72 * + SUM ( ALL - 21 ) AS col2
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT 2 + - COUNT( * ) * - + 49 col0
----
51

skipif mysql # not compatible
query I rowsort label-8467
SELECT 2 + - COUNT ( * ) * - + 49 col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8468
SELECT DISTINCT - + CAST( - 75 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-8468
SELECT DISTINCT - + CAST ( - 75 AS INTEGER )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8469
SELECT 51 - CAST( NULL AS SIGNED ) + - ( + 81 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8469
SELECT 51 - CAST ( NULL AS INTEGER ) + - ( + 81 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT DISTINCT + + COUNT( 13 ) + + 52 + - COALESCE ( + 36, 3 ) * COUNT( * ) * + 64 * 86 * + + 45
----
-8916427

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT + + COUNT ( 13 ) + + 52 + - COALESCE ( + 36, 3 ) * COUNT ( * ) * + 64 * 86 * + + 45
----
-8916427

query I rowsort
SELECT - - 29 * + + 22 - + NULLIF ( - 8, 70 * - ( - ( + 82 ) ) * + 22 )
----
646

query I rowsort
SELECT ALL - - 40 * - ( + 30 ) - + 20 + 6 - - - 12
----
-1226

query II rowsort
SELECT ALL 40 * 48, - 8 AS col2
----
1920
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT DISTINCT - 78 - + 25 * + - SUM( DISTINCT 42 ) AS col2
----
972

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT - 78 - + 25 * + - SUM ( DISTINCT 42 ) AS col2
----
972

query I rowsort
SELECT + 10 * - 2
----
-20

query I rowsort
SELECT + 86 * 44
----
3784

query II rowsort
SELECT 4 AS col1, 89
----
4
89

query I rowsort
SELECT DISTINCT NULLIF ( 2, + COALESCE ( + + 58, + 45 * - 94 * - 1 * - 54 * + 21 ) )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8479
SELECT DISTINCT MAX( - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT MAX ( - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT DISTINCT - COALESCE ( + COUNT( * ), + 89 + + 78 ) * - + 77 * - + MIN( + ( - 67 ) ) AS col2
----
5159

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT - COALESCE ( + COUNT ( * ), + 89 + + 78 ) * - + 77 * - + MIN ( + ( - 67 ) ) AS col2
----
5159

query I rowsort
SELECT - 8 * - - 58
----
-464

query II rowsort
SELECT ALL 20 * - + 17 * - 27 AS col1, 4
----
9180
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8483
SELECT ALL - 19 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL - 19 * - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 53 AS col2, 36 AS col1
----
53
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT - ( - 43 ) * + 11 - - - COUNT( * ) * + 29 + + 93 + 57 AS col0
----
594

skipif mysql # not compatible
query I rowsort label-8485
SELECT - ( - 43 ) * + 11 - - - COUNT ( * ) * + 29 + + 93 + 57 AS col0
----
594

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT DISTINCT - 2 * - MIN( DISTINCT + - 42 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-8486
SELECT DISTINCT - 2 * - MIN ( DISTINCT + - 42 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT DISTINCT + 32 * SUM( DISTINCT 35 ) + 59 AS col0
----
1179

skipif mysql # not compatible
query I rowsort label-8487
SELECT DISTINCT + 32 * SUM ( DISTINCT 35 ) + 59 AS col0
----
1179

query I rowsort
SELECT DISTINCT + ( - + 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT ALL - + MIN( DISTINCT - 49 ) * - - 34 + 3
----
1669

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL - + MIN ( DISTINCT - 49 ) * - - 34 + 3
----
1669

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8490
SELECT ALL + + 76 DIV - 79 * + COUNT( - + 95 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8490
SELECT ALL + + 76 / - 79 * + COUNT ( - + 95 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8491
SELECT 62 AS col2, CAST( - 66 AS SIGNED ) + + + ( CASE + 12 WHEN - 64 THEN - 8 WHEN 6 THEN + 86 END ) AS col2
----
62
NULL

skipif mysql # not compatible
query II rowsort label-8491
SELECT 62 AS col2, CAST ( - 66 AS INTEGER ) + + + ( CASE + 12 WHEN - 64 THEN - 8 WHEN 6 THEN + 86 END ) AS col2
----
62
NULL

query I rowsort
SELECT ( - NULLIF ( - 21, - + 4 ) ) * + 22 + 38
----
500

query I rowsort
SELECT ALL - 40 * + ( 3 ) + - + 99 + + + 84 * + 0
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT + - 62 + ( - COUNT( * ) )
----
-63

skipif mysql # not compatible
query I rowsort label-8494
SELECT + - 62 + ( - COUNT ( * ) )
----
-63

query II rowsort
SELECT + 29, 39 AS col2
----
29
39

query II rowsort
SELECT ALL + - 94 col1, + 45 * - + 81
----
-94
-3645

query I rowsort
SELECT DISTINCT 59 * - - 49 * 78 - + - 41 AS col1
----
225539

query I rowsort
SELECT + ( - 35 ) AS col1
----
-35

query I rowsort
SELECT + 81 + + 62 AS col1
----
143

query I rowsort
SELECT ALL COALESCE ( 50, - ( - - 5 ) * - 98 + + 55, + 46, CASE + ( + 40 ) WHEN + CASE - + 26 WHEN + 75 - + ( 9 ) THEN 8 END * - 67 THEN 53 * - 59 ELSE + ( 59 ) END * - 34 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT - MAX( - 93 ) col1
----
93

skipif mysql # not compatible
query I rowsort label-8501
SELECT - MAX ( - 93 ) col1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8502
SELECT + ( + COALESCE ( - 39, + - 50 ) ) + CAST( ( - - 42 ) AS SIGNED ) col0
----
3

skipif mysql # not compatible
query I rowsort label-8502
SELECT + ( + COALESCE ( - 39, + - 50 ) ) + CAST ( ( - - 42 ) AS INTEGER ) col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT + COUNT( ALL + 13 ) * + 89
----
89

skipif mysql # not compatible
query I rowsort label-8503
SELECT + COUNT ( ALL + 13 ) * + 89
----
89

query I rowsort
SELECT - CASE 67 WHEN 83 THEN 5 * - 54 END * + 38 * 34
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8505
SELECT ( + 51 ) * 90 + - + 6 + - 42 DIV ( + NULLIF ( + + 75, - 60 ) ) AS col0, COUNT( * ) DIV + 75
----
4584
0

skipif mysql # not compatible
query II rowsort label-8505
SELECT ( + 51 ) * 90 + - + 6 + - 42 / ( + NULLIF ( + + 75, - 60 ) ) AS col0, COUNT ( * ) / + 75
----
4584
0

query I rowsort
SELECT ALL + 96 * 27
----
2592

onlyif mysql # DIV for integer division: 
query I rowsort label-8507
SELECT ALL 62 DIV - 62
----
-1

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL 62 / - 62
----
-1

query I rowsort
SELECT ALL COALESCE ( 7, + + 44, - - 92 + - 53 ) AS col0
----
7

query I rowsort
SELECT - 50 + + + 71 * + NULLIF ( 52, + 83 ) * - 32 + - 2
----
-118196

query II rowsort
SELECT - 26 + - 35, 73 AS col1
----
-61
73

query I rowsort
SELECT + 96 * + 40 AS col0
----
3840

query I rowsort
SELECT - 2 + 17 * - 22 AS col1
----
-376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8513
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col0, 85 col1
----
-1
85

skipif mysql # not compatible
query II rowsort label-8513
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col0, 85 col1
----
-1
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT - 78 + 91 / CASE - ( SUM( + 58 ) ) WHEN - MIN( + 26 ) + - - 11 THEN - 72 * - 96 WHEN ( 26 ) THEN + 54 WHEN ( + COUNT( * ) ) THEN + AVG ( 49 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8514
SELECT - 78 + 91 / CASE - ( SUM ( + 58 ) ) WHEN - MIN ( + 26 ) + - - 11 THEN - 72 * - 96 WHEN ( 26 ) THEN + 54 WHEN ( + COUNT ( * ) ) THEN + AVG ( 49 ) END
----
NULL

query I rowsort
SELECT ALL + ( 40 ) + + 29
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8516
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col0, 39
----
-1
39

skipif mysql # not compatible
query II rowsort label-8516
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col0, 39
----
-1
39

query I rowsort
SELECT ALL ( - + 9 ) col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8518
SELECT DISTINCT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8518
SELECT DISTINCT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8519
SELECT ALL 41 DIV 48 * - - 16 + - 29 + + - COUNT( * ) * COALESCE ( 67, + COUNT( ALL + 85 ) ) * + + 78 col2
----
-5255

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL 41 / 48 * - - 16 + - 29 + + - COUNT ( * ) * COALESCE ( 67, + COUNT ( ALL + 85 ) ) * + + 78 col2
----
-5255

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT - + 1 * CASE 35 WHEN - 34 + - + MAX( - 89 ) + COUNT( * ) + + 68 / + + ( 51 ) THEN + + 38 / - - 45 + 24 END + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8520
SELECT - + 1 * CASE 35 WHEN - 34 + - + MAX ( - 89 ) + COUNT ( * ) + + 68 / + + ( 51 ) THEN + + 38 / - - 45 + 24 END + 57 AS col0
----
NULL

query I rowsort
SELECT 26 * + 4 * 42 + 50 + - - 64 + 42
----
4524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8522
SELECT + CAST( 47 AS SIGNED ) col1
----
47

skipif mysql # not compatible
query I rowsort label-8522
SELECT + CAST ( 47 AS INTEGER ) col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8523
SELECT - - COUNT( * ) * CAST( + MAX( ALL 3 ) AS SIGNED ) col0
----
3

skipif mysql # not compatible
query I rowsort label-8523
SELECT - - COUNT ( * ) * CAST ( + MAX ( ALL 3 ) AS INTEGER ) col0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8524
SELECT - 16 DIV + 23 AS col2, 91
----
0
91

skipif mysql # not compatible
query II rowsort label-8524
SELECT - 16 / + 23 AS col2, 91
----
0
91

query I rowsort
SELECT - 25 * - 78
----
1950

query I rowsort
SELECT DISTINCT + + 95 AS col2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8527
SELECT ALL 82 DIV 82 - + - MAX( ALL - NULLIF ( - ( + - NULLIF ( + 54, + 98 ) ), 36 DIV 96 * 79 + + 61 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL 82 / 82 - + - MAX ( ALL - NULLIF ( - ( + - NULLIF ( + 54, + 98 ) ), 36 / 96 * 79 + + 61 ) )
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8528
SELECT + 52 / - CAST( NULL AS SIGNED ), 0 + - - 47 + 94 + - + 13 * - ( + 97 ) * + - 36 AS col2
----
NULL
-45255

skipif mysql # not compatible
query II rowsort label-8528
SELECT + 52 / - CAST ( NULL AS INTEGER ), 0 + - - 47 + 94 + - + 13 * - ( + 97 ) * + - 36 AS col2
----
NULL
-45255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8529
SELECT + ( + ( + CASE + 67 WHEN + ( - 12 ) * - 75 * CAST( + - 63 AS SIGNED ) THEN - 85 ELSE + COALESCE ( + 15, COUNT( * ) ) END ) ) + + 1 + 21 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-8529
SELECT + ( + ( + CASE + 67 WHEN + ( - 12 ) * - 75 * CAST ( + - 63 AS INTEGER ) THEN - 85 ELSE + COALESCE ( + 15, COUNT ( * ) ) END ) ) + + 1 + 21 AS col1
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8530
SELECT COALESCE ( + + 26, + 34 ) + + COUNT( * ) * - 23 DIV - 59 * + + 56 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-8530
SELECT COALESCE ( + + 26, + 34 ) + + COUNT ( * ) * - 23 / - 59 * + + 56 AS col2
----
26

query I rowsort
SELECT ALL + 37 * 41 AS col2
----
1517

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT MAX( ALL 58 ) * - 22 * + + COUNT( * ) * - 56 col1
----
71456

skipif mysql # not compatible
query I rowsort label-8532
SELECT MAX ( ALL 58 ) * - 22 * + + COUNT ( * ) * - 56 col1
----
71456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8533
SELECT ALL COUNT( * ) + 70 DIV + + 93 * + 42
----
1

skipif mysql # not compatible
query I rowsort label-8533
SELECT ALL COUNT ( * ) + 70 / + + 93 * + 42
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT DISTINCT 56 * - COUNT( 25 ) * 51 + COUNT( * ) + - 66 AS col1
----
-2921

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT 56 * - COUNT ( 25 ) * 51 + COUNT ( * ) + - 66 AS col1
----
-2921

onlyif mysql # DIV for integer division: 
query I rowsort label-8535
SELECT ( 96 ) DIV + 16 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8535
SELECT ( 96 ) / + 16 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT ALL COUNT( 54 ) + 54
----
55

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL COUNT ( 54 ) + 54
----
55

query I rowsort
SELECT ALL + 29 + - + 51 AS col2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8538
SELECT CAST( + 23 AS SIGNED ) * - 4
----
-92

skipif mysql # not compatible
query I rowsort label-8538
SELECT CAST ( + 23 AS INTEGER ) * - 4
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT ALL COUNT( * ) - - CASE - 74 WHEN + ( - NULLIF ( 14, + 22 * - 41 + COUNT( * ) ) ) THEN + + 78 * + 54 ELSE + CASE + - 50 WHEN - COUNT( ALL - 51 ) + + NULLIF ( + 92, + 11 + + 71 ) * + 24 THEN - 36 * + 65 WHEN + MIN( + COALESCE ( + 47, - 57 ) ) THEN - 99 END * ( 67 / 59 + + COUNT( * ) * MAX( 57 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL COUNT ( * ) - - CASE - 74 WHEN + ( - NULLIF ( 14, + 22 * - 41 + COUNT ( * ) ) ) THEN + + 78 * + 54 ELSE + CASE + - 50 WHEN - COUNT ( ALL - 51 ) + + NULLIF ( + 92, + 11 + + 71 ) * + 24 THEN - 36 * + 65 WHEN + MIN ( + COALESCE ( + 47, - 57 ) ) THEN - 99 END * ( 67 / 59 + + COUNT ( * ) * MAX ( 57 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT - COUNT( * ) * + 7
----
-7

skipif mysql # not compatible
query I rowsort label-8540
SELECT - COUNT ( * ) * + 7
----
-7

query I rowsort
SELECT - 56 * - + 2
----
112

query I rowsort
SELECT ALL - + 26 col1
----
-26

query I rowsort
SELECT - 25 * + + 71 + 81 + - - 22 AS col2
----
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT + MAX( - - 65 )
----
65

skipif mysql # not compatible
query I rowsort label-8544
SELECT + MAX ( - - 65 )
----
65

query III rowsort
SELECT DISTINCT - 8 col2, + 60 * - 67, - - 47 col2
----
-8
-4020
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT DISTINCT + 90 * + - ( - 98 ) * - 89 + COUNT( * ) * + 30
----
-784950

skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT + 90 * + - ( - 98 ) * - 89 + COUNT ( * ) * + 30
----
-784950

query I rowsort
SELECT - 59 * - + 69 AS col1
----
4071

onlyif mysql # aggregate syntax: 
query II rowsort label-8548
SELECT ALL - - 33 AS col0, COUNT( * )
----
33
1

skipif mysql # not compatible
query II rowsort label-8548
SELECT ALL - - 33 AS col0, COUNT ( * )
----
33
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT - COUNT( * ) + + 68 col2
----
67

skipif mysql # not compatible
query I rowsort label-8549
SELECT - COUNT ( * ) + + 68 col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8550
SELECT + - COUNT( - CAST( + + 60 AS SIGNED ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8550
SELECT + - COUNT ( - CAST ( + + 60 AS INTEGER ) ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8551
SELECT + CAST( NULL AS SIGNED ) * + - 68 + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT + CAST ( NULL AS INTEGER ) * + - 68 + 26 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 97 * - 17
----
-1649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8553
SELECT DISTINCT + COUNT( * ) + 68 DIV CAST( COALESCE ( + COUNT( * ), ( + 64 ) * - + 89 ) AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-8553
SELECT DISTINCT + COUNT ( * ) + 68 / CAST ( COALESCE ( + COUNT ( * ), ( + 64 ) * - + 89 ) AS INTEGER )
----
69

query I rowsort
SELECT ALL - 96 + - ( + 7 ) AS col0
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8555
SELECT ALL COUNT( * ) + + 14 - - 67 + + + CASE + MAX( DISTINCT - 16 ) WHEN + + 99 * + + COUNT( - 4 ) * + - 66 / CASE + MIN( 4 ) WHEN COUNT( * ) THEN + - 89 * - + 13 WHEN ( 66 ) THEN - 53 END THEN NULL WHEN 44 THEN 16 * ( + 84 * 15 ) + + CAST( NULL AS SIGNED ) WHEN + 46 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL COUNT ( * ) + + 14 - - 67 + + + CASE + MAX ( DISTINCT - 16 ) WHEN + + 99 * + + COUNT ( - 4 ) * + - 66 / CASE + MIN ( 4 ) WHEN COUNT ( * ) THEN + - 89 * - + 13 WHEN ( 66 ) THEN - 53 END THEN NULL WHEN 44 THEN 16 * ( + 84 * 15 ) + + CAST ( NULL AS INTEGER ) WHEN + 46 THEN NULL END AS col0
----
NULL

query II rowsort
SELECT DISTINCT 62 * - 92 AS col0, 70 AS col2
----
-5704
70

query II rowsort
SELECT 20, - ( - 99 ) AS col0
----
20
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8558
SELECT 23 DIV + SUM( - ( 29 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8558
SELECT 23 / + SUM ( - ( 29 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT ALL - 60 + 96 + - + COUNT( * ) - 50 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL - 60 + 96 + - + COUNT ( * ) - 50 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT ALL + COUNT( * ) + + 97 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL + COUNT ( * ) + + 97 AS col0
----
98

query II rowsort
SELECT 63 AS col1, 80 * + - 58
----
63
-4640

query I rowsort
SELECT 4 + 47 * + 32 AS col1
----
1508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8563
SELECT DISTINCT COALESCE ( 53, + - 74 DIV + MIN( + + ( - 31 ) ) * + - 68 + - 84 + - COUNT( * ) ) * 63 - - + 77
----
3416

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT COALESCE ( 53, + - 74 / + MIN ( + + ( - 31 ) ) * + - 68 + - 84 + - COUNT ( * ) ) * 63 - - + 77
----
3416

query I rowsort
SELECT 97 * + 35 + - 11 AS col0
----
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT ALL - SUM( ALL + 72 ) + - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL - SUM ( ALL + 72 ) + - COUNT ( * )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT ALL MIN( + + 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL MIN ( + + 39 ) AS col2
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8567
SELECT ALL CAST( + 18 AS DECIMAL ) + + 15 + 64 + - 56 + + 51 + - 51 + 6 + 6 * + CAST( - 11 AS SIGNED ) * CAST( NULL AS DECIMAL ) / + SUM( + 35 ) + - 73 * 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8567
SELECT ALL CAST ( + 18 AS REAL ) + + 15 + 64 + - 56 + + 51 + - 51 + 6 + 6 * + CAST ( - 11 AS INTEGER ) * CAST ( NULL AS REAL ) / + SUM ( + 35 ) + - 73 * 71 AS col2
----
NULL

query I rowsort
SELECT 39 + + 96
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ( 57 ) * MAX( ALL + + 10 ) * - + 2 AS col2
----
-1140

skipif mysql # not compatible
query I rowsort label-8569
SELECT ( 57 ) * MAX ( ALL + + 10 ) * - + 2 AS col2
----
-1140

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8570
SELECT DISTINCT 42 AS col1, - CAST( NULL AS DECIMAL ) * - - ( + + 40 ) * COALESCE ( 79, - AVG ( ALL + 19 ) - + 71 * - 46, - COUNT( * ) ) + + + COUNT( * )
----
42
NULL

skipif mysql # not compatible
query II rowsort label-8570
SELECT DISTINCT 42 AS col1, - CAST ( NULL AS REAL ) * - - ( + + 40 ) * COALESCE ( 79, - AVG ( ALL + 19 ) - + 71 * - 46, - COUNT ( * ) ) + + + COUNT ( * )
----
42
NULL

query II rowsort
SELECT 50, 20 AS col1
----
50
20

query II rowsort
SELECT - 24, - 85 AS col0
----
-24
-85

query I rowsort
SELECT - 32 + - 12 AS col0
----
-44

query II rowsort
SELECT - - 72 AS col0, 80 * + 20
----
72
1600

query II rowsort
SELECT ALL + 15 AS col1, + 26 AS col2
----
15
26

query II rowsort
SELECT DISTINCT 41, 68 col0
----
41
68

query II rowsort
SELECT + + 75 * - 14 * + 91 + - 52 * ( - 48 ) col2, + 8 + + 2
----
-93054
10

query I rowsort
SELECT ALL + 63 * + - 18
----
-1134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8579
SELECT + COALESCE ( - - 6, - - 15 ) DIV - - MIN( + - 13 )
----
0

skipif mysql # not compatible
query I rowsort label-8579
SELECT + COALESCE ( - - 6, - - 15 ) / - - MIN ( + - 13 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8580
SELECT + 74 DIV + + 32
----
2

skipif mysql # not compatible
query I rowsort label-8580
SELECT + 74 / + + 32
----
2

query II rowsort
SELECT + 70 AS col2, 16 AS col1
----
70
16

query I rowsort
SELECT - + 17 * - 41
----
697

query II rowsort
SELECT 67, - 22 AS col0
----
67
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT + - CASE - - 26 WHEN + ( + + 92 ) / 94 * - COUNT( * ) THEN NULL ELSE - - 31 END AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-8584
SELECT + - CASE - - 26 WHEN + ( + + 92 ) / 94 * - COUNT ( * ) THEN NULL ELSE - - 31 END AS col1
----
-31

query I rowsort
SELECT DISTINCT + 62 * + 96 - + + 83 + ( + + 36 ) AS col2
----
5905

onlyif mysql # aggregate syntax: 
query II rowsort label-8586
SELECT DISTINCT + - 88, - COALESCE ( - 63, + 9 ) - + SUM( 65 ) + + MAX( - - 31 ) - + COALESCE ( + 49, - 87 ) AS col1
----
-88
-20

skipif mysql # not compatible
query II rowsort label-8586
SELECT DISTINCT + - 88, - COALESCE ( - 63, + 9 ) - + SUM ( 65 ) + + MAX ( - - 31 ) - + COALESCE ( + 49, - 87 ) AS col1
----
-88
-20

query II rowsort
SELECT - 21, + 77 * + + 7 * 23 AS col0
----
-21
12397

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8588
SELECT ALL 16 * + + 27 * - - COALESCE ( - 34, COUNT( * ) / 46, - + 48 + + + 93 ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL 16 * + + 27 * - - COALESCE ( - 34, COUNT ( * ) / 46, - + 48 + + + 93 ) + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8589
SELECT ALL 85 * - 41 + + + COALESCE ( - - COALESCE ( + 12, 8 * + - 36 DIV - 68, - + 78 * SUM( ALL - - 21 ) ), + 73, + COUNT( * ) ) + 54 col2
----
-3419

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL 85 * - 41 + + + COALESCE ( - - COALESCE ( + 12, 8 * + - 36 / - 68, - + 78 * SUM ( ALL - - 21 ) ), + 73, + COUNT ( * ) ) + 54 col2
----
-3419

onlyif mysql # aggregate syntax: 
query II rowsort label-8590
SELECT DISTINCT + SUM( - + 49 ) AS col2, - 80 * 90 * + CASE - 75 WHEN - - 52 THEN + - 21 + + 53 * + - 39 ELSE - 62 END AS col1
----
-49
446400

skipif mysql # not compatible
query II rowsort label-8590
SELECT DISTINCT + SUM ( - + 49 ) AS col2, - 80 * 90 * + CASE - 75 WHEN - - 52 THEN + - 21 + + 53 * + - 39 ELSE - 62 END AS col1
----
-49
446400

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT MIN( DISTINCT + 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8591
SELECT MIN ( DISTINCT + 10 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT - 62 * - COUNT( * ) * - - 87 AS col0
----
5394

skipif mysql # not compatible
query I rowsort label-8592
SELECT - 62 * - COUNT ( * ) * - - 87 AS col0
----
5394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8593
SELECT ALL + 16 * - 60 + 18 + + MAX( + 49 ) * + ( COUNT( * ) ) * - COALESCE ( 81, + + COUNT( * ) ) + 46 DIV - 73 * - CAST( 67 AS SIGNED ) * - - 91 * 75 AS col2
----
-4911

skipif mysql # not compatible
query I rowsort label-8593
SELECT ALL + 16 * - 60 + 18 + + MAX ( + 49 ) * + ( COUNT ( * ) ) * - COALESCE ( 81, + + COUNT ( * ) ) + 46 / - 73 * - CAST ( 67 AS INTEGER ) * - - 91 * 75 AS col2
----
-4911

query I rowsort
SELECT - 91 * 55 AS col0
----
-5005

query I rowsort
SELECT DISTINCT - 17 * 52 + 66
----
-818

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT 11 * - - MIN( 9 ) * + 2 - - 26 + + ( + + 46 ) col0
----
270

skipif mysql # not compatible
query I rowsort label-8596
SELECT 11 * - - MIN ( 9 ) * + 2 - - 26 + + ( + + 46 ) col0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT DISTINCT MIN( ALL + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT MIN ( ALL + 24 )
----
24

query I rowsort
SELECT ALL - NULLIF ( - 32, 15 - + 70 + + 71 / + - 64 * 30 ) - + 45 - - 91 * - - 40 col0
----
3627

query I rowsort
SELECT - 96 * - + ( - 92 ) AS col0
----
-8832

onlyif mysql # aggregate syntax: 
query II rowsort label-8600
SELECT ALL - 30 - + - MIN( DISTINCT + 94 ), 63 * - COUNT( * ) AS col2
----
64
-63

skipif mysql # not compatible
query II rowsort label-8600
SELECT ALL - 30 - + - MIN ( DISTINCT + 94 ), 63 * - COUNT ( * ) AS col2
----
64
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT - MIN( ALL 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-8601
SELECT - MIN ( ALL 14 )
----
-14

query I rowsort
SELECT - 1 - - 15 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT + MAX( DISTINCT + COALESCE ( - 93, - 96 * 50 * + 21 + 9 ) ) * 83
----
-7719

skipif mysql # not compatible
query I rowsort label-8603
SELECT + MAX ( DISTINCT + COALESCE ( - 93, - 96 * 50 * + 21 + 9 ) ) * 83
----
-7719

query I rowsort
SELECT + - 89 * + 78
----
-6942

query I rowsort
SELECT - - ( - 40 ) col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT DISTINCT + SUM( ALL + 80 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-8606
SELECT DISTINCT + SUM ( ALL + 80 ) AS col2
----
80

query I rowsort
SELECT ALL - + 62 * + 50
----
-3100

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT DISTINCT ( + MAX( DISTINCT + 13 ) ) col0
----
13

skipif mysql # not compatible
query I rowsort label-8608
SELECT DISTINCT ( + MAX ( DISTINCT + 13 ) ) col0
----
13

query I rowsort
SELECT - 49 + 73 - + 39
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT ALL MIN( ALL + - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-8610
SELECT ALL MIN ( ALL + - 32 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT - 62 + + 18 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8611
SELECT - 62 + + 18 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT + - 63 * + COUNT( * ) + - 5
----
-68

skipif mysql # not compatible
query I rowsort label-8612
SELECT + - 63 * + COUNT ( * ) + - 5
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT - - MIN( 91 ) + + - 97 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-8613
SELECT - - MIN ( 91 ) + + - 97 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT - - MIN( 93 )
----
93

skipif mysql # not compatible
query I rowsort label-8614
SELECT - - MIN ( 93 )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8615
SELECT ALL - 86 DIV - - 8 + - COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL - 86 / - - 8 + - COUNT ( * ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT COUNT( * ) * - + 21 + 89
----
68

skipif mysql # not compatible
query I rowsort label-8616
SELECT COUNT ( * ) * - + 21 + 89
----
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8617
SELECT ALL - - 39 DIV + 82 - - CAST( + 32 AS SIGNED ) + - - 21 + + - ( - 86 ) - 18 * - 2 AS col0
----
175

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL - - 39 / + 82 - - CAST ( + 32 AS INTEGER ) + - - 21 + + - ( - 86 ) - 18 * - 2 AS col0
----
175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8618
SELECT ALL + CASE + - NULLIF ( + 38, COUNT( * ) ) WHEN + - 44 THEN NULL WHEN - + 82 + + 92 THEN COUNT( * ) * - - 89 - + + 75 ELSE + + 52 + - 1 END DIV + - 1 + - 93
----
-144

skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL + CASE + - NULLIF ( + 38, COUNT ( * ) ) WHEN + - 44 THEN NULL WHEN - + 82 + + 92 THEN COUNT ( * ) * - - 89 - + + 75 ELSE + + 52 + - 1 END / + - 1 + - 93
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8619
SELECT DISTINCT - COUNT( * ) DIV + + 45 + 80 - + CASE + - AVG ( + 44 ) WHEN - 85 * - ( + MIN( - 33 ) ) - + + COUNT( * ) + 89 THEN NULL WHEN + + 73 * + CAST( NULL AS SIGNED ) THEN NULL WHEN - COUNT( * ) DIV 29 * 1 - 21 THEN NULL ELSE - 8 END + - 15 * 7
----
-17

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT - COUNT ( * ) / + + 45 + 80 - + CASE + - AVG ( + 44 ) WHEN - 85 * - ( + MIN ( - 33 ) ) - + + COUNT ( * ) + 89 THEN NULL WHEN + + 73 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN - COUNT ( * ) / 29 * 1 - 21 THEN NULL ELSE - 8 END + - 15 * 7
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8620
SELECT + CAST( + - CAST( ( - 38 ) AS SIGNED ) AS SIGNED ) * - - 81 AS col1
----
3078

skipif mysql # not compatible
query I rowsort label-8620
SELECT + CAST ( + - CAST ( ( - 38 ) AS INTEGER ) AS INTEGER ) * - - 81 AS col1
----
3078

query I rowsort
SELECT + 86 + 95 AS col0
----
181

query I rowsort
SELECT ALL 92 * + 87
----
8004

query I rowsort
SELECT + COALESCE ( + + 41, - 11 )
----
41

query I rowsort
SELECT ( - + 99 ) col2
----
-99

query I rowsort
SELECT - COALESCE ( + 60, - - ( - 52 ) ) * + 73 + + + 4
----
-4376

query I rowsort
SELECT ( + + 51 )
----
51

query I rowsort
SELECT + 50 * 11 AS col1
----
550

query I rowsort
SELECT DISTINCT + 55 col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT - 37 - - - COUNT( * ) + - 1 * + 7 - + - ( + - NULLIF ( + 53, + 20 ) ) - - 97 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8629
SELECT - 37 - - - COUNT ( * ) + - 1 * + 7 - + - ( + - NULLIF ( + 53, + 20 ) ) - - 97 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8630
SELECT + 84 * - NULLIF ( + CAST( NULL AS SIGNED ), - - AVG ( - - 44 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8630
SELECT + 84 * - NULLIF ( + CAST ( NULL AS INTEGER ), - - AVG ( - - 44 ) )
----
NULL

query II rowsort
SELECT NULLIF ( + 23, - - 36 ), + 2 AS col0
----
23
2

query I rowsort
SELECT + 1 + 7
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT COALESCE ( - - ( + + COUNT( + + ( 5 ) ) ), - COUNT( - 99 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8633
SELECT COALESCE ( - - ( + + COUNT ( + + ( 5 ) ) ), - COUNT ( - 99 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT ALL ( - MIN( ALL 68 ) ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL ( - MIN ( ALL 68 ) ) AS col1
----
-68

query I rowsort
SELECT - ( - ( - 71 ) ) - - 30
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT - COUNT( * ) * 52 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-8636
SELECT - COUNT ( * ) * 52 AS col2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8637
SELECT ALL CAST( + + AVG ( - + 96 ) AS SIGNED ) AS col2, - 0 - 11
----
-96
-11

skipif mysql # not compatible
query II rowsort label-8637
SELECT ALL CAST ( + + AVG ( - + 96 ) AS INTEGER ) AS col2, - 0 - 11
----
-96
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-8638
SELECT 1 DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-8638
SELECT 1 / + 57
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8639
SELECT ALL CAST( - - 87 AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL CAST ( - - 87 AS INTEGER )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8640
SELECT + 3 + CASE - - 79 WHEN 35 THEN NULL WHEN - COUNT( * ) THEN - CASE ( CAST( NULL AS DECIMAL ) ) WHEN - - 50 THEN + 12 END WHEN + 77 THEN 45 * + 1 + - 11 / + CAST( NULL AS SIGNED ) * + 78 + - ( + 14 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8640
SELECT + 3 + CASE - - 79 WHEN 35 THEN NULL WHEN - COUNT ( * ) THEN - CASE ( CAST ( NULL AS REAL ) ) WHEN - - 50 THEN + 12 END WHEN + 77 THEN 45 * + 1 + - 11 / + CAST ( NULL AS INTEGER ) * + 78 + - ( + 14 ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8641
SELECT ALL COUNT( * ), + 74 * - - 62 AS col0
----
1
4588

skipif mysql # not compatible
query II rowsort label-8641
SELECT ALL COUNT ( * ), + 74 * - - 62 AS col0
----
1
4588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8642
SELECT ALL + COUNT( * ) DIV 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL + COUNT ( * ) / 95 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8643
SELECT MIN( ALL 36 ) DIV + 8 col0
----
4

skipif mysql # not compatible
query I rowsort label-8643
SELECT MIN ( ALL 36 ) / + 8 col0
----
4

query I rowsort
SELECT NULLIF ( 52, 8 ) + 65
----
117

query I rowsort
SELECT - ( - + 20 )
----
20

query I rowsort
SELECT 70 + + 17
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT ALL - 12 + - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL - 12 + - COUNT ( * )
----
-13

query I rowsort
SELECT 1 + - ( 79 ) AS col1
----
-78

query I rowsort
SELECT DISTINCT - + 85 + 76 col2
----
-9

query II rowsort
SELECT - - 34 AS col0, - 66 * - + 28
----
34
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT 50 * + 36 + - COUNT( * ) AS col0
----
1799

skipif mysql # not compatible
query I rowsort label-8651
SELECT 50 * + 36 + - COUNT ( * ) AS col0
----
1799

query II rowsort
SELECT - 66 AS col0, + 60 * - 85
----
-66
-5100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8653
SELECT DISTINCT CASE + + ( + 55 ) WHEN + 21 * - CAST( + 92 AS SIGNED ) + - CASE + NULLIF ( - - 66, - 0 ) WHEN - + NULLIF ( + 33, - NULLIF ( + 55, ( 42 ) - - 7 - + COUNT( ALL 52 ) * 2 ) / 42 ) THEN COUNT( * ) - 26 END + - 88 * + 75 THEN CASE 13 WHEN 75 + 17 THEN ( ( 96 ) ) * 20 + 52 WHEN 20 THEN NULL END / - COUNT( * ) WHEN 54 THEN NULL WHEN - 76 + 19 THEN + COALESCE ( + 74, - ( + 9 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT CASE + + ( + 55 ) WHEN + 21 * - CAST ( + 92 AS INTEGER ) + - CASE + NULLIF ( - - 66, - 0 ) WHEN - + NULLIF ( + 33, - NULLIF ( + 55, ( 42 ) - - 7 - + COUNT ( ALL 52 ) * 2 ) / 42 ) THEN COUNT ( * ) - 26 END + - 88 * + 75 THEN CASE 13 WHEN 75 + 17 THEN ( ( 96 ) ) * 20 + 52 WHEN 20 THEN NULL END / - COUNT ( * ) WHEN 54 THEN NULL WHEN - 76 + 19 THEN + COALESCE ( + 74, - ( + 9 ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT COUNT( * ) * + - COALESCE ( COUNT( * ), + 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-8654
SELECT COUNT ( * ) * + - COALESCE ( COUNT ( * ), + 38 )
----
-1

query I rowsort
SELECT ALL - - 43 + - 37
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT + SUM( DISTINCT 15 )
----
15

skipif mysql # not compatible
query I rowsort label-8656
SELECT + SUM ( DISTINCT 15 )
----
15

query I rowsort
SELECT - 8 * + 6 - 51
----
-99

query I rowsort
SELECT COALESCE ( 65, 84, - 62 ) * - 59 col0
----
-3835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8659
SELECT DISTINCT CASE + - 99 WHEN + 9 + 93 + + - ( MAX( DISTINCT - + 4 ) ) THEN - 54 WHEN + + 24 * + - 35 THEN + 49 * + 93 + - - CAST( - COUNT( * ) AS SIGNED ) ELSE NULL END - + 53 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT CASE + - 99 WHEN + 9 + 93 + + - ( MAX ( DISTINCT - + 4 ) ) THEN - 54 WHEN + + 24 * + - 35 THEN + 49 * + 93 + - - CAST ( - COUNT ( * ) AS INTEGER ) ELSE NULL END - + 53 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8660
SELECT ALL + 47 DIV 12 DIV + 84 * + - 18 AS col0, - 31 * + 6 + + 56 + AVG ( ALL - 59 ) + - + 4 * - 24 + + + 95 * - CAST( - ( + 33 ) AS SIGNED ) * - CAST( NULL AS SIGNED ) * + COUNT( * ) col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8660
SELECT ALL + 47 / 12 / + 84 * + - 18 AS col0, - 31 * + 6 + + 56 + AVG ( ALL - 59 ) + - + 4 * - 24 + + + 95 * - CAST ( - ( + 33 ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) col0
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8661
SELECT NULLIF ( + 56, - + 29 ) * + CAST( - + 70 AS SIGNED ) + 8 AS col1
----
-3912

skipif mysql # not compatible
query I rowsort label-8661
SELECT NULLIF ( + 56, - + 29 ) * + CAST ( - + 70 AS INTEGER ) + 8 AS col1
----
-3912

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT ALL 32 * + COUNT( * ) * + 99
----
3168

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL 32 * + COUNT ( * ) * + 99
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT DISTINCT NULLIF ( COUNT( * ), - ( - 16 ) ) - 48 - COUNT( * ) * - 74 + + - ( - - 13 ) + + 60 * - 54 col0
----
-3226

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT NULLIF ( COUNT ( * ), - ( - 16 ) ) - 48 - COUNT ( * ) * - 74 + + - ( - - 13 ) + + 60 * - 54 col0
----
-3226

query I rowsort
SELECT 48 + ( - + 20 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT COUNT( * ) * + 84 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8665
SELECT COUNT ( * ) * + 84 AS col0
----
84

query I rowsort
SELECT ( + - 26 ) * - 56 AS col2
----
1456

query I rowsort
SELECT 32 * - 85 col0
----
-2720

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT DISTINCT COUNT( * ) * + 69
----
69

skipif mysql # not compatible
query I rowsort label-8668
SELECT DISTINCT COUNT ( * ) * + 69
----
69

query I rowsort
SELECT ALL + 76 + 97 + - 70 + - 91 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT COUNT( * ) - - 67
----
68

skipif mysql # not compatible
query I rowsort label-8670
SELECT COUNT ( * ) - - 67
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT CASE + + 33 WHEN + - AVG ( ALL + + 53 ) * 31 * + 29 THEN NULL WHEN 59 THEN - 16 + 64 / + + COUNT( * ) * - 78 WHEN + 64 * - 30 THEN NULL ELSE NULL END * + - 75 / + + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8671
SELECT CASE + + 33 WHEN + - AVG ( ALL + + 53 ) * 31 * + 29 THEN NULL WHEN 59 THEN - 16 + 64 / + + COUNT ( * ) * - 78 WHEN + 64 * - 30 THEN NULL ELSE NULL END * + - 75 / + + 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT CASE - 43 WHEN - + 42 THEN + ( + - MIN( ALL - + 38 ) ) * + 21 + 22 + - 85 * - 40 * - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8672
SELECT CASE - 43 WHEN - + 42 THEN + ( + - MIN ( ALL - + 38 ) ) * + 21 + 22 + - 85 * - 40 * - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8673
SELECT ALL - + 7 + + + 43 DIV - 89
----
-7

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL - + 7 + + + 43 / - 89
----
-7

query I rowsort
SELECT ( + + 68 ) - 46 + - 7
----
15

query I rowsort
SELECT 98 + 9 - + 33 AS col2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8676
SELECT + 17 DIV 76 * - - NULLIF ( - 86, + + COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8676
SELECT + 17 / 76 * - - NULLIF ( - 86, + + COUNT ( * ) ) AS col1
----
0

query I rowsort
SELECT 29 * - 78
----
-2262

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8678
SELECT - COUNT( * ) * - 50 + + + ( - - 85 ) - + 74 DIV 96 * + - 46 + - + 80 DIV - - 24 col2
----
132

skipif mysql # not compatible
query I rowsort label-8678
SELECT - COUNT ( * ) * - 50 + + + ( - - 85 ) - + 74 / 96 * + - 46 + - + 80 / - - 24 col2
----
132

query I rowsort
SELECT ALL - - 15 - + + 62 * 5
----
-295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8680
SELECT ALL + COUNT( * ) * SUM( - - CAST( - - 71 AS SIGNED ) ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL + COUNT ( * ) * SUM ( - - CAST ( - - 71 AS INTEGER ) ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT 13 * + 96 * - SUM( ALL - 98 )
----
122304

skipif mysql # not compatible
query I rowsort label-8681
SELECT 13 * + 96 * - SUM ( ALL - 98 )
----
122304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8682
SELECT DISTINCT - COUNT( * ) DIV + - 11
----
0

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT - COUNT ( * ) / + - 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT ALL + COUNT( * ) * - - COUNT( 31 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL + COUNT ( * ) * - - COUNT ( 31 ) AS col0
----
1

query I rowsort
SELECT ALL + 43 * 0 AS col2
----
0

query I rowsort
SELECT 13 * 68 * - 28
----
-24752

query I rowsort
SELECT 51 + + - 21 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT DISTINCT - ( - NULLIF ( - 16, + COUNT( * ) ) ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT - ( - NULLIF ( - 16, + COUNT ( * ) ) ) AS col1
----
-16

query I rowsort
SELECT + 3 * 42 * - - 45 + 16 + - - 26 col2
----
5712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8689
SELECT DISTINCT + ( + CAST( + + MIN( COALESCE ( + 54, 41 ) ) AS SIGNED ) ), - 50 AS col0
----
54
-50

skipif mysql # not compatible
query II rowsort label-8689
SELECT DISTINCT + ( + CAST ( + + MIN ( COALESCE ( + 54, 41 ) ) AS INTEGER ) ), - 50 AS col0
----
54
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8690
SELECT ALL + ( + 91 ) * - CAST( + - 38 AS SIGNED ) + 86 + + 86 + + 61 * 42 - CAST( + + COUNT( * ) AS SIGNED ) col2, - 3
----
6191
-3

skipif mysql # not compatible
query II rowsort label-8690
SELECT ALL + ( + 91 ) * - CAST ( + - 38 AS INTEGER ) + 86 + + 86 + + 61 * 42 - CAST ( + + COUNT ( * ) AS INTEGER ) col2, - 3
----
6191
-3

query I rowsort
SELECT ALL 25 * + - 35 * + - 61
----
53375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8692
SELECT ALL + COUNT( * ) + - + 20 DIV - 71 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL + COUNT ( * ) + - + 20 / - 71 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT DISTINCT + CASE 28 WHEN 16 + + NULLIF ( + 76, COUNT( * ) ) THEN + 58 ELSE NULL END / 45 * 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT + CASE 28 WHEN 16 + + NULLIF ( + 76, COUNT ( * ) ) THEN + 58 ELSE NULL END / 45 * 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8694
SELECT ALL 18 + - - MAX( + - 26 ) col2, - 41 * - + 14 AS col1
----
-8
574

skipif mysql # not compatible
query II rowsort label-8694
SELECT ALL 18 + - - MAX ( + - 26 ) col2, - 41 * - + 14 AS col1
----
-8
574

query I rowsort
SELECT 72 * 91 - - 46
----
6598

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT DISTINCT - 35 + COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT - 35 + COUNT ( * )
----
-34

query I rowsort
SELECT - 2 / + CASE - 19 WHEN + + COALESCE ( - - 68, + 32 * - - 19 * - + 59, 95 ) THEN + 96 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT DISTINCT + NULLIF ( - - 43, - 3 * - - 92 ) * 80 - ( + 28 ) * - - MAX( ALL 31 ) - + - 20 + - 66 * 85 * + 30
----
-165708

skipif mysql # not compatible
query I rowsort label-8698
SELECT DISTINCT + NULLIF ( - - 43, - 3 * - - 92 ) * 80 - ( + 28 ) * - - MAX ( ALL 31 ) - + - 20 + - 66 * 85 * + 30
----
-165708

query I rowsort
SELECT ALL 54 + + 76 AS col0
----
130

query I rowsort
SELECT + + 39 + 61 AS col1
----
100

query I rowsort
SELECT + + 59 - - 17
----
76

query I rowsort
SELECT DISTINCT - ( 14 ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT + + 89 + + 16 + - COUNT( DISTINCT + 76 ) * + ( 53 )
----
52

skipif mysql # not compatible
query I rowsort label-8703
SELECT + + 89 + + 16 + - COUNT ( DISTINCT + 76 ) * + ( 53 )
----
52

query I rowsort
SELECT ALL - 84 + - 23
----
-107

query I rowsort
SELECT DISTINCT + 51 + - 65 AS col0
----
-14

query I rowsort
SELECT ALL + 29 * - 58 col1
----
-1682

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT + 87 + + - NULLIF ( 99, 98 * - + COUNT( * ) ) + + 78 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-8707
SELECT + 87 + + - NULLIF ( 99, 98 * - + COUNT ( * ) ) + + 78 AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8708
SELECT DISTINCT CASE ( - ( + - COUNT( * ) ) ) WHEN + COUNT( * ) THEN - SUM( 43 ) WHEN + 10 + 79 THEN - 73 WHEN + - CAST( NULL AS DECIMAL ) * + ( - 88 ) * 87 * - MAX( DISTINCT + 11 ) THEN NULL ELSE NULL END col1
----
-43

skipif mysql # not compatible
query I rowsort label-8708
SELECT DISTINCT CASE ( - ( + - COUNT ( * ) ) ) WHEN + COUNT ( * ) THEN - SUM ( 43 ) WHEN + 10 + 79 THEN - 73 WHEN + - CAST ( NULL AS REAL ) * + ( - 88 ) * 87 * - MAX ( DISTINCT + 11 ) THEN NULL ELSE NULL END col1
----
-43

query II rowsort
SELECT - - 12, 60 * - + 45 AS col0
----
12
-2700

query I rowsort
SELECT - + 57 * + 33 + - 56 + - 63 + - 96 * + 51
----
-6896

query I rowsort
SELECT DISTINCT 41 * 67
----
2747

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8712
SELECT DISTINCT COALESCE ( 30, + + NULLIF ( + 81, COALESCE ( - CAST( NULL AS SIGNED ), + 74 ) ) + + COUNT( * ) * 63 * 62 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT COALESCE ( 30, + + NULLIF ( + 81, COALESCE ( - CAST ( NULL AS INTEGER ), + 74 ) ) + + COUNT ( * ) * 63 * 62 ) AS col0
----
30

query I rowsort
SELECT DISTINCT 68 * - 74 AS col2
----
-5032

onlyif mysql # aggregate syntax: 
query II rowsort label-8714
SELECT ALL 54 AS col0, - COUNT( * ) AS col2
----
54
-1

skipif mysql # not compatible
query II rowsort label-8714
SELECT ALL 54 AS col0, - COUNT ( * ) AS col2
----
54
-1

query I rowsort
SELECT + 9 * - - 3 AS col1
----
27

query I rowsort
SELECT + 85 * 88 * ( - 7 )
----
-52360

query II rowsort
SELECT + 65 col1, 82 + - 39
----
65
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT DISTINCT + COUNT( - + 91 )
----
1

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT + COUNT ( - + 91 )
----
1

query I rowsort
SELECT 48 * - 73 - - - 62
----
-3566

onlyif mysql # DIV for integer division: 
query I rowsort label-8720
SELECT - 67 DIV - 78 * - + 17 * - - 52
----
0

skipif mysql # not compatible
query I rowsort label-8720
SELECT - 67 / - 78 * - + 17 * - - 52
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8721
SELECT DISTINCT 2 DIV - - ( - 59 ) * + ( - 30 )
----
0

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT 2 / - - ( - 59 ) * + ( - 30 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8722
SELECT ALL - 85 DIV - - 83
----
-1

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL - 85 / - - 83
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8723
SELECT + 30 AS col0, CASE - 0 WHEN 83 THEN 37 * MIN( ALL - 63 ) + + 69 - + 17 + COUNT( * ) / 22 WHEN + 1 + - - 87 * - + 30 + 29 THEN - - 49 ELSE + 49 + 32 END AS col1
----
30
81

skipif mysql # not compatible
query II rowsort label-8723
SELECT + 30 AS col0, CASE - 0 WHEN 83 THEN 37 * MIN ( ALL - 63 ) + + 69 - + 17 + COUNT ( * ) / 22 WHEN + 1 + - - 87 * - + 30 + 29 THEN - - 49 ELSE + 49 + 32 END AS col1
----
30
81

query II rowsort
SELECT DISTINCT + 99 AS col2, - ( 86 ) AS col0
----
99
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8725
SELECT ALL + 12 * ( + ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL + 12 * ( + ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT - ( - 3 ) + + 10 col1
----
13

query II rowsort
SELECT + 16 col0, - 69 AS col2
----
16
-69

query III rowsort
SELECT + - 30 AS col1, 61, + + 5 AS col2
----
-30
61
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT ALL - 84 * - 31 + COUNT( * ) AS col0
----
2605

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL - 84 * - 31 + COUNT ( * ) AS col0
----
2605

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT - + 68 * - + COUNT( - 28 )
----
68

skipif mysql # not compatible
query I rowsort label-8730
SELECT - + 68 * - + COUNT ( - 28 )
----
68

query II rowsort
SELECT DISTINCT + 38, - 77 + - NULLIF ( + 79, 79 ) AS col2
----
38
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8732
SELECT ALL - 55 * - 64 + 30 - + CASE 42 WHEN + - NULLIF ( + 24, - 65 - + + 3 ) - + NULLIF ( + - 20, - + COUNT( - 30 ) ) THEN 18 * + CASE - 54 WHEN + 22 THEN NULL WHEN + - 54 * + NULLIF ( + 13, - COUNT( * ) ) / 0 + + ( + 26 + 23 * 17 ) + NULLIF ( COUNT( * ), + AVG ( 16 ) * 10 ) THEN 22 * + 87 + COUNT( * ) END * - 90 END + + 72 * + 5 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL - 55 * - 64 + 30 - + CASE 42 WHEN + - NULLIF ( + 24, - 65 - + + 3 ) - + NULLIF ( + - 20, - + COUNT ( - 30 ) ) THEN 18 * + CASE - 54 WHEN + 22 THEN NULL WHEN + - 54 * + NULLIF ( + 13, - COUNT ( * ) ) / 0 + + ( + 26 + 23 * 17 ) + NULLIF ( COUNT ( * ), + AVG ( 16 ) * 10 ) THEN 22 * + 87 + COUNT ( * ) END * - 90 END + + 72 * + 5 + + CAST ( NULL AS REAL ) AS col1
----
NULL

query II rowsort
SELECT ALL - 20 * + + ( - - 13 ) + 82 AS col1, 83 * + - ( + 92 )
----
-178
-7636

query I rowsort
SELECT DISTINCT - 91 * - ( + 52 ) + + + 43 + 41
----
4816

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT ALL - - 30 * + - 20 - + MAX( ALL 89 ) + 39 AS col0
----
-650

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL - - 30 * + - 20 - + MAX ( ALL 89 ) + 39 AS col0
----
-650

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8736
SELECT ALL - - 36 DIV 70 + - 38 - - COUNT( * ), 5 * 12 + + + 64 + - 61 AS col1
----
-37
63

skipif mysql # not compatible
query II rowsort label-8736
SELECT ALL - - 36 / 70 + - 38 - - COUNT ( * ), 5 * 12 + + + 64 + - 61 AS col1
----
-37
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8737
SELECT + 72 DIV - + COUNT( ALL - NULLIF ( + 30, + 41 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-8737
SELECT + 72 / - + COUNT ( ALL - NULLIF ( + 30, + 41 ) )
----
-72

query I rowsort
SELECT - - 48 col2
----
48

query II rowsort
SELECT 53, 28 col0
----
53
28

query I rowsort
SELECT - - 92 - - 11
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-8741
SELECT + - 86 DIV + 68 + - 74
----
-75

skipif mysql # not compatible
query I rowsort label-8741
SELECT + - 86 / + 68 + - 74
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT MAX( ALL 81 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-8742
SELECT MAX ( ALL 81 ) AS col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8743
SELECT + - 42 * + COALESCE ( + + 21, 8, - + 95 * + ( + + 93 ) * - 22 + + + 73 + - - COALESCE ( 35, + 57 ) + - COALESCE ( - COALESCE ( + 56, + 91 ), 70 + + + 63 ) * - - 26 DIV CASE MAX( 34 ) WHEN + COUNT( * ) THEN - 61 * + ( + 10 ) END + COUNT( * ) ) * + ( 48 )
----
-42336

skipif mysql # not compatible
query I rowsort label-8743
SELECT + - 42 * + COALESCE ( + + 21, 8, - + 95 * + ( + + 93 ) * - 22 + + + 73 + - - COALESCE ( 35, + 57 ) + - COALESCE ( - COALESCE ( + 56, + 91 ), 70 + + + 63 ) * - - 26 / CASE MAX ( 34 ) WHEN + COUNT ( * ) THEN - 61 * + ( + 10 ) END + COUNT ( * ) ) * + ( 48 )
----
-42336

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT DISTINCT + 78 * + CASE + 23 WHEN - - 75 THEN COUNT( * ) ELSE - 73 END AS col0
----
-5694

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT + 78 * + CASE + 23 WHEN - - 75 THEN COUNT ( * ) ELSE - 73 END AS col0
----
-5694

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ALL COUNT( - ( - - 65 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL COUNT ( - ( - - 65 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT + 97 - + MAX( ALL + 31 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-8746
SELECT + 97 - + MAX ( ALL + 31 ) AS col0
----
66

query I rowsort
SELECT + 74 - + + 95
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-8748
SELECT - ( + 28 ), ( - COUNT( * ) ) * + MAX( - 70 ) AS col1
----
-28
70

skipif mysql # not compatible
query II rowsort label-8748
SELECT - ( + 28 ), ( - COUNT ( * ) ) * + MAX ( - 70 ) AS col1
----
-28
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT ALL COUNT( DISTINCT - 96 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL COUNT ( DISTINCT - 96 ) col1
----
1

query I rowsort
SELECT 42 + - 66 + + 21
----
-3

query II rowsort
SELECT DISTINCT 61 + - 35, 75 + + 3 AS col2
----
26
78

query I rowsort
SELECT ALL ( + + 16 ) + 94
----
110

query I rowsort
SELECT DISTINCT 78 * + COALESCE ( + 49, - 55 + - 36 + - 50, + + 87 )
----
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT DISTINCT + 8 + ( - COUNT( * ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT + 8 + ( - COUNT ( * ) ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-8755
SELECT ALL - 53 + - 17 + + COUNT( * ) col1, 59 AS col1
----
-69
59

skipif mysql # not compatible
query II rowsort label-8755
SELECT ALL - 53 + - 17 + + COUNT ( * ) col1, 59 AS col1
----
-69
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT ALL 13 * + 40 * - + COUNT( * )
----
-520

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL 13 * + 40 * - + COUNT ( * )
----
-520

query I rowsort
SELECT DISTINCT 72 + - 91 col2
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8758
SELECT DISTINCT - 36 DIV COUNT( * ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-8758
SELECT DISTINCT - 36 / COUNT ( * ) AS col2
----
-36

query I rowsort
SELECT + 68 * + + 28 + - - 1
----
1905

query I rowsort
SELECT ALL + - 88 * 78 * - 9
----
61776

query I rowsort
SELECT DISTINCT - 34 * + 40 + + - 45 + + 92 AS col1
----
-1313

onlyif mysql # aggregate syntax: 
query II rowsort label-8762
SELECT - 60 * - 4 AS col0, 98 - + - COUNT( * ) AS col1
----
240
99

skipif mysql # not compatible
query II rowsort label-8762
SELECT - 60 * - 4 AS col0, 98 - + - COUNT ( * ) AS col1
----
240
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT ALL - COUNT( * ) * - - ( - 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL - COUNT ( * ) * - - ( - 94 ) AS col2
----
94

query I rowsort
SELECT 80 + - 88 AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8765
SELECT + CAST( NULL AS SIGNED ) * + 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT + CAST ( NULL AS INTEGER ) * + 80 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT + MIN( - 27 ) * + - 12 AS col1
----
324

skipif mysql # not compatible
query I rowsort label-8766
SELECT + MIN ( - 27 ) * + - 12 AS col1
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT 46 * + 52 * - ( + COUNT( * ) ) + - 21 * - 80
----
-712

skipif mysql # not compatible
query I rowsort label-8767
SELECT 46 * + 52 * - ( + COUNT ( * ) ) + - 21 * - 80
----
-712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8768
SELECT ALL - 41 * + CAST( - - CASE - 44 WHEN + COUNT( DISTINCT - 95 ) * - - 71 THEN NULL ELSE 62 END AS SIGNED ) AS col1
----
-2542

skipif mysql # not compatible
query I rowsort label-8768
SELECT ALL - 41 * + CAST ( - - CASE - 44 WHEN + COUNT ( DISTINCT - 95 ) * - - 71 THEN NULL ELSE 62 END AS INTEGER ) AS col1
----
-2542

onlyif mysql # aggregate syntax: 
query II rowsort label-8769
SELECT 73 + 11 + - 53 * - SUM( DISTINCT + ( 53 ) ) + - 98, + 41 AS col1
----
2795
41

skipif mysql # not compatible
query II rowsort label-8769
SELECT 73 + 11 + - 53 * - SUM ( DISTINCT + ( 53 ) ) + - 98, + 41 AS col1
----
2795
41

query I rowsort
SELECT - 63 * - 25
----
1575

query I rowsort
SELECT ALL - 86 * 62 col0
----
-5332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8772
SELECT DISTINCT - COUNT( * ) DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT - COUNT ( * ) / - 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT 16 * + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-8773
SELECT 16 * + COUNT ( * )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8774
SELECT SUM( COALESCE ( + 48, - + 36, - CAST( - - 89 AS SIGNED ) + + 85 ) ) + + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-8774
SELECT SUM ( COALESCE ( + 48, - + 36, - CAST ( - - 89 AS INTEGER ) + + 85 ) ) + + COUNT ( * )
----
49

query I rowsort
SELECT ALL + ( 8 ) * - - 94 AS col1
----
752

query I rowsort
SELECT 42 * + 77
----
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT ALL + MAX( DISTINCT + 95 ) + - - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL + MAX ( DISTINCT + 95 ) + - - COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT ALL 8 + + CASE - + 2 WHEN 81 THEN NULL WHEN - 32 - + + 99 * - + 63 * COUNT( * ) * - + 5 / 79 THEN NULL ELSE + + 76 + - ( - 59 ) END AS col1
----
143

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL 8 + + CASE - + 2 WHEN 81 THEN NULL WHEN - 32 - + + 99 * - + 63 * COUNT ( * ) * - + 5 / 79 THEN NULL ELSE + + 76 + - ( - 59 ) END AS col1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT 51 * + CASE 20 WHEN - + MIN( ALL - + 95 ) THEN NULL WHEN + - NULLIF ( + - 18, - 79 ) * + 15 THEN NULL ELSE + ( - 14 ) END
----
-714

skipif mysql # not compatible
query I rowsort label-8779
SELECT 51 * + CASE 20 WHEN - + MIN ( ALL - + 95 ) THEN NULL WHEN + - NULLIF ( + - 18, - 79 ) * + 15 THEN NULL ELSE + ( - 14 ) END
----
-714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8780
SELECT COUNT( ALL + - 88 ) DIV + - COALESCE ( - + COUNT( * ), 97, + 19 + - 87 )
----
1

skipif mysql # not compatible
query I rowsort label-8780
SELECT COUNT ( ALL + - 88 ) / + - COALESCE ( - + COUNT ( * ), 97, + 19 + - 87 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT ALL 2 + - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL 2 + - + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT ALL 72 + - 57 * - 91 + - COUNT( * )
----
5258

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL 72 + - 57 * - 91 + - COUNT ( * )
----
5258

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT 41 - + CASE + + COUNT( * ) WHEN - + COUNT( ALL COALESCE ( 34, 1, - 90 / + 40 + 18 + + + 82 ) ) THEN NULL WHEN 6 THEN COUNT( * ) END * + + 33 + - - 97 + + 50 + + 65 + + 19 - - 83 * + - COUNT( * ) * ( - + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT 41 - + CASE + + COUNT ( * ) WHEN - + COUNT ( ALL COALESCE ( 34, 1, - 90 / + 40 + 18 + + + 82 ) ) THEN NULL WHEN 6 THEN COUNT ( * ) END * + + 33 + - - 97 + + 50 + + 65 + + 19 - - 83 * + - COUNT ( * ) * ( - + 78 )
----
NULL

query I rowsort
SELECT 76 * - 47
----
-3572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8785
SELECT DISTINCT 7 + - CAST( NULL AS SIGNED ) + + 44 + + 47 / - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT 7 + - CAST ( NULL AS INTEGER ) + + 44 + + 47 / - 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT ALL 66 + - MIN( 4 ) - - + ( + 26 ) + - + ( - 2 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL 66 + - MIN ( 4 ) - - + ( + 26 ) + - + ( - 2 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT COUNT( DISTINCT 14 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8787
SELECT COUNT ( DISTINCT 14 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT MAX( ALL + 13 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8788
SELECT MAX ( ALL + 13 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT COUNT( * ) * 1 * 78 * + 72 - CASE - - 2 WHEN 72 THEN - 5 * + 16 + 2 + - COUNT( * ) WHEN - - 39 THEN NULL END * 44 * COUNT( * ) * - 36 + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-8789
SELECT COUNT ( * ) * 1 * 78 * + 72 - CASE - - 2 WHEN 72 THEN - 5 * + 16 + 2 + - COUNT ( * ) WHEN - - 39 THEN NULL END * 44 * COUNT ( * ) * - 36 + 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT MAX( + 99 ) col1
----
99

skipif mysql # not compatible
query I rowsort label-8790
SELECT MAX ( + 99 ) col1
----
99

query I rowsort
SELECT ALL 60 * - 5 AS col0
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT MIN( DISTINCT - NULLIF ( - 90, + - 70 / - + 37 * + 8 + + 82 ) ) col1
----
90

skipif mysql # not compatible
query I rowsort label-8792
SELECT MIN ( DISTINCT - NULLIF ( - 90, + - 70 / - + 37 * + 8 + + 82 ) ) col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8793
SELECT DISTINCT 39 * - ( + 84 ) AS col2, 73 * + 76 + CAST( COUNT( ALL - + 69 ) AS SIGNED ) - - + COUNT( * ) AS col1
----
-3276
5550

skipif mysql # not compatible
query II rowsort label-8793
SELECT DISTINCT 39 * - ( + 84 ) AS col2, 73 * + 76 + CAST ( COUNT ( ALL - + 69 ) AS INTEGER ) - - + COUNT ( * ) AS col1
----
-3276
5550

query I rowsort
SELECT DISTINCT + 66 - - 83 AS col1
----
149

query I rowsort
SELECT ALL - + 73 - 25
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT ALL - + ( + SUM( ( - - 99 ) ) )
----
-99

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL - + ( + SUM ( ( - - 99 ) ) )
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8797
SELECT - - AVG ( ALL + + 5 ) * + + 5 - + + CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8797
SELECT - - AVG ( ALL + + 5 ) * + + 5 - + + CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8798
SELECT + + 16 AS col0, - 49 + CAST( NULL AS SIGNED ) * 44
----
16
NULL

skipif mysql # not compatible
query II rowsort label-8798
SELECT + + 16 AS col0, - 49 + CAST ( NULL AS INTEGER ) * 44
----
16
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8799
SELECT - 11 DIV + - 15 + 45 AS col0, 63 AS col1
----
45
63

skipif mysql # not compatible
query II rowsort label-8799
SELECT - 11 / + - 15 + 45 AS col0, 63 AS col1
----
45
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8800
SELECT 8 DIV + NULLIF ( COUNT( * ), - 19 ) - - ( - 32 ) * + 85 * + 15 + - + 88 col1
----
-40880

skipif mysql # not compatible
query I rowsort label-8800
SELECT 8 / + NULLIF ( COUNT ( * ), - 19 ) - - ( - 32 ) * + 85 * + 15 + - + 88 col1
----
-40880

query I rowsort
SELECT ALL - COALESCE ( - - 72, 95 ) AS col2
----
-72

query I rowsort
SELECT ALL - - CASE - 94 WHEN - 5 * + 49 THEN - + 76 + + 10 * 69 + 17 ELSE - - 2 END
----
2

query I rowsort
SELECT + NULLIF ( - COALESCE ( 12, - + 54, 75 ), 55 ) col0
----
-12

query I rowsort
SELECT ALL - 89 * + 99
----
-8811

query I rowsort
SELECT ALL + - 94 * NULLIF ( + 95, AVG ( ALL - 5 ) ) + - - 48 AS col1
----
-8882

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT ALL + 20 * - + COUNT( * ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL + 20 * - + COUNT ( * ) AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8807
SELECT DISTINCT - CAST( - 17 AS SIGNED ) * + + COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT - CAST ( - 17 AS INTEGER ) * + + COUNT ( * ) AS col0
----
17

query I rowsort
SELECT + 61 * + + 2
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT ALL - 45 * - - 20 * MAX( ALL + 25 ) * - + CASE + 74 WHEN + - MAX( + 98 ) THEN NULL WHEN 25 - - 1 THEN NULL ELSE - - ( - 44 ) END
----
-990000

skipif mysql # not compatible
query I rowsort label-8809
SELECT ALL - 45 * - - 20 * MAX ( ALL + 25 ) * - + CASE + 74 WHEN + - MAX ( + 98 ) THEN NULL WHEN 25 - - 1 THEN NULL ELSE - - ( - 44 ) END
----
-990000

query I rowsort
SELECT + 0 + + CASE - 28 WHEN - 35 THEN 38 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8811
SELECT COALESCE ( + ( ( - 97 ) ), + + CAST( 52 AS SIGNED ) ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-8811
SELECT COALESCE ( + ( ( - 97 ) ), + + CAST ( 52 AS INTEGER ) ) AS col1
----
-97

query II rowsort
SELECT ALL - - 64 * 33 * 1 AS col2, NULLIF ( + 51, + 77 * + 85 ) AS col2
----
2112
51

query I rowsort
SELECT - + 10 col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT - 62 - - + COUNT( * ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-8814
SELECT - 62 - - + COUNT ( * ) AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT DISTINCT - 7 + - MAX( - 61 ) - + + 28 + 25 * - 40 * 78 AS col0
----
-77974

skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT - 7 + - MAX ( - 61 ) - + + 28 + 25 * - 40 * 78 AS col0
----
-77974

query I rowsort
SELECT ALL + 53 + - ( 31 ) AS col0
----
22

query II rowsort
SELECT - 8 - - 36 + - 96 * + 20 AS col2, + 54 col0
----
-1892
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8818
SELECT ALL + 62 DIV + + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL + 62 / + + 97 AS col1
----
0

query I rowsort
SELECT ALL + 53 * + 61 * + 40 col0
----
129320

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT + 60 + - - MAX( DISTINCT + 10 ) col2
----
70

skipif mysql # not compatible
query I rowsort label-8820
SELECT + 60 + - - MAX ( DISTINCT + 10 ) col2
----
70

query I rowsort
SELECT ALL - 90 - + 80 + + 91 AS col0
----
-79

query I rowsort
SELECT DISTINCT + 36 * + + ( + 88 )
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT DISTINCT NULLIF ( + + 35, - COUNT( * ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT NULLIF ( + + 35, - COUNT ( * ) ) AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8824
SELECT - COALESCE ( 81, - CASE 99 WHEN SUM( ( - 18 ) ) * + CASE - COUNT( ALL 95 ) WHEN + COUNT( * ) + 59 THEN - - 27 + ( - 73 ) + + 72 + + - 72 + - 29 * 21 - - 86 END THEN - COUNT( * ) ELSE NULL END + - CAST( + 23 AS SIGNED ) * + 77 + + 38 ) + - 90 AS col2
----
-171

skipif mysql # not compatible
query I rowsort label-8824
SELECT - COALESCE ( 81, - CASE 99 WHEN SUM ( ( - 18 ) ) * + CASE - COUNT ( ALL 95 ) WHEN + COUNT ( * ) + 59 THEN - - 27 + ( - 73 ) + + 72 + + - 72 + - 29 * 21 - - 86 END THEN - COUNT ( * ) ELSE NULL END + - CAST ( + 23 AS INTEGER ) * + 77 + + 38 ) + - 90 AS col2
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT + 54 * - COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-8825
SELECT + 54 * - COUNT ( * )
----
-54

query I rowsort
SELECT DISTINCT + 36 * - 17
----
-612

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8827
SELECT ALL COALESCE ( 82, - ( - - ( - 7 ) ) + - 95, + ( - + 63 ) ) DIV - 90 AS col1, COUNT( * ) * 54 AS col1
----
0
54

skipif mysql # not compatible
query II rowsort label-8827
SELECT ALL COALESCE ( 82, - ( - - ( - 7 ) ) + - 95, + ( - + 63 ) ) / - 90 AS col1, COUNT ( * ) * 54 AS col1
----
0
54

query I rowsort
SELECT + - 56 * + ( 31 ) AS col2
----
-1736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8829
SELECT - MIN( CAST( NULL AS SIGNED ) ) + 75 + + ( + CAST( + 82 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8829
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) + 75 + + ( + CAST ( + 82 AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT - 50 * 26 + + COUNT( * ) AS col0
----
-1299

skipif mysql # not compatible
query I rowsort label-8830
SELECT - 50 * 26 + + COUNT ( * ) AS col0
----
-1299

query I rowsort
SELECT + 51 * - - 0 + - 18
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT ALL + MAX( ALL - - 43 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL + MAX ( ALL - - 43 ) AS col1
----
43

query I rowsort
SELECT + COALESCE ( + - 75, - 83 + + ( - 99 ) ) AS col1
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8834
SELECT 4 DIV 22 + 32 + - ( + + 37 ) * + 59
----
-2151

skipif mysql # not compatible
query I rowsort label-8834
SELECT 4 / 22 + 32 + - ( + + 37 ) * + 59
----
-2151

query I rowsort
SELECT ALL + + 74 AS col1
----
74

query I rowsort
SELECT + + 30 + - - 2 + - 81
----
-49

query I rowsort
SELECT DISTINCT 96 * + 78
----
7488

query I rowsort
SELECT ALL - 56 * + 90 + - 88 + - 31 + - 81 * + - 2 - - 64
----
-4933

query I rowsort
SELECT DISTINCT + ( 90 ) * - ( + - 1 ) + - 76 + - 60
----
-46

query I rowsort
SELECT + - ( - + 38 )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-8841
SELECT - COUNT( * ) * 80 + - - ( - 84 ) AS col0, 50 AS col0
----
-164
50

skipif mysql # not compatible
query II rowsort label-8841
SELECT - COUNT ( * ) * 80 + - - ( - 84 ) AS col0, 50 AS col0
----
-164
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8842
SELECT ALL - 77 * ( + COUNT( * ) ) * - COALESCE ( - - 54, COUNT( * ), - + CASE + CAST( + + 30 AS SIGNED ) WHEN + - 10 THEN NULL WHEN + COUNT( * ) * + 54 + AVG ( DISTINCT 96 ) * - 35 DIV - 32 + + COUNT( * ) * 66 * - COUNT( * ) THEN 39 END DIV + 42 + + - 43, - - 66 * + ( - 59 ) ) + COUNT( * ) * 44 AS col2
----
4202

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL - 77 * ( + COUNT ( * ) ) * - COALESCE ( - - 54, COUNT ( * ), - + CASE + CAST ( + + 30 AS INTEGER ) WHEN + - 10 THEN NULL WHEN + COUNT ( * ) * + 54 + AVG ( DISTINCT 96 ) * - 35 / - 32 + + COUNT ( * ) * 66 * - COUNT ( * ) THEN 39 END / + 42 + + - 43, - - 66 * + ( - 59 ) ) + COUNT ( * ) * 44 AS col2
----
4202

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT ( + ( - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8843
SELECT ( + ( - COUNT ( * ) ) )
----
-1

query II rowsort
SELECT + + 78 + 61, + 63 AS col1
----
139
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8845
SELECT - 81 DIV + MIN( ALL - 31 )
----
2

skipif mysql # not compatible
query I rowsort label-8845
SELECT - 81 / + MIN ( ALL - 31 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT ALL + - COUNT( * ) * MIN( + + 13 ) + - 45 - - 65
----
7

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL + - COUNT ( * ) * MIN ( + + 13 ) + - 45 - - 65
----
7

query I rowsort
SELECT + - 3 + 44
----
41

query I rowsort
SELECT - ( + + 44 ) - + 97 AS col1
----
-141

query II rowsort
SELECT ALL - 94 * 42 + + 91 AS col1, - NULLIF ( + 68, 33 ) + + 50 AS col2
----
-3857
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8850
SELECT ALL - 21 + + ( - + CAST( 73 AS SIGNED ) )
----
-94

skipif mysql # not compatible
query I rowsort label-8850
SELECT ALL - 21 + + ( - + CAST ( 73 AS INTEGER ) )
----
-94

query I rowsort
SELECT + 32 * - 78 AS col0
----
-2496

onlyif mysql # DIV for integer division: 
query I rowsort label-8852
SELECT DISTINCT 38 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT 38 / 80
----
0

query I rowsort
SELECT DISTINCT - 12 * 13 AS col1
----
-156

query I rowsort
SELECT DISTINCT 55 + - 98 AS col1
----
-43

query I rowsort
SELECT - 67 * + + 76 AS col1
----
-5092

query I rowsort
SELECT DISTINCT + 67 * - 91 AS col1
----
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT - ( - + COUNT( + - 1 ) ) + 65 col0
----
66

skipif mysql # not compatible
query I rowsort label-8857
SELECT - ( - + COUNT ( + - 1 ) ) + 65 col0
----
66

query I rowsort
SELECT ALL ( - + 31 ) AS col0
----
-31

query I rowsort
SELECT - ( - + 49 ) * - + 43
----
-2107

query I rowsort
SELECT ALL - 59 - - 13 + - + 88 AS col2
----
-134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8861
SELECT DISTINCT + COALESCE ( - 28, 85 * 11 DIV + 57 * - NULLIF ( 48, - - 89 + 40 ) + + 66, + COUNT( DISTINCT + 38 ) + + + ( + - 25 ) DIV + COUNT( - 19 ) - - ( - 45 ) * + - 82 ) * 77 + 14 AS col2
----
-2142

skipif mysql # not compatible
query I rowsort label-8861
SELECT DISTINCT + COALESCE ( - 28, 85 * 11 / + 57 * - NULLIF ( 48, - - 89 + 40 ) + + 66, + COUNT ( DISTINCT + 38 ) + + + ( + - 25 ) / + COUNT ( - 19 ) - - ( - 45 ) * + - 82 ) * 77 + 14 AS col2
----
-2142

query I rowsort
SELECT DISTINCT NULLIF ( - - 5, + + 2 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT - ( - 18 ) * 7 * COUNT( + ( 7 ) ) * 68 AS col1
----
8568

skipif mysql # not compatible
query I rowsort label-8863
SELECT - ( - 18 ) * 7 * COUNT ( + ( 7 ) ) * 68 AS col1
----
8568

query I rowsort
SELECT - 43 + - 80 + + 74 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-8865
SELECT DISTINCT + + COUNT( * ) * + + COUNT( - 53 ) * + ( 50 ) * + SUM( + ( + 34 ) ) AS col0, COUNT( - 71 ) AS col2
----
1700
1

skipif mysql # not compatible
query II rowsort label-8865
SELECT DISTINCT + + COUNT ( * ) * + + COUNT ( - 53 ) * + ( 50 ) * + SUM ( + ( + 34 ) ) AS col0, COUNT ( - 71 ) AS col2
----
1700
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT + - COUNT( * ) * + - 88
----
88

skipif mysql # not compatible
query I rowsort label-8866
SELECT + - COUNT ( * ) * + - 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT ALL - 14 * - COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL - 14 * - COUNT ( * ) AS col1
----
14

query I rowsort
SELECT ALL + 56 * 79
----
4424

query II rowsort
SELECT 74 AS col1, - 6 * + 86 * + - 9 AS col0
----
74
4644

query I rowsort
SELECT DISTINCT + 11 * 81 * - NULLIF ( - 95, + - 10 ) AS col1
----
84645

onlyif mysql # DIV for integer division: 
query I rowsort label-8871
SELECT ALL - + 83 DIV + - 50 + + + 32 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL - + 83 / + - 50 + + + 32 AS col2
----
33

query I rowsort
SELECT ALL + + ( + 69 )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8873
SELECT - COUNT( + 62 ) DIV - SUM( + + 66 ) - COUNT( * ) AS col2, - 71 + + - CASE 79 WHEN + 16 THEN + 22 END * - 65 AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8873
SELECT - COUNT ( + 62 ) / - SUM ( + + 66 ) - COUNT ( * ) AS col2, - 71 + + - CASE 79 WHEN + 16 THEN + 22 END * - 65 AS col0
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8874
SELECT DISTINCT - CAST( NULL AS SIGNED ) / 97 + - 55 AS col2, COUNT( + 94 ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8874
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 97 + - 55 AS col2, COUNT ( + 94 ) AS col2
----
NULL
1

query I rowsort
SELECT ALL + - ( - + 41 ) AS col0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8876
SELECT DISTINCT - MAX( ALL + 3 ) DIV - 67 + + - 23 + - - 53 * - 45 * + 59
----
-140738

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT - MAX ( ALL + 3 ) / - 67 + + - 23 + - - 53 * - 45 * + 59
----
-140738

query I rowsort
SELECT CASE 0 WHEN + 48 THEN NULL ELSE 41 END AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8878
SELECT DISTINCT - COALESCE ( + 82, COALESCE ( 16, + - 20 * + NULLIF ( + + 6, + 25 * MIN( - 87 ) * + 18 * - 9 + - + 59 + - 68 + NULLIF ( 46, - 63 ) + - ( - COUNT( * ) ) * - + 13 - - - 81 - - 26 * + 73 DIV COALESCE ( NULLIF ( 36, + 71 * 37 ), - CAST( MAX( - ( - 68 ) ) AS SIGNED ) * - 14 - - COUNT( * ) * - COUNT( * ) ) DIV 89 + 0 ) + 32, - 21 + - 89 * - NULLIF ( - 24 DIV - CAST( COALESCE ( COUNT( * ), + 42 DIV 59, - 55 + - 23 ) AS SIGNED ) + + 51, - 51 ) ) * - 98, + 1, + 49 * COALESCE ( 79, 87 + - 74 * - MAX( 23 * 53 ), + 82, + SUM( + 72 ) ) + 26 ) + 98
----
16

skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT - COALESCE ( + 82, COALESCE ( 16, + - 20 * + NULLIF ( + + 6, + 25 * MIN ( - 87 ) * + 18 * - 9 + - + 59 + - 68 + NULLIF ( 46, - 63 ) + - ( - COUNT ( * ) ) * - + 13 - - - 81 - - 26 * + 73 / COALESCE ( NULLIF ( 36, + 71 * 37 ), - CAST ( MAX ( - ( - 68 ) ) AS INTEGER ) * - 14 - - COUNT ( * ) * - COUNT ( * ) ) / 89 + 0 ) + 32, - 21 + - 89 * - NULLIF ( - 24 / - CAST ( COALESCE ( COUNT ( * ), + 42 / 59, - 55 + - 23 ) AS INTEGER ) + + 51, - 51 ) ) * - 98, + 1, + 49 * COALESCE ( 79, 87 + - 74 * - MAX ( 23 * 53 ), + 82, + SUM ( + 72 ) ) + 26 ) + 98
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8879
SELECT + 45 AS col0, + CAST( NULL AS SIGNED ) AS col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-8879
SELECT + 45 AS col0, + CAST ( NULL AS INTEGER ) AS col2
----
45
NULL

query I rowsort
SELECT ALL - 26 + 97 AS col2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-8881
SELECT ALL - COUNT( * ) AS col0, 42 + - 29
----
-1
13

skipif mysql # not compatible
query II rowsort label-8881
SELECT ALL - COUNT ( * ) AS col0, 42 + - 29
----
-1
13

query II rowsort
SELECT 69, 57 AS col1
----
69
57

query I rowsort
SELECT ALL 97 * - 25
----
-2425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8884
SELECT ALL 3 + - CASE - + 10 WHEN + - 48 THEN NULL WHEN - COUNT( * ) THEN - - 19 - + ( + + 84 ) ELSE 4 END - + 80 DIV + 81 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL 3 + - CASE - + 10 WHEN + - 48 THEN NULL WHEN - COUNT ( * ) THEN - - 19 - + ( + + 84 ) ELSE 4 END - + 80 / + 81 AS col1
----
-1

query I rowsort
SELECT 67 * 60 * + + 83
----
333660

query I rowsort
SELECT ALL 91 - 89 * + 22
----
-1867

query II rowsort
SELECT - 10 col1, 14
----
-10
14

query II rowsort
SELECT - 11 AS col1, 39
----
-11
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8889
SELECT 57 - - 24 * + + 69 * + - CAST( NULL AS SIGNED ) AS col1, 49
----
NULL
49

skipif mysql # not compatible
query II rowsort label-8889
SELECT 57 - - 24 * + + 69 * + - CAST ( NULL AS INTEGER ) AS col1, 49
----
NULL
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT CASE NULLIF ( - 6, - 81 * - ( - 8 ) ) WHEN + COUNT( * ) THEN NULL WHEN - AVG ( - 60 ) THEN + 2 ELSE + 71 END + + 30 AS col0
----
101

skipif mysql # not compatible
query I rowsort label-8890
SELECT CASE NULLIF ( - 6, - 81 * - ( - 8 ) ) WHEN + COUNT ( * ) THEN NULL WHEN - AVG ( - 60 ) THEN + 2 ELSE + 71 END + + 30 AS col0
----
101

query II rowsort
SELECT - 69, + 10 AS col1
----
-69
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8892
SELECT 76 + + 72 AS col0, CASE WHEN ( - MAX( DISTINCT - - COALESCE ( + 58, 34 ) ) ) BETWEEN + ( 3 ) AND NULL THEN NULL WHEN ( - CAST( + + 48 AS SIGNED ) / + 84 ) <> 90 THEN 85 + + + 96 ELSE - - COUNT( * ) END AS col2
----
148
181

skipif mysql # not compatible
query II rowsort label-8892
SELECT 76 + + 72 AS col0, CASE WHEN ( - MAX ( DISTINCT - - COALESCE ( + 58, 34 ) ) ) BETWEEN + ( 3 ) AND NULL THEN NULL WHEN ( - CAST ( + + 48 AS INTEGER ) / + 84 ) <> 90 THEN 85 + + + 96 ELSE - - COUNT ( * ) END AS col2
----
148
181

query I rowsort
SELECT ALL 37 * - - 95 * + + ( ( - 75 ) )
----
-263625

query I rowsort
SELECT 82 * + 64
----
5248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8895
SELECT CAST( + 40 AS SIGNED ) * 8 AS col1
----
320

skipif mysql # not compatible
query I rowsort label-8895
SELECT CAST ( + 40 AS INTEGER ) * 8 AS col1
----
320

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT SUM( + 60 ) * + 29
----
1740

skipif mysql # not compatible
query I rowsort label-8896
SELECT SUM ( + 60 ) * + 29
----
1740

onlyif mysql # DIV for integer division: 
query I rowsort label-8897
SELECT ALL 83 DIV 88 col2
----
0

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL 83 / 88 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT COUNT( * ) - 20
----
-19

skipif mysql # not compatible
query I rowsort label-8898
SELECT COUNT ( * ) - 20
----
-19

query I rowsort
SELECT ( - + 9 ) * + + 52
----
-468

query I rowsort
SELECT 17 * + 35
----
595

query I rowsort
SELECT DISTINCT 76 * 58
----
4408

onlyif mysql # DIV for integer division: 
query I rowsort label-8902
SELECT - - COALESCE ( + 91, + 10 DIV 76 * + 61 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-8902
SELECT - - COALESCE ( + 91, + 10 / 76 * + 61 ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT ( - ( - CASE + - 10 WHEN + 21 - + 74 * - MAX( DISTINCT + 81 ) THEN NULL WHEN COUNT( * ) * + 59 + - 49 THEN + - 13 END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8903
SELECT ( - ( - CASE + - 10 WHEN + 21 - + 74 * - MAX ( DISTINCT + 81 ) THEN NULL WHEN COUNT ( * ) * + 59 + - 49 THEN + - 13 END ) ) AS col1
----
NULL

query II rowsort
SELECT ALL + 11 AS col2, 75
----
11
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8905
SELECT ALL + - CAST( - + 68 AS SIGNED ) + - + 92
----
-24

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL + - CAST ( - + 68 AS INTEGER ) + - + 92
----
-24

query I rowsort
SELECT ALL 33 * + 47 AS col0
----
1551

query I rowsort
SELECT DISTINCT NULLIF ( + 76, 49 * + AVG ( - 49 ) ) AS col0
----
76

query II rowsort
SELECT ALL - 4, + 2 * + 82 AS col0
----
-4
164

query I rowsort
SELECT DISTINCT - - 0 + + 71 col0
----
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8910
SELECT ( 79 ) / + - COUNT( * ) + - MIN( ALL - 70 ) + + - 19 * + ( - CASE + - 64 WHEN 75 - + SUM( ALL 65 ) THEN NULL ELSE + 37 * 32 END ) + - ( - MAX( ALL - + 94 ) ) * 86 + - CAST( NULL AS DECIMAL ) * - AVG ( 95 ) * - - COALESCE ( 79, 23 * - 24 + + - 68 + 8 * 42 * - 16 + - 70 ) * + 14 + NULLIF ( + 69, COUNT( * ) / - NULLIF ( COALESCE ( + 8, ( NULLIF ( NULLIF ( CASE + 56 WHEN - 95 THEN NULL WHEN - 11 - 79 THEN COUNT( 11 ) * + 73 END, 50 * + 69 ), + 26 - 33 ) ) ), - 82 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8910
SELECT ( 79 ) / + - COUNT ( * ) + - MIN ( ALL - 70 ) + + - 19 * + ( - CASE + - 64 WHEN 75 - + SUM ( ALL 65 ) THEN NULL ELSE + 37 * 32 END ) + - ( - MAX ( ALL - + 94 ) ) * 86 + - CAST ( NULL AS REAL ) * - AVG ( 95 ) * - - COALESCE ( 79, 23 * - 24 + + - 68 + 8 * 42 * - 16 + - 70 ) * + 14 + NULLIF ( + 69, COUNT ( * ) / - NULLIF ( COALESCE ( + 8, ( NULLIF ( NULLIF ( CASE + 56 WHEN - 95 THEN NULL WHEN - 11 - 79 THEN COUNT ( 11 ) * + 73 END, 50 * + 69 ), + 26 - 33 ) ) ), - 82 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 60 + + 71 col0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT DISTINCT - MAX( ALL + 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT - MAX ( ALL + 52 )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-8913
SELECT ALL - + 49 + 42 DIV + + 51 - - 70
----
21

skipif mysql # not compatible
query I rowsort label-8913
SELECT ALL - + 49 + 42 / + + 51 - - 70
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT ALL + + 87 + COUNT( * ) + 55 AS col2
----
143

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL + + 87 + COUNT ( * ) + 55 AS col2
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8915
SELECT ALL - ( 9 ) AS col2, + COUNT( * ) * - CASE CASE + - 72 WHEN 0 THEN - + 86 WHEN + 61 THEN + CAST( NULL AS SIGNED ) END WHEN 53 THEN - - 55 END
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-8915
SELECT ALL - ( 9 ) AS col2, + COUNT ( * ) * - CASE CASE + - 72 WHEN 0 THEN - + 86 WHEN + 61 THEN + CAST ( NULL AS INTEGER ) END WHEN 53 THEN - - 55 END
----
-9
NULL

query I rowsort
SELECT + 53 + + 94
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8917
SELECT 42 * + - 21 + + + 27 * - 22 * + 56 + + - COALESCE ( + + 95, - + CAST( - 89 AS SIGNED ) * CASE - - 39 WHEN 68 + - COUNT( * ) DIV + + 13 + - 84 THEN NULL ELSE CASE - 71 WHEN ( - 86 ) * + CAST( + 27 AS DECIMAL ) * + 18 + - 93 THEN 17 - 18 DIV + 50 ELSE NULL END DIV + ( + 97 ) END DIV 51 + - 69 DIV - 45, - 85 )
----
-34241

skipif mysql # not compatible
query I rowsort label-8917
SELECT 42 * + - 21 + + + 27 * - 22 * + 56 + + - COALESCE ( + + 95, - + CAST ( - 89 AS INTEGER ) * CASE - - 39 WHEN 68 + - COUNT ( * ) / + + 13 + - 84 THEN NULL ELSE CASE - 71 WHEN ( - 86 ) * + CAST ( + 27 AS REAL ) * + 18 + - 93 THEN 17 - 18 / + 50 ELSE NULL END / + ( + 97 ) END / 51 + - 69 / - 45, - 85 )
----
-34241

query I rowsort
SELECT 86 + + 56
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8919
SELECT + CAST( + - COALESCE ( 39, - 53 ) AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-8919
SELECT + CAST ( + - COALESCE ( 39, - 53 ) AS INTEGER )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT - + SUM( - - 93 ) * + 72 + 99 * 35 + 35 AS col0
----
-3196

skipif mysql # not compatible
query I rowsort label-8920
SELECT - + SUM ( - - 93 ) * + 72 + 99 * 35 + 35 AS col0
----
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8921
SELECT ALL - - ( CAST( - - ( - + COUNT( * ) ) AS SIGNED ) ) * 43 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL - - ( CAST ( - - ( - + COUNT ( * ) ) AS INTEGER ) ) * 43 AS col1
----
-43

query I rowsort
SELECT DISTINCT - ( ( + - ( + + 17 ) ) ) AS col2
----
17

query I rowsort
SELECT 42 + + - 79
----
-37

query I rowsort
SELECT 67 + - 62 AS col2
----
5

query I rowsort
SELECT ( 37 ) * + 58 + + - 75 AS col1
----
2071

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ALL - COALESCE ( - - 13, - - ( + - COUNT( * ) ) ) col0
----
-13

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL - COALESCE ( - - 13, - - ( + - COUNT ( * ) ) ) col0
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8927
SELECT ALL - COALESCE ( + - 0, - ( - NULLIF ( 35, - MAX( - 34 ) * - + 3 * - + 97 + + + ( + COUNT( * ) ) ) ) - 88 * + 87 * 51 DIV + - 2, - - 19 * - 23 ), + NULLIF ( - 55, + 17 ) * 8 + - 15 AS col1
----
0
-455

skipif mysql # not compatible
query II rowsort label-8927
SELECT ALL - COALESCE ( + - 0, - ( - NULLIF ( 35, - MAX ( - 34 ) * - + 3 * - + 97 + + + ( + COUNT ( * ) ) ) ) - 88 * + 87 * 51 / + - 2, - - 19 * - 23 ), + NULLIF ( - 55, + 17 ) * 8 + - 15 AS col1
----
0
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT 57 + - + COUNT( * ) + + 69 * 83
----
5783

skipif mysql # not compatible
query I rowsort label-8928
SELECT 57 + - + COUNT ( * ) + + 69 * 83
----
5783

onlyif mysql # DIV for integer division: 
query II rowsort label-8929
SELECT 60 * 38 col0, + 2 + + 79 DIV + 39
----
2280
4

skipif mysql # not compatible
query II rowsort label-8929
SELECT 60 * 38 col0, + 2 + + 79 / + 39
----
2280
4

query I rowsort
SELECT 96 + + - 56 + - 59 + - - 57
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8931
SELECT DISTINCT 61 * + NULLIF ( + ( CAST( - - 78 AS SIGNED ) ), + - 81 * - 91 / CAST( - - 96 AS DECIMAL ) + - 1 + - 6 + COUNT( 42 ) + + - COUNT( * ) - + 25 * + - 22 * ( + 55 ) / - 50 )
----
4758

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT 61 * + NULLIF ( + ( CAST ( - - 78 AS INTEGER ) ), + - 81 * - 91 / CAST ( - - 96 AS REAL ) + - 1 + - 6 + COUNT ( 42 ) + + - COUNT ( * ) - + 25 * + - 22 * ( + 55 ) / - 50 )
----
4758

onlyif mysql # aggregate syntax: 
query II rowsort label-8932
SELECT 86 * 52, SUM( DISTINCT + 92 ) AS col1
----
4472
92

skipif mysql # not compatible
query II rowsort label-8932
SELECT 86 * 52, SUM ( DISTINCT + 92 ) AS col1
----
4472
92

query I rowsort
SELECT ALL - 32 * 60 AS col1
----
-1920

onlyif mysql # aggregate syntax: 
query II rowsort label-8934
SELECT DISTINCT 42 * + 64 AS col2, COUNT( * ) * + 36 * - SUM( 95 ) AS col0
----
2688
-3420

skipif mysql # not compatible
query II rowsort label-8934
SELECT DISTINCT 42 * + 64 AS col2, COUNT ( * ) * + 36 * - SUM ( 95 ) AS col0
----
2688
-3420

query I rowsort
SELECT ALL 60 * - 67
----
-4020

query II rowsort
SELECT 76 * + - 34 AS col2, ( - 66 ) AS col1
----
-2584
-66

query I rowsort
SELECT 11 + - 43 + 22 AS col0
----
-10

query II rowsort
SELECT DISTINCT 95 + - 27 AS col1, + 16
----
68
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8939
SELECT AVG ( - 40 ) * CAST( NULL AS SIGNED ) col0, - 15
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-8939
SELECT AVG ( - 40 ) * CAST ( NULL AS INTEGER ) col0, - 15
----
NULL
-15

query I rowsort
SELECT 39 * 14 AS col1
----
546

query I rowsort
SELECT ALL COALESCE ( 10, - + 28 + 99 + + 77 ) + 76
----
86

query I rowsort
SELECT ALL + 31 + 47 + - - ( 77 ) + + 62 + - 43 AS col0
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8943
SELECT ALL + CASE + - MAX( ALL + 84 ) WHEN 71 / - 68 THEN NULL ELSE - + NULLIF ( CAST( NULL AS SIGNED ), - 73 * - 41 + - COUNT( * ) ) END, 82 * - - 54 * + + 97 * + - 31 + - ( + 38 ) AS col2
----
NULL
-13315034

skipif mysql # not compatible
query II rowsort label-8943
SELECT ALL + CASE + - MAX ( ALL + 84 ) WHEN 71 / - 68 THEN NULL ELSE - + NULLIF ( CAST ( NULL AS INTEGER ), - 73 * - 41 + - COUNT ( * ) ) END, 82 * - - 54 * + + 97 * + - 31 + - ( + 38 ) AS col2
----
NULL
-13315034

query I rowsort
SELECT 39 + - 54
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT ALL + + 99 * + COUNT( - 51 ) + + + 37 + - 47 * - + 64 AS col2
----
3144

skipif mysql # not compatible
query I rowsort label-8945
SELECT ALL + + 99 * + COUNT ( - 51 ) + + + 37 + - 47 * - + 64 AS col2
----
3144

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT - 59 * + SUM( ALL 60 ) - - COUNT( * ) col0
----
-3539

skipif mysql # not compatible
query I rowsort label-8946
SELECT - 59 * + SUM ( ALL 60 ) - - COUNT ( * ) col0
----
-3539

query I rowsort
SELECT ALL - - 80 * - - 0 - + 45 AS col2
----
-45

query I rowsort
SELECT DISTINCT + - 35 AS col1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8949
SELECT ALL - 14 * - CAST( + 45 AS SIGNED ) - + + 87 * + - 20 AS col1
----
2370

skipif mysql # not compatible
query I rowsort label-8949
SELECT ALL - 14 * - CAST ( + 45 AS INTEGER ) - + + 87 * + - 20 AS col1
----
2370

onlyif mysql # aggregate syntax: 
query II rowsort label-8950
SELECT ALL + + MIN( - 41 ), - COALESCE ( + 51, - - 8, + - 83 ) * 47 AS col1
----
-41
-2397

skipif mysql # not compatible
query II rowsort label-8950
SELECT ALL + + MIN ( - 41 ), - COALESCE ( + 51, - - 8, + - 83 ) * 47 AS col1
----
-41
-2397

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8951
SELECT + CASE MIN( ALL 5 ) WHEN + MIN( ALL - 83 ) THEN + 21 WHEN + CAST( NULL AS SIGNED ) + - 57 / - CASE - 96 WHEN - 14 THEN NULL WHEN + MIN( + 2 ) THEN + 28 END * COUNT( * ) + - + 84 THEN NULL WHEN - + 25 + + - CASE + COUNT( * ) WHEN + - 59 THEN - + 4 + - + COUNT( * ) * 51 * + 43 * - CAST( NULL AS SIGNED ) END * 78 THEN 35 * 53 ELSE NULL END / + ( 45 ) + - COUNT( * ) * - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-8951
SELECT + CASE MIN ( ALL 5 ) WHEN + MIN ( ALL - 83 ) THEN + 21 WHEN + CAST ( NULL AS INTEGER ) + - 57 / - CASE - 96 WHEN - 14 THEN NULL WHEN + MIN ( + 2 ) THEN + 28 END * COUNT ( * ) + - + 84 THEN NULL WHEN - + 25 + + - CASE + COUNT ( * ) WHEN + - 59 THEN - + 4 + - + COUNT ( * ) * 51 * + 43 * - CAST ( NULL AS INTEGER ) END * 78 THEN 35 * 53 ELSE NULL END / + ( 45 ) + - COUNT ( * ) * - 76
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8952
SELECT - SUM( ALL - CAST( - 29 AS SIGNED ) ) * + 55 col0
----
-1595

skipif mysql # not compatible
query I rowsort label-8952
SELECT - SUM ( ALL - CAST ( - 29 AS INTEGER ) ) * + 55 col0
----
-1595

query II rowsort
SELECT ALL + 6 AS col0, 65 + + 14
----
6
79

query I rowsort
SELECT + NULLIF ( + 70, 24 / + 27 ) AS col2
----
70

query I rowsort
SELECT DISTINCT - 17 * + 57
----
-969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8956
SELECT ALL 95 * CAST( NULL AS SIGNED ) - - + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL 95 * CAST ( NULL AS INTEGER ) - - + 54 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 90 * + - 17
----
-1530

query I rowsort
SELECT DISTINCT - 45 * 39 AS col2
----
-1755

query I rowsort
SELECT DISTINCT + 91 * 41 AS col2
----
3731

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT ALL NULLIF ( MIN( + - 98 ), - + AVG ( 99 ) ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL NULLIF ( MIN ( + - 98 ), - + AVG ( 99 ) ) AS col1
----
-98

query I rowsort
SELECT - 72 * + 80 AS col2
----
-5760

query I rowsort
SELECT - 42 + - 79
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8963
SELECT + 48 * 84 * + + CASE + 72 WHEN - + COUNT( * ) THEN + 6 + CAST( NULL AS SIGNED ) * - - 53 WHEN 49 + ( + 51 ) THEN NULL ELSE NULL END * + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8963
SELECT + 48 * 84 * + + CASE + 72 WHEN - + COUNT ( * ) THEN + 6 + CAST ( NULL AS INTEGER ) * - - 53 WHEN 49 + ( + 51 ) THEN NULL ELSE NULL END * + 61 AS col1
----
NULL

query I rowsort
SELECT - 36 + + 33 AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8965
SELECT ALL 89 AS col2, 88 + - + 93 + ( + CAST( NULL AS SIGNED ) ) AS col1
----
89
NULL

skipif mysql # not compatible
query II rowsort label-8965
SELECT ALL 89 AS col2, 88 + - + 93 + ( + CAST ( NULL AS INTEGER ) ) AS col1
----
89
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8966
SELECT ALL COUNT( * ) + - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + COUNT( * ), 80 AS col0
----
NULL
80

skipif mysql # not compatible
query II rowsort label-8966
SELECT ALL COUNT ( * ) + - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + COUNT ( * ), 80 AS col0
----
NULL
80

onlyif mysql # DIV for integer division: 
query I rowsort label-8967
SELECT - + 63 + - 66 + 1 DIV - - 26
----
-129

skipif mysql # not compatible
query I rowsort label-8967
SELECT - + 63 + - 66 + 1 / - - 26
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT ALL - + 91 + - COUNT( - 11 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL - + 91 + - COUNT ( - 11 ) AS col2
----
-92

query I rowsort
SELECT - - 88 + - + COALESCE ( 9, - ( - + ( - 19 ) ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT ALL + 2 + + 2 + + - 9 + + 11 * - 79 * COUNT( * ) * 27 + - + 25 + COUNT( * )
----
-23492

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL + 2 + + 2 + + - 9 + + 11 * - 79 * COUNT ( * ) * 27 + - + 25 + COUNT ( * )
----
-23492

query I rowsort
SELECT ALL + 91 * - 87 AS col2
----
-7917

query I rowsort
SELECT - - 27 + + - 22 AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8973
SELECT + 95 + + + MAX( ALL - + 94 ) AS col2, + 39 / CAST( NULL AS SIGNED ) * - 65 * + + NULLIF ( MAX( DISTINCT ( 11 ) ), - + ( + 91 ) + - + ( - 27 ) + 20 * + MIN( - 9 ) )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8973
SELECT + 95 + + + MAX ( ALL - + 94 ) AS col2, + 39 / CAST ( NULL AS INTEGER ) * - 65 * + + NULLIF ( MAX ( DISTINCT ( 11 ) ), - + ( + 91 ) + - + ( - 27 ) + 20 * + MIN ( - 9 ) )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT ALL 79 - - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL 79 - - COUNT ( * )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8975
SELECT - 48 * + CAST( NULL AS SIGNED ) * 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8975
SELECT - 48 * + CAST ( NULL AS INTEGER ) * 10 AS col1
----
NULL

query I rowsort
SELECT + 18 * 90
----
1620

query I rowsort
SELECT + 62 + - - 68 - + 78 - + 3
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-8978
SELECT DISTINCT 6 DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT 6 / - 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT + 75 + - 8 + - 39 + 98 * - - SUM( + 57 ) AS col2
----
5614

skipif mysql # not compatible
query I rowsort label-8979
SELECT + 75 + - 8 + - 39 + 98 * - - SUM ( + 57 ) AS col2
----
5614

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT ALL + MAX( ALL + 0 ) - + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL + MAX ( ALL + 0 ) - + - COUNT ( * )
----
1

query I rowsort
SELECT + + ( - + 46 ) * + 64
----
-2944

query I rowsort
SELECT DISTINCT COALESCE ( 92, + + 94, - - 64 ) * - + 3
----
-276

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8983
SELECT ALL - 24 DIV + COUNT( * ) - + + 26, - 32 AS col0
----
-50
-32

skipif mysql # not compatible
query II rowsort label-8983
SELECT ALL - 24 / + COUNT ( * ) - + + 26, - 32 AS col0
----
-50
-32

query II rowsort
SELECT ALL + - 68 AS col0, - 48
----
-68
-48

query I rowsort
SELECT CASE + 98 WHEN - 60 THEN + 6 / + ( + 0 ) + - + 49 * - 23 * 91 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 81 * - 97
----
-7857

query I rowsort
SELECT DISTINCT 90 * + + 28 * 29 * - 77
----
-5627160

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT ( ( + COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8988
SELECT ( ( + COUNT ( * ) ) ) AS col2
----
1

query I rowsort
SELECT ALL 68 * 74 AS col1
----
5032

query I rowsort
SELECT + ( + - 7 )
----
-7

query I rowsort
SELECT + 72 * + 18 + 24 AS col1
----
1320

query I rowsort
SELECT ALL 32 * + 71 * - 69 AS col0
----
-156768

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT + 2 + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-8993
SELECT + 2 + COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8994
SELECT ALL + SUM( DISTINCT + + 60 ) AS col1, + 47 AS col2
----
60
47

skipif mysql # not compatible
query II rowsort label-8994
SELECT ALL + SUM ( DISTINCT + + 60 ) AS col1, + 47 AS col2
----
60
47

query I rowsort
SELECT - ( - 0 ) * - 22 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT ALL 3 * + ( - - 47 ) * - - 49 + + + 95 + + COUNT( * ) + COUNT( + 31 ) * - + COALESCE ( - 45, + 27 ) AS col0
----
7050

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL 3 * + ( - - 47 ) * - - 49 + + + 95 + + COUNT ( * ) + COUNT ( + 31 ) * - + COALESCE ( - 45, + 27 ) AS col0
----
7050

query I rowsort
SELECT NULLIF ( - + 60, + + 26 ) col1
----
-60

query I rowsort
SELECT 68 * 59 + - + ( + + COALESCE ( + 40, - + 38 ) )
----
3972

query I rowsort
SELECT ALL 46 * - 31 + 39 AS col1
----
-1387

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9000
SELECT + ( + ( - ( ( - 10 ) ) ) ) DIV - 45 * + 7 * - 66 + 65 * + - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-9000
SELECT + ( + ( - ( ( - 10 ) ) ) ) / - 45 * + 7 * - 66 + 65 * + - COUNT ( * )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT ALL + COUNT( * ) * - 6 + - 36 + + 70 + + - 68 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL + COUNT ( * ) * - 6 + - 36 + + 70 + + - 68 AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9002
SELECT + ( - NULLIF ( - + 67, - CAST( NULL AS SIGNED ) / + 85 * - + 75 + + 66 + + COUNT( * ) - 5 ) ) * - 7 * - 96
----
45024

skipif mysql # not compatible
query I rowsort label-9002
SELECT + ( - NULLIF ( - + 67, - CAST ( NULL AS INTEGER ) / + 85 * - + 75 + + 66 + + COUNT ( * ) - 5 ) ) * - 7 * - 96
----
45024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9003
SELECT COALESCE ( + + 67, - CAST( NULL AS SIGNED ) DIV - - COUNT( * ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-9003
SELECT COALESCE ( + + 67, - CAST ( NULL AS INTEGER ) / - - COUNT ( * ) ) AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9004
SELECT DISTINCT + CASE - + 14 WHEN - 27 / CAST( NULL AS DECIMAL ) * - - 82 THEN - COUNT( * ) WHEN - + ( - COUNT( * ) ) THEN NULL END * + - 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9004
SELECT DISTINCT + CASE - + 14 WHEN - 27 / CAST ( NULL AS REAL ) * - - 82 THEN - COUNT ( * ) WHEN - + ( - COUNT ( * ) ) THEN NULL END * + - 87 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9005
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 56 * - 89 + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9005
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 56 * - 89 + 75 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9006
SELECT - 12 DIV + 5
----
-2

skipif mysql # not compatible
query I rowsort label-9006
SELECT - 12 / + 5
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9007
SELECT ALL 90 * - ( - 18 ) * - + 16 + + 88 + + COALESCE ( + + 71, + COUNT( * ) DIV CAST( + 66 AS SIGNED ), + 59 )
----
-25761

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL 90 * - ( - 18 ) * - + 16 + + 88 + + COALESCE ( + + 71, + COUNT ( * ) / CAST ( + 66 AS INTEGER ), + 59 )
----
-25761

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9008
SELECT DISTINCT - 78 * - COALESCE ( + 52, + 49 + + COUNT( * ) - + + 79 DIV COUNT( * ) * + - 23 - + CAST( NULL AS SIGNED ) + - MAX( - 83 ) * + 34 - 91 ) + - 57 + + 92
----
4091

skipif mysql # not compatible
query I rowsort label-9008
SELECT DISTINCT - 78 * - COALESCE ( + 52, + 49 + + COUNT ( * ) - + + 79 / COUNT ( * ) * + - 23 - + CAST ( NULL AS INTEGER ) + - MAX ( - 83 ) * + 34 - 91 ) + - 57 + + 92
----
4091

query I rowsort
SELECT - 66 * + 24 AS col2
----
-1584

onlyif mysql # aggregate syntax: 
query II rowsort label-9010
SELECT ALL + 45 - - + 34 + 18 + - - 71 + - 18 * + COUNT( * ) * + 44 AS col0, - COUNT( * )
----
-624
-1

skipif mysql # not compatible
query II rowsort label-9010
SELECT ALL + 45 - - + 34 + 18 + - - 71 + - 18 * + COUNT ( * ) * + 44 AS col0, - COUNT ( * )
----
-624
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT SUM( + + 41 ) col1
----
41

skipif mysql # not compatible
query I rowsort label-9011
SELECT SUM ( + + 41 ) col1
----
41

query I rowsort
SELECT 71 * - 44 * 46 - - 12 AS col2
----
-143692

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT ALL + CASE 76 WHEN + 68 * - 91 * 18 * - 73 - - - 32 THEN + + 6 * - 87 WHEN - 76 + - - 79 * - 8 - + - COUNT( * ) - COUNT( * ) + - + 80 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL + CASE 76 WHEN + 68 * - 91 * 18 * - 73 - - - 32 THEN + + 6 * - 87 WHEN - 76 + - - 79 * - 8 - + - COUNT ( * ) - COUNT ( * ) + - + 80 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT CASE + 34 WHEN + 63 THEN + COUNT( * ) * + 55 * - ( - - COUNT( * ) ) WHEN + 93 THEN - ( + 29 ) WHEN - - 79 + - 92 THEN NULL WHEN + - 29 THEN NULL ELSE + COALESCE ( + - COUNT( * ), + 69 + 84 ) END
----
-1

skipif mysql # not compatible
query I rowsort label-9014
SELECT CASE + 34 WHEN + 63 THEN + COUNT ( * ) * + 55 * - ( - - COUNT ( * ) ) WHEN + 93 THEN - ( + 29 ) WHEN - - 79 + - 92 THEN NULL WHEN + - 29 THEN NULL ELSE + COALESCE ( + - COUNT ( * ), + 69 + 84 ) END
----
-1

query I rowsort
SELECT ALL - + 84 - 7
----
-91

query I rowsort
SELECT ALL 13 - - - CASE + + 93 WHEN + 24 * + + 20 * - 35 THEN - + 65 WHEN + 73 / 32 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT - ( - + 8 ) * + COUNT( * ) * + ( - 35 ) AS col1
----
-280

skipif mysql # not compatible
query I rowsort label-9017
SELECT - ( - + 8 ) * + COUNT ( * ) * + ( - 35 ) AS col1
----
-280

query I rowsort
SELECT DISTINCT + ( + - 76 ) * 10 AS col0
----
-760

query I rowsort
SELECT + ( 55 ) * ( + - 65 ) * - - 2
----
-7150

query II rowsort
SELECT DISTINCT - 28 AS col1, - 39 + - - 29 * - + 3 * + 69 col0
----
-28
-6042

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9021
SELECT + 68 DIV + 72 - + MIN( ALL + 50 ) + + + 30, + 19 AS col2
----
-20
19

skipif mysql # not compatible
query II rowsort label-9021
SELECT + 68 / + 72 - + MIN ( ALL + 50 ) + + + 30, + 19 AS col2
----
-20
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9022
SELECT ALL - 41, NULLIF ( + - 27, + 66 * - CAST( NULL AS SIGNED ) * + - 78 * 62 - 22 ) * - MAX( 69 ) + - 21 AS col1
----
-41
1842

skipif mysql # not compatible
query II rowsort label-9022
SELECT ALL - 41, NULLIF ( + - 27, + 66 * - CAST ( NULL AS INTEGER ) * + - 78 * 62 - 22 ) * - MAX ( 69 ) + - 21 AS col1
----
-41
1842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9023
SELECT CASE + 64 WHEN - 7 / 8 * + - 66 - - CASE - COUNT( * ) WHEN - - 9 THEN NULL ELSE - 79 * + - COUNT( * ) * + 0 / - - ( - NULLIF ( - 45, - 30 ) ) END * + - COUNT( * ) THEN - 24 * + + MAX( DISTINCT 0 ) END * 90 + COUNT( - 47 ) + - CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9023
SELECT CASE + 64 WHEN - 7 / 8 * + - 66 - - CASE - COUNT ( * ) WHEN - - 9 THEN NULL ELSE - 79 * + - COUNT ( * ) * + 0 / - - ( - NULLIF ( - 45, - 30 ) ) END * + - COUNT ( * ) THEN - 24 * + + MAX ( DISTINCT 0 ) END * 90 + COUNT ( - 47 ) + - CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 73 * - 64 AS col1
----
-4672

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9025
SELECT 71, CAST( NULL AS SIGNED ) AS col0
----
71
NULL

skipif mysql # not compatible
query II rowsort label-9025
SELECT 71, CAST ( NULL AS INTEGER ) AS col0
----
71
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9026
SELECT ALL 85 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL 85 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9027
SELECT 66 * - + CASE - 31 WHEN COUNT( DISTINCT + 88 ) THEN - - 81 WHEN - 17 + - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) THEN NULL ELSE + CASE + 20 WHEN - 32 THEN - 87 * - 28 + NULLIF ( + COUNT( * ), - 19 ) END END * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9027
SELECT 66 * - + CASE - 31 WHEN COUNT ( DISTINCT + 88 ) THEN - - 81 WHEN - 17 + - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) THEN NULL ELSE + CASE + 20 WHEN - 32 THEN - 87 * - 28 + NULLIF ( + COUNT ( * ), - 19 ) END END * + 2
----
NULL

query I rowsort
SELECT ALL 37 * - 6
----
-222

onlyif mysql # DIV for integer division: 
query I rowsort label-9029
SELECT 21 DIV 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9029
SELECT 21 / 96 AS col2
----
0

query I rowsort
SELECT 92 - + - 0 - - 42
----
134

query II rowsort
SELECT 65 AS col1, 97 * - ( + - 26 )
----
65
2522

query I rowsort
SELECT ALL COALESCE ( 34, 19 ) + + - 33
----
1

query I rowsort
SELECT ALL 42 + 67 + - 47 * - 26 + + 95 + + 29 AS col2
----
1455

query I rowsort
SELECT DISTINCT ( 10 ) + 24 * - ( + 4 )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9035
SELECT ALL 24 + COALESCE ( + MIN( DISTINCT + - 62 ), + 67 * - + 46, + - 68 ) + + ( + + 80 ) + + - COALESCE ( - 48, CASE + - CAST( NULL AS SIGNED ) WHEN - 48 - + 79 THEN - 60 ELSE NULL END, - 89 ) + - - COUNT( * ) * - 29
----
61

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL 24 + COALESCE ( + MIN ( DISTINCT + - 62 ), + 67 * - + 46, + - 68 ) + + ( + + 80 ) + + - COALESCE ( - 48, CASE + - CAST ( NULL AS INTEGER ) WHEN - 48 - + 79 THEN - 60 ELSE NULL END, - 89 ) + - - COUNT ( * ) * - 29
----
61

query I rowsort
SELECT ALL + 38 + 45 AS col0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9037
SELECT DISTINCT - CASE + - 52 WHEN - 89 + + - CAST( - - AVG ( 77 ) AS SIGNED ) THEN - 62 + - 5 * 76 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT - CASE + - 52 WHEN - 89 + + - CAST ( - - AVG ( 77 ) AS INTEGER ) THEN - 62 + - 5 * 76 END AS col1
----
NULL

query I rowsort
SELECT - 81 + + 79 col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9039
SELECT - CAST( NULL AS SIGNED ) * ( - COUNT( * ) ) + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-9039
SELECT - CAST ( NULL AS INTEGER ) * ( - COUNT ( * ) ) + - 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT ALL + 74 - - 22 + + COUNT( * ) - 84 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL + 74 - - 22 + + COUNT ( * ) - 84 AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9041
SELECT CAST( NULL AS SIGNED ) * ( - COUNT( * ) ) + - - 7 + + + ( - - 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9041
SELECT CAST ( NULL AS INTEGER ) * ( - COUNT ( * ) ) + - - 7 + + + ( - - 67 )
----
NULL

query I rowsort
SELECT 63 + - 73
----
-10

query I rowsort
SELECT ALL - + 49 * - 97
----
4753

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9044
SELECT + COUNT( * ) + SUM( 14 ) + + CAST( + NULLIF ( 49, - COUNT( * ) ) AS SIGNED ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-9044
SELECT + COUNT ( * ) + SUM ( 14 ) + + CAST ( + NULLIF ( 49, - COUNT ( * ) ) AS INTEGER ) AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9045
SELECT ALL CAST( NULL AS SIGNED ) - - 82 + 85 + + 81 / - 68, - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-9045
SELECT ALL CAST ( NULL AS INTEGER ) - - 82 + 85 + + 81 / - 68, - COUNT ( * ) AS col0
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT 86 + - 85 + - COUNT( 97 ) + - 18 + - 53 * - + NULLIF ( - 42, AVG ( - COALESCE ( - - 14, 59 * + 87 * + + 48 ) ) )
----
-2244

skipif mysql # not compatible
query I rowsort label-9046
SELECT 86 + - 85 + - COUNT ( 97 ) + - 18 + - 53 * - + NULLIF ( - 42, AVG ( - COALESCE ( - - 14, 59 * + 87 * + + 48 ) ) )
----
-2244

query I rowsort
SELECT DISTINCT + 81 * - - ( + - 78 ) * - 8 AS col0
----
50544

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT DISTINCT SUM( - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-9048
SELECT DISTINCT SUM ( - 72 )
----
-72

query II rowsort
SELECT ALL + 19 AS col0, 52 AS col0
----
19
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9050
SELECT 62 DIV + ( - + 89 )
----
0

skipif mysql # not compatible
query I rowsort label-9050
SELECT 62 / + ( - + 89 )
----
0

query I rowsort
SELECT ALL + 89 * + 11
----
979

query I rowsort
SELECT - + 39 AS col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9053
SELECT CASE - COUNT( * ) WHEN - 5 THEN + + AVG ( - 86 ) ELSE + COUNT( * ) + 23 + - 46 END DIV - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-9053
SELECT CASE - COUNT ( * ) WHEN - 5 THEN + + AVG ( - 86 ) ELSE + COUNT ( * ) + 23 + - 46 END / - COUNT ( * )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9054
SELECT DISTINCT - + NULLIF ( 83, - + CASE 78 WHEN + + CAST( NULL AS SIGNED ) * - 69 THEN NULL WHEN 72 THEN - SUM( ALL 20 ) * - 45 * - 13 + + COUNT( * ) ELSE NULL END + + - 88 ) DIV 7
----
-11

skipif mysql # not compatible
query I rowsort label-9054
SELECT DISTINCT - + NULLIF ( 83, - + CASE 78 WHEN + + CAST ( NULL AS INTEGER ) * - 69 THEN NULL WHEN 72 THEN - SUM ( ALL 20 ) * - 45 * - 13 + + COUNT ( * ) ELSE NULL END + + - 88 ) / 7
----
-11

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9055
SELECT ALL - CAST( NULL AS DECIMAL ) + 13 + + ( - AVG ( DISTINCT - 48 ) ) AS col2, - 95 * - + 14
----
NULL
1330

skipif mysql # not compatible
query II rowsort label-9055
SELECT ALL - CAST ( NULL AS REAL ) + 13 + + ( - AVG ( DISTINCT - 48 ) ) AS col2, - 95 * - + 14
----
NULL
1330

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT COUNT( * ) + - 69
----
-68

skipif mysql # not compatible
query I rowsort label-9056
SELECT COUNT ( * ) + - 69
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT DISTINCT + COUNT( ALL - 15 ) + + 0 * + ( - - COUNT( * ) ) * - 72 + - 97
----
-96

skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT + COUNT ( ALL - 15 ) + + 0 * + ( - - COUNT ( * ) ) * - 72 + - 97
----
-96

query I rowsort
SELECT 80 + + ( 83 ) + - 54 * + 15
----
-647

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9059
SELECT AVG ( - + 41 ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9059
SELECT AVG ( - + 41 ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT ALL 52 * - COUNT( * ) + + 42
----
-10

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL 52 * - COUNT ( * ) + + 42
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9061
SELECT ALL + 65 * + CAST( NULL AS SIGNED ) / + 47 + - 20 * - - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL + 65 * + CAST ( NULL AS INTEGER ) / + 47 + - 20 * - - 98 AS col1
----
NULL

query II rowsort
SELECT + 49 col1, + 44
----
49
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT 66 + + COUNT( DISTINCT - - 4 )
----
67

skipif mysql # not compatible
query I rowsort label-9063
SELECT 66 + + COUNT ( DISTINCT - - 4 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT DISTINCT 95 * COALESCE ( + ( + 10 ), + 90 * COALESCE ( + COUNT( * ), + 47, 16 ) ) + - + COUNT( * )
----
949

skipif mysql # not compatible
query I rowsort label-9064
SELECT DISTINCT 95 * COALESCE ( + ( + 10 ), + 90 * COALESCE ( + COUNT ( * ), + 47, 16 ) ) + - + COUNT ( * )
----
949

onlyif mysql # aggregate syntax: 
query II rowsort label-9065
SELECT 11 * - + COUNT( * ) AS col1, - 8
----
-11
-8

skipif mysql # not compatible
query II rowsort label-9065
SELECT 11 * - + COUNT ( * ) AS col1, - 8
----
-11
-8

query II rowsort
SELECT - 57 * - 87 + - 92 - 69, 1 AS col2
----
4798
1

query II rowsort
SELECT ALL - CASE + + 74 WHEN - 16 * - - 73 + + 86 + - 93 + - ( - - ( - 2 ) ) + + + 46 THEN - 86 + - 62 * + + 96 ELSE + 94 + + ( + + 90 ) END, - 67 AS col0
----
-184
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9068
SELECT + COUNT( * ) * COUNT( * ) + + 38 DIV 3 col0
----
13

skipif mysql # not compatible
query I rowsort label-9068
SELECT + COUNT ( * ) * COUNT ( * ) + + 38 / 3 col0
----
13

query II rowsort
SELECT + 15 AS col2, - 42 - + + 92 AS col0
----
15
-134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9070
SELECT 5 DIV - COUNT( * ) + 64
----
59

skipif mysql # not compatible
query I rowsort label-9070
SELECT 5 / - COUNT ( * ) + 64
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9071
SELECT ALL COUNT( * ) * + 42 * 29 + - - COUNT( * ) AS col1, - 1 - 85 + + 31 DIV 59 * ( - 59 ) * - 77 AS col0
----
1219
-86

skipif mysql # not compatible
query II rowsort label-9071
SELECT ALL COUNT ( * ) * + 42 * 29 + - - COUNT ( * ) AS col1, - 1 - 85 + + 31 / 59 * ( - 59 ) * - 77 AS col0
----
1219
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT ALL - NULLIF ( + - 26, + CASE + + COALESCE ( + + COUNT( * ), 65 * 0 ) WHEN + - 41 * - 83 * - 34 + - 0 + + - 4 + - ( + 98 ) * - 49 THEN 78 ELSE NULL END )
----
26

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL - NULLIF ( + - 26, + CASE + + COALESCE ( + + COUNT ( * ), 65 * 0 ) WHEN + - 41 * - 83 * - 34 + - 0 + + - 4 + - ( + 98 ) * - 49 THEN 78 ELSE NULL END )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9073
SELECT ALL 83 / - CASE CAST( NULL AS SIGNED ) WHEN 43 THEN 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL 83 / - CASE CAST ( NULL AS INTEGER ) WHEN 43 THEN 95 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT MAX( + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-9074
SELECT MAX ( + 37 )
----
37

query I rowsort
SELECT 27 + - 61
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-9076
SELECT COUNT( * ) AS col1, 67 - 75
----
1
-8

skipif mysql # not compatible
query II rowsort label-9076
SELECT COUNT ( * ) AS col1, 67 - 75
----
1
-8

query I rowsort
SELECT ALL ( 37 ) - + 27 AS col0
----
10

onlyif mysql # DIV for integer division: 
query II rowsort label-9078
SELECT - 88 DIV + + 71 AS col1, 92 + + 63 * - + 29 AS col0
----
-1
-1735

skipif mysql # not compatible
query II rowsort label-9078
SELECT - 88 / + + 71 AS col1, 92 + + 63 * - + 29 AS col0
----
-1
-1735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9079
SELECT + NULLIF ( 13, - 72 + CASE + - 61 WHEN CAST( + 79 AS SIGNED ) THEN NULL ELSE + 83 END ) * + 85 AS col2, - 61 + - + 36 + 43 + 12 * ( + + 55 ) * SUM( - 92 ) * MAX( ALL 31 )
----
1105
-1882374

skipif mysql # not compatible
query II rowsort label-9079
SELECT + NULLIF ( 13, - 72 + CASE + - 61 WHEN CAST ( + 79 AS INTEGER ) THEN NULL ELSE + 83 END ) * + 85 AS col2, - 61 + - + 36 + 43 + 12 * ( + + 55 ) * SUM ( - 92 ) * MAX ( ALL 31 )
----
1105
-1882374

query I rowsort
SELECT + 71 * 64
----
4544

query I rowsort
SELECT DISTINCT 40 * + 5 + + 91
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT DISTINCT - MIN( + - 45 ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT - MIN ( + - 45 ) * - 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9083
SELECT ALL - 63 - + 24 DIV + 27 * - COUNT( * ) + 56 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL - 63 - + 24 / + 27 * - COUNT ( * ) + 56 AS col2
----
-7

query I rowsort
SELECT DISTINCT - 52 * + 47 - + 66 AS col0
----
-2510

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9085
SELECT + 75, + CAST( NULL AS DECIMAL ) AS col0, CAST( + + 53 AS SIGNED ) col1
----
75
NULL
53

skipif mysql # not compatible
query III rowsort label-9085
SELECT + 75, + CAST ( NULL AS REAL ) AS col0, CAST ( + + 53 AS INTEGER ) col1
----
75
NULL
53

onlyif mysql # aggregate syntax: 
query II rowsort label-9086
SELECT - - 77 AS col2, - 56 * + ( + COUNT( * ) ) AS col1
----
77
-56

skipif mysql # not compatible
query II rowsort label-9086
SELECT - - 77 AS col2, - 56 * + ( + COUNT ( * ) ) AS col1
----
77
-56

query I rowsort
SELECT DISTINCT ( - 16 )
----
-16

query I rowsort
SELECT DISTINCT 57 + - 43
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT + 31 - + ( COUNT( * ) ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-9089
SELECT + 31 - + ( COUNT ( * ) ) AS col0
----
30

query I rowsort
SELECT ALL - - 4 * - - 44 AS col2
----
176

query I rowsort
SELECT ALL + + ( - + 24 ) + + - 40
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9092
SELECT DISTINCT 18 DIV 83 + 46 + - 48 - - - 76 + COUNT( * ) * - CAST( COUNT( * ) AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT 18 / 83 + 46 + - 48 - - - 76 + COUNT ( * ) * - CAST ( COUNT ( * ) AS INTEGER )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9093
SELECT + 58 * - 21 + + - COALESCE ( + - 70, - CAST( NULL AS SIGNED ), COALESCE ( + 56, - 34 * + 35 DIV + 62 * - - ( + COUNT( * ) ) + + 31 ) )
----
-1148

skipif mysql # not compatible
query I rowsort label-9093
SELECT + 58 * - 21 + + - COALESCE ( + - 70, - CAST ( NULL AS INTEGER ), COALESCE ( + 56, - 34 * + 35 / + 62 * - - ( + COUNT ( * ) ) + + 31 ) )
----
-1148

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT DISTINCT CASE + COALESCE ( - 14, COUNT( DISTINCT - + 33 ), + 98 ) WHEN + 44 * + - 53 * - 97 THEN - - 9 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT CASE + COALESCE ( - 14, COUNT ( DISTINCT - + 33 ), + 98 ) WHEN + 44 * + - 53 * - 97 THEN - - 9 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 68 + + 83 AS col1
----
151

onlyif mysql # aggregate syntax: 
query II rowsort label-9096
SELECT - 56 * + 92 AS col1, SUM( - - 22 ) * - - 21 + 85 * + - 27 + - 6 + 31 + 97 + + - COALESCE ( 34, + - 57 * - + NULLIF ( + 69, 66 + - 69 ) ) + - 35
----
-5152
-1780

skipif mysql # not compatible
query II rowsort label-9096
SELECT - 56 * + 92 AS col1, SUM ( - - 22 ) * - - 21 + 85 * + - 27 + - 6 + 31 + 97 + + - COALESCE ( 34, + - 57 * - + NULLIF ( + 69, 66 + - 69 ) ) + - 35
----
-5152
-1780

query II rowsort
SELECT - ( - 38 ), - 0 AS col2
----
38
0

query I rowsort
SELECT - 73 + - ( + COALESCE ( 53, - 41, - 13 ) ) AS col2
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT DISTINCT + COUNT( + 92 )
----
1

skipif mysql # not compatible
query I rowsort label-9099
SELECT DISTINCT + COUNT ( + 92 )
----
1

query I rowsort
SELECT - COALESCE ( - - 77, 57 * - 76 ) * - + 54
----
4158

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9101
SELECT ALL + 10 DIV 69 AS col1, MIN( 96 ) + 75 + - 3 + + 3 + + 88
----
0
259

skipif mysql # not compatible
query II rowsort label-9101
SELECT ALL + 10 / 69 AS col1, MIN ( 96 ) + 75 + - 3 + + 3 + + 88
----
0
259

query I rowsort
SELECT DISTINCT + 45 * - + ( - 76 ) + ( - 19 )
----
3401

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) - 12 + COUNT( * ) col2
----
-12

skipif mysql # not compatible
query I rowsort label-9103
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) - 12 + COUNT ( * ) col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9104
SELECT ALL + CASE - 85 WHEN CASE + 38 WHEN NULLIF ( - - COUNT( * ), + - COUNT( * ) ) THEN NULL WHEN + CAST( NULL AS SIGNED ) / - 2 + + SUM( ALL + 69 ) THEN 5 + - - 52 - - COUNT( * ) ELSE 95 - 18 * - 94 + + ( 13 ) END THEN 79 ELSE + + CAST( NULL AS SIGNED ) * 47 / + 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL + CASE - 85 WHEN CASE + 38 WHEN NULLIF ( - - COUNT ( * ), + - COUNT ( * ) ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) / - 2 + + SUM ( ALL + 69 ) THEN 5 + - - 52 - - COUNT ( * ) ELSE 95 - 18 * - 94 + + ( 13 ) END THEN 79 ELSE + + CAST ( NULL AS INTEGER ) * 47 / + 58 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT DISTINCT + 68 * - 25 * - ( MAX( + 56 ) ) - - MIN( 35 )
----
95235

skipif mysql # not compatible
query I rowsort label-9105
SELECT DISTINCT + 68 * - 25 * - ( MAX ( + 56 ) ) - - MIN ( 35 )
----
95235

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT - 66 * + - NULLIF ( 35, - COUNT( * ) ) AS col2
----
2310

skipif mysql # not compatible
query I rowsort label-9106
SELECT - 66 * + - NULLIF ( 35, - COUNT ( * ) ) AS col2
----
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT DISTINCT + 35 * + 0 - - 35 + + NULLIF ( + - 6, 56 / - + COUNT( * ) ) * + 26 * - 22 AS col2
----
3467

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT + 35 * + 0 - - 35 + + NULLIF ( + - 6, 56 / - + COUNT ( * ) ) * + 26 * - 22 AS col2
----
3467

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9108
SELECT - 40 * + CAST( - 39 AS SIGNED ) - - 5
----
1565

skipif mysql # not compatible
query I rowsort label-9108
SELECT - 40 * + CAST ( - 39 AS INTEGER ) - - 5
----
1565

query I rowsort
SELECT - 30 * - + 27 * 1
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT + COALESCE ( - 48, + - MIN( DISTINCT + - 76 ) ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-9110
SELECT + COALESCE ( - 48, + - MIN ( DISTINCT + - 76 ) ) col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9111
SELECT ALL + MIN( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9111
SELECT ALL + MIN ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT - 85 - COUNT( * ) + - 46
----
-132

skipif mysql # not compatible
query I rowsort label-9112
SELECT - 85 - COUNT ( * ) + - 46
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9113
SELECT + + COUNT( * ) * 55 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9113
SELECT + + COUNT ( * ) * 55 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - 78 AS col2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-9115
SELECT ALL + 92 DIV - + 5 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL + 92 / - + 5 AS col2
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9116
SELECT - + 86 DIV COUNT( * ) AS col1, 23 AS col0
----
-86
23

skipif mysql # not compatible
query II rowsort label-9116
SELECT - + 86 / COUNT ( * ) AS col1, 23 AS col0
----
-86
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9117
SELECT + CASE - 40 WHEN + 44 * ( + 19 ) * - - CAST( + - 98 AS SIGNED ) * - SUM( ALL - - 25 ) + - 56 THEN 73 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9117
SELECT + CASE - 40 WHEN + 44 * ( + 19 ) * - - CAST ( + - 98 AS INTEGER ) * - SUM ( ALL - - 25 ) + - 56 THEN 73 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + - 0 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9119
SELECT + - 53 DIV - 65, ( 75 ) AS col2
----
0
75

skipif mysql # not compatible
query II rowsort label-9119
SELECT + - 53 / - 65, ( 75 ) AS col2
----
0
75

onlyif mysql # DIV for integer division: 
query II rowsort label-9120
SELECT - + 42 + + 80, 26 - - 49 - - - 66 DIV - 81 + + + 74 + + 49 AS col1
----
38
198

skipif mysql # not compatible
query II rowsort label-9120
SELECT - + 42 + + 80, 26 - - 49 - - - 66 / - 81 + + + 74 + + 49 AS col1
----
38
198

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT + COUNT( * ) - - 56
----
57

skipif mysql # not compatible
query I rowsort label-9121
SELECT + COUNT ( * ) - - 56
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9122
SELECT ALL + + 64 DIV + 41 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL + + 64 / + 41 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9123
SELECT - 88 DIV 10 * + SUM( DISTINCT 21 ) AS col1
----
-168

skipif mysql # not compatible
query I rowsort label-9123
SELECT - 88 / 10 * + SUM ( DISTINCT 21 ) AS col1
----
-168

query I rowsort
SELECT + + 45 * + 15 * 64 AS col0
----
43200

onlyif mysql # aggregate syntax: 
query II rowsort label-9125
SELECT DISTINCT - 7 * + - NULLIF ( 93, + 31 * + - 8 - + - 98 ) + - CASE - 98 WHEN + 4 THEN + 50 ELSE - 10 END * - 88 AS col2, COUNT( * )
----
-229
1

skipif mysql # not compatible
query II rowsort label-9125
SELECT DISTINCT - 7 * + - NULLIF ( 93, + 31 * + - 8 - + - 98 ) + - CASE - 98 WHEN + 4 THEN + 50 ELSE - 10 END * - 88 AS col2, COUNT ( * )
----
-229
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9126
SELECT - COALESCE ( 21, - + 60 ), - 37 + + 97 + - MIN( - 3 ) * - + 2 * - + 65 AS col1
----
-21
450

skipif mysql # not compatible
query II rowsort label-9126
SELECT - COALESCE ( 21, - + 60 ), - 37 + + 97 + - MIN ( - 3 ) * - + 2 * - + 65 AS col1
----
-21
450

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT ALL 59 + - 81 - COUNT( * ) * - - 44 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL 59 + - 81 - COUNT ( * ) * - - 44 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT + + 1 + + + CASE WHEN NOT NULL IS NULL THEN NULL ELSE + COUNT( * ) END AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9128
SELECT + + 1 + + + CASE WHEN NOT NULL IS NULL THEN NULL ELSE + COUNT ( * ) END AS col0
----
2

query I rowsort
SELECT ALL ( + - 84 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT DISTINCT - - 60 + + - 33 * COUNT( * ) * 27
----
-831

skipif mysql # not compatible
query I rowsort label-9130
SELECT DISTINCT - - 60 + + - 33 * COUNT ( * ) * 27
----
-831

query I rowsort
SELECT ALL + 46 + - - 72 AS col0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT DISTINCT 30 + - COUNT( * ) * - 50 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-9132
SELECT DISTINCT 30 + - COUNT ( * ) * - 50 AS col1
----
80

query II rowsort
SELECT 49, - 36 col1
----
49
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT - CASE - CASE - COUNT( * ) WHEN COUNT( * ) + 99 - - 80 - - - 96 THEN - 20 WHEN 18 * - COUNT( * ) * - 68 + + 94 + - 19 THEN NULL END WHEN + - 30 THEN 62 WHEN + - ( + MAX( DISTINCT - - 28 ) ) * + - 15 * COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9134
SELECT - CASE - CASE - COUNT ( * ) WHEN COUNT ( * ) + 99 - - 80 - - - 96 THEN - 20 WHEN 18 * - COUNT ( * ) * - 68 + + 94 + - 19 THEN NULL END WHEN + - 30 THEN 62 WHEN + - ( + MAX ( DISTINCT - - 28 ) ) * + - 15 * COUNT ( * ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9135
SELECT + 32 + + 51 - + 95 * + 72 * MAX( + 47 ) AS col0, - 53 AS col1
----
-321397
-53

skipif mysql # not compatible
query II rowsort label-9135
SELECT + 32 + + 51 - + 95 * + 72 * MAX ( + 47 ) AS col0, - 53 AS col1
----
-321397
-53

query I rowsort
SELECT ALL 14 + + - 53
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9137
SELECT - CAST( NULL AS SIGNED ), COUNT( * ) - - 6 + - 44 + - 60 * - - 68 * - + 84 + + ( + 34 ) AS col1
----
NULL
342717

skipif mysql # not compatible
query II rowsort label-9137
SELECT - CAST ( NULL AS INTEGER ), COUNT ( * ) - - 6 + - 44 + - 60 * - - 68 * - + 84 + + ( + 34 ) AS col1
----
NULL
342717

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT + 96 * - COUNT( * ) col0
----
-96

skipif mysql # not compatible
query I rowsort label-9138
SELECT + 96 * - COUNT ( * ) col0
----
-96

query I rowsort
SELECT ALL + 14 * - - 0
----
0

query II rowsort
SELECT 86 AS col2, 71 AS col1
----
86
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9141
SELECT COALESCE ( - 29, - + 15 + - MIN( ALL - 63 ) + + + ( + MAX( ALL + 99 ) ) ) + - NULLIF ( - CASE - 51 WHEN - 8 + + - CASE - - COUNT( * ) WHEN - - 32 THEN NULL WHEN - 29 + - 30 THEN + - 12 - - COUNT( + - 42 ) + + 91 END THEN NULL WHEN + 80 + + ( + 81 ) * + 95 * 84 * + 91 + + + 7 - + 33 + + 12 + - CAST( NULL AS SIGNED ) * - ( - - 47 ) THEN - COUNT( DISTINCT 0 ) END, - COUNT( CAST( NULL AS SIGNED ) ) / - COUNT( * ) ) - - 50 / + NULLIF ( NULLIF ( 81, + COUNT( * ) ) + - 77, - 28 * 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9141
SELECT COALESCE ( - 29, - + 15 + - MIN ( ALL - 63 ) + + + ( + MAX ( ALL + 99 ) ) ) + - NULLIF ( - CASE - 51 WHEN - 8 + + - CASE - - COUNT ( * ) WHEN - - 32 THEN NULL WHEN - 29 + - 30 THEN + - 12 - - COUNT ( + - 42 ) + + 91 END THEN NULL WHEN + 80 + + ( + 81 ) * + 95 * 84 * + 91 + + + 7 - + 33 + + 12 + - CAST ( NULL AS INTEGER ) * - ( - - 47 ) THEN - COUNT ( DISTINCT 0 ) END, - COUNT ( CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) ) - - 50 / + NULLIF ( NULLIF ( 81, + COUNT ( * ) ) + - 77, - 28 * 20 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9142
SELECT - COUNT( * ) DIV - - 3 - - 33 + - + NULLIF ( + + 78, ( - + 91 ) ) * + MAX( + 8 ) + + + 63 * + ( COUNT( * ) )
----
-528

skipif mysql # not compatible
query I rowsort label-9142
SELECT - COUNT ( * ) / - - 3 - - 33 + - + NULLIF ( + + 78, ( - + 91 ) ) * + MAX ( + 8 ) + + + 63 * + ( COUNT ( * ) )
----
-528

query I rowsort
SELECT 39 * 30 * - 49 * + 35
----
-2006550

query I rowsort
SELECT 55 * 4 AS col0
----
220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9145
SELECT ALL + SUM( DISTINCT 18 ) DIV + COALESCE ( 64, + 59 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL + SUM ( DISTINCT 18 ) / + COALESCE ( 64, + 59 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT COUNT( * ) * - 92 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-9146
SELECT COUNT ( * ) * - 92 AS col1
----
-92

query I rowsort
SELECT ALL - - 29 * - - 8
----
232

query I rowsort
SELECT 68 + + 62
----
130

onlyif mysql # DIV for integer division: 
query II rowsort label-9149
SELECT + + 84, 50 DIV + 20 - 54 AS col2
----
84
-52

skipif mysql # not compatible
query II rowsort label-9149
SELECT + + 84, 50 / + 20 - 54 AS col2
----
84
-52

query I rowsort
SELECT ALL + + 62 * + + 64
----
3968

query I rowsort
SELECT - 77 * + + 95 AS col2
----
-7315

query II rowsort
SELECT - 60 + - NULLIF ( 80, 10 / + 47 ) + 22 col1, ( + 58 ) * + - 2
----
-118
-116

query I rowsort
SELECT + ( - 26 ) AS col0
----
-26

query I rowsort
SELECT ALL - ( + 55 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT ALL + + SUM( + - 45 ) * COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL + + SUM ( + - 45 ) * COUNT ( * )
----
-45

query I rowsort
SELECT 40 * 0 AS col0
----
0

query I rowsort
SELECT DISTINCT + - 20 + + 49 AS col2
----
29

query I rowsort
SELECT ALL - - CASE 26 WHEN 78 THEN + 62 / - + 55 ELSE NULL END + 32 * 26
----
NULL

query II rowsort
SELECT - + 32, 90 * + NULLIF ( 84, - 20 ) AS col2
----
-32
7560

query I rowsort
SELECT - 49 * + - 88 + - ( 77 )
----
4235

onlyif mysql # aggregate syntax: 
query II rowsort label-9161
SELECT - - COUNT( * ) col1, 57 AS col0
----
1
57

skipif mysql # not compatible
query II rowsort label-9161
SELECT - - COUNT ( * ) col1, 57 AS col0
----
1
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9162
SELECT ( + - CAST( NULL AS SIGNED ) ) / - + 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9162
SELECT ( + - CAST ( NULL AS INTEGER ) ) / - + 0 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT MIN( DISTINCT 10 ) * - 98
----
-980

skipif mysql # not compatible
query I rowsort label-9163
SELECT MIN ( DISTINCT 10 ) * - 98
----
-980

query I rowsort
SELECT ALL 14 - + 48
----
-34

query I rowsort
SELECT 95 - - ( - - 63 )
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT DISTINCT + COUNT( * ) * - NULLIF ( COUNT( * ), - - 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT + COUNT ( * ) * - NULLIF ( COUNT ( * ), - - 14 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9167
SELECT 5 DIV + + 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9167
SELECT 5 / + + 95 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9168
SELECT ALL + COUNT( + CAST( - - 42 AS SIGNED ) ) - - - 26 - 64 / + CASE - 97 WHEN - 22 + - - CAST( NULL AS SIGNED ) THEN - + 27 * COUNT( * ) + + 96 END + + - 33 * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL + COUNT ( + CAST ( - - 42 AS INTEGER ) ) - - - 26 - 64 / + CASE - 97 WHEN - 22 + - - CAST ( NULL AS INTEGER ) THEN - + 27 * COUNT ( * ) + + 96 END + + - 33 * + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT ALL 60 - - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL 60 - - COUNT ( * )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9170
SELECT 36 + - 67 - - + CAST( NULL AS SIGNED ) * + + CASE + 61 WHEN 84 THEN 17 * + 65 - + - 15 * - + COUNT( * ) / - + 71 + + + ( 97 ) + - - COUNT( * ) ELSE NULL END AS col0, 90
----
NULL
90

skipif mysql # not compatible
query II rowsort label-9170
SELECT 36 + - 67 - - + CAST ( NULL AS INTEGER ) * + + CASE + 61 WHEN 84 THEN 17 * + 65 - + - 15 * - + COUNT ( * ) / - + 71 + + + ( 97 ) + - - COUNT ( * ) ELSE NULL END AS col0, 90
----
NULL
90

onlyif mysql # aggregate syntax: 
query II rowsort label-9171
SELECT COUNT( * ) * + 13, + 83 AS col1
----
13
83

skipif mysql # not compatible
query II rowsort label-9171
SELECT COUNT ( * ) * + 13, + 83 AS col1
----
13
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9172
SELECT ( 62 ) + + 43 - - 95 DIV + + CASE + COUNT( 22 ) WHEN CASE - - 16 WHEN ( + 87 ) THEN - + 2 WHEN 38 + - + 26 DIV - SUM( DISTINCT - - 38 ) * - 2 THEN NULL END THEN NULL ELSE COUNT( * ) END + + COUNT( * ) + + COUNT( * ) * - COUNT( * ) * - ( 59 ) * - SUM( + 19 )
----
-920

skipif mysql # not compatible
query I rowsort label-9172
SELECT ( 62 ) + + 43 - - 95 / + + CASE + COUNT ( 22 ) WHEN CASE - - 16 WHEN ( + 87 ) THEN - + 2 WHEN 38 + - + 26 / - SUM ( DISTINCT - - 38 ) * - 2 THEN NULL END THEN NULL ELSE COUNT ( * ) END + + COUNT ( * ) + + COUNT ( * ) * - COUNT ( * ) * - ( 59 ) * - SUM ( + 19 )
----
-920

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9173
SELECT ALL CAST( NULL AS DECIMAL ) / - 66 col2, 23
----
NULL
23

skipif mysql # not compatible
query II rowsort label-9173
SELECT ALL CAST ( NULL AS REAL ) / - 66 col2, 23
----
NULL
23

query I rowsort
SELECT ( + 12 ) * + + 37
----
444

query I rowsort
SELECT DISTINCT 53 + + 94 * + 13 col0
----
1275

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT ALL + 97 * - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL + 97 * - COUNT ( * )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9177
SELECT ALL + COUNT( DISTINCT - 43 ) + + - ( - NULLIF ( - CAST( + + 8 AS SIGNED ), 71 + - - NULLIF ( + - 73, COUNT( ALL + 90 ) ) ) ) + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL + COUNT ( DISTINCT - 43 ) + + - ( - NULLIF ( - CAST ( + + 8 AS INTEGER ), 71 + - - NULLIF ( + - 73, COUNT ( ALL + 90 ) ) ) ) + COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT + COUNT( - 52 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9178
SELECT + COUNT ( - 52 ) col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9179
SELECT 86 DIV - 61
----
-1

skipif mysql # not compatible
query I rowsort label-9179
SELECT 86 / - 61
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9180
SELECT ALL + 15 + + + 43 DIV 7 col0
----
21

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL + 15 + + + 43 / 7 col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT - 89 * SUM( 54 ) - + ( + COUNT( * ) ) AS col1
----
-4807

skipif mysql # not compatible
query I rowsort label-9181
SELECT - 89 * SUM ( 54 ) - + ( + COUNT ( * ) ) AS col1
----
-4807

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT - MAX( DISTINCT 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-9182
SELECT - MAX ( DISTINCT 87 ) AS col2
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9183
SELECT 62 - CAST( 48 AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-9183
SELECT 62 - CAST ( 48 AS INTEGER )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9184
SELECT DISTINCT 62 + + - 60 AS col1, COUNT( * ) AS col0
----
2
1

skipif mysql # not compatible
query II rowsort label-9184
SELECT DISTINCT 62 + + - 60 AS col1, COUNT ( * ) AS col0
----
2
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9185
SELECT DISTINCT - 32 + + - CAST( NULL AS DECIMAL ) + CASE + 69 WHEN 21 * + 26 + + 14 - + 59 - 7 + - - 0 * 35 THEN + 45 * + ( ( - - 61 ) ) - + CAST( NULL AS SIGNED ) * - 40 WHEN + 88 + - - COUNT( * ) THEN + NULLIF ( COUNT( * ), SUM( ALL 86 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9185
SELECT DISTINCT - 32 + + - CAST ( NULL AS REAL ) + CASE + 69 WHEN 21 * + 26 + + 14 - + 59 - 7 + - - 0 * 35 THEN + 45 * + ( ( - - 61 ) ) - + CAST ( NULL AS INTEGER ) * - 40 WHEN + 88 + - - COUNT ( * ) THEN + NULLIF ( COUNT ( * ), SUM ( ALL 86 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT + COUNT( * ) - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9186
SELECT + COUNT ( * ) - - COUNT ( * )
----
2

query I rowsort
SELECT - - ( + - 44 ) AS col0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9188
SELECT - NULLIF ( + 31, + NULLIF ( 88, + CAST( NULL AS SIGNED ) + 44 * + ( + - 81 ) ) * + - CAST( NULL AS SIGNED ) * 20 )
----
-31

skipif mysql # not compatible
query I rowsort label-9188
SELECT - NULLIF ( + 31, + NULLIF ( 88, + CAST ( NULL AS INTEGER ) + 44 * + ( + - 81 ) ) * + - CAST ( NULL AS INTEGER ) * 20 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT DISTINCT + 41 * COUNT( ALL - + ( - 81 ) ) * + 4 * - - COUNT( * ) * - 41
----
-6724

skipif mysql # not compatible
query I rowsort label-9189
SELECT DISTINCT + 41 * COUNT ( ALL - + ( - 81 ) ) * + 4 * - - COUNT ( * ) * - 41
----
-6724

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT ALL MIN( ALL - - 33 )
----
33

skipif mysql # not compatible
query I rowsort label-9190
SELECT ALL MIN ( ALL - - 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT DISTINCT MIN( - 62 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-9191
SELECT DISTINCT MIN ( - 62 ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT ALL SUM( DISTINCT 72 )
----
72

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL SUM ( DISTINCT 72 )
----
72

query II rowsort
SELECT 11 AS col0, 70 col1
----
11
70

query I rowsort
SELECT - 43 + - 88 + - 43 * + 60
----
-2711

query I rowsort
SELECT - 54 * + 22 AS col1
----
-1188

query I rowsort
SELECT + 60 * 25 col0
----
1500

query I rowsort
SELECT - 31 * + + 49
----
-1519

query I rowsort
SELECT DISTINCT ( - - 47 ) * - + 88
----
-4136

query I rowsort
SELECT DISTINCT - 79 * 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9200
SELECT - COUNT( * ) * - 24 * + + 85 AS col1, - 7 col2
----
2040
-7

skipif mysql # not compatible
query II rowsort label-9200
SELECT - COUNT ( * ) * - 24 * + + 85 AS col1, - 7 col2
----
2040
-7

query I rowsort
SELECT DISTINCT 12 + + 39 * - 2
----
-66

query I rowsort
SELECT DISTINCT + 7 * + 30
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT ALL 71 * + + COALESCE ( + COUNT( * ), + COUNT( * ), - 48 ) + 46 AS col2
----
117

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL 71 * + + COALESCE ( + COUNT ( * ), + COUNT ( * ), - 48 ) + 46 AS col2
----
117

query I rowsort
SELECT - 47 - 50
----
-97

query II rowsort
SELECT - - 30 + + + ( + - 39 ) AS col0, ( - 32 ) AS col1
----
-9
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT COUNT( ALL + ( 67 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9206
SELECT COUNT ( ALL + ( 67 ) ) AS col1
----
1

query I rowsort
SELECT ALL + + 89 col2
----
89

query I rowsort
SELECT DISTINCT + 52 * 33
----
1716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9209
SELECT DISTINCT 28 * - COALESCE ( + 19, + + SUM( CAST( NULL AS SIGNED ) ), - 65 + - 62, + COUNT( * ) * + 42 + 40 + - 31 ) + - 25 AS col0
----
-557

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT 28 * - COALESCE ( + 19, + + SUM ( CAST ( NULL AS INTEGER ) ), - 65 + - 62, + COUNT ( * ) * + 42 + 40 + - 31 ) + - 25 AS col0
----
-557

query I rowsort
SELECT ALL + 22 * ( 21 ) + 21
----
483

query I rowsort
SELECT + - 97 * + - 17 AS col1
----
1649

query I rowsort
SELECT + 70 * + 18
----
1260

query II rowsort
SELECT - 46, 5 AS col0
----
-46
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT - + COUNT( 26 ) + - 5 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-9214
SELECT - + COUNT ( 26 ) + - 5 AS col0
----
-6

query I rowsort
SELECT DISTINCT + ( + CASE - 59 WHEN 23 - 3 THEN NULL ELSE 53 END ) AS col2
----
53

query I rowsort
SELECT - 58 + + 47 AS col2
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-9217
SELECT + 97 DIV + - 73
----
-1

skipif mysql # not compatible
query I rowsort label-9217
SELECT + 97 / + - 73
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9218
SELECT ALL - - 78 DIV 4 - COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL - - 78 / 4 - COUNT ( * ) AS col0
----
18

query I rowsort
SELECT + 73 * 10 AS col1
----
730

query I rowsort
SELECT ALL COALESCE ( - + 84, + 74 ) AS col2
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9221
SELECT + CASE + - 15 WHEN + 63 + - 98 THEN + COUNT( DISTINCT + - 64 ) * + 0 WHEN - 36 THEN NULL ELSE - 66 + - 34 + 9 + + COUNT( * ) END * - + CAST( + 61 AS SIGNED ) - + MIN( + COALESCE ( 70, + 65 ) ) - - MAX( ALL - 97 ) AS col0
----
5323

skipif mysql # not compatible
query I rowsort label-9221
SELECT + CASE + - 15 WHEN + 63 + - 98 THEN + COUNT ( DISTINCT + - 64 ) * + 0 WHEN - 36 THEN NULL ELSE - 66 + - 34 + 9 + + COUNT ( * ) END * - + CAST ( + 61 AS INTEGER ) - + MIN ( + COALESCE ( 70, + 65 ) ) - - MAX ( ALL - 97 ) AS col0
----
5323

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT + 79 * - - CASE 49 WHEN + + ( - ( + 50 ) ) * + + MAX( - 79 ) + - 84 THEN - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9222
SELECT + 79 * - - CASE 49 WHEN + + ( - ( + 50 ) ) * + + MAX ( - 79 ) + - 84 THEN - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9223
SELECT 83 AS col0, - 53 DIV 78 * + 44 DIV - + 97 AS col0
----
83
0

skipif mysql # not compatible
query II rowsort label-9223
SELECT 83 AS col0, - 53 / 78 * + 44 / - + 97 AS col0
----
83
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT - 61 + + + 22 + MIN( 63 ) * 58
----
3615

skipif mysql # not compatible
query I rowsort label-9224
SELECT - 61 + + + 22 + MIN ( 63 ) * 58
----
3615

query II rowsort
SELECT 35 col1, + 66
----
35
66

query I rowsort
SELECT - 7 - - - 57
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT ALL ( - SUM( ALL 8 ) ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL ( - SUM ( ALL 8 ) ) AS col1
----
-8

query II rowsort
SELECT ALL - 66 + - 70 AS col1, 56 * - - ( 64 ) AS col0
----
-136
3584

query I rowsort
SELECT - 83 - + 25
----
-108

query I rowsort
SELECT ALL 89 * - 80
----
-7120

query II rowsort
SELECT 21 AS col1, - 62 * + 33 AS col2
----
21
-2046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9232
SELECT ALL CAST( 79 AS SIGNED ) AS col1, COUNT( * ) AS col0
----
79
1

skipif mysql # not compatible
query II rowsort label-9232
SELECT ALL CAST ( 79 AS INTEGER ) AS col1, COUNT ( * ) AS col0
----
79
1

query I rowsort
SELECT + 47 + - 31
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9234
SELECT - 65 DIV - 57
----
1

skipif mysql # not compatible
query I rowsort label-9234
SELECT - 65 / - 57
----
1

query I rowsort
SELECT - 71 + 61
----
-10

query I rowsort
SELECT DISTINCT - 48 + + + 65
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT - SUM( - 45 ) * - 14 + - COUNT( * ) - - 39
----
-592

skipif mysql # not compatible
query I rowsort label-9237
SELECT - SUM ( - 45 ) * - 14 + - COUNT ( * ) - - 39
----
-592

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT ALL - - 55 + + ( ( - CASE 43 WHEN - COUNT( * ) - - 2 + - + 52 THEN - 71 * - + 22 + - 61 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL - - 55 + + ( ( - CASE 43 WHEN - COUNT ( * ) - - 2 + - + 52 THEN - 71 * - + 22 + - 61 END ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9239
SELECT DISTINCT 80 DIV 81 + + COUNT( * ) * 74 DIV - - COUNT( DISTINCT - - 56 ) AS col2, + CAST( - - 74 AS SIGNED ) * 79 + - 36 AS col1
----
74
5810

skipif mysql # not compatible
query II rowsort label-9239
SELECT DISTINCT 80 / 81 + + COUNT ( * ) * 74 / - - COUNT ( DISTINCT - - 56 ) AS col2, + CAST ( - - 74 AS INTEGER ) * 79 + - 36 AS col1
----
74
5810

query I rowsort
SELECT ALL + 54 * + NULLIF ( + - 22, ( - - 18 ) + - 85 + + - 98 )
----
-1188

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9241
SELECT + + 92 AS col2, + COUNT( * ) DIV + 74 AS col1
----
92
0

skipif mysql # not compatible
query II rowsort label-9241
SELECT + + 92 AS col2, + COUNT ( * ) / + 74 AS col1
----
92
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT ALL + MAX( DISTINCT + - 19 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL + MAX ( DISTINCT + - 19 ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT + ( + + ( COUNT( + 22 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9243
SELECT + ( + + ( COUNT ( + 22 ) ) )
----
1

query II rowsort
SELECT - 29 AS col2, + 90
----
-29
90

query II rowsort
SELECT + + 71, + 41 AS col1
----
71
41

query II rowsort
SELECT 15 AS col2, 98 AS col1
----
15
98

onlyif mysql # DIV for integer division: 
query II rowsort label-9247
SELECT ALL + 39 DIV 2 - 76 + - 25 + + 98 * - 51 AS col0, - 61 AS col2
----
-5080
-61

skipif mysql # not compatible
query II rowsort label-9247
SELECT ALL + 39 / 2 - 76 + - 25 + + 98 * - 51 AS col0, - 61 AS col2
----
-5080
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-9248
SELECT + 13 AS col1, 3 DIV 76 DIV - 13 AS col2
----
13
0

skipif mysql # not compatible
query II rowsort label-9248
SELECT + 13 AS col1, 3 / 76 / - 13 AS col2
----
13
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9249
SELECT - 52 AS col2, 80 / + + CAST( NULL AS SIGNED ) + - 68 + + 94
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-9249
SELECT - 52 AS col2, 80 / + + CAST ( NULL AS INTEGER ) + - 68 + + 94
----
-52
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9250
SELECT DISTINCT + CAST( NULL AS SIGNED ), 17 AS col1
----
NULL
17

skipif mysql # not compatible
query II rowsort label-9250
SELECT DISTINCT + CAST ( NULL AS INTEGER ), 17 AS col1
----
NULL
17

query I rowsort
SELECT ALL 25 * 26 AS col2
----
650

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT COUNT( * ) * + NULLIF ( + + 44, 10 ) + - + 84
----
-40

skipif mysql # not compatible
query I rowsort label-9252
SELECT COUNT ( * ) * + NULLIF ( + + 44, 10 ) + - + 84
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT DISTINCT + - ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9253
SELECT DISTINCT + - ( COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT ALL - COUNT( - 83 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL - COUNT ( - 83 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT COUNT( * ) * - + 38
----
-38

skipif mysql # not compatible
query I rowsort label-9255
SELECT COUNT ( * ) * - + 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT COUNT( * ) - COUNT( * ) + - COUNT( DISTINCT 99 ) * - 16 * COUNT( 60 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9256
SELECT COUNT ( * ) - COUNT ( * ) + - COUNT ( DISTINCT 99 ) * - 16 * COUNT ( 60 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT - COUNT( * ) * 54 + 29 + + 59 + - 29 * - 17 AS col0
----
527

skipif mysql # not compatible
query I rowsort label-9257
SELECT - COUNT ( * ) * 54 + 29 + + 59 + - 29 * - 17 AS col0
----
527

query I rowsort
SELECT NULLIF ( - 81, + 20 ) + - - 84
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT DISTINCT SUM( ALL 31 ) + - + 49 * + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-9259
SELECT DISTINCT SUM ( ALL 31 ) + - + 49 * + COUNT ( * )
----
-18

query I rowsort
SELECT 36 * 66 AS col2
----
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT ALL - 61 + + + 12 * + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL - 61 + + + 12 * + COUNT ( * )
----
-49

query I rowsort
SELECT 26 + + + 99 + - 0 * - 51 * - 59
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-9263
SELECT ( 36 ) + + 81 * MAX( 7 ), - COUNT( * ) AS col0
----
603
-1

skipif mysql # not compatible
query II rowsort label-9263
SELECT ( 36 ) + + 81 * MAX ( 7 ), - COUNT ( * ) AS col0
----
603
-1

query I rowsort
SELECT 74 + 4
----
78

query II rowsort
SELECT ALL ( 98 ) AS col2, 90 * - 70
----
98
-6300

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT DISTINCT + 16 + + COUNT( ALL - + 79 ) * + 42 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT + 16 + + COUNT ( ALL - + 79 ) * + 42 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT + 50 + - 25 + + 31 * COUNT( * ) * 27 AS col1
----
862

skipif mysql # not compatible
query I rowsort label-9267
SELECT + 50 + - 25 + + 31 * COUNT ( * ) * 27 AS col1
----
862

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9268
SELECT DISTINCT - - MAX( DISTINCT - 11 ) - - 61 - - + COUNT( * ) DIV + - 41 DIV COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT - - MAX ( DISTINCT - 11 ) - - 61 - - + COUNT ( * ) / + - 41 / COUNT ( * ) AS col2
----
50

query I rowsort
SELECT + 77 * - 6 AS col2
----
-462

onlyif mysql # DIV for integer division: 
query I rowsort label-9270
SELECT + - 7 DIV + 69 + + - 6
----
-6

skipif mysql # not compatible
query I rowsort label-9270
SELECT + - 7 / + 69 + + - 6
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9271
SELECT CAST( NULL AS SIGNED ) / + - 32 * + 13 * 22 + 4 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9271
SELECT CAST ( NULL AS INTEGER ) / + - 32 * + 13 * 22 + 4 col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9272
SELECT 99 DIV - 67 AS col2, + 31
----
-1
31

skipif mysql # not compatible
query II rowsort label-9272
SELECT 99 / - 67 AS col2, + 31
----
-1
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9273
SELECT - NULLIF ( + ( - 46 ), + CAST( - 61 AS SIGNED ) ) * 52
----
2392

skipif mysql # not compatible
query I rowsort label-9273
SELECT - NULLIF ( + ( - 46 ), + CAST ( - 61 AS INTEGER ) ) * 52
----
2392

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT COUNT( * ) + 25
----
26

skipif mysql # not compatible
query I rowsort label-9274
SELECT COUNT ( * ) + 25
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT + 3 * + COALESCE ( - - COUNT( * ), - - 68 + ( - + 59 ) ) + + 20 + - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-9275
SELECT + 3 * + COALESCE ( - - COUNT ( * ), - - 68 + ( - + 59 ) ) + + 20 + - COUNT ( * )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9276
SELECT DISTINCT + 9 * - - SUM( + - CAST( + - 33 AS SIGNED ) )
----
297

skipif mysql # not compatible
query I rowsort label-9276
SELECT DISTINCT + 9 * - - SUM ( + - CAST ( + - 33 AS INTEGER ) )
----
297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9277
SELECT DISTINCT + SUM( ALL 91 ) DIV 56 * - 79 + - + 32 + COALESCE ( - + 86, - NULLIF ( 15, NULLIF ( + ( 30 ), 44 ) * - 78 * - COUNT( * ) ), ( + 40 ), 37 * + + 78 )
----
-197

skipif mysql # not compatible
query I rowsort label-9277
SELECT DISTINCT + SUM ( ALL 91 ) / 56 * - 79 + - + 32 + COALESCE ( - + 86, - NULLIF ( 15, NULLIF ( + ( 30 ), 44 ) * - 78 * - COUNT ( * ) ), ( + 40 ), 37 * + + 78 )
----
-197

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9278
SELECT SUM( DISTINCT + 76 ) DIV - 37 AS col1, - 4 AS col1
----
-2
-4

skipif mysql # not compatible
query II rowsort label-9278
SELECT SUM ( DISTINCT + 76 ) / - 37 AS col1, - 4 AS col1
----
-2
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-9279
SELECT CAST( NULL AS DECIMAL ) + - 65 AS col0, + 35 * - MIN( 34 ) col2, + 99
----
NULL
-1190
99

skipif mysql # not compatible
query III rowsort label-9279
SELECT CAST ( NULL AS REAL ) + - 65 AS col0, + 35 * - MIN ( 34 ) col2, + 99
----
NULL
-1190
99

query I rowsort
SELECT DISTINCT - 10 * - - 39 * + NULLIF ( + + 48, + 12 )
----
-18720

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT 4 * - COUNT( * ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9281
SELECT 4 * - COUNT ( * ) AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9282
SELECT 28 * 23 + CAST( + + ( 38 ) AS SIGNED ) + COUNT( * ) - + 92 * + + 28 * 32 * - + 77
----
6347947

skipif mysql # not compatible
query I rowsort label-9282
SELECT 28 * 23 + CAST ( + + ( 38 ) AS INTEGER ) + COUNT ( * ) - + 92 * + + 28 * 32 * - + 77
----
6347947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9283
SELECT ( 25 ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9283
SELECT ( 25 ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 35 AS col2, - 70
----
35
-70

query II rowsort
SELECT 71 AS col1, 71 AS col0
----
71
71

query I rowsort
SELECT ALL COALESCE ( - 55, - 57 + - 11, + - 56 ) + + - 21 - + - 37
----
-39

query I rowsort
SELECT DISTINCT - 20 + + 3 col0
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-9288
SELECT 66 * - 21 - - 32 AS col2, + 87 * + MIN( + - 14 ) + COUNT( * ) * - + 45 + + + 57
----
-1354
-1206

skipif mysql # not compatible
query II rowsort label-9288
SELECT 66 * - 21 - - 32 AS col2, + 87 * + MIN ( + - 14 ) + COUNT ( * ) * - + 45 + + + 57
----
-1354
-1206

query I rowsort
SELECT ALL 36 * 67 col0
----
2412

query I rowsort
SELECT ( 92 ) + + - 98
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT ALL 88 - COUNT( * ) col2
----
87

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL 88 - COUNT ( * ) col2
----
87

onlyif mysql # DIV for integer division: 
query II rowsort label-9292
SELECT ALL 85 AS col2, 62 DIV 5 - + + 89 AS col0
----
85
-77

skipif mysql # not compatible
query II rowsort label-9292
SELECT ALL 85 AS col2, 62 / 5 - + + 89 AS col0
----
85
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9293
SELECT 98 - - CAST( - - 68 AS SIGNED ) AS col1
----
166

skipif mysql # not compatible
query I rowsort label-9293
SELECT 98 - - CAST ( - - 68 AS INTEGER ) AS col1
----
166

onlyif mysql # aggregate syntax: 
query II rowsort label-9294
SELECT DISTINCT 35 AS col0, SUM( ALL 47 ) * - 53
----
35
-2491

skipif mysql # not compatible
query II rowsort label-9294
SELECT DISTINCT 35 AS col0, SUM ( ALL 47 ) * - 53
----
35
-2491

query I rowsort
SELECT 78 + + 12
----
90

query I rowsort
SELECT - 75 * + - 41
----
3075

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT + MAX( DISTINCT 23 ) + + - 98 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-9297
SELECT + MAX ( DISTINCT 23 ) + + - 98 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-9298
SELECT ALL COUNT( * ), - 0 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-9298
SELECT ALL COUNT ( * ), - 0 AS col1
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT DISTINCT 62 * COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT 62 * COUNT ( * )
----
62

query I rowsort
SELECT + 41 * - 68 * + 6
----
-16728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9301
SELECT ALL + + ( - 44 ) * - CAST( - - 7 AS SIGNED ) * COUNT( * ) AS col0
----
308

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL + + ( - 44 ) * - CAST ( - - 7 AS INTEGER ) * COUNT ( * ) AS col0
----
308

query II rowsort
SELECT - 97, - 24 + + 91 AS col0
----
-97
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9303
SELECT DISTINCT 20 * + CAST( NULL AS SIGNED ) * - 8 / - 99 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9303
SELECT DISTINCT 20 * + CAST ( NULL AS INTEGER ) * - 8 / - 99 col1
----
NULL

query I rowsort
SELECT DISTINCT - 52 * - 63 AS col0
----
3276

query I rowsort
SELECT ALL + - ( 49 ) AS col0
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9306
SELECT ALL + 87 * + - COALESCE ( - 95, - COALESCE ( ( 90 ), 12 ) * - MIN( - - 59 ) + + COUNT( * ) - - + 74 + + + 19 * + + 43 * + CAST( COUNT( * ) AS SIGNED ) + 1 + 56 DIV - SUM( - 51 ) * 72 * - 8 + - COUNT( * ) - MAX( ALL - 91 ) ) + + 38 AS col0
----
8303

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL + 87 * + - COALESCE ( - 95, - COALESCE ( ( 90 ), 12 ) * - MIN ( - - 59 ) + + COUNT ( * ) - - + 74 + + + 19 * + + 43 * + CAST ( COUNT ( * ) AS INTEGER ) + 1 + 56 / - SUM ( - 51 ) * 72 * - 8 + - COUNT ( * ) - MAX ( ALL - 91 ) ) + + 38 AS col0
----
8303

query II rowsort
SELECT + 96 * 46 + - COALESCE ( + - 86, + + 51, - 54 ) AS col2, 9 * + - ( - 10 ) - - + 21
----
4502
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT COUNT( + - 15 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9308
SELECT COUNT ( + - 15 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT MAX( + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-9309
SELECT MAX ( + 55 )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9310
SELECT 61 / 29 * - 38 - - - 53 + + ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9310
SELECT 61 / 29 * - 38 - - - 53 + + ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT ALL - 66 * - 9 + + COUNT( * )
----
595

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL - 66 * - 9 + + COUNT ( * )
----
595

query I rowsort
SELECT ALL + 61 * 83
----
5063

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9313
SELECT ALL + 66 * + CAST( - - COUNT( * ) AS SIGNED ) + - COUNT( * ) - + 59 * + 99 AS col0
----
-5776

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL + 66 * + CAST ( - - COUNT ( * ) AS INTEGER ) + - COUNT ( * ) - + 59 * + 99 AS col0
----
-5776

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT - 78 * + MIN( DISTINCT + - 66 ) col2
----
5148

skipif mysql # not compatible
query I rowsort label-9314
SELECT - 78 * + MIN ( DISTINCT + - 66 ) col2
----
5148

query I rowsort
SELECT - 48 + - 40 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT - COUNT( ALL + - 72 ) - - 46 * + 88
----
4047

skipif mysql # not compatible
query I rowsort label-9316
SELECT - COUNT ( ALL + - 72 ) - - 46 * + 88
----
4047

query II rowsort
SELECT ALL + 62 * + + 41, + 24 + + 49 + 3 * + + 67 + - + 82 AS col1
----
2542
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9318
SELECT 71 * + + ( - COUNT( * ) ) * + + 65 + + 41 DIV 42 AS col0
----
-4615

skipif mysql # not compatible
query I rowsort label-9318
SELECT 71 * + + ( - COUNT ( * ) ) * + + 65 + + 41 / 42 AS col0
----
-4615

query I rowsort
SELECT + 30 - - 1 + - CASE - 43 WHEN + 65 THEN NULL WHEN + 78 - + 28 THEN + + ( - + 29 ) END * - - 80 col0
----
NULL

query I rowsort
SELECT DISTINCT ( 47 ) col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9321
SELECT - COUNT( * ) * + - COUNT( * ) DIV + 9
----
0

skipif mysql # not compatible
query I rowsort label-9321
SELECT - COUNT ( * ) * + - COUNT ( * ) / + 9
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT ALL + 62 * + 86 * COUNT( - 89 ) * - 50 * + 21 col1
----
-5598600

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL + 62 * + 86 * COUNT ( - 89 ) * - 50 * + 21 col1
----
-5598600

onlyif mysql # aggregate syntax: 
query II rowsort label-9323
SELECT - 94 + + 99, - COALESCE ( COUNT( * ), + 87, + - 58 * - COUNT( * ) + - 87 * - 70 - - 81 ) AS col1
----
5
-1

skipif mysql # not compatible
query II rowsort label-9323
SELECT - 94 + + 99, - COALESCE ( COUNT ( * ), + 87, + - 58 * - COUNT ( * ) + - 87 * - 70 - - 81 ) AS col1
----
5
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9324
SELECT DISTINCT CASE + + CAST( NULL AS SIGNED ) WHEN - - 22 THEN NULL ELSE CAST( NULL AS SIGNED ) + + + 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9324
SELECT DISTINCT CASE + + CAST ( NULL AS INTEGER ) WHEN - - 22 THEN NULL ELSE CAST ( NULL AS INTEGER ) + + + 78 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT DISTINCT NULLIF ( - - COUNT( * ), 6 / + 24 )
----
1

skipif mysql # not compatible
query I rowsort label-9325
SELECT DISTINCT NULLIF ( - - COUNT ( * ), 6 / + 24 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9326
SELECT ALL COUNT( + + 60 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL COUNT ( + + 60 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - + 44 + 65 + - + COALESCE ( + 11, - 9 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT - MIN( DISTINCT - - 80 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-9328
SELECT - MIN ( DISTINCT - - 80 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT ALL - 75 * + MIN( ALL - 81 )
----
6075

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL - 75 * + MIN ( ALL - 81 )
----
6075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9330
SELECT - - CAST( - MAX( DISTINCT COALESCE ( + + 92, + ( + 8 ) ) ) AS SIGNED ) + + + 62 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9330
SELECT - - CAST ( - MAX ( DISTINCT COALESCE ( + + 92, + ( + 8 ) ) ) AS INTEGER ) + + + 62 AS col0
----
-30

query I rowsort
SELECT + - 6 + - 40 - + 63 * - - 29 AS col2
----
-1873

onlyif mysql # DIV for integer division: 
query I rowsort label-9332
SELECT + - 20 DIV + + 3 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-9332
SELECT + - 20 / + + 3 AS col0
----
-6

query I rowsort
SELECT ALL - 15 * - + 34 * 91
----
46410

onlyif mysql # aggregate syntax: 
query II rowsort label-9334
SELECT DISTINCT ( + + CASE - + 78 WHEN - COUNT( * ) THEN NULL WHEN - 7 THEN - - 73 + 96 END ), - ( + COALESCE ( + 64, 41 + 93, - - COUNT( + ( 12 ) ) ) ) AS col1
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-9334
SELECT DISTINCT ( + + CASE - + 78 WHEN - COUNT ( * ) THEN NULL WHEN - 7 THEN - - 73 + 96 END ), - ( + COALESCE ( + 64, 41 + 93, - - COUNT ( + ( 12 ) ) ) ) AS col1
----
NULL
-64

query I rowsort
SELECT ALL - 23 + - 91
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9336
SELECT ALL 92 DIV + - MAX( ALL + 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL 92 / + - MAX ( ALL + 74 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9337
SELECT ALL + 48 + - - 32, - 30 - + + COUNT( * ) AS col1
----
80
-31

skipif mysql # not compatible
query II rowsort label-9337
SELECT ALL + 48 + - - 32, - 30 - + + COUNT ( * ) AS col1
----
80
-31

query I rowsort
SELECT - - 38 col2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9339
SELECT + - 68 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9339
SELECT + - 68 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT - + COUNT( * ) * + COUNT( * ) + + ( 0 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9340
SELECT - + COUNT ( * ) * + COUNT ( * ) + + ( 0 ) AS col1
----
-1

query I rowsort
SELECT ALL + COALESCE ( + - 80, - 45 )
----
-80

query I rowsort
SELECT - 27 * - 86 * + 64 + - 26
----
148582

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9343
SELECT + ( + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9343
SELECT + ( + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9344
SELECT 65 / + 86 + 12 + - + COUNT( * ) + - 77 * - + 98 + + 88 * - + MIN( DISTINCT - - 75 ) * 71 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9344
SELECT 65 / + 86 + 12 + - + COUNT ( * ) + - 77 * - + 98 + + 88 * - + MIN ( DISTINCT - - 75 ) * 71 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ( + 56 ) AS col1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9346
SELECT ALL + 22 * CAST( + 45 AS SIGNED ) + + 17
----
1007

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL + 22 * CAST ( + 45 AS INTEGER ) + + 17
----
1007

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT DISTINCT - 39 * + COUNT( * ) + + - 57 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-9347
SELECT DISTINCT - 39 * + COUNT ( * ) + + - 57 AS col0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-9348
SELECT ALL + COUNT( * ), 95 AS col0
----
1
95

skipif mysql # not compatible
query II rowsort label-9348
SELECT ALL + COUNT ( * ), 95 AS col0
----
1
95

query I rowsort
SELECT ( - 87 ) AS col1
----
-87

query I rowsort
SELECT CASE - + 14 WHEN 64 THEN NULL WHEN - 18 * + - 59 THEN + 51 + + + 16 END
----
NULL

query I rowsort
SELECT - 7 + + 48 AS col1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9352
SELECT ALL - 3 DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL - 3 / - 32
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9353
SELECT + 19 DIV - + 63 col2
----
0

skipif mysql # not compatible
query I rowsort label-9353
SELECT + 19 / - + 63 col2
----
0

query II rowsort
SELECT + 71 AS col0, 27 AS col2
----
71
27

onlyif mysql # aggregate syntax: 
query II rowsort label-9355
SELECT ALL + NULLIF ( 76, + 79 * + - 67 * AVG ( + 95 ) * + 99 + + COUNT( - 54 ) * - + 42 * - NULLIF ( - 76, - + 46 ) ) AS col2, 19 AS col0
----
76
19

skipif mysql # not compatible
query II rowsort label-9355
SELECT ALL + NULLIF ( 76, + 79 * + - 67 * AVG ( + 95 ) * + 99 + + COUNT ( - 54 ) * - + 42 * - NULLIF ( - 76, - + 46 ) ) AS col2, 19 AS col0
----
76
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT NULLIF ( MAX( DISTINCT 53 ), 98 ) col1
----
53

skipif mysql # not compatible
query I rowsort label-9356
SELECT NULLIF ( MAX ( DISTINCT 53 ), 98 ) col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9357
SELECT ALL 77 / + COUNT( - 68 ) * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL 77 / + COUNT ( - 68 ) * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT COALESCE ( - - 47, + + 28 + + + 36 + 69 * + - 58, CASE + COUNT( * ) WHEN + + 34 THEN - 54 * - - 58 WHEN - 42 THEN - 60 + + + 94 * NULLIF ( 60, 45 + 34 * - 2 ) ELSE NULL END * + CASE + MIN( - + 88 ) WHEN + 57 THEN 68 + 38 ELSE NULL END - + ( 96 ) )
----
47

skipif mysql # not compatible
query I rowsort label-9358
SELECT COALESCE ( - - 47, + + 28 + + + 36 + 69 * + - 58, CASE + COUNT ( * ) WHEN + + 34 THEN - 54 * - - 58 WHEN - 42 THEN - 60 + + + 94 * NULLIF ( 60, 45 + 34 * - 2 ) ELSE NULL END * + CASE + MIN ( - + 88 ) WHEN + 57 THEN 68 + 38 ELSE NULL END - + ( 96 ) )
----
47

query I rowsort
SELECT DISTINCT - 86 * 59 * + - 43 * + + ( - - 4 ) col0
----
872728

query I rowsort
SELECT - + 0 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9361
SELECT - - 15 - - 42 + - 3 AS col2, COUNT( * ) - + NULLIF ( 34, - 41 - + 59 - + 14 + + - COUNT( ALL + 24 ) * - MAX( - - 95 ) )
----
54
-33

skipif mysql # not compatible
query II rowsort label-9361
SELECT - - 15 - - 42 + - 3 AS col2, COUNT ( * ) - + NULLIF ( 34, - 41 - + 59 - + 14 + + - COUNT ( ALL + 24 ) * - MAX ( - - 95 ) )
----
54
-33

query I rowsort
SELECT DISTINCT + - 42 * + - 57
----
2394

query I rowsort
SELECT - + NULLIF ( - 47, - 39 ) + 44 + + ( + + 71 ) AS col2
----
162

query I rowsort
SELECT - 96 * 89
----
-8544

query I rowsort
SELECT - 66 + - 41
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9366
SELECT DISTINCT - CAST( + 21 AS SIGNED ) + - 83 - + - 69 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT - CAST ( + 21 AS INTEGER ) + - 83 - + - 69 AS col1
----
-35

query I rowsort
SELECT - 23 - 23
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9368
SELECT - + 58 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9368
SELECT - + 58 * CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL - + 0 + 25 col2
----
25

query I rowsort
SELECT DISTINCT 81 + + - 44 + + 4 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT ALL - AVG ( - 36 ) + - - 84 - - 92 + - ( NULLIF ( - + 20, - 33 ) ) + + + CASE - 36 WHEN - - 99 * - - 11 * + 81 / 3 * 40 THEN 35 - - COUNT( * ) END * + + 80 + - 49 + 27 * + 65 * - - ( - + MAX( DISTINCT - 52 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL - AVG ( - 36 ) + - - 84 - - 92 + - ( NULLIF ( - + 20, - 33 ) ) + + + CASE - 36 WHEN - - 99 * - - 11 * + 81 / 3 * 40 THEN 35 - - COUNT ( * ) END * + + 80 + - 49 + 27 * + 65 * - - ( - + MAX ( DISTINCT - 52 ) )
----
NULL

query I rowsort
SELECT 94 * + 50
----
4700

query I rowsort
SELECT DISTINCT - 70 + - 80 AS col1
----
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-9374
SELECT + ( - 11 ) - ( + 11 ) + - COUNT( * ) AS col2, + 4 * 72 AS col2
----
-23
288

skipif mysql # not compatible
query II rowsort label-9374
SELECT + ( - 11 ) - ( + 11 ) + - COUNT ( * ) AS col2, + 4 * 72 AS col2
----
-23
288

query I rowsort
SELECT ALL 65 + + 47
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9376
SELECT DISTINCT - 26 * + 36 + - CAST( + 85 AS SIGNED ) * - 18
----
594

skipif mysql # not compatible
query I rowsort label-9376
SELECT DISTINCT - 26 * + 36 + - CAST ( + 85 AS INTEGER ) * - 18
----
594

query I rowsort
SELECT DISTINCT - + 83 + - + 66
----
-149

onlyif mysql # DIV for integer division: 
query I rowsort label-9378
SELECT 79 DIV 38 * + 21 + + 46 + - 63 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-9378
SELECT 79 / 38 * + 21 + + 46 + - 63 AS col1
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9379
SELECT DISTINCT 14 DIV - - 12
----
1

skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT 14 / - - 12
----
1

query I rowsort
SELECT 23 * 56 AS col1
----
1288

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT MAX( + + ( ( 94 ) ) ) * - COUNT( * ) * CASE + NULLIF ( - 99, 84 * 0 * - - 50 ) WHEN 49 * - ( - + 31 ) THEN + - 66 * - 12 END / 13 - 28 + + 54 * + - 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9381
SELECT MAX ( + + ( ( 94 ) ) ) * - COUNT ( * ) * CASE + NULLIF ( - 99, 84 * 0 * - - 50 ) WHEN 49 * - ( - + 31 ) THEN + - 66 * - 12 END / 13 - 28 + + 54 * + - 6 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9382
SELECT + 1 AS col2, - NULLIF ( - 84, - - 62 * 95 + + 48 ) - + COUNT( * ) - - 89 + - 60 AS col1
----
1
112

skipif mysql # not compatible
query II rowsort label-9382
SELECT + 1 AS col2, - NULLIF ( - 84, - - 62 * 95 + + 48 ) - + COUNT ( * ) - - 89 + - 60 AS col1
----
1
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9383
SELECT 7 DIV + COUNT( DISTINCT - 24 ) + 87, CAST( NULL AS SIGNED ) AS col0
----
94
NULL

skipif mysql # not compatible
query II rowsort label-9383
SELECT 7 / + COUNT ( DISTINCT - 24 ) + 87, CAST ( NULL AS INTEGER ) AS col0
----
94
NULL

query I rowsort
SELECT 45 * - 24 AS col2
----
-1080

query II rowsort
SELECT ALL - 93 AS col0, 73
----
-93
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9386
SELECT 64 + + 9 + 43 DIV + - 7
----
67

skipif mysql # not compatible
query I rowsort label-9386
SELECT 64 + + 9 + 43 / + - 7
----
67

query I rowsort
SELECT ALL 7 * + 96 AS col1
----
672

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT DISTINCT 18 * - COALESCE ( - 56, - + COUNT( * ) + - - 70 + - 14 + - COUNT( * ) * + + 37, - - NULLIF ( + NULLIF ( + + COUNT( * ), - ( + MIN( ALL - 4 ) ) ), + - NULLIF ( 32, - 3 - - 99 ) + - + COALESCE ( COALESCE ( + - 95, - 10 * - 22 * + 19, - 69 * - - 15 * - 70 * - ( - 73 ) ), + + 76 + - COALESCE ( - 76, - - ( 13 ) + 62, 84 + - 70 ) * + - 57, + COUNT( * ) ) * + - NULLIF ( - ( - CASE 76 WHEN + 21 + + ( 0 ) THEN ( 4 ) END ), - 55 + + COALESCE ( 90, - 90 ) ) ) * 76, 19 )
----
1008

skipif mysql # not compatible
query I rowsort label-9388
SELECT DISTINCT 18 * - COALESCE ( - 56, - + COUNT ( * ) + - - 70 + - 14 + - COUNT ( * ) * + + 37, - - NULLIF ( + NULLIF ( + + COUNT ( * ), - ( + MIN ( ALL - 4 ) ) ), + - NULLIF ( 32, - 3 - - 99 ) + - + COALESCE ( COALESCE ( + - 95, - 10 * - 22 * + 19, - 69 * - - 15 * - 70 * - ( - 73 ) ), + + 76 + - COALESCE ( - 76, - - ( 13 ) + 62, 84 + - 70 ) * + - 57, + COUNT ( * ) ) * + - NULLIF ( - ( - CASE 76 WHEN + 21 + + ( 0 ) THEN ( 4 ) END ), - 55 + + COALESCE ( 90, - 90 ) ) ) * 76, 19 )
----
1008

query I rowsort
SELECT DISTINCT 36 * + 9 * + - 12 col2
----
-3888

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT COUNT( * ) * - - 10 + - 77 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-9390
SELECT COUNT ( * ) * - - 10 + - 77 AS col2
----
-67

query I rowsort
SELECT 54 + 11 * + - ( 0 ) AS col1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-9392
SELECT 90 DIV - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9392
SELECT 90 / - 96 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT ALL 71 * - - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL 71 * - - COUNT ( * )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9394
SELECT CASE + - CAST( - - 7 AS SIGNED ) WHEN + 23 THEN - 21 WHEN COUNT( * ) - + + 49 / - + 23 THEN + - ( + 75 ) END + - MAX( - COALESCE ( + 28, - CASE CASE + 22 WHEN - 68 / - NULLIF ( + NULLIF ( - 5, + 36 + - CASE 56 WHEN + 42 + 32 THEN NULL ELSE - - 35 * - CAST( NULL AS DECIMAL ) END ), - 31 ) / - 69 * + 40 THEN + 99 END WHEN + + 82 - - - 45 / 15 + + + 15 THEN 19 + - + 39 WHEN + 19 + + 67 * - ( - - 5 ) * 79 - - 13 * - 91 THEN NULL WHEN 67 - 5 THEN NULL END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9394
SELECT CASE + - CAST ( - - 7 AS INTEGER ) WHEN + 23 THEN - 21 WHEN COUNT ( * ) - + + 49 / - + 23 THEN + - ( + 75 ) END + - MAX ( - COALESCE ( + 28, - CASE CASE + 22 WHEN - 68 / - NULLIF ( + NULLIF ( - 5, + 36 + - CASE 56 WHEN + 42 + 32 THEN NULL ELSE - - 35 * - CAST ( NULL AS REAL ) END ), - 31 ) / - 69 * + 40 THEN + 99 END WHEN + + 82 - - - 45 / 15 + + + 15 THEN 19 + - + 39 WHEN + 19 + + 67 * - ( - - 5 ) * 79 - - 13 * - 91 THEN NULL WHEN 67 - 5 THEN NULL END ) ) AS col2
----
NULL

query I rowsort
SELECT 73 + + + 75 - 9 AS col2
----
139

query II rowsort
SELECT - 81 AS col2, + 17
----
-81
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9397
SELECT ALL - 63, + CASE + 23 WHEN - 55 THEN NULL WHEN + 96 THEN NULL WHEN + - 8 THEN + - 32 * COALESCE ( + + 87, MIN( - + 9 ) ) + + + 59 + - + 5 + + + 1 + - 41 + + 40 * - NULLIF ( - + ( - 17 ), + CAST( + MAX( ALL - 20 ) AS SIGNED ) * - 70 ) * + + 74 ELSE NULL END / - MAX( 95 ) + - + 91 AS col2
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-9397
SELECT ALL - 63, + CASE + 23 WHEN - 55 THEN NULL WHEN + 96 THEN NULL WHEN + - 8 THEN + - 32 * COALESCE ( + + 87, MIN ( - + 9 ) ) + + + 59 + - + 5 + + + 1 + - 41 + + 40 * - NULLIF ( - + ( - 17 ), + CAST ( + MAX ( ALL - 20 ) AS INTEGER ) * - 70 ) * + + 74 ELSE NULL END / - MAX ( 95 ) + - + 91 AS col2
----
-63
NULL

query I rowsort
SELECT DISTINCT ( - - 49 ) + - - 15 + + ( - - 29 ) AS col1
----
93

query I rowsort
SELECT ALL - 93 * - 72
----
6696

onlyif mysql # DIV for integer division: 
query I rowsort label-9400
SELECT 83 DIV 50 + - 12
----
-11

skipif mysql # not compatible
query I rowsort label-9400
SELECT 83 / 50 + - 12
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9401
SELECT ALL - COUNT( * ) + 60 DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL - COUNT ( * ) + 60 / 33
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9402
SELECT DISTINCT - - 64 + - ( + 9 ) + - + ( - + 15 ) * + 60 DIV + COUNT( * ) + - + 20 * ( 73 )
----
-505

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT - - 64 + - ( + 9 ) + - + ( - + 15 ) * + 60 / + COUNT ( * ) + - + 20 * ( 73 )
----
-505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9403
SELECT 32 * - - MIN( DISTINCT + + 56 ) * + CAST( NULL AS SIGNED ) * - - CAST( NULLIF ( - ( 88 ), - 26 ) AS DECIMAL ) - + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT 32 * - - MIN ( DISTINCT + + 56 ) * + CAST ( NULL AS INTEGER ) * - - CAST ( NULLIF ( - ( 88 ), - 26 ) AS REAL ) - + 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT ALL + 32 * - + MAX( DISTINCT - 32 ) * - 54 * - COUNT( * ) + 14
----
55310

skipif mysql # not compatible
query I rowsort label-9404
SELECT ALL + 32 * - + MAX ( DISTINCT - 32 ) * - 54 * - COUNT ( * ) + 14
----
55310

query I rowsort
SELECT 63 + + 20
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT 22 + MAX( ALL + + ( + - 27 ) ) * - 34 + + COUNT( * ) AS col2
----
941

skipif mysql # not compatible
query I rowsort label-9406
SELECT 22 + MAX ( ALL + + ( + - 27 ) ) * - 34 + + COUNT ( * ) AS col2
----
941

onlyif mysql # DIV for integer division: 
query I rowsort label-9407
SELECT 53 * - + 14 - + - 65 DIV + 42 AS col0
----
-741

skipif mysql # not compatible
query I rowsort label-9407
SELECT 53 * - + 14 - + - 65 / + 42 AS col0
----
-741

query II rowsort
SELECT 57 col2, 99 AS col1
----
57
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9409
SELECT 32 + + - 66 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9409
SELECT 32 + + - 66 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT ALL 73 * MAX( DISTINCT - 40 ) AS col0
----
-2920

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL 73 * MAX ( DISTINCT - 40 ) AS col0
----
-2920

query I rowsort
SELECT 55 + + - ( - 44 ) * - + 14 + + 21
----
-540

onlyif mysql # aggregate syntax: 
query II rowsort label-9412
SELECT ALL COUNT( - 20 ), 67 - - - COUNT( + 64 ) - + - 15 AS col0
----
1
81

skipif mysql # not compatible
query II rowsort label-9412
SELECT ALL COUNT ( - 20 ), 67 - - - COUNT ( + 64 ) - + - 15 AS col0
----
1
81

query I rowsort
SELECT DISTINCT - 21 * - - 52 * - 6
----
6552

query I rowsort
SELECT 68 * + 1 AS col1
----
68

query I rowsort
SELECT 45 * ( 3 )
----
135

query I rowsort
SELECT 84 + - + 54 AS col1
----
30

query I rowsort
SELECT 3 * - 43 + + - 44 - - 11
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9418
SELECT ALL + CAST( NULL AS SIGNED ) * - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL + CAST ( NULL AS INTEGER ) * - 69 AS col0
----
NULL

query I rowsort
SELECT ALL + 3 * + - 8 AS col0
----
-24

query II rowsort
SELECT DISTINCT - ( - 18 ), + ( 85 ) * + ( + ( 26 ) ) - - - 14 col1
----
18
2196

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT MIN( 5 ) * 84 AS col1
----
420

skipif mysql # not compatible
query I rowsort label-9421
SELECT MIN ( 5 ) * 84 AS col1
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT SUM( DISTINCT - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-9422
SELECT SUM ( DISTINCT - 60 )
----
-60

query I rowsort
SELECT 93 * COALESCE ( - + 76, + - 22 * - 83 )
----
-7068

onlyif mysql # DIV for integer division: 
query I rowsort label-9424
SELECT DISTINCT 88 DIV + - 9
----
-9

skipif mysql # not compatible
query I rowsort label-9424
SELECT DISTINCT 88 / + - 9
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT + SUM( ALL + - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-9425
SELECT + SUM ( ALL + - 56 )
----
-56

query I rowsort
SELECT ALL 17 * - + 83 AS col0
----
-1411

query I rowsort
SELECT DISTINCT 57 + + - 87
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT ALL - COUNT( * ) + + 23
----
22

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL - COUNT ( * ) + + 23
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9429
SELECT ALL + 63 + MAX( ALL - 75 ) + - 75 - - 62 - + - 38 * - - ( NULLIF ( 13, 61 + - 2 ) ) - - 89 * + 20 * + 32 / 15 / - + CAST( - 39 AS SIGNED ) * + CAST( NULL AS SIGNED ) + + - 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL + 63 + MAX ( ALL - 75 ) + - 75 - - 62 - + - 38 * - - ( NULLIF ( 13, 61 + - 2 ) ) - - 89 * + 20 * + 32 / 15 / - + CAST ( - 39 AS INTEGER ) * + CAST ( NULL AS INTEGER ) + + - 75 AS col0
----
NULL

query I rowsort
SELECT + + 58 * - ( + - 81 ) * + ( - 53 )
----
-248994

query I rowsort
SELECT ALL 75 + 29 + + 23 AS col2
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT ALL 84 * + 14 * - COUNT( * )
----
-1176

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL 84 * + 14 * - COUNT ( * )
----
-1176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9433
SELECT ALL - COUNT( ALL CAST( + - 63 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL - COUNT ( ALL CAST ( + - 63 AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT - + COALESCE ( COALESCE ( - + 9, + COUNT( * ), - - 1 ), + 91 + - 91, - 62 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-9434
SELECT - + COALESCE ( COALESCE ( - + 9, + COUNT ( * ), - - 1 ), + 91 + - 91, - 62 ) AS col1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9435
SELECT + 72 + 99 DIV + 72
----
73

skipif mysql # not compatible
query I rowsort label-9435
SELECT + 72 + 99 / + 72
----
73

query I rowsort
SELECT + 41 * + - 34 AS col1
----
-1394

query I rowsort
SELECT - + 75 + + 27
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT DISTINCT + 70 + - 15 + - 57 + - NULLIF ( + + COUNT( * ), + COUNT( * ) * - 3 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT + 70 + - 15 + - 57 + - NULLIF ( + + COUNT ( * ), + COUNT ( * ) * - 3 ) AS col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9439
SELECT ALL + 11 + - - ( + - 85 ) + + CAST( 9 AS SIGNED ) * + 5 * + + 81 * ( - 22 ) * COUNT( * ) * COUNT( * ) + - 45 * - COUNT( * ), + 41 AS col2
----
-80219
41

skipif mysql # not compatible
query II rowsort label-9439
SELECT ALL + 11 + - - ( + - 85 ) + + CAST ( 9 AS INTEGER ) * + 5 * + + 81 * ( - 22 ) * COUNT ( * ) * COUNT ( * ) + - 45 * - COUNT ( * ), + 41 AS col2
----
-80219
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT DISTINCT - ( + MAX( DISTINCT + + 91 ) ) + + SUM( ALL - 24 )
----
-115

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT - ( + MAX ( DISTINCT + + 91 ) ) + + SUM ( ALL - 24 )
----
-115

query I rowsort
SELECT ALL + + 57 * - 84 * 91 * 84
----
-36599472

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9442
SELECT DISTINCT - - 45 - CAST( ( + 39 ) AS SIGNED ) DIV - - 91 + - 20
----
25

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT - - 45 - CAST ( ( + 39 ) AS INTEGER ) / - - 91 + - 20
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT ALL COUNT( * ) * + - NULLIF ( + 69, + + 55 )
----
-69

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL COUNT ( * ) * + - NULLIF ( + 69, + + 55 )
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-9444
SELECT ALL COUNT( * ) AS col1, COALESCE ( + - 81, - + 43 * 83 ) col1
----
1
-81

skipif mysql # not compatible
query II rowsort label-9444
SELECT ALL COUNT ( * ) AS col1, COALESCE ( + - 81, - + 43 * 83 ) col1
----
1
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9445
SELECT - NULLIF ( + + 69, + COUNT( ALL + 80 ) ) AS col2, CAST( 15 AS SIGNED ) - - COALESCE ( - MAX( ALL + + 85 ), + 85 DIV + + 81 DIV - MAX( DISTINCT - + 5 ) * - + COUNT( * ), - - 0 * + NULLIF ( ( + + 40 ), 77 ) ) + - COUNT( * )
----
-69
-71

skipif mysql # not compatible
query II rowsort label-9445
SELECT - NULLIF ( + + 69, + COUNT ( ALL + 80 ) ) AS col2, CAST ( 15 AS INTEGER ) - - COALESCE ( - MAX ( ALL + + 85 ), + 85 / + + 81 / - MAX ( DISTINCT - + 5 ) * - + COUNT ( * ), - - 0 * + NULLIF ( ( + + 40 ), 77 ) ) + - COUNT ( * )
----
-69
-71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9446
SELECT DISTINCT - 34 - + - CAST( NULL AS DECIMAL ) + + + MIN( ALL + - 68 ) * - + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-9446
SELECT DISTINCT - 34 - + - CAST ( NULL AS REAL ) + + + MIN ( ALL + - 68 ) * - + 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT + COUNT( * ) * ( + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-9447
SELECT + COUNT ( * ) * ( + 64 )
----
64

query I rowsort
SELECT - 2 * + + 44 col1
----
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-9449
SELECT - 45 AS col2, + 53 DIV + 2
----
-45
26

skipif mysql # not compatible
query II rowsort label-9449
SELECT - 45 AS col2, + 53 / + 2
----
-45
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9450
SELECT DISTINCT 97 col1, - MAX( DISTINCT + 69 ) AS col2
----
97
-69

skipif mysql # not compatible
query II rowsort label-9450
SELECT DISTINCT 97 col1, - MAX ( DISTINCT + 69 ) AS col2
----
97
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT ALL + MIN( + - ( - - 38 ) ) * - + 89 AS col2
----
3382

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL + MIN ( + - ( - - 38 ) ) * - + 89 AS col2
----
3382

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT ( COALESCE ( + + 96, COUNT( + 87 ) ) )
----
96

skipif mysql # not compatible
query I rowsort label-9452
SELECT ( COALESCE ( + + 96, COUNT ( + 87 ) ) )
----
96

query I rowsort
SELECT - 60 + + + 26 col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT - ( - + ( + + ( + 89 ) ) ) * + COUNT( 98 )
----
89

skipif mysql # not compatible
query I rowsort label-9454
SELECT - ( - + ( + + ( + 89 ) ) ) * + COUNT ( 98 )
----
89

query II rowsort
SELECT ALL 44 * + + 39 + + 93 AS col0, 75
----
1809
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT + 57 * COUNT( * ) + - 88 + + 49 col1
----
18

skipif mysql # not compatible
query I rowsort label-9456
SELECT + 57 * COUNT ( * ) + - 88 + + 49 col1
----
18

query I rowsort
SELECT ( - - 70 ) AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9458
SELECT 81 DIV + COUNT( * ) + - 58 AS col0, - CAST( NULL AS SIGNED ) AS col1
----
23
NULL

skipif mysql # not compatible
query II rowsort label-9458
SELECT 81 / + COUNT ( * ) + - 58 AS col0, - CAST ( NULL AS INTEGER ) AS col1
----
23
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9459
SELECT + 24 AS col0, + COUNT( + 11 ) + - 58 + + - 66 * 81 - - - 91 + 93 * - + NULLIF ( - + NULLIF ( + COUNT( * ), CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ), - + 85 * + + 34 ) * + 44
----
24
-1402

skipif mysql # not compatible
query II rowsort label-9459
SELECT + 24 AS col0, + COUNT ( + 11 ) + - 58 + + - 66 * 81 - - - 91 + 93 * - + NULLIF ( - + NULLIF ( + COUNT ( * ), CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ), - + 85 * + + 34 ) * + 44
----
24
-1402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9460
SELECT - ( + COUNT( * ) ) / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT - ( + COUNT ( * ) ) / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT + 94 * + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-9461
SELECT + 94 * + COUNT ( * )
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9462
SELECT DISTINCT 50 * 2 * + - 82 + + CAST( NULL AS DECIMAL ) + + + 82 + + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9462
SELECT DISTINCT 50 * 2 * + - 82 + + CAST ( NULL AS REAL ) + + + 82 + + 33 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT ALL + 10 * - COUNT( * ) + - 72
----
-82

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL + 10 * - COUNT ( * ) + - 72
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9464
SELECT - CAST( - 17 AS SIGNED ) + - 44 * - 25 col2
----
1117

skipif mysql # not compatible
query I rowsort label-9464
SELECT - CAST ( - 17 AS INTEGER ) + - 44 * - 25 col2
----
1117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9465
SELECT ALL 6 * - 11 + + 38 AS col1, CAST( NULL AS SIGNED )
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-9465
SELECT ALL 6 * - 11 + + 38 AS col1, CAST ( NULL AS INTEGER )
----
-28
NULL

query I rowsort
SELECT DISTINCT + 98 * + 19
----
1862

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ALL + 31 * + COUNT( * ) + + + MAX( ALL - + 47 )
----
-16

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL + 31 * + COUNT ( * ) + + + MAX ( ALL - + 47 )
----
-16

query I rowsort
SELECT DISTINCT + ( + NULLIF ( + 22, - 61 ) )
----
22

query I rowsort
SELECT ALL - - 15 * + + 36 + - - 0
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT - - COUNT( * ) + + 27
----
28

skipif mysql # not compatible
query I rowsort label-9470
SELECT - - COUNT ( * ) + + 27
----
28

query I rowsort
SELECT + + 21 + + - 4 AS col1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9472
SELECT ALL + 15 DIV + 47 * + 74 DIV + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL + 15 / + 47 * + 74 / + + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT + - 46 + + 97 AS col2
----
51

query I rowsort
SELECT + 19 + 6
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9475
SELECT + - CAST( NULL AS SIGNED ) + + 45 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9475
SELECT + - CAST ( NULL AS INTEGER ) + + 45 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9476
SELECT - 24, 57 + - CAST( 42 AS SIGNED ) AS col2
----
-24
15

skipif mysql # not compatible
query II rowsort label-9476
SELECT - 24, 57 + - CAST ( 42 AS INTEGER ) AS col2
----
-24
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT + - COUNT( * ) + + 25 + - 30 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-9477
SELECT + - COUNT ( * ) + + 25 + - 30 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT - ( + + COUNT( * ) ) + 0 + + 99
----
98

skipif mysql # not compatible
query I rowsort label-9478
SELECT - ( + + COUNT ( * ) ) + 0 + + 99
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9479
SELECT + NULLIF ( - - ( + 49 ), + CAST( - - 89 AS SIGNED ) ) * 25
----
1225

skipif mysql # not compatible
query I rowsort label-9479
SELECT + NULLIF ( - - ( + 49 ), + CAST ( - - 89 AS INTEGER ) ) * 25
----
1225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9480
SELECT - CAST( NULL AS SIGNED ) * - MAX( - + 33 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9480
SELECT - CAST ( NULL AS INTEGER ) * - MAX ( - + 33 ) AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( - 79, - + 73 ) + - 57 col1
----
-136

query I rowsort
SELECT + 72 + 95 AS col2
----
167

onlyif mysql # aggregate syntax: 
query II rowsort label-9483
SELECT ALL - COUNT( * ) * + 55 AS col0, 59 + - 72 AS col1
----
-55
-13

skipif mysql # not compatible
query II rowsort label-9483
SELECT ALL - COUNT ( * ) * + 55 AS col0, 59 + - 72 AS col1
----
-55
-13

query I rowsort
SELECT ALL + 85 * + 50
----
4250

query I rowsort
SELECT ALL 54 + + 19
----
73

query I rowsort
SELECT DISTINCT 13 + 5 AS col0
----
18

query I rowsort
SELECT + 36 * ( + + 55 )
----
1980

query I rowsort
SELECT ALL + 86 * - + 22 * - 48 AS col1
----
90816

onlyif mysql # aggregate syntax: 
query II rowsort label-9489
SELECT + NULLIF ( + COUNT( * ), - 41 ) * - ( - - COUNT( * ) ) * - ( - + 49 ) AS col0, + 22
----
-49
22

skipif mysql # not compatible
query II rowsort label-9489
SELECT + NULLIF ( + COUNT ( * ), - 41 ) * - ( - - COUNT ( * ) ) * - ( - + 49 ) AS col0, + 22
----
-49
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9490
SELECT - 18 + 0 - NULLIF ( + 4, - 54 * + SUM( + 8 ) + + NULLIF ( - 1, ( CAST( NULL AS DECIMAL ) ) * 53 - 57 * + 80 * + AVG ( DISTINCT - - 18 ) * - 86 + COUNT( * ) * 45 / 80 ) ) * 64 + 8 - - 92 * + 85 + COUNT( * )
----
7555

skipif mysql # not compatible
query I rowsort label-9490
SELECT - 18 + 0 - NULLIF ( + 4, - 54 * + SUM ( + 8 ) + + NULLIF ( - 1, ( CAST ( NULL AS REAL ) ) * 53 - 57 * + 80 * + AVG ( DISTINCT - - 18 ) * - 86 + COUNT ( * ) * 45 / 80 ) ) * 64 + 8 - - 92 * + 85 + COUNT ( * )
----
7555

query I rowsort
SELECT ALL 88 + 6 + + 38 * - 83
----
-3060

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT MAX( - + 92 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-9492
SELECT MAX ( - + 92 ) AS col2
----
-92

query I rowsort
SELECT ALL + + 91 + + 27 AS col0
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9494
SELECT DISTINCT + COUNT( * ) - - COUNT( * ) * + 75 + 55 * - ( - - 13 ) - 4 + - 98 * + CAST( + 90 AS SIGNED ), + 63 AS col2
----
-9463
63

skipif mysql # not compatible
query II rowsort label-9494
SELECT DISTINCT + COUNT ( * ) - - COUNT ( * ) * + 75 + 55 * - ( - - 13 ) - 4 + - 98 * + CAST ( + 90 AS INTEGER ), + 63 AS col2
----
-9463
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT ALL - - MIN( ALL 75 )
----
75

skipif mysql # not compatible
query I rowsort label-9495
SELECT ALL - - MIN ( ALL 75 )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9496
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

query I rowsort
SELECT - 63 * + 17 - + 38 col1
----
-1109

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT 5 * 2 / 30 + - ( 44 ) - + 14 + + 33 * - COUNT( * ) + + - MAX( ALL - 74 ) - + 51 + - CASE - NULLIF ( + COUNT( * ), 99 ) WHEN 39 THEN NULL WHEN - - 36 THEN + 37 * - 96 + + 61 ELSE NULL END * 64 - + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9498
SELECT 5 * 2 / 30 + - ( 44 ) - + 14 + + 33 * - COUNT ( * ) + + - MAX ( ALL - 74 ) - + 51 + - CASE - NULLIF ( + COUNT ( * ), 99 ) WHEN 39 THEN NULL WHEN - - 36 THEN + 37 * - 96 + + 61 ELSE NULL END * 64 - + 37
----
NULL

query I rowsort
SELECT DISTINCT - 53 * + + 87 AS col0
----
-4611

query I rowsort
SELECT DISTINCT - - 49 - + + NULLIF ( ( + 27 ), - 35 / - + 44 / - - 43 + + 42 + 20 + - 75 )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9501
SELECT DISTINCT + 62 - - + 43 + - 2 * + 65 * + 9 + + 18 * 76 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT + 62 - - + 43 + - 2 * + 65 * + 9 + + 18 * 76 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT COUNT( DISTINCT 28 ) * - 81 col0
----
-81

skipif mysql # not compatible
query I rowsort label-9502
SELECT COUNT ( DISTINCT 28 ) * - 81 col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT 54 * + 85 * - COUNT( * ) + - 24 AS col2
----
-4614

skipif mysql # not compatible
query I rowsort label-9503
SELECT 54 * + 85 * - COUNT ( * ) + - 24 AS col2
----
-4614

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9504
SELECT - 79 * - 13, + ( CAST( + - 99 AS SIGNED ) ) AS col0
----
1027
-99

skipif mysql # not compatible
query II rowsort label-9504
SELECT - 79 * - 13, + ( CAST ( + - 99 AS INTEGER ) ) AS col0
----
1027
-99

query I rowsort
SELECT 53 + - 32
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9506
SELECT 48 DIV 69 * + 6 DIV + 5
----
0

skipif mysql # not compatible
query I rowsort label-9506
SELECT 48 / 69 * + 6 / + 5
----
0

query I rowsort
SELECT DISTINCT 49 + - - COALESCE ( 39, + + 53 )
----
88

query I rowsort
SELECT 67 - + ( + - 15 ) * + 79 * + 81
----
96052

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9509
SELECT - 43 col2, + NULLIF ( - CAST( + + 97 AS SIGNED ), 6 ) AS col2
----
-43
-97

skipif mysql # not compatible
query II rowsort label-9509
SELECT - 43 col2, + NULLIF ( - CAST ( + + 97 AS INTEGER ), 6 ) AS col2
----
-43
-97

query I rowsort
SELECT ALL - 44 + 70
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9511
SELECT ALL 54 + - 60 DIV + MIN( - 15 )
----
58

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL 54 + - 60 / + MIN ( - 15 )
----
58

query I rowsort
SELECT 54 * - 97
----
-5238

query I rowsort
SELECT 57 + + 25 AS col1
----
82

query II rowsort
SELECT 77 AS col1, + 95 AS col1
----
77
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9515
SELECT DISTINCT 66 + + 66 DIV - 37
----
65

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT 66 + + 66 / - 37
----
65

query I rowsort
SELECT 80 - - + 29 AS col0
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9517
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 75
----
NULL

query I rowsort
SELECT ALL 12 + - + 21 AS col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9519
SELECT 99 DIV + 69
----
1

skipif mysql # not compatible
query I rowsort label-9519
SELECT 99 / + 69
----
1

query I rowsort
SELECT ALL 94 * 47 AS col1
----
4418

query I rowsort
SELECT ALL - 91 * + - 93 * - + 7
----
-59241

query I rowsort
SELECT ALL 41 * + COALESCE ( 97, + 13 ) AS col2
----
3977

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9523
SELECT 59 * - SUM( - + 96 ) / - ( - ( - + CASE - COUNT( - 8 ) WHEN 33 THEN - NULLIF ( - 21, + + 67 + - 9 / 28 ) + - 70 + 45 + + 36 - ( - ( + 45 ) ) * + - 34 + - CASE - - 54 WHEN - 64 THEN - COALESCE ( - - COUNT( * ), + COUNT( * ) ) + + NULLIF ( + - COUNT( * ), 8 * - 98 - + - 63 + + + 0 * + + 57 * 9 ) END * + 41 * - + CAST( NULL AS DECIMAL ) WHEN - + 89 THEN - COUNT( * ) WHEN + 28 THEN NULL ELSE NULL END ) ) + - + AVG ( ALL 78 ) * - MAX( 83 ) + + 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9523
SELECT 59 * - SUM ( - + 96 ) / - ( - ( - + CASE - COUNT ( - 8 ) WHEN 33 THEN - NULLIF ( - 21, + + 67 + - 9 / 28 ) + - 70 + 45 + + 36 - ( - ( + 45 ) ) * + - 34 + - CASE - - 54 WHEN - 64 THEN - COALESCE ( - - COUNT ( * ), + COUNT ( * ) ) + + NULLIF ( + - COUNT ( * ), 8 * - 98 - + - 63 + + + 0 * + + 57 * 9 ) END * + 41 * - + CAST ( NULL AS REAL ) WHEN - + 89 THEN - COUNT ( * ) WHEN + 28 THEN NULL ELSE NULL END ) ) + - + AVG ( ALL 78 ) * - MAX ( 83 ) + + 65 AS col2
----
NULL

query I rowsort
SELECT 50 - - 53 * + + 42
----
2276

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT ALL 64 - - - COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL 64 - - - COUNT ( * ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT CASE 95 WHEN + - 81 * - ( MAX( ALL - 70 ) ) THEN - 61 END * - 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9526
SELECT CASE 95 WHEN + - 81 * - ( MAX ( ALL - 70 ) ) THEN - 61 END * - 51 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 86 AS col2
----
-86

query I rowsort
SELECT + 60 + 27
----
87

query I rowsort
SELECT 99 * + - 43 AS col1
----
-4257

onlyif mysql # DIV for integer division: 
query I rowsort label-9530
SELECT + 1 + - 89 + - 61 DIV 50 - 28 AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-9530
SELECT + 1 + - 89 + - 61 / 50 - 28 AS col2
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9531
SELECT ALL - + CASE WHEN - 47 <> - ( - CAST( 96 AS SIGNED ) ) * ( 85 ) + 55 + 90 AND NOT 89 IS NULL THEN + - COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL - + CASE WHEN - 47 <> - ( - CAST ( 96 AS INTEGER ) ) * ( 85 ) + 55 + 90 AND NOT 89 IS NULL THEN + - COUNT ( * ) END AS col0
----
1

query II rowsort
SELECT 3 AS col2, 19
----
3
19

query I rowsort
SELECT 91 + - - 21 AS col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT NULLIF ( - + COUNT( * ), - 63 * + 42 + + 7 ) * - 4 - + COUNT( * ) col2
----
3

skipif mysql # not compatible
query I rowsort label-9534
SELECT NULLIF ( - + COUNT ( * ), - 63 * + 42 + + 7 ) * - 4 - + COUNT ( * ) col2
----
3

query I rowsort
SELECT ALL + 6 + + 28 * + + 64
----
1798

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9536
SELECT ALL - - 96 * - COUNT( * ) - - 69 + + + 16 - - 66 DIV + - 41 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL - - 96 * - COUNT ( * ) - - 69 + + + 16 - - 66 / + - 41 AS col2
----
-12

query II rowsort
SELECT + 70 AS col2, + 8
----
70
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9538
SELECT ALL - CAST( - 84 AS SIGNED ) * + 31 * - 51
----
-132804

skipif mysql # not compatible
query I rowsort label-9538
SELECT ALL - CAST ( - 84 AS INTEGER ) * + 31 * - 51
----
-132804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9539
SELECT DISTINCT + COUNT( * ) + - CASE + 28 WHEN + 77 - - COUNT( ALL + 51 ) + - 73 * + 14 + - - 79 - 81 / 12 * - 70 THEN NULL WHEN + 53 * + 69 - 86 - CAST( + 47 AS SIGNED ) - 60 + - 28 THEN 78 ELSE + 81 END - + 20 + 72 * - 86
----
-6292

skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT + COUNT ( * ) + - CASE + 28 WHEN + 77 - - COUNT ( ALL + 51 ) + - 73 * + 14 + - - 79 - 81 / 12 * - 70 THEN NULL WHEN + 53 * + 69 - 86 - CAST ( + 47 AS INTEGER ) - 60 + - 28 THEN 78 ELSE + 81 END - + 20 + 72 * - 86
----
-6292

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT ALL MAX( DISTINCT + - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL MAX ( DISTINCT + - 9 )
----
-9

query I rowsort
SELECT ALL + 12 + + 82 AS col2
----
94

query I rowsort
SELECT 54 + + 21
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT ALL MAX( + - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL MAX ( + - 13 )
----
-13

query I rowsort
SELECT 64 + + 6 AS col1
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9545
SELECT - 99 AS col1, COUNT( * ) AS col2
----
-99
1

skipif mysql # not compatible
query II rowsort label-9545
SELECT - 99 AS col1, COUNT ( * ) AS col2
----
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT 2 + MAX( 35 )
----
37

skipif mysql # not compatible
query I rowsort label-9546
SELECT 2 + MAX ( 35 )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-9547
SELECT ALL + 22 DIV 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL + 22 / 36 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ALL + 13 + - CASE + COALESCE ( + - 87, - - COUNT( * ), - ( - + 74 ) ) WHEN 12 * - - 91 * 72 * - ( - + 49 ) THEN 3 ELSE NULL END + - 88 * + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL + 13 + - CASE + COALESCE ( + - 87, - - COUNT ( * ), - ( - + 74 ) ) WHEN 12 * - - 91 * 72 * - ( - + 49 ) THEN 3 ELSE NULL END + - 88 * + 39 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL 1 + SUM( - + ( + + 89 ) ) * 39
----
-3470

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL 1 + SUM ( - + ( + + 89 ) ) * 39
----
-3470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9550
SELECT DISTINCT - 77 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT - 77 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT CASE + 2 WHEN - + 76 * + 42 + 73 THEN + + 90 WHEN NULLIF ( 58, 52 + - 7 * 20 ) * - 60 + - 67 * + 63 THEN NULL END + - 60 + - 82 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9552
SELECT ALL 53 * 7 DIV - + 88
----
-4

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL 53 * 7 / - + 88
----
-4

query I rowsort
SELECT + 59 + + 90 AS col1
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-9554
SELECT 27 AS col1, + COUNT( - 78 )
----
27
1

skipif mysql # not compatible
query II rowsort label-9554
SELECT 27 AS col1, + COUNT ( - 78 )
----
27
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9555
SELECT - 75 AS col0, - CASE - 20 WHEN - ( + 67 ) THEN NULL WHEN - + 70 THEN 13 * + 54 + - MIN( DISTINCT - 5 ) + - - 81 + - 8 + + 6 / 56 WHEN - + 90 THEN NULL ELSE NULL END * - - CASE + COUNT( * ) WHEN - COUNT( * ) THEN - 31 * - + 5 WHEN 91 THEN - + CASE + + 46 WHEN - 11 THEN NULL WHEN - COALESCE ( - CASE ( + 28 ) WHEN AVG ( 98 ) THEN NULL WHEN + 21 THEN + CAST( NULL AS SIGNED ) END, + 40 ) THEN + 26 - 82 * - 34 WHEN - - 90 THEN NULL END END / + + 61 + 67 * - + 27 * 58 - - 48 * + - COALESCE ( - 93, + - CAST( + - 44 AS SIGNED ) + - 59, - 22 ) * + 94 AS col1
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-9555
SELECT - 75 AS col0, - CASE - 20 WHEN - ( + 67 ) THEN NULL WHEN - + 70 THEN 13 * + 54 + - MIN ( DISTINCT - 5 ) + - - 81 + - 8 + + 6 / 56 WHEN - + 90 THEN NULL ELSE NULL END * - - CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN - 31 * - + 5 WHEN 91 THEN - + CASE + + 46 WHEN - 11 THEN NULL WHEN - COALESCE ( - CASE ( + 28 ) WHEN AVG ( 98 ) THEN NULL WHEN + 21 THEN + CAST ( NULL AS INTEGER ) END, + 40 ) THEN + 26 - 82 * - 34 WHEN - - 90 THEN NULL END END / + + 61 + 67 * - + 27 * 58 - - 48 * + - COALESCE ( - 93, + - CAST ( + - 44 AS INTEGER ) + - 59, - 22 ) * + 94 AS col1
----
-75
NULL

query I rowsort
SELECT + 53 + - 48 + + - 22
----
-17

query I rowsort
SELECT + 11 * - ( - 21 )
----
231

query I rowsort
SELECT ALL 17 * 84 AS col2
----
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT + + 33 + - 56 + COUNT( * ) col1
----
-22

skipif mysql # not compatible
query I rowsort label-9559
SELECT + + 33 + - 56 + COUNT ( * ) col1
----
-22

query II rowsort
SELECT 81, - 38 AS col1
----
81
-38

query I rowsort
SELECT + - 64 * 99
----
-6336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9562
SELECT ALL + 4 * COALESCE ( - 70, + COUNT( * ) DIV 75 + - - MIN( - 8 ) + - - 37 + - + 97 + 54 - - 46 * 45 * + - 96 DIV + 87, - COUNT( * ) - + + COALESCE ( 56, + 59 * - 35 DIV - 91 DIV - 12 * - 62, - + 70 + + SUM( - 0 ) ) * - 55 + - - 33 )
----
-280

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL + 4 * COALESCE ( - 70, + COUNT ( * ) / 75 + - - MIN ( - 8 ) + - - 37 + - + 97 + 54 - - 46 * 45 * + - 96 / + 87, - COUNT ( * ) - + + COALESCE ( 56, + 59 * - 35 / - 91 / - 12 * - 62, - + 70 + + SUM ( - 0 ) ) * - 55 + - - 33 )
----
-280

onlyif mysql # DIV for integer division: 
query I rowsort label-9563
SELECT ALL ( 90 ) DIV - + 44 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL ( 90 ) / - + 44 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9564
SELECT DISTINCT + CAST( - 18 AS SIGNED ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-9564
SELECT DISTINCT + CAST ( - 18 AS INTEGER ) AS col2
----
-18

query I rowsort
SELECT DISTINCT - 59 * + 74 * 13 * - 94 + 51
----
5335303

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT ALL + SUM( - + 53 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-9566
SELECT ALL + SUM ( - + 53 ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT ALL ( - + 49 ) * + COUNT( * ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL ( - + 49 ) * + COUNT ( * ) AS col0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-9568
SELECT - - 15 DIV + 87 - 56 + + 28 + + 10 + + + 71 + + 53 DIV + + 47 + 75 + + - 47 + - 82
----
0

skipif mysql # not compatible
query I rowsort label-9568
SELECT - - 15 / + 87 - 56 + + 28 + + 10 + + + 71 + + 53 / + + 47 + 75 + + - 47 + - 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT DISTINCT 6 * COUNT( * ) + + 68 - - + 68 + + ( - + 15 ) + COUNT( * ) * - + 34 + + 34 - + 67 * - - 33 col1
----
-2084

skipif mysql # not compatible
query I rowsort label-9569
SELECT DISTINCT 6 * COUNT ( * ) + + 68 - - + 68 + + ( - + 15 ) + COUNT ( * ) * - + 34 + + 34 - + 67 * - - 33 col1
----
-2084

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9570
SELECT ALL + - CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) * 40 col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9570
SELECT ALL + - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * 40 col2
----
NULL
NULL

query I rowsort
SELECT + ( + 75 ) col0
----
75

query I rowsort
SELECT ALL ( - 43 ) * 81 + + 87 + 83 * 13 + ( - - 89 ) AS col0
----
-2228

query I rowsort
SELECT ALL 10 * + 26 + - ( - 82 ) AS col0
----
342

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9574
SELECT COUNT( DISTINCT - 96 ) AS col1, - ( - 11 ) DIV 33 - + 75 AS col1
----
1
-75

skipif mysql # not compatible
query II rowsort label-9574
SELECT COUNT ( DISTINCT - 96 ) AS col1, - ( - 11 ) / 33 - + 75 AS col1
----
1
-75

query I rowsort
SELECT 26 * - ( 10 ) + + 93
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT - ( COUNT( DISTINCT - 2 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9576
SELECT - ( COUNT ( DISTINCT - 2 ) )
----
-1

query I rowsort
SELECT - 19 + + 34 AS col1
----
15

query I rowsort
SELECT ALL + 81 + 35 col2
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9579
SELECT ALL + COUNT( * ) * COUNT( DISTINCT 32 ) DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL + COUNT ( * ) * COUNT ( DISTINCT 32 ) / - 74
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9580
SELECT ALL - 64 - - CAST( NULL AS SIGNED ) + + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL - 64 - - CAST ( NULL AS INTEGER ) + + 5 AS col0
----
NULL

query I rowsort
SELECT - 53 * + + 3
----
-159

query I rowsort
SELECT DISTINCT ( - + 55 )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9583
SELECT DISTINCT + MAX( + 56 ) DIV ( - COUNT( * ) )
----
-56

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT + MAX ( + 56 ) / ( - COUNT ( * ) )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9584
SELECT - + 93 DIV - 83 - - MAX( DISTINCT - 1 ) * 63 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-9584
SELECT - + 93 / - 83 - - MAX ( DISTINCT - 1 ) * 63 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT - 29 - - 0 * + 7 * - MIN( + 39 ) - - 93 col0
----
64

skipif mysql # not compatible
query I rowsort label-9585
SELECT - 29 - - 0 * + 7 * - MIN ( + 39 ) - - 93 col0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9586
SELECT - - 18 * 33 - 28 + + 79 * NULLIF ( + 35, - - 15 ) + - - 33 DIV + - COALESCE ( + + 80, + COUNT( * ) * - - 92 + ( + - 85 ) ) + - 99
----
3232

skipif mysql # not compatible
query I rowsort label-9586
SELECT - - 18 * 33 - 28 + + 79 * NULLIF ( + 35, - - 15 ) + - - 33 / + - COALESCE ( + + 80, + COUNT ( * ) * - - 92 + ( + - 85 ) ) + - 99
----
3232

onlyif mysql # aggregate syntax: 
query II rowsort label-9587
SELECT ALL 73 * 4 * - COUNT( * ) + - - 31 + NULLIF ( 45, + 63 ) AS col2, 78 col2
----
-216
78

skipif mysql # not compatible
query II rowsort label-9587
SELECT ALL 73 * 4 * - COUNT ( * ) + - - 31 + NULLIF ( 45, + 63 ) AS col2, 78 col2
----
-216
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9588
SELECT DISTINCT - + 29 * ( - CASE + 8 WHEN + - 49 * + 62 + + 10 DIV 7 + - + 49 * + 50 THEN - + 17 ELSE - NULLIF ( 34, 91 - - + COUNT( * ) ) DIV COUNT( * ) END )
----
-986

skipif mysql # not compatible
query I rowsort label-9588
SELECT DISTINCT - + 29 * ( - CASE + 8 WHEN + - 49 * + 62 + + 10 / 7 + - + 49 * + 50 THEN - + 17 ELSE - NULLIF ( 34, 91 - - + COUNT ( * ) ) / COUNT ( * ) END )
----
-986

query I rowsort
SELECT DISTINCT + CASE 34 WHEN + 67 THEN + - 83 - + AVG ( 78 ) WHEN + 17 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9590
SELECT - 96 * - + 77 * + - MAX( DISTINCT + - ( + - 1 ) ) * 83 + CAST( NULL AS SIGNED ) + MAX( ALL 74 ) + - 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9590
SELECT - 96 * - + 77 * + - MAX ( DISTINCT + - ( + - 1 ) ) * 83 + CAST ( NULL AS INTEGER ) + MAX ( ALL 74 ) + - 65 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9591
SELECT - + 92 + - ( CAST( - + COUNT( * ) AS SIGNED ) )
----
-91

skipif mysql # not compatible
query I rowsort label-9591
SELECT - + 92 + - ( CAST ( - + COUNT ( * ) AS INTEGER ) )
----
-91

query I rowsort
SELECT + - 86 * + 99 AS col1
----
-8514

query I rowsort
SELECT ALL + 70 * - + 29
----
-2030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9594
SELECT ALL + 98 / - CASE + + COUNT( DISTINCT + 94 ) WHEN 8 THEN NULL WHEN COUNT( * ) * + 99 THEN - 51 ELSE NULL END + + 39 + CAST( NULL AS SIGNED ) + + 32 + + COUNT( ALL + 73 ) * - + 94 + - 48 * + - 40 * 19 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL + 98 / - CASE + + COUNT ( DISTINCT + 94 ) WHEN 8 THEN NULL WHEN COUNT ( * ) * + 99 THEN - 51 ELSE NULL END + + 39 + CAST ( NULL AS INTEGER ) + + 32 + + COUNT ( ALL + 73 ) * - + 94 + - 48 * + - 40 * 19 * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + 59 + - 26 col2
----
33

query I rowsort
SELECT ALL + - 98 col2
----
-98

query I rowsort
SELECT + + 76 * 49 * + CASE - 76 WHEN - ( + ( 52 ) ) THEN NULL WHEN 89 THEN NULL ELSE + - 52 + 39 END + + 5 AS col0
----
-48407

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT ALL 24 * COUNT( * ) + ( + 52 ) * 40 AS col1
----
2104

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL 24 * COUNT ( * ) + ( + 52 ) * 40 AS col1
----
2104

query II rowsort
SELECT ALL + 19 col0, 32 * + 54 AS col0
----
19
1728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9600
SELECT + CAST( NULL AS SIGNED ) * + - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT + CAST ( NULL AS INTEGER ) * + - 97 AS col0
----
NULL

query I rowsort
SELECT ALL 32 * - 89 AS col2
----
-2848

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT ( + + CASE - 71 WHEN + 58 + - 8 + 47 + COUNT( * ) * + 54 THEN - 54 ELSE ( 17 ) END )
----
17

skipif mysql # not compatible
query I rowsort label-9602
SELECT ( + + CASE - 71 WHEN + 58 + - 8 + 47 + COUNT ( * ) * + 54 THEN - 54 ELSE ( 17 ) END )
----
17

query I rowsort
SELECT + 96 * 82 * 19
----
149568

onlyif mysql # DIV for integer division: 
query I rowsort label-9604
SELECT + 2 + 72 DIV 9
----
10

skipif mysql # not compatible
query I rowsort label-9604
SELECT + 2 + 72 / 9
----
10

query I rowsort
SELECT DISTINCT 25 * + 95
----
2375

query I rowsort
SELECT ( + + ( + 99 ) ) * 10 - - - 20
----
970

query I rowsort
SELECT ALL 96 * - 32 AS col1
----
-3072

query II rowsort
SELECT ALL 51 AS col1, 46 AS col0
----
51
46

query II rowsort
SELECT 85 col2, - 70
----
85
-70

query I rowsort
SELECT DISTINCT 89 * + 38 AS col2
----
3382

query I rowsort
SELECT 18 * 68
----
1224

query II rowsort
SELECT ALL 61 AS col2, 15 AS col1
----
61
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT + COUNT( 99 ) * + COUNT( * ) + + 79 col1
----
80

skipif mysql # not compatible
query I rowsort label-9613
SELECT + COUNT ( 99 ) * + COUNT ( * ) + + 79 col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9614
SELECT 98 + - 71 + 17 DIV - 45 * - + 37
----
27

skipif mysql # not compatible
query I rowsort label-9614
SELECT 98 + - 71 + 17 / - 45 * - + 37
----
27

query I rowsort
SELECT 34 + 84 AS col0
----
118

query II rowsort
SELECT 17 AS col0, + 10
----
17
10

query I rowsort
SELECT ALL + 87 * 55 AS col0
----
4785

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT ALL + COALESCE ( 21, 42, - 78 * + + 9 * + - 62 - 72 ) * + COUNT( * ) * + - 71 + 53
----
-1438

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL + COALESCE ( 21, 42, - 78 * + + 9 * + - 62 - 72 ) * + COUNT ( * ) * + - 71 + 53
----
-1438

query I rowsort
SELECT ALL - ( 21 ) * 76 AS col1
----
-1596

query I rowsort
SELECT + ( + 0 ) + - 67 AS col0
----
-67

query II rowsort
SELECT - + 61 AS col0, 93 + - 55 - 38 * - + 58
----
-61
2242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9622
SELECT + 54 DIV + + COUNT( * ) + + COUNT( * ) * COUNT( * ) - - ( COUNT( * ) ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9622
SELECT + 54 / + + COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) - - ( COUNT ( * ) ) AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9623
SELECT ALL + 76 + + + CASE + COALESCE ( - + 2, + 17, - + COUNT( * ) * - 39 * + 10 * - 61 ) WHEN + - 83 * + COUNT( * ) THEN - + 42 WHEN 66 * 25 THEN - - CAST( - SUM( DISTINCT - 42 ) AS SIGNED ) * - - 43 ELSE NULL END - - + 76 * + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL + 76 + + + CASE + COALESCE ( - + 2, + 17, - + COUNT ( * ) * - 39 * + 10 * - 61 ) WHEN + - 83 * + COUNT ( * ) THEN - + 42 WHEN 66 * 25 THEN - - CAST ( - SUM ( DISTINCT - 42 ) AS INTEGER ) * - - 43 ELSE NULL END - - + 76 * + 97
----
NULL

query I rowsort
SELECT ALL + 85 + 11
----
96

query I rowsort
SELECT ALL - + 64 + - ( + + 89 ) * + 76 + - NULLIF ( - 81, + + 23 )
----
-6747

query I rowsort
SELECT - 29 * + 19
----
-551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9627
SELECT ALL - - CAST( + 45 AS SIGNED ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL - - CAST ( + 45 AS INTEGER ) AS col0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9628
SELECT DISTINCT - 93 DIV - COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-9628
SELECT DISTINCT - 93 / - COUNT ( * )
----
93

query I rowsort
SELECT DISTINCT - 82 + + + 35
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT ALL - + CASE + 62 WHEN - 6 THEN 26 * + + COUNT( * ) * - 69 END + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL - + CASE + 62 WHEN - 6 THEN 26 * + + COUNT ( * ) * - 69 END + 15 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - - 31 AS col1, 67
----
31
67

query I rowsort
SELECT + 70 * + + 25 * - + NULLIF ( + 8, 65 )
----
-14000

onlyif mysql # aggregate syntax: 
query II rowsort label-9633
SELECT - - NULLIF ( 69, - 8 ) * MIN( ALL ( - + 98 ) ) - + 10 * 74 AS col0, 56 + + 98 AS col1
----
-7502
154

skipif mysql # not compatible
query II rowsort label-9633
SELECT - - NULLIF ( 69, - 8 ) * MIN ( ALL ( - + 98 ) ) - + 10 * 74 AS col0, 56 + + 98 AS col1
----
-7502
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9634
SELECT + CAST( - ( - - ( - 35 ) ) AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-9634
SELECT + CAST ( - ( - - ( - 35 ) ) AS INTEGER )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9635
SELECT ALL - + 53, + ( + COUNT( * ) ) + + 98 + - + 92 + + - 61 DIV + 21 AS col2
----
-53
5

skipif mysql # not compatible
query II rowsort label-9635
SELECT ALL - + 53, + ( + COUNT ( * ) ) + + 98 + - + 92 + + - 61 / + 21 AS col2
----
-53
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT + NULLIF ( - COUNT( ALL + - 37 ), - 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-9636
SELECT + NULLIF ( - COUNT ( ALL + - 37 ), - 9 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT ALL + COUNT( * ) * + 42
----
42

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL + COUNT ( * ) * + 42
----
42

query I rowsort
SELECT DISTINCT - 81 - 24 + - ( + + 0 ) * - 4 - - - 96 AS col1
----
-201

query I rowsort
SELECT ALL + 26 - 39 AS col2
----
-13

query I rowsort
SELECT ALL 84 - - ( - - 60 ) - - 0
----
144

query I rowsort
SELECT ALL + 36 * 11 AS col0
----
396

query I rowsort
SELECT DISTINCT ( + 77 ) - 24 AS col2
----
53

query I rowsort
SELECT 64 * - + ( 94 ) + + - 68 AS col0
----
-6084

query I rowsort
SELECT 18 * 14 col1
----
252

onlyif mysql # DIV for integer division: 
query I rowsort label-9645
SELECT ALL 42 DIV - - 99 * - 84 * - 43
----
0

skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL 42 / - - 99 * - 84 * - 43
----
0

query I rowsort
SELECT + 82 * + + 52 + - + ( + + 53 ) * 2 AS col2
----
4158

query I rowsort
SELECT DISTINCT 77 * + - 65 * 5 AS col1
----
-25025

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT COUNT( * ) * ( + MIN( - 17 ) ) - + + 13 + - COUNT( ALL - 42 ) * + - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-9648
SELECT COUNT ( * ) * ( + MIN ( - 17 ) ) - + + 13 + - COUNT ( ALL - 42 ) * + - COUNT ( * )
----
-29

query II rowsort
SELECT ALL 94 * - 31 AS col2, - 18 AS col1
----
-2914
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9650
SELECT 8 DIV MAX( ALL - 68 ) * 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9650
SELECT 8 / MAX ( ALL - 68 ) * 31 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9651
SELECT COALESCE ( - ( 10 ), + NULLIF ( + + 93, 85 + + 91 + + COUNT( * ) + 37 + + 21 ) DIV 75 DIV 34 + - 10 - + - 65, COUNT( * ), - COALESCE ( 83, - 7 - - 3 + 0 ) ) * 37 DIV 39 * COUNT( + 57 )
----
-9

skipif mysql # not compatible
query I rowsort label-9651
SELECT COALESCE ( - ( 10 ), + NULLIF ( + + 93, 85 + + 91 + + COUNT ( * ) + 37 + + 21 ) / 75 / 34 + - 10 - + - 65, COUNT ( * ), - COALESCE ( 83, - 7 - - 3 + 0 ) ) * 37 / 39 * COUNT ( + 57 )
----
-9

query I rowsort
SELECT 33 * + - 9 AS col0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT COUNT( * ) * 16 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9653
SELECT COUNT ( * ) * 16 AS col1
----
16

query I rowsort
SELECT - 64 - + 11 AS col0
----
-75

query I rowsort
SELECT ALL 30 + 77 + + 70 AS col2
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT ALL - - COUNT( * ) + - - 61 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL - - COUNT ( * ) + - - 61 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT - - MIN( ALL + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-9657
SELECT - - MIN ( ALL + 13 )
----
13

query I rowsort
SELECT ALL + 78 + - - 33 + + + 56 * + 52 + - 20 AS col1
----
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT ALL - + CASE - 80 WHEN + COALESCE ( 33, + 5 - + 9 * 16 ) THEN NULL ELSE - SUM( - - 60 ) + - - 90 END col2
----
-30

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL - + CASE - 80 WHEN + COALESCE ( 33, + 5 - + 9 * 16 ) THEN NULL ELSE - SUM ( - - 60 ) + - - 90 END col2
----
-30

query II rowsort
SELECT DISTINCT - - ( - 35 ) AS col1, + 23
----
-35
23

query I rowsort
SELECT - 94 + 73 * + ( + 80 ) AS col0
----
5746

query I rowsort
SELECT DISTINCT - 87 * 71 AS col0
----
-6177

onlyif mysql # aggregate syntax: 
query II rowsort label-9663
SELECT + - 39 * 93 * - COUNT( - + 1 ) + + ( 47 ) * + 40 AS col1, 7
----
5507
7

skipif mysql # not compatible
query II rowsort label-9663
SELECT + - 39 * 93 * - COUNT ( - + 1 ) + + ( 47 ) * + 40 AS col1, 7
----
5507
7

query I rowsort
SELECT - 77 - - - 36
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9665
SELECT 48 DIV - 1 + + CAST( - MAX( ALL + + 72 ) AS SIGNED ) DIV + COUNT( * ) + - 97 * + 17 AS col1
----
-1769

skipif mysql # not compatible
query I rowsort label-9665
SELECT 48 / - 1 + + CAST ( - MAX ( ALL + + 72 ) AS INTEGER ) / + COUNT ( * ) + - 97 * + 17 AS col1
----
-1769

query I rowsort
SELECT ALL 45 * + 67 - - 12 AS col2
----
3027

query II rowsort
SELECT - + 32 * 54 AS col0, 79 AS col2
----
-1728
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9668
SELECT - ( COALESCE ( + - COUNT( * ), 38 * - 95, + CAST( - 93 AS SIGNED ) / - + 81 / + 2 * + - 22 ) ) + COUNT( * ) + - 19 * - 33 + - + ( COUNT( * ) ) + + CASE COALESCE ( + - NULLIF ( + 0, 63 * NULLIF ( - + 67, + 6 + - COALESCE ( 20, - 65 ) + - - 74 + + NULLIF ( + + ( - CAST( NULL AS SIGNED ) ), + - 31 * + COUNT( + CASE 71 WHEN - - 48 + - + 23 - + 13 / 77 THEN NULL WHEN - 55 THEN NULL ELSE + CASE WHEN NOT 49 IS NULL THEN 61 END END ) + + SUM( + 53 ) ) / - COUNT( * ) / - 91 ) + + 15 * + - 22 ), - + COUNT( * ) * CASE 32 WHEN + CAST( NULL AS SIGNED ) / + 13 THEN 7 + - 20 WHEN + 21 THEN + SUM( 2 ) ELSE NULL END ) WHEN NULLIF ( + 96, 54 ) THEN COUNT( * ) WHEN 71 THEN 14 / - MIN( DISTINCT 17 ) END - ( + 72 ) * - 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9668
SELECT - ( COALESCE ( + - COUNT ( * ), 38 * - 95, + CAST ( - 93 AS INTEGER ) / - + 81 / + 2 * + - 22 ) ) + COUNT ( * ) + - 19 * - 33 + - + ( COUNT ( * ) ) + + CASE COALESCE ( + - NULLIF ( + 0, 63 * NULLIF ( - + 67, + 6 + - COALESCE ( 20, - 65 ) + - - 74 + + NULLIF ( + + ( - CAST ( NULL AS INTEGER ) ), + - 31 * + COUNT ( + CASE 71 WHEN - - 48 + - + 23 - + 13 / 77 THEN NULL WHEN - 55 THEN NULL ELSE + CASE WHEN NOT 49 IS NULL THEN 61 END END ) + + SUM ( + 53 ) ) / - COUNT ( * ) / - 91 ) + + 15 * + - 22 ), - + COUNT ( * ) * CASE 32 WHEN + CAST ( NULL AS INTEGER ) / + 13 THEN 7 + - 20 WHEN + 21 THEN + SUM ( 2 ) ELSE NULL END ) WHEN NULLIF ( + 96, 54 ) THEN COUNT ( * ) WHEN 71 THEN 14 / - MIN ( DISTINCT 17 ) END - ( + 72 ) * - 79 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT - ( MIN( - 27 ) ) + - - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-9669
SELECT - ( MIN ( - 27 ) ) + - - COUNT ( * )
----
28

query I rowsort
SELECT ALL + ( + + 2 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT ALL - MIN( - 13 ) * - - COUNT( * ) * - + 93
----
-1209

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL - MIN ( - 13 ) * - - COUNT ( * ) * - + 93
----
-1209

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT - MAX( DISTINCT 18 ) + + 32 + + 24 * - + COUNT( * ) * - COUNT( * ) * - - 1
----
38

skipif mysql # not compatible
query I rowsort label-9672
SELECT - MAX ( DISTINCT 18 ) + + 32 + + 24 * - + COUNT ( * ) * - COUNT ( * ) * - - 1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9673
SELECT - 60 * - - 28 DIV - 7 AS col0
----
240

skipif mysql # not compatible
query I rowsort label-9673
SELECT - 60 * - - 28 / - 7 AS col0
----
240

query I rowsort
SELECT ALL + ( - - 70 ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT ALL + MIN( ALL - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL + MIN ( ALL - 23 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT DISTINCT + SUM( DISTINCT 13 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-9676
SELECT DISTINCT + SUM ( DISTINCT 13 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT - 24 * - - NULLIF ( + + 5, - - 54 + - 58 * - + SUM( + - 64 ) ) AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-9677
SELECT - 24 * - - NULLIF ( + + 5, - - 54 + - 58 * - + SUM ( + - 64 ) ) AS col0
----
-120

query I rowsort
SELECT DISTINCT - 87 * + 90
----
-7830

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT SUM( 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-9679
SELECT SUM ( 34 ) AS col1
----
34

query II rowsort
SELECT ALL 15 col2, - ( - - 23 ) col0
----
15
-23

query I rowsort
SELECT 24 * + + 7 * + - 67 * - 61 * - 94 * - + 6 + - + 65
----
387251359

query I rowsort
SELECT DISTINCT - 87 * 51
----
-4437

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9683
SELECT ALL CASE NULLIF ( + 83, + - NULLIF ( COUNT( * ), + NULLIF ( + 73, 94 ) * + COUNT( * ) * + 43 + - COUNT( * ) * 0 * - + 83 * 88 - - + 29 / COALESCE ( + COUNT( * ), + COUNT( * ) / - + 10 ) + 12 + - 74 ) - - - 84 - - 42 ) WHEN + - 56 - + + CAST( - ( - - COUNT( * ) ) AS SIGNED ) - - 44 + 98 THEN 47 * + 69 WHEN - 1 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL CASE NULLIF ( + 83, + - NULLIF ( COUNT ( * ), + NULLIF ( + 73, 94 ) * + COUNT ( * ) * + 43 + - COUNT ( * ) * 0 * - + 83 * 88 - - + 29 / COALESCE ( + COUNT ( * ), + COUNT ( * ) / - + 10 ) + 12 + - 74 ) - - - 84 - - 42 ) WHEN + - 56 - + + CAST ( - ( - - COUNT ( * ) ) AS INTEGER ) - - 44 + 98 THEN 47 * + 69 WHEN - 1 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT - 70 + + 67 + - + COUNT( ALL - + 30 ) * CASE + - 17 WHEN - + ( - SUM( - 98 ) ) THEN - MIN( - 42 ) - 88 - - NULLIF ( + NULLIF ( ( 77 ), 19 - - 19 + 31 * ( - 97 ) + - 71 ), COUNT( 33 ) - COALESCE ( 46, - 84 * - - 17 - + 88 + - ( + - 45 ) * + 50 * - + 84 * - 34, + + 92 ) ) END * + - 23 + - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-9684
SELECT - 70 + + 67 + - + COUNT ( ALL - + 30 ) * CASE + - 17 WHEN - + ( - SUM ( - 98 ) ) THEN - MIN ( - 42 ) - 88 - - NULLIF ( + NULLIF ( ( 77 ), 19 - - 19 + 31 * ( - 97 ) + - 71 ), COUNT ( 33 ) - COALESCE ( 46, - 84 * - - 17 - + 88 + - ( + - 45 ) * + 50 * - + 84 * - 34, + + 92 ) ) END * + - 23 + - 35
----
NULL

query I rowsort
SELECT + 29 * 69 AS col2
----
2001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9686
SELECT ALL 41 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9686
SELECT ALL 41 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT - MIN( 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9687
SELECT - MIN ( 37 ) AS col1
----
-37

query I rowsort
SELECT - 34 + - 77
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT + NULLIF ( + 36, COUNT( * ) ) - 95 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9689
SELECT + NULLIF ( + 36, COUNT ( * ) ) - 95 AS col0
----
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9690
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9690
SELECT DISTINCT CAST ( NULL AS REAL ) + 1 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9691
SELECT - 11 DIV - 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9691
SELECT - 11 / - 75 AS col0
----
0

query I rowsort
SELECT ALL 22 + 43 col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT - MIN( ALL 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9693
SELECT - MIN ( ALL 37 ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT DISTINCT - COUNT( * ) + + 7
----
6

skipif mysql # not compatible
query I rowsort label-9694
SELECT DISTINCT - COUNT ( * ) + + 7
----
6

query I rowsort
SELECT + 63 * + 2
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9696
SELECT ALL - CAST( NULL AS SIGNED ) + + 33 * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL - CAST ( NULL AS INTEGER ) + + 33 * 41
----
NULL

query I rowsort
SELECT ALL 45 * + CASE 73 * NULLIF ( 24, 69 ) WHEN 79 THEN AVG ( 9 ) / + 17 WHEN 65 + 12 THEN ( 52 ) END
----
NULL

query I rowsort
SELECT + 57 + 13
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT ALL 68 + COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL 68 + COUNT ( * ) AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9700
SELECT ALL 27 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL 27 / + 69
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9701
SELECT DISTINCT 74 - 7 DIV 41 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-9701
SELECT DISTINCT 74 - 7 / 41 AS col2
----
74

query I rowsort
SELECT - 3 + + 58 * + 2
----
113

query I rowsort
SELECT ALL 9 - 63 * 44
----
-2763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9704
SELECT CAST( 61 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-9704
SELECT CAST ( 61 AS INTEGER )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9705
SELECT DISTINCT 2 * - SUM( DISTINCT 34 DIV - ( CASE + 21 WHEN 45 * 61 THEN NULL ELSE - 83 END ) )
----
0

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT 2 * - SUM ( DISTINCT 34 / - ( CASE + 21 WHEN 45 * 61 THEN NULL ELSE - 83 END ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT ALL + SUM( 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL + SUM ( 36 ) AS col1
----
36

query I rowsort
SELECT DISTINCT - 81 * - ( - 59 )
----
-4779

query I rowsort
SELECT DISTINCT 31 * 67
----
2077

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT ( MAX( 21 ) )
----
21

skipif mysql # not compatible
query I rowsort label-9709
SELECT ( MAX ( 21 ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT - 61 * SUM( 87 )
----
-5307

skipif mysql # not compatible
query I rowsort label-9710
SELECT - 61 * SUM ( 87 )
----
-5307

query I rowsort
SELECT DISTINCT 66 * + 33
----
2178

query I rowsort
SELECT + 31 * 51 - 56
----
1525

query I rowsort
SELECT ( 77 )
----
77

query I rowsort
SELECT ALL 1 * - ( - 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT + COUNT( * ) - - 42 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9715
SELECT + COUNT ( * ) - - 42 AS col0
----
43

query I rowsort
SELECT DISTINCT - 87 * + 62 + + 78 * 65 AS col2
----
-324

query I rowsort
SELECT ALL - ( 46 ) * - 39 + 53 * 34 col2
----
3596

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT 37 * + 35 - + COALESCE ( - 12, 12 * 58 ) * COUNT( * ) AS col0
----
1307

skipif mysql # not compatible
query I rowsort label-9718
SELECT 37 * + 35 - + COALESCE ( - 12, 12 * 58 ) * COUNT ( * ) AS col0
----
1307

query I rowsort
SELECT - 29 * + 84 AS col2
----
-2436

query I rowsort
SELECT ALL + 1 * 23
----
23

query I rowsort
SELECT COALESCE ( + 83, 47 * - 87 ) AS col2
----
83

query I rowsort
SELECT ALL + 60 * 33 + 4
----
1984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9723
SELECT 38 * CAST( NULL AS SIGNED ) + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-9723
SELECT 38 * CAST ( NULL AS INTEGER ) + 57
----
NULL

query I rowsort
SELECT - 35 * 13
----
-455

query I rowsort
SELECT - 94 + 0 AS col0
----
-94

query I rowsort
SELECT - + 78 + 78 * + 78
----
6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9727
SELECT 19 * + COALESCE ( 19 * - ( CAST( CASE + 41 WHEN 18 / 35 THEN NULL ELSE 65 END AS SIGNED ) ), - 78 ) - 45 AS col2
----
-23510

skipif mysql # not compatible
query I rowsort label-9727
SELECT 19 * + COALESCE ( 19 * - ( CAST ( CASE + 41 WHEN 18 / 35 THEN NULL ELSE 65 END AS INTEGER ) ), - 78 ) - 45 AS col2
----
-23510

query I rowsort
SELECT ALL - 14 * - 37 AS col1
----
518

query I rowsort
SELECT DISTINCT - + NULLIF ( 69, + 85 / - 22 + - 10 ) * - 65 AS col1
----
4485

onlyif mysql # DIV for integer division: 
query I rowsort label-9730
SELECT DISTINCT - 64 + ( 61 ) DIV - 69 col1
----
-64

skipif mysql # not compatible
query I rowsort label-9730
SELECT DISTINCT - 64 + ( 61 ) / - 69 col1
----
-64

query I rowsort
SELECT - - 59 + 86
----
145

query I rowsort
SELECT DISTINCT ( ( 1 ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9733
SELECT ALL + 31 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL + 31 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT - - MIN( 2 ) - COUNT( 66 + 39 )
----
1

skipif mysql # not compatible
query I rowsort label-9734
SELECT - - MIN ( 2 ) - COUNT ( 66 + 39 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT - COUNT( ALL 30 ) * - 63
----
63

skipif mysql # not compatible
query I rowsort label-9735
SELECT - COUNT ( ALL 30 ) * - 63
----
63

query I rowsort
SELECT + 36 * + 33 col0
----
1188

query I rowsort
SELECT ALL + 70 - - 13
----
83

query I rowsort
SELECT ALL + 37 * 8 col2
----
296

query I rowsort
SELECT ALL 42 * 71
----
2982

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9740
SELECT 31 - - NULLIF ( 54 - 82, CAST( - 5 AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-9740
SELECT 31 - - NULLIF ( 54 - 82, CAST ( - 5 AS INTEGER ) )
----
3

query I rowsort
SELECT - NULLIF ( + 32, + 71 ) - 99 * 87 AS col2
----
-8645

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT ALL + SUM( - 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-9742
SELECT ALL + SUM ( - 90 ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT DISTINCT - COUNT( * ) * - 24 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-9743
SELECT DISTINCT - COUNT ( * ) * - 24 AS col1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9744
SELECT COALESCE ( - COUNT( * ), + COUNT( * ) ) DIV + 33
----
0

skipif mysql # not compatible
query I rowsort label-9744
SELECT COALESCE ( - COUNT ( * ), + COUNT ( * ) ) / + 33
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9745
SELECT 83 + + 69 + - ( + 69 + 60 ) DIV MAX( + 35 )
----
149

skipif mysql # not compatible
query I rowsort label-9745
SELECT 83 + + 69 + - ( + 69 + 60 ) / MAX ( + 35 )
----
149

query I rowsort
SELECT + 64 * 20 + + 71
----
1351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9747
SELECT CAST( NULL AS SIGNED ) - ( MAX( DISTINCT + 92 ) ) + + 15 * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT CAST ( NULL AS INTEGER ) - ( MAX ( DISTINCT + 92 ) ) + + 15 * + 8
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9748
SELECT 41 DIV + - 64 + 78 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-9748
SELECT 41 / + - 64 + 78 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT COUNT( * ) * + COUNT( * ) - 3 * - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-9749
SELECT COUNT ( * ) * + COUNT ( * ) - 3 * - COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT DISTINCT - MIN( 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT - MIN ( 11 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT DISTINCT COUNT( * ) + + 39 + 64 col0
----
104

skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT COUNT ( * ) + + 39 + 64 col0
----
104

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9752
SELECT ALL CAST( - 66 AS SIGNED ) + 80 DIV NULLIF ( - 63, 22 + AVG ( ALL 97 ) ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL CAST ( - 66 AS INTEGER ) + 80 / NULLIF ( - 63, 22 + AVG ( ALL 97 ) ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT 18 + COUNT( * ) * + ( + 47 * + 51 ) AS col1
----
2415

skipif mysql # not compatible
query I rowsort label-9753
SELECT 18 + COUNT ( * ) * + ( + 47 * + 51 ) AS col1
----
2415

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT ALL NULLIF ( + COUNT( * ), - MIN( - 30 ) ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL NULLIF ( + COUNT ( * ), - MIN ( - 30 ) ) + + COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9755
SELECT COALESCE ( - - 60, + CAST( NULL AS SIGNED ) * 97 ) + ( + 1 )
----
61

skipif mysql # not compatible
query I rowsort label-9755
SELECT COALESCE ( - - 60, + CAST ( NULL AS INTEGER ) * 97 ) + ( + 1 )
----
61

query I rowsort
SELECT ALL + ( + + 18 ) * + 64
----
1152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9757
SELECT COALESCE ( + 21, + COUNT( * ) ) DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-9757
SELECT COALESCE ( + 21, + COUNT ( * ) ) / 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT ALL NULLIF ( + 50, + 12 ) + COUNT( * ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL NULLIF ( + 50, + 12 ) + COUNT ( * ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT NULLIF ( + 68, - 46 * ( + COUNT( * ) / 19 ) + - 43 ) * - 86
----
-5848

skipif mysql # not compatible
query I rowsort label-9759
SELECT NULLIF ( + 68, - 46 * ( + COUNT ( * ) / 19 ) + - 43 ) * - 86
----
-5848

query I rowsort
SELECT DISTINCT ( + 0 ) + + 40
----
40

query I rowsort
SELECT ALL - 68 - - + 62 col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT + COUNT( * ) * 95 + + 26 AS col1
----
121

skipif mysql # not compatible
query I rowsort label-9762
SELECT + COUNT ( * ) * 95 + + 26 AS col1
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-9763
SELECT 66 DIV + CASE + ( - 2 ) WHEN 14 THEN NULL ELSE - 8 END + 94 DIV 90
----
-7

skipif mysql # not compatible
query I rowsort label-9763
SELECT 66 / + CASE + ( - 2 ) WHEN 14 THEN NULL ELSE - 8 END + 94 / 90
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT ALL + 77 * - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL + 77 * - COUNT ( * )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9765
SELECT 97 + - ( - CAST( NULL AS SIGNED ) ) / 35
----
NULL

skipif mysql # not compatible
query I rowsort label-9765
SELECT 97 + - ( - CAST ( NULL AS INTEGER ) ) / 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT ALL - + 43 * - 60 * - COUNT( * ) col0
----
-2580

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL - + 43 * - 60 * - COUNT ( * ) col0
----
-2580

query I rowsort
SELECT + 46 + - - 76 AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT SUM( + + 5 ) + 83 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-9768
SELECT SUM ( + + 5 ) + 83 AS col2
----
88

query I rowsort
SELECT - 30 + 23
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT DISTINCT - + 13 - + COUNT( * ) + 1 * + ( - COUNT( 88 ) + + 71 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT - + 13 - + COUNT ( * ) + 1 * + ( - COUNT ( 88 ) + + 71 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT ALL + + 51 * + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL + + 51 * + COUNT ( * )
----
51

query I rowsort
SELECT 66 + + 4 AS col2
----
70

query I rowsort
SELECT DISTINCT + 8 * 28 + - 73 AS col0
----
151

query I rowsort
SELECT - ( - 70 ) + 59 col1
----
129

query I rowsort
SELECT ALL + + ( - - 16 ) * - 15 AS col2
----
-240

query I rowsort
SELECT 45 + - 73 - 59
----
-87

query I rowsort
SELECT DISTINCT + ( + 0 ) col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9778
SELECT ALL - COALESCE ( MIN( ALL - 32 ), CASE + ( - 73 ) WHEN 65 THEN - SUM( CAST( NULL AS SIGNED ) ) WHEN CASE COUNT( * ) WHEN 3 * 0 - 7 THEN + 77 END THEN - 25 END + + 70, - COALESCE ( - 53, 49, - 96 ) )
----
32

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL - COALESCE ( MIN ( ALL - 32 ), CASE + ( - 73 ) WHEN 65 THEN - SUM ( CAST ( NULL AS INTEGER ) ) WHEN CASE COUNT ( * ) WHEN 3 * 0 - 7 THEN + 77 END THEN - 25 END + + 70, - COALESCE ( - 53, 49, - 96 ) )
----
32

query I rowsort
SELECT 38 * - 84 * + 36
----
-114912

query I rowsort
SELECT ALL + 73 + - ( 71 )
----
2

query II rowsort
SELECT DISTINCT 28 AS col1, - 1 - - 92
----
28
91

query I rowsort
SELECT 2 * - + 10 col2
----
-20

query I rowsort
SELECT 11 * - + 14 AS col1
----
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9784
SELECT ALL + 15 * + 78 + - 55 DIV - COALESCE ( CASE + 84 WHEN + 87 THEN NULL WHEN COALESCE ( - 69, COUNT( ALL 92 ) * - CAST( - 95 AS SIGNED ), + 65 ) THEN 58 + + 76 * 3 WHEN 76 * 2 THEN NULL END, - CAST( + 22 AS SIGNED ), - 92 * 37 ) AS col1
----
1168

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL + 15 * + 78 + - 55 / - COALESCE ( CASE + 84 WHEN + 87 THEN NULL WHEN COALESCE ( - 69, COUNT ( ALL 92 ) * - CAST ( - 95 AS INTEGER ), + 65 ) THEN 58 + + 76 * 3 WHEN 76 * 2 THEN NULL END, - CAST ( + 22 AS INTEGER ), - 92 * 37 ) AS col1
----
1168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9785
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 71 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT COALESCE ( + - ( MAX( ALL + 49 ) ), + 94 * 85, + 82 ) * COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-9786
SELECT COALESCE ( + - ( MAX ( ALL + 49 ) ), + 94 * 85, + 82 ) * COUNT ( * )
----
-49

query I rowsort
SELECT DISTINCT + 22 * + ( 58 ) + 76
----
1352

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT ALL - NULLIF ( + - 99, + MAX( DISTINCT + 21 ) ) * 26 + + 49 AS col1
----
2623

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL - NULLIF ( + - 99, + MAX ( DISTINCT + 21 ) ) * 26 + + 49 AS col1
----
2623

onlyif mysql # DIV for integer division: 
query I rowsort label-9789
SELECT 74 * - 87 - + - 81 DIV - 78 AS col1
----
-6439

skipif mysql # not compatible
query I rowsort label-9789
SELECT 74 * - 87 - + - 81 / - 78 AS col1
----
-6439

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT 53 * - NULLIF ( + + 85, + SUM( DISTINCT + 65 ) * + 70 ) AS col1
----
-4505

skipif mysql # not compatible
query I rowsort label-9790
SELECT 53 * - NULLIF ( + + 85, + SUM ( DISTINCT + 65 ) * + 70 ) AS col1
----
-4505

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT COUNT( * ) - + 72
----
-71

skipif mysql # not compatible
query I rowsort label-9791
SELECT COUNT ( * ) - + 72
----
-71

query II rowsort
SELECT DISTINCT - 1 col2, + 2 col2
----
-1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT MAX( - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-9793
SELECT MAX ( - 29 )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9794
SELECT CASE - + 82 WHEN + 87 + + 66 / - 43 THEN NULL WHEN 94 * + 82 + - 93 THEN - AVG ( DISTINCT - 50 ) END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9794
SELECT CASE - + 82 WHEN + 87 + + 66 / - 43 THEN NULL WHEN 94 * + 82 + - 93 THEN - AVG ( DISTINCT - 50 ) END * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9795
SELECT ALL - NULLIF ( - + 82, - MAX( - CAST( NULL AS SIGNED ) ) )
----
82

skipif mysql # not compatible
query I rowsort label-9795
SELECT ALL - NULLIF ( - + 82, - MAX ( - CAST ( NULL AS INTEGER ) ) )
----
82

query I rowsort
SELECT + NULLIF ( - - 97, - + 54 ) AS col0
----
97

query I rowsort
SELECT + - ( + 90 )
----
-90

query I rowsort
SELECT ALL - + 47 col1
----
-47

query I rowsort
SELECT ALL + 37 - + + 78
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT + 22 * - COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-9800
SELECT + 22 * - COUNT ( * )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT 11 * - 96 * - - 93 + + CASE + 33 WHEN 40 THEN COUNT( * ) + + 51 * + 10 END / + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9801
SELECT 11 * - 96 * - - 93 + + CASE + 33 WHEN 40 THEN COUNT ( * ) + + 51 * + 10 END / + 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT - 15 * + - SUM( - 27 ) * 11 + - 91 col2
----
-4546

skipif mysql # not compatible
query I rowsort label-9802
SELECT - 15 * + - SUM ( - 27 ) * 11 + - 91 col2
----
-4546

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT - 14 + - COUNT( * ) + - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-9803
SELECT - 14 + - COUNT ( * ) + - COUNT ( * )
----
-16

query I rowsort
SELECT + 19 * - 69 + 21 - + 4 - 98 * 57 AS col2
----
-6880

query I rowsort
SELECT - 27 * + - 80 * - 80 AS col2
----
-172800

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT - COUNT( * ) - + 56 + + - 78
----
-135

skipif mysql # not compatible
query I rowsort label-9806
SELECT - COUNT ( * ) - + 56 + + - 78
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT DISTINCT + 43 * + + COUNT( * ) - - 56 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT + 43 * + + COUNT ( * ) - - 56 AS col0
----
99

query I rowsort
SELECT + COALESCE ( - 97, + - 93, 83 + - 68 * - 59 ) AS col2
----
-97

query I rowsort
SELECT + + 99 * 58 * + 41
----
235422

query I rowsort
SELECT + 98 + - 86
----
12

query I rowsort
SELECT DISTINCT - 71 + + CASE - 43 WHEN ( + 45 ) THEN 45 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9812
SELECT ALL + 60 DIV + 17 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL + 60 / + 17 AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9813
SELECT - + 49 DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-9813
SELECT - + 49 / + 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT DISTINCT - 27 * + + MAX( DISTINCT - 70 ) * CASE 45 WHEN 89 - - 74 * - 91 THEN NULLIF ( + 64, - 35 * 62 ) + 85 WHEN + 91 THEN SUM( ALL 75 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT - 27 * + + MAX ( DISTINCT - 70 ) * CASE 45 WHEN 89 - - 74 * - 91 THEN NULLIF ( + 64, - 35 * 62 ) + 85 WHEN + 91 THEN SUM ( ALL 75 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9815
SELECT ALL + 69 + - CAST( + + COUNT( * ) AS SIGNED ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL + 69 + - CAST ( + + COUNT ( * ) AS INTEGER ) AS col2
----
68

query I rowsort
SELECT + ( + 72 ) + - - 34 AS col2
----
106

query I rowsort
SELECT + 84 + + + 8 - + - 16 * + 41 + - 7
----
741

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9818
SELECT ALL - ( - + MAX( DISTINCT CAST( NULL AS SIGNED ) ) ) + + CASE 8 WHEN - COUNT( * ) + - 6 THEN 15 END - + 14 / + COUNT( 34 * 65 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL - ( - + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) ) + + CASE 8 WHEN - COUNT ( * ) + - 6 THEN 15 END - + 14 / + COUNT ( 34 * 65 ) AS col0
----
NULL

query I rowsort
SELECT ALL + ( 41 ) + 43 + + 29 AS col0
----
113

query I rowsort
SELECT - 78 - + + 2 AS col2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9821
SELECT ALL COALESCE ( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), - + 33 - 9 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL COALESCE ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), - + 33 - 9 ) AS col2
----
-42

query I rowsort
SELECT ALL ( - - 90 ) col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT - COUNT( * ) + 51 * - 82 col0
----
-4183

skipif mysql # not compatible
query I rowsort label-9823
SELECT - COUNT ( * ) + 51 * - 82 col0
----
-4183

query I rowsort
SELECT ALL + 42 + - 29 / - CASE - - 30 WHEN 59 THEN 95 * 23 WHEN 67 THEN NULL ELSE NULL END + 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT + 42 + - COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9825
SELECT + 42 + - COUNT ( * ) AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9826
SELECT - 18 + + + COALESCE ( + + CASE - - 75 WHEN 78 THEN - 99 WHEN 55 + ( + NULLIF ( + 79, 68 / - 13 + + 52 ) ) THEN NULL END, + COALESCE ( CASE - 35 WHEN 75 THEN - COUNT( * ) WHEN + 80 THEN NULL WHEN 46 THEN NULL ELSE NULL END, - 3, 60 / - 71 ) * 1 ) + CASE - MAX( - 53 ) WHEN 56 THEN + NULLIF ( - 62, COUNT( * ) ) / + 5 + 88 * + CAST( + COUNT( * ) AS SIGNED ) WHEN 46 + + 78 THEN NULL WHEN + 62 THEN + 88 * 88 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT - 18 + + + COALESCE ( + + CASE - - 75 WHEN 78 THEN - 99 WHEN 55 + ( + NULLIF ( + 79, 68 / - 13 + + 52 ) ) THEN NULL END, + COALESCE ( CASE - 35 WHEN 75 THEN - COUNT ( * ) WHEN + 80 THEN NULL WHEN 46 THEN NULL ELSE NULL END, - 3, 60 / - 71 ) * 1 ) + CASE - MAX ( - 53 ) WHEN 56 THEN + NULLIF ( - 62, COUNT ( * ) ) / + 5 + 88 * + CAST ( + COUNT ( * ) AS INTEGER ) WHEN 46 + + 78 THEN NULL WHEN + 62 THEN + 88 * 88 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT ALL + MAX( ALL - 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL + MAX ( ALL - 84 ) AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9828
SELECT 79 * + 63 + - CAST( NULL AS SIGNED ) + - CASE 71 WHEN COALESCE ( - 7, NULLIF ( 23, - CAST( NULL AS SIGNED ) + + 56 ) * 79, ( 51 ) ) THEN - ( 42 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9828
SELECT 79 * + 63 + - CAST ( NULL AS INTEGER ) + - CASE 71 WHEN COALESCE ( - 7, NULLIF ( 23, - CAST ( NULL AS INTEGER ) + + 56 ) * 79, ( 51 ) ) THEN - ( 42 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT - 0 - SUM( 16 ) + + - 87 col0
----
-103

skipif mysql # not compatible
query I rowsort label-9829
SELECT - 0 - SUM ( 16 ) + + - 87 col0
----
-103

query I rowsort
SELECT - 12 * + 48 AS col0
----
-576

onlyif mysql # aggregate syntax: 
query II rowsort label-9831
SELECT ALL + COUNT( DISTINCT 39 ), + 23 * + COUNT( * ) AS col0
----
1
23

skipif mysql # not compatible
query II rowsort label-9831
SELECT ALL + COUNT ( DISTINCT 39 ), + 23 * + COUNT ( * ) AS col0
----
1
23

query I rowsort
SELECT ALL 58 * + - 93
----
-5394

query I rowsort
SELECT - 64 + - 42 AS col2
----
-106

query I rowsort
SELECT ALL - + 72 * + 68
----
-4896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9835
SELECT - 6 DIV + 53 + + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9835
SELECT - 6 / + 53 + + + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT + ( + 21 ) * - + COUNT( * ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-9836
SELECT + ( + 21 ) * - + COUNT ( * ) AS col2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9837
SELECT + 89 * + 20 - + CAST( 26 AS SIGNED )
----
1754

skipif mysql # not compatible
query I rowsort label-9837
SELECT + 89 * + 20 - + CAST ( 26 AS INTEGER )
----
1754

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT + - CASE + - SUM( 89 ) WHEN 33 THEN MIN( DISTINCT + 74 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9838
SELECT + - CASE + - SUM ( 89 ) WHEN 33 THEN MIN ( DISTINCT + 74 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9839
SELECT - 92 * + CAST( - 81 AS SIGNED ) + + - 32 DIV 87
----
7452

skipif mysql # not compatible
query I rowsort label-9839
SELECT - 92 * + CAST ( - 81 AS INTEGER ) + + - 32 / 87
----
7452

query I rowsort
SELECT + - 19 * + 38 col1
----
-722

query I rowsort
SELECT ALL + NULLIF ( - 27, - - 65 )
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9842
SELECT ALL + COALESCE ( + - 44, 29 * 98 * 85 + - 18, - CASE + NULLIF ( ( + COUNT( * ) ), 37 ) WHEN 57 THEN + 94 * - 16 + + 64 DIV COUNT( * ) WHEN 69 * 59 THEN NULL END + - 73 * - 98 )
----
-44

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL + COALESCE ( + - 44, 29 * 98 * 85 + - 18, - CASE + NULLIF ( ( + COUNT ( * ) ), 37 ) WHEN 57 THEN + 94 * - 16 + + 64 / COUNT ( * ) WHEN 69 * 59 THEN NULL END + - 73 * - 98 )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9843
SELECT DISTINCT COUNT( * ) * + 51 + - CAST( 75 AS SIGNED ) + - CAST( NULL AS SIGNED ) * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT COUNT ( * ) * + 51 + - CAST ( 75 AS INTEGER ) + - CAST ( NULL AS INTEGER ) * 46
----
NULL

query I rowsort
SELECT ALL + 59 * - 57 col1
----
-3363

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT + 92 + + MAX( ALL 47 ) * - + NULLIF ( 80, 63 * - 59 ) AS col1
----
-3668

skipif mysql # not compatible
query I rowsort label-9845
SELECT + 92 + + MAX ( ALL 47 ) * - + NULLIF ( 80, 63 * - 59 ) AS col1
----
-3668

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT ALL + 53 * COUNT( * ) + 89 AS col2
----
142

skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL + 53 * COUNT ( * ) + 89 AS col2
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT DISTINCT - 31 * - 75 + MIN( + - 14 )
----
2311

skipif mysql # not compatible
query I rowsort label-9847
SELECT DISTINCT - 31 * - 75 + MIN ( + - 14 )
----
2311

query I rowsort
SELECT + - NULLIF ( - 78, ( - + 97 ) ) * 24 + + 53 AS col0
----
1925

query I rowsort
SELECT + + 62 + - 77 * 87
----
-6637

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT ALL ( + - 57 ) + - CASE 17 WHEN - 45 * 46 THEN - NULLIF ( COUNT( * ), 7 + 21 * - 76 ) END * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL ( + - 57 ) + - CASE 17 WHEN - 45 * 46 THEN - NULLIF ( COUNT ( * ), 7 + 21 * - 76 ) END * 58
----
NULL

query I rowsort
SELECT + 58 * + 11 * + 22 col1
----
14036

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT + - 87 + MIN( - 18 ) * - ( + 1 ) - MAX( - 71 ) * + 76 AS col1
----
5327

skipif mysql # not compatible
query I rowsort label-9852
SELECT + - 87 + MIN ( - 18 ) * - ( + 1 ) - MAX ( - 71 ) * + 76 AS col1
----
5327

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT - - SUM( - + 35 ) col1
----
-35

skipif mysql # not compatible
query I rowsort label-9853
SELECT - - SUM ( - + 35 ) col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT - + COUNT( * ) + 58 + 25 * + 36
----
957

skipif mysql # not compatible
query I rowsort label-9854
SELECT - + COUNT ( * ) + 58 + 25 * + 36
----
957

query I rowsort
SELECT - ( 62 )
----
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-9856
SELECT ALL 67 * ( - - 77 ) AS col0, 11 DIV + 92 * 25 + 54 AS col2
----
5159
54

skipif mysql # not compatible
query II rowsort label-9856
SELECT ALL 67 * ( - - 77 ) AS col0, 11 / + 92 * 25 + 54 AS col2
----
5159
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9857
SELECT + 78 + - - COUNT( * ) + + CAST( NULL AS SIGNED ) + - 7 + + - 82 * + COUNT( * ) / - COALESCE ( - COUNT( * ) - ( SUM( ALL + 63 ) + 49 ), 69 + - ( 91 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9857
SELECT + 78 + - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - 7 + + - 82 * + COUNT ( * ) / - COALESCE ( - COUNT ( * ) - ( SUM ( ALL + 63 ) + 49 ), 69 + - ( 91 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9858
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 88 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9859
SELECT ALL CASE - + 5 WHEN - + 62 * - ( CAST( ( 26 ) AS SIGNED ) ) THEN 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL CASE - + 5 WHEN - + 62 * - ( CAST ( ( 26 ) AS INTEGER ) ) THEN 51 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT + 54 + + + COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-9860
SELECT + 54 + + + COUNT ( * ) AS col0
----
55

query I rowsort
SELECT ALL - 83 * - + 31 AS col2
----
2573

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9862
SELECT DISTINCT + 28 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT + 28 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9863
SELECT + 42 * - - 37 * + + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT + 42 * - - 37 * + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 19 * 68 * - + 55
----
-71060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9865
SELECT - COALESCE ( + + ( - 75 ), 55 * CAST( 68 AS SIGNED ), 97 ) + - 98 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-9865
SELECT - COALESCE ( + + ( - 75 ), 55 * CAST ( 68 AS INTEGER ), 97 ) + - 98 AS col0
----
-23

query I rowsort
SELECT - 83 * 85 AS col1
----
-7055

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT ALL CASE + - 41 WHEN - - 96 THEN 86 WHEN - + SUM( 13 ) THEN - 39 END * COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL CASE + - 41 WHEN - - 96 THEN 86 WHEN - + SUM ( 13 ) THEN - 39 END * COUNT ( * ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9868
SELECT DISTINCT COALESCE ( - 74, 69 DIV 53 + + 55 * - 48, COALESCE ( 14, - COUNT( * ) + 14 * CAST( NULL AS SIGNED ) ) + 0 )
----
-74

skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT COALESCE ( - 74, 69 / 53 + + 55 * - 48, COALESCE ( 14, - COUNT ( * ) + 14 * CAST ( NULL AS INTEGER ) ) + 0 )
----
-74

query II rowsort
SELECT 88 AS col1, 69 AS col2
----
88
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT DISTINCT CASE + COUNT( * ) WHEN ( - 47 ) * - + 51 + 54 / - 31 + + COALESCE ( - 27 + - 96 / - 54, 78 ) * NULLIF ( + 67 / - 29, 30 + - 41 ) THEN NULL ELSE - 53 * - 49 END
----
2597

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT CASE + COUNT ( * ) WHEN ( - 47 ) * - + 51 + 54 / - 31 + + COALESCE ( - 27 + - 96 / - 54, 78 ) * NULLIF ( + 67 / - 29, 30 + - 41 ) THEN NULL ELSE - 53 * - 49 END
----
2597

query I rowsort
SELECT ALL - 11 - ( - 51 ) AS col0
----
40

query I rowsort
SELECT + 88 * + 30
----
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT ALL + COALESCE ( - 99, - - 57 + 25, ( 15 ) * COUNT( * ) + 9 )
----
-99

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL + COALESCE ( - 99, - - 57 + 25, ( 15 ) * COUNT ( * ) + 9 )
----
-99

query I rowsort
SELECT - 58 * - 40 col1
----
2320

query II rowsort
SELECT DISTINCT + 39 AS col0, - 73 * - 37
----
39
2701

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT - MAX( ALL - - 94 ) * + ( - - 74 ) AS col2
----
-6956

skipif mysql # not compatible
query I rowsort label-9876
SELECT - MAX ( ALL - - 94 ) * + ( - - 74 ) AS col2
----
-6956

query I rowsort
SELECT 82 * - 6
----
-492

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT + ( NULLIF ( + COUNT( * ), - + 78 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9878
SELECT + ( NULLIF ( + COUNT ( * ), - + 78 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT ALL - - COUNT( * ) * + 6
----
6

skipif mysql # not compatible
query I rowsort label-9879
SELECT ALL - - COUNT ( * ) * + 6
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9880
SELECT ALL - 43 DIV MIN( DISTINCT 56 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL - 43 / MIN ( DISTINCT 56 ) AS col1
----
0

query I rowsort
SELECT DISTINCT + 85 + 3 AS col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9882
SELECT + COUNT( * ) * + 43 * - 25 - - COUNT( * ) - - - CAST( 10 AS SIGNED ) col2
----
-1084

skipif mysql # not compatible
query I rowsort label-9882
SELECT + COUNT ( * ) * + 43 * - 25 - - COUNT ( * ) - - - CAST ( 10 AS INTEGER ) col2
----
-1084

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT ALL + - ( + 68 ) * - + COUNT( * ) * + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-9883
SELECT ALL + - ( + 68 ) * - + COUNT ( * ) * + COUNT ( * )
----
68

query II rowsort
SELECT + - 51 AS col0, 11 AS col2
----
-51
11

query I rowsort
SELECT DISTINCT + + 15 + + 45
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT DISTINCT + + COUNT( * ) * - + 42 + - 42 * + 67 AS col2
----
-2856

skipif mysql # not compatible
query I rowsort label-9886
SELECT DISTINCT + + COUNT ( * ) * - + 42 + - 42 * + 67 AS col2
----
-2856

query I rowsort
SELECT ALL - + 39 + + 6 + + 60 + - + 77 AS col2
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9888
SELECT NULLIF ( - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), - + COUNT( * ) / + + 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9888
SELECT NULLIF ( - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), - + COUNT ( * ) / + + 59 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9889
SELECT ( 32 ) DIV - 74 - + 43 DIV + 81 + 37 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-9889
SELECT ( 32 ) / - 74 - + 43 / + 81 + 37 AS col1
----
37

query I rowsort
SELECT DISTINCT + + 27 + - - 69
----
96

query I rowsort
SELECT + 25 * + 89
----
2225

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT ALL 95 + - - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL 95 + - - COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9893
SELECT ALL + COUNT( * ), - 64 AS col0
----
1
-64

skipif mysql # not compatible
query II rowsort label-9893
SELECT ALL + COUNT ( * ), - 64 AS col0
----
1
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT SUM( DISTINCT - 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9894
SELECT SUM ( DISTINCT - 12 ) AS col0
----
-12

query I rowsort
SELECT DISTINCT - - 97 + + NULLIF ( + 25, 36 * + 52 + ( 59 ) ) * + 68
----
1797

onlyif mysql # aggregate syntax: 
query II rowsort label-9896
SELECT ALL 49 * + 88 AS col0, 29 + - + MAX( + 64 ) * COUNT( * ) AS col0
----
4312
-35

skipif mysql # not compatible
query II rowsort label-9896
SELECT ALL 49 * + 88 AS col0, 29 + - + MAX ( + 64 ) * COUNT ( * ) AS col0
----
4312
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT 27 * + - 82 * + NULLIF ( + - COUNT( 44 ), - 11 ) col1
----
2214

skipif mysql # not compatible
query I rowsort label-9897
SELECT 27 * + - 82 * + NULLIF ( + - COUNT ( 44 ), - 11 ) col1
----
2214

query II rowsort
SELECT DISTINCT 84 * + 93 AS col1, - 17 AS col1
----
7812
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT COUNT( * ) + - + 49 + - 16
----
-64

skipif mysql # not compatible
query I rowsort label-9899
SELECT COUNT ( * ) + - + 49 + - 16
----
-64

query II rowsort
SELECT DISTINCT 88 AS col2, 98
----
88
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9901
SELECT ALL COUNT( * ) * COUNT( * ) DIV - + 63
----
0

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL COUNT ( * ) * COUNT ( * ) / - + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT 17 + + + ( - MAX( + + 74 ) ) col0
----
-57

skipif mysql # not compatible
query I rowsort label-9902
SELECT 17 + + + ( - MAX ( + + 74 ) ) col0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9903
SELECT MAX( - 73 ) * + + 37 + MIN( DISTINCT - COALESCE ( + CAST( NULL AS SIGNED ), 84 + 88 * - 31, 84 + - 53 ) ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-9903
SELECT MAX ( - 73 ) * + + 37 + MIN ( DISTINCT - COALESCE ( + CAST ( NULL AS INTEGER ), 84 + 88 * - 31, 84 + - 53 ) ) AS col0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9904
SELECT 82 AS col2, 97 * ( - 95 ) + SUM( + 42 ) + CASE + COUNT( * ) WHEN 98 THEN - 40 + + COUNT( * ) WHEN COALESCE ( - 14, - 66 ) THEN + COALESCE ( - 16, - 14 * + 18 + - 97, + 52, 92 + - 80 * COALESCE ( + ( + ( + 92 ) ) * CASE + 87 * CAST( NULL AS SIGNED ) WHEN 99 THEN - 62 * - COALESCE ( + 64 * COUNT( * ), - 64, - 28, + CAST( + MIN( DISTINCT CAST( + 10 AS SIGNED ) ) AS DECIMAL ) ) ELSE NULL END, COUNT( * ) ) ) END * 24 AS col2
----
82
NULL

skipif mysql # not compatible
query II rowsort label-9904
SELECT 82 AS col2, 97 * ( - 95 ) + SUM ( + 42 ) + CASE + COUNT ( * ) WHEN 98 THEN - 40 + + COUNT ( * ) WHEN COALESCE ( - 14, - 66 ) THEN + COALESCE ( - 16, - 14 * + 18 + - 97, + 52, 92 + - 80 * COALESCE ( + ( + ( + 92 ) ) * CASE + 87 * CAST ( NULL AS INTEGER ) WHEN 99 THEN - 62 * - COALESCE ( + 64 * COUNT ( * ), - 64, - 28, + CAST ( + MIN ( DISTINCT CAST ( + 10 AS INTEGER ) ) AS REAL ) ) ELSE NULL END, COUNT ( * ) ) ) END * 24 AS col2
----
82
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT COUNT( * ) + 29 + - 25 + 33 * + 90
----
2975

skipif mysql # not compatible
query I rowsort label-9905
SELECT COUNT ( * ) + 29 + - 25 + 33 * + 90
----
2975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9906
SELECT COUNT( * ) DIV - + 95 * ( + 81 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9906
SELECT COUNT ( * ) / - + 95 * ( + 81 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9907
SELECT DISTINCT COALESCE ( + 8, 99 DIV - 69, - - 80 - - ( ( + 32 ) ) + SUM( - COALESCE ( - 79, 0 ) - + 87 ), - CASE - 76 WHEN - 27 * + 38 + 39 THEN NULL WHEN 80 THEN 20 END + - COALESCE ( + 11, - COUNT( 50 ) ) * - 42 ) * 67
----
536

skipif mysql # not compatible
query I rowsort label-9907
SELECT DISTINCT COALESCE ( + 8, 99 / - 69, - - 80 - - ( ( + 32 ) ) + SUM ( - COALESCE ( - 79, 0 ) - + 87 ), - CASE - 76 WHEN - 27 * + 38 + 39 THEN NULL WHEN 80 THEN 20 END + - COALESCE ( + 11, - COUNT ( 50 ) ) * - 42 ) * 67
----
536

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT CASE + - MAX( DISTINCT - + ( + 91 ) ) WHEN - 39 THEN NULL ELSE - 83 END + 33 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-9908
SELECT CASE + - MAX ( DISTINCT - + ( + 91 ) ) WHEN - 39 THEN NULL ELSE - 83 END + 33 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT 71 + - COUNT( * ) + + 13 * + 88 col0
----
1214

skipif mysql # not compatible
query I rowsort label-9909
SELECT 71 + - COUNT ( * ) + + 13 * + 88 col0
----
1214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9910
SELECT 42 + + - COUNT( * ) + - 30 / - SUM( ALL + - 49 ) * CAST( NULL AS SIGNED ) * 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9910
SELECT 42 + + - COUNT ( * ) + - 30 / - SUM ( ALL + - 49 ) * CAST ( NULL AS INTEGER ) * 60 AS col2
----
NULL

query I rowsort
SELECT 78 * 82
----
6396

query I rowsort
SELECT ( - 5 ) + + 31 AS col2
----
26

query I rowsort
SELECT + 65 * - 91 * + 11 + 68 AS col0
----
-64997

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9914
SELECT 3 AS col2, 96 + NULLIF ( + + NULLIF ( - + 34, - 60 ), CASE SUM( + 97 ) WHEN + COUNT( * ) * CAST( + 91 * + COUNT( * ) AS SIGNED ) THEN NULL ELSE 76 END ) + 75
----
3
137

skipif mysql # not compatible
query II rowsort label-9914
SELECT 3 AS col2, 96 + NULLIF ( + + NULLIF ( - + 34, - 60 ), CASE SUM ( + 97 ) WHEN + COUNT ( * ) * CAST ( + 91 * + COUNT ( * ) AS INTEGER ) THEN NULL ELSE 76 END ) + 75
----
3
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9915
SELECT + 9 DIV COUNT( ALL + 23 ) + - 2
----
7

skipif mysql # not compatible
query I rowsort label-9915
SELECT + 9 / COUNT ( ALL + 23 ) + - 2
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9916
SELECT CAST( NULL AS SIGNED ) - + ( - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9916
SELECT CAST ( NULL AS INTEGER ) - + ( - 30 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT 97 * 43 * 63 + + + COUNT( * ) AS col2
----
262774

skipif mysql # not compatible
query I rowsort label-9917
SELECT 97 * 43 * 63 + + + COUNT ( * ) AS col2
----
262774

query I rowsort
SELECT 40 * - 69 - - + 80 AS col0
----
-2680

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT DISTINCT - 55 + - - SUM( 18 )
----
-37

skipif mysql # not compatible
query I rowsort label-9919
SELECT DISTINCT - 55 + - - SUM ( 18 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT + 21 * 82 + + 66 * - + 69 - + COUNT( * ) + - 5 * - 79
----
-2438

skipif mysql # not compatible
query I rowsort label-9920
SELECT + 21 * 82 + + 66 * - + 69 - + COUNT ( * ) + - 5 * - 79
----
-2438

query I rowsort
SELECT ALL NULLIF ( - 97, - 38 ) + 22 - 12 + 9 AS col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9922
SELECT DISTINCT CAST( NULL AS SIGNED ) * 38 * - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 38 * - 57
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9923
SELECT CASE - - 16 WHEN + 11 THEN 13 * COUNT( * ) * 33 * - NULLIF ( - COUNT( * ) / - 33, + 20 + - 39 ) - + MAX( - 51 ) + + NULLIF ( COALESCE ( - 74, + 78 * + 17, + CAST( COUNT( * ) AS SIGNED ) + 69 ), - 42 * - 30 ) ELSE NULL END * - COUNT( * ) + + ( - MIN( DISTINCT 45 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9923
SELECT CASE - - 16 WHEN + 11 THEN 13 * COUNT ( * ) * 33 * - NULLIF ( - COUNT ( * ) / - 33, + 20 + - 39 ) - + MAX ( - 51 ) + + NULLIF ( COALESCE ( - 74, + 78 * + 17, + CAST ( COUNT ( * ) AS INTEGER ) + 69 ), - 42 * - 30 ) ELSE NULL END * - COUNT ( * ) + + ( - MIN ( DISTINCT 45 ) )
----
NULL

query I rowsort
SELECT 45 + 19 AS col1
----
64

query II rowsort
SELECT + 27 AS col2, 48
----
27
48

query I rowsort
SELECT DISTINCT - 40 + + 57 AS col0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9927
SELECT ALL + - ( + - 34 ) / - 7 * + - CAST( NULL AS SIGNED ) / + 40 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL + - ( + - 34 ) / - 7 * + - CAST ( NULL AS INTEGER ) / + 40 col0
----
NULL

query I rowsort
SELECT DISTINCT + 48 * - 13 AS col1
----
-624

query I rowsort
SELECT DISTINCT + 37 + + - 5 + + + 9 col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT DISTINCT - - 95 - + + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT - - 95 - + + COUNT ( * )
----
94

query I rowsort
SELECT ALL + + 24 * - - 96 + + 3
----
2307

query I rowsort
SELECT 14 + + 16 AS col2
----
30

query I rowsort
SELECT DISTINCT + ( + + 74 ) - 56 - + 95
----
-77

query I rowsort
SELECT 8 * 73 * - 35
----
-20440

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT 11 * MIN( DISTINCT - 92 ) * 99
----
-100188

skipif mysql # not compatible
query I rowsort label-9935
SELECT 11 * MIN ( DISTINCT - 92 ) * 99
----
-100188

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT ALL COUNT( - + 6 )
----
1

skipif mysql # not compatible
query I rowsort label-9936
SELECT ALL COUNT ( - + 6 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9937
SELECT 20 - 54 + 47 - + + 85 DIV + 81 + - 22 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-9937
SELECT 20 - 54 + 47 - + + 85 / + 81 + - 22 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT 62 + - MIN( + 99 ) - 76
----
-113

skipif mysql # not compatible
query I rowsort label-9938
SELECT 62 + - MIN ( + 99 ) - 76
----
-113

onlyif mysql # DIV for integer division: 
query II rowsort label-9939
SELECT ALL + 56 DIV - - 96, 65 AS col0
----
0
65

skipif mysql # not compatible
query II rowsort label-9939
SELECT ALL + 56 / - - 96, 65 AS col0
----
0
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT ALL SUM( DISTINCT - 25 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL SUM ( DISTINCT - 25 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT 46 * - COALESCE ( + + COUNT( * ), + - 88 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-9941
SELECT 46 * - COALESCE ( + + COUNT ( * ), + - 88 ) AS col0
----
-46

query I rowsort
SELECT 52 + 91 AS col0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT ALL COUNT( ALL - 93 )
----
1

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL COUNT ( ALL - 93 )
----
1

query I rowsort
SELECT DISTINCT 94 * - - 45 AS col0
----
4230

query I rowsort
SELECT DISTINCT NULLIF ( - 77, - 67 )
----
-77

query I rowsort
SELECT DISTINCT 58 * - 71 AS col0
----
-4118

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT - CASE + COUNT( * ) WHEN - COUNT( * ) + - + 82 THEN NULLIF ( 14, 76 * - 80 ) END * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-9947
SELECT - CASE + COUNT ( * ) WHEN - COUNT ( * ) + - + 82 THEN NULLIF ( 14, 76 * - 80 ) END * 93
----
NULL

query I rowsort
SELECT + ( + 33 ) + 28 + - 66 AS col0
----
-5

query I rowsort
SELECT ALL 93 * + 76 col1
----
7068

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT + COUNT( * ) * SUM( - + 82 ) * COUNT( * ) + - + 35 + 36 - - + NULLIF ( 65, 61 ) + + 1 col1
----
-15

skipif mysql # not compatible
query I rowsort label-9950
SELECT + COUNT ( * ) * SUM ( - + 82 ) * COUNT ( * ) + - + 35 + 36 - - + NULLIF ( 65, 61 ) + + 1 col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9951
SELECT ALL + COALESCE ( + 99, COUNT( * ) DIV 87 + 58 * - 14 * + + COALESCE ( - ( 71 ), - 41 * + 92 ) + CASE NULLIF ( 55, - 30 ) WHEN - COALESCE ( ( + CASE MIN( ALL 31 ) WHEN + COUNT( * ) THEN - 19 + - CAST( - 19 AS SIGNED ) WHEN SUM( NULLIF ( + 78, 45 + + 51 ) ) THEN NULL ELSE 73 END ), 33 ) THEN NULL WHEN 41 + - CAST( 51 + SUM( + 7 ) AS SIGNED ) THEN + 61 + - 40 ELSE + COUNT( * ) END, 46, + 26 ) col1
----
99

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL + COALESCE ( + 99, COUNT ( * ) / 87 + 58 * - 14 * + + COALESCE ( - ( 71 ), - 41 * + 92 ) + CASE NULLIF ( 55, - 30 ) WHEN - COALESCE ( ( + CASE MIN ( ALL 31 ) WHEN + COUNT ( * ) THEN - 19 + - CAST ( - 19 AS INTEGER ) WHEN SUM ( NULLIF ( + 78, 45 + + 51 ) ) THEN NULL ELSE 73 END ), 33 ) THEN NULL WHEN 41 + - CAST ( 51 + SUM ( + 7 ) AS INTEGER ) THEN + 61 + - 40 ELSE + COUNT ( * ) END, 46, + 26 ) col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT DISTINCT + - 76 * - COUNT( * ) + COUNT( * ) * + 78 AS col1
----
154

skipif mysql # not compatible
query I rowsort label-9952
SELECT DISTINCT + - 76 * - COUNT ( * ) + COUNT ( * ) * + 78 AS col1
----
154

query I rowsort
SELECT DISTINCT - 48 * - + 84 + + - NULLIF ( - 10, - 74 + - + 51 ) AS col2
----
4042

query I rowsort
SELECT + ( + 52 ) * 52 - + 72
----
2632

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT ALL 55 * COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL 55 * COUNT ( * )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9956
SELECT + 24 * ( + 78 ) * + COUNT( * ) * - - SUM( - CAST( + 33 AS SIGNED ) ) + 93
----
-61683

skipif mysql # not compatible
query I rowsort label-9956
SELECT + 24 * ( + 78 ) * + COUNT ( * ) * - - SUM ( - CAST ( + 33 AS INTEGER ) ) + 93
----
-61683

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT ALL COUNT( * ) * - - 17 * - 21 + - 58 + - - 90 - - 30 AS col2
----
-295

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL COUNT ( * ) * - - 17 * - 21 + - 58 + - - 90 - - 30 AS col2
----
-295

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT COALESCE ( - MIN( DISTINCT + 87 ), ( + 85 ), 92 + 44 )
----
-87

skipif mysql # not compatible
query I rowsort label-9958
SELECT COALESCE ( - MIN ( DISTINCT + 87 ), ( + 85 ), 92 + 44 )
----
-87

query I rowsort
SELECT 55 * ( + ( 18 ) ) * NULLIF ( + 64, - AVG ( ALL + 63 ) ) * 57 + - 57 - - 46 * 1 AS col1
----
3611509

query I rowsort
SELECT + NULLIF ( 74, 36 * 86 ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT + NULLIF ( - 51, + COUNT( * ) )
----
-51

skipif mysql # not compatible
query I rowsort label-9961
SELECT + NULLIF ( - 51, + COUNT ( * ) )
----
-51

query I rowsort
SELECT + NULLIF ( - 25, ( - 49 ) * + 44 )
----
-25

query I rowsort
SELECT ALL NULLIF ( - + 0, + - ( 46 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT MAX( - NULLIF ( ( - 70 ), 30 + - + 72 ) ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9964
SELECT MAX ( - NULLIF ( ( - 70 ), 30 + - + 72 ) ) AS col1
----
70

query II rowsort
SELECT ALL 37 AS col1, 69
----
37
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT - COUNT( * ) * - 67 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-9966
SELECT - COUNT ( * ) * - 67 AS col0
----
67

query I rowsort
SELECT ALL + 52 * + 55 AS col1
----
2860

onlyif mysql # aggregate syntax: 
query II rowsort label-9968
SELECT COUNT( * ) AS col0, + MAX( 4 ) * + 87 + 34 + - 18 * + 38 + - + 48
----
1
-350

skipif mysql # not compatible
query II rowsort label-9968
SELECT COUNT ( * ) AS col0, + MAX ( 4 ) * + 87 + 34 + - 18 * + 38 + - + 48
----
1
-350

onlyif mysql # aggregate syntax: 
query II rowsort label-9969
SELECT ALL COUNT( * ) AS col1, 89
----
1
89

skipif mysql # not compatible
query II rowsort label-9969
SELECT ALL COUNT ( * ) AS col1, 89
----
1
89

query I rowsort
SELECT DISTINCT + 34 * + 35 AS col1
----
1190

query I rowsort
SELECT ALL ( + 58 ) AS col2
----
58

query I rowsort
SELECT - 18 * + 77 AS col2
----
-1386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9973
SELECT ALL - 53 + + NULLIF ( + 8, COUNT( * ) / + ( + SUM( ALL + CAST( + 72 AS SIGNED ) ) ) + + COUNT( * ) * - 43 ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL - 53 + + NULLIF ( + 8, COUNT ( * ) / + ( + SUM ( ALL + CAST ( + 72 AS INTEGER ) ) ) + + COUNT ( * ) * - 43 ) col1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-9974
SELECT + 30 + - COALESCE ( - 79, - 33 * + 19 DIV + 63 ) + - 4
----
105

skipif mysql # not compatible
query I rowsort label-9974
SELECT + 30 + - COALESCE ( - 79, - 33 * + 19 / + 63 ) + - 4
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT - COUNT( * ) + 1
----
0

skipif mysql # not compatible
query I rowsort label-9975
SELECT - COUNT ( * ) + 1
----
0

query I rowsort
SELECT ALL ( - + 77 ) AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9977
SELECT - 82 + - - COALESCE ( CAST( - 99 AS SIGNED ), CAST( NULL AS SIGNED ) * + 22 + + 5 + - - 2 - 51 * + 40, MIN( + 43 ) + - 48, COUNT( * ) )
----
-181

skipif mysql # not compatible
query I rowsort label-9977
SELECT - 82 + - - COALESCE ( CAST ( - 99 AS INTEGER ), CAST ( NULL AS INTEGER ) * + 22 + + 5 + - - 2 - 51 * + 40, MIN ( + 43 ) + - 48, COUNT ( * ) )
----
-181

query I rowsort
SELECT ALL + 90 + + - 50
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9979
SELECT DISTINCT - 35 + + 50 + 4 + + ( + ( + 87 ) ) + + - CAST( NULL AS SIGNED ) + - 18 + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9979
SELECT DISTINCT - 35 + + 50 + 4 + + ( + ( + 87 ) ) + + - CAST ( NULL AS INTEGER ) + - 18 + - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT ALL - SUM( ALL + 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL - SUM ( ALL + 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT - + 86 + - COUNT( * ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-9981
SELECT - + 86 + - COUNT ( * ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT + COALESCE ( + SUM( + - 58 ), - 3 * + - 26 * - 6 * + 86 * + ( MAX( DISTINCT 68 ) ) ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-9982
SELECT + COALESCE ( + SUM ( + - 58 ), - 3 * + - 26 * - 6 * + 86 * + ( MAX ( DISTINCT 68 ) ) ) AS col2
----
-58

query I rowsort
SELECT + - 11 + - 20 AS col0
----
-31

query I rowsort
SELECT ALL - 6 + 29 AS col0
----
23

query I rowsort
SELECT - 72 + 3
----
-69

query II rowsort
SELECT - 55, + 99 AS col1
----
-55
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT + + COUNT( * ) + - - 52
----
53

skipif mysql # not compatible
query I rowsort label-9987
SELECT + + COUNT ( * ) + - - 52
----
53

query I rowsort
SELECT + 56 - - 82 AS col0
----
138

query I rowsort
SELECT ALL 25 * 36 AS col1
----
900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9990
SELECT - MAX( + 90 ) * + 42 * - - 8 + + CAST( 6 AS SIGNED ) * - - 68
----
-29832

skipif mysql # not compatible
query I rowsort label-9990
SELECT - MAX ( + 90 ) * + 42 * - - 8 + + CAST ( 6 AS INTEGER ) * - - 68
----
-29832

query I rowsort
SELECT + - NULLIF ( - 57, ( - 2 ) ) AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9992
SELECT DISTINCT 3 DIV + 75 - 35
----
-35

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT 3 / + 75 - 35
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9993
SELECT ALL + SUM( DISTINCT - CAST( + 20 AS SIGNED ) ) AS col0, - 90
----
-20
-90

skipif mysql # not compatible
query II rowsort label-9993
SELECT ALL + SUM ( DISTINCT - CAST ( + 20 AS INTEGER ) ) AS col0, - 90
----
-20
-90

query I rowsort
SELECT + + 85 + 0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9995
SELECT ALL + + ( - CAST( COALESCE ( - MIN( - - 17 ), CASE + 81 WHEN - - 75 * 37 THEN 26 + + CASE 14 - 46 WHEN 37 THEN NULL ELSE CASE CASE 32 WHEN - 76 + - 34 THEN + 2 + + 79 WHEN 83 * 90 THEN 63 WHEN - 97 THEN NULL END WHEN 85 * - COUNT( ALL + 32 ) THEN - COALESCE ( + 21, + 74 ) WHEN COUNT( * ) THEN NULL END END ELSE + COALESCE ( 92, 69 / 71 ) + 94 END, 56 ) AS SIGNED ) )
----
17

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL + + ( - CAST ( COALESCE ( - MIN ( - - 17 ), CASE + 81 WHEN - - 75 * 37 THEN 26 + + CASE 14 - 46 WHEN 37 THEN NULL ELSE CASE CASE 32 WHEN - 76 + - 34 THEN + 2 + + 79 WHEN 83 * 90 THEN 63 WHEN - 97 THEN NULL END WHEN 85 * - COUNT ( ALL + 32 ) THEN - COALESCE ( + 21, + 74 ) WHEN COUNT ( * ) THEN NULL END END ELSE + COALESCE ( 92, 69 / 71 ) + 94 END, 56 ) AS INTEGER ) )
----
17

query I rowsort
SELECT NULLIF ( + + 79, - - ( 5 ) * 73 )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9997
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) * - CASE 63 WHEN 17 THEN - + 98 + + - 72 + + 93 WHEN - 82 / - 21 THEN 81 END / 84 + 89 / + MIN( DISTINCT + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - CASE 63 WHEN 17 THEN - + 98 + + - 72 + + 93 WHEN - 82 / - 21 THEN 81 END / 84 + 89 / + MIN ( DISTINCT + 23 )
----
NULL

query I rowsort
SELECT + 11 + + 90
----
101

query II rowsort
SELECT 17 AS col1, 59 * - 23
----
17
-1357

