sqllogictest
Artifact Content
Not logged in

Artifact ec43c781cfe231b6db774d5c04dd854f5d262e8b:


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
S