sqllogictest
Artifact Content
Not logged in

Artifact f1701910d4ad4b005b12f7f9bf3c3f8552ef2110:


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 II rowsort
SELECT - 55 * 67 * 69 AS col1, + 25 * - - 34
----
-254265
850

query I rowsort
SELECT NULLIF ( 26, - - 67 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT ALL + CASE - - COUNT( * ) WHEN - 28 + - + 33 / + + 12 THEN ( - COUNT( + 36 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL + CASE - - COUNT ( * ) WHEN - 28 + - + 33 / + + 12 THEN ( - COUNT ( + 36 ) ) END
----
NULL

query II rowsort
SELECT DISTINCT + 90 col1, 64 AS col1
----
90
64

query I rowsort
SELECT 13 * - ( - 83 ) - - + 96 AS col2
----
1175

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT ALL + CASE - 9 WHEN 13 THEN - 19 * + CASE - 54 WHEN - 44 * - MIN( - 78 ) - + 93 * - - 50 * 85 + 82 THEN NULL WHEN - + 58 + + ( 42 ) + + - 65 - 49 THEN - AVG ( DISTINCT - - ( - - 56 ) ) ELSE NULL END - - - 68 + 47 + 33 WHEN 32 THEN 44 * 47 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL + CASE - 9 WHEN 13 THEN - 19 * + CASE - 54 WHEN - 44 * - MIN ( - 78 ) - + 93 * - - 50 * 85 + 82 THEN NULL WHEN - + 58 + + ( 42 ) + + - 65 - 49 THEN - AVG ( DISTINCT - - ( - - 56 ) ) ELSE NULL END - - - 68 + 47 + 33 WHEN 32 THEN 44 * 47 END AS col1
----
NULL

query I rowsort
SELECT - 83 + 28
----
-55

query II rowsort
SELECT ALL + 93 AS col1, + ( ( - ( 23 ) ) ) * - + 14
----
93
322

query I rowsort
SELECT - 59 * + - 14 AS col0
----
826

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT MAX( ALL - - 65 )
----
65

skipif mysql # not compatible
query I rowsort label-9
SELECT MAX ( ALL - - 65 )
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-10
SELECT - 72 * + + 98 + - 13 DIV - 81
----
-7056

skipif mysql # not compatible
query I rowsort label-10
SELECT - 72 * + + 98 + - 13 / - 81
----
-7056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-11
SELECT + COALESCE ( CASE + + 63 WHEN + - 54 - + - 45 + + + COUNT( * ) THEN - + 43 WHEN - COUNT( * ) - - - 28 THEN + 13 / - + 42 ELSE NULL END, CAST( - ( - 16 ) AS SIGNED ) + - 99 / + COALESCE ( - 25, + + ( + 36 ) + + NULLIF ( - COUNT( + 84 ), 20 ), + 12 ) + 64 ) - - AVG ( ALL 3 ) / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-11
SELECT + COALESCE ( CASE + + 63 WHEN + - 54 - + - 45 + + + COUNT ( * ) THEN - + 43 WHEN - COUNT ( * ) - - - 28 THEN + 13 / - + 42 ELSE NULL END, CAST ( - ( - 16 ) AS INTEGER ) + - 99 / + COALESCE ( - 25, + + ( + 36 ) + + NULLIF ( - COUNT ( + 84 ), 20 ), + 12 ) + 64 ) - - AVG ( ALL 3 ) / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 0 * 18 * - 69
----
0

query I rowsort
SELECT - 69 + + - 5 AS col1
----
-74

query I rowsort
SELECT + 83 + 11 * - 81 AS col0
----
-808

query I rowsort
SELECT ALL + 73 + - 74 col2
----
-1

query I rowsort
SELECT + - 62 + - ( - + 89 ) * + 65 - - 65
----
5788

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-17
SELECT ALL 88 + - CASE + + CAST( - 22 AS SIGNED ) WHEN 55 * + COUNT( * ) + - ( - 81 ) THEN - 14 WHEN - 44 * + 70 + + + 59 THEN 84 WHEN + + CAST( + CAST( + - 95 AS SIGNED ) AS SIGNED ) / + 7 THEN - 33 END / - 63 + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-17
SELECT ALL 88 + - CASE + + CAST ( - 22 AS INTEGER ) WHEN 55 * + COUNT ( * ) + - ( - 81 ) THEN - 14 WHEN - 44 * + 70 + + + 59 THEN 84 WHEN + + CAST ( + CAST ( + - 95 AS INTEGER ) AS INTEGER ) / + 7 THEN - 33 END / - 63 + 32
----
NULL

query I rowsort
SELECT + - 13 + - NULLIF ( - 47, + 71 )
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-19
SELECT COUNT( * ) AS col2, - SUM( DISTINCT - - 95 ) AS col0
----
1
-95

skipif mysql # not compatible
query II rowsort label-19
SELECT COUNT ( * ) AS col2, - SUM ( DISTINCT - - 95 ) AS col0
----
1
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-20
SELECT ALL COALESCE ( 56, 5 ) DIV MAX( + 69 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-20
SELECT ALL COALESCE ( 56, 5 ) / MAX ( + 69 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-21
SELECT ALL + COUNT( * ) + + NULLIF ( - + ( + 91 ), COUNT( * ) ) DIV + 23
----
-2

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL + COUNT ( * ) + + NULLIF ( - + ( + 91 ), COUNT ( * ) ) / + 23
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-22
SELECT - - COUNT( * ) AS col1, - 86 DIV + 13 AS col2
----
1
-6

skipif mysql # not compatible
query II rowsort label-22
SELECT - - COUNT ( * ) AS col1, - 86 / + 13 AS col2
----
1
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-23
SELECT ALL 68 + - 45 + + - 19 + 58 DIV - CASE SUM( + 0 ) WHEN - - COUNT( DISTINCT - - 53 ) THEN 34 + - - 73 ELSE - - 63 * + - 63 + + + COUNT( - + 34 ) + SUM( DISTINCT + + 69 ) + - + COUNT( * ) + 87 - 79 * COUNT( * ) END AS col0, 47
----
4
47

skipif mysql # not compatible
query II rowsort label-23
SELECT ALL 68 + - 45 + + - 19 + 58 / - CASE SUM ( + 0 ) WHEN - - COUNT ( DISTINCT - - 53 ) THEN 34 + - - 73 ELSE - - 63 * + - 63 + + + COUNT ( - + 34 ) + SUM ( DISTINCT + + 69 ) + - + COUNT ( * ) + 87 - 79 * COUNT ( * ) END AS col0, 47
----
4
47

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

query I rowsort
SELECT DISTINCT 8 - 17
----
-9

query I rowsort
SELECT + 25 * - 47
----
-1175

onlyif mysql # DIV for integer division: 
query I rowsort label-27
SELECT 53 DIV - 3 + 74 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-27
SELECT 53 / - 3 + 74 AS col0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-28
SELECT ALL - 34 DIV - 52 - + 30 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-28
SELECT ALL - 34 / - 52 - + 30 AS col0
----
-30

query II rowsort
SELECT - 95 * - 57 AS col1, 61 col0
----
5415
61

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

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

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

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

query I rowsort
SELECT DISTINCT - 45 * + 54 AS col1
----
-2430

query I rowsort
SELECT ALL + 91 * ( - + 8 ) AS col2
----
-728

query I rowsort
SELECT ALL 14 * + - 81 AS col0
----
-1134

query I rowsort
SELECT - + 58 * + 39
----
-2262

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-36
SELECT + CASE 74 WHEN - 61 THEN CAST( - + ( + 57 ) AS SIGNED ) * 76 ELSE - 20 END
----
-20

skipif mysql # not compatible
query I rowsort label-36
SELECT + CASE 74 WHEN - 61 THEN CAST ( - + ( + 57 ) AS INTEGER ) * 76 ELSE - 20 END
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-37
SELECT - - MIN( + 77 ) col2, + 94 + + - 57 AS col0
----
77
37

skipif mysql # not compatible
query II rowsort label-37
SELECT - - MIN ( + 77 ) col2, + 94 + + - 57 AS col0
----
77
37

query I rowsort
SELECT - + NULLIF ( - 37, 49 * + 62 )
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-39
SELECT ALL 56 * - 84 * - + 11 + + MAX( DISTINCT - 39 ), + 8 * 33 AS col2
----
51705
264

skipif mysql # not compatible
query II rowsort label-39
SELECT ALL 56 * - 84 * - + 11 + + MAX ( DISTINCT - 39 ), + 8 * 33 AS col2
----
51705
264

query I rowsort
SELECT DISTINCT 18 + + + 41
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-41
SELECT DISTINCT - NULLIF ( - 27, 87 ) * - + 82 AS col0, - CASE MAX( ALL 37 ) WHEN COUNT( * ) + - 37 THEN NULL WHEN 5 THEN NULL ELSE + 58 END * + CAST( - NULLIF ( + 37, + + 82 ) AS SIGNED ) + 57 + + 11 * - + 66 * - COUNT( DISTINCT - - 65 ) AS col0
----
-2214
2929

skipif mysql # not compatible
query II rowsort label-41
SELECT DISTINCT - NULLIF ( - 27, 87 ) * - + 82 AS col0, - CASE MAX ( ALL 37 ) WHEN COUNT ( * ) + - 37 THEN NULL WHEN 5 THEN NULL ELSE + 58 END * + CAST ( - NULLIF ( + 37, + + 82 ) AS INTEGER ) + 57 + + 11 * - + 66 * - COUNT ( DISTINCT - - 65 ) AS col0
----
-2214
2929

query II rowsort
SELECT ( + + 46 ) col0, ( - + 6 )
----
46
-6

query I rowsort
SELECT - 6 * + + 35
----
-210

query I rowsort
SELECT ALL 67 - COALESCE ( + 56, 61 )
----
11

query I rowsort
SELECT 97 * + + 77 * + ( + - 41 )
----
-306229

query I rowsort
SELECT 33 * - 74 AS col2
----
-2442

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

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL COUNT ( * ) / - 58 AS col2
----
0

query I rowsort
SELECT 16 + - 80 - - 79 AS col1
----
15

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

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

query I rowsort
SELECT 22 * + 9 * + 24 AS col2
----
4752

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-51
SELECT 86, COUNT( * ) DIV - COUNT( * ) + + COUNT( * ) col1
----
86
0

skipif mysql # not compatible
query II rowsort label-51
SELECT 86, COUNT ( * ) / - COUNT ( * ) + + COUNT ( * ) col1
----
86
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-52
SELECT - ( + + 13 ) * + - 72 * + - 6 - - - 75 DIV - ( + COUNT( * ) ) AS col0
----
-5541

skipif mysql # not compatible
query I rowsort label-52
SELECT - ( + + 13 ) * + - 72 * + - 6 - - - 75 / - ( + COUNT ( * ) ) AS col0
----
-5541

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT 76 * 49 * - MAX( 19 ) * - 7 * 79 * + 12
----
469536816

skipif mysql # not compatible
query I rowsort label-53
SELECT 76 * 49 * - MAX ( 19 ) * - 7 * 79 * + 12
----
469536816

query I rowsort
SELECT 47 * - + 84 AS col0
----
-3948

onlyif mysql # DIV for integer division: 
query I rowsort label-55
SELECT ALL 59 + + 79 - 88 + + + 56 DIV - 28
----
48

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL 59 + + 79 - 88 + + + 56 / - 28
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT DISTINCT 76 + MIN( ALL CASE 65 WHEN + + 49 THEN + 67 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT 76 + MIN ( ALL CASE 65 WHEN + + 49 THEN + 67 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-57
SELECT ALL CAST( NULL AS SIGNED ) + + 0 / + - 48 + CAST( NULL AS DECIMAL ) - + 34 * - 86 * - CAST( 63 AS DECIMAL ) * + 57 + 46 + + 35 AS col1, + 26 * - 0 + 25 AS col0
----
NULL
25

skipif mysql # not compatible
query II rowsort label-57
SELECT ALL CAST ( NULL AS INTEGER ) + + 0 / + - 48 + CAST ( NULL AS REAL ) - + 34 * - 86 * - CAST ( 63 AS REAL ) * + 57 + 46 + + 35 AS col1, + 26 * - 0 + 25 AS col0
----
NULL
25

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-59
SELECT + 4 * + - CAST( - COUNT( * ) AS SIGNED ) - + - 22
----
26

skipif mysql # not compatible
query I rowsort label-59
SELECT + 4 * + - CAST ( - COUNT ( * ) AS INTEGER ) - + - 22
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-60
SELECT - 87 DIV 23
----
-3

skipif mysql # not compatible
query I rowsort label-60
SELECT - 87 / 23
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT + 27 + COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-61
SELECT + 27 + COUNT ( * ) AS col2
----
28

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

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

query I rowsort
SELECT + 12 * 97 + ( - + 71 )
----
1093

query I rowsort
SELECT + 54 + + 16 AS col2
----
70

query I rowsort
SELECT ALL - 80 + 1
----
-79

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

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

query I rowsort
SELECT ALL - + 20 - + 6 AS col2
----
-26

query II rowsort
SELECT - 11, - 54 AS col2
----
-11
-54

query I rowsort
SELECT DISTINCT 46 * - 62 AS col0
----
-2852

query I rowsort
SELECT 79 + - 26
----
53

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

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

query II rowsort
SELECT + NULLIF ( - + 58, + 78 ), + 66 AS col1
----
-58
66

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

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

query I rowsort
SELECT 36 + - 48
----
-12

query I rowsort
SELECT 7 * + - 0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-76
SELECT 20 AS col2, CAST( NULL AS DECIMAL )
----
20
NULL

skipif mysql # not compatible
query II rowsort label-76
SELECT 20 AS col2, CAST ( NULL AS REAL )
----
20
NULL

query I rowsort
SELECT 32 * 16 AS col1
----
512

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT ALL - 90 * COUNT( 33 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-78
SELECT ALL - 90 * COUNT ( 33 ) AS col2
----
-90

query II rowsort
SELECT ALL 94 AS col0, + 75 col1
----
94
75

query II rowsort
SELECT - 96, 54 col0
----
-96
54

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

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

query I rowsort
SELECT 22 / - + CASE + 83 WHEN - - 61 THEN + 2 END
----
NULL

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

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

query II rowsort
SELECT 63, 99 + + 74 AS col1
----
63
173

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT 38 + + + 8 * + ( + - 26 ) + - - SUM( + 52 ) + 48 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-85
SELECT 38 + + + 8 * + ( + - 26 ) + - - SUM ( + 52 ) + 48 AS col0
----
-70

query I rowsort
SELECT - NULLIF ( + 1, 23 ) * + 54 - 80 * - + 90 + - 87 col1
----
7059

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT DISTINCT 34 * - 54 + + - COUNT( * )
----
-1837

skipif mysql # not compatible
query I rowsort label-87
SELECT DISTINCT 34 * - 54 + + - COUNT ( * )
----
-1837

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT ALL - 87 * 6 + + - 14 + - COUNT( * ) * + 89 AS col2
----
-625

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL - 87 * 6 + + - 14 + - COUNT ( * ) * + 89 AS col2
----
-625

query I rowsort
SELECT ALL 0 * 1 * + - 20 AS col1
----
0

query I rowsort
SELECT ALL 34 * 61 + 87
----
2161

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT DISTINCT COALESCE ( - - 10, - 9 + - 6 + + SUM( + 60 ) * - 99 + - 6 + + 89 + - 48 * - COUNT( * ) + - 8 ) * + 13 + - + ( COUNT( * ) ) + + + 19 AS col0
----
148

skipif mysql # not compatible
query I rowsort label-91
SELECT DISTINCT COALESCE ( - - 10, - 9 + - 6 + + SUM ( + 60 ) * - 99 + - 6 + + 89 + - 48 * - COUNT ( * ) + - 8 ) * + 13 + - + ( COUNT ( * ) ) + + + 19 AS col0
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-92
SELECT ALL 56 * + ( MIN( CAST( + 9 AS SIGNED ) ) ) + 54 AS col0
----
558

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL 56 * + ( MIN ( CAST ( + 9 AS INTEGER ) ) ) + 54 AS col0
----
558

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-93
SELECT + + CAST( NULL AS SIGNED ) col0, - AVG ( - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-93
SELECT + + CAST ( NULL AS INTEGER ) col0, - AVG ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-94
SELECT 84 * - - SUM( + 70 ) + 20 + - ( - - 47 ) + + 38 AS col0, + 35
----
5891
35

skipif mysql # not compatible
query II rowsort label-94
SELECT 84 * - - SUM ( + 70 ) + 20 + - ( - - 47 ) + + 38 AS col0, + 35
----
5891
35

onlyif mysql # aggregate syntax: 
query II rowsort label-95
SELECT DISTINCT + ( - - SUM( + 77 ) ) - - 94 AS col2, COUNT( * )
----
171
1

skipif mysql # not compatible
query II rowsort label-95
SELECT DISTINCT + ( - - SUM ( + 77 ) ) - - 94 AS col2, COUNT ( * )
----
171
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-96
SELECT DISTINCT - + 17 AS col1, 37 / + 27 * + + CAST( NULL AS SIGNED )
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-96
SELECT DISTINCT - + 17 AS col1, 37 / + 27 * + + CAST ( NULL AS INTEGER )
----
-17
NULL

query I rowsort
SELECT ALL + - ( - - 63 ) AS col1
----
-63

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

onlyif mysql # aggregate syntax: 
query II rowsort label-99
SELECT 63 col2, NULLIF ( 90, + 13 + 98 + SUM( DISTINCT - 39 ) )
----
63
90

skipif mysql # not compatible
query II rowsort label-99
SELECT 63 col2, NULLIF ( 90, + 13 + 98 + SUM ( DISTINCT - 39 ) )
----
63
90

query I rowsort
SELECT ALL + 68 - 39 AS col2
----
29

query I rowsort
SELECT + + 62 * + + NULLIF ( - 42, + 78 / - 92 ) AS col0
----
-2604

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-102
SELECT - + 70, CASE + 2 WHEN - 75 THEN + + 31 - - AVG ( - + 60 ) WHEN - AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULL END AS col0, + - 72 AS col1
----
-70
NULL
-72

skipif mysql # not compatible
query III rowsort label-102
SELECT - + 70, CASE + 2 WHEN - 75 THEN + + 31 - - AVG ( - + 60 ) WHEN - AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULL END AS col0, + - 72 AS col1
----
-70
NULL
-72

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-104
SELECT + ( + COUNT( * ) ) - CASE - NULLIF ( COUNT( + 67 ), - 51 - + 65 + + - 57 * 67 + 62 * - 86 * + 54 / - 88 * CAST( NULL AS SIGNED ) + - + CAST( - 34 AS SIGNED ) ) WHEN SUM( 30 ) THEN + 28 + 40 WHEN 56 THEN + 87 + - 84 * - 29 + 55 WHEN - 16 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-104
SELECT + ( + COUNT ( * ) ) - CASE - NULLIF ( COUNT ( + 67 ), - 51 - + 65 + + - 57 * 67 + 62 * - 86 * + 54 / - 88 * CAST ( NULL AS INTEGER ) + - + CAST ( - 34 AS INTEGER ) ) WHEN SUM ( 30 ) THEN + 28 + 40 WHEN 56 THEN + 87 + - 84 * - 29 + 55 WHEN - 16 THEN NULL ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT - NULLIF ( - + 23, ( + 93 ) * + - 59 + + - 30 )
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-107
SELECT ALL - MAX( ALL + 8 ) * + 21 + - + 10 DIV 98, - 42 AS col1
----
-168
-42

skipif mysql # not compatible
query II rowsort label-107
SELECT ALL - MAX ( ALL + 8 ) * + 21 + - + 10 / 98, - 42 AS col1
----
-168
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT + 2 * MIN( DISTINCT 39 ) * 75 + + + 26
----
5876

skipif mysql # not compatible
query I rowsort label-108
SELECT + 2 * MIN ( DISTINCT 39 ) * 75 + + + 26
----
5876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-109
SELECT ALL COALESCE ( 24, - COALESCE ( + 11, 84 ) * 29 + COUNT( * ) + - + 2 - - - COUNT( * ) + - 3 + - 84 * + + 80 + 25 + + 30 * COUNT( * ) * + + 66 + 16 + 72 - 31 * COUNT( * ) * + + 77 + - 59, + 51 ) * 27 * + 23 * - ( + 61 ) * 61 + - 27 * + CAST( + 44 * 47 AS SIGNED ) col1
----
-55513620

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL COALESCE ( 24, - COALESCE ( + 11, 84 ) * 29 + COUNT ( * ) + - + 2 - - - COUNT ( * ) + - 3 + - 84 * + + 80 + 25 + + 30 * COUNT ( * ) * + + 66 + 16 + 72 - 31 * COUNT ( * ) * + + 77 + - 59, + 51 ) * 27 * + 23 * - ( + 61 ) * 61 + - 27 * + CAST ( + 44 * 47 AS INTEGER ) col1
----
-55513620

onlyif mysql # aggregate syntax: 
query II rowsort label-110
SELECT ALL COUNT( ALL 44 ) col2, 98 AS col0
----
1
98

skipif mysql # not compatible
query II rowsort label-110
SELECT ALL COUNT ( ALL 44 ) col2, 98 AS col0
----
1
98

query II rowsort
SELECT - ( - - 11 ) AS col0, + 99 AS col2
----
-11
99

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

query I rowsort
SELECT ALL - 4 + + 24
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT - COUNT( * ) + - 12 + + 28
----
15

skipif mysql # not compatible
query I rowsort label-114
SELECT - COUNT ( * ) + - 12 + + 28
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-115
SELECT DISTINCT + 14 * + CAST( - 55 AS SIGNED )
----
-770

skipif mysql # not compatible
query I rowsort label-115
SELECT DISTINCT + 14 * + CAST ( - 55 AS INTEGER )
----
-770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-116
SELECT ALL - 59 + + + 94 AS col1, - 83 + MAX( - CAST( 24 AS SIGNED ) ) AS col1
----
35
-107

skipif mysql # not compatible
query II rowsort label-116
SELECT ALL - 59 + + + 94 AS col1, - 83 + MAX ( - CAST ( 24 AS INTEGER ) ) AS col1
----
35
-107

onlyif mysql # DIV for integer division: 
query I rowsort label-117
SELECT DISTINCT 98 DIV 41 + 16 + - 89 * 35 AS col2
----
-3097

skipif mysql # not compatible
query I rowsort label-117
SELECT DISTINCT 98 / 41 + 16 + - 89 * 35 AS col2
----
-3097

onlyif mysql # DIV for integer division: 
query I rowsort label-118
SELECT - ( + 78 ) DIV + - 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-118
SELECT - ( + 78 ) / + - 85 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT - + 35 * + COUNT( * ) * + + 69 + - - 27
----
-2388

skipif mysql # not compatible
query I rowsort label-119
SELECT - + 35 * + COUNT ( * ) * + + 69 + - - 27
----
-2388

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT - COUNT( * ) + 60 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-120
SELECT - COUNT ( * ) + 60 AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-121
SELECT ALL CAST( - - 91 AS SIGNED ) DIV + COUNT( + + 66 )
----
91

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL CAST ( - - 91 AS INTEGER ) / + COUNT ( + + 66 )
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-122
SELECT DISTINCT - 16 * + 24 * + 56 * 90 - + - 88 AS col0, 63 DIV + 74 + + - ( - + 86 ) AS col0
----
-1935272
86

skipif mysql # not compatible
query II rowsort label-122
SELECT DISTINCT - 16 * + 24 * + 56 * 90 - + - 88 AS col0, 63 / + 74 + + - ( - + 86 ) AS col0
----
-1935272
86

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT DISTINCT 84 * MIN( DISTINCT + 99 )
----
8316

skipif mysql # not compatible
query I rowsort label-123
SELECT DISTINCT 84 * MIN ( DISTINCT + 99 )
----
8316

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-124
SELECT ALL + + CASE + CAST( NULL AS SIGNED ) WHEN 73 + + 64 + - - 0 / 46 THEN - CAST( - CASE - 40 WHEN 89 THEN NULL WHEN - 10 THEN 46 ELSE NULL END AS DECIMAL ) + - - CAST( + ( + 47 ) AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-124
SELECT ALL + + CASE + CAST ( NULL AS INTEGER ) WHEN 73 + + 64 + - - 0 / 46 THEN - CAST ( - CASE - 40 WHEN 89 THEN NULL WHEN - 10 THEN 46 ELSE NULL END AS REAL ) + - - CAST ( + ( + 47 ) AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-125
SELECT ALL - 13 DIV - 35 - + 52 col0
----
-52

skipif mysql # not compatible
query I rowsort label-125
SELECT ALL - 13 / - 35 - + 52 col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT - - 8 + - MIN( - 78 ) * - COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-126
SELECT - - 8 + - MIN ( - 78 ) * - COUNT ( * )
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-127
SELECT COALESCE ( 54, + 60, - 71 ) * + COUNT( * ) - 44 + - 21 * + - 88 + 3 * 69 AS col2, + 40 AS col2
----
2065
40

skipif mysql # not compatible
query II rowsort label-127
SELECT COALESCE ( 54, + 60, - 71 ) * + COUNT ( * ) - 44 + - 21 * + - 88 + 3 * 69 AS col2, + 40 AS col2
----
2065
40

query I rowsort
SELECT + + CASE - - 86 WHEN 2 + - 19 + 2 THEN 62 END AS col2
----
NULL

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

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

query I rowsort
SELECT ALL + - 95 * - 37 AS col0
----
3515

query I rowsort
SELECT DISTINCT + 45 * - 5
----
-225

query II rowsort
SELECT ALL 27 AS col1, - 55 AS col0
----
27
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-133
SELECT + 8 DIV + 6 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-133
SELECT + 8 / + 6 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-134
SELECT COUNT( * ) * + - 50 + - + 61 AS col2, NULLIF ( + + 42, + 14 + - 9 ) DIV 65
----
-111
0

skipif mysql # not compatible
query II rowsort label-134
SELECT COUNT ( * ) * + - 50 + - + 61 AS col2, NULLIF ( + + 42, + 14 + - 9 ) / 65
----
-111
0

query I rowsort
SELECT + 43 * - 11 AS col2
----
-473

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

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT DISTINCT 89 * MIN( + 81 )
----
7209

skipif mysql # not compatible
query I rowsort label-137
SELECT DISTINCT 89 * MIN ( + 81 )
----
7209

onlyif mysql # DIV for integer division: 
query I rowsort label-138
SELECT DISTINCT 1 DIV - ( + 88 ) * + + 63
----
0

skipif mysql # not compatible
query I rowsort label-138
SELECT DISTINCT 1 / - ( + 88 ) * + + 63
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-139
SELECT ALL - 0 * + + 19 DIV + 1 * + - 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-139
SELECT ALL - 0 * + + 19 / + 1 * + - 61 AS col2
----
0

query I rowsort
SELECT DISTINCT CASE + 4 WHEN + 13 * + 37 + 0 - 78 THEN NULL WHEN + 21 THEN NULL ELSE + - 2 END AS col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-141
SELECT DISTINCT 54 * - COALESCE ( 47, + + 32 DIV + - COUNT( * ), - 8 ) * - 92 AS col1
----
233496

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT 54 * - COALESCE ( 47, + + 32 / + - COUNT ( * ), - 8 ) * - 92 AS col1
----
233496

query I rowsort
SELECT ALL + 28 + + 14 + - + 19 + + 52 col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT ALL - SUM( DISTINCT + 71 ) + COUNT( * ) * - 76
----
-147

skipif mysql # not compatible
query I rowsort label-143
SELECT ALL - SUM ( DISTINCT + 71 ) + COUNT ( * ) * - 76
----
-147

query I rowsort
SELECT - 83 * 77
----
-6391

query I rowsort
SELECT DISTINCT 47 * - 67 * 61 * 45
----
-8644005

query I rowsort
SELECT DISTINCT NULLIF ( 82, - + AVG ( 85 ) + - 62 )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-147
SELECT DISTINCT + - CAST( + 20 AS SIGNED ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT + - CAST ( + 20 AS INTEGER ) AS col2
----
-20

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

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

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

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

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

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

query II rowsort
SELECT 85 + - 77 - - 12, 58 AS col0
----
20
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-152
SELECT DISTINCT + 1 * - COUNT( * ) * + - 98 * - ( CAST( NULL AS SIGNED ) ) + - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-152
SELECT DISTINCT + 1 * - COUNT ( * ) * + - 98 * - ( CAST ( NULL AS INTEGER ) ) + - 47 AS col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - + NULLIF ( - 11, 16 ), - + 32 ) AS col2
----
-11

query I rowsort
SELECT 33 * 4 AS col0
----
132

query II rowsort
SELECT + 52 AS col0, 22 - - 59
----
52
81

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT - + 83 / - 67 + 53 - + 29 * 66 + + CASE - COUNT( * ) WHEN 78 * + 81 / ( - 50 ) + - 64 + + + COUNT( * ) - + - AVG ( DISTINCT + 12 ) - + 39 * 71 THEN - + 3 END * + COUNT( * ) * + - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-156
SELECT - + 83 / - 67 + 53 - + 29 * 66 + + CASE - COUNT ( * ) WHEN 78 * + 81 / ( - 50 ) + - 64 + + + COUNT ( * ) - + - AVG ( DISTINCT + 12 ) - + 39 * 71 THEN - + 3 END * + COUNT ( * ) * + - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT ALL - ( 28 ) * - 29 * - - 51
----
41412

query II rowsort
SELECT DISTINCT - 84, + 38 AS col1
----
-84
38

query I rowsort
SELECT ALL - + CASE - 71 WHEN 97 THEN + 93 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-160
SELECT DISTINCT 85 + - 97 + + - 5 * - 1 DIV - 49 + - ( - + ( - + 85 ) ) + - 54 AS col2, - 30
----
-151
-30

skipif mysql # not compatible
query II rowsort label-160
SELECT DISTINCT 85 + - 97 + + - 5 * - 1 / - 49 + - ( - + ( - + 85 ) ) + - 54 AS col2, - 30
----
-151
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-161
SELECT ALL 91 + - + 6, 91 DIV + 78 AS col1
----
85
1

skipif mysql # not compatible
query II rowsort label-161
SELECT ALL 91 + - + 6, 91 / + 78 AS col1
----
85
1

query I rowsort
SELECT 42 * + 25 * - 85 AS col0
----
-89250

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

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

query I rowsort
SELECT 16 * - + ( + 26 ) col1
----
-416

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

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

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

query I rowsort
SELECT DISTINCT 42 + + - 92 AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT 50 + - - COUNT( * ) - + 53 * - 26 * COUNT( * ) * 89 AS col1
----
122693

skipif mysql # not compatible
query I rowsort label-168
SELECT 50 + - - COUNT ( * ) - + 53 * - 26 * COUNT ( * ) * 89 AS col1
----
122693

query I rowsort
SELECT 86 - - 72 col2
----
158

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

skipif mysql # not compatible
query I rowsort label-170
SELECT ALL 41 - - - 74 - + COUNT ( * ) AS col0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-171
SELECT 76 + - - COALESCE ( - ( - - CAST( + 46 AS SIGNED ) ), NULLIF ( + 12, + 89 ) - 47 / - - ( + 74 ), - 62, 22 / AVG ( DISTINCT - NULLIF ( - + ( - + 47 ), + 67 ) ) ) - + - CAST( NULL AS DECIMAL ) - - 37 * - 21 * + - COUNT( * ) AS col1, + COUNT( * ) + 64 * - 83 + 43 AS col0
----
NULL
-5268

skipif mysql # not compatible
query II rowsort label-171
SELECT 76 + - - COALESCE ( - ( - - CAST ( + 46 AS INTEGER ) ), NULLIF ( + 12, + 89 ) - 47 / - - ( + 74 ), - 62, 22 / AVG ( DISTINCT - NULLIF ( - + ( - + 47 ), + 67 ) ) ) - + - CAST ( NULL AS REAL ) - - 37 * - 21 * + - COUNT ( * ) AS col1, + COUNT ( * ) + 64 * - 83 + 43 AS col0
----
NULL
-5268

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-172
SELECT ALL - 7 * + + 6 DIV - 64 + MAX( ALL 32 ) - 41 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL - 7 * + + 6 / - 64 + MAX ( ALL 32 ) - 41 AS col0
----
-9

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

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

query I rowsort
SELECT ALL + ( + 32 ) - - 6 col1
----
38

query I rowsort
SELECT ALL - 63 * + COALESCE ( 7, + 31 ) AS col1
----
-441

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT ALL MIN( ALL - - 66 ) * - 80 + - - 85
----
-5195

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL MIN ( ALL - - 66 ) * - 80 + - - 85
----
-5195

onlyif mysql # aggregate syntax: 
query II rowsort label-177
SELECT + MIN( + - 69 ), - 7 AS col2
----
-69
-7

skipif mysql # not compatible
query II rowsort label-177
SELECT + MIN ( + - 69 ), - 7 AS col2
----
-69
-7

query I rowsort
SELECT 69 * 77 * - + 29 * + - 57 col0
----
8782389

query I rowsort
SELECT ALL 1 * + 95
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-180
SELECT + ( + ( - + 40 ) ) * CASE 28 WHEN + 42 + + MAX( ALL - + 52 ) / + - COUNT( * ) * 47 / - 15 + - NULLIF ( - COALESCE ( - COUNT( * ), + 25 ), - 42 ) THEN MIN( - 17 ) - - + 57 ELSE + 67 * - + 31 END - + COUNT( * ) * CAST( NULL AS SIGNED ) + + COUNT( * ) + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-180
SELECT + ( + ( - + 40 ) ) * CASE 28 WHEN + 42 + + MAX ( ALL - + 52 ) / + - COUNT ( * ) * 47 / - 15 + - NULLIF ( - COALESCE ( - COUNT ( * ), + 25 ), - 42 ) THEN MIN ( - 17 ) - - + 57 ELSE + 67 * - + 31 END - + COUNT ( * ) * CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + 85
----
NULL

query I rowsort
SELECT 92 * - 95 AS col0
----
-8740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-182
SELECT + 86 DIV + MIN( ALL - 2 ) + + 79 - + 49 DIV - + 50 + + + 83 + 85
----
204

skipif mysql # not compatible
query I rowsort label-182
SELECT + 86 / + MIN ( ALL - 2 ) + + 79 - + 49 / - + 50 + + + 83 + 85
----
204

query II rowsort
SELECT + + ( + - 92 ), 92 AS col2
----
-92
92

query I rowsort
SELECT DISTINCT - - COALESCE ( + 89, 33, + 46 ) col0
----
89

query I rowsort
SELECT + 20 + - 78 col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-186
SELECT ALL 90 + 8 - - ( - 69 ) DIV - 40 + - - ( 43 ) AS col0
----
142

skipif mysql # not compatible
query I rowsort label-186
SELECT ALL 90 + 8 - - ( - 69 ) / - 40 + - - ( 43 ) AS col0
----
142

query I rowsort
SELECT ALL 17 + + 53 - + 33 AS col2
----
37

query I rowsort
SELECT COALESCE ( + 70, + 70 ) AS col2
----
70

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

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

query I rowsort
SELECT 51 + + 6 * - - 88
----
579

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT ALL - ( - + COUNT( * ) ) + 23 * + - 16 AS col2
----
-367

skipif mysql # not compatible
query I rowsort label-191
SELECT ALL - ( - + COUNT ( * ) ) + 23 * + - 16 AS col2
----
-367

query I rowsort
SELECT 61 + - 80 + + 81 AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-193
SELECT ALL + CASE - 4 WHEN + 82 / + 48 + - + 9 THEN NULL ELSE - 36 * + CAST( NULL AS SIGNED ) + - + 89 END + + ( + CASE 24 WHEN - 76 THEN 77 END ) - + ( - 6 ) AS col2, NULLIF ( - 59, + - 9 * 24 + - 84 + 9 ) AS col0
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-193
SELECT ALL + CASE - 4 WHEN + 82 / + 48 + - + 9 THEN NULL ELSE - 36 * + CAST ( NULL AS INTEGER ) + - + 89 END + + ( + CASE 24 WHEN - 76 THEN 77 END ) - + ( - 6 ) AS col2, NULLIF ( - 59, + - 9 * 24 + - 84 + 9 ) AS col0
----
NULL
-59

query I rowsort
SELECT 72 * - + 62 + + 94
----
-4370

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

query I rowsort
SELECT 60 + + - 45 * + + 75 + + ( + 34 )
----
-3281

query I rowsort
SELECT ALL 1 - 62 AS col0
----
-61

query I rowsort
SELECT 67 * 84 * + 74
----
416472

query I rowsort
SELECT 76 + - ( + 71 ) - ( 59 ) * + 24
----
-1411

onlyif mysql # DIV for integer division: 
query I rowsort label-200
SELECT DISTINCT + 82 DIV + 3 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-200
SELECT DISTINCT + 82 / + 3 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT MIN( + 28 ) + - 19 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-201
SELECT MIN ( + 28 ) + - 19 AS col1
----
9

query I rowsort
SELECT 57 * - - 27
----
1539

query I rowsort
SELECT 95 + - 48
----
47

query I rowsort
SELECT ALL - 10 - + + 23
----
-33

query I rowsort
SELECT 66 * - 3
----
-198

query I rowsort
SELECT 2 * - 92 AS col0
----
-184

query II rowsort
SELECT - 68 AS col2, + 6
----
-68
6

query I rowsort
SELECT ALL - 10 * - 64 * - - ( + 27 )
----
17280

query I rowsort
SELECT + COALESCE ( + 99, 16 ) col1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-210
SELECT ALL + 51 DIV + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-210
SELECT ALL + 51 / + 66 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-211
SELECT + + COUNT ( * ) / - + 60 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-212
SELECT + 91 + - COALESCE ( - 76, + 28 * - + 53 * - 3 + + - NULLIF ( + COUNT( ALL - 89 ), - - CAST( NULL AS SIGNED ) ) + - 47 * 59 )
----
167

skipif mysql # not compatible
query I rowsort label-212
SELECT + 91 + - COALESCE ( - 76, + 28 * - + 53 * - 3 + + - NULLIF ( + COUNT ( ALL - 89 ), - - CAST ( NULL AS INTEGER ) ) + - 47 * 59 )
----
167

onlyif mysql # DIV for integer division: 
query I rowsort label-213
SELECT + 18 DIV + - 43 col2
----
0

skipif mysql # not compatible
query I rowsort label-213
SELECT + 18 / + - 43 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-214
SELECT - - COUNT( * ) DIV - - COUNT( * ) + + + 10 - 45 + 91
----
57

skipif mysql # not compatible
query I rowsort label-214
SELECT - - COUNT ( * ) / - - COUNT ( * ) + + + 10 - 45 + 91
----
57

query I rowsort
SELECT + + 31 * - + 46 * - 33 * + 21 + ( 1 ) + + - 35 + 16 AS col2
----
988200

query I rowsort
SELECT + 61 * 73
----
4453

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-217
SELECT ALL + COUNT( * ), + COALESCE ( - 18, + MAX( - - 10 ), COUNT( * ) ) * 7 + - CAST( NULL AS SIGNED ) / + 87 - - - 51 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-217
SELECT ALL + COUNT ( * ), + COALESCE ( - 18, + MAX ( - - 10 ), COUNT ( * ) ) * 7 + - CAST ( NULL AS INTEGER ) / + 87 - - - 51 AS col2
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-218
SELECT DISTINCT MAX( DISTINCT + + 14 ) * + 45 + - 22 * + COUNT( * ) - + 48 DIV - 30 AS col0
----
609

skipif mysql # not compatible
query I rowsort label-218
SELECT DISTINCT MAX ( DISTINCT + + 14 ) * + 45 + - 22 * + COUNT ( * ) - + 48 / - 30 AS col0
----
609

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

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT ALL 45 * - + 52 * + 14 - COUNT( * ) AS col2
----
-32761

skipif mysql # not compatible
query I rowsort label-220
SELECT ALL 45 * - + 52 * + 14 - COUNT ( * ) AS col2
----
-32761

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT DISTINCT - 86 * MIN( - - 52 ) AS col2
----
-4472

skipif mysql # not compatible
query I rowsort label-221
SELECT DISTINCT - 86 * MIN ( - - 52 ) AS col2
----
-4472

query I rowsort
SELECT ALL 72 * 67
----
4824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-223
SELECT DISTINCT 8 * - 74 * + 82 - + + 1 DIV 98 DIV + 47 * - + COUNT( DISTINCT 70 ) AS col0
----
-48544

skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT 8 * - 74 * + 82 - + + 1 / 98 / + 47 * - + COUNT ( DISTINCT 70 ) AS col0
----
-48544

query I rowsort
SELECT DISTINCT + 87 * - 78
----
-6786

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

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

query I rowsort
SELECT - 53 * 14 AS col2
----
-742

query I rowsort
SELECT ALL NULLIF ( + + 18, - 41 + 98 ) AS col2
----
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT ALL MAX( - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL MAX ( - 37 )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-230
SELECT ALL + - COUNT( * ) DIV - 5 + - 82 + - 82
----
-164

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL + - COUNT ( * ) / - 5 + - 82 + - 82
----
-164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-231
SELECT - - 35 - - NULLIF ( 34, CASE CASE 50 WHEN 27 * - - 3 THEN NULL WHEN + 6 * 57 / + 30 + - + 12 / NULLIF ( 74, - NULLIF ( + 55, + 85 ) + - + 88 - - + 70 ) THEN ( - - 76 ) + - + COUNT( * ) + - COUNT( * ) - + - 79 WHEN - 70 * - 20 THEN NULL ELSE + - 57 / - 29 END WHEN + COUNT( * ) + - 8 + - CASE - 67 WHEN + 1 * - CASE - 81 * 50 WHEN CAST( 54 AS SIGNED ) THEN NULL WHEN NULLIF ( 47, MAX( + 11 ) ) THEN - 47 END + + 13 THEN NULL WHEN 57 * + 98 - ( 49 ) THEN 89 END * 10 * COALESCE ( + 23 * - MIN( 65 ), - 4 ) THEN NULL WHEN 72 THEN - 94 * CASE ( + 26 ) WHEN - ( 32 ) * - 6 + + COUNT( * ) THEN + MIN( ALL - ( 22 ) ) + + COUNT( * ) ELSE + 58 END END )
----
69

skipif mysql # not compatible
query I rowsort label-231
SELECT - - 35 - - NULLIF ( 34, CASE CASE 50 WHEN 27 * - - 3 THEN NULL WHEN + 6 * 57 / + 30 + - + 12 / NULLIF ( 74, - NULLIF ( + 55, + 85 ) + - + 88 - - + 70 ) THEN ( - - 76 ) + - + COUNT ( * ) + - COUNT ( * ) - + - 79 WHEN - 70 * - 20 THEN NULL ELSE + - 57 / - 29 END WHEN + COUNT ( * ) + - 8 + - CASE - 67 WHEN + 1 * - CASE - 81 * 50 WHEN CAST ( 54 AS INTEGER ) THEN NULL WHEN NULLIF ( 47, MAX ( + 11 ) ) THEN - 47 END + + 13 THEN NULL WHEN 57 * + 98 - ( 49 ) THEN 89 END * 10 * COALESCE ( + 23 * - MIN ( 65 ), - 4 ) THEN NULL WHEN 72 THEN - 94 * CASE ( + 26 ) WHEN - ( 32 ) * - 6 + + COUNT ( * ) THEN + MIN ( ALL - ( 22 ) ) + + COUNT ( * ) ELSE + 58 END END )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT - 9 * COUNT( ALL - - 13 ) col0
----
-9

skipif mysql # not compatible
query I rowsort label-232
SELECT - 9 * COUNT ( ALL - - 13 ) col0
----
-9

query I rowsort
SELECT DISTINCT + + 90 + + - 83
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-234
SELECT + CAST( NULL AS SIGNED ) * + 33 * + + COUNT( DISTINCT - 96 ) / 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-234
SELECT + CAST ( NULL AS INTEGER ) * + 33 * + + COUNT ( DISTINCT - 96 ) / 34 AS col1
----
NULL

query I rowsort
SELECT + - 86 - - 28 AS col1
----
-58

query I rowsort
SELECT ALL + + 15 + - NULLIF ( + + 72, - 95 + 6 )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-237
SELECT DISTINCT + + 98 + + COALESCE ( 51, - 46 + - COUNT( * ) ) + - COUNT( ALL + + CAST( 52 AS SIGNED ) )
----
148

skipif mysql # not compatible
query I rowsort label-237
SELECT DISTINCT + + 98 + + COALESCE ( 51, - 46 + - COUNT ( * ) ) + - COUNT ( ALL + + CAST ( 52 AS INTEGER ) )
----
148

query II rowsort
SELECT ALL 98 AS col1, + 82 col2
----
98
82

query II rowsort
SELECT - 89 * - 78 AS col0, - 99 col0
----
6942
-99

query I rowsort
SELECT DISTINCT - 73 + - 33
----
-106

query I rowsort
SELECT ALL - + 23 + + 19
----
-4

query II rowsort
SELECT DISTINCT 26, + 52 * - 41 AS col2
----
26
-2132

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT + COUNT( * ) * - MIN( + 30 ) + - ( - 59 ) + ( - + 81 )
----
-52

skipif mysql # not compatible
query I rowsort label-243
SELECT + COUNT ( * ) * - MIN ( + 30 ) + - ( - 59 ) + ( - + 81 )
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-244
SELECT ALL + 19 DIV 17 * ( - - COUNT( * ) ) + + 57 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL + 19 / 17 * ( - - COUNT ( * ) ) + + 57 AS col0
----
58

query II rowsort
SELECT ALL + 90, - 2 AS col1
----
90
-2

query II rowsort
SELECT DISTINCT + - 17, - 49 * + 56 * 43 AS col1
----
-17
-117992

query I rowsort
SELECT - + 55 * - - 13 - - - 63 * + ( - 94 )
----
5207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-248
SELECT DISTINCT + 46 DIV MIN( + 38 ) * - + 6 * 74 AS col1
----
-444

skipif mysql # not compatible
query I rowsort label-248
SELECT DISTINCT + 46 / MIN ( + 38 ) * - + 6 * 74 AS col1
----
-444

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-249
SELECT ALL + 67, - CAST( + 62 AS SIGNED ) + - 16 AS col1
----
67
-78

skipif mysql # not compatible
query II rowsort label-249
SELECT ALL + 67, - CAST ( + 62 AS INTEGER ) + - 16 AS col1
----
67
-78

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-251
SELECT ALL 67 / + 50 * - ( - - CAST( NULL AS SIGNED ) ) - ( 10 ) * CAST( - + ( + 93 ) AS SIGNED ) + COUNT( ALL + 56 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL 67 / + 50 * - ( - - CAST ( NULL AS INTEGER ) ) - ( 10 ) * CAST ( - + ( + 93 ) AS INTEGER ) + COUNT ( ALL + 56 ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-253
SELECT 73 * + + MAX( 94 ) - - - 94 - - CAST( NULL AS DECIMAL ) * 25 / - - 29 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-253
SELECT 73 * + + MAX ( 94 ) - - - 94 - - CAST ( NULL AS REAL ) * 25 / - - 29 col1
----
NULL

query I rowsort
SELECT + ( 27 ) * - 71 AS col1
----
-1917

query II rowsort
SELECT ALL 72 * + + 98, ( - + 31 ) col2
----
7056
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT - MIN( ALL + - 77 ) + + COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-256
SELECT - MIN ( ALL + - 77 ) + + COUNT ( * ) AS col2
----
78

query I rowsort
SELECT + 91 * + 27 - - 16
----
2473

query I rowsort
SELECT + 72 * - 84
----
-6048

query II rowsort
SELECT ( + 19 ), - ( - 59 ) col1
----
19
59

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT + 34 * - ( ( + CASE 79 WHEN + SUM( - - 66 ) * - ( 43 ) THEN - + 49 END ) ) + - 36 * 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-260
SELECT + 34 * - ( ( + CASE 79 WHEN + SUM ( - - 66 ) * - ( 43 ) THEN - + 49 END ) ) + - 36 * 71 AS col2
----
NULL

query I rowsort
SELECT ( + - 42 ) + + COALESCE ( 14, + 89 + - 14 - + 48 - ( - 5 ) * 43 * + - 55 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-262
SELECT DISTINCT COUNT( * ) * - 71 AS col0, NULLIF ( 46, + 98 ) + - 92 + + 78 + - 21 * COUNT( * ) + + 9 col1
----
-71
20

skipif mysql # not compatible
query II rowsort label-262
SELECT DISTINCT COUNT ( * ) * - 71 AS col0, NULLIF ( 46, + 98 ) + - 92 + + 78 + - 21 * COUNT ( * ) + + 9 col1
----
-71
20

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-264
SELECT + 98 + - NULLIF ( + 68, 69 * - 91 + 82 DIV - MAX( ALL 45 ) + 63 ) DIV + 16 col2
----
94

skipif mysql # not compatible
query I rowsort label-264
SELECT + 98 + - NULLIF ( + 68, 69 * - 91 + 82 / - MAX ( ALL 45 ) + 63 ) / + 16 col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-265
SELECT - 7 DIV + 48 + - - 8
----
8

skipif mysql # not compatible
query I rowsort label-265
SELECT - 7 / + 48 + - - 8
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-266
SELECT ALL - SUM( DISTINCT 13 ) + + + 55 DIV - 99 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL - SUM ( DISTINCT 13 ) + + + 55 / - 99 AS col0
----
-13

query I rowsort
SELECT 85 + + 47 * - + 0 AS col0
----
85

query I rowsort
SELECT DISTINCT - 82 + + - 33 * + + 30 * - 52
----
51398

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT DISTINCT + - 63 + + COUNT( - 77 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT + - 63 + + COUNT ( - 77 ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT ALL - - 87 * - - COUNT( * ) + - 28 + + - SUM( - 13 )
----
72

skipif mysql # not compatible
query I rowsort label-270
SELECT ALL - - 87 * - - COUNT ( * ) + - 28 + + - SUM ( - 13 )
----
72

query I rowsort
SELECT 54 + - 93
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT - 23 + + 84 + 46 * + - COALESCE ( + 18, + + COUNT( * ), + 25 ) AS col0
----
-767

skipif mysql # not compatible
query I rowsort label-272
SELECT - 23 + + 84 + 46 * + - COALESCE ( + 18, + + COUNT ( * ), + 25 ) AS col0
----
-767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-273
SELECT CAST( NULL AS SIGNED ) / 14 + + 65 + 8 * - 30 / - - 30 * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-273
SELECT CAST ( NULL AS INTEGER ) / 14 + + 65 + 8 * - 30 / - - 30 * 33
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-274
SELECT ALL - + 21 DIV 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL - + 21 / 96 AS col1
----
0

query I rowsort
SELECT 2 * - 66 AS col2
----
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-276
SELECT ALL - 91 * + 83 AS col0, COUNT( * ) + + + MAX( DISTINCT - + 76 ) AS col0
----
-7553
-75

skipif mysql # not compatible
query II rowsort label-276
SELECT ALL - 91 * + 83 AS col0, COUNT ( * ) + + + MAX ( DISTINCT - + 76 ) AS col0
----
-7553
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-277
SELECT 33 + 39 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-277
SELECT 33 + 39 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + - 8 * - + 14
----
112

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

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT DISTINCT + 0 * + + 48 * 72 + - 29 - - NULLIF ( - 41, + ( - + COUNT( * ) ) ) * + - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-280
SELECT DISTINCT + 0 * + + 48 * 72 + - 29 - - NULLIF ( - 41, + ( - + COUNT ( * ) ) ) * + - COUNT ( * )
----
12

query II rowsort
SELECT 37 col1, NULLIF ( + 16, + - 41 - + 44 / + 96 ) AS col0
----
37
16

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

query I rowsort
SELECT ALL - 41 - - + 76
----
35

query I rowsort
SELECT 50 * + - 82 * + - 94
----
385400

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

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

query I rowsort
SELECT ALL 36 * 25 * - 49 col1
----
-44100

query I rowsort
SELECT DISTINCT 71 * + 10
----
710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-288
SELECT ALL - 51 + - 93 + + 66 * + + 18 * - COUNT( + 88 ) - + CASE - 5 WHEN + COALESCE ( ( - MIN( DISTINCT + - CASE WHEN NOT NULL NOT IN ( + 89, - 95, 93, 64 ) THEN 20 * + - 37 * - + 68 * 90 ELSE 70 * + 34 * ( + - 67 ) * + 6 + 85 END ) ), ( + 78 ), + 31 ) THEN NULL WHEN + - 31 / + - COUNT( * ) + - CAST( NULL AS SIGNED ) * 7 THEN CAST( + 45 AS SIGNED ) END * COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL - 51 + - 93 + + 66 * + + 18 * - COUNT ( + 88 ) - + CASE - 5 WHEN + COALESCE ( ( - MIN ( DISTINCT + - CASE WHEN NOT NULL NOT IN ( + 89, - 95, 93, 64 ) THEN 20 * + - 37 * - + 68 * 90 ELSE 70 * + 34 * ( + - 67 ) * + 6 + 85 END ) ), ( + 78 ), + 31 ) THEN NULL WHEN + - 31 / + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 7 THEN CAST ( + 45 AS INTEGER ) END * COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 6 + + + 55 + - 39 col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT ALL SUM( + 30 ) * + 74 - - NULLIF ( - 9, + + 87 ) AS col0
----
2211

skipif mysql # not compatible
query I rowsort label-290
SELECT ALL SUM ( + 30 ) * + 74 - - NULLIF ( - 9, + + 87 ) AS col0
----
2211

query II rowsort
SELECT + 22 AS col1, - 19 AS col2
----
22
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT ALL MAX( DISTINCT + 70 ) + - 4 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-292
SELECT ALL MAX ( DISTINCT + 70 ) + - 4 AS col1
----
66

query I rowsort
SELECT 22 - - - 81
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-294
SELECT ALL 79 + + COALESCE ( + - CAST( NULL AS SIGNED ), + 32 * CAST( NULL AS SIGNED ) ) * MIN( DISTINCT 52 ) - + 56 * - SUM( 37 ) / + COUNT( * ) * - 6 * - 55 * + MAX( + + 24 ) + - CASE + 9 WHEN 5 + - COUNT( DISTINCT - 29 ) THEN - 54 WHEN + + 46 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL 79 + + COALESCE ( + - CAST ( NULL AS INTEGER ), + 32 * CAST ( NULL AS INTEGER ) ) * MIN ( DISTINCT 52 ) - + 56 * - SUM ( 37 ) / + COUNT ( * ) * - 6 * - 55 * + MAX ( + + 24 ) + - CASE + 9 WHEN 5 + - COUNT ( DISTINCT - 29 ) THEN - 54 WHEN + + 46 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + ( - 52 ) - - 40 + 28 + - ( + 85 ) + - 11
----
-80

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

query II rowsort
SELECT - 82, 94 + - 19 col1
----
-82
75

query II rowsort
SELECT ALL 93 AS col1, - ( - 52 ) * - 17 * - + 96 + - - 14
----
93
84878

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT ALL - 3 + 34 * + + COUNT( * ) * 9 AS col1
----
303

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL - 3 + 34 * + + COUNT ( * ) * 9 AS col1
----
303

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-300
SELECT - ( - COUNT( * ) ) + + 37, 77 DIV COUNT( * ) AS col1
----
38
77

skipif mysql # not compatible
query II rowsort label-300
SELECT - ( - COUNT ( * ) ) + + 37, 77 / COUNT ( * ) AS col1
----
38
77

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

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

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

query I rowsort
SELECT DISTINCT 86 * - - 81 AS col2
----
6966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-304
SELECT + 64 * + - CAST( + 51 AS SIGNED )
----
-3264

skipif mysql # not compatible
query I rowsort label-304
SELECT + 64 * + - CAST ( + 51 AS INTEGER )
----
-3264

onlyif mysql # DIV for integer division: 
query I rowsort label-305
SELECT 61 * - 26 + + 79 DIV + 67
----
-1585

skipif mysql # not compatible
query I rowsort label-305
SELECT 61 * - 26 + + 79 / + 67
----
-1585

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-306
SELECT 90, - COALESCE ( - ( + MIN( + 45 ) ), + - 70 * - - 59 DIV + 51 * - - ( + 70 ) + + 3 + - 99 - - 78, 30 + - 71, MIN( - 13 ) * + 51 + + - 91 ) DIV - 97 AS col1
----
90
0

skipif mysql # not compatible
query II rowsort label-306
SELECT 90, - COALESCE ( - ( + MIN ( + 45 ) ), + - 70 * - - 59 / + 51 * - - ( + 70 ) + + 3 + - 99 - - 78, 30 + - 71, MIN ( - 13 ) * + 51 + + - 91 ) / - 97 AS col1
----
90
0

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT + COUNT( ALL 56 ) + + 72 - + 81
----
-8

skipif mysql # not compatible
query I rowsort label-307
SELECT + COUNT ( ALL 56 ) + + 72 - + 81
----
-8

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-310
SELECT 40 * - 18 * NULLIF ( - COUNT( * ), + ( 82 ) + - 3 ) - + 15, - COUNT( * ) AS col1
----
705
-1

skipif mysql # not compatible
query II rowsort label-310
SELECT 40 * - 18 * NULLIF ( - COUNT ( * ), + ( 82 ) + - 3 ) - + 15, - COUNT ( * ) AS col1
----
705
-1

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

query I rowsort
SELECT ( + 77 ) + + 56
----
133

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-313
SELECT ALL - 55 DIV CASE - - COUNT( * ) WHEN + 64 * ( - ( - 15 ) ) THEN - - NULLIF ( - - 98, + CAST( NULL AS DECIMAL ) * + 99 * + 27 + - + 18 + - + 39 ) ELSE + COUNT( * ) END * MIN( - - 29 ) DIV + + 57 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL - 55 / CASE - - COUNT ( * ) WHEN + 64 * ( - ( - 15 ) ) THEN - - NULLIF ( - - 98, + CAST ( NULL AS REAL ) * + 99 * + 27 + - + 18 + - + 39 ) ELSE + COUNT ( * ) END * MIN ( - - 29 ) / + + 57 AS col2
----
-27

query I rowsort
SELECT 18 * + 94 + + 34 * - 28 col1
----
740

query I rowsort
SELECT 60 * + 26
----
1560

query I rowsort
SELECT COALESCE ( 38, 77 ) AS col0
----
38

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

skipif mysql # not compatible
query I rowsort label-317
SELECT 5 / 13 * + + COUNT ( * ) * + - ( 1 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-318
SELECT - COUNT( * ) + + 12 + + 71 / CAST( NULL AS SIGNED ) + + MAX( DISTINCT - - 78 ) + - - 73, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-318
SELECT - COUNT ( * ) + + 12 + + 71 / CAST ( NULL AS INTEGER ) + + MAX ( DISTINCT - - 78 ) + - - 73, + COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-319
SELECT ALL + COALESCE ( - 75, - 51, - 79 DIV 14 DIV 79, + 37 )
----
-75

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL + COALESCE ( - 75, - 51, - 79 / 14 / 79, + 37 )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-320
SELECT ALL + CASE + CASE - 24 WHEN + - CAST( - 52 AS DECIMAL ) * - 9 * - + COALESCE ( + 38, 64, - 15 + + AVG ( ALL + - 50 ) ) THEN NULL WHEN + SUM( + 72 ) THEN - NULLIF ( - 39, 33 * + + 25 ) WHEN - 80 THEN 31 * + - CAST( NULL AS SIGNED ) ELSE - ( - - COUNT( DISTINCT - + 11 ) ) END WHEN 78 * - 86 - - - 71 * 83 + COUNT( * ) + - - COUNT( * ) + - 29 + 40 / 81 + COUNT( * ) THEN 90 * SUM( - 27 ) ELSE - 13 * + 46 - + 16 END * - 65 AS col2
----
39910

skipif mysql # not compatible
query I rowsort label-320
SELECT ALL + CASE + CASE - 24 WHEN + - CAST ( - 52 AS REAL ) * - 9 * - + COALESCE ( + 38, 64, - 15 + + AVG ( ALL + - 50 ) ) THEN NULL WHEN + SUM ( + 72 ) THEN - NULLIF ( - 39, 33 * + + 25 ) WHEN - 80 THEN 31 * + - CAST ( NULL AS INTEGER ) ELSE - ( - - COUNT ( DISTINCT - + 11 ) ) END WHEN 78 * - 86 - - - 71 * 83 + COUNT ( * ) + - - COUNT ( * ) + - 29 + 40 / 81 + COUNT ( * ) THEN 90 * SUM ( - 27 ) ELSE - 13 * + 46 - + 16 END * - 65 AS col2
----
39910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-321
SELECT ALL 14 * 55 + 34 DIV + 37 + + - COUNT( DISTINCT - 16 ) AS col2
----
769

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL 14 * 55 + 34 / + 37 + + - COUNT ( DISTINCT - 16 ) AS col2
----
769

query I rowsort
SELECT DISTINCT 82 * 51 + + + 24 * - - 42 * 71 AS col2
----
75750

onlyif mysql # aggregate syntax: 
query II rowsort label-323
SELECT - 65 + + + COUNT( * ) AS col2, 54 * + 12 AS col2
----
-64
648

skipif mysql # not compatible
query II rowsort label-323
SELECT - 65 + + + COUNT ( * ) AS col2, 54 * + 12 AS col2
----
-64
648

query I rowsort
SELECT 83 * 62 + + 80
----
5226

query I rowsort
SELECT ALL + NULLIF ( - 77, - 29 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT DISTINCT + COUNT( * ) * - 34 + - 69 AS col2
----
-103

skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT + COUNT ( * ) * - 34 + - 69 AS col2
----
-103

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

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

query I rowsort
SELECT ALL - 93 * - 0 + 43
----
43

query I rowsort
SELECT 84 * - - 57 + - ( - 44 ) + - 92 + - 7 * + ( - 22 ) * 14 * 6 * - 83 + + 77 * - 27
----
-1071027

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT MAX( + + 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-330
SELECT MAX ( + + 51 ) AS col0
----
51

query II rowsort
SELECT - + 87 + 98 col0, - 35
----
11
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-332
SELECT - - COUNT( * ) + + 58 AS col1, MAX( ALL + 99 )
----
59
99

skipif mysql # not compatible
query II rowsort label-332
SELECT - - COUNT ( * ) + + 58 AS col1, MAX ( ALL + 99 )
----
59
99

query II rowsort
SELECT ALL - 7 + 66, - 48 col1
----
59
-48

query I rowsort
SELECT + 55 * - + 8
----
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT DISTINCT + 85 * + + 6 + - 63 + - - COUNT( * ) * + - 72 AS col1
----
375

skipif mysql # not compatible
query I rowsort label-335
SELECT DISTINCT + 85 * + + 6 + - 63 + - - COUNT ( * ) * + - 72 AS col1
----
375

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-336
SELECT ALL 99 - - - 78 AS col2, + COUNT( * ) DIV - 99
----
21
0

skipif mysql # not compatible
query II rowsort label-336
SELECT ALL 99 - - - 78 AS col2, + COUNT ( * ) / - 99
----
21
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT ALL - NULLIF ( 85, COUNT( DISTINCT 58 ) * - COUNT( * ) + 51 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL - NULLIF ( 85, COUNT ( DISTINCT 58 ) * - COUNT ( * ) + 51 ) AS col0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-339
SELECT - 8 * + + COUNT( * ) + - 64 + - 27 * + 66 / - CAST( NULL AS SIGNED ) + + + 2 * 62 + - MAX( ALL - + CAST( + 33 AS SIGNED ) ) * 22 + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-339
SELECT - 8 * + + COUNT ( * ) + - 64 + - 27 * + 66 / - CAST ( NULL AS INTEGER ) + + + 2 * 62 + - MAX ( ALL - + CAST ( + 33 AS INTEGER ) ) * 22 + + 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-340
SELECT + - 97 + - COUNT( * ) - - 53 + - + COUNT( ALL + CAST( NULL AS SIGNED ) ) - 38 * + COUNT( * ) * - - 27 * - + COALESCE ( - + CASE 67 WHEN - 32 THEN 27 END, - 36, + - 20 * - + 34 + + 50 DIV + 54 ) + ( - + 43 ) * + COALESCE ( CAST( + + 54 AS SIGNED ), + - 70 * - 53 ) * + + 51
----
-155403

skipif mysql # not compatible
query I rowsort label-340
SELECT + - 97 + - COUNT ( * ) - - 53 + - + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) - 38 * + COUNT ( * ) * - - 27 * - + COALESCE ( - + CASE 67 WHEN - 32 THEN 27 END, - 36, + - 20 * - + 34 + + 50 / + 54 ) + ( - + 43 ) * + COALESCE ( CAST ( + + 54 AS INTEGER ), + - 70 * - 53 ) * + + 51
----
-155403

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-341
SELECT + + MIN( DISTINCT + 62 ) DIV + 5 - - 51 DIV - COUNT( * ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-341
SELECT + + MIN ( DISTINCT + 62 ) / + 5 - - 51 / - COUNT ( * ) AS col1
----
-39

query I rowsort
SELECT + + 80 * + 17
----
1360

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

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

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

query I rowsort
SELECT + 98 * 17 + + 45 AS col1
----
1711

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-348
SELECT DISTINCT 8 * - + CASE + - 77 WHEN 30 THEN - 1 + 45 + - + ( - COUNT( * ) ) + + NULLIF ( + - COUNT( * ), ( + 76 ) ) * + + COUNT( * ) * + CAST( + 95 AS SIGNED ) WHEN 34 + - - MIN( ( + - 66 ) ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT 8 * - + CASE + - 77 WHEN 30 THEN - 1 + 45 + - + ( - COUNT ( * ) ) + + NULLIF ( + - COUNT ( * ), ( + 76 ) ) * + + COUNT ( * ) * + CAST ( + 95 AS INTEGER ) WHEN 34 + - - MIN ( ( + - 66 ) ) THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 31 * + 21 AS col1
----
651

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-350
SELECT - COUNT( * ) + COALESCE ( - + 39, - 94, - - 55 ) + + 61 + + + MIN( + 59 ) - + 93 + - + 18 * - + 51 + - 30 + + 78 + + - COUNT( * ) * 22 DIV COUNT( * )
----
931

skipif mysql # not compatible
query I rowsort label-350
SELECT - COUNT ( * ) + COALESCE ( - + 39, - 94, - - 55 ) + + 61 + + + MIN ( + 59 ) - + 93 + - + 18 * - + 51 + - 30 + + 78 + + - COUNT ( * ) * 22 / COUNT ( * )
----
931

query I rowsort
SELECT ALL 43 + 59 + 33 * - + 41 * + 5 - + - 51 * 87
----
-2226

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-353
SELECT DISTINCT 66 DIV + + ( + 26 ) + 71
----
73

skipif mysql # not compatible
query I rowsort label-353
SELECT DISTINCT 66 / + + ( + 26 ) + 71
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-354
SELECT DISTINCT + NULLIF ( + 83, + 75 * + COUNT( + 17 ) * - MIN( DISTINCT - 77 ) ) DIV + 95 + + ( + ( - 39 ) ) * + 66 + 44 - - 16 col1
----
-2514

skipif mysql # not compatible
query I rowsort label-354
SELECT DISTINCT + NULLIF ( + 83, + 75 * + COUNT ( + 17 ) * - MIN ( DISTINCT - 77 ) ) / + 95 + + ( + ( - 39 ) ) * + 66 + 44 - - 16 col1
----
-2514

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-355
SELECT DISTINCT - MAX( ALL + 94 ) DIV + + 78 AS col2, - 16 DIV - COALESCE ( + 93, - CASE - COALESCE ( 50, - 13 DIV - CAST( NULL AS SIGNED ), 21 * + 33 * + CAST( NULL AS SIGNED ) * + 4 + + 56 ) WHEN + 2 THEN NULL WHEN - - 19 THEN NULL ELSE 58 + - 12 + + + NULLIF ( - 12, + 33 ) * - 1 - + 76 END )
----
-1
0

skipif mysql # not compatible
query II rowsort label-355
SELECT DISTINCT - MAX ( ALL + 94 ) / + + 78 AS col2, - 16 / - COALESCE ( + 93, - CASE - COALESCE ( 50, - 13 / - CAST ( NULL AS INTEGER ), 21 * + 33 * + CAST ( NULL AS INTEGER ) * + 4 + + 56 ) WHEN + 2 THEN NULL WHEN - - 19 THEN NULL ELSE 58 + - 12 + + + NULLIF ( - 12, + 33 ) * - 1 - + 76 END )
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-356
SELECT ALL 47 DIV 32 * ( SUM( 36 ) ) + - ( + + 31 ) + + + 48
----
53

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL 47 / 32 * ( SUM ( 36 ) ) + - ( + + 31 ) + + + 48
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-357
SELECT + COUNT( ALL + 96 ) DIV 82 + + NULLIF ( COALESCE ( - 65, - + 23 - CAST( + CAST( ( - CASE 40 WHEN 10 - - + 69 + + 63 - 57 * - 33 DIV + 61 + + ( 53 ) * + + 95 THEN COALESCE ( - COUNT( * ), + 78 ) END ) AS SIGNED ) AS SIGNED ) + + CASE + + MIN( DISTINCT + 99 ) WHEN + - 29 THEN + 79 + 79 + + - 47 END * + COUNT( * ) ), COALESCE ( ( 83 ), 70, 28 + - 80 DIV - 76, 35 * 45 ) ) + 21 * 69
----
1384

skipif mysql # not compatible
query I rowsort label-357
SELECT + COUNT ( ALL + 96 ) / 82 + + NULLIF ( COALESCE ( - 65, - + 23 - CAST ( + CAST ( ( - CASE 40 WHEN 10 - - + 69 + + 63 - 57 * - 33 / + 61 + + ( 53 ) * + + 95 THEN COALESCE ( - COUNT ( * ), + 78 ) END ) AS INTEGER ) AS INTEGER ) + + CASE + + MIN ( DISTINCT + 99 ) WHEN + - 29 THEN + 79 + 79 + + - 47 END * + COUNT ( * ) ), COALESCE ( ( 83 ), 70, 28 + - 80 / - 76, 35 * 45 ) ) + 21 * 69
----
1384

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT - 71 * + + MIN( ALL - 97 ) AS col1
----
6887

skipif mysql # not compatible
query I rowsort label-358
SELECT - 71 * + + MIN ( ALL - 97 ) AS col1
----
6887

onlyif mysql # DIV for integer division: 
query I rowsort label-359
SELECT DISTINCT + 82 DIV - 97 + - 38 + 10 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-359
SELECT DISTINCT + 82 / - 97 + - 38 + 10 AS col0
----
-28

query II rowsort
SELECT - 35 * - - ( + + 44 ) AS col0, 23
----
-1540
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-361
SELECT DISTINCT + MAX( ALL 93 ) * - CAST( NULL AS DECIMAL ) + 24 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-361
SELECT DISTINCT + MAX ( ALL 93 ) * - CAST ( NULL AS REAL ) + 24 col1
----
NULL

query I rowsort
SELECT DISTINCT 59 * 42 + + 35 * - 21 AS col0
----
1743

query I rowsort
SELECT ALL - 16 * - 67
----
1072

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT DISTINCT + COUNT( DISTINCT 47 )
----
1

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT + COUNT ( DISTINCT 47 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT DISTINCT - + 15 * CASE 42 WHEN COUNT( * ) * - - ( - 21 ) * - - ( 10 ) THEN NULL WHEN - 89 / - COUNT( * ) * - 82 * COUNT( ALL - 98 ) * + 13 - - + 60 + + 56 - - 71 THEN + - 53 END + - - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-365
SELECT DISTINCT - + 15 * CASE 42 WHEN COUNT ( * ) * - - ( - 21 ) * - - ( 10 ) THEN NULL WHEN - 89 / - COUNT ( * ) * - 82 * COUNT ( ALL - 98 ) * + 13 - - + 60 + + 56 - - 71 THEN + - 53 END + - - 24 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-366
SELECT DISTINCT - - 27 * - 62 + - 72 DIV 18 DIV - 11 AS col1, + 8 AS col0
----
-1674
8

skipif mysql # not compatible
query II rowsort label-366
SELECT DISTINCT - - 27 * - 62 + - 72 / 18 / - 11 AS col1, + 8 AS col0
----
-1674
8

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT - - 50 * - + COUNT( * ) + - + 27
----
-77

skipif mysql # not compatible
query I rowsort label-367
SELECT - - 50 * - + COUNT ( * ) + - + 27
----
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT ALL - + 30 * + - SUM( - + 46 ) - - 39
----
-1341

skipif mysql # not compatible
query I rowsort label-369
SELECT ALL - + 30 * + - SUM ( - + 46 ) - - 39
----
-1341

query I rowsort
SELECT - 19 * + ( - 50 ) * + + 54
----
51300

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

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

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

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

query I rowsort
SELECT - - 24 * - - 92 + + + 75 + + + 72
----
2355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-374
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), 98, + 36 )
----
98

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), 98, + 36 )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-375
SELECT DISTINCT - 13 * - + 61 * - - 56 + MAX( + 47 ) AS col2, - COUNT( * ) AS col1
----
44455
-1

skipif mysql # not compatible
query II rowsort label-375
SELECT DISTINCT - 13 * - + 61 * - - 56 + MAX ( + 47 ) AS col2, - COUNT ( * ) AS col1
----
44455
-1

query I rowsort
SELECT ALL + 80 * 34 AS col1
----
2720

query I rowsort
SELECT + ( + 75 ) col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT - - 63 * ( COALESCE ( 77, - - SUM( - 68 ) ) ) + - ( - 61 ) + + 68 AS col0
----
4980

skipif mysql # not compatible
query I rowsort label-378
SELECT - - 63 * ( COALESCE ( 77, - - SUM ( - 68 ) ) ) + - ( - 61 ) + + 68 AS col0
----
4980

query I rowsort
SELECT + 92 * + 7 AS col2
----
644

onlyif mysql # aggregate syntax: 
query II rowsort label-380
SELECT + + ( + NULLIF ( + 64, + 74 ) ) - - 86 AS col2, + COUNT( ALL + 82 ) + + 27 * - - 39 AS col0
----
150
1054

skipif mysql # not compatible
query II rowsort label-380
SELECT + + ( + NULLIF ( + 64, + 74 ) ) - - 86 AS col2, + COUNT ( ALL + 82 ) + + 27 * - - 39 AS col0
----
150
1054

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

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT - SUM( - 54 )
----
54

skipif mysql # not compatible
query I rowsort label-382
SELECT - SUM ( - 54 )
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-383
SELECT - COALESCE ( COUNT( * ), NULLIF ( + - 8, 17 ) + - 23 + 66 * + + 12 ) * ( + SUM( + + 16 ) ) AS col2, + 7 AS col0
----
-16
7

skipif mysql # not compatible
query II rowsort label-383
SELECT - COALESCE ( COUNT ( * ), NULLIF ( + - 8, 17 ) + - 23 + 66 * + + 12 ) * ( + SUM ( + + 16 ) ) AS col2, + 7 AS col0
----
-16
7

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

query I rowsort
SELECT 76 * - 40
----
-3040

query II rowsort
SELECT ALL 83 col1, - 55
----
83
-55

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-388
SELECT ALL + 19 + + 92 * 37 * 72 * + 7 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL + 19 + + 92 * 37 * 72 * + 7 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 34, + 96 * + 89 + + - 3 + 29 ) + 40
----
6

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

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL 89 + - COUNT ( * ) AS col0
----
88

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-392
SELECT + MAX( DISTINCT - 68 ) * 69 + + + COUNT( DISTINCT + - CAST( 58 AS SIGNED ) ), 42 col0
----
-4691
42

skipif mysql # not compatible
query II rowsort label-392
SELECT + MAX ( DISTINCT - 68 ) * 69 + + + COUNT ( DISTINCT + - CAST ( 58 AS INTEGER ) ), 42 col0
----
-4691
42

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT NULLIF ( - ( - 84 ), - 86 ) * + 98 + 33 * - 53 * + MIN( ALL - 10 )
----
25722

skipif mysql # not compatible
query I rowsort label-393
SELECT NULLIF ( - ( - 84 ), - 86 ) * + 98 + 33 * - 53 * + MIN ( ALL - 10 )
----
25722

query II rowsort
SELECT + 4 AS col2, 2
----
4
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-395
SELECT 20 DIV CAST( 12 AS SIGNED ) + - 36 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-395
SELECT 20 / CAST ( 12 AS INTEGER ) + - 36 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT COUNT( * ) * + 7 * 95
----
665

skipif mysql # not compatible
query I rowsort label-396
SELECT COUNT ( * ) * + 7 * 95
----
665

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-398
SELECT ALL - 84 AS col0, + SUM( ALL + 53 ) AS col2
----
-84
53

skipif mysql # not compatible
query II rowsort label-398
SELECT ALL - 84 AS col0, + SUM ( ALL + 53 ) AS col2
----
-84
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-399
SELECT 93 * + ( 8 ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-399
SELECT 93 * + ( 8 ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL - 55 AS col0, + 33
----
-55
33

onlyif mysql # DIV for integer division: 
query I rowsort label-401
SELECT ALL + + ( 82 ) DIV - 73 + 33
----
32

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL + + ( 82 ) / - 73 + 33
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT - - SUM( DISTINCT - - 70 ) * - 61 + + 17 + - - 75 * - COUNT( DISTINCT + 47 )
----
-4328

skipif mysql # not compatible
query I rowsort label-402
SELECT - - SUM ( DISTINCT - - 70 ) * - 61 + + 17 + - - 75 * - COUNT ( DISTINCT + 47 )
----
-4328

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

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

query I rowsort
SELECT - 64 + + 54
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT ALL + 24 DIV - ( + - NULLIF ( + + 16, + - 55 ) )
----
1

skipif mysql # not compatible
query I rowsort label-405
SELECT ALL + 24 / - ( + - NULLIF ( + + 16, + - 55 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-406
SELECT 77 DIV 65 col0
----
1

skipif mysql # not compatible
query I rowsort label-406
SELECT 77 / 65 col0
----
1

query I rowsort
SELECT - 73 * 20 + + 69 + - 50
----
-1441

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT - 66 * + 7 * 50 + + CASE 86 WHEN - - 4 THEN + 33 WHEN + 98 THEN NULL WHEN + + COUNT( * ) THEN - 48 * + 14 / - 78 + 50 * + + 16 * + 42 * + 27 WHEN - + 25 THEN - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-408
SELECT - 66 * + 7 * 50 + + CASE 86 WHEN - - 4 THEN + 33 WHEN + 98 THEN NULL WHEN + + COUNT ( * ) THEN - 48 * + 14 / - 78 + 50 * + + 16 * + 42 * + 27 WHEN - + 25 THEN - + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL + 75 * + + 5 AS col2
----
375

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

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

query I rowsort
SELECT DISTINCT - + 99 * + - 93 AS col0
----
9207

query II rowsort
SELECT + 74, 50 * + 54 * - 20 AS col0
----
74
-54000

query I rowsort
SELECT 46 * + - 27 + + + ( 17 ) AS col0
----
-1225

query I rowsort
SELECT ALL + 72 * - 78 * - 37
----
207792

query II rowsort
SELECT ALL - 36, 95 AS col1
----
-36
95

query I rowsort
SELECT + 61 * - 60 * - - 74 + - 2 - - 73 - - + ( + ( - 98 ) ) + + 20 col2
----
-270847

query II rowsort
SELECT - 81 AS col2, + 50 * + + 54
----
-81
2700

onlyif mysql # aggregate syntax: 
query II rowsort label-418
SELECT - COUNT( * ), MAX( + - 56 ) * + 85 - + NULLIF ( - - CASE - ( + 60 ) WHEN - - COUNT( * ) * + 55 * + 13 + - AVG ( - + 38 ) THEN NULL ELSE + MIN( DISTINCT + + 47 ) END, + - COUNT( * ) ) AS col0
----
-1
-4807

skipif mysql # not compatible
query II rowsort label-418
SELECT - COUNT ( * ), MAX ( + - 56 ) * + 85 - + NULLIF ( - - CASE - ( + 60 ) WHEN - - COUNT ( * ) * + 55 * + 13 + - AVG ( - + 38 ) THEN NULL ELSE + MIN ( DISTINCT + + 47 ) END, + - COUNT ( * ) ) AS col0
----
-1
-4807

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-419
SELECT ALL + 23 + - 3 + + 28 + 6 * + CAST( - - ( + - MAX( + + 13 ) ) AS SIGNED ) - COALESCE ( + COUNT( * ), + 50 ) + + 37 + + - 97 * + ( 96 ) + ( CAST( + 24 AS SIGNED ) ) + + MAX( + 17 ), + 6 col1
----
-9265
6

skipif mysql # not compatible
query II rowsort label-419
SELECT ALL + 23 + - 3 + + 28 + 6 * + CAST ( - - ( + - MAX ( + + 13 ) ) AS INTEGER ) - COALESCE ( + COUNT ( * ), + 50 ) + + 37 + + - 97 * + ( 96 ) + ( CAST ( + 24 AS INTEGER ) ) + + MAX ( + 17 ), + 6 col1
----
-9265
6

query I rowsort
SELECT 76 + + NULLIF ( - 26, 15 ) col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-421
SELECT DISTINCT + 51 + 15 + + COALESCE ( - ( + COUNT( * ) ), - 28 + - 41 + - 1 * - 95 + + CAST( NULL AS SIGNED ) * - 28 * - COALESCE ( 67, - + 23 + 2 + 83 * + + 55 * + - 50 + - 62, 6 ) - - 8 + - + 34 ) * - 8 * - 24 AS col0
----
-126

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT + 51 + 15 + + COALESCE ( - ( + COUNT ( * ) ), - 28 + - 41 + - 1 * - 95 + + CAST ( NULL AS INTEGER ) * - 28 * - COALESCE ( 67, - + 23 + 2 + 83 * + + 55 * + - 50 + - 62, 6 ) - - 8 + - + 34 ) * - 8 * - 24 AS col0
----
-126

query I rowsort
SELECT 85 + - - 71 + - 0
----
156

query I rowsort
SELECT DISTINCT 13 + 71 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT DISTINCT + 6 + 2 + COUNT( + 3 )
----
9

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT + 6 + 2 + COUNT ( + 3 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT ( - 55 ) + + NULLIF ( + COUNT( ALL - 97 ), SUM( DISTINCT - 2 ) ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-425
SELECT ( - 55 ) + + NULLIF ( + COUNT ( ALL - 97 ), SUM ( DISTINCT - 2 ) ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT ALL + MIN( 54 ) + CASE - 8 WHEN - 60 * 7 + + COUNT( * ) + - + 2 THEN NULL WHEN + MAX( ALL + - 80 ) THEN + - 43 * - 67 * + 32 * COUNT( * ) * + + 15 + 27 ELSE NULL END * - + 76 * + - 36 / + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-426
SELECT ALL + MIN ( 54 ) + CASE - 8 WHEN - 60 * 7 + + COUNT ( * ) + - + 2 THEN NULL WHEN + MAX ( ALL + - 80 ) THEN + - 43 * - 67 * + 32 * COUNT ( * ) * + + 15 + 27 ELSE NULL END * - + 76 * + - 36 / + 44
----
NULL

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

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

query I rowsort
SELECT 4 * - - COALESCE ( - 32, + 4 * 90 ) AS col0
----
-128

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT NULLIF ( - + MIN( ALL 42 ), - 4 ) * - + MIN( ALL + - 19 ) AS col0
----
-798

skipif mysql # not compatible
query I rowsort label-431
SELECT NULLIF ( - + MIN ( ALL 42 ), - 4 ) * - + MIN ( ALL + - 19 ) AS col0
----
-798

query I rowsort
SELECT DISTINCT 23 * + + 46
----
1058

query I rowsort
SELECT 61 * + + 9 * + 36 + - 72
----
19692

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

skipif mysql # not compatible
query I rowsort label-434
SELECT - 62 * - + COALESCE ( + COUNT ( * ), + - COUNT ( * ) - + - 74 ) AS col1
----
62

query I rowsort
SELECT ALL - + ( - 12 ) AS col1
----
12

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

skipif mysql # not compatible
query I rowsort label-436
SELECT + + NULLIF ( - 48, + CAST ( NULL AS INTEGER ) )
----
-48

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

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

query I rowsort
SELECT + 29 * - 7 + - 16 AS col1
----
-219

query I rowsort
SELECT DISTINCT - + ( 33 ) col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-440
SELECT + MAX( CAST( + + 29 AS SIGNED ) ) AS col0, - 20
----
29
-20

skipif mysql # not compatible
query II rowsort label-440
SELECT + MAX ( CAST ( + + 29 AS INTEGER ) ) AS col0, - 20
----
29
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-441
SELECT ALL + 43 + + - COUNT( * ) col1, COUNT( * )
----
42
1

skipif mysql # not compatible
query II rowsort label-441
SELECT ALL + 43 + + - COUNT ( * ) col1, COUNT ( * )
----
42
1

query I rowsort
SELECT 61 - 14 AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-443
SELECT NULLIF ( 15, COUNT( * ) * + CAST( + 78 AS SIGNED ) * - NULLIF ( - - 46, 28 ) + - 13 + + 96 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-443
SELECT NULLIF ( 15, COUNT ( * ) * + CAST ( + 78 AS INTEGER ) * - NULLIF ( - - 46, 28 ) + - 13 + + 96 ) AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-444
SELECT + ( - 64 ) * COUNT( * ) + + CAST( NULL AS DECIMAL ) * 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-444
SELECT + ( - 64 ) * COUNT ( * ) + + CAST ( NULL AS REAL ) * 53 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-445
SELECT ALL 48 + - + 70 * 84 + CAST( - COUNT( * ) AS SIGNED ) + - 66 + - COUNT( * ) - 43 * - - 93 * - 40 + - NULLIF ( + 6, - - 93 * + 24 + - ( 74 ) )
----
154054

skipif mysql # not compatible
query I rowsort label-445
SELECT ALL 48 + - + 70 * 84 + CAST ( - COUNT ( * ) AS INTEGER ) + - 66 + - COUNT ( * ) - 43 * - - 93 * - 40 + - NULLIF ( + 6, - - 93 * + 24 + - ( 74 ) )
----
154054

onlyif mysql # DIV for integer division: 
query I rowsort label-446
SELECT DISTINCT 52 DIV 75 - + + 11 + + 11
----
0

skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT 52 / 75 - + + 11 + + 11
----
0

query I rowsort
SELECT ALL + 61 + + + 26
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-448
SELECT + - 80 DIV + 65 - + 45
----
-46

skipif mysql # not compatible
query I rowsort label-448
SELECT + - 80 / + 65 - + 45
----
-46

query I rowsort
SELECT ALL - 17 + + 58 col2
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-450
SELECT DISTINCT 49 DIV - 32
----
-1

skipif mysql # not compatible
query I rowsort label-450
SELECT DISTINCT 49 / - 32
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-451
SELECT COALESCE ( - COUNT( * ), - NULLIF ( - COALESCE ( + 4, COUNT( * ) DIV + + 41 * + 31 ), + - 21 ), - CAST( NULL AS SIGNED ) * 69 + 50 - + 82 ) * + COUNT( * ) + + 93 * + 74 col2
----
6881

skipif mysql # not compatible
query I rowsort label-451
SELECT COALESCE ( - COUNT ( * ), - NULLIF ( - COALESCE ( + 4, COUNT ( * ) / + + 41 * + 31 ), + - 21 ), - CAST ( NULL AS INTEGER ) * 69 + 50 - + 82 ) * + COUNT ( * ) + + 93 * + 74 col2
----
6881

query I rowsort
SELECT DISTINCT + 10 * - 52 AS col0
----
-520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-453
SELECT DISTINCT 43 + - 61 + - 28 / - CAST( NULL AS SIGNED ) + + 54 + - 86 * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-453
SELECT DISTINCT 43 + - 61 + - 28 / - CAST ( NULL AS INTEGER ) + + 54 + - 86 * + 3
----
NULL

query I rowsort
SELECT + NULLIF ( - 90, - 59 ) + - 10
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-455
SELECT 86 col2, + MAX( DISTINCT - 34 ) * - + ( + + 16 ) AS col2
----
86
544

skipif mysql # not compatible
query II rowsort label-455
SELECT 86 col2, + MAX ( DISTINCT - 34 ) * - + ( + + 16 ) AS col2
----
86
544

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT ALL + 2 - + 16 - + 56 * + + 0 * - COALESCE ( + ( + 24 ), 53 * + COUNT( DISTINCT + 61 ), - 31 * 96 + - + 83 ) + 34 * - 0
----
-14

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL + 2 - + 16 - + 56 * + + 0 * - COALESCE ( + ( + 24 ), 53 * + COUNT ( DISTINCT + 61 ), - 31 * 96 + - + 83 ) + 34 * - 0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-458
SELECT ALL CASE + + 96 WHEN 50 - 45 / MIN( CAST( + 76 AS SIGNED ) ) THEN ( + + CAST( NULL AS SIGNED ) ) WHEN - AVG ( + - 76 ) / - - 97 THEN 49 * + + NULLIF ( - CAST( + 60 AS SIGNED ), - 30 * 9 * - + 15 - - - 87 + + 50 ) * + 77 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-458
SELECT ALL CASE + + 96 WHEN 50 - 45 / MIN ( CAST ( + 76 AS INTEGER ) ) THEN ( + + CAST ( NULL AS INTEGER ) ) WHEN - AVG ( + - 76 ) / - - 97 THEN 49 * + + NULLIF ( - CAST ( + 60 AS INTEGER ), - 30 * 9 * - + 15 - - - 87 + + 50 ) * + 77 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT DISTINCT COUNT( * ) - 23 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-459
SELECT DISTINCT COUNT ( * ) - 23 AS col2
----
-22

query I rowsort
SELECT DISTINCT + 20 - - 75 + + 57 AS col1
----
152

query I rowsort
SELECT ALL - 57 * - 24 col1
----
1368

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-463
SELECT - 58, 39 * - + CAST( + 20 AS SIGNED ) AS col1
----
-58
-780

skipif mysql # not compatible
query II rowsort label-463
SELECT - 58, 39 * - + CAST ( + 20 AS INTEGER ) AS col1
----
-58
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT ALL SUM( ALL + 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-464
SELECT ALL SUM ( ALL + 96 ) AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-465
SELECT DISTINCT - 75 DIV - + CAST( - COUNT( * ) AS SIGNED )
----
-75

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

query I rowsort
SELECT - 41 * - 34
----
1394

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

skipif mysql # not compatible
query I rowsort label-467
SELECT - 53 + - + COUNT ( * ) + - 12 AS col2
----
-66

query I rowsort
SELECT ALL + CASE 87 WHEN - 25 + 36 THEN NULL WHEN - 62 + + 92 THEN 20 WHEN - 66 THEN NULL ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-470
SELECT - + 19 DIV + 35 * COUNT( + - COALESCE ( - 47, - + 84 * - 27 + - 8 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-470
SELECT - + 19 / + 35 * COUNT ( + - COALESCE ( - 47, - + 84 * - 27 + - 8 ) ) AS col2
----
0

query I rowsort
SELECT - - 28 + + 12
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-472
SELECT ALL + - NULLIF ( 68, + CAST( NULL AS SIGNED ) + - + 85 / - + 33 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-472
SELECT ALL + - NULLIF ( 68, + CAST ( NULL AS INTEGER ) + - + 85 / - + 33 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT DISTINCT - - 46 * + COUNT( * ) + - 5 + + - 73
----
-32

skipif mysql # not compatible
query I rowsort label-473
SELECT DISTINCT - - 46 * + COUNT ( * ) + - 5 + + - 73
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-474
SELECT ALL + + 81 * - 29 + 55 AS col2, + SUM( 16 )
----
-2294
16

skipif mysql # not compatible
query II rowsort label-474
SELECT ALL + + 81 * - 29 + 55 AS col2, + SUM ( 16 )
----
-2294
16

query I rowsort
SELECT DISTINCT - 25 * 91 * - 86 * + 74 + + 27 + 76 + 81 * + 70 * - 26
----
14330783

query I rowsort
SELECT DISTINCT 65 * 98 + + + 8 col0
----
6378

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL 2 * + COUNT( * ) + + 93 + 9
----
104

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL 2 * + COUNT ( * ) + + 93 + 9
----
104

query I rowsort
SELECT + COALESCE ( - 49, + 97 )
----
-49

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

skipif mysql # not compatible
query I rowsort label-479
SELECT + + 12 + - 14 + CAST ( - - 53 AS INTEGER ) col0
----
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT - COALESCE ( - 44, 72 * + 4 + + COUNT( * ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-481
SELECT - COALESCE ( - 44, 72 * + 4 + + COUNT ( * ) ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT ALL 41 * + CASE - 59 WHEN + 35 * - + 91 THEN NULL ELSE + 7 END * - + MAX( DISTINCT - 38 ) * 95 * + 44
----
45587080

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL 41 * + CASE - 59 WHEN + 35 * - + 91 THEN NULL ELSE + 7 END * - + MAX ( DISTINCT - 38 ) * 95 * + 44
----
45587080

query I rowsort
SELECT ALL 27 * + - 70 + + 95 + - 19 AS col1
----
-1814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-484
SELECT ALL + - CASE + 91 WHEN + 14 * + + 42 + - 5 THEN 27 + 29 * - - 23 WHEN CAST( + 71 AS SIGNED ) + 91 THEN - MIN( + 9 ) * 12 ELSE + 97 END
----
-97

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL + - CASE + 91 WHEN + 14 * + + 42 + - 5 THEN 27 + 29 * - - 23 WHEN CAST ( + 71 AS INTEGER ) + 91 THEN - MIN ( + 9 ) * 12 ELSE + 97 END
----
-97

query I rowsort
SELECT ALL + 60 * + + 45 + 53 + + 11
----
2764

query I rowsort
SELECT + + 51 * + 62 AS col0
----
3162

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT ALL COUNT( * ) * 78 - 6 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL COUNT ( * ) * 78 - 6 AS col0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-488
SELECT ALL + + 21 * - 13 + + CAST( + + 47 AS SIGNED )
----
-226

skipif mysql # not compatible
query I rowsort label-488
SELECT ALL + + 21 * - 13 + + CAST ( + + 47 AS INTEGER )
----
-226

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

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

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

skipif mysql # not compatible
query I rowsort label-490
SELECT + 49 * - 63 / + COUNT ( * )
----
-3087

query I rowsort
SELECT + 55 * - 52 AS col0
----
-2860

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

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

query II rowsort
SELECT - 7 + 33 AS col2, + 76 AS col0
----
26
76

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-495
SELECT ALL 31 DIV - COALESCE ( - COUNT( * ), + CAST( - 35 AS SIGNED ) - 34 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL 31 / - COALESCE ( - COUNT ( * ), + CAST ( - 35 AS INTEGER ) - 34 ) AS col1
----
31

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

query I rowsort
SELECT DISTINCT 42 - + 72
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-498
SELECT + 13 + 54 + + COALESCE ( + - 13, + - 30 DIV + 37 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-498
SELECT + 13 + 54 + + COALESCE ( + - 13, + - 30 / + 37 ) AS col1
----
54

query I rowsort
SELECT DISTINCT + 89 - + 76 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-500
SELECT ALL - ( - + 49 ) * + + 60 * - + CASE + 47 WHEN + 84 + - - 42 THEN CAST( 95 AS SIGNED ) WHEN - 16 * 4 + - 87 THEN - COUNT( * ) WHEN COUNT( * ) THEN - 42 ELSE 37 - - CASE SUM( DISTINCT - CASE WHEN 4 < 4 THEN NULL WHEN NOT 91 <> - 86 THEN - ( 94 ) + + 0 END ) WHEN - + COUNT( * ) THEN + + 71 ELSE NULL END + 32 END * CAST( NULL AS SIGNED ) + + 15 * - + MIN( ALL 26 ) * 83 + 19 + - + 94 + + + 19 - 9 * - 69 * 65 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL - ( - + 49 ) * + + 60 * - + CASE + 47 WHEN + 84 + - - 42 THEN CAST ( 95 AS INTEGER ) WHEN - 16 * 4 + - 87 THEN - COUNT ( * ) WHEN COUNT ( * ) THEN - 42 ELSE 37 - - CASE SUM ( DISTINCT - CASE WHEN 4 < 4 THEN NULL WHEN NOT 91 <> - 86 THEN - ( 94 ) + + 0 END ) WHEN - + COUNT ( * ) THEN + + 71 ELSE NULL END + 32 END * CAST ( NULL AS INTEGER ) + + 15 * - + MIN ( ALL 26 ) * 83 + 19 + - + 94 + + + 19 - 9 * - 69 * 65 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT + 89 * - - COUNT( * ) * + 96
----
8544

skipif mysql # not compatible
query I rowsort label-501
SELECT + 89 * - - COUNT ( * ) * + 96
----
8544

query I rowsort
SELECT ALL 95 * - 72 col2
----
-6840

query I rowsort
SELECT - 65 * + 29 * 53 AS col2
----
-99905

query I rowsort
SELECT - 82 + - 1 + 37 - 33 * - 84 col1
----
2726

query I rowsort
SELECT DISTINCT 88 * + NULLIF ( + 86, 17 ) * - 76 * + 22 + + - 52
----
-12653748

query I rowsort
SELECT ALL - 71 * - NULLIF ( 38, 84 )
----
2698

onlyif mysql # aggregate syntax: 
query II rowsort label-507
SELECT + 29 * COUNT( * ) AS col2, - COUNT( * ) + + 92
----
29
91

skipif mysql # not compatible
query II rowsort label-507
SELECT + 29 * COUNT ( * ) AS col2, - COUNT ( * ) + + 92
----
29
91

onlyif mysql # DIV for integer division: 
query I rowsort label-508
SELECT - 35 + 35 DIV - 57
----
-35

skipif mysql # not compatible
query I rowsort label-508
SELECT - 35 + 35 / - 57
----
-35

query I rowsort
SELECT ALL + 99 + - - ( + - 4 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT - - COALESCE ( COUNT( * ), - - MIN( 45 ) + - 5 )
----
1

skipif mysql # not compatible
query I rowsort label-510
SELECT - - COALESCE ( COUNT ( * ), - - MIN ( 45 ) + - 5 )
----
1

query I rowsort
SELECT + - 96 * + + 31 AS col2
----
-2976

query I rowsort
SELECT - - 91 * + + 72 + 78 AS col2
----
6630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-513
SELECT ALL - MIN( - 28 ) DIV + - 24
----
-1

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL - MIN ( - 28 ) / + - 24
----
-1

query I rowsort
SELECT DISTINCT - 52 * + 77
----
-4004

onlyif mysql # DIV for integer division: 
query I rowsort label-515
SELECT 90 DIV 81 * - 10 + 35 + - + 0 * - 80
----
25

skipif mysql # not compatible
query I rowsort label-515
SELECT 90 / 81 * - 10 + 35 + - + 0 * - 80
----
25

query I rowsort
SELECT DISTINCT - - NULLIF ( - + 90, 74 * 52 + - 23 * + 95 )
----
-90

query I rowsort
SELECT ALL - + 88 + 6
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-518
SELECT 23 - + - COALESCE ( - + NULLIF ( - 76, + + COUNT( * ) ), - 71 * + - 10 * 73 + + 39 ) AS col0, 50 * - + 76 AS col1
----
99
-3800

skipif mysql # not compatible
query II rowsort label-518
SELECT 23 - + - COALESCE ( - + NULLIF ( - 76, + + COUNT ( * ) ), - 71 * + - 10 * 73 + + 39 ) AS col0, 50 * - + 76 AS col1
----
99
-3800

query I rowsort
SELECT ALL - - 69 col1
----
69

query I rowsort
SELECT DISTINCT + ( - 78 ) * + 29
----
-2262

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

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

query I rowsort
SELECT ALL - ( + 17 ) - + 27 AS col2
----
-44

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-523
SELECT + 0 * 73 + + CAST( ( CAST( NULL AS DECIMAL ) ) AS SIGNED ) * 62 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-523
SELECT + 0 * 73 + + CAST ( ( CAST ( NULL AS REAL ) ) AS INTEGER ) * 62 col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-524
SELECT 74 * - COUNT ( * ) + - 92 AS col0
----
-166

query I rowsort
SELECT 14 * - 35
----
-490

query I rowsort
SELECT 85 * 41
----
3485

query I rowsort
SELECT 4 + NULLIF ( 38, 15 + - 37 ) * - 75 col1
----
-2846

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

skipif mysql # not compatible
query II rowsort label-528
SELECT - 90, + 69 * + 19 / - COUNT ( * ) + + - COUNT ( * ) + + COUNT ( * ) AS col0
----
-90
-1311

query I rowsort
SELECT ALL 54 * - 52 AS col1
----
-2808

query I rowsort
SELECT 0 * - 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT NULLIF ( - 30, 9 + ( 74 ) + - 90 / + 43 ) + NULLIF ( - + 75, - 51 * MIN( DISTINCT 85 ) ) * - 42 * - COUNT( * ) - - - 47 AS col0
----
-3227

skipif mysql # not compatible
query I rowsort label-531
SELECT NULLIF ( - 30, 9 + ( 74 ) + - 90 / + 43 ) + NULLIF ( - + 75, - 51 * MIN ( DISTINCT 85 ) ) * - 42 * - COUNT ( * ) - - - 47 AS col0
----
-3227

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

skipif mysql # not compatible
query I rowsort label-532
SELECT COUNT ( * ) / 11 AS col1
----
0

query I rowsort
SELECT 64 * 46 AS col2
----
2944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-534
SELECT ALL 17 + + COUNT( + ( - 84 ) ) + - 61 AS col1, COUNT( * ) + + + CAST( NULL AS SIGNED )
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-534
SELECT ALL 17 + + COUNT ( + ( - 84 ) ) + - 61 AS col1, COUNT ( * ) + + + CAST ( NULL AS INTEGER )
----
-43
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-535
SELECT 35 - 92 - 2 DIV - 17 + 47 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-535
SELECT 35 - 92 - 2 / - 17 + 47 AS col2
----
-10

query I rowsort
SELECT ALL + 75 + - 40 + + - 68 + - - 77
----
44

query I rowsort
SELECT ALL - 6 + 98
----
92

query I rowsort
SELECT DISTINCT 56 + - 26 AS col0
----
30

query I rowsort
SELECT DISTINCT - - 90 * - 28 - - 49 * + 87 + 28 col0
----
1771

query I rowsort
SELECT 67 - - 65 col1
----
132

query I rowsort
SELECT ALL - 56 * 52 AS col2
----
-2912

query I rowsort
SELECT 69 + 71
----
140

query I rowsort
SELECT - 17 * - 89
----
1513

query I rowsort
SELECT ALL + - 35 + - - 61 - 56 * - 39
----
2210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-545
SELECT - COALESCE ( - SUM( - + 62 ), - 65 DIV + 86 + - - CAST( NULL AS SIGNED ), 31 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-545
SELECT - COALESCE ( - SUM ( - + 62 ), - 65 / + 86 + - - CAST ( NULL AS INTEGER ), 31 ) AS col0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-546
SELECT + CAST( NULL AS SIGNED ) / + + 90 * + + COUNT( * ) + + - 92 + - ( - AVG ( - + 80 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-546
SELECT + CAST ( NULL AS INTEGER ) / + + 90 * + + COUNT ( * ) + + - 92 + - ( - AVG ( - + 80 ) )
----
NULL

query I rowsort
SELECT ALL - + ( 11 ) AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-548
SELECT + NULLIF ( 17, CAST( NULL AS SIGNED ) )
----
17

skipif mysql # not compatible
query I rowsort label-548
SELECT + NULLIF ( 17, CAST ( NULL AS INTEGER ) )
----
17

query I rowsort
SELECT ALL + - 81 * 80 + + 43 AS col1
----
-6437

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

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

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

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

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

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

query II rowsort
SELECT + 22 AS col1, - 51 * 17 * - 84 + + 20
----
22
72848

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

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT DISTINCT - 16 * - ( CASE - 33 WHEN ( - + 39 ) THEN COUNT( * ) + + - 59 - - + 21 + - 22 WHEN + - ( 90 ) THEN + - 31 - + 71 + + 3 ELSE - 87 * 12 END ) * MIN( DISTINCT 15 ) + - 23
----
-250583

skipif mysql # not compatible
query I rowsort label-555
SELECT DISTINCT - 16 * - ( CASE - 33 WHEN ( - + 39 ) THEN COUNT ( * ) + + - 59 - - + 21 + - 22 WHEN + - ( 90 ) THEN + - 31 - + 71 + + 3 ELSE - 87 * 12 END ) * MIN ( DISTINCT 15 ) + - 23
----
-250583

query I rowsort
SELECT DISTINCT + 61 * + 42 * - 81
----
-207522

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT ALL - COUNT( DISTINCT - + 41 )
----
-1

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL - COUNT ( DISTINCT - + 41 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT 20 * - COALESCE ( - + 73, + + 24, - 92 + - 22 + - ( - COUNT( * ) ) - - 97 )
----
1460

skipif mysql # not compatible
query I rowsort label-558
SELECT 20 * - COALESCE ( - + 73, + + 24, - 92 + - 22 + - ( - COUNT ( * ) ) - - 97 )
----
1460

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

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

query II rowsort
SELECT DISTINCT - 62, - COALESCE ( - - 62, - - 88 ) AS col1
----
-62
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-561
SELECT - CAST( NULL AS DECIMAL ) * - - COALESCE ( + 74, - - 37 - + - 31 * 2, COUNT( * ) ) + - + 15 + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-561
SELECT - CAST ( NULL AS REAL ) * - - COALESCE ( + 74, - - 37 - + - 31 * 2, COUNT ( * ) ) + - + 15 + 8 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-562
SELECT 10 * - + COALESCE ( - - 76, - + NULLIF ( - + CAST( NULL AS SIGNED ), 79 ) DIV 54 + 8 - - COUNT( ALL - 0 ) + - + ( + 7 ) DIV + 60, + 25 ) AS col1, - 74
----
-760
-74

skipif mysql # not compatible
query II rowsort label-562
SELECT 10 * - + COALESCE ( - - 76, - + NULLIF ( - + CAST ( NULL AS INTEGER ), 79 ) / 54 + 8 - - COUNT ( ALL - 0 ) + - + ( + 7 ) / + 60, + 25 ) AS col1, - 74
----
-760
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT DISTINCT COUNT( DISTINCT - 24 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT COUNT ( DISTINCT - 24 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT ALL - MIN( DISTINCT 45 ) + - - 70
----
25

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL - MIN ( DISTINCT 45 ) + - - 70
----
25

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

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

query I rowsort
SELECT 39 - - 50 * 34 AS col0
----
1739

query I rowsort
SELECT 45 + - + 48
----
-3

query I rowsort
SELECT ALL - 99 + - - NULLIF ( 90, - + 44 ) AS col1
----
-9

query I rowsort
SELECT ALL 70 * 70 AS col1
----
4900

onlyif mysql # aggregate syntax: 
query II rowsort label-571
SELECT 56 AS col2, 0 + + COUNT( * ) + + COUNT( * ) * + 72 AS col0
----
56
73

skipif mysql # not compatible
query II rowsort label-571
SELECT 56 AS col2, 0 + + COUNT ( * ) + + COUNT ( * ) * + 72 AS col0
----
56
73

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT DISTINCT - - COUNT( * ) + + 43 + + 50 * - CASE + 66 WHEN 66 THEN ( - 95 ) WHEN + SUM( - 38 ) THEN + COUNT( * ) WHEN 61 THEN 10 ELSE - + 83 END + + 65 + 6 * + 29 * + - 15 * - + 58 * 18 + - + 47 + + 46 AS col1
----
2729698

skipif mysql # not compatible
query I rowsort label-572
SELECT DISTINCT - - COUNT ( * ) + + 43 + + 50 * - CASE + 66 WHEN 66 THEN ( - 95 ) WHEN + SUM ( - 38 ) THEN + COUNT ( * ) WHEN 61 THEN 10 ELSE - + 83 END + + 65 + 6 * + 29 * + - 15 * - + 58 * 18 + - + 47 + + 46 AS col1
----
2729698

query I rowsort
SELECT DISTINCT + - 59 * + 88
----
-5192

query I rowsort
SELECT + 15 + - 51
----
-36

query I rowsort
SELECT ALL - ( + 15 ) + + 0 - - - 98 + 37 AS col1
----
-76

query I rowsort
SELECT + 59 * - 66 AS col2
----
-3894

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT ALL - MAX( 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-577
SELECT ALL - MAX ( 86 )
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-578
SELECT + - COUNT( * ) DIV 4 * + 38 * + SUM( ALL + 83 )
----
0

skipif mysql # not compatible
query I rowsort label-578
SELECT + - COUNT ( * ) / 4 * + 38 * + SUM ( ALL + 83 )
----
0

query I rowsort
SELECT DISTINCT - 2 * - COALESCE ( + - ( + 9 ), - 80 ) AS col1
----
-18

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

skipif mysql # not compatible
query I rowsort label-580
SELECT - + COALESCE ( + - COUNT ( * ), + - 31 ) AS col2
----
1

query I rowsort
SELECT ALL - 69 * 68 col2
----
-4692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-582
SELECT DISTINCT 30 * - CAST( NULL AS SIGNED ) + - COUNT( * ) + + ( - + COUNT( * ) ) + - 54 / + 73 / + 59 * - 71 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-582
SELECT DISTINCT 30 * - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + ( - + COUNT ( * ) ) + - 54 / + 73 / + 59 * - 71 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-583
SELECT + COUNT ( * ) / 4 / + 97
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-585
SELECT + COUNT ( * ) * - - 22 + + 6 + + ( + 20 ) AS col1
----
48

query II rowsort
SELECT - 84 AS col1, + NULLIF ( - + 99, - 84 + - + 69 ) * - 22 * - 88 col1
----
-84
-191664

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT - - COUNT( * ) * 86 * 42 + + + COUNT( * ) + ( 70 )
----
3683

skipif mysql # not compatible
query I rowsort label-588
SELECT - - COUNT ( * ) * 86 * 42 + + + COUNT ( * ) + ( 70 )
----
3683

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

query I rowsort
SELECT - 90 * 30
----
-2700

onlyif mysql # aggregate syntax: 
query II rowsort label-591
SELECT MAX( + - 64 ) AS col2, - 92
----
-64
-92

skipif mysql # not compatible
query II rowsort label-591
SELECT MAX ( + - 64 ) AS col2, - 92
----
-64
-92

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-593
SELECT + 54 DIV - 83 col0, NULLIF ( + 21, - - 29 * - 90 ) + ( - + 69 )
----
0
-48

skipif mysql # not compatible
query II rowsort label-593
SELECT + 54 / - 83 col0, NULLIF ( + 21, - - 29 * - 90 ) + ( - + 69 )
----
0
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT - SUM( DISTINCT + - 75 ) + + + 7
----
82

skipif mysql # not compatible
query I rowsort label-594
SELECT - SUM ( DISTINCT + - 75 ) + + + 7
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-595
SELECT DISTINCT + 97 * - - COALESCE ( + - CASE 35 WHEN - + 34 - + 70 THEN NULL WHEN 95 THEN + - 19 + 92 WHEN + 25 * - 60 THEN 5 * + + MAX( DISTINCT + + ( - CAST( + 76 AS SIGNED ) ) ) ELSE 80 END, + 64 ) / 78 + - 19 * + - CASE + 89 WHEN + 68 THEN + 82 WHEN - 64 + + 54 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT + 97 * - - COALESCE ( + - CASE 35 WHEN - + 34 - + 70 THEN NULL WHEN 95 THEN + - 19 + 92 WHEN + 25 * - 60 THEN 5 * + + MAX ( DISTINCT + + ( - CAST ( + 76 AS INTEGER ) ) ) ELSE 80 END, + 64 ) / 78 + - 19 * + - CASE + 89 WHEN + 68 THEN + 82 WHEN - 64 + + 54 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-596
SELECT + ( 41 ), - 64 * - + SUM( ALL - 76 ) + - + 11 AS col1
----
41
-4875

skipif mysql # not compatible
query II rowsort label-596
SELECT + ( 41 ), - 64 * - + SUM ( ALL - 76 ) + - + 11 AS col1
----
41
-4875

onlyif mysql # aggregate syntax: 
query II rowsort label-597
SELECT DISTINCT + MIN( ALL + 6 ) col0, - 23 AS col0
----
6
-23

skipif mysql # not compatible
query II rowsort label-597
SELECT DISTINCT + MIN ( ALL + 6 ) col0, - 23 AS col0
----
6
-23

query II rowsort
SELECT - 0 * 81 AS col2, + 81 AS col2
----
0
81

query I rowsort
SELECT ALL + 67 + + 58 AS col2
----
125

query I rowsort
SELECT DISTINCT ( 52 ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT ALL - 68 + 71 + + + ( - MAX( DISTINCT 52 ) ) + COUNT( * ) * - - COUNT( * ) + 29
----
-19

skipif mysql # not compatible
query I rowsort label-601
SELECT ALL - 68 + 71 + + + ( - MAX ( DISTINCT 52 ) ) + COUNT ( * ) * - - COUNT ( * ) + 29
----
-19

query I rowsort
SELECT ALL + 13 + - 85 AS col2
----
-72

query I rowsort
SELECT - 64 + + - 68
----
-132

query I rowsort
SELECT ALL - + COALESCE ( 37, - 24 * - 39 + + 32 ) - - 18
----
-19

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

skipif mysql # not compatible
query I rowsort label-605
SELECT - MIN ( - 67 )
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-606
SELECT - - COUNT( * ) - + 43 + + 56 DIV 76 + - 42 * - 72 col1
----
2982

skipif mysql # not compatible
query I rowsort label-606
SELECT - - COUNT ( * ) - + 43 + + 56 / 76 + - 42 * - 72 col1
----
2982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-607
SELECT DISTINCT + NULLIF ( + 63, + - 59 + CAST( NULL AS SIGNED ) ) * - COUNT( * ) * + - 28 + 97 + + + 70 * - 80
----
-3739

skipif mysql # not compatible
query I rowsort label-607
SELECT DISTINCT + NULLIF ( + 63, + - 59 + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) * + - 28 + 97 + + + 70 * - 80
----
-3739

onlyif mysql # aggregate syntax: 
query II rowsort label-608
SELECT ALL - COUNT( ( - 3 ) ) * + 61 + + + NULLIF ( - 59, - - 10 ) AS col0, 6
----
-120
6

skipif mysql # not compatible
query II rowsort label-608
SELECT ALL - COUNT ( ( - 3 ) ) * + 61 + + + NULLIF ( - 59, - - 10 ) AS col0, 6
----
-120
6

query I rowsort
SELECT ALL + 62 * - + 23 * - - 80 * - - ( - + 37 ) AS col1
----
4220960

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

skipif mysql # not compatible
query I rowsort label-610
SELECT + 88 - - + 9 * + + 83 + COUNT ( * ) AS col2
----
836

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

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

query I rowsort
SELECT - 32 + - ( - 25 ) - - 80
----
73

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

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

query I rowsort
SELECT - 46 + - - 6 AS col1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-615
SELECT + - 27 - - 37 DIV + 84
----
-27

skipif mysql # not compatible
query I rowsort label-615
SELECT + - 27 - - 37 / + 84
----
-27

query II rowsort
SELECT - ( + 95 ) AS col0, - ( - 49 ) AS col0
----
-95
49

query I rowsort
SELECT - - 57 * + 8
----
456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-618
SELECT DISTINCT ( + COALESCE ( + + 23, + - 16 + - 61 * - ( + - 68 ) ) ) DIV + COUNT( * ) col0
----
23

skipif mysql # not compatible
query I rowsort label-618
SELECT DISTINCT ( + COALESCE ( + + 23, + - 16 + - 61 * - ( + - 68 ) ) ) / + COUNT ( * ) col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-619
SELECT + - 66 + + CAST( NULL AS SIGNED ) * - - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-619
SELECT + - 66 + + CAST ( NULL AS INTEGER ) * - - 7 AS col2
----
NULL

query I rowsort
SELECT ALL 67 * - 49 AS col0
----
-3283

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-621
SELECT + 73 + + 26 - + CAST( NULL AS SIGNED ) - 8 * + COALESCE ( - 5, - - 18 * + - 36 + - COALESCE ( + 98, - 83 ) + 6 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-621
SELECT + 73 + + 26 - + CAST ( NULL AS INTEGER ) - 8 * + COALESCE ( - 5, - - 18 * + - 36 + - COALESCE ( + 98, - 83 ) + 6 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-622
SELECT ALL 78 DIV + CAST( - 93 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL 78 / + CAST ( - 93 AS INTEGER )
----
0

query I rowsort
SELECT - 9 * 11 + - + 37 AS col2
----
-136

query II rowsort
SELECT ALL + 65 AS col2, 76 AS col2
----
65
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-625
SELECT ALL - 86 / + 10 + - 76 + - 81 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL - 86 / + 10 + - 76 + - 81 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 37 * - 59 col2
----
-2183

query II rowsort
SELECT 44 * - + 93 + 12 AS col0, + 44 + - 45 * - - 41 AS col2
----
-4080
-1801

onlyif mysql # aggregate syntax: 
query II rowsort label-628
SELECT ( - - MIN( DISTINCT + + 34 ) ) AS col1, + 46 * + 78 + CASE - 10 WHEN 11 THEN - - COUNT( * ) * - 45 WHEN - 6 * - 95 * + 32 THEN NULL ELSE NULL END AS col0
----
34
NULL

skipif mysql # not compatible
query II rowsort label-628
SELECT ( - - MIN ( DISTINCT + + 34 ) ) AS col1, + 46 * + 78 + CASE - 10 WHEN 11 THEN - - COUNT ( * ) * - 45 WHEN - 6 * - 95 * + 32 THEN NULL ELSE NULL END AS col0
----
34
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-629
SELECT + 13 * COUNT( * ) DIV - CASE + ( + - 11 ) WHEN - - 97 DIV - + 60 * - 84 * 12 THEN NULL WHEN + + 41 * - 76 THEN NULL ELSE COUNT( * ) END AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-629
SELECT + 13 * COUNT ( * ) / - CASE + ( + - 11 ) WHEN - - 97 / - + 60 * - 84 * 12 THEN NULL WHEN + + 41 * - 76 THEN NULL ELSE COUNT ( * ) END AS col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-630
SELECT ALL - COUNT( 72 ) DIV - - CAST( COALESCE ( + + COALESCE ( - 32, + + 22 ), 29 ) AS SIGNED ) + + 32 * + 97 + 82, - MIN( + 73 ) AS col1
----
3186
-73

skipif mysql # not compatible
query II rowsort label-630
SELECT ALL - COUNT ( 72 ) / - - CAST ( COALESCE ( + + COALESCE ( - 32, + + 22 ), 29 ) AS INTEGER ) + + 32 * + 97 + 82, - MIN ( + 73 ) AS col1
----
3186
-73

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-633
SELECT DISTINCT + MAX( ALL + - 49 ) * + 17 * - ( - + 88 ) * + ( - + 12 ) + ( + 95 ) + - ( - - 91 ) + - 82 * - - 65 AS col1, 47 * - COUNT( * )
----
874322
-47

skipif mysql # not compatible
query II rowsort label-633
SELECT DISTINCT + MAX ( ALL + - 49 ) * + 17 * - ( - + 88 ) * + ( - + 12 ) + ( + 95 ) + - ( - - 91 ) + - 82 * - - 65 AS col1, 47 * - COUNT ( * )
----
874322
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT DISTINCT - MIN( ALL 93 ) * - COUNT( ( - 73 ) ) * - - ( + 78 ) + + 55 + + + 97 * - 96
----
-2003

skipif mysql # not compatible
query I rowsort label-634
SELECT DISTINCT - MIN ( ALL 93 ) * - COUNT ( ( - 73 ) ) * - - ( + 78 ) + + 55 + + + 97 * - 96
----
-2003

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT ALL + COALESCE ( - - ( + ( + 9 ) ), + + COUNT( * ) )
----
9

skipif mysql # not compatible
query I rowsort label-635
SELECT ALL + COALESCE ( - - ( + ( + 9 ) ), + + COUNT ( * ) )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT - 32 * - ( - COUNT( * ) ) + 47 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-636
SELECT - 32 * - ( - COUNT ( * ) ) + 47 AS col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-637
SELECT DISTINCT 57 * SUM( - COALESCE ( + ( + 27 ), - 60 DIV + 72 + 33 ) ) * 65 * - + 38 + 59, - 43 col2
----
3801389
-43

skipif mysql # not compatible
query II rowsort label-637
SELECT DISTINCT 57 * SUM ( - COALESCE ( + ( + 27 ), - 60 / + 72 + 33 ) ) * 65 * - + 38 + 59, - 43 col2
----
3801389
-43

query I rowsort
SELECT CASE + 80 WHEN 54 + 91 THEN - 68 ELSE + 91 * 24 END col1
----
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT DISTINCT COUNT( DISTINCT 82 ) * 39 + 87 * + 4 + + 13 - - 98 AS col2
----
498

skipif mysql # not compatible
query I rowsort label-639
SELECT DISTINCT COUNT ( DISTINCT 82 ) * 39 + 87 * + 4 + + 13 - - 98 AS col2
----
498

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

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL COUNT ( * ) * 33 + 35 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT + 23 - - 76 + - + COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-641
SELECT + 23 - - 76 + - + COUNT ( * ) AS col1
----
98

query II rowsort
SELECT - 62 AS col1, 0
----
-62
0

query II rowsort
SELECT 81 AS col0, 6
----
81
6

query I rowsort
SELECT DISTINCT + 36 - - + 98
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT ALL - MIN( DISTINCT 60 ) * + ( + + 34 )
----
-2040

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL - MIN ( DISTINCT 60 ) * + ( + + 34 )
----
-2040

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

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

query II rowsort
SELECT - 50 AS col0, 51 AS col0
----
-50
51

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-652
SELECT ALL - 0 AS col2, + CAST( + COUNT( * ) AS SIGNED ) * + - 47 + + 81 AS col1
----
0
34

skipif mysql # not compatible
query II rowsort label-652
SELECT ALL - 0 AS col2, + CAST ( + COUNT ( * ) AS INTEGER ) * + - 47 + + 81 AS col1
----
0
34

query I rowsort
SELECT ALL - COALESCE ( - 90, ( + 7 ) ) AS col1
----
90

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

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

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

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

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

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

query I rowsort
SELECT 82 * + 82
----
6724

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-659
SELECT ALL CAST( + MAX( ALL 68 ) AS SIGNED ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL CAST ( + MAX ( ALL 68 ) AS INTEGER ) AS col1
----
68

query I rowsort
SELECT ALL - ( - CASE WHEN NOT 43 IS NULL THEN NULL WHEN NOT ( NULL ) BETWEEN 56 / 17 + - 50 AND 28 * + 61 + + 0 THEN + - 8 END ) AS col2
----
NULL

query I rowsort
SELECT 59 + - - 42
----
101

query II rowsort
SELECT - 30, + 31 * - 39 AS col1
----
-30
-1209

query I rowsort
SELECT ALL - - 61 + - 9 AS col1
----
52

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

query I rowsort
SELECT ALL 61 + + 43 col2
----
104

query I rowsort
SELECT 13 * + ( - 51 )
----
-663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-667
SELECT 49 * ( - - CAST( + + 23 AS SIGNED ) ) AS col2, MIN( DISTINCT + 23 ) * + + 58 * + - 27 col0
----
1127
-36018

skipif mysql # not compatible
query II rowsort label-667
SELECT 49 * ( - - CAST ( + + 23 AS INTEGER ) ) AS col2, MIN ( DISTINCT + 23 ) * + + 58 * + - 27 col0
----
1127
-36018

query I rowsort
SELECT ALL - 12 + + 72 + + - 37 col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT COUNT( * ) - - 67 + 55 + + + 15 * + 19 - + 39 * + + NULLIF ( + 97, 66 ) + 94 AS col2
----
-3281

skipif mysql # not compatible
query I rowsort label-669
SELECT COUNT ( * ) - - 67 + 55 + + + 15 * + 19 - + 39 * + + NULLIF ( + 97, 66 ) + 94 AS col2
----
-3281

query I rowsort
SELECT 29 + + - 74 + + - 3
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT 86 * - COUNT( * ) + 65 + + 71 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-671
SELECT 86 * - COUNT ( * ) + 65 + + 71 AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-672
SELECT COUNT( * ) + + ( - ( + - CAST( + AVG ( 19 ) AS SIGNED ) ) ) + + - 59 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-672
SELECT COUNT ( * ) + + ( - ( + - CAST ( + AVG ( 19 ) AS INTEGER ) ) ) + + - 59 AS col2
----
-39

query I rowsort
SELECT DISTINCT 70 * + NULLIF ( - 33, 34 + ( - + 71 ) )
----
-2310

query I rowsort
SELECT 38 * + 88 AS col2
----
3344

onlyif mysql # aggregate syntax: 
query II rowsort label-675
SELECT - 84 * - MAX( ALL + 94 ) + + - 93 AS col1, - ( - 64 ) AS col0
----
7803
64

skipif mysql # not compatible
query II rowsort label-675
SELECT - 84 * - MAX ( ALL + 94 ) + + - 93 AS col1, - ( - 64 ) AS col0
----
7803
64

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT DISTINCT - + MIN( + 68 ) * 73 AS col1
----
-4964

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT - + MIN ( + 68 ) * 73 AS col1
----
-4964

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

query I rowsort
SELECT + 51 + - - 58
----
109

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-680
SELECT COALESCE ( 31, + COUNT( * ), + 82 ) + - 65 * 13 * + - CAST( NULL AS SIGNED ) * + + ( + 64 ) * 16 - - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-680
SELECT COALESCE ( 31, + COUNT ( * ), + 82 ) + - 65 * 13 * + - CAST ( NULL AS INTEGER ) * + + ( + 64 ) * 16 - - 48
----
NULL

query I rowsort
SELECT + 17 + 77 AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-682
SELECT 84 - + - 67 + CAST( + + CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) * + 95
----
246

skipif mysql # not compatible
query I rowsort label-682
SELECT 84 - + - 67 + CAST ( + + CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) * + 95
----
246

query I rowsort
SELECT 4 + - 37 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT ( 51 ) + + COUNT( * ) * + + CASE - + 63 WHEN - 86 THEN - MIN( + + 4 ) ELSE + COUNT( * ) END
----
52

skipif mysql # not compatible
query I rowsort label-684
SELECT ( 51 ) + + COUNT ( * ) * + + CASE - + 63 WHEN - 86 THEN - MIN ( + + 4 ) ELSE + COUNT ( * ) END
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT 49 + CASE + COUNT( * ) WHEN - 38 * - 1 - + 94 - + 93 + - AVG ( ALL - 4 ) * 65 THEN - 38 END + + 44 - 19 + + 80 * + 60 * + - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-685
SELECT 49 + CASE + COUNT ( * ) WHEN - 38 * - 1 - + 94 - + 93 + - AVG ( ALL - 4 ) * 65 THEN - 38 END + + 44 - 19 + + 80 * + 60 * + - 47
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-686
SELECT 39 + + COALESCE ( - + 41, 27 ) + + + ( + 65 ) + + + 84 * CAST( 42 AS SIGNED ) DIV + - COUNT( * ), COUNT( * ) AS col2, + 38 AS col0
----
-3465
1
38

skipif mysql # not compatible
query III rowsort label-686
SELECT 39 + + COALESCE ( - + 41, 27 ) + + + ( + 65 ) + + + 84 * CAST ( 42 AS INTEGER ) / + - COUNT ( * ), COUNT ( * ) AS col2, + 38 AS col0
----
-3465
1
38

query I rowsort
SELECT ALL ( 5 ) * - 69 - + 95 AS col2
----
-440

query I rowsort
SELECT ALL - ( + NULLIF ( - 57, - 81 ) ) AS col0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-689
SELECT - 24 DIV + 65 + - 18 + - 53 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-689
SELECT - 24 / + 65 + - 18 + - 53 AS col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-690
SELECT DISTINCT 49 * + 67 - - 91 + + CASE + - COALESCE ( 76, 55 * + + 64 * + 64, CAST( NULL AS SIGNED ), 63 ) WHEN - COUNT( * ) THEN - 82 * - 98 ELSE NULL END * + + 8 * + - AVG ( + - 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-690
SELECT DISTINCT 49 * + 67 - - 91 + + CASE + - COALESCE ( 76, 55 * + + 64 * + 64, CAST ( NULL AS INTEGER ), 63 ) WHEN - COUNT ( * ) THEN - 82 * - 98 ELSE NULL END * + + 8 * + - AVG ( + - 88 )
----
NULL

query I rowsort
SELECT ALL + 81 * + 59
----
4779

query I rowsort
SELECT - 41 * - 78 AS col1
----
3198

query I rowsort
SELECT + 6 + 14 col2
----
20

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

skipif mysql # not compatible
query I rowsort label-694
SELECT + CAST ( NULL AS INTEGER ) * + - 53 + + 66
----
NULL

query I rowsort
SELECT + 80 * 49 + - 80 AS col1
----
3840

onlyif mysql # DIV for integer division: 
query I rowsort label-696
SELECT DISTINCT 23 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT 23 / 78
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-698
SELECT + - 80 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-698
SELECT + - 80 / - 82
----
0

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

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL + 75 / + 39 + + 47 + COUNT ( * )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-700
SELECT ALL + + NULLIF ( + + 5, - ( CAST( NULL AS SIGNED ) ) ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL + + NULLIF ( + + 5, - ( CAST ( NULL AS INTEGER ) ) ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT - 86 * - 7 - - COUNT( * ) + + + 58
----
661

skipif mysql # not compatible
query I rowsort label-701
SELECT - 86 * - 7 - - COUNT ( * ) + + + 58
----
661

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-702
SELECT + + COUNT( * ) * - - ( + NULLIF ( + 45, ( - + 68 ) * - CAST( NULL AS SIGNED ) ) )
----
45

skipif mysql # not compatible
query I rowsort label-702
SELECT + + COUNT ( * ) * - - ( + NULLIF ( + 45, ( - + 68 ) * - CAST ( NULL AS INTEGER ) ) )
----
45

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT - 99 DIV - 45 + + - 34 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-704
SELECT - 99 / - 45 + + - 34 AS col2
----
-32

query I rowsort
SELECT - + 31 * - 66 + + + 28 + - 53 * + + 76 * 51 + + - 22
----
-203376

query II rowsort
SELECT - 8 AS col2, 8 + - - 32 * 27 + ( - 51 ) + 2 * 22 + - 31
----
-8
834

query I rowsort
SELECT + 82 + 11
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT ALL - 34 + + - 20 + + + 10 * - + CASE + 67 WHEN - 58 THEN NULL WHEN - COUNT( * ) * + COALESCE ( SUM( ALL - 5 ), - - AVG ( DISTINCT - - 31 ) + - + 39 * 29 ) - - 40 THEN - COUNT( * ) + - + 8 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-708
SELECT ALL - 34 + + - 20 + + + 10 * - + CASE + 67 WHEN - 58 THEN NULL WHEN - COUNT ( * ) * + COALESCE ( SUM ( ALL - 5 ), - - AVG ( DISTINCT - - 31 ) + - + 39 * 29 ) - - 40 THEN - COUNT ( * ) + - + 8 ELSE NULL END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-710
SELECT DISTINCT - - 53 * - ( NULLIF ( + 29, + CAST( NULL AS SIGNED ) * - 65 + - COUNT( * ) ) ) AS col1
----
-1537

skipif mysql # not compatible
query I rowsort label-710
SELECT DISTINCT - - 53 * - ( NULLIF ( + 29, + CAST ( NULL AS INTEGER ) * - 65 + - COUNT ( * ) ) ) AS col1
----
-1537

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT + + 54 + - SUM( ALL - - 62 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-711
SELECT + + 54 + - SUM ( ALL - - 62 ) AS col1
----
-8

query I rowsort
SELECT + 39 - + 93
----
-54

query I rowsort
SELECT DISTINCT 13 + - 6
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-714
SELECT 91 AS col0, 83 + COUNT( * )
----
91
84

skipif mysql # not compatible
query II rowsort label-714
SELECT 91 AS col0, 83 + COUNT ( * )
----
91
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-715
SELECT ALL 32 + 62 DIV + MIN( DISTINCT + 14 )
----
36

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL 32 + 62 / + MIN ( DISTINCT + 14 )
----
36

query II rowsort
SELECT - - 9, - 67 + + + 69 AS col0
----
9
2

query I rowsort
SELECT - COALESCE ( + - 47, - - 38 ) AS col1
----
47

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-719
SELECT + CAST( - + 9 AS SIGNED ) + - 15 + COUNT( * ) - + 90 + + 14 * 4
----
-57

skipif mysql # not compatible
query I rowsort label-719
SELECT + CAST ( - + 9 AS INTEGER ) + - 15 + COUNT ( * ) - + 90 + + 14 * 4
----
-57

query I rowsort
SELECT - NULLIF ( 20, + - 40 )
----
-20

query II rowsort
SELECT 11 col0, - 12 AS col2
----
11
-12

query I rowsort
SELECT + 7 * - 8 * + 13
----
-728

onlyif mysql # aggregate syntax: 
query II rowsort label-723
SELECT DISTINCT + 67 - + 0 AS col0, + COUNT( * ) col0
----
67
1

skipif mysql # not compatible
query II rowsort label-723
SELECT DISTINCT + 67 - + 0 AS col0, + COUNT ( * ) col0
----
67
1

query I rowsort
SELECT ALL NULLIF ( 91, + 7 )
----
91

query III rowsort
SELECT DISTINCT 30 AS col0, 94 * 47 * - + 82, + ( 45 ) - + + 37 + + + 56 + + + 7 AS col0
----
30
-362276
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-726
SELECT ALL COUNT( * ) * CAST( SUM( ALL 83 ) AS SIGNED ) * 55 + + CASE + 62 WHEN + 85 THEN 92 * + 0 * 69 * 75 + + 60 END + - + 47 - - 38 + - 53 * + AVG ( DISTINCT + - 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL COUNT ( * ) * CAST ( SUM ( ALL 83 ) AS INTEGER ) * 55 + + CASE + 62 WHEN + 85 THEN 92 * + 0 * 69 * 75 + + 60 END + - + 47 - - 38 + - 53 * + AVG ( DISTINCT + - 86 )
----
NULL

query I rowsort
SELECT 86 * AVG ( ALL CASE 31 WHEN - ( 15 ) + - ( 90 ) THEN 77 WHEN + + NULLIF ( 90, - 13 ) THEN - 49 + + - 86 * - + 61 END ) - 3
----
NULL

query I rowsort
SELECT - 53 * 74
----
-3922

query I rowsort
SELECT ( ( - 33 ) )
----
-33

query I rowsort
SELECT ALL + NULLIF ( 98, - 88 ) AS col0
----
98

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

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

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

query I rowsort
SELECT - NULLIF ( - 74, - - 7 ) * 29
----
2146

onlyif mysql # aggregate syntax: 
query II rowsort label-734
SELECT DISTINCT + COUNT( * ), ( 44 ) * + 48 * 27 AS col2
----
1
57024

skipif mysql # not compatible
query II rowsort label-734
SELECT DISTINCT + COUNT ( * ), ( 44 ) * + 48 * 27 AS col2
----
1
57024

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT - 94 - + - 21 * COUNT( * ) col1
----
-73

skipif mysql # not compatible
query I rowsort label-735
SELECT - 94 - + - 21 * COUNT ( * ) col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT + 76 * COUNT( * ) - - 63 AS col2
----
139

skipif mysql # not compatible
query I rowsort label-736
SELECT + 76 * COUNT ( * ) - - 63 AS col2
----
139

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-738
SELECT DISTINCT + + COUNT( ALL 28 ) * COUNT( * ) DIV - + 13
----
0

skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT + + COUNT ( ALL 28 ) * COUNT ( * ) / - + 13
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-739
SELECT + + 13 * 87 DIV - + 80 + + 0 col0
----
-14

skipif mysql # not compatible
query I rowsort label-739
SELECT + + 13 * 87 / - + 80 + + 0 col0
----
-14

query I rowsort
SELECT - + 24 * + 12 AS col0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT - CASE - COALESCE ( + + COALESCE ( 44, - 33 ), - COUNT( * ) * 91 + - + 75 * + 3 + + - 26 * - 20 - - MIN( - 40 ) + + + 73, + 44 * + - 88 * + 56 ) WHEN 41 THEN - COUNT( + 20 ) * 58 END * + 55 + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-741
SELECT - CASE - COALESCE ( + + COALESCE ( 44, - 33 ), - COUNT ( * ) * 91 + - + 75 * + 3 + + - 26 * - 20 - - MIN ( - 40 ) + + + 73, + 44 * + - 88 * + 56 ) WHEN 41 THEN - COUNT ( + 20 ) * 58 END * + 55 + - 74
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT + CASE + COUNT( ALL 86 ) WHEN - 68 * - + 32 * 4 + - AVG ( DISTINCT + + 89 ) + 8 + + 22 THEN 55 - 18 - + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-743
SELECT + CASE + COUNT ( ALL 86 ) WHEN - 68 * - + 32 * 4 + - AVG ( DISTINCT + + 89 ) + 8 + + 22 THEN 55 - 18 - + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT + + CASE - 34 WHEN 25 THEN COUNT( * ) END / - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-744
SELECT + + CASE - 34 WHEN 25 THEN COUNT ( * ) END / - 17 AS col1
----
NULL

query I rowsort
SELECT ALL - 12 * + 37 - + 94 + + 15
----
-523

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

query I rowsort
SELECT - + 24 + + 62 AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-748
SELECT - CASE + - 23 WHEN - - COALESCE ( + 44, + ( + MAX( ALL 0 ) ), 56 ) THEN 70 * + COALESCE ( - 2, - - 83 * + NULLIF ( SUM( ALL + 94 ), + 87 * - - 87 ) ) ELSE - SUM( - CAST( NULL AS SIGNED ) ) END + - 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-748
SELECT - CASE + - 23 WHEN - - COALESCE ( + 44, + ( + MAX ( ALL 0 ) ), 56 ) THEN 70 * + COALESCE ( - 2, - - 83 * + NULLIF ( SUM ( ALL + 94 ), + 87 * - - 87 ) ) ELSE - SUM ( - CAST ( NULL AS INTEGER ) ) END + - 38 AS col1
----
NULL

query I rowsort
SELECT - + COALESCE ( + 95, 7 )
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-750
SELECT DISTINCT - ( 6 ) AS col1, - MAX( ALL + 70 ) * + 97
----
-6
-6790

skipif mysql # not compatible
query II rowsort label-750
SELECT DISTINCT - ( 6 ) AS col1, - MAX ( ALL + 70 ) * + 97
----
-6
-6790

query II rowsort
SELECT ALL 60, 9 * - 47 AS col2
----
60
-423

query II rowsort
SELECT - + 72 + + 66 AS col2, 11 AS col0
----
-6
11

query I rowsort
SELECT - - 56 - 86 - + 73
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT + 8 + - ( ( - COUNT( * ) ) )
----
9

skipif mysql # not compatible
query I rowsort label-754
SELECT + 8 + - ( ( - COUNT ( * ) ) )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT ALL + COALESCE ( 11, ( + - NULLIF ( + + MIN( - 52 ), + + COALESCE ( - 73, 82, + 72 * + ( - 69 ) * 16 + - 38 + + + COUNT( * ) / + 19 * - 2 ) * - - 76 - + ( - CASE MAX( ALL - 26 ) WHEN - 96 * - 90 THEN NULL WHEN + + 94 * + - 12 THEN NULL WHEN 97 THEN - MAX( + - 98 ) END ) ) ), + - 84 ) * + + 22
----
242

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL + COALESCE ( 11, ( + - NULLIF ( + + MIN ( - 52 ), + + COALESCE ( - 73, 82, + 72 * + ( - 69 ) * 16 + - 38 + + + COUNT ( * ) / + 19 * - 2 ) * - - 76 - + ( - CASE MAX ( ALL - 26 ) WHEN - 96 * - 90 THEN NULL WHEN + + 94 * + - 12 THEN NULL WHEN 97 THEN - MAX ( + - 98 ) END ) ) ), + - 84 ) * + + 22
----
242

query I rowsort
SELECT 38 + + 79
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT MAX( DISTINCT 97 ) + 71 AS col0
----
168

skipif mysql # not compatible
query I rowsort label-757
SELECT MAX ( DISTINCT 97 ) + 71 AS col0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT NULLIF ( + + 49, + - SUM( - + 24 ) ) * - - 80 * - - 42
----
164640

skipif mysql # not compatible
query I rowsort label-758
SELECT NULLIF ( + + 49, + - SUM ( - + 24 ) ) * - - 80 * - - 42
----
164640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-759
SELECT ( 0 ) DIV - - 79 + + 72 + + 52 AS col2, 29 DIV 97 + + + CASE ( + 17 ) WHEN - - 11 * 92 THEN - CAST( NULL AS SIGNED ) WHEN 67 * - 48 - AVG ( ALL 56 ) THEN CAST( NULL AS SIGNED ) WHEN 48 THEN + - 7 ELSE + MIN( DISTINCT + 95 ) + - 29 + - 11 - 17 END + 83 * - 61
----
124
-5025

skipif mysql # not compatible
query II rowsort label-759
SELECT ( 0 ) / - - 79 + + 72 + + 52 AS col2, 29 / 97 + + + CASE ( + 17 ) WHEN - - 11 * 92 THEN - CAST ( NULL AS INTEGER ) WHEN 67 * - 48 - AVG ( ALL 56 ) THEN CAST ( NULL AS INTEGER ) WHEN 48 THEN + - 7 ELSE + MIN ( DISTINCT + 95 ) + - 29 + - 11 - 17 END + 83 * - 61
----
124
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-760
SELECT 80 DIV + 47
----
1

skipif mysql # not compatible
query I rowsort label-760
SELECT 80 / + 47
----
1

query I rowsort
SELECT DISTINCT 94 * - 83 * 41 AS col1
----
-319882

query I rowsort
SELECT 92 * ( + 89 ) * + 12 AS col1
----
98256

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT 63 * MIN( DISTINCT 73 ) * + COUNT( * ) * + 5 - - 51
----
23046

skipif mysql # not compatible
query I rowsort label-763
SELECT 63 * MIN ( DISTINCT 73 ) * + COUNT ( * ) * + 5 - - 51
----
23046

onlyif mysql # DIV for integer division: 
query I rowsort label-764
SELECT - - 94 DIV + 63 + - - 1
----
2

skipif mysql # not compatible
query I rowsort label-764
SELECT - - 94 / + 63 + - - 1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-765
SELECT ( + 70 ) + - 68 + - 29 + 18 - 62 DIV + + 66 * + 82
----
-9

skipif mysql # not compatible
query I rowsort label-765
SELECT ( + 70 ) + - 68 + - 29 + 18 - 62 / + + 66 * + 82
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT + COALESCE ( - + 89, - COUNT( * ) + - + 11 + 80 )
----
-89

skipif mysql # not compatible
query I rowsort label-766
SELECT + COALESCE ( - + 89, - COUNT ( * ) + - + 11 + 80 )
----
-89

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-768
SELECT DISTINCT - CAST( - + ( - NULLIF ( 40, + + 6 ) ) AS SIGNED ) AS col2, COUNT( * ) * + CAST( + 42 AS SIGNED )
----
-40
42

skipif mysql # not compatible
query II rowsort label-768
SELECT DISTINCT - CAST ( - + ( - NULLIF ( 40, + + 6 ) ) AS INTEGER ) AS col2, COUNT ( * ) * + CAST ( + 42 AS INTEGER )
----
-40
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-769
SELECT 13 + 18 - - COUNT( * ) + - + 81 DIV + 85 + - COUNT( * ) * 78 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-769
SELECT 13 + 18 - - COUNT ( * ) + - + 81 / + 85 + - COUNT ( * ) * 78 AS col0
----
-46

query I rowsort
SELECT ALL ( - 81 ) + + 67 + + 42 * + 34
----
1414

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-771
SELECT 62 - 99 DIV SUM( + - 22 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-771
SELECT 62 - 99 / SUM ( + - 22 ) AS col2
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-772
SELECT + CASE + ( + + 78 ) WHEN - 78 THEN - - CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-772
SELECT + CASE + ( + + 78 ) WHEN - 78 THEN - - CAST ( NULL AS REAL ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-773
SELECT + SUM( - CAST( 44 AS SIGNED ) ) + + 39
----
-5

skipif mysql # not compatible
query I rowsort label-773
SELECT + SUM ( - CAST ( 44 AS INTEGER ) ) + + 39
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-774
SELECT 51 * - 94, COUNT( * ) - + 53 * COUNT( DISTINCT - 43 ) + SUM( 74 ) AS col2
----
-4794
22

skipif mysql # not compatible
query II rowsort label-774
SELECT 51 * - 94, COUNT ( * ) - + 53 * COUNT ( DISTINCT - 43 ) + SUM ( 74 ) AS col2
----
-4794
22

query I rowsort
SELECT ALL - 91 - + + 4 AS col2
----
-95

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-777
SELECT - 19 + - + CAST( NULL AS SIGNED ) + - 26 + - AVG ( ALL + 87 ) / - 87 * + ( + 54 ) / - - 26 + + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-777
SELECT - 19 + - + CAST ( NULL AS INTEGER ) + - 26 + - AVG ( ALL + 87 ) / - 87 * + ( + 54 ) / - - 26 + + 34 AS col1
----
NULL

query I rowsort
SELECT 31 * + 63
----
1953

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT ALL - ( + + ( - 82 ) ) * - + COUNT( * ) * + 84 * + + NULLIF ( 44, 36 ) + - 75 * + 11 AS col0
----
-303897

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL - ( + + ( - 82 ) ) * - + COUNT ( * ) * + 84 * + + NULLIF ( 44, 36 ) + - 75 * + 11 AS col0
----
-303897

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-781
SELECT ALL 67, 10 + COUNT( * ) AS col2
----
67
11

skipif mysql # not compatible
query II rowsort label-781
SELECT ALL 67, 10 + COUNT ( * ) AS col2
----
67
11

query I rowsort
SELECT 64 + + - 29 * - + 74 + 30 AS col2
----
2240

onlyif mysql # DIV for integer division: 
query I rowsort label-783
SELECT DISTINCT - 49 DIV - 45 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-783
SELECT DISTINCT - 49 / - 45 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-784
SELECT CASE 81 WHEN + CASE 78 WHEN - - 18 - - 50 + + COUNT( * ) THEN + + 1 END * - 16 * 6 DIV - + 98 - - + 7 * + + 80 THEN NULL ELSE - 67 DIV 98 + + + 82 * 75 * ( 91 ) + COALESCE ( - + 77, - 86, + 29, + 67 ) - + 56 END + + - 56 + - 95 AS col1
----
559366

skipif mysql # not compatible
query I rowsort label-784
SELECT CASE 81 WHEN + CASE 78 WHEN - - 18 - - 50 + + COUNT ( * ) THEN + + 1 END * - 16 * 6 / - + 98 - - + 7 * + + 80 THEN NULL ELSE - 67 / 98 + + + 82 * 75 * ( 91 ) + COALESCE ( - + 77, - 86, + 29, + 67 ) - + 56 END + + - 56 + - 95 AS col1
----
559366

query I rowsort
SELECT 48 * 20
----
960

query I rowsort
SELECT ALL 12 * 11 AS col1
----
132

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

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

query I rowsort
SELECT DISTINCT + 77 + - + 55 AS col0
----
22

query I rowsort
SELECT 83 * + 3
----
249

onlyif mysql # aggregate syntax: 
query II rowsort label-790
SELECT DISTINCT MAX( ( + 76 ) ) AS col2, 21 col1
----
76
21

skipif mysql # not compatible
query II rowsort label-790
SELECT DISTINCT MAX ( ( + 76 ) ) AS col2, 21 col1
----
76
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-791
SELECT + 68 * - 86 DIV - COUNT( * ) + + - 7 AS col1
----
5841

skipif mysql # not compatible
query I rowsort label-791
SELECT + 68 * - 86 / - COUNT ( * ) + + - 7 AS col1
----
5841

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-793
SELECT ALL - 34, COUNT( * ) + - 21 AS col0
----
-34
-20

skipif mysql # not compatible
query II rowsort label-793
SELECT ALL - 34, COUNT ( * ) + - 21 AS col0
----
-34
-20

query I rowsort
SELECT ALL 5 + - - 33
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-795
SELECT 96 DIV + + 43 + - + 46 * + 32 + + + 63 + + 60 * + + 92 col0
----
4113

skipif mysql # not compatible
query I rowsort label-795
SELECT 96 / + + 43 + - + 46 * + 32 + + + 63 + + 60 * + + 92 col0
----
4113

query I rowsort
SELECT 8 * 40 AS col1
----
320

query I rowsort
SELECT ALL 95 + + + 61
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-798
SELECT ALL - - 35, COUNT( * ) + + 97 * + 3 AS col0
----
35
292

skipif mysql # not compatible
query II rowsort label-798
SELECT ALL - - 35, COUNT ( * ) + + 97 * + 3 AS col0
----
35
292

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT ALL - 68 + - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL - 68 + - COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-800
SELECT - 79 - + 25 * - 57, ( - - COUNT( * ) ) AS col1
----
1346
1

skipif mysql # not compatible
query II rowsort label-800
SELECT - 79 - + 25 * - 57, ( - - COUNT ( * ) ) AS col1
----
1346
1

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

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL NULLIF ( - COUNT ( * ), - 17 ) * - 45 * - + COUNT ( * )
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-802
SELECT CASE + ( + 55 ) WHEN - 71 THEN - 24 ELSE + CAST( NULL AS SIGNED ) * 27 / NULLIF ( - 7, 16 + + ( 15 ) - 7 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-802
SELECT CASE + ( + 55 ) WHEN - 71 THEN - 24 ELSE + CAST ( NULL AS INTEGER ) * 27 / NULLIF ( - 7, 16 + + ( 15 ) - 7 ) END
----
NULL

query II rowsort
SELECT + + 82, 37 + - 22 AS col0
----
82
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-804
SELECT ALL 75 + COALESCE ( + 15, + - 19 * + 50 DIV + CAST( NULL AS SIGNED ) * + 73 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL 75 + COALESCE ( + 15, + - 19 * + 50 / + CAST ( NULL AS INTEGER ) * + 73 ) AS col1
----
90

query II rowsort
SELECT DISTINCT - 56 AS col0, - ( - 66 )
----
-56
66

query I rowsort
SELECT + 0 * - + 57 + 40
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-807
SELECT DISTINCT - + 2 AS col1, MAX( + 44 )
----
-2
44

skipif mysql # not compatible
query II rowsort label-807
SELECT DISTINCT - + 2 AS col1, MAX ( + 44 )
----
-2
44

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT + COUNT( * ) * - 16 + + COUNT( * ) * - + 31
----
-47

skipif mysql # not compatible
query I rowsort label-808
SELECT + COUNT ( * ) * - 16 + + COUNT ( * ) * - + 31
----
-47

query I rowsort
SELECT + 42 - 45
----
-3

query I rowsort
SELECT 7 * - - 14 * 77 * + 49 - - - 61 * - ( + 80 ) - + 40
----
374594

onlyif mysql # DIV for integer division: 
query I rowsort label-811
SELECT ALL 20 DIV - 42 + - 33 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL 20 / - 42 + - 33 AS col0
----
-33

query I rowsort
SELECT ALL 25 - 55 col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT NULLIF ( + NULLIF ( 47, - COUNT( * ) * + - 66 + + COUNT( * ) ), 93 ) col0
----
47

skipif mysql # not compatible
query I rowsort label-813
SELECT NULLIF ( + NULLIF ( 47, - COUNT ( * ) * + - 66 + + COUNT ( * ) ), 93 ) col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT - 8 + - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-814
SELECT - 8 + - COUNT ( * )
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-815
SELECT ALL - 87, 4 DIV 8 * + - 41 col0
----
-87
0

skipif mysql # not compatible
query II rowsort label-815
SELECT ALL - 87, 4 / 8 * + - 41 col0
----
-87
0

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT 6 * COUNT( * ) + + + 65 - - SUM( DISTINCT - CASE 28 WHEN - + 92 THEN - + 35 WHEN + 30 THEN - 12 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-816
SELECT 6 * COUNT ( * ) + + + 65 - - SUM ( DISTINCT - CASE 28 WHEN - + 92 THEN - + 35 WHEN + 30 THEN - 12 END )
----
NULL

query I rowsort
SELECT ALL - 53 * + + 2 * - 2 AS col2
----
212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-818
SELECT + 49 + - 71 - - COUNT( * ) DIV 91 * NULLIF ( + 74, - + 74 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-818
SELECT + 49 + - 71 - - COUNT ( * ) / 91 * NULLIF ( + 74, - + 74 ) AS col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-819
SELECT - NULLIF ( - - 39, 37 + - 25 + - + CASE + MIN( DISTINCT + + 91 ) WHEN 40 / - 58 THEN NULL WHEN + - 97 THEN NULL WHEN 80 + - 77 THEN - 69 ELSE NULL END + + CASE 20 WHEN - 88 + CAST( NULL AS SIGNED ) THEN 2 * 76 ELSE - - 11 * + COUNT( * ) + - 95 END * 75 - + 42 ), 51 AS col1
----
-39
51

skipif mysql # not compatible
query II rowsort label-819
SELECT - NULLIF ( - - 39, 37 + - 25 + - + CASE + MIN ( DISTINCT + + 91 ) WHEN 40 / - 58 THEN NULL WHEN + - 97 THEN NULL WHEN 80 + - 77 THEN - 69 ELSE NULL END + + CASE 20 WHEN - 88 + CAST ( NULL AS INTEGER ) THEN 2 * 76 ELSE - - 11 * + COUNT ( * ) + - 95 END * 75 - + 42 ), 51 AS col1
----
-39
51

query I rowsort
SELECT - 13 * + ( + ( - 10 ) )
----
130

onlyif mysql # DIV for integer division: 
query II rowsort label-821
SELECT ALL - 63 * + 30, - 9 DIV + - 27 AS col2
----
-1890
0

skipif mysql # not compatible
query II rowsort label-821
SELECT ALL - 63 * + 30, - 9 / + - 27 AS col2
----
-1890
0

onlyif mysql # aggregate syntax: 
query II rowsort label-822
SELECT + COUNT( * ) + + CASE WHEN NOT - 74 NOT IN ( - 68, NULLIF ( + 46, - 99 + + 24 + + + COALESCE ( - 10, + ( - 74 ) ) + + 89 + - - 39 * + 57 * MAX( DISTINCT - - 32 ) ) ) THEN 30 ELSE NULL END AS col1, 24 * - 20 AS col1
----
NULL
-480

skipif mysql # not compatible
query II rowsort label-822
SELECT + COUNT ( * ) + + CASE WHEN NOT - 74 NOT IN ( - 68, NULLIF ( + 46, - 99 + + 24 + + + COALESCE ( - 10, + ( - 74 ) ) + + 89 + - - 39 * + 57 * MAX ( DISTINCT - - 32 ) ) ) THEN 30 ELSE NULL END AS col1, 24 * - 20 AS col1
----
NULL
-480

query I rowsort
SELECT - COALESCE ( + + 47, - + 75 + + 80 ) + - 12 - 21 + + 22
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-824
SELECT - 77 DIV - MAX( + + ( + 49 ) )
----
1

skipif mysql # not compatible
query I rowsort label-824
SELECT - 77 / - MAX ( + + ( + 49 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-825
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 35 + 88 * + + ( + - 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 35 + 88 * + + ( + - 38 )
----
NULL

query I rowsort
SELECT ALL + 64 + + ( + - 48 )
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-827
SELECT - ( 12 ) + 24 + + + 15 DIV + 86
----
12

skipif mysql # not compatible
query I rowsort label-827
SELECT - ( 12 ) + 24 + + + 15 / + 86
----
12

query I rowsort
SELECT ALL + 91 + - + 9 * + 47 AS col0
----
-332

onlyif mysql # aggregate syntax: 
query II rowsort label-829
SELECT - 35 + - 93 AS col2, + COUNT( * )
----
-128
1

skipif mysql # not compatible
query II rowsort label-829
SELECT - 35 + - 93 AS col2, + COUNT ( * )
----
-128
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-830
SELECT ALL + 1 DIV - 92, COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-830
SELECT ALL + 1 / - 92, COUNT ( * ) AS col0
----
0
1

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

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

query I rowsort
SELECT + 17 + + - 98 + 49 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-833
SELECT + 93 + + 99 col2, 61 * + COUNT( * ) col2
----
192
61

skipif mysql # not compatible
query II rowsort label-833
SELECT + 93 + + 99 col2, 61 * + COUNT ( * ) col2
----
192
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-834
SELECT DISTINCT 94 * - ( - + NULLIF ( 80, + ( + + 21 ) ) ) + - + 61 * + CAST( 40 AS SIGNED ) + + MAX( 40 ) AS col1
----
5120

skipif mysql # not compatible
query I rowsort label-834
SELECT DISTINCT 94 * - ( - + NULLIF ( 80, + ( + + 21 ) ) ) + - + 61 * + CAST ( 40 AS INTEGER ) + + MAX ( 40 ) AS col1
----
5120

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT DISTINCT 6 * ( + 41 ) + + 94 * - 6 + 69 * - COUNT( * )
----
-387

skipif mysql # not compatible
query I rowsort label-835
SELECT DISTINCT 6 * ( + 41 ) + + 94 * - 6 + 69 * - COUNT ( * )
----
-387

query I rowsort
SELECT - + 42 * + + 25 + - + 61
----
-1111

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT + COUNT( * ) * + 54 + - + 26 col2
----
28

skipif mysql # not compatible
query I rowsort label-837
SELECT + COUNT ( * ) * + 54 + - + 26 col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-838
SELECT - 35 DIV COUNT( * ) + + + 54
----
19

skipif mysql # not compatible
query I rowsort label-838
SELECT - 35 / COUNT ( * ) + + + 54
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-839
SELECT + 39 + + 11 DIV - 59 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-839
SELECT + 39 + + 11 / - 59 AS col0
----
39

query I rowsort
SELECT + 79 * + 3 col0
----
237

query I rowsort
SELECT + 47 * + - 53 + 52
----
-2439

query I rowsort
SELECT + - 19 + - 59
----
-78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT ALL + - MAX( DISTINCT - + 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL + - MAX ( DISTINCT - + 1 ) AS col0
----
1

query II rowsort
SELECT + 8 - + 7 - - ( - 41 ) * + + 56 + 60 AS col1, 41 * - - 27 AS col1
----
-2235
1107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-846
SELECT + ( MAX( - CAST( - 50 AS SIGNED ) ) ) col2
----
50

skipif mysql # not compatible
query I rowsort label-846
SELECT + ( MAX ( - CAST ( - 50 AS INTEGER ) ) ) col2
----
50

query I rowsort
SELECT + 25 * - + 69 * - 66
----
113850

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-848
SELECT + 1 * COALESCE ( - - 91, - 75 + + COUNT( * ), - 80 * 45 ) DIV 81, 57 + - 67 AS col1
----
1
-10

skipif mysql # not compatible
query II rowsort label-848
SELECT + 1 * COALESCE ( - - 91, - 75 + + COUNT ( * ), - 80 * 45 ) / 81, 57 + - 67 AS col1
----
1
-10

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

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

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

query II rowsort
SELECT ALL 79 AS col2, + 50 + - 30 AS col0
----
79
20

query I rowsort
SELECT ALL - 32 + + ( + 9 )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-853
SELECT + 71 * + - COUNT( ALL - 33 ), CASE + 28 WHEN + 7 * + 46 * 72 + + 5 + + 87 * + 49 - 82 + + + 8 * + CASE - CASE - 3 WHEN + MAX( 75 ) THEN NULL WHEN - 24 THEN - - 58 + + 19 * + + 49 END WHEN - + 2 THEN NULL ELSE - + 41 + CASE + - MAX( DISTINCT + 13 ) WHEN + 19 - - 42 / 46 * - COUNT( - - 67 ) / - MIN( ALL - 86 ) THEN + 68 WHEN + NULLIF ( + 41, + SUM( CAST( + 97 AS DECIMAL ) ) - - + CAST( 37 AS SIGNED ) * - ( COUNT( * ) ) - + 98 ) + - CASE - 75 WHEN COUNT( * ) + - - 18 / + - 89 THEN 31 * COUNT( * ) + - ( 74 ) END + + COUNT( * ) * + 17 THEN NULL END * - 63 END * 96 THEN - ( 13 ) * + 66 ELSE - 70 + + 66 END * 93 col0
----
-71
-372

skipif mysql # not compatible
query II rowsort label-853
SELECT + 71 * + - COUNT ( ALL - 33 ), CASE + 28 WHEN + 7 * + 46 * 72 + + 5 + + 87 * + 49 - 82 + + + 8 * + CASE - CASE - 3 WHEN + MAX ( 75 ) THEN NULL WHEN - 24 THEN - - 58 + + 19 * + + 49 END WHEN - + 2 THEN NULL ELSE - + 41 + CASE + - MAX ( DISTINCT + 13 ) WHEN + 19 - - 42 / 46 * - COUNT ( - - 67 ) / - MIN ( ALL - 86 ) THEN + 68 WHEN + NULLIF ( + 41, + SUM ( CAST ( + 97 AS REAL ) ) - - + CAST ( 37 AS INTEGER ) * - ( COUNT ( * ) ) - + 98 ) + - CASE - 75 WHEN COUNT ( * ) + - - 18 / + - 89 THEN 31 * COUNT ( * ) + - ( 74 ) END + + COUNT ( * ) * + 17 THEN NULL END * - 63 END * 96 THEN - ( 13 ) * + 66 ELSE - 70 + + 66 END * 93 col0
----
-71
-372

query I rowsort
SELECT ALL 77 + 37 * - + 69
----
-2476

query I rowsort
SELECT DISTINCT 94 + + 92
----
186

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-857
SELECT - COALESCE ( - 19, + ( - 43 ) * + 76 + - 10 - - COUNT( * ) * - - CAST( NULL AS SIGNED ) * 74 ) * - - 24 AS col1
----
456

skipif mysql # not compatible
query I rowsort label-857
SELECT - COALESCE ( - 19, + ( - 43 ) * + 76 + - 10 - - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * 74 ) * - - 24 AS col1
----
456

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT DISTINCT - 15 + - + NULLIF ( - 64, + - COUNT( * ) - - 18 / + - 31 )
----
49

skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT - 15 + - + NULLIF ( - 64, + - COUNT ( * ) - - 18 / + - 31 )
----
49

query I rowsort
SELECT ALL - 60 + + 47 + - 45 + + 50
----
-8

query I rowsort
SELECT - 93 * 19 AS col1
----
-1767

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-861
SELECT + COALESCE ( - + 4, + + COALESCE ( - 76, + - COUNT( ALL + 17 ) * + + 61 ) * + COALESCE ( COUNT( * ), - + COUNT( * ) DIV + 93 * + 23 + - - 27 + - COALESCE ( + + COUNT( * ), 40 ) DIV + - COUNT( * ) ), + - 11 ) - - SUM( + 81 ) - - + 42
----
119

skipif mysql # not compatible
query I rowsort label-861
SELECT + COALESCE ( - + 4, + + COALESCE ( - 76, + - COUNT ( ALL + 17 ) * + + 61 ) * + COALESCE ( COUNT ( * ), - + COUNT ( * ) / + 93 * + 23 + - - 27 + - COALESCE ( + + COUNT ( * ), 40 ) / + - COUNT ( * ) ), + - 11 ) - - SUM ( + 81 ) - - + 42
----
119

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

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

skipif mysql # not compatible
query II rowsort label-863
SELECT ALL COUNT ( * ), 3 AS col1
----
1
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-864
SELECT ALL CAST( COALESCE ( + ( - 15 ), 1 * - NULLIF ( ( + 79 ) * 21, COUNT( * ) / - 25 ), COUNT( DISTINCT 99 ) + + 50 * - 95 ) AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL CAST ( COALESCE ( + ( - 15 ), 1 * - NULLIF ( ( + 79 ) * 21, COUNT ( * ) / - 25 ), COUNT ( DISTINCT 99 ) + + 50 * - 95 ) AS INTEGER )
----
-15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-865
SELECT - 57 DIV CAST( 28 AS SIGNED ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-865
SELECT - 57 / CAST ( 28 AS INTEGER ) col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-866
SELECT DISTINCT NULLIF ( COUNT( * ), CAST( NULL AS SIGNED ) * 74 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-866
SELECT DISTINCT NULLIF ( COUNT ( * ), CAST ( NULL AS INTEGER ) * 74 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT ALL + CASE 17 WHEN 1 + - ( + 9 ) THEN - 81 * + ( - 90 * SUM( + 33 ) ) WHEN + 64 * - 71 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL + CASE 17 WHEN 1 + - ( + 9 ) THEN - 81 * + ( - 90 * SUM ( + 33 ) ) WHEN + 64 * - 71 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 21 * 80 + + 99 AS col0
----
1779

onlyif mysql # DIV for integer division: 
query I rowsort label-869
SELECT - 27 DIV - 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-869
SELECT - 27 / - 97 AS col2
----
0

query I rowsort
SELECT - 39 * 98
----
-3822

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

skipif mysql # not compatible
query I rowsort label-871
SELECT 71 / 41 + + ( - COUNT ( * ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT - 74 + COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-872
SELECT - 74 + COUNT ( * )
----
-73

query I rowsort
SELECT ALL + 26 * + 3
----
78

query I rowsort
SELECT DISTINCT + 53 * ( + 74 )
----
3922

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT - MIN( DISTINCT 96 ) * - 28 + 39 * + 37
----
4131

skipif mysql # not compatible
query I rowsort label-875
SELECT - MIN ( DISTINCT 96 ) * - 28 + 39 * + 37
----
4131

query I rowsort
SELECT DISTINCT - 81 * + 1 col2
----
-81

query I rowsort
SELECT 23 + 43 AS col0
----
66

query I rowsort
SELECT 58 * 30 AS col0
----
1740

query I rowsort
SELECT 29 * 52
----
1508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-880
SELECT 72 * CASE + 25 WHEN - 19 * + CAST( NULL AS SIGNED ) - 62 THEN - CAST( 75 AS DECIMAL ) * MAX( - 98 + 18 ) WHEN - 67 THEN - 20 END + 43 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-880
SELECT 72 * CASE + 25 WHEN - 19 * + CAST ( NULL AS INTEGER ) - 62 THEN - CAST ( 75 AS REAL ) * MAX ( - 98 + 18 ) WHEN - 67 THEN - 20 END + 43 * COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-881
SELECT DISTINCT 37 + 50 DIV + 55 col1
----
37

skipif mysql # not compatible
query I rowsort label-881
SELECT DISTINCT 37 + 50 / + 55 col1
----
37

query I rowsort
SELECT 48 * ( - 86 )
----
-4128

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT CASE 18 WHEN - 98 THEN 52 WHEN + 64 THEN NULL END * - ( COUNT( * ) * 68 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-883
SELECT CASE 18 WHEN - 98 THEN 52 WHEN + 64 THEN NULL END * - ( COUNT ( * ) * 68 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 31 * 57
----
1767

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT ALL 89 + 36 * + COUNT( * )
----
125

skipif mysql # not compatible
query I rowsort label-885
SELECT ALL 89 + 36 * + COUNT ( * )
----
125

query I rowsort
SELECT DISTINCT - 91 + + 21 AS col1
----
-70

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

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

query I rowsort
SELECT DISTINCT 95 * 36 AS col1
----
3420

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT MAX( DISTINCT 18 ) + + 37
----
55

skipif mysql # not compatible
query I rowsort label-889
SELECT MAX ( DISTINCT 18 ) + + 37
----
55

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

skipif mysql # not compatible
query I rowsort label-890
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * + ( - 10 )
----
-10

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

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

query I rowsort
SELECT ALL 23 + + 44
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT COUNT( ALL 63 ) + 21
----
22

skipif mysql # not compatible
query I rowsort label-893
SELECT COUNT ( ALL 63 ) + 21
----
22

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

query I rowsort
SELECT 8 + 45 AS col0
----
53

query I rowsort
SELECT 3 + 63 * - 87
----
-5478

query I rowsort
SELECT - 98 * + 59 col2
----
-5782

query I rowsort
SELECT DISTINCT 46 * - 96
----
-4416

query I rowsort
SELECT NULLIF ( + 83, - 15 ) * + 30 AS col0
----
2490

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-903
SELECT - AVG ( DISTINCT 67 ) / ( - CAST( NULL AS SIGNED ) - 58 ) + - COALESCE ( CAST( + SUM( DISTINCT 42 ) AS SIGNED ), 26 * + ( - 37 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-903
SELECT - AVG ( DISTINCT 67 ) / ( - CAST ( NULL AS INTEGER ) - 58 ) + - COALESCE ( CAST ( + SUM ( DISTINCT 42 ) AS INTEGER ), 26 * + ( - 37 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT - MIN( ALL - 22 ) * - 15 AS col2
----
-330

skipif mysql # not compatible
query I rowsort label-904
SELECT - MIN ( ALL - 22 ) * - 15 AS col2
----
-330

onlyif mysql # DIV for integer division: 
query I rowsort label-905
SELECT 51 + + 43 DIV - 57 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-905
SELECT 51 + + 43 / - 57 AS col1
----
51

query I rowsort
SELECT - CASE 99 WHEN - ( + 95 ) + + 1 * 13 THEN + 49 END * 88 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-907
SELECT DISTINCT - 80 DIV - COALESCE ( ( 7 ) * COALESCE ( 12, + 68 ) + - 17, 55 + 86, + 87 DIV ( + 72 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-907
SELECT DISTINCT - 80 / - COALESCE ( ( 7 ) * COALESCE ( 12, + 68 ) + - 17, 55 + 86, + 87 / ( + 72 ) ) AS col1
----
1

query I rowsort
SELECT + ( 89 ) * - 90
----
-8010

query I rowsort
SELECT NULLIF ( + 32, 55 ) + - 38 * 23 AS col2
----
-842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-910
SELECT ALL - + COALESCE ( COUNT( * ), - CASE SUM( - 12 ) WHEN CASE + 17 WHEN 11 + + ( + 54 ) / 32 THEN + 74 - - MAX( 69 ) WHEN 20 * + 33 THEN CAST( COALESCE ( - COUNT( * ), COALESCE ( + 72, - 84 - COUNT( 41 ) ) - + 14 ) AS SIGNED ) * - 56 WHEN + 31 THEN - 19 ELSE NULL END THEN 10 * 17 END ) * 99 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL - + COALESCE ( COUNT ( * ), - CASE SUM ( - 12 ) WHEN CASE + 17 WHEN 11 + + ( + 54 ) / 32 THEN + 74 - - MAX ( 69 ) WHEN 20 * + 33 THEN CAST ( COALESCE ( - COUNT ( * ), COALESCE ( + 72, - 84 - COUNT ( 41 ) ) - + 14 ) AS INTEGER ) * - 56 WHEN + 31 THEN - 19 ELSE NULL END THEN 10 * 17 END ) * 99 AS col1
----
-99

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

skipif mysql # not compatible
query I rowsort label-911
SELECT 51 / COUNT ( * )
----
51

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

skipif mysql # not compatible
query I rowsort label-912
SELECT DISTINCT 25 + + + COUNT ( * ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT ALL + 32 + COUNT( * ) col1
----
33

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL + 32 + COUNT ( * ) col1
----
33

query I rowsort
SELECT DISTINCT + 59 + - 90
----
-31

query I rowsort
SELECT ALL - 4 * 95 * - NULLIF ( 66, + 16 ) AS col0
----
25080

query I rowsort
SELECT 77 * 81
----
6237

query I rowsort
SELECT ALL + 32 + - 89 - ( - 99 ) * - 49
----
-4908

query I rowsort
SELECT 54 * + + 49 * 92 AS col0
----
243432

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-920
SELECT 67 - COUNT( * ) + - 76 DIV + 35
----
64

skipif mysql # not compatible
query I rowsort label-920
SELECT 67 - COUNT ( * ) + - 76 / + 35
----
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT DISTINCT COUNT( * ) - + - 11
----
12

skipif mysql # not compatible
query I rowsort label-922
SELECT DISTINCT COUNT ( * ) - + - 11
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT ALL MAX( - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL MAX ( - 38 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT ALL COUNT( ALL - 82 ) - 0
----
1

skipif mysql # not compatible
query I rowsort label-924
SELECT ALL COUNT ( ALL - 82 ) - 0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT DISTINCT MIN( ALL 48 ) col1
----
48

skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT MIN ( ALL 48 ) col1
----
48

query I rowsort
SELECT ALL - 70 * + 54 AS col2
----
-3780

query I rowsort
SELECT DISTINCT + NULLIF ( + 34, + ( 6 ) ) - + 17 AS col2
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-928
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), 43 * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-928
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), 43 * COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-929
SELECT DISTINCT - + 95 * + CAST( 76 AS SIGNED )
----
-7220

skipif mysql # not compatible
query I rowsort label-929
SELECT DISTINCT - + 95 * + CAST ( 76 AS INTEGER )
----
-7220

query I rowsort
SELECT ALL + + 32 * 78 AS col0
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT DISTINCT NULLIF ( + - SUM( 27 ), 11 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-931
SELECT DISTINCT NULLIF ( + - SUM ( 27 ), 11 ) AS col2
----
-27

query I rowsort
SELECT DISTINCT + 76 + - - 26
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-933
SELECT ALL - COALESCE ( - 22, - SUM( DISTINCT + 34 ) * NULLIF ( 34, CAST( - 52 AS SIGNED ) ) + 23 * + 77 )
----
22

skipif mysql # not compatible
query I rowsort label-933
SELECT ALL - COALESCE ( - 22, - SUM ( DISTINCT + 34 ) * NULLIF ( 34, CAST ( - 52 AS INTEGER ) ) + 23 * + 77 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT + + COUNT( * ) * - 62 + - 53 AS col2
----
-115

skipif mysql # not compatible
query I rowsort label-934
SELECT + + COUNT ( * ) * - 62 + - 53 AS col2
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT DISTINCT - COUNT( * ) + - 19
----
-20

skipif mysql # not compatible
query I rowsort label-935
SELECT DISTINCT - COUNT ( * ) + - 19
----
-20

query I rowsort
SELECT + - 37 + + 85 + - 38
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-937
SELECT - 74 DIV + 95 + COALESCE ( + CASE + 55 WHEN 95 * + CASE - CAST( - 73 AS SIGNED ) WHEN NULLIF ( + 12, 36 ) THEN 38 * 77 + 89 * MAX( ALL ( 39 ) * 40 ) WHEN - 51 + - SUM( DISTINCT + 15 ) THEN NULL ELSE NULL END THEN 2 END, 32 * + 14 ) AS col2
----
448

skipif mysql # not compatible
query I rowsort label-937
SELECT - 74 / + 95 + COALESCE ( + CASE + 55 WHEN 95 * + CASE - CAST ( - 73 AS INTEGER ) WHEN NULLIF ( + 12, 36 ) THEN 38 * 77 + 89 * MAX ( ALL ( 39 ) * 40 ) WHEN - 51 + - SUM ( DISTINCT + 15 ) THEN NULL ELSE NULL END THEN 2 END, 32 * + 14 ) AS col2
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT + + SUM( DISTINCT + + 7 ) - - COUNT( * ) * + 87
----
94

skipif mysql # not compatible
query I rowsort label-938
SELECT + + SUM ( DISTINCT + + 7 ) - - COUNT ( * ) * + 87
----
94

query I rowsort
SELECT + - 87 + - 24 AS col1
----
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-940
SELECT DISTINCT + 35 * - 72 * + ( 82 DIV + 92 ) + - 19
----
-19

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT + 35 * - 72 * + ( 82 / + 92 ) + - 19
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-941
SELECT DISTINCT - 20 * 15 DIV - 93 + 30 * 44
----
1323

skipif mysql # not compatible
query I rowsort label-941
SELECT DISTINCT - 20 * 15 / - 93 + 30 * 44
----
1323

query I rowsort
SELECT ALL 31 * + ( 69 ) AS col2
----
2139

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT ALL 94 * + 13 + COUNT( * )
----
1223

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL 94 * + 13 + COUNT ( * )
----
1223

onlyif mysql # DIV for integer division: 
query I rowsort label-944
SELECT + + 35 * + 16 DIV - NULLIF ( - COALESCE ( 32, - 33 DIV 2 ) * + 40, 77 ) + + 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-944
SELECT + + 35 * + 16 / - NULLIF ( - COALESCE ( 32, - 33 / 2 ) * + 40, 77 ) + + 16 AS col2
----
16

query II rowsort
SELECT ALL + 48, 50 AS col2
----
48
50

query I rowsort
SELECT ALL 54 * - ( - 33 ) + ( - 43 ) AS col0
----
1739

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

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

query I rowsort
SELECT COALESCE ( - 16, 75 )
----
-16

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

query I rowsort
SELECT + ( - + NULLIF ( - 23, + 84 ) ) AS col2
----
23

query I rowsort
SELECT DISTINCT - 56 * - 34 AS col2
----
1904

onlyif mysql # DIV for integer division: 
query I rowsort label-952
SELECT DISTINCT 53 DIV + 36 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT 53 / + 36 AS col0
----
1

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

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

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

skipif mysql # not compatible
query II rowsort label-954
SELECT COUNT ( * ), - COALESCE ( + COUNT ( * ), 69 / - 2 ) AS col0
----
1
-1

query I rowsort
SELECT - 41 + 39
----
-2

query I rowsort
SELECT DISTINCT - 56 * 66 * - - 31 AS col2
----
-114576

query I rowsort
SELECT ALL + COALESCE ( - 24, + 74, 71, - 10 - - 58, - 94 )
----
-24

query I rowsort
SELECT ALL ( + - ( - - NULLIF ( + 53, 20 * - ( + 37 ) ) ) )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-959
SELECT ALL CASE AVG ( ALL - - 61 ) WHEN + COALESCE ( - CAST( NULL AS SIGNED ), CASE + 4 WHEN 31 * - 56 THEN NULL WHEN 29 THEN MIN( 91 ) - 42 ELSE NULL END * 46 ) THEN NULL ELSE - 84 * - CAST( + 39 AS SIGNED ) END AS col1
----
3276

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL CASE AVG ( ALL - - 61 ) WHEN + COALESCE ( - CAST ( NULL AS INTEGER ), CASE + 4 WHEN 31 * - 56 THEN NULL WHEN 29 THEN MIN ( 91 ) - 42 ELSE NULL END * 46 ) THEN NULL ELSE - 84 * - CAST ( + 39 AS INTEGER ) END AS col1
----
3276

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-960
SELECT + 97 * COALESCE ( + - NULLIF ( 50, 97 ), 77 DIV ( - 19 ), + CASE - 86 WHEN - ( - 79 ) + 10 * + 82 THEN + 9 END ) * - 89 + + CAST( + NULLIF ( 23, - 32 ) AS SIGNED ) AS col1
----
431673

skipif mysql # not compatible
query I rowsort label-960
SELECT + 97 * COALESCE ( + - NULLIF ( 50, 97 ), 77 / ( - 19 ), + CASE - 86 WHEN - ( - 79 ) + 10 * + 82 THEN + 9 END ) * - 89 + + CAST ( + NULLIF ( 23, - 32 ) AS INTEGER ) AS col1
----
431673

query I rowsort
SELECT - 52 - - 71 AS col1
----
19

query I rowsort
SELECT DISTINCT CASE 45 WHEN + AVG ( 20 ) THEN NULL ELSE - 23 END
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT 2 * - MAX( DISTINCT + 1 ) - COUNT( DISTINCT 57 )
----
-3

skipif mysql # not compatible
query I rowsort label-963
SELECT 2 * - MAX ( DISTINCT + 1 ) - COUNT ( DISTINCT 57 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT ALL COALESCE ( - 5, - - CASE - 21 WHEN - 58 / + 25 THEN ( - 17 ) WHEN + COUNT( * ) THEN NULL WHEN 94 THEN 90 ELSE NULL END, 10 * 12 + 69 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-964
SELECT ALL COALESCE ( - 5, - - CASE - 21 WHEN - 58 / + 25 THEN ( - 17 ) WHEN + COUNT ( * ) THEN NULL WHEN 94 THEN 90 ELSE NULL END, 10 * 12 + 69 ) AS col2
----
-5

query I rowsort
SELECT - 99 + - 75 AS col2
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT - NULLIF ( - 58, 91 * 52 ) * COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-966
SELECT - NULLIF ( - 58, 91 * 52 ) * COUNT ( * )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-967
SELECT DISTINCT 7, - MIN( ALL - - 68 ) DIV - MIN( DISTINCT + 80 ) - 61 AS col2
----
7
-61

skipif mysql # not compatible
query II rowsort label-967
SELECT DISTINCT 7, - MIN ( ALL - - 68 ) / - MIN ( DISTINCT + 80 ) - 61 AS col2
----
7
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-968
SELECT ALL - 55 AS col0, 0 + + 40 + COUNT( * ) * 5
----
-55
45

skipif mysql # not compatible
query II rowsort label-968
SELECT ALL - 55 AS col0, 0 + + 40 + COUNT ( * ) * 5
----
-55
45

query I rowsort
SELECT - + 27 + 13
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-970
SELECT ALL + CAST( NULL AS SIGNED ) col2, - 56 * + 73 + 55 AS col1
----
NULL
-4033

skipif mysql # not compatible
query II rowsort label-970
SELECT ALL + CAST ( NULL AS INTEGER ) col2, - 56 * + 73 + 55 AS col1
----
NULL
-4033

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

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT ALL COUNT( DISTINCT + + 35 )
----
1

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL COUNT ( DISTINCT + + 35 )
----
1

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

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

query I rowsort
SELECT - 9 * - 93
----
837

query I rowsort
SELECT + 79 + 9 + - 87
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT DISTINCT + CASE WHEN SUM( + 0 ) NOT IN ( COALESCE ( 11, + 62 ) ) THEN ( 69 ) * 22 END + + 91 AS col0
----
1609

skipif mysql # not compatible
query I rowsort label-976
SELECT DISTINCT + CASE WHEN SUM ( + 0 ) NOT IN ( COALESCE ( 11, + 62 ) ) THEN ( 69 ) * 22 END + + 91 AS col0
----
1609

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-978
SELECT ALL MAX( + CAST( - 21 AS SIGNED ) ) + 3
----
-18

skipif mysql # not compatible
query I rowsort label-978
SELECT ALL MAX ( + CAST ( - 21 AS INTEGER ) ) + 3
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT + + COUNT( * ) * + COUNT( DISTINCT + 22 ) * - COUNT( + 32 ) + 50 col1
----
49

skipif mysql # not compatible
query I rowsort label-979
SELECT + + COUNT ( * ) * + COUNT ( DISTINCT + 22 ) * - COUNT ( + 32 ) + 50 col1
----
49

query I rowsort
SELECT ALL - NULLIF ( - 80, 13 * - 60 ) AS col2
----
80

query II rowsort
SELECT ALL 98 AS col1, + 68
----
98
68

query I rowsort
SELECT + NULLIF ( + 83, + - ( 68 ) ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT DISTINCT + - COALESCE ( - 85, 99 * - MAX( ALL ( + 77 ) + 98 ) )
----
85

skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT + - COALESCE ( - 85, 99 * - MAX ( ALL ( + 77 ) + 98 ) )
----
85

query I rowsort
SELECT + NULLIF ( - 17, - - 18 * 26 + - 73 ) * + 25 AS col1
----
-425

onlyif mysql # aggregate syntax: 
query II rowsort label-985
SELECT + ( + 5 ) AS col0, + 41 + + COUNT( * ) + - 0 AS col0
----
5
42

skipif mysql # not compatible
query II rowsort label-985
SELECT + ( + 5 ) AS col0, + 41 + + COUNT ( * ) + - 0 AS col0
----
5
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-986
SELECT 78 / - 19 * + - CAST( NULL AS SIGNED ) * CASE ( - MIN( ALL 13 ) ) WHEN + CASE 81 WHEN + 68 * + 2 THEN 32 + 14 END + 1 THEN + 65 ELSE 45 * 94 END - 17 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-986
SELECT 78 / - 19 * + - CAST ( NULL AS INTEGER ) * CASE ( - MIN ( ALL 13 ) ) WHEN + CASE 81 WHEN + 68 * + 2 THEN 32 + 14 END + 1 THEN + 65 ELSE 45 * 94 END - 17 * CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-987
SELECT 69 / 38 + COUNT ( * )
----
2

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-990
SELECT + CAST( 61 AS SIGNED ) col0, 34 * MAX( DISTINCT 63 )
----
61
2142

skipif mysql # not compatible
query II rowsort label-990
SELECT + CAST ( 61 AS INTEGER ) col0, 34 * MAX ( DISTINCT 63 )
----
61
2142

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT - 77 * NULLIF ( - + 36, + - NULLIF ( - 9, + COUNT( * ) ) - + 56 * + COUNT( * ) )
----
2772

skipif mysql # not compatible
query I rowsort label-991
SELECT - 77 * NULLIF ( - + 36, + - NULLIF ( - 9, + COUNT ( * ) ) - + 56 * + COUNT ( * ) )
----
2772

onlyif mysql # DIV for integer division: 
query I rowsort label-992
SELECT ALL + 17 DIV 65 - - 5 * 80 AS col1
----
400

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL + 17 / 65 - - 5 * 80 AS col1
----
400

query I rowsort
SELECT DISTINCT 30 * - 17 * - 28 * + 18 AS col2
----
257040

onlyif mysql # DIV for integer division: 
query I rowsort label-994
SELECT + 41 DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-994
SELECT + 41 / + 53
----
0

query II rowsort
SELECT ( + + 72 ) AS col1, - ( 37 )
----
72
-37

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

skipif mysql # not compatible
query I rowsort label-996
SELECT ( SUM ( DISTINCT - 44 ) )
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-997
SELECT DISTINCT + MIN( ALL 61 ), - ( - 66 ) AS col1
----
61
66

skipif mysql # not compatible
query II rowsort label-997
SELECT DISTINCT + MIN ( ALL 61 ), - ( - 66 ) AS col1
----
61
66

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT + NULLIF ( + - COUNT( * ), 80 + - COUNT( * ) ) * MAX( ALL 97 + 68 )
----
-165

skipif mysql # not compatible
query I rowsort label-998
SELECT + NULLIF ( + - COUNT ( * ), 80 + - COUNT ( * ) ) * MAX ( ALL 97 + 68 )
----
-165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-999
SELECT - 29 + + NULLIF ( + 62, - - CASE COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN 87 + CAST( 15 AS DECIMAL ) WHEN 89 THEN 63 END ) col2
----
33

skipif mysql # not compatible
query I rowsort label-999
SELECT - 29 + + NULLIF ( + 62, - - CASE COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN 87 + CAST ( 15 AS REAL ) WHEN 89 THEN 63 END ) col2
----
33

query I rowsort
SELECT ALL + 21 * - 90 + 0 * + - 43 * + 54 AS col2
----
-1890

query II rowsort
SELECT ( + - 65 ), 35 * + 27 AS col0
----
-65
945

onlyif mysql # DIV for integer division: 
query II rowsort label-1002
SELECT DISTINCT + 25 DIV - 61 AS col2, 13 + 77 - - 7
----
0
97

skipif mysql # not compatible
query II rowsort label-1002
SELECT DISTINCT + 25 / - 61 AS col2, 13 + 77 - - 7
----
0
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT DISTINCT - - 97 * - 92 + + ( COALESCE ( COUNT( * ), 76 * + 53 ) ) + 17
----
-8906

skipif mysql # not compatible
query I rowsort label-1003
SELECT DISTINCT - - 97 * - 92 + + ( COALESCE ( COUNT ( * ), 76 * + 53 ) ) + 17
----
-8906

query I rowsort
SELECT DISTINCT - COALESCE ( - - 10, 64 + - - 36, 9 ) * + 83
----
-830

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1005
SELECT ( 30 ) DIV - - CAST( - 73 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1005
SELECT ( 30 ) / - - CAST ( - 73 AS INTEGER ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1006
SELECT ALL + - CAST( + 18 AS SIGNED ) + - COUNT( * ) + + 45
----
26

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL + - CAST ( + 18 AS INTEGER ) + - COUNT ( * ) + + 45
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1007
SELECT + 41 * 66 * CASE - 6 WHEN 3 + 0 THEN + CAST( CASE - 79 WHEN + 70 THEN 45 + CASE + AVG ( NULLIF ( + 22, + NULLIF ( 39, + 36 * 99 ) / + 21 ) ) WHEN - 21 * + 3 - 10 THEN + COALESCE ( 99, - ( - 45 ), - 71 * 50 + 70 ) WHEN + 92 THEN NULL WHEN + MAX( DISTINCT - 11 ) THEN 85 END / 94 ELSE NULL END AS SIGNED ) + - 20 END + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1007
SELECT + 41 * 66 * CASE - 6 WHEN 3 + 0 THEN + CAST ( CASE - 79 WHEN + 70 THEN 45 + CASE + AVG ( NULLIF ( + 22, + NULLIF ( 39, + 36 * 99 ) / + 21 ) ) WHEN - 21 * + 3 - 10 THEN + COALESCE ( 99, - ( - 45 ), - 71 * 50 + 70 ) WHEN + 92 THEN NULL WHEN + MAX ( DISTINCT - 11 ) THEN 85 END / 94 ELSE NULL END AS INTEGER ) + - 20 END + 71 AS col1
----
NULL

query I rowsort
SELECT 26 * - 21 + - 35 col2
----
-581

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT - CASE + 61 WHEN + - 97 THEN - + CASE COALESCE ( COUNT( * ), 4 ) WHEN - 75 THEN 64 ELSE + 86 * - 29 - AVG ( - 85 ) END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1009
SELECT - CASE + 61 WHEN + - 97 THEN - + CASE COALESCE ( COUNT ( * ), 4 ) WHEN - 75 THEN 64 ELSE + 86 * - 29 - AVG ( - 85 ) END END AS col1
----
NULL

query I rowsort
SELECT ALL + 60 + - 13
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT DISTINCT + - 60 + CASE 66 WHEN + + ( - 86 ) THEN NULL WHEN + 42 + 5 THEN NULL ELSE - 13 + 55 * - 72 END + + COUNT( * ) * + CASE - 22 WHEN AVG ( DISTINCT - ( - 45 ) ) * 26 + 82 * + COUNT( * ) THEN + 8 * - 4 + COUNT( * ) WHEN - 68 * MIN( 62 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT + - 60 + CASE 66 WHEN + + ( - 86 ) THEN NULL WHEN + 42 + 5 THEN NULL ELSE - 13 + 55 * - 72 END + + COUNT ( * ) * + CASE - 22 WHEN AVG ( DISTINCT - ( - 45 ) ) * 26 + 82 * + COUNT ( * ) THEN + 8 * - 4 + COUNT ( * ) WHEN - 68 * MIN ( 62 ) THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1012
SELECT DISTINCT + - 48 DIV 44 col0
----
-1

skipif mysql # not compatible
query I rowsort label-1012
SELECT DISTINCT + - 48 / 44 col0
----
-1

query I rowsort
SELECT 85 + 4 - + - 29 AS col0
----
118

query I rowsort
SELECT 29 * - 89 * + - 38 AS col2
----
98078

query I rowsort
SELECT ALL + 73 * + 49
----
3577

query I rowsort
SELECT 46 * + 18 * 90 * - + ( - NULLIF ( - 83, + 78 ) ) - 21 AS col2
----
-6185181

query II rowsort
SELECT + 16 AS col1, + 65
----
16
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1018
SELECT 9 + + - CAST( + MIN( ALL + 56 ) AS SIGNED ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-1018
SELECT 9 + + - CAST ( + MIN ( ALL + 56 ) AS INTEGER ) AS col0
----
-47

query I rowsort
SELECT 83 * - - 24 AS col0
----
1992

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

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

query I rowsort
SELECT 92 * - - 28
----
2576

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT ALL - 10 * + SUM( DISTINCT + + 29 ) col0
----
-290

skipif mysql # not compatible
query I rowsort label-1022
SELECT ALL - 10 * + SUM ( DISTINCT + + 29 ) col0
----
-290

query I rowsort
SELECT DISTINCT - ( + 41 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT - MAX( ( 42 ) ) * - 0 + + 88
----
88

skipif mysql # not compatible
query I rowsort label-1024
SELECT - MAX ( ( 42 ) ) * - 0 + + 88
----
88

query I rowsort
SELECT ALL ( + 79 ) / CASE + + CASE 2 WHEN + 92 THEN - 95 + + 59 WHEN 30 THEN - 9 END WHEN - 22 THEN NULL WHEN 81 + - 16 THEN 59 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT COALESCE ( - 67, + - 45 * - - 43 * + COUNT( * ) * - 82, - 68, 96 * - 48 + + ( + 38 + - 30 ) * 64 ) * 71 AS col2
----
-4757

skipif mysql # not compatible
query I rowsort label-1026
SELECT COALESCE ( - 67, + - 45 * - - 43 * + COUNT ( * ) * - 82, - 68, 96 * - 48 + + ( + 38 + - 30 ) * 64 ) * 71 AS col2
----
-4757

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1029
SELECT 47 AS col2, 69 DIV + - 87 AS col0
----
47
0

skipif mysql # not compatible
query II rowsort label-1029
SELECT 47 AS col2, 69 / + - 87 AS col0
----
47
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT 8 * - + 81 * - + SUM( - 12 ) col0
----
-7776

skipif mysql # not compatible
query I rowsort label-1030
SELECT 8 * - + 81 * - + SUM ( - 12 ) col0
----
-7776

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT NULLIF ( + COUNT( - + ( 42 ) ), - NULLIF ( 7, 62 * 87 ) ) * + 99 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-1031
SELECT NULLIF ( + COUNT ( - + ( 42 ) ), - NULLIF ( 7, 62 * 87 ) ) * + 99 AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1032
SELECT ALL COUNT( * ) + CAST( NULL AS DECIMAL ) * 58 * 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL COUNT ( * ) + CAST ( NULL AS REAL ) * 58 * 59 AS col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( 65, + + 17 ) + + 73 + - 4
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1034
SELECT 39 * + 49 * + + ( COALESCE ( 95, + AVG ( ALL 52 ) ) ) / + 41 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1034
SELECT 39 * + 49 * + + ( COALESCE ( 95, + AVG ( ALL 52 ) ) ) / + 41 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT ALL MIN( DISTINCT + 74 ) * + - NULLIF ( + 75, 42 + COUNT( * ) ) * + 88 - 89 AS col0
----
-488489

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL MIN ( DISTINCT + 74 ) * + - NULLIF ( + 75, 42 + COUNT ( * ) ) * + 88 - 89 AS col0
----
-488489

query I rowsort
SELECT ALL CASE + 34 WHEN 21 THEN NULL WHEN 87 * + 4 + + ( - 84 ) THEN 67 + 84 ELSE NULL END + + 35 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT DISTINCT + COALESCE ( - 14, - + ( - 27 ) * - COUNT( * ) * + 64, - ( 51 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT + COALESCE ( - 14, - + ( - 27 ) * - COUNT ( * ) * + 64, - ( 51 ) )
----
-14

query I rowsort
SELECT + ( - 63 ) + + 75 * + 27 + + 10 - + COALESCE ( - 30 + - 1, 83 ) * 88
----
4700

query I rowsort
SELECT 3 - + 52
----
-49

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

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

query I rowsort
SELECT - 46 * ( - 22 ) - + - 52 col1
----
1064

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT ( MAX( + 68 ) ) + + 42 AS col2
----
110

skipif mysql # not compatible
query I rowsort label-1042
SELECT ( MAX ( + 68 ) ) + + 42 AS col2
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-1043
SELECT 95 DIV + 37 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1043
SELECT 95 / + 37 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1044
SELECT ALL - 64 + 53 + - + CAST( - + 67 AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL - 64 + 53 + - + CAST ( - + 67 AS INTEGER )
----
56

query I rowsort
SELECT 82 * 27 col1
----
2214

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT ALL - COALESCE ( + MIN( ALL - 95 ), + 95 * + 51 )
----
95

skipif mysql # not compatible
query I rowsort label-1046
SELECT ALL - COALESCE ( + MIN ( ALL - 95 ), + 95 * + 51 )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-1047
SELECT DISTINCT 27, COUNT( * ) * - - COUNT( DISTINCT 10 ) * 50 * ( + ( + 68 ) ) AS col2
----
27
3400

skipif mysql # not compatible
query II rowsort label-1047
SELECT DISTINCT 27, COUNT ( * ) * - - COUNT ( DISTINCT 10 ) * 50 * ( + ( + 68 ) ) AS col2
----
27
3400

query I rowsort
SELECT ALL 97 - 61 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT ALL - + MAX( + 81 ) * + 3
----
-243

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL - + MAX ( + 81 ) * + 3
----
-243

query I rowsort
SELECT - 41 + - - 18
----
-23

query I rowsort
SELECT DISTINCT - 70 * 85
----
-5950

query I rowsort
SELECT DISTINCT - 12 * + 28
----
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT + ( - - COUNT( * ) ) / - CASE - + 66 WHEN - + COUNT( * ) * + 13 THEN NULL WHEN 94 / 90 + - 14 THEN 58 * 94 + 55 * - 50 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1053
SELECT + ( - - COUNT ( * ) ) / - CASE - + 66 WHEN - + COUNT ( * ) * + 13 THEN NULL WHEN 94 / 90 + - 14 THEN 58 * 94 + 55 * - 50 END col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL MIN ( 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT 44 + + 91 + + 69 * + 87 + 69 - COUNT( * ) AS col2
----
6206

skipif mysql # not compatible
query I rowsort label-1055
SELECT 44 + + 91 + + 69 * + 87 + 69 - COUNT ( * ) AS col2
----
6206

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT 73 * SUM( DISTINCT - 11 )
----
-803

skipif mysql # not compatible
query I rowsort label-1056
SELECT 73 * SUM ( DISTINCT - 11 )
----
-803

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1057
SELECT - 14 col2, + CAST( - ( + + ( - 50 ) ) AS SIGNED ) + - 89 - - COALESCE ( 8, 42 ) * + 97 * - 41 AS col1
----
-14
-31855

skipif mysql # not compatible
query II rowsort label-1057
SELECT - 14 col2, + CAST ( - ( + + ( - 50 ) ) AS INTEGER ) + - 89 - - COALESCE ( 8, 42 ) * + 97 * - 41 AS col1
----
-14
-31855

query II rowsort
SELECT ALL 15, + 92 * - 10 AS col2
----
15
-920

query I rowsort
SELECT ALL 54 * + ( 3 ) AS col2
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1060
SELECT DISTINCT COUNT( * ) AS col1, - CAST( + 95 AS SIGNED ) AS col1
----
1
-95

skipif mysql # not compatible
query II rowsort label-1060
SELECT DISTINCT COUNT ( * ) AS col1, - CAST ( + 95 AS INTEGER ) AS col1
----
1
-95

query II rowsort
SELECT DISTINCT - 50 col2, + 33 + 57 + - ( + NULLIF ( + ( 4 ), - 38 ) ) AS col0
----
-50
86

onlyif mysql # DIV for integer division: 
query I rowsort label-1062
SELECT ALL + 43 DIV + 16 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL + 43 / + 16 AS col2
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1063
SELECT + 37 AS col2, - 15 + - CASE - 20 WHEN - 85 THEN NULL WHEN - - 42 + - 67 THEN - 81 + + 69 WHEN + ( - COUNT( * ) ) THEN COALESCE ( 86, - 68 ) END + 40 AS col2
----
37
NULL

skipif mysql # not compatible
query II rowsort label-1063
SELECT + 37 AS col2, - 15 + - CASE - 20 WHEN - 85 THEN NULL WHEN - - 42 + - 67 THEN - 81 + + 69 WHEN + ( - COUNT ( * ) ) THEN COALESCE ( 86, - 68 ) END + 40 AS col2
----
37
NULL

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

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

query II rowsort
SELECT + 89, 56 AS col1
----
89
56

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

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

query I rowsort
SELECT NULLIF ( + - 76, + 81 ) * - 91 AS col2
----
6916

query I rowsort
SELECT DISTINCT - 19 * + ( - - 38 ) + - - 69
----
-653

query II rowsort
SELECT DISTINCT - 85, - ( - + 99 ) * + 48 + 19 * - 57 col0
----
-85
3669

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1071
SELECT ALL + 20 * - COALESCE ( + 76, - 19 * - CAST( - 70 AS SIGNED ) - 80, 13 ) + - 52 AS col2
----
-1572

skipif mysql # not compatible
query I rowsort label-1071
SELECT ALL + 20 * - COALESCE ( + 76, - 19 * - CAST ( - 70 AS INTEGER ) - 80, 13 ) + - 52 AS col2
----
-1572

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1072
SELECT - COUNT( * ) DIV + + 62 + - 8 - + 40 + + COUNT( * ) * - MAX( 94 ) * + 24 AS col0
----
-2304

skipif mysql # not compatible
query I rowsort label-1072
SELECT - COUNT ( * ) / + + 62 + - 8 - + 40 + + COUNT ( * ) * - MAX ( 94 ) * + 24 AS col0
----
-2304

onlyif mysql # DIV for integer division: 
query I rowsort label-1073
SELECT - + 54 DIV + 14 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1073
SELECT - + 54 / + 14 AS col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1074
SELECT + + 48 + 98 * 77 DIV + - ( + 67 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-1074
SELECT + + 48 + 98 * 77 / + - ( + 67 ) AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1075
SELECT + + CASE - 78 WHEN + 89 THEN NULL WHEN 89 THEN 72 WHEN + + CASE 25 WHEN + CAST( NULL AS SIGNED ) THEN + 61 WHEN CASE - COUNT( - CAST( NULL AS DECIMAL ) ) WHEN 60 THEN 0 END THEN NULL ELSE + ( COALESCE ( - CASE - CAST( ( 84 ) AS SIGNED ) WHEN COUNT( * ) THEN CASE + CASE 28 WHEN - 27 THEN - ( COUNT( * ) ) END WHEN ( 28 ) * - 5 THEN NULL WHEN - 6 THEN NULL WHEN 35 - + 4 THEN NULL ELSE ( CAST( NULL AS SIGNED ) ) + - 93 END * - 23 WHEN MAX( + 17 ) * 4 + 54 * - 37 THEN NULL END, COUNT( * ) * 46 ) ) END THEN - 79 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1075
SELECT + + CASE - 78 WHEN + 89 THEN NULL WHEN 89 THEN 72 WHEN + + CASE 25 WHEN + CAST ( NULL AS INTEGER ) THEN + 61 WHEN CASE - COUNT ( - CAST ( NULL AS REAL ) ) WHEN 60 THEN 0 END THEN NULL ELSE + ( COALESCE ( - CASE - CAST ( ( 84 ) AS INTEGER ) WHEN COUNT ( * ) THEN CASE + CASE 28 WHEN - 27 THEN - ( COUNT ( * ) ) END WHEN ( 28 ) * - 5 THEN NULL WHEN - 6 THEN NULL WHEN 35 - + 4 THEN NULL ELSE ( CAST ( NULL AS INTEGER ) ) + - 93 END * - 23 WHEN MAX ( + 17 ) * 4 + 54 * - 37 THEN NULL END, COUNT ( * ) * 46 ) ) END THEN - 79 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1076
SELECT ALL 2 + + - ( + - 1 ) DIV + 86
----
2

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL 2 + + - ( + - 1 ) / + 86
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT + NULLIF ( + ( - COUNT( * ) ), + NULLIF ( + + 76, - COUNT( * ) * + 40 + 4 ) / COUNT( * ) ) * 58 + 20 * - 51
----
-1078

skipif mysql # not compatible
query I rowsort label-1077
SELECT + NULLIF ( + ( - COUNT ( * ) ), + NULLIF ( + + 76, - COUNT ( * ) * + 40 + 4 ) / COUNT ( * ) ) * 58 + 20 * - 51
----
-1078

query I rowsort
SELECT ALL 15 - - 89 AS col2
----
104

query I rowsort
SELECT ALL + 35 * 16 + + 94 AS col2
----
654

query II rowsort
SELECT + COALESCE ( + 50, 42 * - 2 ) col1, 51 * + 63 AS col1
----
50
3213

query II rowsort
SELECT ALL - 10 AS col1, - 49 * 57
----
-10
-2793

query I rowsort
SELECT DISTINCT - 65 - + + 21
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT DISTINCT + COUNT( * ) * - + 26 col2
----
-26

skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT + COUNT ( * ) * - + 26 col2
----
-26

query I rowsort
SELECT ALL 86 * + - 38 * 34
----
-111112

query II rowsort
SELECT DISTINCT - 61 AS col0, 30 + - - 97 * - 40 AS col0
----
-61
-3850

query I rowsort
SELECT ALL + CASE - COALESCE ( + 64, + ( - 81 ) / 90 * - 28 - 94 + 41 * - 76 ) WHEN 13 + - 77 THEN NULL WHEN 22 THEN NULL WHEN 73 THEN NULL ELSE 89 END - + 91 * - COALESCE ( + AVG ( ALL + 9 ) * + 76, 98 * 84, - 23 * 16 + + AVG ( - COALESCE ( - 69, - 79, 91 ) ) ) col0
----
NULL

query I rowsort
SELECT + + 46 * + 91 AS col2
----
4186

query I rowsort
SELECT - - CASE + - 7 WHEN 49 + - 96 - - - 73 THEN - - 48 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1089
SELECT ALL 84 AS col0, - NULLIF ( COUNT( * ), - 91 * 9 )
----
84
-1

skipif mysql # not compatible
query II rowsort label-1089
SELECT ALL 84 AS col0, - NULLIF ( COUNT ( * ), - 91 * 9 )
----
84
-1

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

skipif mysql # not compatible
query I rowsort label-1090
SELECT + NULLIF ( - COUNT ( * ), - + 64 + - - 39 )
----
-1

query I rowsort
SELECT + 48 * + + 25 AS col1
----
1200

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT ALL - COALESCE ( + 47, 13 + COUNT( * ) ) * + 72 AS col2
----
-3384

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL - COALESCE ( + 47, 13 + COUNT ( * ) ) * + 72 AS col2
----
-3384

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1095
SELECT DISTINCT 7 * + 57, - 50 * + COUNT( * ) + + COUNT( * ) - 83 + + ( - 15 ) * - 53 AS col0
----
399
663

skipif mysql # not compatible
query II rowsort label-1095
SELECT DISTINCT 7 * + 57, - 50 * + COUNT ( * ) + + COUNT ( * ) - 83 + + ( - 15 ) * - 53 AS col0
----
399
663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1096
SELECT - 18 * - + ( - 78 ) * COUNT( * ) * - 25 + - 62 DIV 36
----
35099

skipif mysql # not compatible
query I rowsort label-1096
SELECT - 18 * - + ( - 78 ) * COUNT ( * ) * - 25 + - 62 / 36
----
35099

query I rowsort
SELECT ALL 42 * - 62
----
-2604

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1098
SELECT ALL COALESCE ( - NULLIF ( 0, 70 * COALESCE ( + 42, ( + ( 4 ) ) ) * 99 ), COALESCE ( - CASE + 59 WHEN - CAST( NULL AS SIGNED ) THEN - 16 DIV + 0 ELSE NULL END, - 86 * - 11 ) ) + 63
----
63

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL COALESCE ( - NULLIF ( 0, 70 * COALESCE ( + 42, ( + ( 4 ) ) ) * 99 ), COALESCE ( - CASE + 59 WHEN - CAST ( NULL AS INTEGER ) THEN - 16 / + 0 ELSE NULL END, - 86 * - 11 ) ) + 63
----
63

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

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

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

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

query I rowsort
SELECT + 82 + 36 * + + 75 + + 44 AS col0
----
2826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1102
SELECT COUNT( * ) * - + 86 - + + NULLIF ( CAST( NULL AS SIGNED ), 84 * - CAST( NULL AS DECIMAL ) ) / 71 + COALESCE ( SUM( ALL 66 ), 69 * NULLIF ( 82, COUNT( * ) / 97 ), 6 ) * + COALESCE ( 4 * 36 + 76, 55, ( 89 ) + + ( ( + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1102
SELECT COUNT ( * ) * - + 86 - + + NULLIF ( CAST ( NULL AS INTEGER ), 84 * - CAST ( NULL AS REAL ) ) / 71 + COALESCE ( SUM ( ALL 66 ), 69 * NULLIF ( 82, COUNT ( * ) / 97 ), 6 ) * + COALESCE ( 4 * 36 + 76, 55, ( 89 ) + + ( ( + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) ) ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1103
SELECT ALL + 92 DIV + + 83 + - 31 DIV + - 57 * - COUNT( ALL - - 58 ) * + 20 DIV COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL + 92 / + + 83 + - 31 / + - 57 * - COUNT ( ALL - - 58 ) * + 20 / COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT ALL CASE - 1 WHEN 11 / SUM( 57 ) THEN 99 * + + 53 * COUNT( * ) ELSE NULL END * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL CASE - 1 WHEN 11 / SUM ( 57 ) THEN 99 * + + 53 * COUNT ( * ) ELSE NULL END * 82
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT DISTINCT + ( COUNT( * ) ) * 94 + + 50 + - 54 col2
----
90

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT + ( COUNT ( * ) ) * 94 + + 50 + - 54 col2
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-1108
SELECT DISTINCT + COUNT( ALL + 93 ) AS col1, - 0 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-1108
SELECT DISTINCT + COUNT ( ALL + 93 ) AS col1, - 0 AS col2
----
1
0

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

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

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

query II rowsort
SELECT - - 19 * + - 1 AS col1, 39
----
-19
39

query I rowsort
SELECT ALL - + 91 * + - NULLIF ( - + 23, 67 ) + + 1
----
-2092

query I rowsort
SELECT - - 67 + ( 32 ) * + 38
----
1283

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1114
SELECT ALL + COALESCE ( - 56, - 57 + - + 54 + + 98, + 91 DIV - 5, + COUNT( * ) ) * - 20 - - ( 95 + + 94 ) * 65 AS col0
----
13405

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL + COALESCE ( - 56, - 57 + - + 54 + + 98, + 91 / - 5, + COUNT ( * ) ) * - 20 - - ( 95 + + 94 ) * 65 AS col0
----
13405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1115
SELECT 81 * - 0 * - 2 + - + 3 + - - 94 + + 94 + + + COALESCE ( - 65, - 69 * - 23 + + 28 * - COUNT( * ) ) DIV 1
----
120

skipif mysql # not compatible
query I rowsort label-1115
SELECT 81 * - 0 * - 2 + - + 3 + - - 94 + + 94 + + + COALESCE ( - 65, - 69 * - 23 + + 28 * - COUNT ( * ) ) / 1
----
120

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

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

query I rowsort
SELECT - ( + 79 ) + - 36 AS col0
----
-115

query I rowsort
SELECT + 87 * - 95 - 85 * - 21
----
-6480

query II rowsort
SELECT - 76 + 14 AS col2, 92 * 87 AS col0
----
-62
8004

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT + 46 - - - SUM( ALL + - 85 )
----
131

skipif mysql # not compatible
query I rowsort label-1120
SELECT + 46 - - - SUM ( ALL + - 85 )
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT - ( - + 34 ) + + 0 + + + MIN( DISTINCT - - ( + CASE + 18 WHEN 16 THEN + 44 * + ( - 72 * - 7 ) WHEN + 58 THEN NULL END ) ) * - 70 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1121
SELECT - ( - + 34 ) + + 0 + + + MIN ( DISTINCT - - ( + CASE + 18 WHEN 16 THEN + 44 * + ( - 72 * - 7 ) WHEN + 58 THEN NULL END ) ) * - 70 col2
----
NULL

query II rowsort
SELECT + 59 + - 60 AS col1, 24 AS col1
----
-1
24

query I rowsort
SELECT DISTINCT - 29 * - - 94 - + 86 AS col1
----
-2812

query I rowsort
SELECT + + 65 + 12 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT ALL - COALESCE ( + MIN( DISTINCT - 16 ), + 17 - 83 * - COALESCE ( + - 37, 31 * - COUNT( * ), 95 * - 53 ) - + 82 )
----
16

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL - COALESCE ( + MIN ( DISTINCT - 16 ), + 17 - 83 * - COALESCE ( + - 37, 31 * - COUNT ( * ), 95 * - 53 ) - + 82 )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1126
SELECT ALL 37 + + - CAST( + + 93 AS SIGNED ) + + 13
----
-43

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL 37 + + - CAST ( + + 93 AS INTEGER ) + + 13
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT + 42 + + 3 * + COUNT( * ) * - 27 + 72 * + 65
----
4641

skipif mysql # not compatible
query I rowsort label-1127
SELECT + 42 + + 3 * + COUNT ( * ) * - 27 + 72 * + 65
----
4641

query I rowsort
SELECT ALL - 51 * - - 30
----
-1530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1129
SELECT + 60 * - + ( 30 ) AS col2, + ( 84 ) DIV COUNT( * ) * + 99 - + CAST( + 7 AS SIGNED ) - 18 AS col0
----
-1800
8291

skipif mysql # not compatible
query II rowsort label-1129
SELECT + 60 * - + ( 30 ) AS col2, + ( 84 ) / COUNT ( * ) * + 99 - + CAST ( + 7 AS INTEGER ) - 18 AS col0
----
-1800
8291

query I rowsort
SELECT DISTINCT 66 + 12
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT - COUNT( NULLIF ( - 10, 80 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1131
SELECT - COUNT ( NULLIF ( - 10, 80 ) ) AS col1
----
-1

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

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

query I rowsort
SELECT + 7 * - 10
----
-70

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1137
SELECT - ( - - SUM( + ( 62 ) ) ), + 30 AS col2
----
-62
30

skipif mysql # not compatible
query II rowsort label-1137
SELECT - ( - - SUM ( + ( 62 ) ) ), + 30 AS col2
----
-62
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1138
SELECT ALL CAST( NULL AS SIGNED ) + + - COALESCE ( + ( 59 ), 83 + - + ( + 63 ), 63 + + 16 ) + SUM( DISTINCT 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL CAST ( NULL AS INTEGER ) + + - COALESCE ( + ( 59 ), 83 + - + ( + 63 ), 63 + + 16 ) + SUM ( DISTINCT 85 )
----
NULL

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

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

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

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

query I rowsort
SELECT ALL - 53 * + - 48
----
2544

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT COUNT( * ) - ( + - CASE - 61 WHEN - 82 THEN + - CASE - 68 WHEN 81 + - COUNT( * ) THEN + 73 + + COUNT( * ) ELSE 58 + - 84 END WHEN 55 THEN - 99 WHEN - 99 + + ( SUM( 32 ) + 61 ) THEN NULL END ) - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-1142
SELECT COUNT ( * ) - ( + - CASE - 61 WHEN - 82 THEN + - CASE - 68 WHEN 81 + - COUNT ( * ) THEN + 73 + + COUNT ( * ) ELSE 58 + - 84 END WHEN 55 THEN - 99 WHEN - 99 + + ( SUM ( 32 ) + 61 ) THEN NULL END ) - 92
----
NULL

query I rowsort
SELECT 62 * + 36
----
2232

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT DISTINCT 22 - 82 - 0 * + + SUM( - + 14 )
----
-60

skipif mysql # not compatible
query I rowsort label-1144
SELECT DISTINCT 22 - 82 - 0 * + + SUM ( - + 14 )
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1145
SELECT - 39 DIV - COUNT( 10 ) + 2 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-1145
SELECT - 39 / - COUNT ( 10 ) + 2 AS col1
----
41

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1147
SELECT ( 15 ) * 35 * + - 15 * COALESCE ( + 67, - NULLIF ( + 97, - ( - 82 ) DIV COUNT( * ) ) DIV COUNT( * ) ) - 38 + - MIN( + 22 + 72 )
----
-527757

skipif mysql # not compatible
query I rowsort label-1147
SELECT ( 15 ) * 35 * + - 15 * COALESCE ( + 67, - NULLIF ( + 97, - ( - 82 ) / COUNT ( * ) ) / COUNT ( * ) ) - 38 + - MIN ( + 22 + 72 )
----
-527757

query II rowsort
SELECT ALL - 70 AS col1, + 51 AS col0
----
-70
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1149
SELECT CAST( NULL AS SIGNED ) * + + SUM( DISTINCT + 32 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT - 7 * 67 - + COUNT( ALL + - 1 ) + - 15
----
-485

skipif mysql # not compatible
query I rowsort label-1150
SELECT - 7 * 67 - + COUNT ( ALL + - 1 ) + - 15
----
-485

onlyif mysql # DIV for integer division: 
query I rowsort label-1151
SELECT ALL - 41 DIV - ( + + 60 ) + - + 42
----
-42

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL - 41 / - ( + + 60 ) + - + 42
----
-42

query II rowsort
SELECT + 23 AS col1, 5
----
23
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT - 16 + + COUNT( * ) + - 13 - + 72 - - 10
----
-90

skipif mysql # not compatible
query I rowsort label-1153
SELECT - 16 + + COUNT ( * ) + - 13 - + 72 - - 10
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-1154
SELECT DISTINCT - COUNT( * ) * ( - 5 ), 94 + + 71 + 38 col1
----
5
203

skipif mysql # not compatible
query II rowsort label-1154
SELECT DISTINCT - COUNT ( * ) * ( - 5 ), 94 + + 71 + 38 col1
----
5
203

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT COUNT( * ) + - - 12
----
13

skipif mysql # not compatible
query I rowsort label-1155
SELECT COUNT ( * ) + - - 12
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-1156
SELECT ALL - 91 * - + 71 + - 96 + + 79, COUNT( * ) AS col1
----
6444
1

skipif mysql # not compatible
query II rowsort label-1156
SELECT ALL - 91 * - + 71 + - 96 + + 79, COUNT ( * ) AS col1
----
6444
1

query I rowsort
SELECT + ( - CASE 1 WHEN + 48 * + - 85 + 44 THEN 23 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1158
SELECT ALL + + 76 + + + 8 + - - CAST( NULL AS SIGNED ) + - 59 * 69 + - ( + COUNT( * ) ) + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL + + 76 + + + 8 + - - CAST ( NULL AS INTEGER ) + - 59 * 69 + - ( + COUNT ( * ) ) + - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT ALL + ( + 90 ) * - SUM( DISTINCT - COALESCE ( + 60, - 38 * + - 94 + + 82 ) )
----
5400

skipif mysql # not compatible
query I rowsort label-1159
SELECT ALL + ( + 90 ) * - SUM ( DISTINCT - COALESCE ( + 60, - 38 * + - 94 + + 82 ) )
----
5400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1160
SELECT + NULLIF ( COUNT( ALL + + 68 ), - 32 ) * - MIN( - CAST( + 98 AS SIGNED ) )
----
98

skipif mysql # not compatible
query I rowsort label-1160
SELECT + NULLIF ( COUNT ( ALL + + 68 ), - 32 ) * - MIN ( - CAST ( + 98 AS INTEGER ) )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT DISTINCT + COUNT( * ) + 58 - + ( + - ( + COUNT( * ) ) ) col1
----
60

skipif mysql # not compatible
query I rowsort label-1161
SELECT DISTINCT + COUNT ( * ) + 58 - + ( + - ( + COUNT ( * ) ) ) col1
----
60

query I rowsort
SELECT ALL - 56 + + + 43 + - + 22
----
-35

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

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

query I rowsort
SELECT ALL + 93 + 38
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT 92 - 38 + - COUNT( * ) + + 48 * + 29 + - - 46 AS col0
----
1491

skipif mysql # not compatible
query I rowsort label-1165
SELECT 92 - 38 + - COUNT ( * ) + + 48 * + 29 + - - 46 AS col0
----
1491

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1167
SELECT 1 + + ( 96 ) - - 1 + 65 * 24 + + NULLIF ( 36, - + 6 * - 18 ) + COUNT( * ) DIV 86
----
1694

skipif mysql # not compatible
query I rowsort label-1167
SELECT 1 + + ( 96 ) - - 1 + 65 * 24 + + NULLIF ( 36, - + 6 * - 18 ) + COUNT ( * ) / 86
----
1694

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT DISTINCT 12 + - - CASE COALESCE ( 37, SUM( - + 81 ) ) WHEN + - 67 + 53 THEN + + 9 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1168
SELECT DISTINCT 12 + - - CASE COALESCE ( 37, SUM ( - + 81 ) ) WHEN + - 67 + 53 THEN + + 9 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT NULLIF ( COUNT( * ), 49 ) - + 20 * - - 9 - - - COUNT( * )
----
-180

skipif mysql # not compatible
query I rowsort label-1169
SELECT NULLIF ( COUNT ( * ), 49 ) - + 20 * - - 9 - - - COUNT ( * )
----
-180

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

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

query I rowsort
SELECT 17 + 44 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT MAX( 59 ) * + 33 * - ( - + 20 ) + + ( + COUNT( * ) ) AS col2
----
38941

skipif mysql # not compatible
query I rowsort label-1172
SELECT MAX ( 59 ) * + 33 * - ( - + 20 ) + + ( + COUNT ( * ) ) AS col2
----
38941

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1173
SELECT COUNT( * ) + - COUNT( * ) DIV 40 DIV + - 59 AS col0, NULLIF ( - - 11, + - MAX( DISTINCT - 45 ) ) col0
----
1
11

skipif mysql # not compatible
query II rowsort label-1173
SELECT COUNT ( * ) + - COUNT ( * ) / 40 / + - 59 AS col0, NULLIF ( - - 11, + - MAX ( DISTINCT - 45 ) ) col0
----
1
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT + CASE 29 WHEN CASE - 50 WHEN + 64 - + - 34 * - COALESCE ( - 77, + 99 ) - COUNT( * ) THEN + 54 ELSE NULL END THEN 0 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1175
SELECT + CASE 29 WHEN CASE - 50 WHEN + 64 - + - 34 * - COALESCE ( - 77, + 99 ) - COUNT ( * ) THEN + 54 ELSE NULL END THEN 0 END col0
----
NULL

query I rowsort
SELECT ALL - ( - 1 ) * + 75
----
75

onlyif mysql # DIV for integer division: 
query II rowsort label-1177
SELECT DISTINCT + 98 * + COALESCE ( + - 54, + 57 DIV - 30 + - 9 + + 36 ), 22 AS col2
----
-5292
22

skipif mysql # not compatible
query II rowsort label-1177
SELECT DISTINCT + 98 * + COALESCE ( + - 54, + 57 / - 30 + - 9 + + 36 ), 22 AS col2
----
-5292
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1178
SELECT - COALESCE ( 4, + + COUNT( * ), - NULLIF ( - + 66, - 66 ) DIV COALESCE ( 22, + ( - 52 ) * ( + 47 + 34 ) - 81 * 58 ), - COUNT( * ) ) DIV SUM( ALL + 12 + 16 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1178
SELECT - COALESCE ( 4, + + COUNT ( * ), - NULLIF ( - + 66, - 66 ) / COALESCE ( 22, + ( - 52 ) * ( + 47 + 34 ) - 81 * 58 ), - COUNT ( * ) ) / SUM ( ALL + 12 + 16 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1179
SELECT - 92 DIV - - 61 * COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1179
SELECT - 92 / - - 61 * COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT + 31 + 16 AS col2
----
47

query I rowsort
SELECT DISTINCT - 53 * - 74 AS col1
----
3922

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1182
SELECT - 57 * 19 + + - 40 * + - COUNT( DISTINCT ( + + 78 ) ) + - - CAST( NULL AS SIGNED ) / - 34 / CAST( + 48 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1182
SELECT - 57 * 19 + + - 40 * + - COUNT ( DISTINCT ( + + 78 ) ) + - - CAST ( NULL AS INTEGER ) / - 34 / CAST ( + 48 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 4 + - - 22 AS col2
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-1184
SELECT + + 41 * - 82 * - - 30 - - - 3 AS col0, + COUNT( * ) * - 32 * COUNT( * )
----
-100863
-32

skipif mysql # not compatible
query II rowsort label-1184
SELECT + + 41 * - 82 * - - 30 - - - 3 AS col0, + COUNT ( * ) * - 32 * COUNT ( * )
----
-100863
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT DISTINCT - MAX( - - 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-1185
SELECT DISTINCT - MAX ( - - 49 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT DISTINCT - COALESCE ( + - 35, - + COALESCE ( - 51, - + COUNT( * ) + - ( - + COALESCE ( ( 16 ), - 90 * - 35 + + 10, + 18 ) ) * + ( + ( 96 ) ) ) ) + 84
----
119

skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT - COALESCE ( + - 35, - + COALESCE ( - 51, - + COUNT ( * ) + - ( - + COALESCE ( ( 16 ), - 90 * - 35 + + 10, + 18 ) ) * + ( + ( 96 ) ) ) ) + 84
----
119

query I rowsort
SELECT - ( 78 ) * + - 77
----
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT ALL 77 + + 99 - - COUNT( DISTINCT 88 ) AS col1
----
177

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL 77 + + 99 - - COUNT ( DISTINCT 88 ) AS col1
----
177

query I rowsort
SELECT 92 + - - 41 col1
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-1190
SELECT ( + + 47 ) + - MIN( DISTINCT + - 13 ) - - 39 AS col1, 95 AS col1
----
99
95

skipif mysql # not compatible
query II rowsort label-1190
SELECT ( + + 47 ) + - MIN ( DISTINCT + - 13 ) - - 39 AS col1, 95 AS col1
----
99
95

query I rowsort
SELECT 37 - + 18 col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT ALL - ( 56 ) + - + MAX( - 62 ) + + - 52 * - 76 AS col1
----
3958

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL - ( 56 ) + - + MAX ( - 62 ) + + - 52 * - 76 AS col1
----
3958

query II rowsort
SELECT ALL 21 AS col0, 21 * - 53
----
21
-1113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1194
SELECT ALL + CASE 19 WHEN - CASE + + 63 WHEN 15 THEN NULL WHEN + 18 THEN - - 32 END * + COUNT( + ( 8 ) ) - 90 * + 70 THEN - 81 DIV 70 ELSE 51 - + ( 21 ) DIV COUNT( * ) END + 23 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL + CASE 19 WHEN - CASE + + 63 WHEN 15 THEN NULL WHEN + 18 THEN - - 32 END * + COUNT ( + ( 8 ) ) - 90 * + 70 THEN - 81 / 70 ELSE 51 - + ( 21 ) / COUNT ( * ) END + 23 AS col2
----
53

query I rowsort
SELECT - 53 + 49
----
-4

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

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL + MAX ( + 46 ) * + - ( ( COUNT ( * ) ) ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT ALL NULLIF ( + + 90, + + CASE - COUNT( * ) WHEN + MIN( - 13 ) * 2 / - 27 THEN + 48 WHEN + 85 THEN + 38 / 33 ELSE 44 END ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL NULLIF ( + + 90, + + CASE - COUNT ( * ) WHEN + MIN ( - 13 ) * 2 / - 27 THEN + 48 WHEN + 85 THEN + 38 / 33 ELSE 44 END ) AS col0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1198
SELECT ALL + 35 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL + 35 / - 89
----
0

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

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

query I rowsort
SELECT ALL + 62 - 6 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT DISTINCT + NULLIF ( - 64, + + COUNT( 7 ) ) - - ( - 81 ) AS col1
----
-145

skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT + NULLIF ( - 64, + + COUNT ( 7 ) ) - - ( - 81 ) AS col1
----
-145

query I rowsort
SELECT ALL COALESCE ( - 17, 4, 99 )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1203
SELECT - COUNT( DISTINCT - - ( + + 58 ) ) * CAST( + 87 AS SIGNED ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-1203
SELECT - COUNT ( DISTINCT - - ( + + 58 ) ) * CAST ( + 87 AS INTEGER ) AS col2
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1204
SELECT + CAST( - 10 AS SIGNED ) * + - 72 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1204
SELECT + CAST ( - 10 AS INTEGER ) * + - 72 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( CASE WHEN NULL IS NULL THEN 64 ELSE 74 END ) AS col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1206
SELECT - 63 * ( + + NULLIF ( - + ( - CAST( - 46 AS SIGNED ) ), - + 65 ) ) AS col0
----
2898

skipif mysql # not compatible
query I rowsort label-1206
SELECT - 63 * ( + + NULLIF ( - + ( - CAST ( - 46 AS INTEGER ) ), - + 65 ) ) AS col0
----
2898

onlyif mysql # aggregate syntax: 
query II rowsort label-1207
SELECT ALL COUNT( DISTINCT - + COALESCE ( - ( 54 ), + 23 * + - ( 66 ) - + 9 ) ) AS col2, 15 * ( + 17 )
----
1
255

skipif mysql # not compatible
query II rowsort label-1207
SELECT ALL COUNT ( DISTINCT - + COALESCE ( - ( 54 ), + 23 * + - ( 66 ) - + 9 ) ) AS col2, 15 * ( + 17 )
----
1
255

query I rowsort
SELECT - 49 + ( - 42 ) * + 78
----
-3325

query I rowsort
SELECT ALL + - 72 * 98
----
-7056

query I rowsort
SELECT DISTINCT + 57 * + 17 + + + 60
----
1029

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

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

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

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

query I rowsort
SELECT - + 19 * + 88 AS col2
----
-1672

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1215
SELECT - + 8 * 83 + + - 85 * 42 * - COUNT( - CAST( + 28 AS DECIMAL ) )
----
2906

skipif mysql # not compatible
query I rowsort label-1215
SELECT - + 8 * 83 + + - 85 * 42 * - COUNT ( - CAST ( + 28 AS REAL ) )
----
2906

query I rowsort
SELECT ALL + 44 * - 36 + 78 AS col0
----
-1506

query I rowsort
SELECT ALL + ( 78 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT ALL - 29 * - 54 * 13 + - - COALESCE ( + + ( - 86 ), + 40, - - 25 * SUM( 77 ) ) * COUNT( * )
----
20272

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL - 29 * - 54 * 13 + - - COALESCE ( + + ( - 86 ), + 40, - - 25 * SUM ( 77 ) ) * COUNT ( * )
----
20272

query I rowsort
SELECT - ( 46 ) * - + 26 * 25 - + 8 * - 91 + 26 + + 41 + + 84
----
30779

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT ALL 22 * - MIN( - 1 ) * - 30 AS col0
----
-660

skipif mysql # not compatible
query I rowsort label-1220
SELECT ALL 22 * - MIN ( - 1 ) * - 30 AS col0
----
-660

query I rowsort
SELECT + - 92 * + 55 AS col2
----
-5060

query I rowsort
SELECT DISTINCT 71 * + 23 * - 6 * - 36 * 99 * + 45 AS col1
----
1571403240

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT + + COUNT( * ) * COUNT( * ) * + 93 * 31 AS col1
----
2883

skipif mysql # not compatible
query I rowsort label-1223
SELECT + + COUNT ( * ) * COUNT ( * ) * + 93 * 31 AS col1
----
2883

query I rowsort
SELECT + - 12 + - 90
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1225
SELECT ALL - CAST( NULL AS SIGNED ) * + - 95 * + 12 / + COALESCE ( 25, - + 0 / + 57 * + 81 ) + - 82 + - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 95 * + 12 / + COALESCE ( 25, - + 0 / + 57 * + 81 ) + - 82 + - 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT + 77 * - MIN( - 73 ) * + 63 * - 75 * + ( - 32 ) - NULLIF ( + 24, - 61 * + + COUNT( * ) + - 98 ) AS col1
----
849895176

skipif mysql # not compatible
query I rowsort label-1226
SELECT + 77 * - MIN ( - 73 ) * + 63 * - 75 * + ( - 32 ) - NULLIF ( + 24, - 61 * + + COUNT ( * ) + - 98 ) AS col1
----
849895176

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT DISTINCT MAX( - - 73 ) * 98
----
7154

skipif mysql # not compatible
query I rowsort label-1227
SELECT DISTINCT MAX ( - - 73 ) * 98
----
7154

query I rowsort
SELECT DISTINCT COALESCE ( + 47, 28 )
----
47

query I rowsort
SELECT ALL NULLIF ( - - 48, - 1 * - 35 ) AS col1
----
48

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

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

query I rowsort
SELECT + 94 + + 62 AS col1
----
156

query I rowsort
SELECT ALL NULLIF ( 82, + 9 ) AS col0
----
82

query I rowsort
SELECT + 70 + + 86 * - 48 * + 16 AS col0
----
-65978

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT DISTINCT NULLIF ( 48, - CASE 88 WHEN + 66 THEN 42 WHEN + 67 THEN + 24 + 87 - - + COUNT( * ) ELSE - 95 * 25 END + 18 * 78 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-1235
SELECT DISTINCT NULLIF ( 48, - CASE 88 WHEN + 66 THEN 42 WHEN + 67 THEN + 24 + 87 - - + COUNT ( * ) ELSE - 95 * 25 END + 18 * 78 ) AS col2
----
48

query I rowsort
SELECT ALL + 31 * - ( + + 79 ) * - 84
----
205716

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT - CASE 12 WHEN + 26 THEN - 85 WHEN + - 61 + + - COUNT( * ) * 67 THEN NULL END / + 2 / - - ( + + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1237
SELECT - CASE 12 WHEN + 26 THEN - 85 WHEN + - 61 + + - COUNT ( * ) * 67 THEN NULL END / + 2 / - - ( + + 25 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1238
SELECT - COUNT( * ) - 1, + COUNT( ALL + 39 ) * 99 DIV COALESCE ( + ( 22 ), + 54 ) AS col1
----
-2
4

skipif mysql # not compatible
query II rowsort label-1238
SELECT - COUNT ( * ) - 1, + COUNT ( ALL + 39 ) * 99 / COALESCE ( + ( 22 ), + 54 ) AS col1
----
-2
4

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

query II rowsort
SELECT 17 AS col0, 58 AS col0
----
17
58

query II rowsort
SELECT ALL - 31 * + + 74, - 56 AS col2
----
-2294
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1242
SELECT - - 9 DIV - 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1242
SELECT - - 9 / - 60 AS col0
----
0

query II rowsort
SELECT - - 50 + - + 43 AS col0, - 90
----
7
-90

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1246
SELECT ALL - MIN( ALL 42 ) DIV + 47 + - 17 * - 39 * + COUNT( * ) AS col2, 20 * + - 10
----
663
-200

skipif mysql # not compatible
query II rowsort label-1246
SELECT ALL - MIN ( ALL 42 ) / + 47 + - 17 * - 39 * + COUNT ( * ) AS col2, 20 * + - 10
----
663
-200

onlyif mysql # DIV for integer division: 
query I rowsort label-1247
SELECT - 13 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-1247
SELECT - 13 / 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT - MIN( - - 98 ) * 89 AS col2
----
-8722

skipif mysql # not compatible
query I rowsort label-1248
SELECT - MIN ( - - 98 ) * 89 AS col2
----
-8722

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

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL COUNT ( * ) / - - 71 + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + 30 * - COUNT ( * ) - - 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1250
SELECT ALL - - NULLIF ( COUNT( * ), 44 ) DIV + - COUNT( * ) + - - 20 DIV - 91 * + 84 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL - - NULLIF ( COUNT ( * ), 44 ) / + - COUNT ( * ) + - - 20 / - 91 * + 84 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-1251
SELECT + 42, - ( - 64 ) DIV 9 + + 12 * + 62 AS col1
----
42
751

skipif mysql # not compatible
query II rowsort label-1251
SELECT + 42, - ( - 64 ) / 9 + + 12 * + 62 AS col1
----
42
751

onlyif mysql # DIV for integer division: 
query I rowsort label-1252
SELECT DISTINCT - 4 DIV - 55 + - 98 col1
----
-98

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT - 4 / - 55 + - 98 col1
----
-98

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1254
SELECT ALL 53 / + 65 + 32 * - 50 + CAST( NULL AS SIGNED ) + + 72 + + 45 * SUM( DISTINCT - 49 ) + - - 1 * - - MIN( - 0 ) + - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1254
SELECT ALL 53 / + 65 + 32 * - 50 + CAST ( NULL AS INTEGER ) + + 72 + + 45 * SUM ( DISTINCT - 49 ) + - - 1 * - - MIN ( - 0 ) + - 9 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1256
SELECT - 57 DIV + 88 + - MIN( - - 87 ) * + + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-1256
SELECT - 57 / + 88 + - MIN ( - - 87 ) * + + COUNT ( * )
----
-87

query I rowsort
SELECT + NULLIF ( - 22, 20 )
----
-22

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

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

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

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

query II rowsort
SELECT ALL + 63 col1, 51 + - 35
----
63
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT - COUNT( ALL 45 ) * - MIN( 68 ) + + NULLIF ( - + 29, + - 42 ) + + 52 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-1261
SELECT - COUNT ( ALL 45 ) * - MIN ( 68 ) + + NULLIF ( - + 29, + - 42 ) + + 52 AS col0
----
91

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT ALL 72 - - 71 - COUNT( * ) + + + 23 AS col2
----
165

skipif mysql # not compatible
query I rowsort label-1264
SELECT ALL 72 - - 71 - COUNT ( * ) + + + 23 AS col2
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-1265
SELECT DISTINCT 89 DIV + + 4 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-1265
SELECT DISTINCT 89 / + + 4 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT COUNT( * ) + - 87 * - 52 * - 61 + - COUNT( * ) - - 38 - - 77 * + 65 AS col0
----
-270921

skipif mysql # not compatible
query I rowsort label-1266
SELECT COUNT ( * ) + - 87 * - 52 * - 61 + - COUNT ( * ) - - 38 - - 77 * + 65 AS col0
----
-270921

query I rowsort
SELECT 36 + + 62 - 12 + - + 89 AS col2
----
-3

query I rowsort
SELECT - 79 * + 11 + - + 77 AS col2
----
-946

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1269
SELECT - 4 * - - 34 * - - 84 + + 45 * + + 86, CASE - 4 WHEN CAST( NULL AS SIGNED ) THEN + 82 END col0
----
-7554
NULL

skipif mysql # not compatible
query II rowsort label-1269
SELECT - 4 * - - 34 * - - 84 + + 45 * + + 86, CASE - 4 WHEN CAST ( NULL AS INTEGER ) THEN + 82 END col0
----
-7554
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1270
SELECT 26 + + - 84 DIV 44 + COUNT( * ) col2
----
26

skipif mysql # not compatible
query I rowsort label-1270
SELECT 26 + + - 84 / 44 + COUNT ( * ) col2
----
26

query I rowsort
SELECT ALL 64 * - 20
----
-1280

query I rowsort
SELECT COALESCE ( - 99, - 81 - - - 22 ) + - - 81
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1273
SELECT CAST( + 68 AS SIGNED ) + 75 + - 45 + 61 + + 93 * 50 * + + 90 AS col0
----
418659

skipif mysql # not compatible
query I rowsort label-1273
SELECT CAST ( + 68 AS INTEGER ) + 75 + - 45 + 61 + + 93 * 50 * + + 90 AS col0
----
418659

query I rowsort
SELECT 45 * - 40 AS col2
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT SUM( DISTINCT - - 74 ) + + 67 AS col0
----
141

skipif mysql # not compatible
query I rowsort label-1275
SELECT SUM ( DISTINCT - - 74 ) + + 67 AS col0
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1276
SELECT CAST( + 37 AS SIGNED ) + - 77 + + 49 DIV - COUNT( * ) + - 10 col1
----
-99

skipif mysql # not compatible
query I rowsort label-1276
SELECT CAST ( + 37 AS INTEGER ) + - 77 + + 49 / - COUNT ( * ) + - 10 col1
----
-99

query II rowsort
SELECT ALL - 72 + 76 col1, 90 * + - 57
----
4
-5130

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT ALL + 99 + + SUM( - 46 ) * 28 AS col0
----
-1189

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL + 99 + + SUM ( - 46 ) * 28 AS col0
----
-1189

query I rowsort
SELECT DISTINCT 32 + - 52 + - 74 AS col1
----
-94

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

skipif mysql # not compatible
query I rowsort label-1280
SELECT 39 + - CAST ( + 68 AS INTEGER ) + 88 AS col2
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1281
SELECT ALL + - 42 + - NULLIF ( + + COUNT( * ), - 7 + + 17 ) + COALESCE ( + + MAX( DISTINCT - 19 ), - 18, + 51, + 4 DIV + 93 - 68 * 32 )
----
-62

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL + - 42 + - NULLIF ( + + COUNT ( * ), - 7 + + 17 ) + COALESCE ( + + MAX ( DISTINCT - 19 ), - 18, + 51, + 4 / + 93 - 68 * 32 )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1282
SELECT DISTINCT 3 + + CASE + CAST( COALESCE ( COUNT( * ), - 9, 30 ) AS SIGNED ) WHEN 67 THEN 8 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1282
SELECT DISTINCT 3 + + CASE + CAST ( COALESCE ( COUNT ( * ), - 9, 30 ) AS INTEGER ) WHEN 67 THEN 8 END AS col2
----
NULL

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

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

query I rowsort
SELECT 42 * + 12
----
504

query I rowsort
SELECT DISTINCT + 23 + - 25 * + 12 AS col1
----
-277

query I rowsort
SELECT - 18 - - 34
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT ALL + + ( - ( + - 8 ) ) - + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-1288
SELECT ALL + + ( - ( + - 8 ) ) - + COUNT ( * )
----
7

query I rowsort
SELECT 21 * 93 AS col2
----
1953

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT ALL - ( + CASE - COUNT( * ) WHEN + CASE - + 74 WHEN 2 THEN 6 WHEN + - ( - 52 ) * 57 * + 66 + - + 95 THEN NULL END * - 68 * 86 THEN NULL WHEN 31 + - 24 * ( + COUNT( * ) * 84 ) THEN - 77 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1291
SELECT ALL - ( + CASE - COUNT ( * ) WHEN + CASE - + 74 WHEN 2 THEN 6 WHEN + - ( - 52 ) * 57 * + 66 + - + 95 THEN NULL END * - 68 * 86 THEN NULL WHEN 31 + - 24 * ( + COUNT ( * ) * 84 ) THEN - 77 ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 83 * 25 AS col1
----
2075

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT 11 * + CASE - COUNT( * ) WHEN + 36 * ( + 80 ) THEN + + 93 WHEN - + 68 THEN - 82 - + - AVG ( DISTINCT + 55 ) ELSE NULL END * + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1294
SELECT 11 * + CASE - COUNT ( * ) WHEN + 36 * ( + 80 ) THEN + + 93 WHEN - + 68 THEN - 82 - + - AVG ( DISTINCT + 55 ) ELSE NULL END * + - 54
----
NULL

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

query I rowsort
SELECT DISTINCT - 57 * - - 16
----
-912

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

query II rowsort
SELECT + 71, - ( + 1 ) * + 99 AS col0
----
71
-99

query I rowsort
SELECT 65 * + 83
----
5395

query I rowsort
SELECT 36 * - + 20 * - 98
----
70560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1301
SELECT CASE - CASE - + 75 WHEN + + 6 * - 83 THEN - + 73 - 52 * 98 * - - 21 ELSE - 78 * - 84 END WHEN - 43 THEN + CAST( NULL AS SIGNED ) WHEN + 40 THEN ( - COUNT( * ) ) ELSE NULL END * 49 + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-1301
SELECT CASE - CASE - + 75 WHEN + + 6 * - 83 THEN - + 73 - 52 * 98 * - - 21 ELSE - 78 * - 84 END WHEN - 43 THEN + CAST ( NULL AS INTEGER ) WHEN + 40 THEN ( - COUNT ( * ) ) ELSE NULL END * 49 + - 3
----
NULL

query II rowsort
SELECT ALL - 7 AS col1, + ( - - 81 ) + + 33 AS col1
----
-7
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1303
SELECT DISTINCT - CAST( 3 AS SIGNED ) * + 94
----
-282

skipif mysql # not compatible
query I rowsort label-1303
SELECT DISTINCT - CAST ( 3 AS INTEGER ) * + 94
----
-282

query II rowsort
SELECT 42 AS col0, + 35 AS col0
----
42
35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1305
SELECT 55 DIV + CAST( + 10 AS SIGNED ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-1305
SELECT 55 / + CAST ( + 10 AS INTEGER ) AS col1
----
5

query I rowsort
SELECT ALL 35 + - 26
----
9

query II rowsort
SELECT - 37 AS col2, - 49 AS col0
----
-37
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1308
SELECT ALL COUNT( * ) + - 27 - + 21 * 57 DIV 78 DIV + + COUNT( * ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL COUNT ( * ) + - 27 - + 21 * 57 / 78 / + + COUNT ( * ) AS col0
----
-41

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1310
SELECT DISTINCT - 13 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-1310
SELECT DISTINCT - 13 / - 92
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1311
SELECT 45 DIV + 44
----
1

skipif mysql # not compatible
query I rowsort label-1311
SELECT 45 / + 44
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1312
SELECT COUNT( + - 95 ) DIV 73 * + COUNT( * ) * MIN( DISTINCT + 31 ) DIV 38 + + 53 * - NULLIF ( 3, - + ( - + COALESCE ( - COALESCE ( + CASE - COUNT( * ) WHEN 66 THEN 87 + + 83 WHEN + COUNT( * ) THEN 75 DIV + 57 END, 37 + 3, + COALESCE ( CAST( NULL AS SIGNED ), - 55 ) * - 76 ), - 32, - CASE - 68 WHEN COALESCE ( + CAST( + 11 AS SIGNED ), - 54, - MIN( DISTINCT ( + 74 ) ) ) THEN 7 WHEN + 77 THEN NULL END ) ) ) + - COUNT( * ) DIV 87 AS col2
----
-159

skipif mysql # not compatible
query I rowsort label-1312
SELECT COUNT ( + - 95 ) / 73 * + COUNT ( * ) * MIN ( DISTINCT + 31 ) / 38 + + 53 * - NULLIF ( 3, - + ( - + COALESCE ( - COALESCE ( + CASE - COUNT ( * ) WHEN 66 THEN 87 + + 83 WHEN + COUNT ( * ) THEN 75 / + 57 END, 37 + 3, + COALESCE ( CAST ( NULL AS INTEGER ), - 55 ) * - 76 ), - 32, - CASE - 68 WHEN COALESCE ( + CAST ( + 11 AS INTEGER ), - 54, - MIN ( DISTINCT ( + 74 ) ) ) THEN 7 WHEN + 77 THEN NULL END ) ) ) + - COUNT ( * ) / 87 AS col2
----
-159

query I rowsort
SELECT 51 - 33 + - 58 * + 30 + + 17 + - 55 * + 88
----
-6545

query I rowsort
SELECT ALL 75 + 67 col0
----
142

query I rowsort
SELECT 61 + + 98 AS col1
----
159

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1317
SELECT COALESCE ( - 67, 5 * + SUM( DISTINCT 3 ) DIV + ( + 97 ) * + + 36 - 89 + - 1 ) * + 28 + - MIN( ALL + 99 ) + + 49 col0
----
-1926

skipif mysql # not compatible
query I rowsort label-1317
SELECT COALESCE ( - 67, 5 * + SUM ( DISTINCT 3 ) / + ( + 97 ) * + + 36 - 89 + - 1 ) * + 28 + - MIN ( ALL + 99 ) + + 49 col0
----
-1926

query I rowsort
SELECT ALL + 37 + 3 * - 17 * 61 AS col0
----
-3074

query I rowsort
SELECT DISTINCT 30 * - - 7
----
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1320
SELECT 87 - - 38 - + COUNT( * ) / + + NULLIF ( + 65, + 3 ) / + 76 / - - 16 - + ( - + CAST( - 21 AS DECIMAL ) ) - - CASE - 70 WHEN + ( + ( 77 ) ) * + 4 THEN NULL WHEN CAST( 13 AS SIGNED ) * 99 THEN 89 WHEN + 39 * - 33 - + 47 * 26 THEN NULL END + 36 / - 11 * + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-1320
SELECT 87 - - 38 - + COUNT ( * ) / + + NULLIF ( + 65, + 3 ) / + 76 / - - 16 - + ( - + CAST ( - 21 AS REAL ) ) - - CASE - 70 WHEN + ( + ( 77 ) ) * + 4 THEN NULL WHEN CAST ( 13 AS INTEGER ) * 99 THEN 89 WHEN + 39 * - 33 - + 47 * 26 THEN NULL END + 36 / - 11 * + 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT 67 + 86 + - MAX( DISTINCT + 47 ) * + NULLIF ( + 78, - COUNT( * ) )
----
-3513

skipif mysql # not compatible
query I rowsort label-1321
SELECT 67 + 86 + - MAX ( DISTINCT + 47 ) * + NULLIF ( + 78, - COUNT ( * ) )
----
-3513

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

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

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

query I rowsort
SELECT DISTINCT - 19 * + 48 AS col0
----
-912

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

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

query I rowsort
SELECT ALL - 69 * 76
----
-5244

query II rowsort
SELECT NULLIF ( + 26, + 30 ) AS col2, - ( 69 ) * 38 AS col1
----
26
-2622

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

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

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

query II rowsort
SELECT - 7 * - 2 AS col2, 87 + 81 + + 73 * 73
----
14
5497

onlyif mysql # DIV for integer division: 
query I rowsort label-1331
SELECT - 59 DIV - - 86 + + 63 + - + 21 * - 7 + - ( - 21 ) AS col2
----
231

skipif mysql # not compatible
query I rowsort label-1331
SELECT - 59 / - - 86 + + 63 + - + 21 * - 7 + - ( - 21 ) AS col2
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT CASE 77 WHEN + 60 THEN 50 ELSE - + NULLIF ( + - NULLIF ( - - NULLIF ( 74, 78 / - COUNT( * ) * + AVG ( - + CASE - 1 WHEN + 7 + 54 THEN - 25 END ) + - COUNT( * ) ), 75 - - CASE + 48 WHEN + 74 THEN NULL WHEN + 27 + 71 THEN - 91 END ), 28 ) * - 74 END AS col1
----
-5476

skipif mysql # not compatible
query I rowsort label-1332
SELECT CASE 77 WHEN + 60 THEN 50 ELSE - + NULLIF ( + - NULLIF ( - - NULLIF ( 74, 78 / - COUNT ( * ) * + AVG ( - + CASE - 1 WHEN + 7 + 54 THEN - 25 END ) + - COUNT ( * ) ), 75 - - CASE + 48 WHEN + 74 THEN NULL WHEN + 27 + 71 THEN - 91 END ), 28 ) * - 74 END AS col1
----
-5476

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT NULLIF ( 69, + 51 / + COUNT( * ) ) col0
----
69

skipif mysql # not compatible
query I rowsort label-1333
SELECT NULLIF ( 69, + 51 / + COUNT ( * ) ) col0
----
69

query II rowsort
SELECT + 95 + + 71 AS col1, + 81 AS col2
----
166
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1335
SELECT COALESCE ( - 12, - - NULLIF ( + - CASE - + 18 WHEN 84 * + COUNT( * ) THEN - 71 END, - 65 ) + SUM( - - 81 ) - + CAST( NULL AS SIGNED ), - ( 93 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-1335
SELECT COALESCE ( - 12, - - NULLIF ( + - CASE - + 18 WHEN 84 * + COUNT ( * ) THEN - 71 END, - 65 ) + SUM ( - - 81 ) - + CAST ( NULL AS INTEGER ), - ( 93 ) )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT - CASE - SUM( + 70 ) WHEN - 92 THEN + 38 * - 58 + + 50 - - 91 + - 29 * 39 END * - 72 + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1336
SELECT - CASE - SUM ( + 70 ) WHEN - 92 THEN + 38 * - 58 + + 50 - - 91 + - 29 * 39 END * - 72 + 10 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT - 47 * SUM( - 64 ) * 39 - 38 AS col0
----
117274

skipif mysql # not compatible
query I rowsort label-1337
SELECT - 47 * SUM ( - 64 ) * 39 - 38 AS col0
----
117274

query I rowsort
SELECT ALL + ( + 13 ) * 40 * - 78 + CASE 95 WHEN + 5 THEN + 49 ELSE NULL END + + 52 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1339
SELECT DISTINCT ( 61 ) DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-1339
SELECT DISTINCT ( 61 ) / 73
----
0

query I rowsort
SELECT ALL 8 * - + 5 + 84 - + 24 col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1341
SELECT - NULLIF ( SUM( ALL - - ( 9 ) ), 26 / + 49 + + - 50 + ( CAST( NULL AS SIGNED ) ) + NULLIF ( + 93, + - 72 ) ) + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-1341
SELECT - NULLIF ( SUM ( ALL - - ( 9 ) ), 26 / + 49 + + - 50 + ( CAST ( NULL AS INTEGER ) ) + NULLIF ( + 93, + - 72 ) ) + COUNT ( * )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT ALL + CASE 99 WHEN + COUNT( * ) + + 37 THEN 99 * + + 55 WHEN 48 * + - 81 - - + 80 THEN - - 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL + CASE 99 WHEN + COUNT ( * ) + + 37 THEN 99 * + + 55 WHEN 48 * + - 81 - - + 80 THEN - - 96 END
----
NULL

query I rowsort
SELECT - 17 + - + NULLIF ( + 96, 14 + - - 53 ) AS col1
----
-113

query II rowsort
SELECT DISTINCT - 27 * + 78 AS col1, + ( 88 ) col2
----
-2106
88

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1345
SELECT ALL CAST( NULL AS SIGNED ) * - - CAST( - 94 AS DECIMAL ) + + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL CAST ( NULL AS INTEGER ) * - - CAST ( - 94 AS REAL ) + + 96 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1346
SELECT + 58 * COUNT( * ) + - CAST( NULL AS SIGNED ) - - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1346
SELECT + 58 * COUNT ( * ) + - CAST ( NULL AS INTEGER ) - - 48 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1347
SELECT CAST( NULL AS DECIMAL ) * 89 + + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1347
SELECT CAST ( NULL AS REAL ) * 89 + + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT ALL - COUNT( * ) + + 83 * 95 AS col0
----
7884

skipif mysql # not compatible
query I rowsort label-1348
SELECT ALL - COUNT ( * ) + + 83 * 95 AS col0
----
7884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1349
SELECT - SUM( ALL + - COALESCE ( + 21, + 43 ) ), + MIN( - - CAST( NULL AS SIGNED ) ) + + + 45 AS col2
----
21
NULL

skipif mysql # not compatible
query II rowsort label-1349
SELECT - SUM ( ALL + - COALESCE ( + 21, + 43 ) ), + MIN ( - - CAST ( NULL AS INTEGER ) ) + + + 45 AS col2
----
21
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT ALL + - CASE + 87 WHEN - - COALESCE ( - + 50, - + 75 * 91, 34 * - COUNT( DISTINCT + 7 ) * + COUNT( * ) + - 11 * + 71 ) * 66 THEN + 95 WHEN - 1 THEN - 49 * + 85 + + 79 END + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL + - CASE + 87 WHEN - - COALESCE ( - + 50, - + 75 * 91, 34 * - COUNT ( DISTINCT + 7 ) * + COUNT ( * ) + - 11 * + 71 ) * 66 THEN + 95 WHEN - 1 THEN - 49 * + 85 + + 79 END + - 16
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1351
SELECT DISTINCT - 39 + + + MIN( - + 23 ) + + COUNT( * ) DIV - + 42 + + - 29
----
-91

skipif mysql # not compatible
query I rowsort label-1351
SELECT DISTINCT - 39 + + + MIN ( - + 23 ) + + COUNT ( * ) / - + 42 + + - 29
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1352
SELECT - COUNT( * ) + 95 AS col0, MAX( + CAST( - 21 AS SIGNED ) ) * + - 47 * + - 17 * - 61 + + COUNT( * ) + - ( - 80 ) + - CASE WHEN NULL <> - 43 THEN CAST( NULL AS SIGNED ) END AS col2
----
94
NULL

skipif mysql # not compatible
query II rowsort label-1352
SELECT - COUNT ( * ) + 95 AS col0, MAX ( + CAST ( - 21 AS INTEGER ) ) * + - 47 * + - 17 * - 61 + + COUNT ( * ) + - ( - 80 ) + - CASE WHEN NULL <> - 43 THEN CAST ( NULL AS INTEGER ) END AS col2
----
94
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT - COUNT( - 90 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1353
SELECT - COUNT ( - 90 ) AS col0
----
-1

query II rowsort
SELECT + - 20 * - + 24 AS col1, 58 + + - 17 col0
----
480
41

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT - - COALESCE ( + 32, - COUNT( * ) ) + + - COUNT( * ) * - 65 * - 20 + COUNT( * ) - - 10 * - + 22 * - - 75 - - 49 - - 37 AS col0
----
-17681

skipif mysql # not compatible
query I rowsort label-1356
SELECT - - COALESCE ( + 32, - COUNT ( * ) ) + + - COUNT ( * ) * - 65 * - 20 + COUNT ( * ) - - 10 * - + 22 * - - 75 - - 49 - - 37 AS col0
----
-17681

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT DISTINCT 21 - - COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT 21 - - COUNT ( * ) AS col1
----
22

query II rowsort
SELECT - 95 * + 5 AS col0, + 71
----
-475
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT ALL - 90 * + - COUNT( * ) * - 79 - + + 46 * 8 * 39 * + + 89 * + COUNT( * ) - + 71 AS col2
----
-1284509

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL - 90 * + - COUNT ( * ) * - 79 - + + 46 * 8 * 39 * + + 89 * + COUNT ( * ) - + 71 AS col2
----
-1284509

query I rowsort
SELECT ALL + 20 * 33 AS col2
----
660

query I rowsort
SELECT DISTINCT - NULLIF ( 45, 29 * + 86 + - COALESCE ( 40, + COALESCE ( + 88, + 87 * 55, - - ( - 86 ) * + 76 ) * + 20 ) )
----
-45

query I rowsort
SELECT COALESCE ( + 2, - 30 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1363
SELECT + COUNT( ALL - 43 ) AS col1, - 26 AS col1
----
1
-26

skipif mysql # not compatible
query II rowsort label-1363
SELECT + COUNT ( ALL - 43 ) AS col1, - 26 AS col1
----
1
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-1364
SELECT + SUM( DISTINCT COALESCE ( - + 39, 98 ) ) * 28 AS col0, - 69 * + 1 + + 98 * + NULLIF ( + 14, - 46 * + 95 - + - CASE + + 97 WHEN + 46 THEN 61 + + 79 END - + 9 ) col0
----
-1092
1303

skipif mysql # not compatible
query II rowsort label-1364
SELECT + SUM ( DISTINCT COALESCE ( - + 39, 98 ) ) * 28 AS col0, - 69 * + 1 + + 98 * + NULLIF ( + 14, - 46 * + 95 - + - CASE + + 97 WHEN + 46 THEN 61 + + 79 END - + 9 ) col0
----
-1092
1303

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT + 5 * - + COUNT( + 89 ) + - 10 + + 33
----
18

skipif mysql # not compatible
query I rowsort label-1365
SELECT + 5 * - + COUNT ( + 89 ) + - 10 + + 33
----
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT NULLIF ( - 65, - 73 - - 47 ) / - - 48 + - CASE - + COUNT( 63 ) WHEN + 83 THEN 45 WHEN 13 THEN NULL WHEN COUNT( * ) + COUNT( * ) THEN NULL ELSE NULL END + + + 29 * - 65 + NULLIF ( 66, - MIN( DISTINCT 59 ) - + 8 ) / + 85 + + ( + CASE 25 WHEN 2 THEN NULL WHEN 84 * - 41 THEN 30 * + ( 24 ) ELSE NULL END + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1367
SELECT NULLIF ( - 65, - 73 - - 47 ) / - - 48 + - CASE - + COUNT ( 63 ) WHEN + 83 THEN 45 WHEN 13 THEN NULL WHEN COUNT ( * ) + COUNT ( * ) THEN NULL ELSE NULL END + + + 29 * - 65 + NULLIF ( 66, - MIN ( DISTINCT 59 ) - + 8 ) / + 85 + + ( + CASE 25 WHEN 2 THEN NULL WHEN 84 * - 41 THEN 30 * + ( 24 ) ELSE NULL END + COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 42 * 19 AS col0
----
798

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1370
SELECT ALL 29 / - CAST( NULL AS SIGNED ) * + 95 * - 53 / 70 * - 94 / + + COUNT( * ) * + CASE + SUM( DISTINCT + 47 ) WHEN - COUNT( * ) THEN - 97 + + 81 * COUNT( * ) ELSE NULL END * - + 3 + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL 29 / - CAST ( NULL AS INTEGER ) * + 95 * - 53 / 70 * - 94 / + + COUNT ( * ) * + CASE + SUM ( DISTINCT + 47 ) WHEN - COUNT ( * ) THEN - 97 + + 81 * COUNT ( * ) ELSE NULL END * - + 3 + 34
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1371
SELECT DISTINCT ( - 75 ) DIV 19 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1371
SELECT DISTINCT ( - 75 ) / 19 AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1372
SELECT DISTINCT CAST( NULL AS SIGNED ) / + CASE 34 WHEN - 62 THEN + 30 WHEN - MAX( + 56 ) + - COUNT( * ) THEN - 73 * ( + + SUM( CAST( NULL AS DECIMAL ) ) ) ELSE - 88 END + + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + CASE 34 WHEN - 62 THEN + 30 WHEN - MAX ( + 56 ) + - COUNT ( * ) THEN - 73 * ( + + SUM ( CAST ( NULL AS REAL ) ) ) ELSE - 88 END + + 8 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT + NULLIF ( - MAX( - 82 ), - 72 ) - ( + 28 )
----
54

skipif mysql # not compatible
query I rowsort label-1373
SELECT + NULLIF ( - MAX ( - 82 ), - 72 ) - ( + 28 )
----
54

query I rowsort
SELECT ALL 6 * - 2 col0
----
-12

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1378
SELECT + CASE + NULLIF ( ( + 51 ), + 72 ) WHEN - COUNT( * ) THEN COUNT( DISTINCT - + 38 ) WHEN + 94 THEN NULL END / - 27 + - CAST( NULL AS SIGNED ) - + 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1378
SELECT + CASE + NULLIF ( ( + 51 ), + 72 ) WHEN - COUNT ( * ) THEN COUNT ( DISTINCT - + 38 ) WHEN + 94 THEN NULL END / - 27 + - CAST ( NULL AS INTEGER ) - + 30 AS col0
----
NULL

query I rowsort
SELECT - 63 * 48 AS col0
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT CASE + - 32 WHEN + - 95 THEN + - 11 * 15 + + AVG ( - - 10 ) * ( 0 ) WHEN + 12 THEN NULL ELSE - COUNT( * ) END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1380
SELECT CASE + - 32 WHEN + - 95 THEN + - 11 * 15 + + AVG ( - - 10 ) * ( 0 ) WHEN + 12 THEN NULL ELSE - COUNT ( * ) END AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT ALL - 54 * 97 + + + COUNT( - 45 ) AS col0
----
-5237

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL - 54 * 97 + + + COUNT ( - 45 ) AS col0
----
-5237

onlyif mysql # DIV for integer division: 
query I rowsort label-1382
SELECT ALL 57 DIV + 57 col1
----
1

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL 57 / + 57 col1
----
1

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

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

query I rowsort
SELECT ALL + 29 * - 44 AS col1
----
-1276

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

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

query I rowsort
SELECT + - 79 + + 33
----
-46

query I rowsort
SELECT - + 74 * - 90 - + + 90
----
6570

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT COUNT( - 97 ) + + 54 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-1390
SELECT COUNT ( - 97 ) + + 54 AS col2
----
55

query I rowsort
SELECT ALL + - 52 * - - 81 * 44
----
-185328

query I rowsort
SELECT 27 * - + 77 * - 62 AS col2
----
128898

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT DISTINCT - NULLIF ( + 48, COUNT( * ) )
----
-48

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT - NULLIF ( + 48, COUNT ( * ) )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1394
SELECT DISTINCT + 91 * - CASE MAX( 31 ) WHEN - 73 + + - CAST( NULL AS SIGNED ) * - 97 * - MIN( + 40 ) THEN + ( + SUM( DISTINCT 64 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT + 91 * - CASE MAX ( 31 ) WHEN - 73 + + - CAST ( NULL AS INTEGER ) * - 97 * - MIN ( + 40 ) THEN + ( + SUM ( DISTINCT 64 ) ) END
----
NULL

query I rowsort
SELECT - 20 + + 1 * - - 64
----
44

query I rowsort
SELECT + 29 * + 38
----
1102

query I rowsort
SELECT 65 + - + 88 + 27
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1398
SELECT ALL + + 76 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL + + 76 / + 93
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1399
SELECT + COUNT( * ), COUNT( * ) * + 87 col0
----
1
87

skipif mysql # not compatible
query II rowsort label-1399
SELECT + COUNT ( * ), COUNT ( * ) * + 87 col0
----
1
87

query I rowsort
SELECT - 96 * - + 20
----
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT SUM( ALL 43 ) - + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-1401
SELECT SUM ( ALL 43 ) - + COUNT ( * )
----
42

query I rowsort
SELECT 36 * - 30
----
-1080

query II rowsort
SELECT 71 col2, - 99
----
71
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT ALL - 17 + 86 + + ( MAX( + 30 ) ) col2
----
99

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL - 17 + 86 + + ( MAX ( + 30 ) ) col2
----
99

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1406
SELECT COUNT( * ) DIV + + 83 - + + 70 AS col2
----
-70

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

query I rowsort
SELECT ALL + 44 * + + 19 * - 85 AS col1
----
-71060

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT MIN( DISTINCT + 36 ) * + 9 AS col2
----
324

skipif mysql # not compatible
query I rowsort label-1408
SELECT MIN ( DISTINCT + 36 ) * + 9 AS col2
----
324

query I rowsort
SELECT + 25 * 26 * + ( 82 ) - + 81 + 33 * 24
----
54011

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1410
SELECT 61 + - CASE - - 0 WHEN + 48 THEN - 0 DIV + SUM( - 33 ) ELSE 40 END
----
21

skipif mysql # not compatible
query I rowsort label-1410
SELECT 61 + - CASE - - 0 WHEN + 48 THEN - 0 / + SUM ( - 33 ) ELSE 40 END
----
21

query I rowsort
SELECT DISTINCT - 55 - 98 AS col1
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1412
SELECT CASE + CAST( NULL AS SIGNED ) WHEN + - 81 THEN + 22 / - 97 WHEN CAST( - 17 AS SIGNED ) * + COUNT( * ) / + ( 19 ) - - - 81 THEN NULL END * - + CAST( NULL AS SIGNED ) + + 50 * + 8 * - + MIN( DISTINCT - - ( - 68 ) ) + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-1412
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN + - 81 THEN + 22 / - 97 WHEN CAST ( - 17 AS INTEGER ) * + COUNT ( * ) / + ( 19 ) - - - 81 THEN NULL END * - + CAST ( NULL AS INTEGER ) + + 50 * + 8 * - + MIN ( DISTINCT - - ( - 68 ) ) + 62
----
NULL

query II rowsort
SELECT ALL - 22 AS col0, 64
----
-22
64

query I rowsort
SELECT ALL 16 * - 36 AS col0
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT 96 + + - 49 - - - 98 + - 67 * + COUNT( * ) AS col0
----
-118

skipif mysql # not compatible
query I rowsort label-1415
SELECT 96 + + - 49 - - - 98 + - 67 * + COUNT ( * ) AS col0
----
-118

query II rowsort
SELECT ALL - 67, 55 col1
----
-67
55

onlyif mysql # DIV for integer division: 
query I rowsort label-1417
SELECT DISTINCT 54 * - 97 + + 60 + - 2 + 25 * + 65 - - 48 DIV - + 35 AS col1
----
-3556

skipif mysql # not compatible
query I rowsort label-1417
SELECT DISTINCT 54 * - 97 + + 60 + - 2 + 25 * + 65 - - 48 / - + 35 AS col1
----
-3556

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT ALL - MIN( DISTINCT - - 6 ) col0
----
-6

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL - MIN ( DISTINCT - - 6 ) col0
----
-6

query II rowsort
SELECT 17 col2, - 76
----
17
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT + 12 * 14 * + 17 + + 73 + + + 95 + - + 80 + - COALESCE ( 13, - 68 ) + ( CASE + 96 WHEN - COALESCE ( - - 84, - 74 ) * + 31 THEN NULL WHEN + MAX( DISTINCT 18 ) / - COUNT( 94 * - 57 ) THEN NULL ELSE + COUNT( * ) END )
----
2932

skipif mysql # not compatible
query I rowsort label-1420
SELECT + 12 * 14 * + 17 + + 73 + + + 95 + - + 80 + - COALESCE ( 13, - 68 ) + ( CASE + 96 WHEN - COALESCE ( - - 84, - 74 ) * + 31 THEN NULL WHEN + MAX ( DISTINCT 18 ) / - COUNT ( 94 * - 57 ) THEN NULL ELSE + COUNT ( * ) END )
----
2932

onlyif mysql # aggregate syntax: 
query II rowsort label-1421
SELECT + 95 AS col2, + SUM( DISTINCT - 2 ) AS col2
----
95
-2

skipif mysql # not compatible
query II rowsort label-1421
SELECT + 95 AS col2, + SUM ( DISTINCT - 2 ) AS col2
----
95
-2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1423
SELECT - - 25 * 50 + CAST( - - 12 AS SIGNED ) + - 89 + + 29 * - + MIN( DISTINCT - 31 ) + 21
----
2093

skipif mysql # not compatible
query I rowsort label-1423
SELECT - - 25 * 50 + CAST ( - - 12 AS INTEGER ) + - 89 + + 29 * - + MIN ( DISTINCT - 31 ) + 21
----
2093

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

query I rowsort
SELECT 88 + + 6 AS col0
----
94

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

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL - + COUNT ( * ) * + + MIN ( + NULLIF ( CAST ( NULL AS INTEGER ), - 71 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1427
SELECT 19 DIV + 93 - - + 91 + MIN( 42 )
----
133

skipif mysql # not compatible
query I rowsort label-1427
SELECT 19 / + 93 - - + 91 + MIN ( 42 )
----
133

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

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

query I rowsort
SELECT DISTINCT + - 74 * - - CASE 6 WHEN + 85 THEN - 82 ELSE 10 END AS col1
----
-740

query I rowsort
SELECT 57 + - 54 - 76 AS col2
----
-73

query I rowsort
SELECT DISTINCT - - 99 + + 45 AS col0
----
144

query I rowsort
SELECT ALL + 40 + - 22
----
18

query I rowsort
SELECT ALL - 85 + + 0 + + ( - - 27 ) col2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-1434
SELECT DISTINCT MAX( ALL + 18 ) AS col0, 79 * - - CASE 47 WHEN + + 38 THEN NULL ELSE - - 47 + + 1 END * + 39
----
18
147888

skipif mysql # not compatible
query II rowsort label-1434
SELECT DISTINCT MAX ( ALL + 18 ) AS col0, 79 * - - CASE 47 WHEN + + 38 THEN NULL ELSE - - 47 + + 1 END * + 39
----
18
147888

onlyif mysql # aggregate syntax: 
query II rowsort label-1435
SELECT DISTINCT - 67 + + ( - - 24 ) + + - 8 + 83, COUNT( * ) * + ( COALESCE ( - 0, + + 78, COUNT( * ) ) ) * 47 + - + 74 AS col0
----
32
-74

skipif mysql # not compatible
query II rowsort label-1435
SELECT DISTINCT - 67 + + ( - - 24 ) + + - 8 + 83, COUNT ( * ) * + ( COALESCE ( - 0, + + 78, COUNT ( * ) ) ) * 47 + - + 74 AS col0
----
32
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-1436
SELECT 71 + 94, COUNT( * ) AS col2
----
165
1

skipif mysql # not compatible
query II rowsort label-1436
SELECT 71 + 94, COUNT ( * ) AS col2
----
165
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1437
SELECT ALL - 86 + + 66 + - 25 - - 8 - 42 * + CAST( NULL AS DECIMAL ) * - COUNT( * ) + - COUNT( + CAST( 16 AS SIGNED ) ) + 70 * - 25 col2, COUNT( DISTINCT + + 82 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1437
SELECT ALL - 86 + + 66 + - 25 - - 8 - 42 * + CAST ( NULL AS REAL ) * - COUNT ( * ) + - COUNT ( + CAST ( 16 AS INTEGER ) ) + 70 * - 25 col2, COUNT ( DISTINCT + + 82 )
----
NULL
1

query I rowsort
SELECT 55 - - - 53 + + 21 * 81
----
1703

query I rowsort
SELECT 0 * + 84 * ( - 3 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1440
SELECT ALL AVG ( - - 4 ) * - ( - + 74 ) * 34 * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - COUNT( * ) - 79 - - 79 * + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL AVG ( - - 4 ) * - ( - + 74 ) * 34 * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - COUNT ( * ) - 79 - - 79 * + 40
----
NULL

query I rowsort
SELECT DISTINCT - 68 * 10 AS col0
----
-680

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT MIN( 77 ) * - 18 * - 47 col0
----
65142

skipif mysql # not compatible
query I rowsort label-1442
SELECT MIN ( 77 ) * - 18 * - 47 col0
----
65142

query I rowsort
SELECT 90 * - 7
----
-630

query I rowsort
SELECT ALL - 51 * - + 55 AS col0
----
2805

query I rowsort
SELECT DISTINCT + 96 * 16
----
1536

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT DISTINCT COUNT( * ) / + CASE - 97 WHEN - 92 THEN NULL WHEN + COUNT( * ) THEN - + 26 * MAX( ALL + - 76 ) + - + 52 ELSE NULL END * 93 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT COUNT ( * ) / + CASE - 97 WHEN - 92 THEN NULL WHEN + COUNT ( * ) THEN - + 26 * MAX ( ALL + - 76 ) + - + 52 ELSE NULL END * 93 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT COUNT( - - NULLIF ( - ( ( - 46 ) ), - - 91 - + + ( + 98 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1447
SELECT COUNT ( - - NULLIF ( - ( ( - 46 ) ), - - 91 - + + ( + 98 ) ) ) AS col2
----
1

query I rowsort
SELECT 76 - 89 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-1449
SELECT MIN( - + 24 ), - ( - - 10 ) AS col0
----
-24
-10

skipif mysql # not compatible
query II rowsort label-1449
SELECT MIN ( - + 24 ), - ( - - 10 ) AS col0
----
-24
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1450
SELECT SUM( DISTINCT + COALESCE ( CAST( + 12 AS SIGNED ), - 22 ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-1450
SELECT SUM ( DISTINCT + COALESCE ( CAST ( + 12 AS INTEGER ), - 22 ) ) AS col2
----
12

query I rowsort
SELECT DISTINCT - COALESCE ( + - 80, + 22 * 97 ) col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1452
SELECT + - COALESCE ( 25, - + 93 * + - 27 * ( - 72 ), COUNT( + 92 ) * - - 36 DIV COUNT( ALL 86 ) * + 91 * + + 20 - - 38 * 22 + 90 ) * + + COALESCE ( 41, COUNT( * ) + 66, + 62 ) AS col0
----
-1025

skipif mysql # not compatible
query I rowsort label-1452
SELECT + - COALESCE ( 25, - + 93 * + - 27 * ( - 72 ), COUNT ( + 92 ) * - - 36 / COUNT ( ALL 86 ) * + 91 * + + 20 - - 38 * 22 + 90 ) * + + COALESCE ( 41, COUNT ( * ) + 66, + 62 ) AS col0
----
-1025

query I rowsort
SELECT ALL - 2 * + 87
----
-174

query I rowsort
SELECT + - 97 - 30 AS col1
----
-127

query I rowsort
SELECT DISTINCT ( - 99 ) + + + 24 col0
----
-75

query I rowsort
SELECT - - 53 + 10
----
63

query I rowsort
SELECT + 2 * - 28 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT + NULLIF ( - 0, + - COUNT( * ) + - 29 ) + + 51
----
51

skipif mysql # not compatible
query I rowsort label-1458
SELECT + NULLIF ( - 0, + - COUNT ( * ) + - 29 ) + + 51
----
51

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

query I rowsort
SELECT + 55 + + 44 * + 12
----
583

onlyif mysql # DIV for integer division: 
query I rowsort label-1461
SELECT ALL - 1 + COALESCE ( - ( + 50 ), - 41 ) DIV + - 88 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL - 1 + COALESCE ( - ( + 50 ), - 41 ) / + - 88 AS col1
----
-1

query I rowsort
SELECT ALL + + 9 + 21 - 61 * - - 25
----
-1495

onlyif mysql # aggregate syntax: 
query II rowsort label-1463
SELECT DISTINCT COUNT( * ), 8 col1
----
1
8

skipif mysql # not compatible
query II rowsort label-1463
SELECT DISTINCT COUNT ( * ), 8 col1
----
1
8

query I rowsort
SELECT ALL + 44 * + 4
----
176

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

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

query I rowsort
SELECT DISTINCT COALESCE ( + - 91, + ( 12 ) * 54, 15 * + 8 * + + 74 + + 59 ) + + 52 + - - 66
----
27

query I rowsort
SELECT ALL - 81 * + 89 AS col2
----
-7209

query II rowsort
SELECT - 10 AS col1, - 89 * - + 92 col1
----
-10
8188

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1470
SELECT 83 AS col0, COALESCE ( - - COALESCE ( 60, + 68 + + 82 - 71, + COUNT( * ) * + 66 + 54 DIV ( - 36 ) - - 91 ), - 1 - + 6 DIV - + 17 ) + + - MIN( + - 83 ) AS col1
----
83
143

skipif mysql # not compatible
query II rowsort label-1470
SELECT 83 AS col0, COALESCE ( - - COALESCE ( 60, + 68 + + 82 - 71, + COUNT ( * ) * + 66 + 54 / ( - 36 ) - - 91 ), - 1 - + 6 / - + 17 ) + + - MIN ( + - 83 ) AS col1
----
83
143

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

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

query I rowsort
SELECT ALL - 82 * + - 99
----
8118

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT - 47 - MIN( 26 )
----
-73

skipif mysql # not compatible
query I rowsort label-1473
SELECT - 47 - MIN ( 26 )
----
-73

query I rowsort
SELECT ALL NULLIF ( - - 34, - 52 ) AS col2
----
34

query I rowsort
SELECT - 35 * 28
----
-980

query I rowsort
SELECT ALL 40 * + 90 AS col1
----
3600

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1478
SELECT ALL + CAST( - + 72 AS SIGNED ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL + CAST ( - + 72 AS INTEGER ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT ALL + NULLIF ( 89, - - COUNT( * ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL + NULLIF ( 89, - - COUNT ( * ) ) AS col2
----
89

query I rowsort
SELECT - 5 * - 32 AS col0
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1481
SELECT 10 / + + 13 + - COUNT( * ) * ( - 94 ) + 95 + + + 52 + + + CASE + + 60 WHEN - 56 THEN - + 64 - + - 96 * + + 3 * 5 END * CAST( NULL AS SIGNED ) * - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-1481
SELECT 10 / + + 13 + - COUNT ( * ) * ( - 94 ) + 95 + + + 52 + + + CASE + + 60 WHEN - 56 THEN - + 64 - + - 96 * + + 3 * 5 END * CAST ( NULL AS INTEGER ) * - 99
----
NULL

query I rowsort
SELECT - 78 * 56 - - + 33 AS col2
----
-4335

onlyif mysql # DIV for integer division: 
query I rowsort label-1483
SELECT - 57 DIV - 40 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1483
SELECT - 57 / - 40 AS col1
----
1

query I rowsort
SELECT + - 74 * + + 94 + 13 * + 14 + + 33
----
-6741

query I rowsort
SELECT 17 * 81 * + 36 + - - 84 + + + 24 + - ( - - 91 ) AS col0
----
49589

onlyif mysql # DIV for integer division: 
query I rowsort label-1486
SELECT - + 42 DIV + 56 - 83 * 54 * ( - 85 ) AS col0
----
380970

skipif mysql # not compatible
query I rowsort label-1486
SELECT - + 42 / + 56 - 83 * 54 * ( - 85 ) AS col0
----
380970

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT ALL - 2 * + + 76 + - 22 - + COUNT( * ) * 80
----
-254

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL - 2 * + + 76 + - 22 - + COUNT ( * ) * 80
----
-254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1488
SELECT - + 88 * COUNT( * ) DIV ( - 60 ) + - - COUNT( * ) - + 63 * 75 + - 13
----
-4736

skipif mysql # not compatible
query I rowsort label-1488
SELECT - + 88 * COUNT ( * ) / ( - 60 ) + - - COUNT ( * ) - + 63 * 75 + - 13
----
-4736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1489
SELECT ALL - 23 * + 83 / + 13 + + + AVG ( 39 ) + ( + - CAST( NULL AS SIGNED ) ) * - COALESCE ( - - 64, 98 ) * 51 + + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL - 23 * + 83 / + 13 + + + AVG ( 39 ) + ( + - CAST ( NULL AS INTEGER ) ) * - COALESCE ( - - 64, 98 ) * 51 + + 46 AS col2
----
NULL

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

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

query I rowsort
SELECT - - 65 * 95
----
6175

query II rowsort
SELECT DISTINCT + + 65 AS col0, 67 * - 7 * - ( - 56 )
----
65
-26264

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1493
SELECT - 40 * - 78 * 51 * - CAST( NULL AS DECIMAL ) + + 76 + NULLIF ( + 48, - 55 * + COUNT( * ) * - 8 + + + 70 - + + COALESCE ( + - 12, 33 / - 71 + + + ( - - ( COUNT( * ) ) ) * + 1 + + 41, 50 ) ) * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1493
SELECT - 40 * - 78 * 51 * - CAST ( NULL AS REAL ) + + 76 + NULLIF ( + 48, - 55 * + COUNT ( * ) * - 8 + + + 70 - + + COALESCE ( + - 12, 33 / - 71 + + + ( - - ( COUNT ( * ) ) ) * + 1 + + 41, 50 ) ) * + 63
----
NULL

query I rowsort
SELECT ALL - - 41 * - + 83 + 76 AS col1
----
-3327

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

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

query I rowsort
SELECT ALL - 22 * 61 * - 47 + + 65
----
63139

query II rowsort
SELECT DISTINCT 4 AS col2, 23
----
4
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT ALL ( + + COUNT( DISTINCT - + 79 ) ) * + + 81 * 33
----
2673

skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL ( + + COUNT ( DISTINCT - + 79 ) ) * + + 81 * 33
----
2673

query I rowsort
SELECT + 3 * + + 16 AS col1
----
48

query II rowsort
SELECT ALL 72 + - 19 + + 6 * 29 + + 10 + + 7, + 10 AS col2
----
244
10

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

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

query I rowsort
SELECT DISTINCT 42 * - 21
----
-882

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1503
SELECT + MAX( ALL + - 33 ) DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-1503
SELECT + MAX ( ALL + - 33 ) / - 62
----
0

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

query II rowsort
SELECT + ( 79 ) * + + ( 88 ), 63 AS col2
----
6952
63

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1507
SELECT + 11 * + 4 AS col1, - 60 * + COUNT( * )
----
44
-60

skipif mysql # not compatible
query II rowsort label-1507
SELECT + 11 * + 4 AS col1, - 60 * + COUNT ( * )
----
44
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1508
SELECT ALL COALESCE ( + + CAST( NULL AS SIGNED ), - 30 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-1508
SELECT ALL COALESCE ( + + CAST ( NULL AS INTEGER ), - 30 ) AS col0
----
-30

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

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

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

skipif mysql # not compatible
query I rowsort label-1510
SELECT + ( + 58 ) / - + COUNT ( * ) + + 49
----
-9

query I rowsort
SELECT + 5 + - - 3 + - 64
----
-56

query I rowsort
SELECT - 81 * + - 56 AS col2
----
4536

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1513
SELECT 21 + NULLIF ( - ( 13 ), + 72 * + 46 ) + COUNT( * ) DIV + + 26 + - 10, + COUNT( * ) + - + MAX( ( - 31 ) ) AS col2
----
-2
32

skipif mysql # not compatible
query II rowsort label-1513
SELECT 21 + NULLIF ( - ( 13 ), + 72 * + 46 ) + COUNT ( * ) / + + 26 + - 10, + COUNT ( * ) + - + MAX ( ( - 31 ) ) AS col2
----
-2
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1514
SELECT DISTINCT - 33 * - SUM( + + ( + 28 ) ) AS col1, COUNT( 54 ) * - - 65 + 70 + 56 / - 80 - + CAST( NULL AS SIGNED ) + + 30 / + COUNT( * ) / - COUNT( DISTINCT - 38 ) AS col0
----
924
NULL

skipif mysql # not compatible
query II rowsort label-1514
SELECT DISTINCT - 33 * - SUM ( + + ( + 28 ) ) AS col1, COUNT ( 54 ) * - - 65 + 70 + 56 / - 80 - + CAST ( NULL AS INTEGER ) + + 30 / + COUNT ( * ) / - COUNT ( DISTINCT - 38 ) AS col0
----
924
NULL

query I rowsort
SELECT COALESCE ( + 54, 36 ) AS col2
----
54

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

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

query I rowsort
SELECT DISTINCT - 8 + - 82 AS col2
----
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1518
SELECT ALL + + CAST( NULL AS DECIMAL ) + - 42 - 89 / + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL + + CAST ( NULL AS REAL ) + - 42 - 89 / + 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1519
SELECT ALL - 75 + + - 3 * + 93 - - - CASE + - 53 WHEN + + COUNT( * ) THEN + + CAST( + NULLIF ( 96, + - 38 ) AS SIGNED ) + - + SUM( 88 ) - + 24 + + 78 + + 73 - + 97 * + AVG ( + 63 ) * + 43 / 42 * 25 END + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL - 75 + + - 3 * + 93 - - - CASE + - 53 WHEN + + COUNT ( * ) THEN + + CAST ( + NULLIF ( 96, + - 38 ) AS INTEGER ) + - + SUM ( 88 ) - + 24 + + 78 + + 73 - + 97 * + AVG ( + 63 ) * + 43 / 42 * 25 END + COUNT ( * ) AS col2
----
NULL

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

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

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

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

query I rowsort
SELECT 17 * - 97
----
-1649

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT + NULLIF ( - 67, 89 * - 14 * - - COUNT( DISTINCT - 53 ) + + 20 )
----
-67

skipif mysql # not compatible
query I rowsort label-1523
SELECT + NULLIF ( - 67, 89 * - 14 * - - COUNT ( DISTINCT - 53 ) + + 20 )
----
-67

query II rowsort
SELECT + + ( - + 84 ), - 7 * - 46 * 11 AS col1
----
-84
3542

query I rowsort
SELECT ALL - - 5 + 14
----
19

query I rowsort
SELECT DISTINCT + + 75 - - 29 * - 89
----
-2506

query I rowsort
SELECT ALL + - NULLIF ( + 92, - 59 ) - NULLIF ( + - 74, + 89 ) + + 72 AS col2
----
54

query I rowsort
SELECT ( 74 ) * 75 + 90
----
5640

query I rowsort
SELECT + 96 * - 48 AS col2
----
-4608

query I rowsort
SELECT + 40 + - 72 + 93 AS col2
----
61

query I rowsort
SELECT 84 * + + 34 AS col0
----
2856

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT 55 + + - 54 * - - CASE - 38 WHEN 29 + 53 + + - 76 * - + 97 * 86 + + ( - - 88 ) * - 97 / + - 47 THEN NULL WHEN + 41 THEN - - 79 WHEN + 43 THEN + 0 ELSE - MAX( + 27 ) END * + - 41
----
-59723

skipif mysql # not compatible
query I rowsort label-1532
SELECT 55 + + - 54 * - - CASE - 38 WHEN 29 + 53 + + - 76 * - + 97 * 86 + + ( - - 88 ) * - 97 / + - 47 THEN NULL WHEN + 41 THEN - - 79 WHEN + 43 THEN + 0 ELSE - MAX ( + 27 ) END * + - 41
----
-59723

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT COUNT( * ) - - COUNT( * ) * - 43 + + - 81
----
-123

skipif mysql # not compatible
query I rowsort label-1534
SELECT COUNT ( * ) - - COUNT ( * ) * - 43 + + - 81
----
-123

query II rowsort
SELECT 40 col2, 89 col2
----
40
89

query II rowsort
SELECT - 40 AS col0, - 36
----
-40
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1537
SELECT DISTINCT CAST( 91 AS SIGNED ) DIV - MAX( - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-1537
SELECT DISTINCT CAST ( 91 AS INTEGER ) / - MAX ( - 46 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1538
SELECT ALL NULLIF ( - MIN( CAST( NULL AS SIGNED ) ), - 69 ) + + COUNT( * ) / - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL NULLIF ( - MIN ( CAST ( NULL AS INTEGER ) ), - 69 ) + + COUNT ( * ) / - 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT + 28 - + COUNT( * ) * COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-1539
SELECT + 28 - + COUNT ( * ) * COUNT ( * )
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1540
SELECT DISTINCT - ( - COUNT( * ) ) + COALESCE ( + CASE + - ( 34 ) WHEN + - 74 + + 4 THEN + 2 * + COUNT( * ) + 54 + + 93 * 65 WHEN - ( - - COUNT( * ) ) THEN - 51 ELSE - 14 - - 3 * + 87 + + 8 + - 80 DIV 68 * 37 END, - 59, - 17 + 69 * 92 ) AS col2
----
219

skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT - ( - COUNT ( * ) ) + COALESCE ( + CASE + - ( 34 ) WHEN + - 74 + + 4 THEN + 2 * + COUNT ( * ) + 54 + + 93 * 65 WHEN - ( - - COUNT ( * ) ) THEN - 51 ELSE - 14 - - 3 * + 87 + + 8 + - 80 / 68 * 37 END, - 59, - 17 + 69 * 92 ) AS col2
----
219

query I rowsort
SELECT ALL - NULLIF ( - 52, - 70 - - + 44 )
----
52

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

skipif mysql # not compatible
query I rowsort label-1542
SELECT + 55 * 51 + + COUNT ( * ) AS col0
----
2806

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

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

query I rowsort
SELECT + + CASE - 89 WHEN + NULLIF ( 77, + 16 * - 90 ) THEN - 7 + COALESCE ( 91, - + 98 * - + 1 - - NULLIF ( 16, + - ( - ( - COALESCE ( - + 92, + 30, - 69 * 42 ) ) ) ) ) ELSE 23 + 37 END AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1545
SELECT - - ( + MIN( CAST( NULL AS DECIMAL ) ) ) * 31 + - + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1545
SELECT - - ( + MIN ( CAST ( NULL AS REAL ) ) ) * 31 + - + 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT ALL - CASE COUNT( * ) WHEN - - 86 THEN NULL ELSE - + ( - - COUNT( * ) ) + - - ( - - 13 ) * + 29 END + 74
----
-302

skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL - CASE COUNT ( * ) WHEN - - 86 THEN NULL ELSE - + ( - - COUNT ( * ) ) + - - ( - - 13 ) * + 29 END + 74
----
-302

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1548
SELECT SUM( ALL - - 93 ) * - + COUNT( * ) + - + COUNT( * ) - - 46 * - 66 * + - 93 DIV - COUNT( - + 35 ) AS col2
----
-282442

skipif mysql # not compatible
query I rowsort label-1548
SELECT SUM ( ALL - - 93 ) * - + COUNT ( * ) + - + COUNT ( * ) - - 46 * - 66 * + - 93 / - COUNT ( - + 35 ) AS col2
----
-282442

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT COALESCE ( 8, - - SUM( ALL + + 59 ) * COUNT( * ) + - 68 * - + 16 * 7 - - + 42, + - 82 ) + + 33 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-1549
SELECT COALESCE ( 8, - - SUM ( ALL + + 59 ) * COUNT ( * ) + - 68 * - + 16 * 7 - - + 42, + - 82 ) + + 33 AS col0
----
41

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

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

query I rowsort
SELECT + 71 + 99
----
170

query I rowsort
SELECT + NULLIF ( + 31, - 75 ) * COALESCE ( - 83, - + 89 ) + + 49 + + 70 * + 96
----
4196

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1553
SELECT CASE + 57 WHEN - + ( - ( + 29 ) ) + - - MAX( - 73 ) THEN 55 WHEN - COUNT( DISTINCT - - CAST( - + 40 AS DECIMAL ) ) THEN 26 ELSE NULL END * - ( + 72 ) + - - 43 + 4 + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-1553
SELECT CASE + 57 WHEN - + ( - ( + 29 ) ) + - - MAX ( - 73 ) THEN 55 WHEN - COUNT ( DISTINCT - - CAST ( - + 40 AS REAL ) ) THEN 26 ELSE NULL END * - ( + 72 ) + - - 43 + 4 + + 2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1554
SELECT + - ( 28 ) * - + MIN( ALL + 61 ) + - 88 + + - NULLIF ( - + 15, - + 84 + - MIN( + 31 ) ) * + 72 + + 86 - - 61 + - - 56 DIV - + 85 * - 42 * - ( CASE 29 WHEN + - 58 THEN NULL ELSE + 7 END ) + 9 col1
----
2856

skipif mysql # not compatible
query I rowsort label-1554
SELECT + - ( 28 ) * - + MIN ( ALL + 61 ) + - 88 + + - NULLIF ( - + 15, - + 84 + - MIN ( + 31 ) ) * + 72 + + 86 - - 61 + - - 56 / - + 85 * - 42 * - ( CASE 29 WHEN + - 58 THEN NULL ELSE + 7 END ) + 9 col1
----
2856

query III rowsort
SELECT 99 col1, CASE + 93 WHEN - 63 / - + 11 + - 59 THEN - 46 / - - 42 END + 94 AS col0, + - 83 * - 81
----
99
NULL
6723

query I rowsort
SELECT 0 + 19
----
19

query II rowsort
SELECT - 61 AS col2, 66 * - 49 * - + 22 col2
----
-61
71148

query II rowsort
SELECT DISTINCT 65, 51 * 8 AS col2
----
65
408

query I rowsort
SELECT ALL - 23 * - + 67
----
1541

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT 96 + - SUM( ALL + + 79 )
----
17

skipif mysql # not compatible
query I rowsort label-1560
SELECT 96 + - SUM ( ALL + + 79 )
----
17

query II rowsort
SELECT 31 col2, + 25
----
31
25

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

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

query I rowsort
SELECT 6 * 41 AS col0
----
246

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1566
SELECT - CAST( - 12 AS SIGNED ) - + COALESCE ( + + ( + + 31 ), COUNT( * ) DIV + COUNT( * ), - COALESCE ( - - 39, 12 * + 92 * + + 93 * 65 * - 64 * - - 6 + - 36, 64 ) DIV + 11 * 20 + MIN( DISTINCT - + 68 ) ) * ( + 62 )
----
-1910

skipif mysql # not compatible
query I rowsort label-1566
SELECT - CAST ( - 12 AS INTEGER ) - + COALESCE ( + + ( + + 31 ), COUNT ( * ) / + COUNT ( * ), - COALESCE ( - - 39, 12 * + 92 * + + 93 * 65 * - 64 * - - 6 + - 36, 64 ) / + 11 * 20 + MIN ( DISTINCT - + 68 ) ) * ( + 62 )
----
-1910

query II rowsort
SELECT - 82, NULLIF ( 55, + 11 + 86 + - 46 * - + 94 * + + 75 ) AS col0
----
-82
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1568
SELECT - CAST( - 67 AS SIGNED ) * MAX( DISTINCT + 65 ) * 8 * - + 39 * 21 AS col1
----
-28533960

skipif mysql # not compatible
query I rowsort label-1568
SELECT - CAST ( - 67 AS INTEGER ) * MAX ( DISTINCT + 65 ) * 8 * - + 39 * 21 AS col1
----
-28533960

query I rowsort
SELECT + 75 + - 91 * + + 10 AS col1
----
-835

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1570
SELECT ALL COALESCE ( COUNT( * ), - - 60 DIV + 5 * - + MAX( DISTINCT 39 ) + 15 + + SUM( + 8 ) + 55 + 30 * 75, - 45 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL COALESCE ( COUNT ( * ), - - 60 / + 5 * - + MAX ( DISTINCT 39 ) + 15 + + SUM ( + 8 ) + 55 + 30 * 75, - 45 ) AS col2
----
1

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

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

query I rowsort
SELECT ALL + 33 + + + 38 AS col1
----
71

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

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

query II rowsort
SELECT - 39 + + 33, - 2 AS col0
----
-6
-2

query I rowsort
SELECT DISTINCT + 15 + ( + + 94 ) AS col0
----
109

query I rowsort
SELECT ALL COALESCE ( + + ( 98 ), + - 83 ) AS col1
----
98

query I rowsort
SELECT + 16 + 28 AS col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1578
SELECT + 10, 49 DIV + COUNT( * ) AS col2
----
10
49

skipif mysql # not compatible
query II rowsort label-1578
SELECT + 10, 49 / + COUNT ( * ) AS col2
----
10
49

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

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

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

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

query I rowsort
SELECT + + 53 * + 23
----
1219

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1582
SELECT ALL - 42 DIV + + 27 * + COUNT( DISTINCT 51 ) AS col1, 52 AS col1
----
-1
52

skipif mysql # not compatible
query II rowsort label-1582
SELECT ALL - 42 / + + 27 * + COUNT ( DISTINCT 51 ) AS col1, 52 AS col1
----
-1
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1583
SELECT + 67, + COALESCE ( + + 5, + + COUNT( * ), - 58, - NULLIF ( - - 51, - - 96 DIV + + 74 ) + + 53 ) + CAST( - - 5 AS SIGNED ) DIV - - 83 + + 44 AS col0
----
67
49

skipif mysql # not compatible
query II rowsort label-1583
SELECT + 67, + COALESCE ( + + 5, + + COUNT ( * ), - 58, - NULLIF ( - - 51, - - 96 / + + 74 ) + + 53 ) + CAST ( - - 5 AS INTEGER ) / - - 83 + + 44 AS col0
----
67
49

query I rowsort
SELECT - 95 * - + 73 + - 66 AS col2
----
6869

query I rowsort
SELECT - 99 * + + 42 AS col0
----
-4158

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1586
SELECT ALL 39 DIV + - NULLIF ( - 10, - - COUNT( * ) DIV - 2 + - 42 ), 25 AS col2
----
3
25

skipif mysql # not compatible
query II rowsort label-1586
SELECT ALL 39 / + - NULLIF ( - 10, - - COUNT ( * ) / - 2 + - 42 ), 25 AS col2
----
3
25

query I rowsort
SELECT + 62 * + + 86 - ( + + 34 ) + + 42
----
5340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1588
SELECT ALL - CASE 30 WHEN ( - 46 ) / + CASE - 30 WHEN 16 - + 63 THEN + 20 END THEN NULL WHEN + - ( 76 ) / - CAST( NULL AS SIGNED ) THEN - 0 WHEN + COUNT( * ) THEN - - 69 END * + 41 / 31 / - - 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL - CASE 30 WHEN ( - 46 ) / + CASE - 30 WHEN 16 - + 63 THEN + 20 END THEN NULL WHEN + - ( 76 ) / - CAST ( NULL AS INTEGER ) THEN - 0 WHEN + COUNT ( * ) THEN - - 69 END * + 41 / 31 / - - 51 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1590
SELECT + 18 * 91 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1590
SELECT + 18 * 91 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 24 * + + 21
----
504

query II rowsort
SELECT ALL 42 * - - 12, - 48 AS col1
----
504
-48

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

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

query I rowsort
SELECT - 6 * - - 3 * + - 46 AS col1
----
828

query I rowsort
SELECT DISTINCT 56 * + - 64 + 2 AS col0
----
-3582

query II rowsort
SELECT + 52 + 83, 87 AS col1
----
135
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1597
SELECT + 70 DIV + + ( 53 )
----
1

skipif mysql # not compatible
query I rowsort label-1597
SELECT + 70 / + + ( 53 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1598
SELECT + CAST( NULL AS SIGNED ) + + 18 * 64 * + + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1598
SELECT + CAST ( NULL AS INTEGER ) + + 18 * 64 * + + 31 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1599
SELECT ALL 34 + - 47 + + + COUNT( * ) DIV + 39 * - - 86 + + 74
----
61

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL 34 + - 47 + + + COUNT ( * ) / + 39 * - - 86 + + 74
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1600
SELECT DISTINCT - CAST( SUM( - - 89 ) AS SIGNED ) * - - 89 * - 7 AS col1
----
55447

skipif mysql # not compatible
query I rowsort label-1600
SELECT DISTINCT - CAST ( SUM ( - - 89 ) AS INTEGER ) * - - 89 * - 7 AS col1
----
55447

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT DISTINCT + NULLIF ( - 38, - ( 39 ) ) + - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT + NULLIF ( - 38, - ( 39 ) ) + - COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT DISTINCT MIN( + 8 ) + - NULLIF ( + 27, 34 + - 60 ) + + 68 + - 54 * 86
----
-4595

skipif mysql # not compatible
query I rowsort label-1602
SELECT DISTINCT MIN ( + 8 ) + - NULLIF ( + 27, 34 + - 60 ) + + 68 + - 54 * 86
----
-4595

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1603
SELECT ALL 28 DIV - + MAX( DISTINCT + - 19 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL 28 / - + MAX ( DISTINCT + - 19 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1604
SELECT ALL + CAST( NULL AS SIGNED ) + - - 42 - - 40 * 75 + + 27 * + + 38 - - - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 42 - - 40 * 75 + + 27 * + + 38 - - - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT - 98 + 97 * 96 * - - ( - COALESCE ( - + 11, - NULLIF ( ( - COUNT( * ) ), + 71 * - 14 - 38 + - - 75 ) ) ) * + 6 + - - 60
----
614554

skipif mysql # not compatible
query I rowsort label-1605
SELECT - 98 + 97 * 96 * - - ( - COALESCE ( - + 11, - NULLIF ( ( - COUNT ( * ) ), + 71 * - 14 - 38 + - - 75 ) ) ) * + 6 + - - 60
----
614554

query I rowsort
SELECT - 75 + - - 71 AS col0
----
-4

query I rowsort
SELECT + 86 * - 39 AS col0
----
-3354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1608
SELECT - + ( - CAST( + - 15 AS SIGNED ) ) + + - COALESCE ( 7, - ( COUNT( - + 73 ) ) ) + MIN( + 12 )
----
-10

skipif mysql # not compatible
query I rowsort label-1608
SELECT - + ( - CAST ( + - 15 AS INTEGER ) ) + + - COALESCE ( 7, - ( COUNT ( - + 73 ) ) ) + MIN ( + 12 )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1609
SELECT - + 1 * + 54 DIV - + MAX( DISTINCT 31 )
----
1

skipif mysql # not compatible
query I rowsort label-1609
SELECT - + 1 * + 54 / - + MAX ( DISTINCT 31 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1610
SELECT ALL - + NULLIF ( CAST( + COUNT( * ) AS SIGNED ), - + 32 * 24 ) - + 11
----
-12

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL - + NULLIF ( CAST ( + COUNT ( * ) AS INTEGER ), - + 32 * 24 ) - + 11
----
-12

query I rowsort
SELECT DISTINCT + 94 - - 2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT - COUNT( * ) + 87 + + - 11 + 99 AS col1
----
174

skipif mysql # not compatible
query I rowsort label-1612
SELECT - COUNT ( * ) + 87 + + - 11 + 99 AS col1
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT - + 8 * - NULLIF ( + 25, + + 89 ) * COUNT( * ) AS col0
----
200

skipif mysql # not compatible
query I rowsort label-1613
SELECT - + 8 * - NULLIF ( + 25, + + 89 ) * COUNT ( * ) AS col0
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT COALESCE ( + 43, 21, - COUNT( * ) )
----
43

skipif mysql # not compatible
query I rowsort label-1614
SELECT COALESCE ( + 43, 21, - COUNT ( * ) )
----
43

query I rowsort
SELECT ALL + + ( + NULLIF ( 96, - 18 ) )
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT - 97 * 14 + - ( - - COUNT( * ) ) * 22 * 62 AS col0
----
-2722

skipif mysql # not compatible
query I rowsort label-1617
SELECT - 97 * 14 + - ( - - COUNT ( * ) ) * 22 * 62 AS col0
----
-2722

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1618
SELECT + 67 * + 75 * 44 * - ( + + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT + 67 * + 75 * 44 * - ( + + CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT - - 31 + - - 39 AS col2
----
70

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

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

query I rowsort
SELECT + 35 * + - 61 * 56 + - - 35 AS col0
----
-119525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1622
SELECT DISTINCT - CAST( 40 AS SIGNED ) * - 28 AS col2, + ( - COUNT( * ) ) * - + ( 41 ) AS col1
----
1120
41

skipif mysql # not compatible
query II rowsort label-1622
SELECT DISTINCT - CAST ( 40 AS INTEGER ) * - 28 AS col2, + ( - COUNT ( * ) ) * - + ( 41 ) AS col1
----
1120
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT - - 81 * COUNT( * ) - - 74
----
155

skipif mysql # not compatible
query I rowsort label-1623
SELECT - - 81 * COUNT ( * ) - - 74
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-1624
SELECT ALL + - SUM( + 73 ), + 53 AS col1
----
-73
53

skipif mysql # not compatible
query II rowsort label-1624
SELECT ALL + - SUM ( + 73 ), + 53 AS col1
----
-73
53

query I rowsort
SELECT + 22 * 49 + + 8
----
1086

query I rowsort
SELECT + 12 + 57 AS col2
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1627
SELECT ALL + COALESCE ( - COALESCE ( 62, 21 - 36 + 44 + - 28, - + 76 DIV + 54 ), - - MAX( + 82 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-1627
SELECT ALL + COALESCE ( - COALESCE ( 62, 21 - 36 + 44 + - 28, - + 76 / + 54 ), - - MAX ( + 82 ) )
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1628
SELECT DISTINCT 78 * - ( - + COUNT( * ) ) + - MAX( + 46 ) + + 90 + + 1 DIV 58 * - - 64 * + + 92 * - COUNT( * )
----
122

skipif mysql # not compatible
query I rowsort label-1628
SELECT DISTINCT 78 * - ( - + COUNT ( * ) ) + - MAX ( + 46 ) + + 90 + + 1 / 58 * - - 64 * + + 92 * - COUNT ( * )
----
122

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

skipif mysql # not compatible
query I rowsort label-1629
SELECT + SUM ( 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT - 59 * MIN( DISTINCT + - 57 ) AS col0
----
3363

skipif mysql # not compatible
query I rowsort label-1630
SELECT - 59 * MIN ( DISTINCT + - 57 ) AS col0
----
3363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1631
SELECT 69 * 77 * - + 8 + CAST( - 75 AS SIGNED )
----
-42579

skipif mysql # not compatible
query I rowsort label-1631
SELECT 69 * 77 * - + 8 + CAST ( - 75 AS INTEGER )
----
-42579

query I rowsort
SELECT ALL 71 + + 25 + + 16 AS col1
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1633
SELECT ( + 32 ) DIV - + 75 * + + 24 * - 80 DIV - - COUNT( * ) * + 22 - + 50
----
-50

skipif mysql # not compatible
query I rowsort label-1633
SELECT ( + 32 ) / - + 75 * + + 24 * - 80 / - - COUNT ( * ) * + 22 - + 50
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT MIN( + - 66 ) * + ( - 80 ) AS col1
----
5280

skipif mysql # not compatible
query I rowsort label-1634
SELECT MIN ( + - 66 ) * + ( - 80 ) AS col1
----
5280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1635
SELECT - ( 92 ) * + 68 + 24 / + CAST( NULL AS SIGNED ) * 38 * - + 24 / - COUNT( * ), - 89 AS col0
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-1635
SELECT - ( 92 ) * + 68 + 24 / + CAST ( NULL AS INTEGER ) * 38 * - + 24 / - COUNT ( * ), - 89 AS col0
----
NULL
-89

query I rowsort
SELECT ALL 23 + 68 + + + 93 - + 32
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT 99 * CASE 42 WHEN - COUNT( * ) * - 33 + - - 39 + NULLIF ( - COUNT( * ), 59 * + 10 + COALESCE ( + - 63, + ( - 76 ) ) ) THEN - 39 * + - 29 + - 78 WHEN - 21 + + 81 + + 39 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1637
SELECT 99 * CASE 42 WHEN - COUNT ( * ) * - 33 + - - 39 + NULLIF ( - COUNT ( * ), 59 * + 10 + COALESCE ( + - 63, + ( - 76 ) ) ) THEN - 39 * + - 29 + - 78 WHEN - 21 + + 81 + + 39 THEN NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1639
SELECT DISTINCT 58 + + MIN( DISTINCT - ( - + 52 ) ) * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1639
SELECT DISTINCT 58 + + MIN ( DISTINCT - ( - + 52 ) ) * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + 43 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1641
SELECT COUNT( * ) * - CASE - - CAST( - 24 AS SIGNED ) WHEN - COUNT( * ) + - 80 THEN + - 90 + - 25 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1641
SELECT COUNT ( * ) * - CASE - - CAST ( - 24 AS INTEGER ) WHEN - COUNT ( * ) + - 80 THEN + - 90 + - 25 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1642
SELECT DISTINCT 22 + + 60 DIV - 23 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-1642
SELECT DISTINCT 22 + + 60 / - 23 AS col2
----
20

query II rowsort
SELECT - 91, + 43 col2
----
-91
43

query II rowsort
SELECT 99 AS col1, + 95
----
99
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT ALL SUM( DISTINCT + - 69 ) - - 90 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL SUM ( DISTINCT + - 69 ) - - 90 AS col0
----
21

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

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

query II rowsort
SELECT 50 * + ( + 86 ) AS col0, 15
----
4300
15

query I rowsort
SELECT - 88 * + 97
----
-8536

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1649
SELECT ALL - - 96 - + + 17 + + 66 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL - - 96 - + + 17 + + 66 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1650
SELECT DISTINCT 76 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT 76 / 94
----
0

query I rowsort
SELECT ALL + - 66 * - 30 AS col1
----
1980

query I rowsort
SELECT + ( - + 34 ) col0
----
-34

query II rowsort
SELECT 94 col1, 48 AS col2
----
94
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT + 81 DIV - 63
----
-1

skipif mysql # not compatible
query I rowsort label-1654
SELECT + 81 / - 63
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1655
SELECT ( 10 ) DIV - 77 * 53 * + 96 col1
----
0

skipif mysql # not compatible
query I rowsort label-1655
SELECT ( 10 ) / - 77 * 53 * + 96 col1
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1657
SELECT - 52 AS col2, + MAX( + 38 ) AS col0
----
-52
38

skipif mysql # not compatible
query II rowsort label-1657
SELECT - 52 AS col2, + MAX ( + 38 ) AS col0
----
-52
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1658
SELECT ALL 74 * + - 18 - - COUNT( * ) * - - CASE MIN( 98 ) WHEN + 68 THEN + + CAST( 43 AS SIGNED ) END + SUM( ALL + 36 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL 74 * + - 18 - - COUNT ( * ) * - - CASE MIN ( 98 ) WHEN + 68 THEN + + CAST ( 43 AS INTEGER ) END + SUM ( ALL + 36 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1659
SELECT DISTINCT - ( - CAST( 31 AS SIGNED ) ), + 93 AS col1
----
31
93

skipif mysql # not compatible
query II rowsort label-1659
SELECT DISTINCT - ( - CAST ( 31 AS INTEGER ) ), + 93 AS col1
----
31
93

query I rowsort
SELECT ALL + 99 + - 81 AS col1
----
18

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

query II rowsort
SELECT DISTINCT - + 96 AS col1, 0 * + + 63 AS col2
----
-96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT ALL - - 11 + + COUNT( * ) - + 40 * - 87 * - + COUNT( * ) + + + 54 * - ( - 81 ) AS col2
----
906

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL - - 11 + + COUNT ( * ) - + 40 * - 87 * - + COUNT ( * ) + + + 54 * - ( - 81 ) AS col2
----
906

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1664
SELECT DISTINCT + - 49 + + - ( + 76 ), CAST( - 57 AS SIGNED ) * - 3 + 27 + + 36 * COUNT( * ) AS col2
----
-125
234

skipif mysql # not compatible
query II rowsort label-1664
SELECT DISTINCT + - 49 + + - ( + 76 ), CAST ( - 57 AS INTEGER ) * - 3 + 27 + + 36 * COUNT ( * ) AS col2
----
-125
234

onlyif mysql # aggregate syntax: 
query II rowsort label-1665
SELECT ALL - SUM( + 8 ) + COUNT( * ) + 5 * - 36 AS col2, 77 AS col1
----
-187
77

skipif mysql # not compatible
query II rowsort label-1665
SELECT ALL - SUM ( + 8 ) + COUNT ( * ) + 5 * - 36 AS col2, 77 AS col1
----
-187
77

query I rowsort
SELECT ALL + 74 * + + 85
----
6290

onlyif mysql # DIV for integer division: 
query I rowsort label-1667
SELECT 99 DIV 14
----
7

skipif mysql # not compatible
query I rowsort label-1667
SELECT 99 / 14
----
7

query I rowsort
SELECT ALL + 1 + 87 AS col0
----
88

query I rowsort
SELECT 15 - 40 + - 62
----
-87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT 98 + ( + 18 ) * COUNT( * ) * - 16 AS col0
----
-190

skipif mysql # not compatible
query I rowsort label-1671
SELECT 98 + ( + 18 ) * COUNT ( * ) * - 16 AS col0
----
-190

query I rowsort
SELECT 38 * + 95 - COALESCE ( + 74, - - 87 ) + + + 11 * - 27 + + 26 AS col1
----
3265

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1673
SELECT ALL CAST( - 45 AS SIGNED ) DIV 47 * + + 79
----
0

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL CAST ( - 45 AS INTEGER ) / 47 * + + 79
----
0

query I rowsort
SELECT 24 + - - 51 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT MIN( - 78 ) - - - 96 + + - 55 - + 3 + + - 48 * - 78 * - 40
----
-149992

skipif mysql # not compatible
query I rowsort label-1675
SELECT MIN ( - 78 ) - - - 96 + + - 55 - + 3 + + - 48 * - 78 * - 40
----
-149992

onlyif mysql # DIV for integer division: 
query I rowsort label-1676
SELECT ALL + 39 DIV - ( + NULLIF ( 81, - 21 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL + 39 / - ( + NULLIF ( 81, - 21 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT ALL 16 * 68 + - + NULLIF ( - 32, - 30 / 29 * ( + ( - COALESCE ( - SUM( ALL 93 ), + COUNT( + + 94 ) ) ) ) + - 21 * + + 7 + 41 ) AS col0
----
1120

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL 16 * 68 + - + NULLIF ( - 32, - 30 / 29 * ( + ( - COALESCE ( - SUM ( ALL 93 ), + COUNT ( + + 94 ) ) ) ) + - 21 * + + 7 + 41 ) AS col0
----
1120

query I rowsort
SELECT 54 * - + 10 AS col2
----
-540

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1680
SELECT ALL + CAST( - + 27 AS SIGNED ) * + 19 AS col1
----
-513

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL + CAST ( - + 27 AS INTEGER ) * + 19 AS col1
----
-513

query I rowsort
SELECT ( 77 ) * - 95 AS col2
----
-7315

query I rowsort
SELECT + ( 68 ) * - 75 - + - 71 AS col2
----
-5029

query I rowsort
SELECT - 61 + + 32 AS col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1684
SELECT - CAST( + + 54 AS SIGNED ) AS col2, CASE + - ( + 73 ) WHEN + 53 * - + COUNT( * ) + - - ( + 49 ) * 77 + + 49 + + 34 + + - 61 THEN NULL WHEN 81 THEN NULL ELSE - ( - - MIN( - 14 ) ) + 98 + - + 37 END * - 23 + + + 90 col2
----
-54
-1635

skipif mysql # not compatible
query II rowsort label-1684
SELECT - CAST ( + + 54 AS INTEGER ) AS col2, CASE + - ( + 73 ) WHEN + 53 * - + COUNT ( * ) + - - ( + 49 ) * 77 + + 49 + + 34 + + - 61 THEN NULL WHEN 81 THEN NULL ELSE - ( - - MIN ( - 14 ) ) + 98 + - + 37 END * - 23 + + + 90 col2
----
-54
-1635

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

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

query I rowsort
SELECT ALL - 3 + - - 95
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT + COUNT( * ) - - 90 + + NULLIF ( + - 42, + 47 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-1687
SELECT + COUNT ( * ) - - 90 + + NULLIF ( + - 42, + 47 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT ALL COUNT( * ) * - 85 + + + 35 + - ( + + 78 ) AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL COUNT ( * ) * - 85 + + + 35 + - ( + + 78 ) AS col2
----
-128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1689
SELECT ALL - COUNT( * ) * - - ( + + 5 ) * - - 50 + - 2 DIV + - 62 * 84 * - - 24 AS col1
----
-250

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL - COUNT ( * ) * - - ( + + 5 ) * - - 50 + - 2 / + - 62 * 84 * - - 24 AS col1
----
-250

query I rowsort
SELECT + 77 + + + 53 - 53 AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1691
SELECT - 83 * - + CAST( - COALESCE ( + COUNT( * ), - MAX( ALL - + 61 ) ) AS SIGNED ) * + 89 AS col1
----
-7387

skipif mysql # not compatible
query I rowsort label-1691
SELECT - 83 * - + CAST ( - COALESCE ( + COUNT ( * ), - MAX ( ALL - + 61 ) ) AS INTEGER ) * + 89 AS col1
----
-7387

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT COALESCE ( + SUM( DISTINCT 29 ), - ( - + 56 ), + 88 * + - 15 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-1692
SELECT COALESCE ( + SUM ( DISTINCT 29 ), - ( - + 56 ), + 88 * + - 15 ) AS col2
----
29

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1694
SELECT - 38 DIV CASE - 61 WHEN 88 * - 74 * 5 THEN NULL ELSE - 27 END - 86
----
-85

skipif mysql # not compatible
query I rowsort label-1694
SELECT - 38 / CASE - 61 WHEN 88 * - 74 * 5 THEN NULL ELSE - 27 END - 86
----
-85

query II rowsort
SELECT DISTINCT - 94 * - 58 - + 36 AS col2, - 76 AS col2
----
5416
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT ALL - COUNT( * ) * 96 - + + NULLIF ( + + 99, - MIN( DISTINCT - 73 ) * 21 )
----
-195

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL - COUNT ( * ) * 96 - + + NULLIF ( + + 99, - MIN ( DISTINCT - 73 ) * 21 )
----
-195

query I rowsort
SELECT - 76 + - - 20 + + 40 col2
----
-16

query II rowsort
SELECT ALL + 61 * - 24 - - 5 AS col2, + 70 AS col1
----
-1459
70

query I rowsort
SELECT - 87 * + 74
----
-6438

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT 43 * - - COUNT( * ) + 88 * - 78
----
-6821

skipif mysql # not compatible
query I rowsort label-1700
SELECT 43 * - - COUNT ( * ) + 88 * - 78
----
-6821

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

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

query I rowsort
SELECT ALL - 71 - - 40 + - + 93 + + 70 * 23 AS col2
----
1486

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1704
SELECT + 92 + + - 94 DIV 80
----
91

skipif mysql # not compatible
query I rowsort label-1704
SELECT + 92 + + - 94 / 80
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1705
SELECT + 6 DIV ( - 40 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1705
SELECT + 6 / ( - 40 ) col1
----
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1708
SELECT DISTINCT - 5 + - 12 + 92 / + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT - 5 + - 12 + 92 / + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT - - NULLIF ( COUNT( + 81 ), + ( 95 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1709
SELECT - - NULLIF ( COUNT ( + 81 ), + ( 95 ) ) AS col2
----
1

query I rowsort
SELECT + COALESCE ( - 51, - 97, - 2 ) + 50 + - + 79 AS col1
----
-80

query I rowsort
SELECT ALL 78 + - - 70
----
148

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

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

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

skipif mysql # not compatible
query I rowsort label-1713
SELECT + NULLIF ( 36, - 21 ) * - COUNT ( + 0 )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1714
SELECT - ( + 7 ) * + CASE + 63 WHEN MIN( ALL + + 95 ) + - + 47 THEN - + 33 DIV 35 * + 59 END AS col1, - NULLIF ( + 47, ( COUNT( * ) ) ) DIV + ( - 65 ) * - - 55 + + - 26
----
NULL
-26

skipif mysql # not compatible
query II rowsort label-1714
SELECT - ( + 7 ) * + CASE + 63 WHEN MIN ( ALL + + 95 ) + - + 47 THEN - + 33 / 35 * + 59 END AS col1, - NULLIF ( + 47, ( COUNT ( * ) ) ) / + ( - 65 ) * - - 55 + + - 26
----
NULL
-26

query I rowsort
SELECT DISTINCT ( 0 ) AS col0
----
0

query I rowsort
SELECT ALL 5 + - + 83 col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1717
SELECT - - 28 AS col0, - CAST( 32 AS SIGNED ) AS col1
----
28
-32

skipif mysql # not compatible
query II rowsort label-1717
SELECT - - 28 AS col0, - CAST ( 32 AS INTEGER ) AS col1
----
28
-32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT ALL MAX( + ( 52 ) ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL MAX ( + ( 52 ) ) AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1720
SELECT ALL - 43 / - CAST( NULL AS DECIMAL ) - + - SUM( - 11 ), + 8 + + 88 * + COUNT( DISTINCT 23 ) + - 53 col1
----
NULL
43

skipif mysql # not compatible
query II rowsort label-1720
SELECT ALL - 43 / - CAST ( NULL AS REAL ) - + - SUM ( - 11 ), + 8 + + 88 * + COUNT ( DISTINCT 23 ) + - 53 col1
----
NULL
43

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1722
SELECT DISTINCT + 41 AS col1, + 78 * - 53 * + COUNT( * ) + + 61 - ( + + 81 ) AS col2
----
41
-4154

skipif mysql # not compatible
query II rowsort label-1722
SELECT DISTINCT + 41 AS col1, + 78 * - 53 * + COUNT ( * ) + + 61 - ( + + 81 ) AS col2
----
41
-4154

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

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

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

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL + COUNT ( DISTINCT + 89 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1725
SELECT ( + COUNT( * ) ) AS col0, - 9 - - 18
----
1
9

skipif mysql # not compatible
query II rowsort label-1725
SELECT ( + COUNT ( * ) ) AS col0, - 9 - - 18
----
1
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT + 87 - - 44 - + COUNT( * ) * - 70 - + + 12 AS col2
----
189

skipif mysql # not compatible
query I rowsort label-1726
SELECT + 87 - - 44 - + COUNT ( * ) * - 70 - + + 12 AS col2
----
189

query I rowsort
SELECT - 93 * + 20 AS col2
----
-1860

query I rowsort
SELECT DISTINCT 99 * 21 col2
----
2079

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

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

query I rowsort
SELECT - 46 * - 4 * + + 99 - + + 3 + - + 5 + ( 15 ) + - - 64 + - 97 + 70
----
18260

query I rowsort
SELECT - 28 * + 56 * - 5 col2
----
7840

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1733
SELECT - COUNT( * ) * + 66 AS col2, CASE + 37 WHEN + - COUNT( * ) * + - 33 THEN + 40 WHEN + 90 THEN ( COUNT( * ) ) * 56 END * - COALESCE ( NULLIF ( - + 22, 0 ), + 63 + + 6 + + + 72, 20 * - SUM( + - NULLIF ( + 33, - - 26 ) ) ) + CAST( NULL AS SIGNED ) + - - 68 AS col0
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-1733
SELECT - COUNT ( * ) * + 66 AS col2, CASE + 37 WHEN + - COUNT ( * ) * + - 33 THEN + 40 WHEN + 90 THEN ( COUNT ( * ) ) * 56 END * - COALESCE ( NULLIF ( - + 22, 0 ), + 63 + + 6 + + + 72, 20 * - SUM ( + - NULLIF ( + 33, - - 26 ) ) ) + CAST ( NULL AS INTEGER ) + - - 68 AS col0
----
-66
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1734
SELECT ALL ( 16 ) * - NULLIF ( - 68, - - 93 * 0 * + 66 / 41 * - ( - COUNT( * ) ) / CAST( NULL AS SIGNED ) ) col2
----
1088

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL ( 16 ) * - NULLIF ( - 68, - - 93 * 0 * + 66 / 41 * - ( - COUNT ( * ) ) / CAST ( NULL AS INTEGER ) ) col2
----
1088

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT DISTINCT + MIN( ALL + + 75 ) col0
----
75

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT + MIN ( ALL + + 75 ) col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1736
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, - 3
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-1736
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, - 3
----
NULL
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1737
SELECT - AVG ( ALL - 52 ) * + 56 * 64 * + NULLIF ( - CAST( NULL AS SIGNED ), + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1737
SELECT - AVG ( ALL - 52 ) * + 56 * 64 * + NULLIF ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1738
SELECT COUNT( * ) AS col1, 92 DIV - - 19 - + 38 * - MAX( DISTINCT - + 78 )
----
1
-2960

skipif mysql # not compatible
query II rowsort label-1738
SELECT COUNT ( * ) AS col1, 92 / - - 19 - + 38 * - MAX ( DISTINCT - + 78 )
----
1
-2960

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT - - COALESCE ( 41, - MIN( - + 32 ) - ( 36 ) * - 23 )
----
41

skipif mysql # not compatible
query I rowsort label-1739
SELECT - - COALESCE ( 41, - MIN ( - + 32 ) - ( 36 ) * - 23 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT ALL + 53 * - CASE + + NULLIF ( + 17, + COUNT( * ) ) WHEN 26 THEN - + 53 ELSE NULL END + + 17 + + - COUNT( * ) * - + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL + 53 * - CASE + + NULLIF ( + 17, + COUNT ( * ) ) WHEN 26 THEN - + 53 ELSE NULL END + + 17 + + - COUNT ( * ) * - + 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT ALL + ( 80 ) * - COUNT( * ) + - 23 AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL + ( 80 ) * - COUNT ( * ) + - 23 AS col1
----
-103

query I rowsort
SELECT - + 47 * + + 85 AS col0
----
-3995

onlyif mysql # DIV for integer division: 
query I rowsort label-1743
SELECT - + 83 - + + 61 DIV - 48 col0
----
-82

skipif mysql # not compatible
query I rowsort label-1743
SELECT - + 83 - + + 61 / - 48 col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1744
SELECT DISTINCT - 25 * + 85 / - - ( - 23 ) * CAST( NULL AS SIGNED ) * - NULLIF ( + 51, - 15 * - 53 + 36 * - SUM( DISTINCT + 96 ) ), + 7 + 28 AS col0
----
NULL
35

skipif mysql # not compatible
query II rowsort label-1744
SELECT DISTINCT - 25 * + 85 / - - ( - 23 ) * CAST ( NULL AS INTEGER ) * - NULLIF ( + 51, - 15 * - 53 + 36 * - SUM ( DISTINCT + 96 ) ), + 7 + 28 AS col0
----
NULL
35

onlyif mysql # aggregate syntax: 
query II rowsort label-1745
SELECT - MIN( DISTINCT + 43 ) AS col2, - 19
----
-43
-19

skipif mysql # not compatible
query II rowsort label-1745
SELECT - MIN ( DISTINCT + 43 ) AS col2, - 19
----
-43
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1746
SELECT DISTINCT + + 17 + + + COUNT( DISTINCT + 46 ) / CAST( NULL AS SIGNED ) col2, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1746
SELECT DISTINCT + + 17 + + + COUNT ( DISTINCT + 46 ) / CAST ( NULL AS INTEGER ) col2, COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT DISTINCT + 53 + + 26 AS col1
----
79

query I rowsort
SELECT - 97 + + - 83 col0
----
-180

onlyif mysql # aggregate syntax: 
query II rowsort label-1749
SELECT - - COUNT( * ), - ( - + NULLIF ( COUNT( * ), + + 28 - + 30 ) ) * + 62 * 60 + - 91 col2
----
1
3629

skipif mysql # not compatible
query II rowsort label-1749
SELECT - - COUNT ( * ), - ( - + NULLIF ( COUNT ( * ), + + 28 - + 30 ) ) * + 62 * 60 + - 91 col2
----
1
3629

query I rowsort
SELECT DISTINCT NULLIF ( + 50, - + 94 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT ALL - COUNT( DISTINCT + 31 )
----
-1

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL - COUNT ( DISTINCT + 31 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1752
SELECT + CAST( 20 AS SIGNED ) + + 35
----
55

skipif mysql # not compatible
query I rowsort label-1752
SELECT + CAST ( 20 AS INTEGER ) + + 35
----
55

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1753
SELECT + 33 * - CAST( CAST( - 15 AS DECIMAL ) AS SIGNED ) AS col1
----
495

skipif mysql # not compatible
query I rowsort label-1753
SELECT + 33 * - CAST ( CAST ( - 15 AS REAL ) AS INTEGER ) AS col1
----
495

query I rowsort
SELECT DISTINCT 12 - + 56 + 85 * - 63 + 23 - + 3 col0
----
-5379

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1755
SELECT DISTINCT - - 63 DIV - 40 + + COALESCE ( ( - 90 ), - COUNT( * ) ) * 11 + 62
----
-929

skipif mysql # not compatible
query I rowsort label-1755
SELECT DISTINCT - - 63 / - 40 + + COALESCE ( ( - 90 ), - COUNT ( * ) ) * 11 + 62
----
-929

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

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

query I rowsort
SELECT DISTINCT 59 * - + 70 AS col2
----
-4130

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT COUNT( * ) + + NULLIF ( + - COUNT( * ), 37 * ( + + 49 ) ) + - - 85 + + 65
----
150

skipif mysql # not compatible
query I rowsort label-1758
SELECT COUNT ( * ) + + NULLIF ( + - COUNT ( * ), 37 * ( + + 49 ) ) + - - 85 + + 65
----
150

query I rowsort
SELECT 18 * - 19 AS col0
----
-342

query I rowsort
SELECT 8 * + 99
----
792

query I rowsort
SELECT 14 + - 87 - 93 + + + 3
----
-163

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1762
SELECT COUNT( - 55 ) * + - 85 + + COUNT( * ) + + COALESCE ( - 84, - COALESCE ( - - 15, + 38 ) DIV + 79, - - 36 ) - - 15, + 96 col2
----
-153
96

skipif mysql # not compatible
query II rowsort label-1762
SELECT COUNT ( - 55 ) * + - 85 + + COUNT ( * ) + + COALESCE ( - 84, - COALESCE ( - - 15, + 38 ) / + 79, - - 36 ) - - 15, + 96 col2
----
-153
96

query I rowsort
SELECT ( + 22 ) + - ( + 36 ) + + 29
----
15

query I rowsort
SELECT DISTINCT 45 * - 15 * + 56
----
-37800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1765
SELECT - 29 DIV 57 + - COUNT( DISTINCT - - 69 ) + - ( + 65 ) * 9 * - 5 + 63 AS col1
----
2987

skipif mysql # not compatible
query I rowsort label-1765
SELECT - 29 / 57 + - COUNT ( DISTINCT - - 69 ) + - ( + 65 ) * 9 * - 5 + 63 AS col1
----
2987

onlyif mysql # aggregate syntax: 
query II rowsort label-1766
SELECT ALL - 80 + + - 50 AS col1, MAX( DISTINCT - 0 )
----
-130
0

skipif mysql # not compatible
query II rowsort label-1766
SELECT ALL - 80 + + - 50 AS col1, MAX ( DISTINCT - 0 )
----
-130
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1767
SELECT DISTINCT 67 + COALESCE ( + 58, + - 82 + - - CAST( NULL AS SIGNED ) * - AVG ( + + 3 ) * - COUNT( * ) * - + 1 DIV + + COUNT( * ) ) col1
----
125

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT 67 + COALESCE ( + 58, + - 82 + - - CAST ( NULL AS INTEGER ) * - AVG ( + + 3 ) * - COUNT ( * ) * - + 1 / + + COUNT ( * ) ) col1
----
125

query I rowsort
SELECT DISTINCT + 54 * - - 61
----
3294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1769
SELECT ALL 11 + + + COUNT( * ) + + COALESCE ( + ( + COUNT( * ) ), + CAST( NULL AS SIGNED ) + COUNT( * ) ) * + 84 * - 21 * + ( - - 71 )
----
-125232

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL 11 + + + COUNT ( * ) + + COALESCE ( + ( + COUNT ( * ) ), + CAST ( NULL AS INTEGER ) + COUNT ( * ) ) * + 84 * - 21 * + ( - - 71 )
----
-125232

query I rowsort
SELECT ALL - 38 + - 21 + + - 73
----
-132

query I rowsort
SELECT DISTINCT + 5 + 77 + + 30 * 67 AS col1
----
2092

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT 86 + - MAX( DISTINCT - + 99 )
----
185

skipif mysql # not compatible
query I rowsort label-1772
SELECT 86 + - MAX ( DISTINCT - + 99 )
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT ALL + + COUNT( * ) + - COALESCE ( + - NULLIF ( + 83, - 12 - ( ( + 65 ) ) ), + COUNT( - - 77 ) ) + - COUNT( * ) + + - COUNT( * ) + - - COUNT( * ) * + - COUNT( * ) * - 63
----
145

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL + + COUNT ( * ) + - COALESCE ( + - NULLIF ( + 83, - 12 - ( ( + 65 ) ) ), + COUNT ( - - 77 ) ) + - COUNT ( * ) + + - COUNT ( * ) + - - COUNT ( * ) * + - COUNT ( * ) * - 63
----
145

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT - MAX( - - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-1777
SELECT - MAX ( - - 92 )
----
-92

query I rowsort
SELECT 55 + 46
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT ALL - 31 * + - 12 + COALESCE ( 60, + + COUNT( * ) ) + 85 * - 80 * - - 15 AS col0
----
-101568

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL - 31 * + - 12 + COALESCE ( 60, + + COUNT ( * ) ) + 85 * - 80 * - - 15 AS col0
----
-101568

query I rowsort
SELECT ALL 40 * 82
----
3280

query I rowsort
SELECT ALL + 61 - - + 91 AS col2
----
152

query II rowsort
SELECT DISTINCT - ( + 6 ) AS col2, 50 + + 56 AS col0
----
-6
106

query I rowsort
SELECT DISTINCT + 1 - + 66
----
-65

query II rowsort
SELECT DISTINCT 3 AS col0, 13
----
3
13

query II rowsort
SELECT ALL 5 col1, + 76
----
5
76

onlyif mysql # DIV for integer division: 
query I rowsort label-1786
SELECT 8 DIV - 22
----
0

skipif mysql # not compatible
query I rowsort label-1786
SELECT 8 / - 22
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT ALL SUM( ALL - + 95 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL SUM ( ALL - + 95 ) AS col1
----
-95

onlyif mysql # DIV for integer division: 
query II rowsort label-1788
SELECT - 63, 32 DIV + 43 + - 8 col2
----
-63
-8

skipif mysql # not compatible
query II rowsort label-1788
SELECT - 63, 32 / + 43 + - 8 col2
----
-63
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT SUM( - 62 ) + + 3 - 77 * 28
----
-2215

skipif mysql # not compatible
query I rowsort label-1789
SELECT SUM ( - 62 ) + + 3 - 77 * 28
----
-2215

query I rowsort
SELECT 75 * - ( 45 ) + + 98 AS col1
----
-3277

query I rowsort
SELECT ALL + 84 * 53
----
4452

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

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL + 12 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1793
SELECT 43 * + - COALESCE ( MIN( ALL CAST( NULL AS SIGNED ) ), + - COUNT( * ) DIV + 35 - - + 18 - + COUNT( * ) ) AS col2
----
-731

skipif mysql # not compatible
query I rowsort label-1793
SELECT 43 * + - COALESCE ( MIN ( ALL CAST ( NULL AS INTEGER ) ), + - COUNT ( * ) / + 35 - - + 18 - + COUNT ( * ) ) AS col2
----
-731

query I rowsort
SELECT ALL 43 * + ( + + 10 ) * ( + 49 ) * - + 72 + 23 + - 86 + 93 * 22 + 10 * 11 + + 25 + 32 * + 78 AS col2
----
-1512426

query I rowsort
SELECT ALL - ( + + 83 ) col0
----
-83

query I rowsort
SELECT 68 * - 62
----
-4216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1797
SELECT 39 - + 35 - 1 + - - 52 * + COALESCE ( - + 82, + 32, 47 * + 1 + + 37 ) * + 46 * - + CASE + + 71 WHEN 44 THEN + 18 + + COUNT( ALL - + 35 ) * - + 52 + + 89 + - 25 - 15 + - CAST( NULL AS SIGNED ) WHEN - ( + - 60 ) THEN NULL WHEN - 68 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1797
SELECT 39 - + 35 - 1 + - - 52 * + COALESCE ( - + 82, + 32, 47 * + 1 + + 37 ) * + 46 * - + CASE + + 71 WHEN 44 THEN + 18 + + COUNT ( ALL - + 35 ) * - + 52 + + 89 + - 25 - 15 + - CAST ( NULL AS INTEGER ) WHEN - ( + - 60 ) THEN NULL WHEN - 68 THEN NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-1799
SELECT ALL 87 * 33 + + COUNT( * ) col0, 71, 2 - - 72 * - 30 AS col1
----
2872
71
-2158

skipif mysql # not compatible
query III rowsort label-1799
SELECT ALL 87 * 33 + + COUNT ( * ) col0, 71, 2 - - 72 * - 30 AS col1
----
2872
71
-2158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1800
SELECT - 99 * - NULLIF ( - + 8, CAST( NULL AS SIGNED ) ) + + 21 AS col0
----
-771

skipif mysql # not compatible
query I rowsort label-1800
SELECT - 99 * - NULLIF ( - + 8, CAST ( NULL AS INTEGER ) ) + + 21 AS col0
----
-771

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT COUNT( DISTINCT - 36 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1801
SELECT COUNT ( DISTINCT - 36 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1802
SELECT DISTINCT - 75 AS col0, + SUM( + 98 ) * - - SUM( - 8 )
----
-75
-784

skipif mysql # not compatible
query II rowsort label-1802
SELECT DISTINCT - 75 AS col0, + SUM ( + 98 ) * - - SUM ( - 8 )
----
-75
-784

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT - SUM( 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-1803
SELECT - SUM ( 71 )
----
-71

query I rowsort
SELECT ALL 83 + 61
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1805
SELECT + - 31 + + 32 - - - MAX( ALL 6 ) DIV ( 62 )
----
1

skipif mysql # not compatible
query I rowsort label-1805
SELECT + - 31 + + 32 - - - MAX ( ALL 6 ) / ( 62 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT ALL - COUNT( * ) - - NULLIF ( 80, 76 )
----
79

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL - COUNT ( * ) - - NULLIF ( 80, 76 )
----
79

query I rowsort
SELECT + + 20 * + 9
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1808
SELECT ALL + 51 * + + 27 * + - CAST( - - 15 AS SIGNED )
----
-20655

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL + 51 * + + 27 * + - CAST ( - - 15 AS INTEGER )
----
-20655

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT + - COUNT( * ) * - + 22 + + 82 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-1810
SELECT + - COUNT ( * ) * - + 22 + + 82 AS col2
----
104

query I rowsort
SELECT + 55 * - 41 AS col1
----
-2255

query I rowsort
SELECT ALL 29 * + + 98 * + 24 + + 74 * 33 * + + 0 AS col1
----
68208

query II rowsort
SELECT 47, - 62 * 65 AS col0
----
47
-4030

onlyif mysql # aggregate syntax: 
query II rowsort label-1814
SELECT - 73, - MIN( DISTINCT - 36 ) * 93 - - ( - 58 ) AS col1
----
-73
3290

skipif mysql # not compatible
query II rowsort label-1814
SELECT - 73, - MIN ( DISTINCT - 36 ) * 93 - - ( - 58 ) AS col1
----
-73
3290

query I rowsort
SELECT + 88 + + 61
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT DISTINCT + 25 * + COUNT( * ) * - 19 AS col0
----
-475

skipif mysql # not compatible
query I rowsort label-1816
SELECT DISTINCT + 25 * + COUNT ( * ) * - 19 AS col0
----
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT - COUNT( * ) * - - 17 col0
----
-17

skipif mysql # not compatible
query I rowsort label-1817
SELECT - COUNT ( * ) * - - 17 col0
----
-17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT + 41 + + + COUNT( * ) + - - 33
----
75

skipif mysql # not compatible
query I rowsort label-1819
SELECT + 41 + + + COUNT ( * ) + - - 33
----
75

query I rowsort
SELECT ALL COALESCE ( 2, + 55 )
----
2

query I rowsort
SELECT ALL 23 + + - 46 * - 14 AS col1
----
667

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1822
SELECT - MIN( 66 ) DIV + + 70
----
0

skipif mysql # not compatible
query I rowsort label-1822
SELECT - MIN ( 66 ) / + + 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT - COUNT( * ) + - 53 + 94 + - 35 * - 11 - - + 39
----
464

skipif mysql # not compatible
query I rowsort label-1823
SELECT - COUNT ( * ) + - 53 + 94 + - 35 * - 11 - - + 39
----
464

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT ALL + 7 * - + ( 46 ) * MIN( + 95 ) AS col2
----
-30590

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL + 7 * - + ( 46 ) * MIN ( + 95 ) AS col2
----
-30590

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1826
SELECT AVG ( ALL ( - 65 ) ) / + 45 + + 56 * CAST( - CASE - CAST( - 78 AS SIGNED ) WHEN 27 + 96 THEN COALESCE ( - + 33, 10 + + + COUNT( * ) ) * - 18 + 78 WHEN + 0 + 90 THEN COALESCE ( - 92, - NULLIF ( 14, - 54 + + + CAST( NULL AS SIGNED ) + + - 61 ) * - 73, 13 * - AVG ( 82 ) - 55 * 22 ) * 18 + - 18 * + AVG ( ALL 42 ) END AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1826
SELECT AVG ( ALL ( - 65 ) ) / + 45 + + 56 * CAST ( - CASE - CAST ( - 78 AS INTEGER ) WHEN 27 + 96 THEN COALESCE ( - + 33, 10 + + + COUNT ( * ) ) * - 18 + 78 WHEN + 0 + 90 THEN COALESCE ( - 92, - NULLIF ( 14, - 54 + + + CAST ( NULL AS INTEGER ) + + - 61 ) * - 73, 13 * - AVG ( 82 ) - 55 * 22 ) * 18 + - 18 * + AVG ( ALL 42 ) END AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - 51 + + 31 AS col1
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT ALL + 54 DIV - ( - 85 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL + 54 / - ( - 85 ) col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1829
SELECT - NULLIF ( + 33, + + 86 - COUNT( * ) ) DIV 51 col0
----
0

skipif mysql # not compatible
query I rowsort label-1829
SELECT - NULLIF ( + 33, + + 86 - COUNT ( * ) ) / 51 col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT DISTINCT - 5 * - 97 - - - 59 + 69 * - 6 * + COUNT( * ) * - COALESCE ( COUNT( * ), + 1 + 17 - ( + COALESCE ( - 12, - 80 + - ( - 41 ) ) ), + 9, + 48 + + + 6 * + 88 ) + + 50 + + - ( - + 90 ) AS col0
----
980

skipif mysql # not compatible
query I rowsort label-1831
SELECT DISTINCT - 5 * - 97 - - - 59 + 69 * - 6 * + COUNT ( * ) * - COALESCE ( COUNT ( * ), + 1 + 17 - ( + COALESCE ( - 12, - 80 + - ( - 41 ) ) ), + 9, + 48 + + + 6 * + 88 ) + + 50 + + - ( - + 90 ) AS col0
----
980

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1833
SELECT - - 35 + - - 86 + SUM( ALL 22 ) - - COALESCE ( 89, + 34, 16 * - - 2 ) + 96 / 17 * + 71 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT - - 35 + - - 86 + SUM ( ALL 22 ) - - COALESCE ( 89, + 34, 16 * - - 2 ) + 96 / 17 * + 71 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 17 * - 35 AS col1
----
595

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1835
SELECT - + 58 + - CAST( + + NULLIF ( - - 23, - 34 * + 75 ) AS SIGNED ) DIV 71 AS col2, 48 AS col2
----
-58
48

skipif mysql # not compatible
query II rowsort label-1835
SELECT - + 58 + - CAST ( + + NULLIF ( - - 23, - 34 * + 75 ) AS INTEGER ) / 71 AS col2, 48 AS col2
----
-58
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1836
SELECT ALL 6 * - COUNT( * ) - - + CAST( NULL AS SIGNED ) * NULLIF ( - 98, - 45 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL 6 * - COUNT ( * ) - - + CAST ( NULL AS INTEGER ) * NULLIF ( - 98, - 45 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT ALL - - 97 * - 89 + + COUNT( + 63 ) - + 28 AS col0
----
-8660

skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL - - 97 * - 89 + + COUNT ( + 63 ) - + 28 AS col0
----
-8660

onlyif mysql # aggregate syntax: 
query II rowsort label-1838
SELECT + + 9 * 77 - + 5 * - + 65, + COUNT( * ) AS col2
----
1018
1

skipif mysql # not compatible
query II rowsort label-1838
SELECT + + 9 * 77 - + 5 * - + 65, + COUNT ( * ) AS col2
----
1018
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT ALL + NULLIF ( - SUM( DISTINCT - + 20 ), - SUM( DISTINCT + - 31 ) * 34 )
----
20

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL + NULLIF ( - SUM ( DISTINCT - + 20 ), - SUM ( DISTINCT + - 31 ) * 34 )
----
20

query I rowsort
SELECT - 19 * 48 * 24
----
-21888

query I rowsort
SELECT + 89 + + ( + 20 ) AS col1
----
109

query I rowsort
SELECT - NULLIF ( + 61, + - 41 ) col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT MIN( 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-1843
SELECT MIN ( 56 ) AS col2
----
56

query I rowsort
SELECT - CASE + 93 WHEN + 76 + - 90 + + 71 * - 30 THEN 82 END AS col2
----
NULL

query I rowsort
SELECT + 41 * - 74 AS col2
----
-3034

query I rowsort
SELECT + 17 * + 78 AS col1
----
1326

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT + 11 * - 75 * + 65 * COUNT( * )
----
-53625

skipif mysql # not compatible
query I rowsort label-1849
SELECT + 11 * - 75 * + 65 * COUNT ( * )
----
-53625

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT ALL ( - 72 ) + + 41 * - + MIN( + - CASE 56 WHEN + 1 * 16 THEN NULL ELSE 74 END ) AS col0
----
2962

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL ( - 72 ) + + 41 * - + MIN ( + - CASE 56 WHEN + 1 * 16 THEN NULL ELSE 74 END ) AS col0
----
2962

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1852
SELECT ALL 69 + - CAST( NULL AS SIGNED ) + 13 + + + SUM( - ( 42 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL 69 + - CAST ( NULL AS INTEGER ) + 13 + + + SUM ( - ( 42 ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 28 + - 32 AS col0
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT + MIN( DISTINCT - - 25 ) * 1
----
25

skipif mysql # not compatible
query I rowsort label-1855
SELECT + MIN ( DISTINCT - - 25 ) * 1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT ALL NULLIF ( + MIN( DISTINCT - 82 ), - + COUNT( * ) + - + 65 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL NULLIF ( + MIN ( DISTINCT - 82 ), - + COUNT ( * ) + - + 65 ) AS col0
----
-82

query I rowsort
SELECT DISTINCT + 67 + ( - + 2 ) AS col2
----
65

query II rowsort
SELECT DISTINCT + 97 AS col1, NULLIF ( 60, + 74 + - 57 ) AS col2
----
97
60

query I rowsort
SELECT - ( 62 ) * - ( - + 20 ) - - ( - 92 ) AS col2
----
-1332

query I rowsort
SELECT ALL 27 * - 8
----
-216

query I rowsort
SELECT DISTINCT + 86 - - ( - 26 ) * - 70
----
1906

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT 63 + + 63 * - ( + ( - - COUNT( * ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-1862
SELECT 63 + + 63 * - ( + ( - - COUNT ( * ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT ALL - 59 - - 69 + 61 * - 40 * 8 * - + 28 + - COALESCE ( + COUNT( ALL - 72 ), + 76, - ( 61 ) ) + 90
----
546659

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL - 59 - - 69 + 61 * - 40 * 8 * - + 28 + - COALESCE ( + COUNT ( ALL - 72 ), + 76, - ( 61 ) ) + 90
----
546659

query I rowsort
SELECT + 43 * - 19
----
-817

query I rowsort
SELECT - 87 + - - 88 * - 55 * + - 41 AS col2
----
198353

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1866
SELECT 4 * - - NULLIF ( ( COUNT( * ) ), MIN( ALL 61 ) * + 44 + + NULLIF ( CASE 36 WHEN 73 * + 61 + 48 THEN - 78 + - + 39 - 39 END, 43 ) * 32 DIV + 49 ) DIV 17 + 3 * 80 * - + ( - 17 ) + + 23 + - 67
----
4036

skipif mysql # not compatible
query I rowsort label-1866
SELECT 4 * - - NULLIF ( ( COUNT ( * ) ), MIN ( ALL 61 ) * + 44 + + NULLIF ( CASE 36 WHEN 73 * + 61 + 48 THEN - 78 + - + 39 - 39 END, 43 ) * 32 / + 49 ) / 17 + 3 * 80 * - + ( - 17 ) + + 23 + - 67
----
4036

onlyif mysql # DIV for integer division: 
query I rowsort label-1867
SELECT + 70 DIV + - 1 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-1867
SELECT + 70 / + - 1 AS col1
----
-70

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

skipif mysql # not compatible
query I rowsort label-1868
SELECT DISTINCT - - COUNT ( * ) / - 17
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT + 28 + + SUM( - - 3 ) * COALESCE ( - 31, 54 ) col2
----
-65

skipif mysql # not compatible
query I rowsort label-1869
SELECT + 28 + + SUM ( - - 3 ) * COALESCE ( - 31, 54 ) col2
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-1870
SELECT ALL - COALESCE ( + + 42, + COUNT( * ) * 89, - + NULLIF ( + 51, 51 * + - AVG ( - + 95 ) ) ) * - 88, - 58 AS col1
----
3696
-58

skipif mysql # not compatible
query II rowsort label-1870
SELECT ALL - COALESCE ( + + 42, + COUNT ( * ) * 89, - + NULLIF ( + 51, 51 * + - AVG ( - + 95 ) ) ) * - 88, - 58 AS col1
----
3696
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-1871
SELECT - 37 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-1871
SELECT - 37 / + 85
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1872
SELECT ALL - + COALESCE ( 34, + CAST( + + CASE + + 17 WHEN - 56 THEN - 43 END AS SIGNED ) - - ( + COUNT( + + 80 ) ) ), SUM( - COALESCE ( - 87, + - 72 + - 8 ) ) AS col1
----
-34
87

skipif mysql # not compatible
query II rowsort label-1872
SELECT ALL - + COALESCE ( 34, + CAST ( + + CASE + + 17 WHEN - 56 THEN - 43 END AS INTEGER ) - - ( + COUNT ( + + 80 ) ) ), SUM ( - COALESCE ( - 87, + - 72 + - 8 ) ) AS col1
----
-34
87

query I rowsort
SELECT ALL 90 * + 4 AS col2
----
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1874
SELECT - CASE + 39 WHEN + AVG ( ALL - 22 ) * CAST( NULL AS SIGNED ) * - 54 THEN + COUNT( * ) + + 8 * AVG ( DISTINCT + + 96 ) + + 17 ELSE NULL END * - + 14 + - - 67 + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-1874
SELECT - CASE + 39 WHEN + AVG ( ALL - 22 ) * CAST ( NULL AS INTEGER ) * - 54 THEN + COUNT ( * ) + + 8 * AVG ( DISTINCT + + 96 ) + + 17 ELSE NULL END * - + 14 + - - 67 + + 42
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1876
SELECT + 74 AS col2, + 25 + + SUM( + + ( - - COALESCE ( + 52, + NULLIF ( 4, + 98 ) + - 49 DIV + CAST( 34 AS SIGNED ) ) ) ) + - - 0 * + 5 + + + 47 + + + 29 AS col1
----
74
153

skipif mysql # not compatible
query II rowsort label-1876
SELECT + 74 AS col2, + 25 + + SUM ( + + ( - - COALESCE ( + 52, + NULLIF ( 4, + 98 ) + - 49 / + CAST ( 34 AS INTEGER ) ) ) ) + - - 0 * + 5 + + + 47 + + + 29 AS col1
----
74
153

query I rowsort
SELECT - 77 + 62 AS col1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-1878
SELECT ALL + COALESCE ( + - 75, - + 9 * - + 76 + - 46 * - - 21, + + 19 * - 10 * - 32 DIV + - 4 ) * + + 47 + + 81 * - 58 * + - 69 AS col1
----
320637

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL + COALESCE ( + - 75, - + 9 * - + 76 + - 46 * - - 21, + + 19 * - 10 * - 32 / + - 4 ) * + + 47 + + 81 * - 58 * + - 69 AS col1
----
320637

query I rowsort
SELECT + 87 * + 88
----
7656

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT 18 + + + MAX( DISTINCT 7 )
----
25

skipif mysql # not compatible
query I rowsort label-1881
SELECT 18 + + + MAX ( DISTINCT 7 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT 27 + - + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-1882
SELECT 27 + - + COUNT ( * )
----
26

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

query I rowsort
SELECT ALL 88 + + + 53 + - - 99 AS col2
----
240

onlyif mysql # DIV for integer division: 
query II rowsort label-1885
SELECT 59, + 40 DIV 54 AS col0
----
59
0

skipif mysql # not compatible
query II rowsort label-1885
SELECT 59, + 40 / 54 AS col0
----
59
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1886
SELECT 24 + CAST( NULL AS DECIMAL ) * + 26 + + COUNT( * ) + 68 * - 6 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1886
SELECT 24 + CAST ( NULL AS REAL ) * + 26 + + COUNT ( * ) + 68 * - 6 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT COUNT( * ) + 14 + + 38 + COUNT( * ) / + 1 * CASE NULLIF ( COALESCE ( - - 5, 57 * - AVG ( - 89 ), - 75 * + 24 + - COUNT( * ) + - + 68 * + COUNT( * ) / + 36 + + 95 + - COALESCE ( COUNT( * ), + 68 / - 41 ) ), + MIN( 12 ) ) WHEN ( COUNT( * ) ) THEN NULL WHEN - ( 94 ) - + 5 * + 81 + COUNT( * ) THEN NULL WHEN COUNT( * ) THEN 46 * - SUM( ALL - 50 ) + - 80 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1887
SELECT COUNT ( * ) + 14 + + 38 + COUNT ( * ) / + 1 * CASE NULLIF ( COALESCE ( - - 5, 57 * - AVG ( - 89 ), - 75 * + 24 + - COUNT ( * ) + - + 68 * + COUNT ( * ) / + 36 + + 95 + - COALESCE ( COUNT ( * ), + 68 / - 41 ) ), + MIN ( 12 ) ) WHEN ( COUNT ( * ) ) THEN NULL WHEN - ( 94 ) - + 5 * + 81 + COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN 46 * - SUM ( ALL - 50 ) + - 80 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 43 * 61
----
2623

query II rowsort
SELECT - 24 AS col1, - 74 AS col1
----
-24
-74

query I rowsort
SELECT ALL 46 * + - 5
----
-230

query I rowsort
SELECT 49 + - 94 + 25
----
-20

query I rowsort
SELECT 84 - + 55 * - 41 + - 83
----
2256

onlyif mysql # aggregate syntax: 
query II rowsort label-1893
SELECT 88 AS col0, + MIN( ALL + 29 )
----
88
29

skipif mysql # not compatible
query II rowsort label-1893
SELECT 88 AS col0, + MIN ( ALL + 29 )
----
88
29

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1895
SELECT ALL 39 - + - CAST( + 74 AS SIGNED )
----
113

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL 39 - + - CAST ( + 74 AS INTEGER )
----
113

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

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL 16 - + COUNT ( * ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT 74 + - COUNT( * ) + - 85
----
-12

skipif mysql # not compatible
query I rowsort label-1897
SELECT 74 + - COUNT ( * ) + - 85
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT DISTINCT 27 * COUNT( 80 )
----
27

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT 27 * COUNT ( 80 )
----
27

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

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

query I rowsort
SELECT - 49 * - + 98 + + - 56
----
4746

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

skipif mysql # not compatible
query I rowsort label-1901
SELECT - COUNT ( * ) + + + MAX ( DISTINCT + + 72 ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT ALL + 88 - + - 97 + - COUNT( * ) * + 66
----
119

skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL + 88 - + - 97 + - COUNT ( * ) * + 66
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1903
SELECT + + CASE + - 44 WHEN 32 THEN NULL WHEN + + CAST( - 56 AS SIGNED ) THEN 51 * - + CASE + - 31 WHEN - - 92 * + 53 * + COUNT( * ) * + 70 - + 81 * + - 32 THEN 74 END END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT + + CASE + - 44 WHEN 32 THEN NULL WHEN + + CAST ( - 56 AS INTEGER ) THEN 51 * - + CASE + - 31 WHEN - - 92 * + 53 * + COUNT ( * ) * + 70 - + 81 * + - 32 THEN 74 END END col2
----
NULL

query II rowsort
SELECT - 89 AS col1, + 48
----
-89
48

query II rowsort
SELECT 19 * 74 - 17 + 74 * + 96 * 28 col1, 33 AS col2
----
200301
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1906
SELECT + - 9 AS col2, - 6 * + 80 / + COUNT( * ) * + 52 - - - ( + 76 ) + 45 * + CAST( NULL AS SIGNED ) * - COUNT( * ) * 44 + COUNT( * ) AS col0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-1906
SELECT + - 9 AS col2, - 6 * + 80 / + COUNT ( * ) * + 52 - - - ( + 76 ) + 45 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * 44 + COUNT ( * ) AS col0
----
-9
NULL

query I rowsort
SELECT + 41 * 20
----
820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1908
SELECT DISTINCT - CASE COUNT( * ) WHEN - - COUNT( * ) + 29 DIV - 40 * - ( - - CASE 37 WHEN - + MIN( + 39 ) DIV CASE + + ( + - 12 ) WHEN - 23 + - 19 THEN NULL WHEN - 12 * - ( SUM( 84 ) ) THEN 5 ELSE - - 57 - - - 61 END THEN NULL WHEN + CASE + 92 WHEN - 72 DIV - - COUNT( * ) THEN NULL WHEN + - SUM( + 57 ) THEN NULL WHEN + SUM( DISTINCT - + 88 ) + 44 * + ( 3 ) THEN 95 END THEN NULL ELSE 48 END ) THEN 8 + MIN( - 87 ) END
----
79

skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT - CASE COUNT ( * ) WHEN - - COUNT ( * ) + 29 / - 40 * - ( - - CASE 37 WHEN - + MIN ( + 39 ) / CASE + + ( + - 12 ) WHEN - 23 + - 19 THEN NULL WHEN - 12 * - ( SUM ( 84 ) ) THEN 5 ELSE - - 57 - - - 61 END THEN NULL WHEN + CASE + 92 WHEN - 72 / - - COUNT ( * ) THEN NULL WHEN + - SUM ( + 57 ) THEN NULL WHEN + SUM ( DISTINCT - + 88 ) + 44 * + ( 3 ) THEN 95 END THEN NULL ELSE 48 END ) THEN 8 + MIN ( - 87 ) END
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT - CASE + 88 WHEN 89 - - COUNT( * ) * 22 THEN - ( + + 58 ) ELSE + COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-1909
SELECT - CASE + 88 WHEN 89 - - COUNT ( * ) * 22 THEN - ( + + 58 ) ELSE + COUNT ( * ) END
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1910
SELECT - + 3 DIV - 38 + - 52 col1
----
-52

skipif mysql # not compatible
query I rowsort label-1910
SELECT - + 3 / - 38 + - 52 col1
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-1911
SELECT ALL - 64 * CASE + - 89 WHEN 66 / COUNT( * ) THEN + + COUNT( * ) END col2, CASE - + 44 WHEN + 22 THEN - 9 END * 23 * - - 34 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1911
SELECT ALL - 64 * CASE + - 89 WHEN 66 / COUNT ( * ) THEN + + COUNT ( * ) END col2, CASE - + 44 WHEN + 22 THEN - 9 END * 23 * - - 34 AS col2
----
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT - 14 * + 76 AS col2
----
-1064

query II rowsort
SELECT DISTINCT - + 0, + 23 + - + 15 AS col2
----
0
8

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

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

query II rowsort
SELECT DISTINCT - 29, - 70 AS col1
----
-29
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1917
SELECT 16 * - 28 col2, COALESCE ( - - 12, - 15 * - + AVG ( + + 65 ) ) * + 23 * - 63 + + + CAST( NULL AS SIGNED ) - - + ( 43 ) AS col0
----
-448
NULL

skipif mysql # not compatible
query II rowsort label-1917
SELECT 16 * - 28 col2, COALESCE ( - - 12, - 15 * - + AVG ( + + 65 ) ) * + 23 * - 63 + + + CAST ( NULL AS INTEGER ) - - + ( 43 ) AS col0
----
-448
NULL

query I rowsort
SELECT - 43 * 11 - + 77 * + - 26 AS col0
----
1529

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT ALL - COUNT( * ) + + 12
----
11

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL - COUNT ( * ) + + 12
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1920
SELECT ALL + 62 + + COUNT( * ) * 59 DIV + - 17 + COUNT( * ) + SUM( ALL - 15 ) + + COALESCE ( + - 7, + 78 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL + 62 + + COUNT ( * ) * 59 / + - 17 + COUNT ( * ) + SUM ( ALL - 15 ) + + COALESCE ( + - 7, + 78 ) AS col0
----
38

query I rowsort
SELECT + COALESCE ( + 86, 15, - 18 )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-1922
SELECT ALL - 57 DIV + 93 * + 52
----
0

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL - 57 / + 93 * + 52
----
0

query I rowsort
SELECT DISTINCT + 39 * + - ( 58 ) AS col0
----
-2262

query I rowsort
SELECT 50 + + + 81
----
131

query I rowsort
SELECT DISTINCT - 12 + 82 AS col1
----
70

query II rowsort
SELECT 39 * - 31 AS col2, + 13 * 25 - + 76 * - ( + - 34 )
----
-1209
-2259

query I rowsort
SELECT DISTINCT - 76 * 19
----
-1444

query I rowsort
SELECT 52 - + ( 14 ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT DISTINCT CASE - COUNT( * ) WHEN - + ( SUM( - + 44 ) ) THEN NULL ELSE 76 * + - 23 * - 88 + - 60 END
----
153764

skipif mysql # not compatible
query I rowsort label-1929
SELECT DISTINCT CASE - COUNT ( * ) WHEN - + ( SUM ( - + 44 ) ) THEN NULL ELSE 76 * + - 23 * - 88 + - 60 END
----
153764

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

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

query I rowsort
SELECT DISTINCT - 77 * + COALESCE ( - 45, + - 22 )
----
3465

query I rowsort
SELECT ALL 92 * ( - - 86 ) AS col1
----
7912

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT ALL - 50 - + NULLIF ( + - COUNT( * ), + 11 * 41 * - COUNT( * ) + - 0 ) - MIN( 20 ) * 54 AS col0
----
-1129

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL - 50 - + NULLIF ( + - COUNT ( * ), + 11 * 41 * - COUNT ( * ) + - 0 ) - MIN ( 20 ) * 54 AS col0
----
-1129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1934
SELECT - COUNT( ALL - 36 ), - 90 * - CAST( NULL AS SIGNED ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1934
SELECT - COUNT ( ALL - 36 ), - 90 * - CAST ( NULL AS INTEGER ) AS col2
----
-1
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1935
SELECT ALL - 32 DIV - 81, ( + 94 ) AS col2
----
0
94

skipif mysql # not compatible
query II rowsort label-1935
SELECT ALL - 32 / - 81, ( + 94 ) AS col2
----
0
94

query I rowsort
SELECT - ( ( - 61 ) ) - 8 AS col0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-1937
SELECT + 25 DIV + 65 + - 97 * + 29 AS col0
----
-2813

skipif mysql # not compatible
query I rowsort label-1937
SELECT + 25 / + 65 + - 97 * + 29 AS col0
----
-2813

query I rowsort
SELECT DISTINCT 95 * - 50 + 9 + + 78
----
-4663

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1939
SELECT ALL COALESCE ( + NULLIF ( MAX( 26 ), 50 ), - COUNT( * ) DIV + 35 + 28 ) col2, - ( + 38 ) col0
----
26
-38

skipif mysql # not compatible
query II rowsort label-1939
SELECT ALL COALESCE ( + NULLIF ( MAX ( 26 ), 50 ), - COUNT ( * ) / + 35 + 28 ) col2, - ( + 38 ) col0
----
26
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1940
SELECT ALL + + NULLIF ( 95, 87 * + + 29 * - + 18 * + NULLIF ( ( - MAX( DISTINCT - ( + ( + CASE - 9 WHEN NULLIF ( + 10, 82 + + 46 ) THEN NULL WHEN + - 11 THEN + ( - - 92 ) + + 13 * CAST( NULL AS SIGNED ) END ) ) ) ), 76 * AVG ( ALL - 95 ) ) + + + COUNT( * ) ) DIV - - 25 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL + + NULLIF ( 95, 87 * + + 29 * - + 18 * + NULLIF ( ( - MAX ( DISTINCT - ( + ( + CASE - 9 WHEN NULLIF ( + 10, 82 + + 46 ) THEN NULL WHEN + - 11 THEN + ( - - 92 ) + + 13 * CAST ( NULL AS INTEGER ) END ) ) ) ), 76 * AVG ( ALL - 95 ) ) + + + COUNT ( * ) ) / - - 25 AS col1
----
3

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

query I rowsort
SELECT DISTINCT + 65 * + ( 42 )
----
2730

query I rowsort
SELECT + + 96 - + 99
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1944
SELECT + NULLIF ( 14, ( + 93 ) ) DIV 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1944
SELECT + NULLIF ( 14, ( + 93 ) ) / 89 AS col0
----
0

query I rowsort
SELECT ALL 12 * - 95 + + 19 - + 31
----
-1152

query II rowsort
SELECT ALL + 69 * + NULLIF ( - 64, - - 11 ) + - 77 col2, 63 * - - 78 AS col1
----
-4493
4914

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT + - 21 * - NULLIF ( + COUNT( * ), + 44 ) + + COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-1947
SELECT + - 21 * - NULLIF ( + COUNT ( * ), + 44 ) + + COUNT ( * ) AS col2
----
22

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

skipif mysql # not compatible
query I rowsort label-1948
SELECT + + MIN ( 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT + + NULLIF ( - 54, + COUNT( * ) * + + 27 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-1949
SELECT + + NULLIF ( - 54, + COUNT ( * ) * + + 27 ) AS col2
----
-54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT - ( ( + - 20 ) ) * 88 + 41 * - COUNT( * ) col0
----
1719

skipif mysql # not compatible
query I rowsort label-1951
SELECT - ( ( + - 20 ) ) * 88 + 41 * - COUNT ( * ) col0
----
1719

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT - + 83 * 1 + 94 + - 49 * + MIN( 18 ) + ( - 85 ) AS col1
----
-956

skipif mysql # not compatible
query I rowsort label-1952
SELECT - + 83 * 1 + 94 + - 49 * + MIN ( 18 ) + ( - 85 ) AS col1
----
-956

query I rowsort
SELECT NULLIF ( - 90, - + 42 * + 61 + 42 ) AS col1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1954
SELECT - CAST( NULL AS SIGNED ) * - 9 + - 40 + MAX( DISTINCT - 23 ) * - + 90 + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-1954
SELECT - CAST ( NULL AS INTEGER ) * - 9 + - 40 + MAX ( DISTINCT - 23 ) * - + 90 + + 39
----
NULL

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

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

query I rowsort
SELECT CASE 93 WHEN + 91 THEN NULL ELSE + + 90 + - 83 END
----
7

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

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

query II rowsort
SELECT + 57 col0, + 53 AS col0
----
57
53

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

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

query I rowsort
SELECT + 4 * ( 21 ) + 59 * 99
----
5925

query I rowsort
SELECT - ( - ( + + 41 ) ) * - 21 * 68
----
-58548

query II rowsort
SELECT DISTINCT 17 AS col2, + 17 + - 13
----
17
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT ALL NULLIF ( - - 19, 68 / 97 * + 5 + - - ( - MIN( - 35 ) ) + 16 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL NULLIF ( - - 19, 68 / 97 * + 5 + - - ( - MIN ( - 35 ) ) + 16 ) AS col2
----
19

query I rowsort
SELECT DISTINCT + 8 * 98 * 29 * - - 47
----
1068592

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1967
SELECT - ( 15 ) DIV 88 * - COALESCE ( 51, + - 50 - - 16 )
----
0

skipif mysql # not compatible
query I rowsort label-1967
SELECT - ( 15 ) / 88 * - COALESCE ( 51, + - 50 - - 16 )
----
0

query I rowsort
SELECT - 51 * - 87
----
4437

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

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

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

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

query I rowsort
SELECT - 27 * - + 17 AS col0
----
459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1972
SELECT ALL - - CAST( + CASE - 73 WHEN + 25 THEN + 62 + + 86 * - - 55 - 75 * - + ( 42 ) * - - COUNT( * ) + - ( + 16 ) - + + 6 WHEN + + NULLIF ( + 7, + - 99 + + 20 ) * - + 2 THEN - + 95 / 25 END AS SIGNED ) * - 79 / 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL - - CAST ( + CASE - 73 WHEN + 25 THEN + 62 + + 86 * - - 55 - 75 * - + ( 42 ) * - - COUNT ( * ) + - ( + 16 ) - + + 6 WHEN + + NULLIF ( + 7, + - 99 + + 20 ) * - + 2 THEN - + 95 / 25 END AS INTEGER ) * - 79 / 19
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1973
SELECT - COUNT( * ) - + + ( + ( - + 24 ) ) AS col1, - 94 + - 32
----
23
-126

skipif mysql # not compatible
query II rowsort label-1973
SELECT - COUNT ( * ) - + + ( + ( - + 24 ) ) AS col1, - 94 + - 32
----
23
-126

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1975
SELECT ALL - 41, + 95 * - COUNT( * ) AS col1
----
-41
-95

skipif mysql # not compatible
query II rowsort label-1975
SELECT ALL - 41, + 95 * - COUNT ( * ) AS col1
----
-41
-95

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1977
SELECT ALL + - 60 + + COUNT( * ) DIV - 28 AS col2, + 0 * 68
----
-60
0

skipif mysql # not compatible
query II rowsort label-1977
SELECT ALL + - 60 + + COUNT ( * ) / - 28 AS col2, + 0 * 68
----
-60
0

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

query I rowsort
SELECT ALL + 56 + + 83
----
139

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1981
SELECT + + 95 AS col1, + COUNT( - - 36 )
----
95
1

skipif mysql # not compatible
query II rowsort label-1981
SELECT + + 95 AS col1, + COUNT ( - - 36 )
----
95
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1982
SELECT 33 AS col1, + CAST( NULL AS SIGNED ) * - - 17 * - 67 - COALESCE ( - 7, 81 )
----
33
NULL

skipif mysql # not compatible
query II rowsort label-1982
SELECT 33 AS col1, + CAST ( NULL AS INTEGER ) * - - 17 * - 67 - COALESCE ( - 7, 81 )
----
33
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1983
SELECT ALL - ( + 91 ) / + 97 + - CAST( NULL AS DECIMAL ) + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL - ( + 91 ) / + 97 + - CAST ( NULL AS REAL ) + + 63
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1984
SELECT ALL + 4 * - - CAST( NULL AS SIGNED ) / 80 col0, + 69
----
NULL
69

skipif mysql # not compatible
query II rowsort label-1984
SELECT ALL + 4 * - - CAST ( NULL AS INTEGER ) / 80 col0, + 69
----
NULL
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1985
SELECT ALL 70 DIV + CAST( 42 AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL 70 / + CAST ( 42 AS INTEGER ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1986
SELECT ALL 13 * - ( - - 84 ) - + + CAST( NULL AS SIGNED ) + ( + 25 ) * - MAX( ALL + - 19 ) * - - MAX( DISTINCT 99 ) * - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL 13 * - ( - - 84 ) - + + CAST ( NULL AS INTEGER ) + ( + 25 ) * - MAX ( ALL + - 19 ) * - - MAX ( DISTINCT 99 ) * - 10
----
NULL

query I rowsort
SELECT - 63 * + - 85 + + 11 AS col0
----
5366

onlyif mysql # DIV for integer division: 
query II rowsort label-1988
SELECT ( 46 ), 3 DIV + 16 * 48 * - 44 AS col0
----
46
0

skipif mysql # not compatible
query II rowsort label-1988
SELECT ( 46 ), 3 / + 16 * 48 * - 44 AS col0
----
46
0

query I rowsort
SELECT ALL 99 * - ( - + 70 ) AS col1
----
6930

onlyif mysql # aggregate syntax: 
query II rowsort label-1990
SELECT DISTINCT 28 * NULLIF ( - + 9, COUNT( * ) ), + 15 col1
----
-252
15

skipif mysql # not compatible
query II rowsort label-1990
SELECT DISTINCT 28 * NULLIF ( - + 9, COUNT ( * ) ), + 15 col1
----
-252
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT ALL 63 * - COUNT( * ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL 63 * - COUNT ( * ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT + NULLIF ( + - COALESCE ( COUNT( * ), COUNT( * ), - - 54 * - - COUNT( * ) ), - 1 * 30 + + 24 / - 32 ) * - + 67 + + - 56 + 34
----
45

skipif mysql # not compatible
query I rowsort label-1992
SELECT + NULLIF ( + - COALESCE ( COUNT ( * ), COUNT ( * ), - - 54 * - - COUNT ( * ) ), - 1 * 30 + + 24 / - 32 ) * - + 67 + + - 56 + 34
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1993
SELECT 13 DIV - 52 AS col0, + 97 + + - 60 DIV - 52 + + MAX( DISTINCT + 41 ) + 49 * + 88 * + COUNT( * )
----
0
4451

skipif mysql # not compatible
query II rowsort label-1993
SELECT 13 / - 52 AS col0, + 97 + + - 60 / - 52 + + MAX ( DISTINCT + 41 ) + 49 * + 88 * + COUNT ( * )
----
0
4451

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1994
SELECT CAST( NULLIF ( + + 1, - + 29 ) AS SIGNED ) * + + 34 * 68
----
2312

skipif mysql # not compatible
query I rowsort label-1994
SELECT CAST ( NULLIF ( + + 1, - + 29 ) AS INTEGER ) * + + 34 * 68
----
2312

query I rowsort
SELECT 19 + + 98 col0
----
117

query I rowsort
SELECT ALL - 40 + 89 + + 38
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1997
SELECT ALL + 76 DIV - 70
----
-1

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL + 76 / - 70
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1998
SELECT SUM( ALL - - 50 ) DIV 40 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1998
SELECT SUM ( ALL - - 50 ) / 40 AS col2
----
1

query I rowsort
SELECT ALL + - 12 + - 17 - - 9 AS col2
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2000
SELECT DISTINCT 44 DIV 25 * 98 * 55 * 56 + + ( - + MAX( ALL - 18 ) )
----
301858

skipif mysql # not compatible
query I rowsort label-2000
SELECT DISTINCT 44 / 25 * 98 * 55 * 56 + + ( - + MAX ( ALL - 18 ) )
----
301858

query I rowsort
SELECT ALL + 85 + 71 + + 6 + + ( - 94 ) * - - 26
----
-2282

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

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

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

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

query II rowsort
SELECT CASE - + 89 WHEN - 86 * + 77 THEN NULL ELSE - 49 + - + 99 END - - 80, - 61 AS col1
----
-68
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-2005
SELECT + 54 - + + ( - - MIN( - 36 ) ) AS col0, + 85 * + + 59 AS col1
----
90
5015

skipif mysql # not compatible
query II rowsort label-2005
SELECT + 54 - + + ( - - MIN ( - 36 ) ) AS col0, + 85 * + + 59 AS col1
----
90
5015

onlyif mysql # aggregate syntax: 
query II rowsort label-2006
SELECT ALL + - COUNT( * ) + + 52 AS col1, + 76 AS col1
----
51
76

skipif mysql # not compatible
query II rowsort label-2006
SELECT ALL + - COUNT ( * ) + + 52 AS col1, + 76 AS col1
----
51
76

query I rowsort
SELECT CASE - 30 WHEN + 38 THEN NULL ELSE - 49 END AS col2
----
-49

query I rowsort
SELECT ALL - 83 - - - 19 + - 47 AS col1
----
-149

onlyif mysql # aggregate syntax: 
query II rowsort label-2009
SELECT - 4 - + ( - 74 ) - NULLIF ( + 23, + + COUNT( * ) ) + 30 AS col1, ( 56 )
----
77
56

skipif mysql # not compatible
query II rowsort label-2009
SELECT - 4 - + ( - 74 ) - NULLIF ( + 23, + + COUNT ( * ) ) + 30 AS col1, ( 56 )
----
77
56

query I rowsort
SELECT + 48 * + - 19 * + + 41 + - 12 - 34
----
-37438

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

query I rowsort
SELECT ALL + 35 * - 76
----
-2660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2013
SELECT - AVG ( - 32 ) * + 3 * CASE + + SUM( - ( 83 ) ) WHEN 73 THEN + ( - CASE 0 WHEN COUNT( * ) + 1 THEN + 90 * + MIN( ALL + CAST( - 7 AS SIGNED ) ) * - 71 END ) ELSE NULL END + - + COALESCE ( - COUNT( * ), - + 35 ) - + NULLIF ( + 39, + 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2013
SELECT - AVG ( - 32 ) * + 3 * CASE + + SUM ( - ( 83 ) ) WHEN 73 THEN + ( - CASE 0 WHEN COUNT ( * ) + 1 THEN + 90 * + MIN ( ALL + CAST ( - 7 AS INTEGER ) ) * - 71 END ) ELSE NULL END + - + COALESCE ( - COUNT ( * ), - + 35 ) - + NULLIF ( + 39, + 88 )
----
NULL

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

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

query II rowsort
SELECT + 55 AS col2, - 16 AS col1
----
55
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT DISTINCT - MAX( ALL + 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-2016
SELECT DISTINCT - MAX ( ALL + 15 ) AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2017
SELECT 68 * CASE - CASE COUNT( * ) WHEN 84 THEN NULL WHEN + 93 / - - CAST( NULL AS SIGNED ) THEN 14 + + + 88 END WHEN - + COUNT( * ) * - 94 + + - CAST( NULL AS SIGNED ) THEN - 52 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2017
SELECT 68 * CASE - CASE COUNT ( * ) WHEN 84 THEN NULL WHEN + 93 / - - CAST ( NULL AS INTEGER ) THEN 14 + + + 88 END WHEN - + COUNT ( * ) * - 94 + + - CAST ( NULL AS INTEGER ) THEN - 52 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 18 * + 87 AS col2
----
-1566

query II rowsort
SELECT ALL - 52 AS col0, + 94 col1
----
-52
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2020
SELECT 58 DIV + 83 col2
----
0

skipif mysql # not compatible
query I rowsort label-2020
SELECT 58 / + 83 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2021
SELECT 94 * - MIN( 26 ), - 55 * - + 61 AS col2
----
-2444
3355

skipif mysql # not compatible
query II rowsort label-2021
SELECT 94 * - MIN ( 26 ), - 55 * - + 61 AS col2
----
-2444
3355

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT + 21 * + 4 * COUNT( + + ( + + 94 ) ) + - ( 29 ) + - 31
----
24

skipif mysql # not compatible
query I rowsort label-2022
SELECT + 21 * + 4 * COUNT ( + + ( + + 94 ) ) + - ( 29 ) + - 31
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2023
SELECT COALESCE ( 78, - - 87 DIV COUNT( * ), ( - + 40 ) + + 23 - + COUNT( * ) + - COUNT( * ) ) * 97 + - 51 col1
----
7515

skipif mysql # not compatible
query I rowsort label-2023
SELECT COALESCE ( 78, - - 87 / COUNT ( * ), ( - + 40 ) + + 23 - + COUNT ( * ) + - COUNT ( * ) ) * 97 + - 51 col1
----
7515

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT ALL MAX( ALL - 55 ) + - 53
----
-108

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL MAX ( ALL - 55 ) + - 53
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT SUM( DISTINCT + 85 ) + - + CASE - - 92 WHEN + NULLIF ( + 73, 42 - + 74 ) THEN 3 * + - 46 - + 37 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2025
SELECT SUM ( DISTINCT + 85 ) + - + CASE - - 92 WHEN + NULLIF ( + 73, 42 - + 74 ) THEN 3 * + - 46 - + 37 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2026
SELECT + 29 AS col1, 42 DIV 85
----
29
0

skipif mysql # not compatible
query II rowsort label-2026
SELECT + 29 AS col1, 42 / 85
----
29
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT CASE - - 50 WHEN - 15 * CASE + 73 WHEN 66 * 2 * + ( - - ( COUNT( * ) ) ) THEN + 29 WHEN 45 + - 24 THEN + + 53 ELSE ( + 5 ) END THEN NULL WHEN - 37 THEN + + CASE + - 79 WHEN - + 38 + - 91 THEN NULL WHEN 9 THEN - ( - - COUNT( * ) ) END + + NULLIF ( - 94, 99 - 97 ) WHEN + 17 THEN 9 END * - 8 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2027
SELECT CASE - - 50 WHEN - 15 * CASE + 73 WHEN 66 * 2 * + ( - - ( COUNT ( * ) ) ) THEN + 29 WHEN 45 + - 24 THEN + + 53 ELSE ( + 5 ) END THEN NULL WHEN - 37 THEN + + CASE + - 79 WHEN - + 38 + - 91 THEN NULL WHEN 9 THEN - ( - - COUNT ( * ) ) END + + NULLIF ( - 94, 99 - 97 ) WHEN + 17 THEN 9 END * - 8 col0
----
NULL

query I rowsort
SELECT ALL - 73 + + 48 * 62 * + 88
----
261815

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT SUM( ALL 75 ) * - 58 + 13 - - + 89
----
-4248

skipif mysql # not compatible
query I rowsort label-2029
SELECT SUM ( ALL 75 ) * - 58 + 13 - - + 89
----
-4248

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT SUM( - 72 ) - 56 + + - 77 * + 21 * - + 94 + - + 66 AS col2
----
151804

skipif mysql # not compatible
query I rowsort label-2030
SELECT SUM ( - 72 ) - 56 + + - 77 * + 21 * - + 94 + - + 66 AS col2
----
151804

query I rowsort
SELECT ALL - COALESCE ( - 97, - 43 ) + - 3 AS col1
----
94

query I rowsort
SELECT + 25 + 96
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-2033
SELECT ALL + 53 + 88 DIV - 3 - + + NULLIF ( - + ( + - ( 74 ) ), - - 35 ) * - 99
----
7350

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL + 53 + 88 / - 3 - + + NULLIF ( - + ( + - ( 74 ) ), - - 35 ) * - 99
----
7350

query I rowsort
SELECT 78 + - - 6
----
84

query I rowsort
SELECT + 8 - + 91 AS col0
----
-83

query II rowsort
SELECT DISTINCT + 65 AS col0, + 35
----
65
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2037
SELECT 70 + MIN( ALL - 37 ) * - COUNT( * ) + - 75 + + COUNT( * ) + 77 + CASE - + ( - COUNT( ALL CAST( 40 AS SIGNED ) ) ) WHEN - 14 - + 82 THEN 21 END * 42 / + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT 70 + MIN ( ALL - 37 ) * - COUNT ( * ) + - 75 + + COUNT ( * ) + 77 + CASE - + ( - COUNT ( ALL CAST ( 40 AS INTEGER ) ) ) WHEN - 14 - + 82 THEN 21 END * 42 / + 51 AS col2
----
NULL

query I rowsort
SELECT ALL 35 - + 56
----
-21

query I rowsort
SELECT DISTINCT - 34 - 84
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-2040
SELECT ALL 62 DIV 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL 62 / 72 AS col0
----
0

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

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

query I rowsort
SELECT 26 * - - 44 * + 98 * - + 17 * + - 95 * - ( + + 1 )
----
-181060880

onlyif mysql # DIV for integer division: 
query I rowsort label-2043
SELECT 83 DIV 73 + ( - 82 )
----
-81

skipif mysql # not compatible
query I rowsort label-2043
SELECT 83 / 73 + ( - 82 )
----
-81

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2045
SELECT COALESCE ( + 82, 3, + COUNT( * ), + SUM( + - 62 ) ) col2, - MIN( 52 ) * + - ( + 31 ) + + 97
----
82
1709

skipif mysql # not compatible
query II rowsort label-2045
SELECT COALESCE ( + 82, 3, + COUNT ( * ), + SUM ( + - 62 ) ) col2, - MIN ( 52 ) * + - ( + 31 ) + + 97
----
82
1709

query I rowsort
SELECT COALESCE ( - 4, - + 73 ) AS col0
----
-4

query I rowsort
SELECT 59 * + 24
----
1416

query II rowsort
SELECT + 50 AS col2, + 75 col0
----
50
75

query I rowsort
SELECT DISTINCT 53 * + ( + 27 )
----
1431

query I rowsort
SELECT DISTINCT + NULLIF ( + + 11, 8 / + - 65 + + 85 ) AS col0
----
11

query II rowsort
SELECT ALL + 42 AS col1, 94
----
42
94

onlyif mysql # aggregate syntax: 
query II rowsort label-2052
SELECT COUNT( * ) col0, 10
----
1
10

skipif mysql # not compatible
query II rowsort label-2052
SELECT COUNT ( * ) col0, 10
----
1
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT SUM( DISTINCT + 31 ) col1
----
31

skipif mysql # not compatible
query I rowsort label-2053
SELECT SUM ( DISTINCT + 31 ) col1
----
31

query I rowsort
SELECT - 52 * 3 * - 69
----
10764

query I rowsort
SELECT ALL 67 * 28 + 17 AS col2
----
1893

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT + COUNT( * ) * + + MIN( ALL + 19 ) + 2 + - - 21 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-2056
SELECT + COUNT ( * ) * + + MIN ( ALL + 19 ) + 2 + - - 21 AS col2
----
42

query I rowsort
SELECT DISTINCT - 87 * - - 24 AS col0
----
-2088

query I rowsort
SELECT ALL ( - + 52 ) + - 6 - + 92
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2059
SELECT ALL MIN( CAST( NULL AS SIGNED ) ) + + 46 / + 32 col2, - ( - 48 ) * - 64 AS col1
----
NULL
-3072

skipif mysql # not compatible
query II rowsort label-2059
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) ) + + 46 / + 32 col2, - ( - 48 ) * - 64 AS col1
----
NULL
-3072

query I rowsort
SELECT DISTINCT + 15 + - - 84 - + 82 * + ( - - 16 ) + + - 89 + + ( - 67 ) + 37 * - + 15 AS col0
----
-1924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2061
SELECT + + 63 + + + 14 * + COUNT( * ) + + 47 DIV 75 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-2061
SELECT + + 63 + + + 14 * + COUNT ( * ) + + 47 / 75 AS col1
----
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT ALL - SUM( DISTINCT + 16 ) + + 96
----
80

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL - SUM ( DISTINCT + 16 ) + + 96
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2064
SELECT - 22 DIV - 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2064
SELECT - 22 / - 55 AS col0
----
0

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

query I rowsort
SELECT ALL - 97 - - 1 + 9
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2067
SELECT 21 AS col0, CAST( - 72 AS SIGNED ) + CASE - 62 WHEN - - 69 THEN + 41 + 39 - + + 89 * - 72 + + + NULLIF ( + + 72, + + 4 ) * - + 24 WHEN - 16 THEN - - 26 ELSE + 12 END + - ( - ( - COUNT( * ) ) ) - + + 10 * + + 58 AS col2
----
21
-641

skipif mysql # not compatible
query II rowsort label-2067
SELECT 21 AS col0, CAST ( - 72 AS INTEGER ) + CASE - 62 WHEN - - 69 THEN + 41 + 39 - + + 89 * - 72 + + + NULLIF ( + + 72, + + 4 ) * - + 24 WHEN - 16 THEN - - 26 ELSE + 12 END + - ( - ( - COUNT ( * ) ) ) - + + 10 * + + 58 AS col2
----
21
-641

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT ALL - 42 * - COUNT( * ) * MIN( DISTINCT + - 33 ) * - ( + 36 ) col1
----
49896

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL - 42 * - COUNT ( * ) * MIN ( DISTINCT + - 33 ) * - ( + 36 ) col1
----
49896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2070
SELECT + - 36 * + + 8 DIV + COUNT( * ) AS col0
----
-288

skipif mysql # not compatible
query I rowsort label-2070
SELECT + - 36 * + + 8 / + COUNT ( * ) AS col0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT CASE - 87 WHEN MAX( - 99 ) THEN NULL ELSE - 43 END AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-2071
SELECT CASE - 87 WHEN MAX ( - 99 ) THEN NULL ELSE - 43 END AS col1
----
-43

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

query II rowsort
SELECT - + 49, 97 AS col2
----
-49
97

query II rowsort
SELECT - 28 AS col2, + 3 * + 91
----
-28
273

query II rowsort
SELECT ALL 56, 48 AS col1
----
56
48

query I rowsort
SELECT ALL 35 * 6 + - - 81 + - - 33 + 39 + + 98 + + + 33 * 24 col0
----
1253

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2077
SELECT CAST( + MAX( - + 89 ) AS SIGNED ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-2077
SELECT CAST ( + MAX ( - + 89 ) AS INTEGER ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT + MIN( 38 ) * 22 * - + 87 AS col2
----
-72732

skipif mysql # not compatible
query I rowsort label-2078
SELECT + MIN ( 38 ) * 22 * - + 87 AS col2
----
-72732

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

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

query I rowsort
SELECT ALL + CASE ( + 13 ) WHEN 98 THEN + + 33 + - 79 END * + 50 + - 91 + - 20 col2
----
NULL

query I rowsort
SELECT + 52 + + 64
----
116

query I rowsort
SELECT - 76 * - + 8 AS col2
----
608

query I rowsort
SELECT - ( - 20 ) * 62 * - + 35 col2
----
-43400

onlyif mysql # aggregate syntax: 
query II rowsort label-2084
SELECT - 11 * 53, - COALESCE ( - 64, 53 + - + ( + COUNT( * ) ) ) + 14 * + CASE - 43 WHEN 50 * - + CASE WHEN 20 IS NOT NULL THEN 14 END + 76 THEN NULL WHEN - 80 * 21 THEN - 81 END AS col1
----
-583
NULL

skipif mysql # not compatible
query II rowsort label-2084
SELECT - 11 * 53, - COALESCE ( - 64, 53 + - + ( + COUNT ( * ) ) ) + 14 * + CASE - 43 WHEN 50 * - + CASE WHEN 20 IS NOT NULL THEN 14 END + 76 THEN NULL WHEN - 80 * 21 THEN - 81 END AS col1
----
-583
NULL

query II rowsort
SELECT ALL - 0 * + 9 col1, - 51 * + + 76
----
0
-3876

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

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

query I rowsort
SELECT DISTINCT 56 * + 73 + - 83
----
4005

query I rowsort
SELECT ALL 25 * 64 + ( + COALESCE ( + + 41, 75 + + - 4 + - ( - 79 ) ) ) AS col0
----
1641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2089
SELECT + CAST( - 2 AS SIGNED ) AS col1, CAST( + - CAST( - + ( - COUNT( * ) ) AS SIGNED ) AS SIGNED ) - + - ( 85 ) * + NULLIF ( - - 30, - - SUM( + + 52 ) ) * + 14 + + 19 + - 80 AS col1, + - MIN( 61 ) * 11 AS col1
----
-2
35638
-671

skipif mysql # not compatible
query III rowsort label-2089
SELECT + CAST ( - 2 AS INTEGER ) AS col1, CAST ( + - CAST ( - + ( - COUNT ( * ) ) AS INTEGER ) AS INTEGER ) - + - ( 85 ) * + NULLIF ( - - 30, - - SUM ( + + 52 ) ) * + 14 + + 19 + - 80 AS col1, + - MIN ( 61 ) * 11 AS col1
----
-2
35638
-671

query I rowsort
SELECT - 75 + - 76 AS col2
----
-151

query I rowsort
SELECT ALL 98 * - ( - + 63 )
----
6174

query I rowsort
SELECT ALL + 48 * + + 57 + + 64 AS col1
----
2800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2093
SELECT DISTINCT + 4 * - CAST( NULL AS SIGNED ) * 80 + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT + 4 * - CAST ( NULL AS INTEGER ) * 80 + 58 AS col2
----
NULL

query I rowsort
SELECT ALL - 41 * - 14 + - 79 + + 72 + + 3 - 63 + + 2 * 72 * + + 33
----
5259

query I rowsort
SELECT DISTINCT + + COALESCE ( + 50, + + 4 + 87 ) AS col0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2096
SELECT - 7 + + 49 + + 65 DIV + 98
----
42

skipif mysql # not compatible
query I rowsort label-2096
SELECT - 7 + + 49 + + 65 / + 98
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2097
SELECT - 11 * - 4 DIV 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2097
SELECT - 11 * - 4 / 69 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT - MIN( - 47 ) * + COUNT( + 54 ) + + 56 + - COUNT( * )
----
102

skipif mysql # not compatible
query I rowsort label-2098
SELECT - MIN ( - 47 ) * + COUNT ( + 54 ) + + 56 + - COUNT ( * )
----
102

query I rowsort
SELECT ALL + - 25 * + + 54
----
-1350

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT - COUNT( * ) + + 59
----
58

skipif mysql # not compatible
query I rowsort label-2100
SELECT - COUNT ( * ) + + 59
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2101
SELECT ALL - - 40 * - - 98 + COUNT( * ) + - + 16 DIV + + 5 + - 28 - - 90
----
3980

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL - - 40 * - - 98 + COUNT ( * ) + - + 16 / + + 5 + - 28 - - 90
----
3980

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT ALL COALESCE ( + 39, 70 + - 64, + 35 + + + 17 + + + COUNT( * ) )
----
39

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL COALESCE ( + 39, 70 + - 64, + 35 + + + 17 + + + COUNT ( * ) )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-2103
SELECT ALL + - ( + - MIN( - 46 ) ) * - MIN( - 99 ) AS col2, 27 AS col0
----
-4554
27

skipif mysql # not compatible
query II rowsort label-2103
SELECT ALL + - ( + - MIN ( - 46 ) ) * - MIN ( - 99 ) AS col2, 27 AS col0
----
-4554
27

onlyif mysql # aggregate syntax: 
query II rowsort label-2104
SELECT ALL + + 33 * - 9 AS col1, + COUNT( * )
----
-297
1

skipif mysql # not compatible
query II rowsort label-2104
SELECT ALL + + 33 * - 9 AS col1, + COUNT ( * )
----
-297
1

query I rowsort
SELECT - - 96 + 77
----
173

query I rowsort
SELECT + 83 + + 45
----
128

query I rowsort
SELECT - - 46 * + 57 * - 78
----
-204516

query I rowsort
SELECT - 36 + - + 23 + - + 3
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2109
SELECT + NULLIF ( - - 94, + - 22 ) - COALESCE ( - 0, COUNT( * ) + 84, - - 37 ) + CAST( - - COUNT( * ) AS SIGNED ) * + - 11
----
83

skipif mysql # not compatible
query I rowsort label-2109
SELECT + NULLIF ( - - 94, + - 22 ) - COALESCE ( - 0, COUNT ( * ) + 84, - - 37 ) + CAST ( - - COUNT ( * ) AS INTEGER ) * + - 11
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-2110
SELECT + 10 DIV + 17
----
0

skipif mysql # not compatible
query I rowsort label-2110
SELECT + 10 / + 17
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2111
SELECT ALL 80 DIV + COUNT( * ), COUNT( * ) DIV - 18 AS col0
----
80
0

skipif mysql # not compatible
query II rowsort label-2111
SELECT ALL 80 / + COUNT ( * ), COUNT ( * ) / - 18 AS col0
----
80
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT - 50 + - + MIN( ALL - 33 ) + + 22 col1
----
5

skipif mysql # not compatible
query I rowsort label-2112
SELECT - 50 + - + MIN ( ALL - 33 ) + + 22 col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2113
SELECT - 63 + - 86 * + - CAST( - - 79 AS SIGNED ) AS col1
----
6731

skipif mysql # not compatible
query I rowsort label-2113
SELECT - 63 + - 86 * + - CAST ( - - 79 AS INTEGER ) AS col1
----
6731

query I rowsort
SELECT ALL + 76 + - 41
----
35

query II rowsort
SELECT ( + - 58 ) + - 26 AS col2, - 57 AS col0
----
-84
-57

query I rowsort
SELECT 52 * + 84
----
4368

query I rowsort
SELECT ALL 64 * 38 * + + 48
----
116736

onlyif mysql # aggregate syntax: 
query II rowsort label-2118
SELECT 97 + + 12 + + 83 AS col2, MIN( - 54 ) AS col0
----
192
-54

skipif mysql # not compatible
query II rowsort label-2118
SELECT 97 + + 12 + + 83 AS col2, MIN ( - 54 ) AS col0
----
192
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2119
SELECT - 5 AS col0, 35 + - + CAST( NULL AS SIGNED )
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-2119
SELECT - 5 AS col0, 35 + - + CAST ( NULL AS INTEGER )
----
-5
NULL

query I rowsort
SELECT DISTINCT 58 + 56 + - - 70
----
184

query I rowsort
SELECT ALL 93 + - + 22
----
71

query II rowsort
SELECT 62, 46 * - 93 * 14 + + 45 AS col2
----
62
-59847

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT ALL - 41 + + + 14 + - + 43 * - - MIN( - 5 ) * + + 94
----
20183

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL - 41 + + + 14 + - + 43 * - - MIN ( - 5 ) * + + 94
----
20183

query I rowsort
SELECT ALL 57 + + 31 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT CASE - 96 WHEN - 65 THEN - + COUNT( * ) END / - 26 + - - SUM( ALL - 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2125
SELECT CASE - 96 WHEN - 65 THEN - + COUNT ( * ) END / - 26 + - - SUM ( ALL - 77 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2126
SELECT ALL CASE - AVG ( DISTINCT 54 ) WHEN + COUNT( * ) + - - COUNT( * ) THEN - 91 WHEN 89 DIV 71 THEN NULL WHEN - + 64 THEN + 8 + + 17 ELSE + + 18 END DIV - 97 * - MAX( ALL + 92 ) * + 64 + + COUNT( * ) + + 32 + - 59 + 84 - + 75 + - 25 col0
----
-42

skipif mysql # not compatible
query I rowsort label-2126
SELECT ALL CASE - AVG ( DISTINCT 54 ) WHEN + COUNT ( * ) + - - COUNT ( * ) THEN - 91 WHEN 89 / 71 THEN NULL WHEN - + 64 THEN + 8 + + 17 ELSE + + 18 END / - 97 * - MAX ( ALL + 92 ) * + 64 + + COUNT ( * ) + + 32 + - 59 + 84 - + 75 + - 25 col0
----
-42

query I rowsort
SELECT 31 * 44
----
1364

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

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

query I rowsort
SELECT 43 * + ( - - 35 ) + - - 85 - - + 55
----
1645

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2130
SELECT ALL - COUNT( + 30 ) * - 40 + + 38 + - 77 DIV + + 46
----
77

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL - COUNT ( + 30 ) * - 40 + + 38 + - 77 / + + 46
----
77

query I rowsort
SELECT DISTINCT - 8 * 8 AS col0
----
-64

query I rowsort
SELECT 45 - 26
----
19

query I rowsort
SELECT ALL + ( - 61 ) - - 11 AS col1
----
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-2134
SELECT 76 AS col2, + 80 + - 42 DIV + 22
----
76
79

skipif mysql # not compatible
query II rowsort label-2134
SELECT 76 AS col2, + 80 + - 42 / + 22
----
76
79

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

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

query I rowsort
SELECT 14 - + 71 * + 64
----
-4530

query II rowsort
SELECT ALL 34 AS col0, - 28 col1
----
34
-28

query I rowsort
SELECT - COALESCE ( - - 51, - + 80 - 15 + - 74, + 81 ) * + 99 AS col0
----
-5049

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT - COALESCE ( 62, - 57, + SUM( DISTINCT + - 75 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-2139
SELECT - COALESCE ( 62, - 57, + SUM ( DISTINCT + - 75 ) )
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2140
SELECT COUNT( * ) + - 19 * + 93 + + 50 DIV - + 88 * + 35 * + + 66
----
-1766

skipif mysql # not compatible
query I rowsort label-2140
SELECT COUNT ( * ) + - 19 * + 93 + + 50 / - + 88 * + 35 * + + 66
----
-1766

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

skipif mysql # not compatible
query I rowsort label-2141
SELECT - MAX ( DISTINCT 39 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT DISTINCT + + 56 * - 79 + - 59 + NULLIF ( - - MIN( DISTINCT - 9 ), + 14 ) + - - 64 AS col1
----
-4428

skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT + + 56 * - 79 + - 59 + NULLIF ( - - MIN ( DISTINCT - 9 ), + 14 ) + - - 64 AS col1
----
-4428

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2144
SELECT DISTINCT 24 AS col2, + CASE 88 WHEN - CAST( - COUNT( * ) AS DECIMAL ) + + 41 THEN NULL WHEN + - 4 THEN NULL ELSE - + 93 END AS col0
----
24
-93

skipif mysql # not compatible
query II rowsort label-2144
SELECT DISTINCT 24 AS col2, + CASE 88 WHEN - CAST ( - COUNT ( * ) AS REAL ) + + 41 THEN NULL WHEN + - 4 THEN NULL ELSE - + 93 END AS col0
----
24
-93

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

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

query I rowsort
SELECT DISTINCT + 71 + - - ( + 47 )
----
118

query II rowsort
SELECT 52 + 84 AS col1, - 21
----
136
-21

query I rowsort
SELECT ALL + 72 + - 62
----
10

query I rowsort
SELECT 68 - + 98 * - 95
----
9378

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT 77 - + - COALESCE ( + 81, + - 6, COALESCE ( - - COALESCE ( COUNT( * ), + 98 * + 57, - 1 ), 14 ) * + 57 ) + - + COUNT( ALL - 69 ) + - 10 * - + 86 * + 26 AS col0
----
22517

skipif mysql # not compatible
query I rowsort label-2151
SELECT 77 - + - COALESCE ( + 81, + - 6, COALESCE ( - - COALESCE ( COUNT ( * ), + 98 * + 57, - 1 ), 14 ) * + 57 ) + - + COUNT ( ALL - 69 ) + - 10 * - + 86 * + 26 AS col0
----
22517

query I rowsort
SELECT 13 * 41 AS col2
----
533

query I rowsort
SELECT ALL 87 + + 82
----
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2154
SELECT ALL - COALESCE ( + 54, + + COUNT( * ) + + 23, 32 * + + 46 DIV + 87 )
----
-54

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL - COALESCE ( + 54, + + COUNT ( * ) + + 23, 32 * + + 46 / + 87 )
----
-54

query II rowsort
SELECT 86 + + 31 AS col1, - 37 * - 74
----
117
2738

onlyif mysql # DIV for integer division: 
query I rowsort label-2156
SELECT 46 DIV + 61 - 33 * + 34 AS col1
----
-1122

skipif mysql # not compatible
query I rowsort label-2156
SELECT 46 / + 61 - 33 * + 34 AS col1
----
-1122

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2158
SELECT ( - 11 ) * - - 40 + 34 + - 89 * + CAST( NULL AS SIGNED ) + - 58 / 92
----
NULL

skipif mysql # not compatible
query I rowsort label-2158
SELECT ( - 11 ) * - - 40 + 34 + - 89 * + CAST ( NULL AS INTEGER ) + - 58 / 92
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2160
SELECT MAX( 85 ) col1, 99 AS col0
----
85
99

skipif mysql # not compatible
query II rowsort label-2160
SELECT MAX ( 85 ) col1, 99 AS col0
----
85
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2161
SELECT - CAST( - + 15 AS SIGNED ) / - SUM( ALL - + 82 ) / + - CAST( NULL AS SIGNED ) + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2161
SELECT - CAST ( - + 15 AS INTEGER ) / - SUM ( ALL - + 82 ) / + - CAST ( NULL AS INTEGER ) + - 21
----
NULL

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

query I rowsort
SELECT ALL + 45 - + 35 AS col1
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2164
SELECT 37 DIV - ( - - NULLIF ( + - 25, - 98 ) ) + - - 93 * - 37, + COUNT( * ) col2
----
-3440
1

skipif mysql # not compatible
query II rowsort label-2164
SELECT 37 / - ( - - NULLIF ( + - 25, - 98 ) ) + - - 93 * - 37, + COUNT ( * ) col2
----
-3440
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT MAX( - + 74 ) * - COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-2165
SELECT MAX ( - + 74 ) * - COUNT ( * ) AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2166
SELECT + - CAST( 99 AS SIGNED ) * 53 + + + 45 + - 3 + + 33 * + + 21 + 94 AS col2
----
-4418

skipif mysql # not compatible
query I rowsort label-2166
SELECT + - CAST ( 99 AS INTEGER ) * 53 + + + 45 + - 3 + + 33 * + + 21 + 94 AS col2
----
-4418

query I rowsort
SELECT ALL + 94 * - 41 AS col0
----
-3854

query I rowsort
SELECT + - 13 + + 59 * 32 + + ( 82 ) AS col2
----
1957

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2170
SELECT ALL CAST( NULL AS SIGNED ) + + - 28 + 86 * - + 33 + - NULLIF ( COALESCE ( + 66, 12 * - COUNT( * ) - MAX( ALL - + 88 ), AVG ( - 25 ) ), - 92 * - COUNT( * ) ) * + NULLIF ( COUNT( * ), - - 93 ) * 81
----
NULL

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL CAST ( NULL AS INTEGER ) + + - 28 + 86 * - + 33 + - NULLIF ( COALESCE ( + 66, 12 * - COUNT ( * ) - MAX ( ALL - + 88 ), AVG ( - 25 ) ), - 92 * - COUNT ( * ) ) * + NULLIF ( COUNT ( * ), - - 93 ) * 81
----
NULL

query I rowsort
SELECT DISTINCT + 42 * - + 56
----
-2352

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

query I rowsort
SELECT ALL - 14 + + ( - ( + 4 ) ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT - 29 - + - MAX( - + 42 )
----
-71

skipif mysql # not compatible
query I rowsort label-2174
SELECT - 29 - + - MAX ( - + 42 )
----
-71

query II rowsort
SELECT ALL 0, - 31 AS col0
----
0
-31

query I rowsort
SELECT - 99 + + 32
----
-67

query I rowsort
SELECT ALL - 41 + + 33
----
-8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT DISTINCT - COUNT( * ) * + 99 * - 30 * + + COUNT( * ) * - SUM( ALL 1 )
----
-2970

skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT - COUNT ( * ) * + 99 * - 30 * + + COUNT ( * ) * - SUM ( ALL 1 )
----
-2970

query I rowsort
SELECT - 69 + + - 22 * - 10 AS col2
----
151

query I rowsort
SELECT + 81 * + 21
----
1701

query I rowsort
SELECT - ( - - 56 ) col2
----
-56

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

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

query I rowsort
SELECT - 22 + ( + + ( - + 21 ) )
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-2185
SELECT - 33 DIV + 29 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2185
SELECT - 33 / + 29 AS col0
----
-1

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

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

query I rowsort
SELECT ALL + 79 * 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2189
SELECT - 3 DIV 20
----
0

skipif mysql # not compatible
query I rowsort label-2189
SELECT - 3 / 20
----
0

query II rowsort
SELECT + 88, 37 * + 86 * - 76 col2
----
88
-241832

query I rowsort
SELECT - 0 * - 25 AS col2
----
0

query I rowsort
SELECT ALL + - NULLIF ( - + 31, - 87 ) col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2193
SELECT ALL + + CASE + - CAST( NULL AS SIGNED ) WHEN + 4 + + - ( + 98 ) THEN NULL WHEN + 76 * + CAST( NULL AS SIGNED ) + - COUNT( * ) THEN CASE + 57 WHEN - CASE - + 87 WHEN + COUNT( - ( - 84 ) ) THEN + 4 ELSE + + 68 END * + COUNT( * ) THEN NULL WHEN - 54 + - - COALESCE ( + - 48, - 56 * - 50 / + - 12 ) + + - 39 THEN 93 * - - 0 ELSE NULL END ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL + + CASE + - CAST ( NULL AS INTEGER ) WHEN + 4 + + - ( + 98 ) THEN NULL WHEN + 76 * + CAST ( NULL AS INTEGER ) + - COUNT ( * ) THEN CASE + 57 WHEN - CASE - + 87 WHEN + COUNT ( - ( - 84 ) ) THEN + 4 ELSE + + 68 END * + COUNT ( * ) THEN NULL WHEN - 54 + - - COALESCE ( + - 48, - 56 * - 50 / + - 12 ) + + - 39 THEN 93 * - - 0 ELSE NULL END ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT + + COUNT( * ) + + 10 col1
----
11

skipif mysql # not compatible
query I rowsort label-2194
SELECT + + COUNT ( * ) + + 10 col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT ALL + 85 * - + 96 + 32 * - 58 * + - 71 * + - COUNT( 5 ) * COUNT( NULLIF ( - 32, - 92 * - - 20 * - + 11 + - - 88 ) )
----
-139936

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL + 85 * - + 96 + 32 * - 58 * + - 71 * + - COUNT ( 5 ) * COUNT ( NULLIF ( - 32, - 92 * - - 20 * - + 11 + - - 88 ) )
----
-139936

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT ALL - COUNT( * ) * 45 + + 19 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL - COUNT ( * ) * 45 + + 19 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT - - 84 - 40 * - 49 + + ( MIN( ALL 26 ) )
----
2070

skipif mysql # not compatible
query I rowsort label-2197
SELECT - - 84 - 40 * - 49 + + ( MIN ( ALL 26 ) )
----
2070

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT DISTINCT + 13 * + - COUNT( * ) + 8
----
-5

skipif mysql # not compatible
query I rowsort label-2198
SELECT DISTINCT + 13 * + - COUNT ( * ) + 8
----
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT ALL COALESCE ( - 41, + COUNT( * ) ) * - 87 + + 41 AS col0
----
3608

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL COALESCE ( - 41, + COUNT ( * ) ) * - 87 + + 41 AS col0
----
3608

onlyif mysql # DIV for integer division: 
query I rowsort label-2201
SELECT DISTINCT 22 * - + 78 + + - 85 DIV - 12 col2
----
-1709

skipif mysql # not compatible
query I rowsort label-2201
SELECT DISTINCT 22 * - + 78 + + - 85 / - 12 col2
----
-1709

query II rowsort
SELECT + - ( - ( + + 27 ) ) AS col1, 71 * + + 56 * - 98 AS col2
----
27
-389648

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT ALL 46 * - + 97 * - 62 - - 48 + 78 + + - COUNT( * ) * - 92 + 67 * 54 * 24 - 63
----
363631

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL 46 * - + 97 * - 62 - - 48 + 78 + + - COUNT ( * ) * - 92 + 67 * 54 * 24 - 63
----
363631

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT + COUNT( * ) * 9 + - 53 - ( - SUM( + - 57 ) )
----
-101

skipif mysql # not compatible
query I rowsort label-2205
SELECT + COUNT ( * ) * 9 + - 53 - ( - SUM ( + - 57 ) )
----
-101

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2206
SELECT - CASE ( - 37 ) WHEN - - 24 THEN NULL WHEN 9 THEN + + CAST( NULL AS DECIMAL ) * + 86 / 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2206
SELECT - CASE ( - 37 ) WHEN - - 24 THEN NULL WHEN 9 THEN + + CAST ( NULL AS REAL ) * + 86 / 24 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT ALL ( + + CASE + 34 WHEN - - COUNT( DISTINCT - 70 ) THEN NULL ELSE - - NULLIF ( NULLIF ( 94, - + COALESCE ( - + 2, - - 86 + + 32 * 34 + - COUNT( * ) + + 60 / - SUM( DISTINCT 14 ) ) ), + 45 ) END ) * + + 97
----
9118

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL ( + + CASE + 34 WHEN - - COUNT ( DISTINCT - 70 ) THEN NULL ELSE - - NULLIF ( NULLIF ( 94, - + COALESCE ( - + 2, - - 86 + + 32 * 34 + - COUNT ( * ) + + 60 / - SUM ( DISTINCT 14 ) ) ), + 45 ) END ) * + + 97
----
9118

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2208
SELECT 78, CASE + CASE - 2 WHEN - 12 THEN - 73 WHEN - - 12 * - - 94 THEN NULL ELSE NULL END WHEN - 37 THEN + 16 WHEN + 6 - - + 47 THEN NULL WHEN CAST( NULL AS SIGNED ) * + 65 THEN NULL ELSE NULL END * 69 AS col2
----
78
NULL

skipif mysql # not compatible
query II rowsort label-2208
SELECT 78, CASE + CASE - 2 WHEN - 12 THEN - 73 WHEN - - 12 * - - 94 THEN NULL ELSE NULL END WHEN - 37 THEN + 16 WHEN + 6 - - + 47 THEN NULL WHEN CAST ( NULL AS INTEGER ) * + 65 THEN NULL ELSE NULL END * 69 AS col2
----
78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT DISTINCT COALESCE ( + NULLIF ( + 55, + 60 * - + 50 / + ( + 16 ) + + - ( - 93 ) + SUM( 55 ) + + 88 ), - + 91 )
----
55

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT COALESCE ( + NULLIF ( + 55, + 60 * - + 50 / + ( + 16 ) + + - ( - 93 ) + SUM ( 55 ) + + 88 ), - + 91 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT ALL CASE 88 WHEN - - 63 THEN - 70 * + + MIN( + - 62 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL CASE 88 WHEN - - 63 THEN - 70 * + + MIN ( + - 62 ) ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ALL 34 * + - 81 AS col2
----
-2754

query I rowsort
SELECT + 40 + 11 AS col0
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-2214
SELECT 8 AS col0, 17 + + - 38 DIV - NULLIF ( 43, - - 55 + - 2 * - 30 ) AS col0
----
8
17

skipif mysql # not compatible
query II rowsort label-2214
SELECT 8 AS col0, 17 + + - 38 / - NULLIF ( 43, - - 55 + - 2 * - 30 ) AS col0
----
8
17

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2217
SELECT - 98 * + CAST( + - 28 AS SIGNED ) AS col2
----
2744

skipif mysql # not compatible
query I rowsort label-2217
SELECT - 98 * + CAST ( + - 28 AS INTEGER ) AS col2
----
2744

query I rowsort
SELECT + 10 + - - 52
----
62

query I rowsort
SELECT + 86 + + 52
----
138

query II rowsort
SELECT - 62 + + - 1 AS col0, 89 * 1 * - 1 + 20
----
-63
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-2221
SELECT ALL 68 DIV 65 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL 68 / 65 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT ALL + COALESCE ( - 73, + COUNT( + 90 ), ( - 76 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL + COALESCE ( - 73, + COUNT ( + 90 ), ( - 76 ) )
----
-73

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2224
SELECT - 20 DIV 14 - 83 * - + 65 + - 6
----
5388

skipif mysql # not compatible
query I rowsort label-2224
SELECT - 20 / 14 - 83 * - + 65 + - 6
----
5388

onlyif mysql # DIV for integer division: 
query I rowsort label-2225
SELECT DISTINCT + - 2 DIV - 57 * 77 + - 81
----
-81

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT + - 2 / - 57 * 77 + - 81
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2226
SELECT ALL ( + 76 ) DIV 31 + - + 39
----
-37

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL ( + 76 ) / 31 + - + 39
----
-37

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2228
SELECT ALL + 77 DIV - NULLIF ( - 50, - MIN( DISTINCT + + ( - + 17 ) ) * + 25 )
----
1

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL + 77 / - NULLIF ( - 50, - MIN ( DISTINCT + + ( - + 17 ) ) * + 25 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2229
SELECT 30 DIV + + 21 + + 12 + 67 + 25
----
105

skipif mysql # not compatible
query I rowsort label-2229
SELECT 30 / + + 21 + + 12 + 67 + 25
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2230
SELECT + NULLIF ( + + ( 5 ), + 84 + - - ( + 12 ) + CAST( 11 AS SIGNED ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-2230
SELECT + NULLIF ( + + ( 5 ), + 84 + - - ( + 12 ) + CAST ( 11 AS INTEGER ) ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT ALL + 11 + - + CASE - - COUNT( * ) WHEN - + 21 THEN NULL WHEN 47 THEN - 68 WHEN - NULLIF ( - + 4, + COUNT( ALL + 22 ) + + + 59 - - 50 + COUNT( * ) ) + 14 THEN + + 80 * - + CASE - 84 WHEN - ( 51 ) THEN - - 81 * + 61 + + 39 + - 39 ELSE + + ( + + MIN( DISTINCT + + 24 ) ) END + 51 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL + 11 + - + CASE - - COUNT ( * ) WHEN - + 21 THEN NULL WHEN 47 THEN - 68 WHEN - NULLIF ( - + 4, + COUNT ( ALL + 22 ) + + + 59 - - 50 + COUNT ( * ) ) + 14 THEN + + 80 * - + CASE - 84 WHEN - ( 51 ) THEN - - 81 * + 61 + + 39 + - 39 ELSE + + ( + + MIN ( DISTINCT + + 24 ) ) END + 51 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2232
SELECT + 81 AS col2, - 53 DIV - 94 AS col1
----
81
0

skipif mysql # not compatible
query II rowsort label-2232
SELECT + 81 AS col2, - 53 / - 94 AS col1
----
81
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2233
SELECT + 98 AS col0, + ( + ( 49 ) ), NULLIF ( + COUNT( * ), + CAST( NULL AS SIGNED ) ) AS col2
----
98
49
1

skipif mysql # not compatible
query III rowsort label-2233
SELECT + 98 AS col0, + ( + ( 49 ) ), NULLIF ( + COUNT ( * ), + CAST ( NULL AS INTEGER ) ) AS col2
----
98
49
1

query I rowsort
SELECT ALL + + 7 + + + 53 col2
----
60

query I rowsort
SELECT 48 * + ( - + 66 )
----
-3168

query I rowsort
SELECT 79 + + 81 col0
----
160

query I rowsort
SELECT DISTINCT + 59 * - 2 * + 6
----
-708

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT DISTINCT + 96 - - MIN( DISTINCT 16 )
----
112

skipif mysql # not compatible
query I rowsort label-2239
SELECT DISTINCT + 96 - - MIN ( DISTINCT 16 )
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT COUNT( * ) * - 42 * + 53 AS col1
----
-2226

skipif mysql # not compatible
query I rowsort label-2240
SELECT COUNT ( * ) * - 42 * + 53 AS col1
----
-2226

query I rowsort
SELECT 87 * 80 * + 47 AS col2
----
327120

onlyif mysql # aggregate syntax: 
query II rowsort label-2242
SELECT COUNT( * ) + 97 - + 64 + - SUM( ALL 37 ) - - MAX( - 35 ) AS col2, 14
----
-38
14

skipif mysql # not compatible
query II rowsort label-2242
SELECT COUNT ( * ) + 97 - + 64 + - SUM ( ALL 37 ) - - MAX ( - 35 ) AS col2, 14
----
-38
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2243
SELECT 93 DIV + 95 col2
----
0

skipif mysql # not compatible
query I rowsort label-2243
SELECT 93 / + 95 col2
----
0

query I rowsort
SELECT 31 + 51
----
82

query I rowsort
SELECT 2 + 86 AS col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2246
SELECT 38 * CASE + + 19 WHEN - SUM( - 93 ) THEN + COUNT( * ) * + - 22 WHEN + - 4 THEN + - 64 DIV + ( 61 ) - 49 ELSE + 15 END * 85 * MIN( + 75 ) + - - 27 * 57 + 7 + - - 31 AS col0
----
3635327

skipif mysql # not compatible
query I rowsort label-2246
SELECT 38 * CASE + + 19 WHEN - SUM ( - 93 ) THEN + COUNT ( * ) * + - 22 WHEN + - 4 THEN + - 64 / + ( 61 ) - 49 ELSE + 15 END * 85 * MIN ( + 75 ) + - - 27 * 57 + 7 + - - 31 AS col0
----
3635327

query I rowsort
SELECT COALESCE ( 50, + 40 ) * 38 col2
----
1900

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

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

query I rowsort
SELECT ALL COALESCE ( 4, - 79 * - - 44 ) * 75
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT COALESCE ( 18, + - 24 ) * COUNT( * ) + - 19 + + 80 col2
----
79

skipif mysql # not compatible
query I rowsort label-2250
SELECT COALESCE ( 18, + - 24 ) * COUNT ( * ) + - 19 + + 80 col2
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-2251
SELECT 18 * + COUNT( * ), 64 col0
----
18
64

skipif mysql # not compatible
query II rowsort label-2251
SELECT 18 * + COUNT ( * ), 64 col0
----
18
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2252
SELECT ALL 79 + - 11 DIV 98
----
79

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL 79 + - 11 / 98
----
79

query I rowsort
SELECT + 71 + + 56
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-2254
SELECT DISTINCT + - 47 + - 50 DIV + ( 71 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT + - 47 + - 50 / + ( 71 ) AS col0
----
-47

query I rowsort
SELECT ALL - - 84 + + - ( - 27 ) AS col2
----
111

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2257
SELECT + 12 * + COUNT( * ) * - 35 AS col1, 57 AS col0
----
-420
57

skipif mysql # not compatible
query II rowsort label-2257
SELECT + 12 * + COUNT ( * ) * - 35 AS col1, 57 AS col0
----
-420
57

query I rowsort
SELECT DISTINCT 90 + + 44 AS col2
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-2259
SELECT ALL + + 4 - + ( MIN( + + 26 ) ) + - 62, - 96 * 1 AS col2
----
-84
-96

skipif mysql # not compatible
query II rowsort label-2259
SELECT ALL + + 4 - + ( MIN ( + + 26 ) ) + - 62, - 96 * 1 AS col2
----
-84
-96

query I rowsort
SELECT - 78 * 85 + + 42 - - 1
----
-6587

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

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

query I rowsort
SELECT 63 - - 58 * - - 52
----
3079

onlyif mysql # DIV for integer division: 
query I rowsort label-2263
SELECT DISTINCT + + 29 DIV - - 7
----
4

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT + + 29 / - - 7
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2264
SELECT + 14 * - 80 * - + 76 + + CAST( + MAX( + CAST( + 6 AS SIGNED ) ) AS SIGNED ) * - - 89 * - MIN( ALL + 16 )
----
76576

skipif mysql # not compatible
query I rowsort label-2264
SELECT + 14 * - 80 * - + 76 + + CAST ( + MAX ( + CAST ( + 6 AS INTEGER ) ) AS INTEGER ) * - - 89 * - MIN ( ALL + 16 )
----
76576

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT DISTINCT - COUNT( + - 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-2265
SELECT DISTINCT - COUNT ( + - 37 )
----
-1

query II rowsort
SELECT 96 * 62 * + + 21 AS col1, ( 36 ) * + 48 + ( 49 )
----
124992
1777

query II rowsort
SELECT 46 AS col1, 83
----
46
83

query I rowsort
SELECT 21 * + 21 AS col1
----
441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2269
SELECT ALL + COALESCE ( - 83, CAST( - COUNT( * ) AS SIGNED ) + 67 ) * + + 30 + + + 34 + + + CASE + - 4 WHEN - 31 - + - COUNT( * ) THEN - 61 + COUNT( * ) ELSE NULL END * 86 * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL + COALESCE ( - 83, CAST ( - COUNT ( * ) AS INTEGER ) + 67 ) * + + 30 + + + 34 + + + CASE + - 4 WHEN - 31 - + - COUNT ( * ) THEN - 61 + COUNT ( * ) ELSE NULL END * 86 * 70
----
NULL

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

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

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

query I rowsort
SELECT 21 + 18 AS col1
----
39

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2274
SELECT ( + NULLIF ( - 93, + - 87 ) ) DIV - 97 + - 45 DIV + 48
----
0

skipif mysql # not compatible
query I rowsort label-2274
SELECT ( + NULLIF ( - 93, + - 87 ) ) / - 97 + - 45 / + 48
----
0

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

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

query I rowsort
SELECT ALL + - 40 + + 85 * 98
----
8290

query I rowsort
SELECT + - 97 + - 82
----
-179

query I rowsort
SELECT ALL 52 * - 23
----
-1196

query I rowsort
SELECT ALL + 16 * - 99 AS col0
----
-1584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2280
SELECT 5 * - CAST( - 32 AS SIGNED ) - - 11 col1
----
171

skipif mysql # not compatible
query I rowsort label-2280
SELECT 5 * - CAST ( - 32 AS INTEGER ) - - 11 col1
----
171

query I rowsort
SELECT + 40 + + 36
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2282
SELECT + - 21 DIV + 65 + - + 90 + - 53 + + 69 - CASE COUNT( DISTINCT + ( + + 49 ) ) WHEN - - ( + - 94 ) THEN + - 19 WHEN + + COUNT( * ) THEN + + 43 + + + 9 + + NULLIF ( 18, 97 ) END * ( COUNT( + 0 ) ) + + ( + 7 ) + + - 56 * - CAST( - 40 AS SIGNED ) AS col2
----
-2377

skipif mysql # not compatible
query I rowsort label-2282
SELECT + - 21 / + 65 + - + 90 + - 53 + + 69 - CASE COUNT ( DISTINCT + ( + + 49 ) ) WHEN - - ( + - 94 ) THEN + - 19 WHEN + + COUNT ( * ) THEN + + 43 + + + 9 + + NULLIF ( 18, 97 ) END * ( COUNT ( + 0 ) ) + + ( + 7 ) + + - 56 * - CAST ( - 40 AS INTEGER ) AS col2
----
-2377

onlyif mysql # aggregate syntax: 
query II rowsort label-2283
SELECT + 23 + - 92 * 32 col0, - COUNT( * ) * 72 AS col0
----
-2921
-72

skipif mysql # not compatible
query II rowsort label-2283
SELECT + 23 + - 92 * 32 col0, - COUNT ( * ) * 72 AS col0
----
-2921
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT COALESCE ( - 79, - - 94 ) * + COUNT( * ) + ( + 62 )
----
-17

skipif mysql # not compatible
query I rowsort label-2284
SELECT COALESCE ( - 79, - - 94 ) * + COUNT ( * ) + ( + 62 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT + CASE + SUM( ALL - - 74 ) WHEN - 8 THEN NULL WHEN - - 89 * - ( + + 27 ) * 34 THEN + COUNT( * ) END / - COUNT( * ) * CASE + 99 WHEN + 65 * - 57 THEN - 13 END * + 97 + 99 + MIN( - 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2285
SELECT + CASE + SUM ( ALL - - 74 ) WHEN - 8 THEN NULL WHEN - - 89 * - ( + + 27 ) * 34 THEN + COUNT ( * ) END / - COUNT ( * ) * CASE + 99 WHEN + 65 * - 57 THEN - 13 END * + 97 + 99 + MIN ( - 71 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2286
SELECT + - ( + CAST( NULL AS SIGNED ) ) + 88 * + - 66 + + ( MAX( - 70 ) ) + COUNT( * ) + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT + - ( + CAST ( NULL AS INTEGER ) ) + 88 * + - 66 + + ( MAX ( - 70 ) ) + COUNT ( * ) + + 63
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2287
SELECT ALL CASE + - 45 WHEN - 28 / + 48 + + 4 + + 34 + + + CAST( NULL AS DECIMAL ) THEN + MAX( - + 47 ) END * ( 44 ) - - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL CASE + - 45 WHEN - 28 / + 48 + + 4 + + 34 + + + CAST ( NULL AS REAL ) THEN + MAX ( - + 47 ) END * ( 44 ) - - 97
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2289
SELECT COALESCE ( - 98, 47, - + CAST( NULL AS SIGNED ) ) AS col0, 1
----
-98
1

skipif mysql # not compatible
query II rowsort label-2289
SELECT COALESCE ( - 98, 47, - + CAST ( NULL AS INTEGER ) ) AS col0, 1
----
-98
1

query I rowsort
SELECT 96 * + 22 + + 89 + - 44
----
2157

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT COUNT( * ) * + 83 + - CASE SUM( 93 ) WHEN - - ( - 51 ) THEN + COUNT( * ) WHEN + 43 THEN NULL WHEN + 36 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT COUNT ( * ) * + 83 + - CASE SUM ( 93 ) WHEN - - ( - 51 ) THEN + COUNT ( * ) WHEN + 43 THEN NULL WHEN + 36 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2292
SELECT - COUNT( * ) * 98 * - - 14 * + 86 DIV + + COUNT( * ) AS col2
----
-117992

skipif mysql # not compatible
query I rowsort label-2292
SELECT - COUNT ( * ) * 98 * - - 14 * + 86 / + + COUNT ( * ) AS col2
----
-117992

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT + 34 + - + COUNT( * ) * - COUNT( * ) + + 59 + - 9 + + + CASE + 87 WHEN + - ( + 93 ) + - 99 THEN 67 END + 40 * + 80 * - - AVG ( DISTINCT 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2293
SELECT + 34 + - + COUNT ( * ) * - COUNT ( * ) + + 59 + - 9 + + + CASE + 87 WHEN + - ( + 93 ) + - 99 THEN 67 END + 40 * + 80 * - - AVG ( DISTINCT 33 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2294
SELECT MIN ( + - 74 )
----
-74

query I rowsort
SELECT ALL 16 * - - 73
----
1168

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT 24 * + 28 + - + COUNT( * ) col2
----
671

skipif mysql # not compatible
query I rowsort label-2296
SELECT 24 * + 28 + - + COUNT ( * ) col2
----
671

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT - COUNT( * ) * - 14 + + SUM( DISTINCT + 70 )
----
84

skipif mysql # not compatible
query I rowsort label-2297
SELECT - COUNT ( * ) * - 14 + + SUM ( DISTINCT + 70 )
----
84

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2300
SELECT - COUNT( * ) + - NULLIF ( + 39, 58 ) AS col0, - 84 * 53
----
-40
-4452

skipif mysql # not compatible
query II rowsort label-2300
SELECT - COUNT ( * ) + - NULLIF ( + 39, 58 ) AS col0, - 84 * 53
----
-40
-4452

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT ALL + SUM( DISTINCT 33 ) + 48 * - 75 AS col1
----
-3567

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL + SUM ( DISTINCT 33 ) + 48 * - 75 AS col1
----
-3567

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT ALL + 62 + - 97 * + + COUNT( - 6 ) * + 97 AS col1
----
-9347

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL + 62 + - 97 * + + COUNT ( - 6 ) * + 97 AS col1
----
-9347

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

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

query I rowsort
SELECT ALL + 89 + + 56
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT DISTINCT + 48 + - + 65 * + - COUNT( * ) * - 54
----
-3462

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT + 48 + - + 65 * + - COUNT ( * ) * - 54
----
-3462

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

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL - - CAST ( - - 96 AS INTEGER ) + + 75 AS col0
----
171

onlyif mysql # aggregate syntax: 
query II rowsort label-2307
SELECT - 67 * COUNT( DISTINCT + 1 ) - - 53 AS col1, - 32 AS col1
----
-14
-32

skipif mysql # not compatible
query II rowsort label-2307
SELECT - 67 * COUNT ( DISTINCT + 1 ) - - 53 AS col1, - 32 AS col1
----
-14
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT DISTINCT - - MIN( 62 ) - - + 88 + ( - - 78 ) + + 51 * - ( - 74 ) - - 77 AS col2
----
4079

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT - - MIN ( 62 ) - - + 88 + ( - - 78 ) + + 51 * - ( - 74 ) - - 77 AS col2
----
4079

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT - COALESCE ( - COUNT( * ), + - 55, + 26 * - 9 )
----
1

skipif mysql # not compatible
query I rowsort label-2309
SELECT - COALESCE ( - COUNT ( * ), + - 55, + 26 * - 9 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2310
SELECT + - 60 + - 0, 15 + NULLIF ( + 76, - + COUNT( * ) ) + - - COUNT( * ) AS col1
----
-60
92

skipif mysql # not compatible
query II rowsort label-2310
SELECT + - 60 + - 0, 15 + NULLIF ( + 76, - + COUNT ( * ) ) + - - COUNT ( * ) AS col1
----
-60
92

query II rowsort
SELECT - - 49 * - 14 * 55 * 11, ( 95 ) col0
----
-415030
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT ALL - NULLIF ( + 62, 51 + - 53 ) * - 3 - COUNT( * ) + + 70
----
255

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL - NULLIF ( + 62, 51 + - 53 ) * - 3 - COUNT ( * ) + + 70
----
255

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT ALL 13 * MAX( ALL + 47 )
----
611

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL 13 * MAX ( ALL + 47 )
----
611

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

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

query I rowsort
SELECT - - 47 * ( - + 43 )
----
-2021

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT + + 42 + + + NULLIF ( + + 19, COUNT( + 12 ) ) col1
----
61

skipif mysql # not compatible
query I rowsort label-2317
SELECT + + 42 + + + NULLIF ( + + 19, COUNT ( + 12 ) ) col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2318
SELECT + COALESCE ( + + 23, - 25 * - 39 * 59, - - 70 * + ( - 25 ) DIV + CAST( - 22 AS SIGNED ) * + 67 DIV + 59 - + ( COUNT( * ) ) + - + 85 - 89 + 1 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-2318
SELECT + COALESCE ( + + 23, - 25 * - 39 * 59, - - 70 * + ( - 25 ) / + CAST ( - 22 AS INTEGER ) * + 67 / + 59 - + ( COUNT ( * ) ) + - + 85 - 89 + 1 ) AS col1
----
23

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2320
SELECT + NULLIF ( + 12, - CAST( - - 77 AS SIGNED ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-2320
SELECT + NULLIF ( + 12, - CAST ( - - 77 AS INTEGER ) ) AS col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2321
SELECT + MAX( DISTINCT + 0 ) * + 5 * + 77 + - 61 + + 46 + + CAST( NULL AS DECIMAL ) * + 1 + - 93 / - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT + MAX ( DISTINCT + 0 ) * + 5 * + 77 + - 61 + + 46 + + CAST ( NULL AS REAL ) * + 1 + - 93 / - 65
----
NULL

query I rowsort
SELECT ALL - 69 * + 46 + - 45 AS col2
----
-3219

query I rowsort
SELECT DISTINCT - 25 * + + 70 + - 26 * + 22 col2
----
-2322

query I rowsort
SELECT + 81 * 34
----
2754

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

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

query I rowsort
SELECT CASE + 60 WHEN - 75 + - 12 THEN - + 46 / 84 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2327
SELECT - 33 DIV + 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2327
SELECT - 33 / + 43 AS col2
----
0

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

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

query II rowsort
SELECT 9 AS col0, + 73 + + 60
----
9
133

query I rowsort
SELECT 40 * - ( + 72 ) col0
----
-2880

onlyif mysql # DIV for integer division: 
query I rowsort label-2331
SELECT 46 DIV + 17 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2331
SELECT 46 / + 17 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT ALL + 58 - - SUM( DISTINCT 36 )
----
94

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL + 58 - - SUM ( DISTINCT 36 )
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-2333
SELECT ALL - 60 DIV + COALESCE ( + + 99, + 34 * 76 ) col0, ( - 85 )
----
0
-85

skipif mysql # not compatible
query II rowsort label-2333
SELECT ALL - 60 / + COALESCE ( + + 99, + 34 * 76 ) col0, ( - 85 )
----
0
-85

query I rowsort
SELECT + ( + - 3 ) - - - 4
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT + 64 * + 9 * - 77 * - + COUNT( * )
----
44352

skipif mysql # not compatible
query I rowsort label-2335
SELECT + 64 * + 9 * - 77 * - + COUNT ( * )
----
44352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2336
SELECT + 8 + COUNT( * ) + ( + + 45 ) + 75 DIV + - 16 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-2336
SELECT + 8 + COUNT ( * ) + ( + + 45 ) + 75 / + - 16 AS col0
----
50

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

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

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

query II rowsort
SELECT ALL + 25 AS col1, 49 AS col1
----
25
49

query I rowsort
SELECT 69 + + 40
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT DISTINCT 19 * - - 21 * - COUNT( * ) - + 50
----
-449

skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT 19 * - - 21 * - COUNT ( * ) - + 50
----
-449

query I rowsort
SELECT - 58 + + - 67
----
-125

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

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

query I rowsort
SELECT + ( + NULLIF ( + 61, 57 ) ) + - - 96 + - 4
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2345
SELECT - CAST( NULL AS SIGNED ) / - - 8 + MAX( + CAST( - - 8 AS SIGNED ) ) AS col1, 64 + - 51
----
NULL
13

skipif mysql # not compatible
query II rowsort label-2345
SELECT - CAST ( NULL AS INTEGER ) / - - 8 + MAX ( + CAST ( - - 8 AS INTEGER ) ) AS col1, 64 + - 51
----
NULL
13

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2347
SELECT ALL + + CAST( + 24 AS SIGNED ) + 15 DIV - 46
----
24

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL + + CAST ( + 24 AS INTEGER ) + 15 / - 46
----
24

query I rowsort
SELECT 33 * 1 + + 33
----
66

query II rowsort
SELECT ALL - 41, NULLIF ( + 50, 29 - + 8 * 60 ) AS col0
----
-41
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2350
SELECT 12 * - CAST( + + 62 AS SIGNED )
----
-744

skipif mysql # not compatible
query I rowsort label-2350
SELECT 12 * - CAST ( + + 62 AS INTEGER )
----
-744

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

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL - ( MAX ( - 55 ) ) col2
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2352
SELECT DISTINCT - 79 DIV COUNT( * ) * - 6 * 81
----
38394

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT - 79 / COUNT ( * ) * - 6 * 81
----
38394

query I rowsort
SELECT DISTINCT 17 * - + 60 AS col1
----
-1020

onlyif mysql # DIV for integer division: 
query I rowsort label-2354
SELECT DISTINCT - 6 + + + 58 + + ( + 6 ) * - - 32 + + 2 DIV 3
----
244

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT - 6 + + + 58 + + ( + 6 ) * - - 32 + + 2 / 3
----
244

query I rowsort
SELECT 61 * - + 73 + + + 83 AS col1
----
-4370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2356
SELECT 47 * - + COALESCE ( + CAST( + - 47 AS SIGNED ), + MIN( + 79 ), - - SUM( ALL - 76 ) )
----
2209

skipif mysql # not compatible
query I rowsort label-2356
SELECT 47 * - + COALESCE ( + CAST ( + - 47 AS INTEGER ), + MIN ( + 79 ), - - SUM ( ALL - 76 ) )
----
2209

query II rowsort
SELECT ALL - 86, + 29 AS col1
----
-86
29

query II rowsort
SELECT + 61 AS col0, - 76 AS col0
----
61
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2359
SELECT ALL - ( + 0 ) AS col2, - COALESCE ( + + 89, + - 56 ) + - + CASE - CAST( NULL AS SIGNED ) WHEN 99 THEN - 50 * - + COUNT( * ) WHEN + CAST( 83 AS SIGNED ) THEN NULL END col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2359
SELECT ALL - ( + 0 ) AS col2, - COALESCE ( + + 89, + - 56 ) + - + CASE - CAST ( NULL AS INTEGER ) WHEN 99 THEN - 50 * - + COUNT ( * ) WHEN + CAST ( 83 AS INTEGER ) THEN NULL END col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT COUNT( * ) + - 77 + - 74 * COUNT( * ) + + COALESCE ( NULLIF ( + + 6, - 16 ), - 78, - + 78, 82 ) + 54 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-2360
SELECT COUNT ( * ) + - 77 + - 74 * COUNT ( * ) + + COALESCE ( NULLIF ( + + 6, - 16 ), - 78, - + 78, 82 ) + 54 AS col2
----
-90

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

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

query I rowsort
SELECT 62 * + 8 col2
----
496

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT - 88 * - - 86 * - MAX( - 27 ) + - 47
----
-204383

skipif mysql # not compatible
query I rowsort label-2364
SELECT - 88 * - - 86 * - MAX ( - 27 ) + - 47
----
-204383

query I rowsort
SELECT - 62 + - 27 col1
----
-89

query I rowsort
SELECT ALL NULLIF ( - 6, - - ( - ( - + 10 ) ) ) * - 59
----
354

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

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

query I rowsort
SELECT ALL - COALESCE ( - 61, 77 ) AS col0
----
61

query I rowsort
SELECT DISTINCT + 35 * - 23 * 55 col1
----
-44275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2370
SELECT ALL - 27, + 87 * CAST( NULL AS SIGNED ) * + 99 + - - CAST( - CASE - 73 WHEN + COUNT( * ) THEN - CASE - 74 WHEN + ( + + 32 ) THEN NULL WHEN 67 THEN + 36 + + + 67 - - ( + COUNT( * ) ) + + - 45 + - COUNT( * ) - + + 95 * - - 59 * + CASE - 64 WHEN 60 - - 26 THEN NULL ELSE 51 * 86 END END WHEN COUNT( * ) THEN + 55 WHEN 26 * - - 29 + + - 29 + + 91 * 72 THEN + 82 / - 97 - - 84 + + CAST( - 74 AS SIGNED ) ELSE - + 44 END AS SIGNED ) AS col2
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-2370
SELECT ALL - 27, + 87 * CAST ( NULL AS INTEGER ) * + 99 + - - CAST ( - CASE - 73 WHEN + COUNT ( * ) THEN - CASE - 74 WHEN + ( + + 32 ) THEN NULL WHEN 67 THEN + 36 + + + 67 - - ( + COUNT ( * ) ) + + - 45 + - COUNT ( * ) - + + 95 * - - 59 * + CASE - 64 WHEN 60 - - 26 THEN NULL ELSE 51 * 86 END END WHEN COUNT ( * ) THEN + 55 WHEN 26 * - - 29 + + - 29 + + 91 * 72 THEN + 82 / - 97 - - 84 + + CAST ( - 74 AS INTEGER ) ELSE - + 44 END AS INTEGER ) AS col2
----
-27
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2373
SELECT 63 * 47 DIV - 59 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-2373
SELECT 63 * 47 / - 59 AS col0
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2374
SELECT ALL 48 DIV ( + COUNT( DISTINCT + - 74 ) ) + 20 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL 48 / ( + COUNT ( DISTINCT + - 74 ) ) + 20 AS col2
----
68

query I rowsort
SELECT DISTINCT - CASE - - 14 WHEN + 48 THEN 48 - - 80 + - - ( - - 0 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT + 22 * + 63 - MAX( - 32 )
----
1418

skipif mysql # not compatible
query I rowsort label-2376
SELECT + 22 * + 63 - MAX ( - 32 )
----
1418

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT ALL + SUM( DISTINCT - 72 ) + + - 58 AS col0
----
-130

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL + SUM ( DISTINCT - 72 ) + + - 58 AS col0
----
-130

onlyif mysql # aggregate syntax: 
query II rowsort label-2378
SELECT ALL MAX( - + 32 ), - 17 AS col2
----
-32
-17

skipif mysql # not compatible
query II rowsort label-2378
SELECT ALL MAX ( - + 32 ), - 17 AS col2
----
-32
-17

query I rowsort
SELECT 15 * - + 84
----
-1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2380
SELECT ALL - CAST( + 17 AS SIGNED ) * - 72 * - + COUNT( * )
----
-1224

skipif mysql # not compatible
query I rowsort label-2380
SELECT ALL - CAST ( + 17 AS INTEGER ) * - 72 * - + COUNT ( * )
----
-1224

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT NULLIF ( + - 47, + COUNT( * ) * + - 39 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-2381
SELECT NULLIF ( + - 47, + COUNT ( * ) * + - 39 ) AS col0
----
-47

query I rowsort
SELECT DISTINCT + 37 * + 60 * 8 + - COALESCE ( + + 60, + 76 + 15 + + 48, - NULLIF ( + 84, 64 ) ) AS col0
----
17700

query I rowsort
SELECT 57 + - 46
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2384
SELECT - 4 * + CAST( NULL AS SIGNED ), 59 AS col1
----
NULL
59

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2385
SELECT - 22 DIV + - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2385
SELECT - 22 / + - 91 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT DISTINCT 2 * + 18 * + 65 - + COUNT( * ) AS col2
----
2339

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT 2 * + 18 * + 65 - + COUNT ( * ) AS col2
----
2339

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2388
SELECT ALL + CAST( NULL AS SIGNED ) / + 9 * 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL + CAST ( NULL AS INTEGER ) / + 9 * 58 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT DISTINCT - NULLIF ( ( 21 ), + MAX( - 21 ) ) * + 32 - + 23 * + + COUNT( * )
----
-695

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT - NULLIF ( ( 21 ), + MAX ( - 21 ) ) * + 32 - + 23 * + + COUNT ( * )
----
-695

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2390
SELECT ALL 62 * - 41 * - CAST( 9 AS SIGNED )
----
22878

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL 62 * - 41 * - CAST ( 9 AS INTEGER )
----
22878

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

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

query I rowsort
SELECT ALL - 40 * 25
----
-1000

onlyif mysql # aggregate syntax: 
query II rowsort label-2393
SELECT DISTINCT + + NULLIF ( - 16, + 7 ) AS col1, MIN( ALL - ( + 97 ) ) + - COUNT( * )
----
-16
-98

skipif mysql # not compatible
query II rowsort label-2393
SELECT DISTINCT + + NULLIF ( - 16, + 7 ) AS col1, MIN ( ALL - ( + 97 ) ) + - COUNT ( * )
----
-16
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2394
SELECT - - 36 - - 86 DIV + 71 + + 35
----
72

skipif mysql # not compatible
query I rowsort label-2394
SELECT - - 36 - - 86 / + 71 + + 35
----
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT ALL + ( COUNT( DISTINCT - NULLIF ( + - 10, 58 * ( + 74 ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL + ( COUNT ( DISTINCT - NULLIF ( + - 10, 58 * ( + 74 ) ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT + - COUNT( * ) * + SUM( 0 )
----
0

skipif mysql # not compatible
query I rowsort label-2397
SELECT + - COUNT ( * ) * + SUM ( 0 )
----
0

query I rowsort
SELECT ALL 79 + - 91 + + 65
----
53

query I rowsort
SELECT + 49 - + 18
----
31

query I rowsort
SELECT - 93 + - 78 + + - 45 * 93 AS col1
----
-4356

query I rowsort
SELECT - COALESCE ( - 3, + 54 * + - 21 )
----
3

query I rowsort
SELECT + 6 + - ( - 0 ) + - + NULLIF ( + + 91, - - 64 )
----
-85

query I rowsort
SELECT + 76 * - + 26 + 13 AS col0
----
-1963

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

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

query I rowsort
SELECT + - 85 + + + 77 AS col0
----
-8

query I rowsort
SELECT DISTINCT NULLIF ( + 42, - 1 )
----
42

query I rowsort
SELECT + - 35 + + - 51
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT ALL - 30 + + 10 * - 29 + + COUNT( * ) - - 54
----
-265

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL - 30 + + 10 * - 29 + + COUNT ( * ) - - 54
----
-265

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

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

query I rowsort
SELECT ALL + 6 + - 60
----
-54

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2412
SELECT 7 DIV COUNT( * ) * + 69 + - MIN( ALL 35 ) + - 6 DIV 86 DIV + 54 AS col1
----
448

skipif mysql # not compatible
query I rowsort label-2412
SELECT 7 / COUNT ( * ) * + 69 + - MIN ( ALL 35 ) + - 6 / 86 / + 54 AS col1
----
448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2413
SELECT + 22 + + + CASE - + 96 WHEN - 20 THEN NULL WHEN - - 82 THEN NULL ELSE - 78 END * - 97 - - + COUNT( * ) * - - CASE CAST( NULL AS SIGNED ) WHEN + 50 - 25 THEN NULL ELSE - 95 END AS col2
----
7493

skipif mysql # not compatible
query I rowsort label-2413
SELECT + 22 + + + CASE - + 96 WHEN - 20 THEN NULL WHEN - - 82 THEN NULL ELSE - 78 END * - 97 - - + COUNT ( * ) * - - CASE CAST ( NULL AS INTEGER ) WHEN + 50 - 25 THEN NULL ELSE - 95 END AS col2
----
7493

query I rowsort
SELECT + 81 * 18
----
1458

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2416
SELECT COUNT( * ) / - 62 + - - 62 * - CAST( NULL AS SIGNED ) + + - AVG ( DISTINCT + ( - 45 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2416
SELECT COUNT ( * ) / - 62 + - - 62 * - CAST ( NULL AS INTEGER ) + + - AVG ( DISTINCT + ( - 45 ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 17 * + - 49 * - 37
----
30821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2418
SELECT ALL ( + - CAST( 91 AS SIGNED ) ) * - MIN( DISTINCT 6 )
----
546

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL ( + - CAST ( 91 AS INTEGER ) ) * - MIN ( DISTINCT 6 )
----
546

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2420
SELECT + 29 * 48 DIV + + MIN( DISTINCT 41 ) + 52
----
85

skipif mysql # not compatible
query I rowsort label-2420
SELECT + 29 * 48 / + + MIN ( DISTINCT 41 ) + 52
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL + NULLIF ( + + 23, + 77 / - - 63 + ( - MIN( - 78 ) ) )
----
23

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL + NULLIF ( + + 23, + 77 / - - 63 + ( - MIN ( - 78 ) ) )
----
23

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2423
SELECT - - 90 + COUNT( * ) + - 78 + + + 59 DIV + 58 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-2423
SELECT - - 90 + COUNT ( * ) + - 78 + + + 59 / + 58 AS col0
----
14

query II rowsort
SELECT + - 44 AS col2, + 9 col2
----
-44
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT DISTINCT NULLIF ( + 59, - 13 + - + ( + 12 ) ) * - 26 * - 63 + - 33 + + 36 * COUNT( * ) * 42 + + 21 AS col2
----
98142

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT NULLIF ( + 59, - 13 + - + ( + 12 ) ) * - 26 * - 63 + - 33 + + 36 * COUNT ( * ) * 42 + + 21 AS col2
----
98142

query II rowsort
SELECT 41 * - + 15 + + 84 AS col2, 56 AS col0
----
-531
56

onlyif mysql # aggregate syntax: 
query II rowsort label-2428
SELECT ALL + 57 * - 27 + + MIN( - 12 ), 81 AS col1
----
-1551
81

skipif mysql # not compatible
query II rowsort label-2428
SELECT ALL + 57 * - 27 + + MIN ( - 12 ), 81 AS col1
----
-1551
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2429
SELECT ALL - + CAST( NULL AS SIGNED ) * + - COALESCE ( COUNT( * ), - + 79 ) + - + 81 + - MAX( ALL + 76 ) - + 16 AS col1, 47 + + 70 AS col0
----
NULL
117

skipif mysql # not compatible
query II rowsort label-2429
SELECT ALL - + CAST ( NULL AS INTEGER ) * + - COALESCE ( COUNT ( * ), - + 79 ) + - + 81 + - MAX ( ALL + 76 ) - + 16 AS col1, 47 + + 70 AS col0
----
NULL
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT ALL - 44 * + + 34 + - MAX( - 38 )
----
-1458

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL - 44 * + + 34 + - MAX ( - 38 )
----
-1458

query I rowsort
SELECT - 77 * + 9
----
-693

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2432
SELECT - - 75 + 13 - - 83 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2432
SELECT - - 75 + 13 - - 83 + - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + - 25 + + 67 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT SUM( CASE + + 73 WHEN + NULLIF ( 7, + 0 ) * - - 37 THEN NULL ELSE + 60 + + 23 + 82 END ) AS col2
----
165

skipif mysql # not compatible
query I rowsort label-2434
SELECT SUM ( CASE + + 73 WHEN + NULLIF ( 7, + 0 ) * - - 37 THEN NULL ELSE + 60 + + 23 + 82 END ) AS col2
----
165

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

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

query I rowsort
SELECT ALL - 34 + - 44 col1
----
-78

query I rowsort
SELECT DISTINCT + ( + 50 ) + 70 + + 12 AS col2
----
132

query II rowsort
SELECT - - 46, 91 AS col1
----
46
91

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

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

query I rowsort
SELECT 40 - ( - 64 ) * - 29 AS col1
----
-1816

query I rowsort
SELECT ALL 93 * 19
----
1767

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2442
SELECT 47 + ( 65 ) * - + 78 * - - 9 * + 47 + - ( - COUNT( - - 99 ) ) + - 64 DIV + - ( - COUNT( * ) ) AS col0, 60 AS col2
----
-2144626
60

skipif mysql # not compatible
query II rowsort label-2442
SELECT 47 + ( 65 ) * - + 78 * - - 9 * + 47 + - ( - COUNT ( - - 99 ) ) + - 64 / + - ( - COUNT ( * ) ) AS col0, 60 AS col2
----
-2144626
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT DISTINCT 4 * SUM( ALL 77 ) AS col1
----
308

skipif mysql # not compatible
query I rowsort label-2443
SELECT DISTINCT 4 * SUM ( ALL 77 ) AS col1
----
308

onlyif mysql # aggregate syntax: 
query II rowsort label-2444
SELECT ALL 39 * - SUM( - - ( - - 31 ) ), - 5 AS col2
----
-1209
-5

skipif mysql # not compatible
query II rowsort label-2444
SELECT ALL 39 * - SUM ( - - ( - - 31 ) ), - 5 AS col2
----
-1209
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2445
SELECT 66 DIV - - 7
----
9

skipif mysql # not compatible
query I rowsort label-2445
SELECT 66 / - - 7
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2446
SELECT COUNT( * ) + 43 col1, COALESCE ( + - CAST( NULL AS SIGNED ), + - 0, - - 95 * - 70, - MIN( ALL - 79 ) ) * - MAX( ALL + 33 ) * + 9
----
44
0

skipif mysql # not compatible
query II rowsort label-2446
SELECT COUNT ( * ) + 43 col1, COALESCE ( + - CAST ( NULL AS INTEGER ), + - 0, - - 95 * - 70, - MIN ( ALL - 79 ) ) * - MAX ( ALL + 33 ) * + 9
----
44
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2447
SELECT ( + 37 ) * - + 69 * + + NULLIF ( + 35, - CAST( - + 68 AS SIGNED ) + + 51 ) col1
----
-89355

skipif mysql # not compatible
query I rowsort label-2447
SELECT ( + 37 ) * - + 69 * + + NULLIF ( + 35, - CAST ( - + 68 AS INTEGER ) + + 51 ) col1
----
-89355

onlyif mysql # DIV for integer division: 
query I rowsort label-2448
SELECT 56 DIV 54 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2448
SELECT 56 / 54 AS col1
----
1

query I rowsort
SELECT 91 + + + 53 col2
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-2450
SELECT ALL 27 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL 27 / - 84
----
0

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

skipif mysql # not compatible
query I rowsort label-2451
SELECT 1 * - MAX ( ALL + - 7 ) AS col0
----
7

query II rowsort
SELECT 75 + + COALESCE ( 71, 83 ) AS col2, 70
----
146
70

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

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL 51 + ( + COUNT ( * ) ) AS col2
----
52

query I rowsort
SELECT DISTINCT CASE - 85 WHEN + 38 THEN 96 WHEN 64 THEN NULL END + + - 29 AS col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2456
SELECT + + CASE + + CAST( NULL AS SIGNED ) WHEN - 22 * - 60 + COUNT( * ) THEN NULL ELSE - 83 END
----
-83

skipif mysql # not compatible
query I rowsort label-2456
SELECT + + CASE + + CAST ( NULL AS INTEGER ) WHEN - 22 * - 60 + COUNT ( * ) THEN NULL ELSE - 83 END
----
-83

query I rowsort
SELECT ALL + 15 * + + 1 AS col0
----
15

query I rowsort
SELECT 12 * + 19 AS col2
----
228

query I rowsort
SELECT ALL - 98 + + 44 + 61 AS col0
----
7

query I rowsort
SELECT DISTINCT - 96 + + + 75 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT DISTINCT COALESCE ( - - 87, - COUNT( * ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT COALESCE ( - - 87, - COUNT ( * ) ) AS col2
----
87

query I rowsort
SELECT + 34 * + + 99 + + 90 AS col2
----
3456

onlyif mysql # DIV for integer division: 
query I rowsort label-2463
SELECT ALL - + 42 DIV - 36 + - + 25 + - 39 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL - + 42 / - 36 + - + 25 + - 39 AS col1
----
-63

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

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

query I rowsort
SELECT 61 - + 81
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT + MAX( ALL - 42 ) + - 0
----
-42

skipif mysql # not compatible
query I rowsort label-2466
SELECT + MAX ( ALL - 42 ) + - 0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2467
SELECT COALESCE ( + 94, 87 * - 96 + + CAST( 13 AS SIGNED ) ) - + + 27 * + - 22 * + NULLIF ( - ( + COALESCE ( - - COUNT( * ), 39 ) ), 38 + 17 * COUNT( * ) ) DIV - COUNT( * ) AS col1
----
688

skipif mysql # not compatible
query I rowsort label-2467
SELECT COALESCE ( + 94, 87 * - 96 + + CAST ( 13 AS INTEGER ) ) - + + 27 * + - 22 * + NULLIF ( - ( + COALESCE ( - - COUNT ( * ), 39 ) ), 38 + 17 * COUNT ( * ) ) / - COUNT ( * ) AS col1
----
688

onlyif mysql # DIV for integer division: 
query I rowsort label-2468
SELECT ALL - 7 - - ( + 33 ) + - + 9 DIV 7
----
25

skipif mysql # not compatible
query I rowsort label-2468
SELECT ALL - 7 - - ( + 33 ) + - + 9 / 7
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT 57 * + 17 * COALESCE ( - 39, + - 73 * - 16 * - 61 + 51, + 98 ) * + COUNT( * ) * - - 9
----
-340119

skipif mysql # not compatible
query I rowsort label-2469
SELECT 57 * + 17 * COALESCE ( - 39, + - 73 * - 16 * - 61 + 51, + 98 ) * + COUNT ( * ) * - - 9
----
-340119

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT 31 * COUNT( * ) col2
----
31

skipif mysql # not compatible
query I rowsort label-2470
SELECT 31 * COUNT ( * ) col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT MIN( ALL - 10 ) + + 92 * - - 73 * 97 * + 7
----
4560154

skipif mysql # not compatible
query I rowsort label-2471
SELECT MIN ( ALL - 10 ) + + 92 * - - 73 * 97 * + 7
----
4560154

onlyif mysql # aggregate syntax: 
query II rowsort label-2472
SELECT DISTINCT 51 AS col0, MAX( + - 7 ) * - + 96 AS col0
----
51
672

skipif mysql # not compatible
query II rowsort label-2472
SELECT DISTINCT 51 AS col0, MAX ( + - 7 ) * - + 96 AS col0
----
51
672

query II rowsort
SELECT 59 + + 43 - 60 + 4 + - 2, - 88 col0
----
44
-88

query I rowsort
SELECT 46 * - 63 * + 94 * 52 AS col0
----
-14165424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2475
SELECT + 83 DIV MIN( DISTINCT - 95 ) + + 82 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-2475
SELECT + 83 / MIN ( DISTINCT - 95 ) + + 82 AS col1
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-2476
SELECT ALL 86 * - 7 * + 82, - 93 * - SUM( DISTINCT + 88 ) AS col1
----
-49364
8184

skipif mysql # not compatible
query II rowsort label-2476
SELECT ALL 86 * - 7 * + 82, - 93 * - SUM ( DISTINCT + 88 ) AS col1
----
-49364
8184

onlyif mysql # DIV for integer division: 
query I rowsort label-2477
SELECT 1 DIV - + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2477
SELECT 1 / - + 99 AS col0
----
0

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

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

query I rowsort
SELECT DISTINCT - 99 + - 16 AS col0
----
-115

onlyif mysql # aggregate syntax: 
query II rowsort label-2480
SELECT ALL - 46 AS col1, - NULLIF ( 31, - - ( 55 ) / - - 52 + + 36 + NULLIF ( + 86, + + 17 ) / + + 20 + - - SUM( DISTINCT + 87 ) * 27 + + 45 ) * 53 - - COUNT( * ) AS col1
----
-46
-1642

skipif mysql # not compatible
query II rowsort label-2480
SELECT ALL - 46 AS col1, - NULLIF ( 31, - - ( 55 ) / - - 52 + + 36 + NULLIF ( + 86, + + 17 ) / + + 20 + - - SUM ( DISTINCT + 87 ) * 27 + + 45 ) * 53 - - COUNT ( * ) AS col1
----
-46
-1642

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT DISTINCT 38 + + COALESCE ( - COUNT( * ), - ( - - 16 ) ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT 38 + + COALESCE ( - COUNT ( * ), - ( - - 16 ) ) AS col0
----
37

query I rowsort
SELECT ALL - 82 + - 82
----
-164

query I rowsort
SELECT ALL 73 + 88 col2
----
161

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

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

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

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

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

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

query I rowsort
SELECT 9 * 46 + + 20 AS col2
----
434

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT COUNT( * ) + NULLIF ( 89, 53 * 42 )
----
90

skipif mysql # not compatible
query I rowsort label-2488
SELECT COUNT ( * ) + NULLIF ( 89, 53 * 42 )
----
90

query I rowsort
SELECT ALL 37 + - 95 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT 37 * 68 + - 85 * COUNT( * ) AS col0
----
2431

skipif mysql # not compatible
query I rowsort label-2490
SELECT 37 * 68 + - 85 * COUNT ( * ) AS col0
----
2431

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT DISTINCT 42 + 69 DIV + 76 col2
----
42

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT 42 + 69 / + 76 col2
----
42

query I rowsort
SELECT ALL 66 * 63
----
4158

query I rowsort
SELECT 15 + - 97
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT ALL 77 - + 24 * - COUNT( * ) AS col0
----
101

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL 77 - + 24 * - COUNT ( * ) AS col0
----
101

query I rowsort
SELECT - 63 * + 36 + 55 AS col0
----
-2213

query I rowsort
SELECT ALL + ( 14 ) - 92 col1
----
-78

query I rowsort
SELECT + CASE 3 WHEN - 13 THEN - 53 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT ALL 30 * COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL 30 * COUNT ( * ) AS col0
----
30

query I rowsort
SELECT 41 + 31
----
72

query I rowsort
SELECT DISTINCT 65 * 4
----
260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2502
SELECT ALL ( 33 ) - CAST( 74 AS SIGNED ) DIV COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL ( 33 ) - CAST ( 74 AS INTEGER ) / COUNT ( * )
----
-41

query I rowsort
SELECT + 88 * - CASE 95 * 34 WHEN + 28 THEN NULL WHEN 56 THEN NULL WHEN 30 / 86 THEN 20 * - 64 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 94 + - COALESCE ( 10, - 1, - 8 ) AS col2
----
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-2505
SELECT + 5 DIV - 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2505
SELECT + 5 / - 98 AS col2
----
0

query I rowsort
SELECT - 11 * 52 AS col0
----
-572

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT ALL CASE 67 WHEN 79 / 33 THEN MIN( ALL 51 ) WHEN 37 THEN + 45 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2507
SELECT ALL CASE 67 WHEN 79 / 33 THEN MIN ( ALL 51 ) WHEN 37 THEN + 45 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2509
SELECT ALL + 85 DIV - 66 col0
----
-1

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL + 85 / - 66 col0
----
-1

query I rowsort
SELECT + 22 - + 68 * 3 AS col2
----
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT + 39 DIV 11
----
3

skipif mysql # not compatible
query I rowsort label-2511
SELECT + 39 / 11
----
3

query I rowsort
SELECT - NULLIF ( 70, - 83 ) + + 26 col1
----
-44

query I rowsort
SELECT DISTINCT + 67 + 13 * 8 AS col0
----
171

query I rowsort
SELECT ALL - 13 * 44 AS col1
----
-572

query I rowsort
SELECT DISTINCT + 58 * - 16 col1
----
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT - NULLIF ( 12, COUNT( * ) ) + + 17 * - 7 col2
----
-131

skipif mysql # not compatible
query I rowsort label-2516
SELECT - NULLIF ( 12, COUNT ( * ) ) + + 17 * - 7 col2
----
-131

onlyif mysql # DIV for integer division: 
query I rowsort label-2517
SELECT DISTINCT + 68 + - 80 DIV 46 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT + 68 + - 80 / 46 AS col0
----
67

query I rowsort
SELECT ALL - 13 * - 14 AS col2
----
182

query I rowsort
SELECT - 85 * 80 AS col1
----
-6800

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT DISTINCT + 53 * + COUNT( * ) + 45 * 42
----
1943

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT + 53 * + COUNT ( * ) + 45 * 42
----
1943

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2522
SELECT ALL 4 * + 55 + 18 DIV - 13 AS col1
----
219

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL 4 * + 55 + 18 / - 13 AS col1
----
219

query I rowsort
SELECT DISTINCT COALESCE ( 16, - 97 ) * - 99 + 72 * + 45
----
1656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2524
SELECT + - CAST( 1 AS SIGNED ) * + 34 + - 51
----
-85

skipif mysql # not compatible
query I rowsort label-2524
SELECT + - CAST ( 1 AS INTEGER ) * + 34 + - 51
----
-85

query I rowsort
SELECT ALL - + 65 * + 59 + 16
----
-3819

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

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT - ( + 76 ) * ( + COUNT ( * ) / - 9 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2527
SELECT DISTINCT - 54 DIV 39
----
-1

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT - 54 / 39
----
-1

query I rowsort
SELECT DISTINCT - 58 * 80 - 62
----
-4702

query I rowsort
SELECT - 71 + ( 67 + 68 ) AS col1
----
64

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

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

query I rowsort
SELECT ALL + 15 * 84 - 4 AS col0
----
1256

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT DISTINCT + COUNT( * ) * - 82 col2
----
-82

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT + COUNT ( * ) * - 82 col2
----
-82

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2535
SELECT - - ( 35 ) * - 43 + - 85 DIV + 78 AS col1
----
-1506

skipif mysql # not compatible
query I rowsort label-2535
SELECT - - ( 35 ) * - 43 + - 85 / + 78 AS col1
----
-1506

query I rowsort
SELECT + + 75 * - 67
----
-5025

query I rowsort
SELECT + 73 * 40
----
2920

query I rowsort
SELECT + 43 * 29 col0
----
1247

query I rowsort
SELECT + - ( + 25 ) - 94 AS col2
----
-119

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2540
SELECT DISTINCT ( + + CAST( + 32 AS SIGNED ) ) DIV - 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2540
SELECT DISTINCT ( + + CAST ( + 32 AS INTEGER ) ) / - 43 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT ALL MAX( ALL 27 )
----
27

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL MAX ( ALL 27 )
----
27

query I rowsort
SELECT + 34 * + 40
----
1360

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

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

query I rowsort
SELECT ALL 16 + - 6
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT + COUNT( * ) + - - 91 - 45
----
47

skipif mysql # not compatible
query I rowsort label-2545
SELECT + COUNT ( * ) + - - 91 - 45
----
47

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2547
SELECT - CASE + COALESCE ( + 75, 49 ) WHEN 38 THEN + 33 WHEN + COUNT( * ) + + COALESCE ( - COUNT( * ) + MAX( ALL + 76 ), + 16 * + COALESCE ( 79, + 28 - - 33 * + SUM( DISTINCT 76 + - ( + 55 ) ), - AVG ( - 94 ) - CAST( NULL AS DECIMAL ) ) - - COUNT( * ) / + ( + CAST( NULL AS SIGNED ) ) ) THEN NULL WHEN + 35 THEN + 15 * 31 WHEN 34 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2547
SELECT - CASE + COALESCE ( + 75, 49 ) WHEN 38 THEN + 33 WHEN + COUNT ( * ) + + COALESCE ( - COUNT ( * ) + MAX ( ALL + 76 ), + 16 * + COALESCE ( 79, + 28 - - 33 * + SUM ( DISTINCT 76 + - ( + 55 ) ), - AVG ( - 94 ) - CAST ( NULL AS REAL ) ) - - COUNT ( * ) / + ( + CAST ( NULL AS INTEGER ) ) ) THEN NULL WHEN + 35 THEN + 15 * 31 WHEN 34 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 98 + - 73 - - 1
----
26

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

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

query I rowsort
SELECT DISTINCT 28 + - ( - 18 ) - + 30 * 15 AS col1
----
-404

query I rowsort
SELECT + 92 + - 6 * 24
----
-52

query I rowsort
SELECT ALL - 8 + + 21 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT ALL + 54 + + NULLIF ( 26, - COUNT( * ) * 3 + + 68 )
----
80

skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL + 54 + + NULLIF ( 26, - COUNT ( * ) * 3 + + 68 )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2554
SELECT + CASE + + 30 WHEN CAST( COUNT( - 45 ) AS SIGNED ) / 54 THEN 3 WHEN 37 + 8 THEN NULL ELSE ( - COUNT( * ) ) END + - CASE 75 + + 47 * - AVG ( ( + COALESCE ( - 4, - 28 ) ) ) WHEN + 65 + - COUNT( * ) THEN NULL WHEN ( 27 ) THEN - MAX( ALL 74 ) * 64 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2554
SELECT + CASE + + 30 WHEN CAST ( COUNT ( - 45 ) AS INTEGER ) / 54 THEN 3 WHEN 37 + 8 THEN NULL ELSE ( - COUNT ( * ) ) END + - CASE 75 + + 47 * - AVG ( ( + COALESCE ( - 4, - 28 ) ) ) WHEN + 65 + - COUNT ( * ) THEN NULL WHEN ( 27 ) THEN - MAX ( ALL 74 ) * 64 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2555
SELECT + 45 + 76 + CAST( NULL AS DECIMAL ) * 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2555
SELECT + 45 + 76 + CAST ( NULL AS REAL ) * 35 AS col1
----
NULL

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

query I rowsort
SELECT ALL 27 + + + 84
----
111

query I rowsort
SELECT - 38 * - 72 * 40
----
109440

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT DISTINCT + 37 + + ( SUM( 45 ) )
----
82

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT + 37 + + ( SUM ( 45 ) )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2560
SELECT ALL + + 53 * - CAST( - NULLIF ( 90, 6 / 2 + + NULLIF ( - 22, 88 ) ) AS SIGNED ) * - 3 AS col1
----
-14310

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL + + 53 * - CAST ( - NULLIF ( 90, 6 / 2 + + NULLIF ( - 22, 88 ) ) AS INTEGER ) * - 3 AS col1
----
-14310

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2562
SELECT ALL + 11 * 14 DIV 53 + COUNT( * ) * + 72
----
74

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL + 11 * 14 / 53 + COUNT ( * ) * + 72
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2563
SELECT ALL + CAST( - - 80 AS SIGNED ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL + CAST ( - - 80 AS INTEGER ) AS col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2564
SELECT DISTINCT 23 DIV + SUM( 4 ) - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT 23 / + SUM ( 4 ) - COUNT ( * )
----
4

query I rowsort
SELECT DISTINCT - 8 * + + 52
----
-416

onlyif mysql # DIV for integer division: 
query I rowsort label-2566
SELECT DISTINCT + 61 DIV + + 12 - 96 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-2566
SELECT DISTINCT + 61 / + + 12 - 96 AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT - MIN( DISTINCT 21 ) * - 89 + - 46 AS col0
----
1823

skipif mysql # not compatible
query I rowsort label-2567
SELECT - MIN ( DISTINCT 21 ) * - 89 + - 46 AS col0
----
1823

query I rowsort
SELECT DISTINCT - - ( - - 32 ) - 57
----
-25

query I rowsort
SELECT + COALESCE ( 57, - 65 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT 13 + + COUNT( * ) + - 22 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2570
SELECT 13 + + COUNT ( * ) + - 22 AS col0
----
-8

query I rowsort
SELECT + 53 * - 74 AS col2
----
-3922

query I rowsort
SELECT + 71 * + 83 col1
----
5893

query I rowsort
SELECT ALL - 60 * - 84 * - 73 AS col0
----
-367920

query I rowsort
SELECT 92 + 33 * 36
----
1280

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT DISTINCT - COUNT( 94 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT - COUNT ( 94 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT ALL + MAX( ALL - 54 ) + + 60 col0
----
6

skipif mysql # not compatible
query I rowsort label-2577
SELECT ALL + MAX ( ALL - 54 ) + + 60 col0
----
6

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2580
SELECT COUNT( * ) DIV - 30 * - - COALESCE ( + 32, 87 + + 57, 83 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2580
SELECT COUNT ( * ) / - 30 * - - COALESCE ( + 32, 87 + + 57, 83 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2581
SELECT CAST( MIN( + 59 ) AS SIGNED ) + COUNT( * ) * 24
----
83

skipif mysql # not compatible
query I rowsort label-2581
SELECT CAST ( MIN ( + 59 ) AS INTEGER ) + COUNT ( * ) * 24
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2582
SELECT DISTINCT 48, - CAST( NULL AS SIGNED ) AS col0
----
48
NULL

skipif mysql # not compatible
query II rowsort label-2582
SELECT DISTINCT 48, - CAST ( NULL AS INTEGER ) AS col0
----
48
NULL

query II rowsort
SELECT 47, 14 * + 88 AS col1
----
47
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT COUNT( 5 ) + 65
----
66

skipif mysql # not compatible
query I rowsort label-2584
SELECT COUNT ( 5 ) + 65
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2585
SELECT 52 col1, COUNT( * ) + - + 27 - 23 * + 58 AS col0
----
52
-1360

skipif mysql # not compatible
query II rowsort label-2585
SELECT 52 col1, COUNT ( * ) + - + 27 - 23 * + 58 AS col0
----
52
-1360

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

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

query I rowsort
SELECT 75 * + + 71 AS col0
----
5325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2588
SELECT ALL - 49 + ( SUM( DISTINCT 38 ) ) + + 3 DIV + 41
----
-11

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL - 49 + ( SUM ( DISTINCT 38 ) ) + + 3 / + 41
----
-11

query I rowsort
SELECT ALL 80 * 50 * + + 82 AS col1
----
328000

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT DISTINCT 92 + + ( - + 27 ) + + COUNT( 78 )
----
66

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT 92 + + ( - + 27 ) + + COUNT ( 78 )
----
66

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2592
SELECT ALL 65, 56 * + 62 * COUNT( * ) AS col0
----
65
3472

skipif mysql # not compatible
query II rowsort label-2592
SELECT ALL 65, 56 * + 62 * COUNT ( * ) AS col0
----
65
3472

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT ALL 27 + + MIN( ALL + 18 )
----
45

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL 27 + + MIN ( ALL + 18 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ALL COUNT( * ) * + SUM( + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL COUNT ( * ) * + SUM ( + 69 )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2595
SELECT DISTINCT 25, SUM( DISTINCT 33 ) AS col0
----
25
33

skipif mysql # not compatible
query II rowsort label-2595
SELECT DISTINCT 25, SUM ( DISTINCT 33 ) AS col0
----
25
33

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

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

query I rowsort
SELECT 26 + + 12 AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2598
SELECT ALL 31 AS col0, - ( + - 49 ) * + CAST( NULL AS SIGNED ) - + 55 / + 72
----
31
NULL

skipif mysql # not compatible
query II rowsort label-2598
SELECT ALL 31 AS col0, - ( + - 49 ) * + CAST ( NULL AS INTEGER ) - + 55 / + 72
----
31
NULL

query I rowsort
SELECT + 26 * - 28
----
-728

query II rowsort
SELECT - + 66, 35 * 26 * + 52 AS col1
----
-66
47320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2601
SELECT 82 - 74 + + COUNT( * ) DIV + 81 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-2601
SELECT 82 - 74 + + COUNT ( * ) / + 81 AS col0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2602
SELECT ALL + 16 DIV 27 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL + 16 / 27 / - 67
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2603
SELECT 57 AS col1, + COALESCE ( - - 50, + 68 ) + - COUNT( * )
----
57
49

skipif mysql # not compatible
query II rowsort label-2603
SELECT 57 AS col1, + COALESCE ( - - 50, + 68 ) + - COUNT ( * )
----
57
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT ALL + CASE - + COUNT( * ) WHEN + + 78 THEN 22 WHEN COUNT( * ) + + 32 THEN NULL ELSE 14 END * 40
----
560

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL + CASE - + COUNT ( * ) WHEN + + 78 THEN 22 WHEN COUNT ( * ) + + 32 THEN NULL ELSE 14 END * 40
----
560

onlyif mysql # DIV for integer division: 
query I rowsort label-2605
SELECT + 28 * 98 DIV 49 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-2605
SELECT + 28 * 98 / 49 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT DISTINCT - COALESCE ( - 49, + + ( + 87 ) * CASE + 19 + 96 WHEN - 58 THEN - 48 WHEN ( 44 ) THEN COUNT( * ) * 5 END + + 99, + 92 + - ( + 56 ) ) * 11
----
539

skipif mysql # not compatible
query I rowsort label-2606
SELECT DISTINCT - COALESCE ( - 49, + + ( + 87 ) * CASE + 19 + 96 WHEN - 58 THEN - 48 WHEN ( 44 ) THEN COUNT ( * ) * 5 END + + 99, + 92 + - ( + 56 ) ) * 11
----
539

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT DISTINCT - + 58 * - 65 * + - COUNT( * ) AS col1
----
-3770

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT - + 58 * - 65 * + - COUNT ( * ) AS col1
----
-3770

query I rowsort
SELECT + - ( + 5 ) col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT 61 * + 46 * + MAX( 61 ) AS col0
----
171166

skipif mysql # not compatible
query I rowsort label-2609
SELECT 61 * + 46 * + MAX ( 61 ) AS col0
----
171166

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT ALL 38 * 69 * + CASE - 89 WHEN - 54 THEN NULL WHEN CASE - ( + 94 ) WHEN COUNT( * ) THEN NULLIF ( - 51, - 73 - 54 ) - 68 END THEN NULL ELSE 35 END col2
----
91770

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL 38 * 69 * + CASE - 89 WHEN - 54 THEN NULL WHEN CASE - ( + 94 ) WHEN COUNT ( * ) THEN NULLIF ( - 51, - 73 - 54 ) - 68 END THEN NULL ELSE 35 END col2
----
91770

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2612
SELECT - COUNT( * ) AS col1, + 85 + 68 AS col2
----
-1
153

skipif mysql # not compatible
query II rowsort label-2612
SELECT - COUNT ( * ) AS col1, + 85 + 68 AS col2
----
-1
153

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT ALL - ( 80 ) + - COUNT( 2 ) + - 17 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL - ( 80 ) + - COUNT ( 2 ) + - 17 AS col1
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2614
SELECT DISTINCT + 70 + COUNT( * ) DIV + CAST( - 73 AS SIGNED ) + + 46 AS col1
----
116

skipif mysql # not compatible
query I rowsort label-2614
SELECT DISTINCT + 70 + COUNT ( * ) / + CAST ( - 73 AS INTEGER ) + + 46 AS col1
----
116

query I rowsort
SELECT DISTINCT - COALESCE ( 5, - - 78 )
----
-5

query I rowsort
SELECT 40 + + 95 + 90
----
225

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

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

query I rowsort
SELECT ALL + 54 + - ( - 4 ) + 96 + 1 AS col1
----
155

query II rowsort
SELECT 65 - 45 AS col0, 38
----
20
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT + COUNT( * ) * + + 55 * + COUNT( * ) - - 42 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-2621
SELECT + COUNT ( * ) * + + 55 * + COUNT ( * ) - - 42 AS col0
----
97

query II rowsort
SELECT DISTINCT - 63 * + 6, - 14 AS col0
----
-378
-14

query I rowsort
SELECT ALL 39 * 18 AS col0
----
702

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT 84 + COUNT( * ) * - CASE - - COUNT( * ) WHEN NULLIF ( - 49, CASE 12 WHEN + COUNT( * ) THEN - NULLIF ( 82, 67 * 52 ) WHEN - 18 + 0 THEN NULL END ) THEN 92 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2624
SELECT 84 + COUNT ( * ) * - CASE - - COUNT ( * ) WHEN NULLIF ( - 49, CASE 12 WHEN + COUNT ( * ) THEN - NULLIF ( 82, 67 * 52 ) WHEN - 18 + 0 THEN NULL END ) THEN 92 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2625
SELECT ALL - 54 + - 37 AS col1, + SUM( DISTINCT - 90 ) + + 76 * ( 2 * COUNT( * ) )
----
-91
62

skipif mysql # not compatible
query II rowsort label-2625
SELECT ALL - 54 + - 37 AS col1, + SUM ( DISTINCT - 90 ) + + 76 * ( 2 * COUNT ( * ) )
----
-91
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT 91 * + MIN( ALL + ( - 57 ) )
----
-5187

skipif mysql # not compatible
query I rowsort label-2626
SELECT 91 * + MIN ( ALL + ( - 57 ) )
----
-5187

query I rowsort
SELECT ALL + 91 + + 39 - - 87 * 30 AS col1
----
2740

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT DISTINCT - COUNT( * ) - - 66 - + COALESCE ( - 28, 21 - 22 ) + + 31 * - 87 AS col1
----
-2604

skipif mysql # not compatible
query I rowsort label-2628
SELECT DISTINCT - COUNT ( * ) - - 66 - + COALESCE ( - 28, 21 - 22 ) + + 31 * - 87 AS col1
----
-2604

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT 74 + - + 10 + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-2629
SELECT 74 + - + 10 + COUNT ( * )
----
65

query I rowsort
SELECT 10 - - + 31
----
41

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

skipif mysql # not compatible
query I rowsort label-2631
SELECT 81 * + COUNT ( ALL - 76 ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT COALESCE ( + + SUM( ALL - 16 ), - 3 ) - + 87 AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-2632
SELECT COALESCE ( + + SUM ( ALL - 16 ), - 3 ) - + 87 AS col1
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-2633
SELECT ALL 73 DIV - - 27
----
2

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL 73 / - - 27
----
2

query I rowsort
SELECT - 23 + + 10
----
-13

query II rowsort
SELECT 96 + 24 AS col0, 95
----
120
95

onlyif mysql # DIV for integer division: 
query I rowsort label-2636
SELECT ALL - - 94 DIV - ( - - 89 ) + + 95 + + 90
----
184

skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL - - 94 / - ( - - 89 ) + + 95 + + 90
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT DISTINCT 81 * - ( 24 ) * + COUNT( * ) + 6 AS col0
----
-1938

skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT 81 * - ( 24 ) * + COUNT ( * ) + 6 AS col0
----
-1938

query I rowsort
SELECT ALL + 59 * + ( + + 47 )
----
2773

query I rowsort
SELECT + - 90 + 12
----
-78

query I rowsort
SELECT ALL COALESCE ( - + 90, 78 )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2641
SELECT + 12 + - 57 + + 43 DIV + - COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-2641
SELECT + 12 + - 57 + + 43 / + - COUNT ( * ) AS col1
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-2642
SELECT + 14 DIV 12 + + + 32 col1
----
33

skipif mysql # not compatible
query I rowsort label-2642
SELECT + 14 / 12 + + + 32 col1
----
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT ALL - + 87 * + 38 / - + CASE - 36 WHEN COUNT( * ) + ( 63 ) * + 44 THEN 5 + - 20 WHEN 99 THEN 18 END + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL - + 87 * + 38 / - + CASE - 36 WHEN COUNT ( * ) + ( 63 ) * + 44 THEN 5 + - 20 WHEN 99 THEN 18 END + - 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT + - SUM( DISTINCT 57 ) + - + 87 AS col0
----
-144

skipif mysql # not compatible
query I rowsort label-2645
SELECT + - SUM ( DISTINCT 57 ) + - + 87 AS col0
----
-144

query I rowsort
SELECT DISTINCT - 82 * + 86
----
-7052

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT DISTINCT - NULLIF ( + + ( 69 ), - + 97 + - COUNT( * ) ) * 48 + + 79 * COUNT( * ) AS col2
----
-3233

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT - NULLIF ( + + ( 69 ), - + 97 + - COUNT ( * ) ) * 48 + + 79 * COUNT ( * ) AS col2
----
-3233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2648
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) / 96 + 56 + 61 + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) / 96 + 56 + 61 + 47
----
NULL

query I rowsort
SELECT ALL - 44 * 98 + + 30 AS col1
----
-4282

onlyif mysql # aggregate syntax: 
query II rowsort label-2650
SELECT - MAX( DISTINCT + 20 ) AS col1, + 57 AS col0
----
-20
57

skipif mysql # not compatible
query II rowsort label-2650
SELECT - MAX ( DISTINCT + 20 ) AS col1, + 57 AS col0
----
-20
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2651
SELECT + + MIN( DISTINCT 49 ) DIV + ( 62 ) - 34
----
-34

skipif mysql # not compatible
query I rowsort label-2651
SELECT + + MIN ( DISTINCT 49 ) / + ( 62 ) - 34
----
-34

query I rowsort
SELECT + - NULLIF ( + 40, - 56 )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2653
SELECT ALL + + CASE - - 14 WHEN + + 18 + - 75 THEN + COALESCE ( + 14, - COUNT( * ) * - 40 ) * 8 WHEN 62 * CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2653
SELECT ALL + + CASE - - 14 WHEN + + 18 + - 75 THEN + COALESCE ( + 14, - COUNT ( * ) * - 40 ) * 8 WHEN 62 * CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2654
SELECT + 20 * - COUNT( DISTINCT + 94 ) + - CAST( 96 AS SIGNED )
----
-116

skipif mysql # not compatible
query I rowsort label-2654
SELECT + 20 * - COUNT ( DISTINCT + 94 ) + - CAST ( 96 AS INTEGER )
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT MAX( DISTINCT - 49 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-2655
SELECT MAX ( DISTINCT - 49 ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT ALL 39 * - COUNT( * ) + + 1 + + + 92
----
54

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL 39 * - COUNT ( * ) + + 1 + + + 92
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2657
SELECT + 93 + - - CAST( NULL AS SIGNED ) * + 29, - COUNT( * ) * - + 33 AS col2
----
NULL
33

skipif mysql # not compatible
query II rowsort label-2657
SELECT + 93 + - - CAST ( NULL AS INTEGER ) * + 29, - COUNT ( * ) * - + 33 AS col2
----
NULL
33

onlyif mysql # aggregate syntax: 
query II rowsort label-2658
SELECT ALL 99 * ( COUNT( * ) ) AS col0, 48
----
99
48

skipif mysql # not compatible
query II rowsort label-2658
SELECT ALL 99 * ( COUNT ( * ) ) AS col0, 48
----
99
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT DISTINCT 1 * - 77 * - MIN( 76 ) + - 75 col2
----
5777

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT 1 * - 77 * - MIN ( 76 ) + - 75 col2
----
5777

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2661
SELECT DISTINCT 93 * - + CAST( + - 90 AS SIGNED )
----
8370

skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT 93 * - + CAST ( + - 90 AS INTEGER )
----
8370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2662
SELECT DISTINCT + CAST( - CASE 39 WHEN + 83 THEN 9 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT + CAST ( - CASE 39 WHEN + 83 THEN 9 END AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 10 * - - ( + 46 ) * - 69 AS col2
----
-31740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2664
SELECT DISTINCT + CASE WHEN NOT ( + - CAST( + 95 AS SIGNED ) NOT BETWEEN - ( 5 ) * 6 AND NULLIF ( + 63, - COUNT( * ) ) ) THEN 74 + 30 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT + CASE WHEN NOT ( + - CAST ( + 95 AS INTEGER ) NOT BETWEEN - ( 5 ) * 6 AND NULLIF ( + 63, - COUNT ( * ) ) ) THEN 74 + 30 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 44 * 81 - + - 22 + + - 16 + 30 * 37 AS col1
----
-2448

query I rowsort
SELECT 86 * 38 + - - ( + + ( - + 24 ) )
----
3244

query I rowsort
SELECT - 15 + 17
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2668
SELECT ALL - NULLIF ( + + 87, ( - CAST( - 56 AS SIGNED ) ) + ( - 6 ) / - 91 ) - CAST( + 33 AS SIGNED ) * 58 AS col0
----
-2001

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL - NULLIF ( + + 87, ( - CAST ( - 56 AS INTEGER ) ) + ( - 6 ) / - 91 ) - CAST ( + 33 AS INTEGER ) * 58 AS col0
----
-2001

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2669
SELECT - 3 * - CAST( - 31 AS SIGNED ) AS col1, - 62 AS col1
----
-93
-62

skipif mysql # not compatible
query II rowsort label-2669
SELECT - 3 * - CAST ( - 31 AS INTEGER ) AS col1, - 62 AS col1
----
-93
-62

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

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

query I rowsort
SELECT DISTINCT - 5 * - 13 AS col2
----
65

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

query I rowsort
SELECT - 73 * + 90
----
-6570

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT DISTINCT - COUNT( * ) * 58 col0
----
-58

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT - COUNT ( * ) * 58 col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2675
SELECT DISTINCT - - 91 * - - 11 * + - COUNT( * ) AS col1, 61 + - + CAST( NULL AS SIGNED ) * - 95
----
-1001
NULL

skipif mysql # not compatible
query II rowsort label-2675
SELECT DISTINCT - - 91 * - - 11 * + - COUNT ( * ) AS col1, 61 + - + CAST ( NULL AS INTEGER ) * - 95
----
-1001
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2677
SELECT - + COUNT( * ) - + 43 * - COUNT( * ) col2, 50 AS col2
----
42
50

skipif mysql # not compatible
query II rowsort label-2677
SELECT - + COUNT ( * ) - + 43 * - COUNT ( * ) col2, 50 AS col2
----
42
50

query II rowsort
SELECT 11 col0, 34 + 0
----
11
34

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

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

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

query II rowsort
SELECT ALL 54 + + 18 * - 34, + 42 + 89 AS col0
----
-558
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2682
SELECT ALL - COUNT( * ) + NULLIF ( COUNT( * ), - 27 ) + ( 59 ) + - 17 DIV + 19 col0
----
59

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL - COUNT ( * ) + NULLIF ( COUNT ( * ), - 27 ) + ( 59 ) + - 17 / + 19 col0
----
59

query I rowsort
SELECT DISTINCT - 36 + - 1 AS col2
----
-37

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2685
SELECT + + 67 DIV + + 21 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2685
SELECT + + 67 / + + 21 AS col1
----
3

query I rowsort
SELECT ALL + + 49 + 8
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-2687
SELECT DISTINCT + 45 DIV ( - 72 )
----
0

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT + 45 / ( - 72 )
----
0

query I rowsort
SELECT - + 23 + + 6
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT DISTINCT + COALESCE ( - + MAX( DISTINCT - 42 ), + NULLIF ( + 8, 83 * 47 + COUNT( * ) ) - - 86, 43 )
----
42

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT + COALESCE ( - + MAX ( DISTINCT - 42 ), + NULLIF ( + 8, 83 * 47 + COUNT ( * ) ) - - 86, 43 )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2690
SELECT ALL + 32 DIV - COUNT( * ) + COUNT( + - 51 ) * + 48 * + 29 + + SUM( - 40 ) AS col1
----
1320

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL + 32 / - COUNT ( * ) + COUNT ( + - 51 ) * + 48 * + 29 + + SUM ( - 40 ) AS col1
----
1320

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT + CASE WHEN - 65 >= NULL THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT + CASE WHEN - 65 >= NULL THEN - COUNT ( * ) END
----
NULL

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

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

query I rowsort
SELECT + ( + - COALESCE ( + 75, + + ( - ( - 43 ) ), + 17 - - 9 ) ) col1
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2696
SELECT ALL COUNT( + - 54 ) / COUNT( * ) + - - 97 + - 67 - - - 26 - + ( 6 ) * - CAST( NULL AS SIGNED ) * ( + 5 ) - 32 * 4 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL COUNT ( + - 54 ) / COUNT ( * ) + - - 97 + - 67 - - - 26 - + ( 6 ) * - CAST ( NULL AS INTEGER ) * ( + 5 ) - 32 * 4 col2
----
NULL

query II rowsort
SELECT ALL + 20 AS col1, - 31 + - 8
----
20
-39

query I rowsort
SELECT ALL + 49 * 31 - 0 AS col0
----
1519

query I rowsort
SELECT 91 * - 92 + - 14 - - - 56
----
-8442

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT + 10 + - COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2700
SELECT + 10 + - COUNT ( * ) AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2701
SELECT COALESCE ( 89, - 98 * - 81 + + SUM( - 76 ) + + NULLIF ( - MAX( CAST( NULL AS SIGNED ) ), 73 ) * 61 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-2701
SELECT COALESCE ( 89, - 98 * - 81 + + SUM ( - 76 ) + + NULLIF ( - MAX ( CAST ( NULL AS INTEGER ) ), 73 ) * 61 ) AS col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2702
SELECT ALL COUNT( ALL 30 ) * - 5 - - ( + - 3 ) - - - 83 + 64 * CASE - 96 * 60 + 63 * - 83 WHEN CAST( ( COUNT( ALL + 62 ) ) AS SIGNED ) * + 38 - COUNT( DISTINCT - ( + 61 ) + + 44 ) THEN NULL WHEN - 73 THEN 61 WHEN 47 THEN - 81 + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL COUNT ( ALL 30 ) * - 5 - - ( + - 3 ) - - - 83 + 64 * CASE - 96 * 60 + 63 * - 83 WHEN CAST ( ( COUNT ( ALL + 62 ) ) AS INTEGER ) * + 38 - COUNT ( DISTINCT - ( + 61 ) + + 44 ) THEN NULL WHEN - 73 THEN 61 WHEN 47 THEN - 81 + COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2703
SELECT + COALESCE ( - 24, - 17 * - 30 + 97 + - 71 + COUNT( * ) * + 80 ) DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-2703
SELECT + COALESCE ( - 24, - 17 * - 30 + 97 + - 71 + COUNT ( * ) * + 80 ) / - 54
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2705
SELECT NULLIF ( - SUM( ALL + 78 ), 64 ), 90 AS col0
----
-78
90

skipif mysql # not compatible
query II rowsort label-2705
SELECT NULLIF ( - SUM ( ALL + 78 ), 64 ), 90 AS col0
----
-78
90

query I rowsort
SELECT ALL - ( + 58 ) * + - 85 AS col2
----
4930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2707
SELECT - 83 * 23 + + - 58 - + - 72 + - COUNT( * ) * + - 19 DIV NULLIF ( 91 + 93, COUNT( * ) - + 2 )
----
-1895

skipif mysql # not compatible
query I rowsort label-2707
SELECT - 83 * 23 + + - 58 - + - 72 + - COUNT ( * ) * + - 19 / NULLIF ( 91 + 93, COUNT ( * ) - + 2 )
----
-1895

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

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL COUNT ( ALL - 48 ) * + 34 AS col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2709
SELECT + 73 / + AVG ( DISTINCT CASE CAST( NULL AS SIGNED ) WHEN + 23 * - - 76 THEN 56 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT + 73 / + AVG ( DISTINCT CASE CAST ( NULL AS INTEGER ) WHEN + 23 * - - 76 THEN 56 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2710
SELECT - 32 + - 38 * + 8 + + CAST( - 50 AS SIGNED ) AS col0
----
-386

skipif mysql # not compatible
query I rowsort label-2710
SELECT - 32 + - 38 * + 8 + + CAST ( - 50 AS INTEGER ) AS col0
----
-386

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT - 50 * - + CASE - - 18 WHEN - 89 THEN MIN( ALL - 70 ) ELSE MIN( + 68 ) END AS col2
----
3400

skipif mysql # not compatible
query I rowsort label-2711
SELECT - 50 * - + CASE - - 18 WHEN - 89 THEN MIN ( ALL - 70 ) ELSE MIN ( + 68 ) END AS col2
----
3400

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

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

query I rowsort
SELECT ( + 51 ) + 82 AS col2
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2714
SELECT ALL 79 AS col0, CAST( - + MIN( - 66 ) AS SIGNED ) * - 84 AS col0
----
79
-5544

skipif mysql # not compatible
query II rowsort label-2714
SELECT ALL 79 AS col0, CAST ( - + MIN ( - 66 ) AS INTEGER ) * - 84 AS col0
----
79
-5544

query I rowsort
SELECT ALL - + 39 + + + 75 + + + 40 * 14 col1
----
596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2716
SELECT - 72 + + CAST( 71 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-2716
SELECT - 72 + + CAST ( 71 AS INTEGER )
----
-1

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

query I rowsort
SELECT + 81 * 80
----
6480

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

skipif mysql # not compatible
query I rowsort label-2719
SELECT MIN ( + + 88 ) * + - COUNT ( * ) AS col1
----
-88

query I rowsort
SELECT DISTINCT - - 89 + + 95
----
184

query II rowsort
SELECT ALL + - 26 + - 72 * - + 98 - - - 33, + ( 93 ) AS col2
----
6997
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2722
SELECT CAST( - 36 AS SIGNED ), 88 AS col2
----
-36
88

skipif mysql # not compatible
query II rowsort label-2722
SELECT CAST ( - 36 AS INTEGER ), 88 AS col2
----
-36
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2723
SELECT 49 + + + COALESCE ( + ( + 26 ), - 6 ) DIV ( - 38 ) - + ( 90 )
----
-41

skipif mysql # not compatible
query I rowsort label-2723
SELECT 49 + + + COALESCE ( + ( + 26 ), - 6 ) / ( - 38 ) - + ( 90 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT ALL - - COUNT( * ) * - + 65 + - 59 AS col0
----
-124

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL - - COUNT ( * ) * - + 65 + - 59 AS col0
----
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2725
SELECT DISTINCT 87 + - 85 * + NULLIF ( + COUNT( * ), - 53 - + COALESCE ( MAX( ALL + CAST( NULLIF ( - 94, + 10 / + 25 ) AS SIGNED ) ), 70 + 72 ) + + 53 ) * + 34 - COUNT( * ) AS col0
----
-2804

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT 87 + - 85 * + NULLIF ( + COUNT ( * ), - 53 - + COALESCE ( MAX ( ALL + CAST ( NULLIF ( - 94, + 10 / + 25 ) AS INTEGER ) ), 70 + 72 ) + + 53 ) * + 34 - COUNT ( * ) AS col0
----
-2804

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT DISTINCT + COALESCE ( - 24, - + SUM( ALL - ( - 56 ) ) ) + - COUNT( * ) * NULLIF ( CASE - 20 WHEN ( 90 ) THEN 62 WHEN + COUNT( + 16 ) THEN COUNT( * ) * 98 + 86 ELSE NULL END, NULLIF ( + 4, 24 - 55 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT + COALESCE ( - 24, - + SUM ( ALL - ( - 56 ) ) ) + - COUNT ( * ) * NULLIF ( CASE - 20 WHEN ( 90 ) THEN 62 WHEN + COUNT ( + 16 ) THEN COUNT ( * ) * 98 + 86 ELSE NULL END, NULLIF ( + 4, 24 - 55 ) )
----
NULL

query I rowsort
SELECT DISTINCT - 85 + + 99 AS col1
----
14

query I rowsort
SELECT ALL + - 22 * - 59 * - 13 AS col2
----
-16874

query II rowsort
SELECT - 15 AS col1, 30 AS col0
----
-15
30

query II rowsort
SELECT - 26, + 21 AS col1
----
-26
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT + CASE - - 98 WHEN - + COUNT( * ) + - 89 THEN 75 * 96 / COALESCE ( 69, + 17 * - 28 ) END + - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT + CASE - - 98 WHEN - + COUNT ( * ) + - 89 THEN 75 * 96 / COALESCE ( 69, + 17 * - 28 ) END + - 9 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT - COALESCE ( 75, + COUNT( + 69 ), + 43 ) col0
----
-75

skipif mysql # not compatible
query I rowsort label-2732
SELECT - COALESCE ( 75, + COUNT ( + 69 ), + 43 ) col0
----
-75

query I rowsort
SELECT ALL + 49 + - 80 + + - 82 AS col2
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT ALL - 91 + + MAX( DISTINCT + 56 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL - 91 + + MAX ( DISTINCT + 56 ) AS col0
----
-35

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

skipif mysql # not compatible
query I rowsort label-2735
SELECT + + COALESCE ( COUNT ( * ), + 3 + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT 15 + 66 AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2737
SELECT + COUNT( * ) * + 15 * CAST( - - 65 AS SIGNED ) * - COALESCE ( - 7, 55, - 4 + 78, 8 ) + + 64 + - ( 30 ) * AVG ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2737
SELECT + COUNT ( * ) * + 15 * CAST ( - - 65 AS INTEGER ) * - COALESCE ( - 7, 55, - 4 + 78, 8 ) + + 64 + - ( 30 ) * AVG ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2738
SELECT ALL COUNT( ALL - 45 ) DIV + ( + 6 )
----
0

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL COUNT ( ALL - 45 ) / + ( + 6 )
----
0

query I rowsort
SELECT ALL + 22 - + ( - + 82 ) AS col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT ALL 58 - SUM( DISTINCT 28 ) - + 99 + - - ( 48 ) + 68 + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL 58 - SUM ( DISTINCT 28 ) - + 99 + - - ( 48 ) + 68 + COUNT ( * )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2741
SELECT 65 + COALESCE ( + 39, + - CAST( + 47 AS SIGNED ), 15 ) col0
----
104

skipif mysql # not compatible
query I rowsort label-2741
SELECT 65 + COALESCE ( + 39, + - CAST ( + 47 AS INTEGER ), 15 ) col0
----
104

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2742
SELECT - 61 DIV + 87 + + CAST( - 8 AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-2742
SELECT - 61 / + 87 + + CAST ( - 8 AS INTEGER )
----
-8

query I rowsort
SELECT 4 * + + ( + - 23 ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT COUNT( * ) + - CASE 2 WHEN + 70 THEN + COUNT( * ) * + 50 - + ( - 74 ) + 70 * ( ( 49 ) ) ELSE + 13 END AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-2744
SELECT COUNT ( * ) + - CASE 2 WHEN + 70 THEN + COUNT ( * ) * + 50 - + ( - 74 ) + 70 * ( ( 49 ) ) ELSE + 13 END AS col2
----
-12

query I rowsort
SELECT ALL 22 * - 40 * - 84 * - 88 col0
----
-6504960

query I rowsort
SELECT 23 * + - 93 + - + 75 AS col2
----
-2214

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT 94 * + + 44 * - - MAX( DISTINCT - - 68 ) * - 7
----
-1968736

skipif mysql # not compatible
query I rowsort label-2747
SELECT 94 * + + 44 * - - MAX ( DISTINCT - - 68 ) * - 7
----
-1968736

query II rowsort
SELECT - 80 * - 44 + - 24 AS col1, 55 * - 94 + - - 2
----
3496
-5168

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT COUNT( * ) + MIN( ALL - 19 ) + + + 93 * + CASE + 84 WHEN + 87 + MIN( + 38 + 94 ) / 92 THEN 38 WHEN - 32 + - 38 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2749
SELECT COUNT ( * ) + MIN ( ALL - 19 ) + + + 93 * + CASE + 84 WHEN + 87 + MIN ( + 38 + 94 ) / 92 THEN 38 WHEN - 32 + - 38 THEN NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT 9 + + 44 * MIN( ALL + - 80 )
----
-3511

skipif mysql # not compatible
query I rowsort label-2750
SELECT 9 + + 44 * MIN ( ALL + - 80 )
----
-3511

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2751
SELECT NULLIF ( + 17, + COUNT( * ) ) * - - CAST( - 67 AS SIGNED ) * - 0 * + 34 * COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2751
SELECT NULLIF ( + 17, + COUNT ( * ) ) * - - CAST ( - 67 AS INTEGER ) * - 0 * + 34 * COUNT ( * ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2752
SELECT 60 * - + 29 * - COALESCE ( + - 16, - 11, + - 0 DIV + 25 - + 95 ) + 54 AS col1
----
-27786

skipif mysql # not compatible
query I rowsort label-2752
SELECT 60 * - + 29 * - COALESCE ( + - 16, - 11, + - 0 / + 25 - + 95 ) + 54 AS col1
----
-27786

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2754
SELECT CAST( NULL AS SIGNED ) + + - 15 - - 47 * - 81 + SUM( + + 39 ) + + + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2754
SELECT CAST ( NULL AS INTEGER ) + + - 15 - - 47 * - 81 + SUM ( + + 39 ) + + + 55 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2755
SELECT ALL + ( + ( + ( 31 ) ) ) DIV - 87 + + 29 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL + ( + ( + ( 31 ) ) ) / - 87 + + 29 AS col2
----
29

query III rowsort
SELECT ALL - 97 + - 78 AS col2, - 62 AS col2, - 15
----
-175
-62
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT DISTINCT COUNT( * ) + - 8 * - 31 + 1 + + 19 + + - 28
----
241

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT COUNT ( * ) + - 8 * - 31 + 1 + + 19 + + - 28
----
241

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT DISTINCT SUM( + 6 ) + - - 9
----
15

skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT SUM ( + 6 ) + - - 9
----
15

query I rowsort
SELECT ALL 32 * + 75 AS col2
----
2400

query I rowsort
SELECT - 1 + - 8
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT DISTINCT + - COUNT( * ) + NULLIF ( + - COALESCE ( + CASE - 67 WHEN - - 99 THEN 28 + - COUNT( + 34 ) * 58 END, 10 - - 27 * - 77 ), 95 )
----
2068

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT + - COUNT ( * ) + NULLIF ( + - COALESCE ( + CASE - 67 WHEN - - 99 THEN 28 + - COUNT ( + 34 ) * 58 END, 10 - - 27 * - 77 ), 95 )
----
2068

query I rowsort
SELECT DISTINCT + 78 * - 27
----
-2106

query I rowsort
SELECT DISTINCT - NULLIF ( 71, 21 ) * 21 AS col0
----
-1491

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT COUNT( * ) - - 75 * + 4 AS col1
----
301

skipif mysql # not compatible
query I rowsort label-2765
SELECT COUNT ( * ) - - 75 * + 4 AS col1
----
301

query II rowsort
SELECT - ( - 56 ), ( - 57 ) AS col1
----
56
-57

query I rowsort
SELECT + 51 + - 89 * + - 60 * - 18 + + - 25 AS col0
----
-96094

query I rowsort
SELECT DISTINCT 21 - + + ( + 97 ) * - ( - + 83 )
----
-8030

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2770
SELECT - CASE + COUNT( * ) WHEN + COALESCE ( + + SUM( ALL + 85 ), - 16 ) + + 73 THEN + CAST( NULL AS SIGNED ) WHEN NULLIF ( - 3, 43 * - COUNT( * ) ) THEN AVG ( 69 ) / 38 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2770
SELECT - CASE + COUNT ( * ) WHEN + COALESCE ( + + SUM ( ALL + 85 ), - 16 ) + + 73 THEN + CAST ( NULL AS INTEGER ) WHEN NULLIF ( - 3, 43 * - COUNT ( * ) ) THEN AVG ( 69 ) / 38 END AS col0
----
NULL

query I rowsort
SELECT 51 + 94 * - 70 AS col0
----
-6529

query I rowsort
SELECT ALL + - 19 - 3 * + 64 + - + 94
----
-305

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2773
SELECT + 8 * - CAST( NULL AS DECIMAL ) col2, 71 + - 46 AS col2
----
NULL
25

skipif mysql # not compatible
query II rowsort label-2773
SELECT + 8 * - CAST ( NULL AS REAL ) col2, 71 + - 46 AS col2
----
NULL
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2774
SELECT DISTINCT 87 - 87 DIV + 19
----
83

skipif mysql # not compatible
query I rowsort label-2774
SELECT DISTINCT 87 - 87 / + 19
----
83

query I rowsort
SELECT DISTINCT + - COALESCE ( + 14, 4, 73 ) * + 5
----
-70

query II rowsort
SELECT - 35 - 33 AS col0, - 58
----
-68
-58

query I rowsort
SELECT 4 * - 98 * + 35 col1
----
-13720

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT 75 * 9 * - COUNT( * ) AS col2
----
-675

skipif mysql # not compatible
query I rowsort label-2778
SELECT 75 * 9 * - COUNT ( * ) AS col2
----
-675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2779
SELECT ALL + 91 * - 24 * - CAST( NULL AS SIGNED ) * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL + 91 * - 24 * - CAST ( NULL AS INTEGER ) * - 46
----
NULL

query I rowsort
SELECT 90 - 16
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-2781
SELECT 94 DIV - 81
----
-1

skipif mysql # not compatible
query I rowsort label-2781
SELECT 94 / - 81
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT ALL - CASE COUNT( * ) WHEN - + 81 THEN 72 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL - CASE COUNT ( * ) WHEN - + 81 THEN 72 ELSE NULL END col1
----
NULL

query I rowsort
SELECT ALL 44 * - 62
----
-2728

query II rowsort
SELECT ALL - 58 * + - 38 + + 10 AS col2, + 74 - + 58 AS col0
----
2214
16

query I rowsort
SELECT + 75 * - 62 * + 95 + + + 75 + - 57 * - 34
----
-439737

query I rowsort
SELECT - 97 + - 60 AS col2
----
-157

query I rowsort
SELECT ALL - 29 + 61 col0
----
32

query I rowsort
SELECT DISTINCT + CASE - 42 WHEN 20 THEN - + 10 END * - - 63 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT - 73 + - 48 + 94 * + COUNT( * ) * + 98
----
9091

skipif mysql # not compatible
query I rowsort label-2789
SELECT - 73 + - 48 + 94 * + COUNT ( * ) * + 98
----
9091

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

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

query I rowsort
SELECT DISTINCT 2 * - 23 col1
----
-46

query I rowsort
SELECT ALL 7 + - + 19 AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2793
SELECT + AVG ( - 4 ) * + COUNT( 12 ) + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2793
SELECT + AVG ( - 4 ) * + COUNT ( 12 ) + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL ( ( + + 19 ) ) + - - 17 * + - 93 col2
----
-1562

query II rowsort
SELECT - + 50 AS col0, 93
----
-50
93

query I rowsort
SELECT DISTINCT + ( - 85 ) * - 38 * + 67 AS col1
----
216410

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2797
SELECT + - 4 * - + 19 * SUM( DISTINCT - 75 ) - 55 DIV - + 67 AS col0, 65 AS col2
----
-5700
65

skipif mysql # not compatible
query II rowsort label-2797
SELECT + - 4 * - + 19 * SUM ( DISTINCT - 75 ) - 55 / - + 67 AS col0, 65 AS col2
----
-5700
65

query II rowsort
SELECT - 60, 2 AS col0
----
-60
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT - + COUNT( * ) + + - ( + - MIN( - - 69 ) ) * 37
----
2552

skipif mysql # not compatible
query I rowsort label-2799
SELECT - + COUNT ( * ) + + - ( + - MIN ( - - 69 ) ) * 37
----
2552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2800
SELECT + + COUNT( * ) - + ( - CAST( + + CASE + ( + 72 ) WHEN + 4 / + + 35 THEN NULL WHEN 28 THEN 72 WHEN MIN( - 68 ) + - 90 THEN NULL ELSE NULL END AS SIGNED ) ) + 45 / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2800
SELECT + + COUNT ( * ) - + ( - CAST ( + + CASE + ( + 72 ) WHEN + 4 / + + 35 THEN NULL WHEN 28 THEN 72 WHEN MIN ( - 68 ) + - 90 THEN NULL ELSE NULL END AS INTEGER ) ) + 45 / COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2801
SELECT - 10 AS col1, - 71 * + + COALESCE ( - 69, + + 93 DIV + + 16 + CASE 23 WHEN 50 THEN NULL WHEN AVG ( 45 ) THEN 4 + + 59 DIV 93 END ) - + 32 * MAX( ALL - 0 * 62 ) AS col2
----
-10
4899

skipif mysql # not compatible
query II rowsort label-2801
SELECT - 10 AS col1, - 71 * + + COALESCE ( - 69, + + 93 / + + 16 + CASE 23 WHEN 50 THEN NULL WHEN AVG ( 45 ) THEN 4 + + 59 / 93 END ) - + 32 * MAX ( ALL - 0 * 62 ) AS col2
----
-10
4899

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT + - 55 + - - 76 + + COUNT( * ) + + 60 - - 30 * + 6 * + + CASE - 88 WHEN + 40 THEN + AVG ( 30 ) END * MIN( + 28 ) * 80 / + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2802
SELECT + - 55 + - - 76 + + COUNT ( * ) + + 60 - - 30 * + 6 * + + CASE - 88 WHEN + 40 THEN + AVG ( 30 ) END * MIN ( + 28 ) * 80 / + 64
----
NULL

query I rowsort
SELECT + 92 * - COALESCE ( 24, + 35, 13 ) + + 57 AS col2
----
-2151

onlyif mysql # aggregate syntax: 
query II rowsort label-2804
SELECT ALL 32 * + 97 + + COUNT( * ), - NULLIF ( + 39, - 80 * - - 38 * - COUNT( * ) ) AS col2
----
3105
-39

skipif mysql # not compatible
query II rowsort label-2804
SELECT ALL 32 * + 97 + + COUNT ( * ), - NULLIF ( + 39, - 80 * - - 38 * - COUNT ( * ) ) AS col2
----
3105
-39

query II rowsort
SELECT DISTINCT - ( - - 8 ) - 31 + + 93 AS col2, + 22
----
54
22

onlyif mysql # DIV for integer division: 
query I rowsort label-2806
SELECT + 20 + 6 DIV + + 18 + + 83
----
103

skipif mysql # not compatible
query I rowsort label-2806
SELECT + 20 + 6 / + + 18 + + 83
----
103

query I rowsort
SELECT + + 78 * + - 47 AS col0
----
-3666

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

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

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

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

query I rowsort
SELECT + 11 + - COALESCE ( - - 65, + 6 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT - 75 + + + 40 * + COUNT( * ) + - ( + 54 )
----
-89

skipif mysql # not compatible
query I rowsort label-2811
SELECT - 75 + + + 40 * + COUNT ( * ) + - ( + 54 )
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-2812
SELECT ALL MIN( ALL + 82 ) AS col0, COUNT( * ) + - + ( - 61 )
----
82
62

skipif mysql # not compatible
query II rowsort label-2812
SELECT ALL MIN ( ALL + 82 ) AS col0, COUNT ( * ) + - + ( - 61 )
----
82
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2813
SELECT + CAST( SUM( ( CAST( NULL AS SIGNED ) ) ) AS SIGNED ) * - 57 + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2813
SELECT + CAST ( SUM ( ( CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) * - 57 + 80
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2814
SELECT + 81 + + 78 + - + 83 + + 81 * 21 * - 73 * - 83 - - + 8 DIV + 93 * + 29 - SUM( ALL - 95 )
----
10306530

skipif mysql # not compatible
query I rowsort label-2814
SELECT + 81 + + 78 + - + 83 + + 81 * 21 * - 73 * - 83 - - + 8 / + 93 * + 29 - SUM ( ALL - 95 )
----
10306530

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2816
SELECT - 71 DIV - - NULLIF ( - 80, + + COUNT( * ) * 61 - - + MAX( + 86 ) ) + + ( 35 )
----
35

skipif mysql # not compatible
query I rowsort label-2816
SELECT - 71 / - - NULLIF ( - 80, + + COUNT ( * ) * 61 - - + MAX ( + 86 ) ) + + ( 35 )
----
35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT + 21 * MIN( - 80 ) AS col0
----
-1680

skipif mysql # not compatible
query I rowsort label-2818
SELECT + 21 * MIN ( - 80 ) AS col0
----
-1680

query I rowsort
SELECT - 27 + - 11
----
-38

query I rowsort
SELECT - 91 * + + 86
----
-7826

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT COALESCE ( MIN( ALL - + 55 ), + 27, - 22 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-2821
SELECT COALESCE ( MIN ( ALL - + 55 ), + 27, - 22 ) AS col1
----
-55

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2824
SELECT ALL - + 7 DIV 45 AS col1, + 22
----
0
22

skipif mysql # not compatible
query II rowsort label-2824
SELECT ALL - + 7 / 45 AS col1, + 22
----
0
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2825
SELECT ALL - - 15 * 65 / + 87 * + SUM( - - 71 ) + - 37 + - CASE + 14 WHEN CAST( + ( 88 ) AS SIGNED ) / - COUNT( * ) THEN ( 10 ) END - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL - - 15 * 65 / + 87 * + SUM ( - - 71 ) + - 37 + - CASE + 14 WHEN CAST ( + ( 88 ) AS INTEGER ) / - COUNT ( * ) THEN ( 10 ) END - 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2826
SELECT + COUNT( 93 ) AS col2, 10 AS col2
----
1
10

skipif mysql # not compatible
query II rowsort label-2826
SELECT + COUNT ( 93 ) AS col2, 10 AS col2
----
1
10

query I rowsort
SELECT - 10 + + 27
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2828
SELECT - 50 * - ( MIN( - 69 ) ) AS col2, + ( + 6 ) + - 15 + - + 5 + 91 * 21
----
-3450
1897

skipif mysql # not compatible
query II rowsort label-2828
SELECT - 50 * - ( MIN ( - 69 ) ) AS col2, + ( + 6 ) + - 15 + - + 5 + 91 * 21
----
-3450
1897

query I rowsort
SELECT + 24 + - 4 - + - 56 AS col2
----
76

query I rowsort
SELECT ALL + - COALESCE ( 67, - + 74 ) * - 72 AS col0
----
4824

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

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

query I rowsort
SELECT DISTINCT - - 2 * + 49
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT DISTINCT COUNT( ALL - 31 )
----
1

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT COUNT ( ALL - 31 )
----
1

query I rowsort
SELECT + 26 * + 6 AS col2
----
156

query I rowsort
SELECT + 17 + - 48 AS col1
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-2836
SELECT ALL 81 DIV - + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL 81 / - + 94 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2837
SELECT - 87 DIV 24 * COUNT( * ) AS col1, - 5 * + COUNT( * ) DIV + 97 + - 80 - MAX( - 89 ) col1
----
-3
9

skipif mysql # not compatible
query II rowsort label-2837
SELECT - 87 / 24 * COUNT ( * ) AS col1, - 5 * + COUNT ( * ) / + 97 + - 80 - MAX ( - 89 ) col1
----
-3
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2838
SELECT + 93 + 65 + 96 AS col1, 90 * + COUNT( * ) AS col0
----
254
90

skipif mysql # not compatible
query II rowsort label-2838
SELECT + 93 + 65 + 96 AS col1, 90 * + COUNT ( * ) AS col0
----
254
90

query I rowsort
SELECT ALL 99 + 26 * - + 76 + + + 14
----
-1863

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT ALL ( COUNT( * ) ) + 41 + - + ( + 90 ) + 65
----
17

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL ( COUNT ( * ) ) + 41 + - + ( + 90 ) + 65
----
17

query I rowsort
SELECT DISTINCT 34 + 91 + + COALESCE ( + + 0, - - 13 ) col1
----
125

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2843
SELECT ALL - 73 DIV - 25
----
2

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL - 73 / - 25
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT DISTINCT COUNT( * ) + + 47 + - + CASE COUNT( * ) WHEN - - 67 THEN - 97 * + 24 WHEN COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT COUNT ( * ) + + 47 + - + CASE COUNT ( * ) WHEN - - 67 THEN - 97 * + 24 WHEN COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2845
SELECT ALL 97 AS col2, COUNT( * ) + - + 34 AS col2
----
97
-33

skipif mysql # not compatible
query II rowsort label-2845
SELECT ALL 97 AS col2, COUNT ( * ) + - + 34 AS col2
----
97
-33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT ALL NULLIF ( - + 88, + COUNT( * ) ) + 39 * + ( - 12 ) + + - CASE - COUNT( * ) WHEN + 1 THEN NULL WHEN - 64 THEN ( + 63 ) + 13 ELSE NULL END * COALESCE ( COUNT( * ) * SUM( - 79 * COALESCE ( - 58, + NULLIF ( + 43, ( 9 ) ) ) ) + + 66, - COUNT( * ) * + 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL NULLIF ( - + 88, + COUNT ( * ) ) + 39 * + ( - 12 ) + + - CASE - COUNT ( * ) WHEN + 1 THEN NULL WHEN - 64 THEN ( + 63 ) + 13 ELSE NULL END * COALESCE ( COUNT ( * ) * SUM ( - 79 * COALESCE ( - 58, + NULLIF ( + 43, ( 9 ) ) ) ) + + 66, - COUNT ( * ) * + 98 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2848
SELECT DISTINCT MIN( ALL + 27 ) + + 86 * + CASE ( - 64 ) WHEN + MIN( - CAST( - 30 AS SIGNED ) ) + + 66 + SUM( ALL - 46 + - 55 ) THEN CAST( NULL AS SIGNED ) WHEN 51 - + COALESCE ( COALESCE ( + NULLIF ( + 47, ( + 8 ) ), MIN( - 82 ), + 37 * + ( + 58 / 53 ) ), + 59 + COUNT( * ), - 18 ) THEN 56 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2848
SELECT DISTINCT MIN ( ALL + 27 ) + + 86 * + CASE ( - 64 ) WHEN + MIN ( - CAST ( - 30 AS INTEGER ) ) + + 66 + SUM ( ALL - 46 + - 55 ) THEN CAST ( NULL AS INTEGER ) WHEN 51 - + COALESCE ( COALESCE ( + NULLIF ( + 47, ( + 8 ) ), MIN ( - 82 ), + 37 * + ( + 58 / 53 ) ), + 59 + COUNT ( * ), - 18 ) THEN 56 END AS col2
----
NULL

query I rowsort
SELECT 9 * - + ( 10 ) AS col1
----
-90

query I rowsort
SELECT 45 * + 66 AS col1
----
2970

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2851
SELECT + 63, 55 DIV + + COUNT( * ) AS col2
----
63
55

skipif mysql # not compatible
query II rowsort label-2851
SELECT + 63, 55 / + + COUNT ( * ) AS col2
----
63
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT - ( + COUNT( * ) ) * - + 77 + 23 * + 36 + + 13 - 18 AS col0
----
900

skipif mysql # not compatible
query I rowsort label-2852
SELECT - ( + COUNT ( * ) ) * - + 77 + 23 * + 36 + + 13 - 18 AS col0
----
900

query II rowsort
SELECT ALL - 99 AS col1, + 69 AS col1
----
-99
69

query I rowsort
SELECT 34 * - ( - 46 )
----
1564

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT ALL - COALESCE ( 40, - + 23 + - MIN( ALL - 36 ) ) col1
----
-40

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL - COALESCE ( 40, - + 23 + - MIN ( ALL - 36 ) ) col1
----
-40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT DISTINCT + MAX( DISTINCT 67 ) - - 15 * 6 * + COUNT( * )
----
157

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT + MAX ( DISTINCT 67 ) - - 15 * 6 * + COUNT ( * )
----
157

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2858
SELECT - 92 * - + 1 + + SUM( - 24 ) + - 94 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2858
SELECT - 92 * - + 1 + + SUM ( - 24 ) + - 94 + - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + + CASE + 71 WHEN 73 THEN + 12 END * + 95 + - 91 * - 68 * + 23 * 17 - + 74
----
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT + MIN( - 68 ) + - - 60 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-2863
SELECT + MIN ( - 68 ) + - - 60 AS col1
----
-8

query II rowsort
SELECT - 7 AS col2, - 7 AS col2
----
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT - NULLIF ( - ( + + ( + 19 ) ), 19 ) * 17 + + COUNT( * ) AS col0
----
324

skipif mysql # not compatible
query I rowsort label-2865
SELECT - NULLIF ( - ( + + ( + 19 ) ), 19 ) * 17 + + COUNT ( * ) AS col0
----
324

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2866
SELECT ALL 18, ( 30 ) + AVG ( ALL 65 ) + 71 + - 25 * - CAST( NULL AS SIGNED ) AS col1
----
18
NULL

skipif mysql # not compatible
query II rowsort label-2866
SELECT ALL 18, ( 30 ) + AVG ( ALL 65 ) + 71 + - 25 * - CAST ( NULL AS INTEGER ) AS col1
----
18
NULL

query I rowsort
SELECT + 64 * + + 13 AS col0
----
832

query I rowsort
SELECT - 38 + + 65 col1
----
27

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2870
SELECT ALL + 89 + - 65 + - 68 + + - COUNT( * ) * - CAST( NULL AS DECIMAL ) / + - 77 / - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL + 89 + - 65 + - 68 + + - COUNT ( * ) * - CAST ( NULL AS REAL ) / + - 77 / - 58
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2871
SELECT ALL - SUM( + 28 ) + - - 66 + 58 * - ( + CASE - MIN( + 68 ) WHEN + 85 + + + CAST( + + 81 AS SIGNED ) THEN COUNT( * ) + + 18 END ) + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL - SUM ( + 28 ) + - - 66 + 58 * - ( + CASE - MIN ( + 68 ) WHEN + 85 + + + CAST ( + + 81 AS INTEGER ) THEN COUNT ( * ) + + 18 END ) + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 0 * - ( 40 ) AS col0
----
0

query I rowsort
SELECT DISTINCT - 87 + + + 77 + + 16
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT ALL + COUNT( * ) + + 60 col1
----
61

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL + COUNT ( * ) + + 60 col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2875
SELECT DISTINCT CAST( 89 AS SIGNED ) + - - 12 + - 17 * 25 * - 72 + + 58 AS col0, 87 AS col2
----
30759
87

skipif mysql # not compatible
query II rowsort label-2875
SELECT DISTINCT CAST ( 89 AS INTEGER ) + - - 12 + - 17 * 25 * - 72 + + 58 AS col0, 87 AS col2
----
30759
87

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

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

query I rowsort
SELECT 0 + - 6
----
-6

query II rowsort
SELECT - 51, - 47 + - 79 + + - 65 AS col0
----
-51
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT 9 + + ( + - COUNT( * ) ) + - 18
----
-10

skipif mysql # not compatible
query I rowsort label-2879
SELECT 9 + + ( + - COUNT ( * ) ) + - 18
----
-10

query I rowsort
SELECT 48 + - 16
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2881
SELECT DISTINCT NULLIF ( - - COUNT( 68 ), - COUNT( * ) * + ( AVG ( - 59 ) ) ) DIV - 12 * + ( + 67 ) * + NULLIF ( 64, 62 ) * 64 + 30 * ( + NULLIF ( + 86, 13 + COUNT( * ) DIV + 66 ) + + 38 ) + + COUNT( * ) * NULLIF ( 69 * 60, 22 + 73 ) AS col2
----
7860

skipif mysql # not compatible
query I rowsort label-2881
SELECT DISTINCT NULLIF ( - - COUNT ( 68 ), - COUNT ( * ) * + ( AVG ( - 59 ) ) ) / - 12 * + ( + 67 ) * + NULLIF ( 64, 62 ) * 64 + 30 * ( + NULLIF ( + 86, 13 + COUNT ( * ) / + 66 ) + + 38 ) + + COUNT ( * ) * NULLIF ( 69 * 60, 22 + 73 ) AS col2
----
7860

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2883
SELECT DISTINCT - 60 AS col2, + COUNT( * ) + - CASE - + 65 WHEN + + 60 - - 36 THEN + COALESCE ( - + 3, 60, 69 + - + COUNT( * ) ) END
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-2883
SELECT DISTINCT - 60 AS col2, + COUNT ( * ) + - CASE - + 65 WHEN + + 60 - - 36 THEN + COALESCE ( - + 3, 60, 69 + - + COUNT ( * ) ) END
----
-60
NULL

query I rowsort
SELECT ALL 38 * + 27 * - - 84
----
86184

query I rowsort
SELECT 7 * 19 + - - 12 AS col1
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-2886
SELECT ( 82 ) DIV 16 * + - 84 * + - 89 - 15 - 35 AS col1
----
37330

skipif mysql # not compatible
query I rowsort label-2886
SELECT ( 82 ) / 16 * + - 84 * + - 89 - 15 - 35 AS col1
----
37330

query I rowsort
SELECT DISTINCT + 61 * 99 * - 13
----
-78507

onlyif mysql # aggregate syntax: 
query II rowsort label-2888
SELECT + 79 + + 77 + 88 - - - 2 * - + 16 * COUNT( * ) + - ( - - COUNT( * ) ) * + 24 AS col0, - 43 AS col0
----
252
-43

skipif mysql # not compatible
query II rowsort label-2888
SELECT + 79 + + 77 + 88 - - - 2 * - + 16 * COUNT ( * ) + - ( - - COUNT ( * ) ) * + 24 AS col0, - 43 AS col0
----
252
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-2889
SELECT 63 DIV - + 91
----
0

skipif mysql # not compatible
query I rowsort label-2889
SELECT 63 / - + 91
----
0

query I rowsort
SELECT 51 * + 70 * - 85
----
-303450

onlyif mysql # aggregate syntax: 
query II rowsort label-2891
SELECT DISTINCT - + SUM( ALL + 69 ) AS col2, + 11 + - 90 AS col1
----
-69
-79

skipif mysql # not compatible
query II rowsort label-2891
SELECT DISTINCT - + SUM ( ALL + 69 ) AS col2, + 11 + - 90 AS col1
----
-69
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2892
SELECT DISTINCT - + AVG ( - CAST( NULL AS SIGNED ) ), 85 AS col1
----
NULL
85

skipif mysql # not compatible
query II rowsort label-2892
SELECT DISTINCT - + AVG ( - CAST ( NULL AS INTEGER ) ), 85 AS col1
----
NULL
85

query I rowsort
SELECT ALL + 87 * + 69
----
6003

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT COUNT( DISTINCT - - 91 ) * 20
----
20

skipif mysql # not compatible
query I rowsort label-2894
SELECT COUNT ( DISTINCT - - 91 ) * 20
----
20

query I rowsort
SELECT DISTINCT + - 35 + 94 AS col2
----
59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT + COALESCE ( + - COUNT( * ), - 15 )
----
-1

skipif mysql # not compatible
query I rowsort label-2897
SELECT + COALESCE ( + - COUNT ( * ), - 15 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2898
SELECT ALL - 40 AS col1, + 44 DIV COUNT( * )
----
-40
44

skipif mysql # not compatible
query II rowsort label-2898
SELECT ALL - 40 AS col1, + 44 / COUNT ( * )
----
-40
44

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

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

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

skipif mysql # not compatible
query I rowsort label-2900
SELECT - + SUM ( - 60 )
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-2901
SELECT DISTINCT - + 55 + - ( - - 72 ) + + 14 * - COUNT( 48 ), COUNT( 22 ) AS col2
----
-141
1

skipif mysql # not compatible
query II rowsort label-2901
SELECT DISTINCT - + 55 + - ( - - 72 ) + + 14 * - COUNT ( 48 ), COUNT ( 22 ) AS col2
----
-141
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2902
SELECT ALL + + 93 + - - 97 * 1 DIV + CASE + 72 WHEN - NULLIF ( COUNT( * ), - - 79 * - 61 ) THEN NULL ELSE COALESCE ( - ( - 63 ), + NULLIF ( 91, COALESCE ( - 12, 81 ) ) + ( - 45 ) ) END + ( - 13 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL + + 93 + - - 97 * 1 / + CASE + 72 WHEN - NULLIF ( COUNT ( * ), - - 79 * - 61 ) THEN NULL ELSE COALESCE ( - ( - 63 ), + NULLIF ( 91, COALESCE ( - 12, 81 ) ) + ( - 45 ) ) END + ( - 13 ) AS col1
----
81

query I rowsort
SELECT DISTINCT CASE - + ( 11 ) WHEN + 46 THEN 84 + + 73 WHEN + + 94 * + 28 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT DISTINCT + ( 14 ) + - + MIN( DISTINCT + + 48 )
----
-34

skipif mysql # not compatible
query I rowsort label-2904
SELECT DISTINCT + ( 14 ) + - + MIN ( DISTINCT + + 48 )
----
-34

query I rowsort
SELECT - 58 + + - 89 + - 35
----
-182

query I rowsort
SELECT DISTINCT 64 + - - 7 + 9 * - 64
----
-505

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT ALL COUNT( * ) + + - ( - - 23 ) col1
----
-22

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL COUNT ( * ) + + - ( - - 23 ) col1
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2908
SELECT DISTINCT COALESCE ( - 47, - - SUM( DISTINCT 26 ) + + COUNT( * ) + 34 DIV 17 )
----
-47

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT COALESCE ( - 47, - - SUM ( DISTINCT 26 ) + + COUNT ( * ) + 34 / 17 )
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-2909
SELECT DISTINCT + COUNT( * ) + + + 71 * - 27 * - ( + - 11 ), + COALESCE ( + + 48, ( + - 43 ) * - 97 + + 97 ) + - COUNT( * ) AS col0
----
-21086
47

skipif mysql # not compatible
query II rowsort label-2909
SELECT DISTINCT + COUNT ( * ) + + + 71 * - 27 * - ( + - 11 ), + COALESCE ( + + 48, ( + - 43 ) * - 97 + + 97 ) + - COUNT ( * ) AS col0
----
-21086
47

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2911
SELECT + 80 + - + 18 * + 74, 94 DIV 87 AS col0
----
-1252
1

skipif mysql # not compatible
query II rowsort label-2911
SELECT + 80 + - + 18 * + 74, 94 / 87 AS col0
----
-1252
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT - MIN( ALL 39 ) * COUNT( * ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2912
SELECT - MIN ( ALL 39 ) * COUNT ( * ) AS col0
----
-39

query I rowsort
SELECT DISTINCT + 1 - 72
----
-71

query I rowsort
SELECT - 80 + 97
----
17

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

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

query I rowsort
SELECT DISTINCT + 29 * - + 26 AS col1
----
-754

onlyif mysql # aggregate syntax: 
query II rowsort label-2917
SELECT DISTINCT SUM( - 83 ), 84 AS col1
----
-83
84

skipif mysql # not compatible
query II rowsort label-2917
SELECT DISTINCT SUM ( - 83 ), 84 AS col1
----
-83
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT - 27 - + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-2918
SELECT - 27 - + COUNT ( * )
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2919
SELECT ALL + COUNT( * ) * - + 31 DIV + COALESCE ( + 46, ( 69 ) - 2 + + - 1 * + 98 DIV + - MAX( ALL + 17 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL + COUNT ( * ) * - + 31 / + COALESCE ( + 46, ( 69 ) - 2 + + - 1 * + 98 / + - MAX ( ALL + 17 ) )
----
0

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

query II rowsort
SELECT ALL + ( + 25 ) AS col1, - 57 AS col1
----
25
-57

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2924
SELECT + 90 * - + 92 * - COUNT( - CAST( NULL AS SIGNED ) ) + 70 - + 60 - 10 * CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL WHEN NOT 33 BETWEEN NULL AND + 8 + 86 * 40 THEN COUNT( * ) END * 88 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2924
SELECT + 90 * - + 92 * - COUNT ( - CAST ( NULL AS INTEGER ) ) + 70 - + 60 - 10 * CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL WHEN NOT 33 BETWEEN NULL AND + 8 + 86 * 40 THEN COUNT ( * ) END * 88 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2925
SELECT + - 61 * + 30 - - + 46 DIV - ( + 93 )
----
-1830

skipif mysql # not compatible
query I rowsort label-2925
SELECT + - 61 * + 30 - - + 46 / - ( + 93 )
----
-1830

query I rowsort
SELECT DISTINCT - ( - 60 ) * - 52 + - 77 AS col1
----
-3197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2927
SELECT + CAST( - 3 AS SIGNED ) * - 52 AS col1
----
156

skipif mysql # not compatible
query I rowsort label-2927
SELECT + CAST ( - 3 AS INTEGER ) * - 52 AS col1
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2928
SELECT + 33 * + 85 + - + CAST( NULL AS SIGNED ) * 48 + ( - 79 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2928
SELECT + 33 * + 85 + - + CAST ( NULL AS INTEGER ) * 48 + ( - 79 ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2929
SELECT + + ( + + 26 ) / - 17 + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2930
SELECT - - 50 + + 70 AS col2, - 7 * - CAST( NULL AS SIGNED ) AS col0
----
120
NULL

skipif mysql # not compatible
query II rowsort label-2930
SELECT - - 50 + + 70 AS col2, - 7 * - CAST ( NULL AS INTEGER ) AS col0
----
120
NULL

query I rowsort
SELECT 45 * + 27 * - + 11 - 12 * - 86
----
-12333

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT + + 75 + SUM( 37 )
----
112

skipif mysql # not compatible
query I rowsort label-2932
SELECT + + 75 + SUM ( 37 )
----
112

query I rowsort
SELECT ALL COALESCE ( + - 6, + 89 ) * + 77 + + 61 + - 78 AS col0
----
-479

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT COUNT( * ) * - 83 * 24 + - 98
----
-2090

skipif mysql # not compatible
query I rowsort label-2934
SELECT COUNT ( * ) * - 83 * 24 + - 98
----
-2090

onlyif mysql # DIV for integer division: 
query I rowsort label-2935
SELECT + 20 DIV + - 99
----
0

skipif mysql # not compatible
query I rowsort label-2935
SELECT + 20 / + - 99
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2936
SELECT + COUNT( - - 91 ) + + 0 + + CASE - 47 WHEN - 99 + + 37 THEN - - COUNT( * ) * + 6 * 97 WHEN - - 46 THEN + - 58 ELSE + 41 DIV - 95 END + 82 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-2936
SELECT + COUNT ( - - 91 ) + + 0 + + CASE - 47 WHEN - 99 + + 37 THEN - - COUNT ( * ) * + 6 * 97 WHEN - - 46 THEN + - 58 ELSE + 41 / - 95 END + 82 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT + MAX( ALL - 42 ) + + - 14
----
-56

skipif mysql # not compatible
query I rowsort label-2937
SELECT + MAX ( ALL - 42 ) + + - 14
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2938
SELECT ALL 56 * - + CAST( + 13 AS SIGNED ) * 48 + COUNT( * ) * + 16 * + CAST( - 61 AS SIGNED ) AS col2
----
-35920

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL 56 * - + CAST ( + 13 AS INTEGER ) * 48 + COUNT ( * ) * + 16 * + CAST ( - 61 AS INTEGER ) AS col2
----
-35920

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT MAX( - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-2939
SELECT MAX ( - 42 )
----
-42

query II rowsort
SELECT ALL NULLIF ( 3, + + 92 * + + 18 ) * + 94 + 83 AS col0, 81
----
365
81

query I rowsort
SELECT - CASE - NULLIF ( 87, + 55 ) WHEN 21 * - 20 THEN NULL ELSE + 66 * 63 END AS col2
----
-4158

query I rowsort
SELECT - 87 + - - 50 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT DISTINCT COUNT( * ) - 32 col1
----
-31

skipif mysql # not compatible
query I rowsort label-2943
SELECT DISTINCT COUNT ( * ) - 32 col1
----
-31

query II rowsort
SELECT - 95 AS col1, - 4
----
-95
-4

query I rowsort
SELECT + 68 + 33 AS col0
----
101

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2948
SELECT DISTINCT - 70 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-2948
SELECT DISTINCT - 70 / - 78
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2949
SELECT + 32 + + - CASE - - 11 WHEN + 84 THEN + 97 * - 38 / - 1 * + 81 * - COUNT( * ) * - 54 WHEN - - COUNT( - CAST( NULL AS SIGNED ) ) THEN 25 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2949
SELECT + 32 + + - CASE - - 11 WHEN + 84 THEN + 97 * - 38 / - 1 * + 81 * - COUNT ( * ) * - 54 WHEN - - COUNT ( - CAST ( NULL AS INTEGER ) ) THEN 25 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2950
SELECT + 91 DIV + 38 * + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-2950
SELECT + 91 / + 38 * + - COUNT ( * )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2951
SELECT - 97 DIV + 83 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2951
SELECT - 97 / + 83 AS col2
----
-1

query I rowsort
SELECT + 8 + + 39
----
47

query I rowsort
SELECT - 14 - + 57 + - 56 col2
----
-127

query I rowsort
SELECT ALL - 53 * 58 AS col0
----
-3074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2955
SELECT - 5 DIV + 48 - 69 + 3 * - CAST( - COUNT( * ) AS SIGNED ) DIV - + 91 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-2955
SELECT - 5 / + 48 - 69 + 3 * - CAST ( - COUNT ( * ) AS INTEGER ) / - + 91 AS col1
----
-69

query I rowsort
SELECT - - 89 + - 65
----
24

query II rowsort
SELECT + 57 AS col0, 5 - 76 + + + 6 AS col2
----
57
-65

query II rowsort
SELECT ALL + 54 AS col1, - 55
----
54
-55

query I rowsort
SELECT DISTINCT + - 26 * + - 70 AS col1
----
1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2960
SELECT - + 65 + - + CASE 57 WHEN SUM( 24 ) DIV 35 + 75 THEN + CAST( NULL AS SIGNED ) DIV 83 DIV + 72 ELSE - + COUNT( * ) * - 98 END
----
-163

skipif mysql # not compatible
query I rowsort label-2960
SELECT - + 65 + - + CASE 57 WHEN SUM ( 24 ) / 35 + 75 THEN + CAST ( NULL AS INTEGER ) / 83 / + 72 ELSE - + COUNT ( * ) * - 98 END
----
-163

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2962
SELECT + NULLIF ( - SUM( - 46 ), - 40 * + 62 + - COUNT( * ) / ( + - COUNT( * ) ) + - - 85 ) AS col1, 59 * 49
----
46
2891

skipif mysql # not compatible
query II rowsort label-2962
SELECT + NULLIF ( - SUM ( - 46 ), - 40 * + 62 + - COUNT ( * ) / ( + - COUNT ( * ) ) + - - 85 ) AS col1, 59 * 49
----
46
2891

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2963
SELECT ALL - 20 / - + 68 * + - 87 + + CAST( - 54 AS DECIMAL ) + - + 89 + - CASE - 21 WHEN + + 75 THEN NULL WHEN + 51 THEN - - ( - 85 ) WHEN - 26 + - 74 * + 65 THEN NULL END * 51 / + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL - 20 / - + 68 * + - 87 + + CAST ( - 54 AS REAL ) + - + 89 + - CASE - 21 WHEN + + 75 THEN NULL WHEN + 51 THEN - - ( - 85 ) WHEN - 26 + - 74 * + 65 THEN NULL END * 51 / + 62
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2964
SELECT 99 * + 68 + 98 + + - CASE + 40 WHEN + - 10 THEN + - 16 + CASE 54 WHEN - NULLIF ( - 60, + MAX( ALL - - 34 ) ) THEN COALESCE ( - 64, - 54 / + CAST( NULL AS DECIMAL ) ) + 37 END ELSE NULL END + + MIN( ALL - 71 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2964
SELECT 99 * + 68 + 98 + + - CASE + 40 WHEN + - 10 THEN + - 16 + CASE 54 WHEN - NULLIF ( - 60, + MAX ( ALL - - 34 ) ) THEN COALESCE ( - 64, - 54 / + CAST ( NULL AS REAL ) ) + 37 END ELSE NULL END + + MIN ( ALL - 71 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2965
SELECT ALL - 91 / + CASE - + 17 WHEN - 41 THEN - ( 99 ) * - MIN( 78 ) + + - CAST( 58 AS SIGNED ) + - - 69 WHEN - + 75 THEN + - 46 + CASE + 35 - 62 * + 87 WHEN 59 + + COUNT( 21 ) * 26 THEN - 80 + COUNT( * ) END ELSE NULL END + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL - 91 / + CASE - + 17 WHEN - 41 THEN - ( 99 ) * - MIN ( 78 ) + + - CAST ( 58 AS INTEGER ) + - - 69 WHEN - + 75 THEN + - 46 + CASE + 35 - 62 * + 87 WHEN 59 + + COUNT ( 21 ) * 26 THEN - 80 + COUNT ( * ) END ELSE NULL END + COUNT ( * ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2966
SELECT ALL - - 29 DIV + 55 + - - 70 AS col1, 19 AS col0
----
70
19

skipif mysql # not compatible
query II rowsort label-2966
SELECT ALL - - 29 / + 55 + - - 70 AS col1, 19 AS col0
----
70
19

query I rowsort
SELECT + 57 * - 96
----
-5472

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

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL - - 9 + + + COUNT ( * ) AS col0
----
10

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

query I rowsort
SELECT DISTINCT - 0 * + 32
----
0

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

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

query I rowsort
SELECT 29 * + 88
----
2552

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT ALL COUNT( 67 ) - 52 + - 57 + + + 64 * 10 * - 2 + 95 + - 84 * - + 98 * + - 60 AS col1
----
-495213

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL COUNT ( 67 ) - 52 + - 57 + + + 64 * 10 * - 2 + 95 + - 84 * - + 98 * + - 60 AS col1
----
-495213

query I rowsort
SELECT ALL + 56 * + 73 AS col1
----
4088

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT COALESCE ( ( + 53 ), 13 DIV - - 34, + - 42 ) * + 53 AS col2
----
2809

skipif mysql # not compatible
query I rowsort label-2976
SELECT COALESCE ( ( + 53 ), 13 / - - 34, + - 42 ) * + 53 AS col2
----
2809

query I rowsort
SELECT ALL 15 * + 90 AS col1
----
1350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2978
SELECT 54 * 58 DIV + + COUNT( * )
----
3132

skipif mysql # not compatible
query I rowsort label-2978
SELECT 54 * 58 / + + COUNT ( * )
----
3132

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT COUNT( * ) + - NULLIF ( - 68, - COUNT( * ) ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-2979
SELECT COUNT ( * ) + - NULLIF ( - 68, - COUNT ( * ) ) AS col1
----
69

query I rowsort
SELECT DISTINCT 62 * + + 4 AS col1
----
248

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT 37 + + COUNT( * ) * + 85 AS col1
----
122

skipif mysql # not compatible
query I rowsort label-2981
SELECT 37 + + COUNT ( * ) * + 85 AS col1
----
122

query I rowsort
SELECT 44 * - 24 * + 78 AS col1
----
-82368

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2983
SELECT 79 + - - MIN( ALL - ( + 11 ) ) AS col1, + 13 DIV + 16 * + 74 AS col2
----
68
0

skipif mysql # not compatible
query II rowsort label-2983
SELECT 79 + - - MIN ( ALL - ( + 11 ) ) AS col1, + 13 / + 16 * + 74 AS col2
----
68
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT DISTINCT 14 * - COUNT( * ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT 14 * - COUNT ( * ) col2
----
-14

query I rowsort
SELECT ALL - 49 + 35
----
-14

query I rowsort
SELECT ALL 81 + + + 62
----
143

query I rowsort
SELECT ALL + 58 + - - 30 AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2988
SELECT - COUNT( * ) DIV + COALESCE ( CAST( NULL AS SIGNED ), - 40 )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT ALL 8 + + + 31 * + 73 + ( - NULLIF ( - - 27, COUNT( * ) * + 82 + + 65 + + COUNT( * ) ) )
----
2244

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL 8 + + + 31 * + 73 + ( - NULLIF ( - - 27, COUNT ( * ) * + 82 + + 65 + + COUNT ( * ) ) )
----
2244

query I rowsort
SELECT 59 - + 32 * 45
----
-1381

onlyif mysql # DIV for integer division: 
query I rowsort label-2991
SELECT - 48 * - 41 + - 90 + 28 + NULLIF ( - + 22, - 82 ) DIV - 10 + 91
----
1999

skipif mysql # not compatible
query I rowsort label-2991
SELECT - 48 * - 41 + - 90 + 28 + NULLIF ( - + 22, - 82 ) / - 10 + 91
----
1999

query I rowsort
SELECT DISTINCT - 56 + + 82 + + - 58 - + 24 AS col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2993
SELECT + CAST( 99 AS SIGNED ) DIV + 13 + - 46
----
-39

skipif mysql # not compatible
query I rowsort label-2993
SELECT + CAST ( 99 AS INTEGER ) / + 13 + - 46
----
-39

query I rowsort
SELECT + 14 * - 62 AS col0
----
-868

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT DISTINCT + COUNT( * ) * + 30 * + 11
----
330

skipif mysql # not compatible
query I rowsort label-2995
SELECT DISTINCT + COUNT ( * ) * + 30 * + 11
----
330

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

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL - + SUM ( DISTINCT + 71 )
----
-71

query I rowsort
SELECT ALL 11 + 86 * - 18
----
-1537

query I rowsort
SELECT DISTINCT - 4 * - 42 AS col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT DISTINCT + + COUNT( * ) - NULLIF ( - 5, + + 1 - + - 68 + 0 / + 97 )
----
6

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT + + COUNT ( * ) - NULLIF ( - 5, + + 1 - + - 68 + 0 / + 97 )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3000
SELECT + - 86 * - COUNT( DISTINCT + - 42 ) + - - COUNT( * ) DIV - 60 * - SUM( DISTINCT + + 8 ) * - + 20 * + 45 - + 92
----
-6

skipif mysql # not compatible
query I rowsort label-3000
SELECT + - 86 * - COUNT ( DISTINCT + - 42 ) + - - COUNT ( * ) / - 60 * - SUM ( DISTINCT + + 8 ) * - + 20 * + 45 - + 92
----
-6

query I rowsort
SELECT - 21 + - - 62 AS col0
----
41

query II rowsort
SELECT ALL - 74 AS col0, - 77
----
-74
-77

query I rowsort
SELECT 12 + 20
----
32

query I rowsort
SELECT - 91 * + - 23 + 33 AS col2
----
2126

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT 47 + - + COUNT( DISTINCT + 36 )
----
46

skipif mysql # not compatible
query I rowsort label-3005
SELECT 47 + - + COUNT ( DISTINCT + 36 )
----
46

query II rowsort
SELECT ALL 15 * - CASE + - 67 WHEN - 86 THEN + 15 END AS col0, + 99 AS col1
----
NULL
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3007
SELECT 54 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-3007
SELECT 54 / - 62
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3008
SELECT - 1, + COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-3008
SELECT - 1, + COUNT ( * ) AS col2
----
-1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3009
SELECT 56, - COUNT( - + 35 ) - - - 95 col1
----
56
-96

skipif mysql # not compatible
query II rowsort label-3009
SELECT 56, - COUNT ( - + 35 ) - - - 95 col1
----
56
-96

query II rowsort
SELECT 37 * - ( 87 ) * - + 83 * - 87 AS col2, 40
----
-23244399
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3011
SELECT 44 DIV - 42 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3011
SELECT 44 / - 42 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3012
SELECT COUNT( DISTINCT 64 ) * 57 AS col1, + 48 * COUNT( ALL 96 )
----
57
48

skipif mysql # not compatible
query II rowsort label-3012
SELECT COUNT ( DISTINCT 64 ) * 57 AS col1, + 48 * COUNT ( ALL 96 )
----
57
48

query I rowsort
SELECT 82 + + + 49
----
131

query I rowsort
SELECT ALL 73 + - 51
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3015
SELECT DISTINCT - CAST( NULL AS SIGNED ) * AVG ( - 3 ) * 39 * - 67 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * AVG ( - 3 ) * 39 * - 67 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT MIN( ALL - ( 9 ) ) + - 93
----
-102

skipif mysql # not compatible
query I rowsort label-3016
SELECT MIN ( ALL - ( 9 ) ) + - 93
----
-102

query I rowsort
SELECT + 62 + + + 66
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT + COUNT( 14 )
----
1

skipif mysql # not compatible
query I rowsort label-3018
SELECT + COUNT ( 14 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3019
SELECT CASE - - 42 WHEN CAST( - 72 AS SIGNED ) THEN NULL WHEN 38 THEN 20 + COUNT( * ) * - + 98 * + 83 ELSE NULL END + + 88, - 85 * - 54 AS col0
----
NULL
4590

skipif mysql # not compatible
query II rowsort label-3019
SELECT CASE - - 42 WHEN CAST ( - 72 AS INTEGER ) THEN NULL WHEN 38 THEN 20 + COUNT ( * ) * - + 98 * + 83 ELSE NULL END + + 88, - 85 * - 54 AS col0
----
NULL
4590

query I rowsort
SELECT + 45 - + + 30
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT MIN( ALL - ( 39 ) ) + - 53 + 0 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-3021
SELECT MIN ( ALL - ( 39 ) ) + - 53 + 0 AS col1
----
-92

query I rowsort
SELECT - 12 + + 94 AS col1
----
82

query I rowsort
SELECT - 38 * + + 63 + - 0
----
-2394

query I rowsort
SELECT + - 5 * + 79
----
-395

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT ALL + - NULLIF ( COUNT( * ), 11 )
----
-1

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL + - NULLIF ( COUNT ( * ), 11 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3026
SELECT DISTINCT + CAST( + CASE + SUM( ALL - 47 ) WHEN + - 79 THEN NULL ELSE + COUNT( * ) - + 56 * - + CASE - - MAX( - - 53 ) WHEN + COUNT( * ) * MAX( DISTINCT - - CASE + 41 WHEN CAST( 84 AS DECIMAL ) THEN NULL WHEN 11 - 86 * - 25 THEN + 76 END ) THEN 5 END * + ( + 90 + - COALESCE ( 7, - 15 * 16 ) ) + + 32 END AS SIGNED ) * + 7 - CASE 74 WHEN 52 THEN ( 3 ) + + 38 WHEN NULLIF ( + COUNT( * ), + COUNT( * ) ) / + 74 THEN 74 WHEN 33 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3026
SELECT DISTINCT + CAST ( + CASE + SUM ( ALL - 47 ) WHEN + - 79 THEN NULL ELSE + COUNT ( * ) - + 56 * - + CASE - - MAX ( - - 53 ) WHEN + COUNT ( * ) * MAX ( DISTINCT - - CASE + 41 WHEN CAST ( 84 AS REAL ) THEN NULL WHEN 11 - 86 * - 25 THEN + 76 END ) THEN 5 END * + ( + 90 + - COALESCE ( 7, - 15 * 16 ) ) + + 32 END AS INTEGER ) * + 7 - CASE 74 WHEN 52 THEN ( 3 ) + + 38 WHEN NULLIF ( + COUNT ( * ), + COUNT ( * ) ) / + 74 THEN 74 WHEN 33 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT - 66 * + - 82 * + + COUNT( ALL - - 37 ) AS col0
----
5412

skipif mysql # not compatible
query I rowsort label-3027
SELECT - 66 * + - 82 * + + COUNT ( ALL - - 37 ) AS col0
----
5412

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3028
SELECT + ( - + 40 ) * 69 + CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT + ( - + 40 ) * 69 + CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 75 * - 1
----
-75

query I rowsort
SELECT + 34 * 48
----
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT ALL CASE - ( + 47 ) WHEN 2 * - 27 THEN - MAX( + 78 ) END / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL CASE - ( + 47 ) WHEN 2 * - 27 THEN - MAX ( + 78 ) END / + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( - ( - + 91 ) )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT ALL - 84 * - MIN( - - 12 ) AS col0
----
1008

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL - 84 * - MIN ( - - 12 ) AS col0
----
1008

query I rowsort
SELECT - 45 * + 42 * - 43
----
81270

query I rowsort
SELECT - 80 * + 16 AS col2
----
-1280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3036
SELECT ALL - CAST( + - 48 AS SIGNED ) * - 32
----
-1536

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL - CAST ( + - 48 AS INTEGER ) * - 32
----
-1536

query II rowsort
SELECT + 46 AS col2, - 63 AS col2
----
46
-63

query I rowsort
SELECT + 9 * 64 AS col1
----
576

query I rowsort
SELECT + ( + + 32 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3040
SELECT COUNT( * ), - 45 AS col1
----
1
-45

skipif mysql # not compatible
query II rowsort label-3040
SELECT COUNT ( * ), - 45 AS col1
----
1
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3041
SELECT ALL + 8 AS col0, ( - + 64 ) + - - 96 * - CAST( NULL AS SIGNED ) * - 58 + 13 + ( + - 3 ) * 41 AS col2
----
8
NULL

skipif mysql # not compatible
query II rowsort label-3041
SELECT ALL + 8 AS col0, ( - + 64 ) + - - 96 * - CAST ( NULL AS INTEGER ) * - 58 + 13 + ( + - 3 ) * 41 AS col2
----
8
NULL

query I rowsort
SELECT DISTINCT + 66 + + + 28 AS col2
----
94

query I rowsort
SELECT - 44 * 99 AS col0
----
-4356

query I rowsort
SELECT ALL + 48 + + 1 - 89
----
-40

query I rowsort
SELECT ALL - 94 + + 3 AS col1
----
-91

query I rowsort
SELECT - 38 - + 85 + - - 2 + 83 + 38 * - 80
----
-3078

onlyif mysql # aggregate syntax: 
query II rowsort label-3047
SELECT COUNT( * ) * - 66 + - 23 - + COUNT( * ) AS col1, + 22 * - 99
----
-90
-2178

skipif mysql # not compatible
query II rowsort label-3047
SELECT COUNT ( * ) * - 66 + - 23 - + COUNT ( * ) AS col1, + 22 * - 99
----
-90
-2178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3048
SELECT - COALESCE ( - 68, + CAST( NULL AS SIGNED ), + + 86 ) - - NULLIF ( + 7, - COUNT( * ) - - CASE + 25 WHEN - + 60 + - - NULLIF ( - 58, + 67 + + CAST( NULL AS SIGNED ) ) + - 23 THEN NULL ELSE 20 + - 4 / 16 END ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-3048
SELECT - COALESCE ( - 68, + CAST ( NULL AS INTEGER ), + + 86 ) - - NULLIF ( + 7, - COUNT ( * ) - - CASE + 25 WHEN - + 60 + - - NULLIF ( - 58, + 67 + + CAST ( NULL AS INTEGER ) ) + - 23 THEN NULL ELSE 20 + - 4 / 16 END ) AS col1
----
75

query I rowsort
SELECT ALL + 22 * + 21 col1
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT ALL + 49 + COUNT( - 22 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL + 49 + COUNT ( - 22 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-3051
SELECT - COUNT( - 95 ), + 59 AS col1
----
-1
59

skipif mysql # not compatible
query II rowsort label-3051
SELECT - COUNT ( - 95 ), + 59 AS col1
----
-1
59

query I rowsort
SELECT - + 83 + 54
----
-29

query I rowsort
SELECT + - 78 * + 16
----
-1248

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT + COUNT( * ) + - + 17 + 94 * + 43 * 88 + 46 AS col0
----
355726

skipif mysql # not compatible
query I rowsort label-3054
SELECT + COUNT ( * ) + - + 17 + 94 * + 43 * 88 + 46 AS col0
----
355726

query I rowsort
SELECT + + 3 - - 0
----
3

query I rowsort
SELECT ALL - - 7 * - 6 AS col1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3057
SELECT DISTINCT - SUM( DISTINCT - 43 ) * - 88 * + - 27 AS col0, ( - 75 ) * - 37 + 15 + - 50 + + + 21 * 69 * SUM( - - 64 ) DIV - 87 + - + 0 * - 99 DIV - 71 - - ( + 9 ) col1
----
102168
1684

skipif mysql # not compatible
query II rowsort label-3057
SELECT DISTINCT - SUM ( DISTINCT - 43 ) * - 88 * + - 27 AS col0, ( - 75 ) * - 37 + 15 + - 50 + + + 21 * 69 * SUM ( - - 64 ) / - 87 + - + 0 * - 99 / - 71 - - ( + 9 ) col1
----
102168
1684

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT - CASE + 36 WHEN - - ( + + COUNT( * ) ) THEN + 71 ELSE NULL END / + COALESCE ( 77, - 94 * + 99 * + 98 + - - 14 + 76 * - 88 * + - 94, + 6 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3058
SELECT - CASE + 36 WHEN - - ( + + COUNT ( * ) ) THEN + 71 ELSE NULL END / + COALESCE ( 77, - 94 * + 99 * + 98 + - - 14 + 76 * - 88 * + - 94, + 6 ) AS col1
----
NULL

query I rowsort
SELECT ALL - - 15 * + 42 AS col2
----
630

onlyif mysql # aggregate syntax: 
query II rowsort label-3060
SELECT ALL 55, + 21 + - + COUNT( * ) * + COUNT( * ) * - COUNT( * ) col0
----
55
22

skipif mysql # not compatible
query II rowsort label-3060
SELECT ALL 55, + 21 + - + COUNT ( * ) * + COUNT ( * ) * - COUNT ( * ) col0
----
55
22

query II rowsort
SELECT ALL ( 12 ) AS col2, 52
----
12
52

query I rowsort
SELECT - 67 * - 92 * - 69
----
-425316

query I rowsort
SELECT - - ( - 36 ) - + 66
----
-102

query I rowsort
SELECT + + 60 * - 50
----
-3000

query II rowsort
SELECT DISTINCT 61 AS col2, - 20 AS col0
----
61
-20

query I rowsort
SELECT ALL - 21 * 36 AS col2
----
-756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3067
SELECT + - 15 * NULLIF ( + + ( + 93 ), - - NULLIF ( - - 76, - - 48 ) - + MIN( CAST( - 5 AS SIGNED ) ) ) + 18 AS col0
----
-1377

skipif mysql # not compatible
query I rowsort label-3067
SELECT + - 15 * NULLIF ( + + ( + 93 ), - - NULLIF ( - - 76, - - 48 ) - + MIN ( CAST ( - 5 AS INTEGER ) ) ) + 18 AS col0
----
-1377

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3068
SELECT DISTINCT + + CAST( - 15 AS SIGNED ) * + 58
----
-870

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT + + CAST ( - 15 AS INTEGER ) * + 58
----
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT 24 * + ( COUNT( * ) ) - 72
----
-48

skipif mysql # not compatible
query I rowsort label-3069
SELECT 24 * + ( COUNT ( * ) ) - 72
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3070
SELECT ALL COALESCE ( 38, COUNT( * ) - - 85 + - + 24 * + COALESCE ( + 64, + - 1 * + 6, - COUNT( * ) DIV - + 37 ) + + 90 ) * 21, ( - - COALESCE ( - + 1, - 12, - MIN( ALL 99 ) ) ) AS col1
----
798
-1

skipif mysql # not compatible
query II rowsort label-3070
SELECT ALL COALESCE ( 38, COUNT ( * ) - - 85 + - + 24 * + COALESCE ( + 64, + - 1 * + 6, - COUNT ( * ) / - + 37 ) + + 90 ) * 21, ( - - COALESCE ( - + 1, - 12, - MIN ( ALL 99 ) ) ) AS col1
----
798
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3071
SELECT - 45 / - CAST( NULL AS SIGNED ) - + CASE + COUNT( * ) WHEN + + 88 * - 82 + 9 + ( COALESCE ( + COALESCE ( CASE + 59 WHEN 87 * COUNT( * ) + ( + + 38 ) THEN - 98 + ( 55 ) * ( 87 ) END, 17, 77, - ( ( 49 ) ) * 12 ), - CAST( NULL AS DECIMAL ) + - 80 ) ) * - 75 + - COUNT( * ) THEN - 61 / 61 ELSE - 17 / 54 + 36 / 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3071
SELECT - 45 / - CAST ( NULL AS INTEGER ) - + CASE + COUNT ( * ) WHEN + + 88 * - 82 + 9 + ( COALESCE ( + COALESCE ( CASE + 59 WHEN 87 * COUNT ( * ) + ( + + 38 ) THEN - 98 + ( 55 ) * ( 87 ) END, 17, 77, - ( ( 49 ) ) * 12 ), - CAST ( NULL AS REAL ) + - 80 ) ) * - 75 + - COUNT ( * ) THEN - 61 / 61 ELSE - 17 / 54 + 36 / 24 END
----
NULL

query I rowsort
SELECT DISTINCT ( - NULLIF ( - - 71, - 28 ) ) * + 17
----
-1207

query I rowsort
SELECT - 82 * + 49 + + 53
----
-3965

query I rowsort
SELECT + 68 + 96 * + - 74 * - ( 3 )
----
21380

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT NULLIF ( - + 11, - 70 ) * - 84 - - COUNT( * ) + + + COUNT( * ) / - 66 - 18 + + 66 + CASE - 89 WHEN 49 * MAX( ALL - ( - - 60 ) ) * - 58 THEN + + CASE 28 WHEN + COUNT( * ) THEN NULL WHEN - 78 * 71 + + 48 THEN CASE - 42 WHEN 97 THEN + CASE 87 WHEN 42 THEN NULL ELSE - ( - 69 ) END + COUNT( DISTINCT 44 ) WHEN - 29 THEN + 72 WHEN 98 / + 49 THEN NULL ELSE NULL END END * - 31 WHEN 3 THEN NULL WHEN 96 + - 76 THEN NULL END * 45 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3075
SELECT NULLIF ( - + 11, - 70 ) * - 84 - - COUNT ( * ) + + + COUNT ( * ) / - 66 - 18 + + 66 + CASE - 89 WHEN 49 * MAX ( ALL - ( - - 60 ) ) * - 58 THEN + + CASE 28 WHEN + COUNT ( * ) THEN NULL WHEN - 78 * 71 + + 48 THEN CASE - 42 WHEN 97 THEN + CASE 87 WHEN 42 THEN NULL ELSE - ( - 69 ) END + COUNT ( DISTINCT 44 ) WHEN - 29 THEN + 72 WHEN 98 / + 49 THEN NULL ELSE NULL END END * - 31 WHEN 3 THEN NULL WHEN 96 + - 76 THEN NULL END * 45 * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ( ( 92 ) ) AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3077
SELECT ALL 68 DIV - 7
----
-9

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL 68 / - 7
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3078
SELECT ALL 25 * - 8 + - 10 - - + 64 + - 56 DIV - + COALESCE ( 64, - COUNT( * ) + 14 )
----
-146

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL 25 * - 8 + - 10 - - + 64 + - 56 / - + COALESCE ( 64, - COUNT ( * ) + 14 )
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT + 38 * + - 28 + - 14 + 20 + + - 15 * - + ( + COALESCE ( + COUNT( * ), + 9 ) ) * + - 62 * + NULLIF ( - 55, - MAX( DISTINCT + - 71 ) * - - 88 * + 90 - - 24 )
----
50092

skipif mysql # not compatible
query I rowsort label-3079
SELECT + 38 * + - 28 + - 14 + 20 + + - 15 * - + ( + COALESCE ( + COUNT ( * ), + 9 ) ) * + - 62 * + NULLIF ( - 55, - MAX ( DISTINCT + - 71 ) * - - 88 * + 90 - - 24 )
----
50092

onlyif mysql # DIV for integer division: 
query I rowsort label-3080
SELECT DISTINCT 3 DIV + 12 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3080
SELECT DISTINCT 3 / + 12 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT 62 * - COUNT( * ) * - 69 + - - NULLIF ( + 71, + + CASE + - 73 WHEN COALESCE ( - 68, - + COUNT( * ), - + 87 + + ( 77 ), + MAX( DISTINCT - 11 ) ) + + 11 THEN + 94 ELSE NULL END ) AS col1
----
4349

skipif mysql # not compatible
query I rowsort label-3081
SELECT 62 * - COUNT ( * ) * - 69 + - - NULLIF ( + 71, + + CASE + - 73 WHEN COALESCE ( - 68, - + COUNT ( * ), - + 87 + + ( 77 ), + MAX ( DISTINCT - 11 ) ) + + 11 THEN + 94 ELSE NULL END ) AS col1
----
4349

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT ALL 94 * + 63 + + 92 - - COUNT( * ) AS col1
----
6015

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL 94 * + 63 + + 92 - - COUNT ( * ) AS col1
----
6015

query I rowsort
SELECT COALESCE ( + - 36, + 72 * + 27 * + 36 + - + 60 )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3084
SELECT + COUNT( * ) + - CAST( NULL AS DECIMAL ), COALESCE ( - 86, + - CASE + 9 WHEN - CAST( - 39 AS SIGNED ) + + 85 + - - 80 THEN - 19 ELSE NULL END ) col2
----
NULL
-86

skipif mysql # not compatible
query II rowsort label-3084
SELECT + COUNT ( * ) + - CAST ( NULL AS REAL ), COALESCE ( - 86, + - CASE + 9 WHEN - CAST ( - 39 AS INTEGER ) + + 85 + - - 80 THEN - 19 ELSE NULL END ) col2
----
NULL
-86

query I rowsort
SELECT DISTINCT 37 * + 17 + - 43 AS col1
----
586

query I rowsort
SELECT + 96 + - + 17 + - 41 - + + 96 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT + - 37 * - MIN( DISTINCT + 48 ) - + 59 * - 49 + NULLIF ( + + 91, - 69 )
----
4758

skipif mysql # not compatible
query I rowsort label-3087
SELECT + - 37 * - MIN ( DISTINCT + 48 ) - + 59 * - 49 + NULLIF ( + + 91, - 69 )
----
4758

query I rowsort
SELECT DISTINCT ( + - 26 )
----
-26

query I rowsort
SELECT ALL + NULLIF ( + - 5, + + 35 ) AS col0
----
-5

query I rowsort
SELECT 34 + + 13 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT DISTINCT + COUNT( * ) * 72 + - 14
----
58

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT + COUNT ( * ) * 72 + - 14
----
58

query II rowsort
SELECT ALL + + 0 - - - 5 AS col2, - 15
----
-5
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT ( NULLIF ( - + 10, + - COUNT( * ) + 55 + + - 96 * 95 ) ) * + 83 AS col1
----
-830

skipif mysql # not compatible
query I rowsort label-3093
SELECT ( NULLIF ( - + 10, + - COUNT ( * ) + 55 + + - 96 * 95 ) ) * + 83 AS col1
----
-830

query II rowsort
SELECT - 44 + + - 22 AS col2, NULLIF ( 23, - 66 + 32 ) AS col0
----
-66
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3095
SELECT 52 * - + ( + - ( + 9 ) ) * - CAST( NULL AS SIGNED ) + - SUM( ALL - - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3095
SELECT 52 * - + ( + - ( + 9 ) ) * - CAST ( NULL AS INTEGER ) + - SUM ( ALL - - 57 )
----
NULL

query I rowsort
SELECT 82 + - 42 + + - 77 * 14 AS col0
----
-1038

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3097
SELECT + 10 + + 32 + - 20 / + + 54 * + ( 41 ) * + + CAST( NULL AS SIGNED ) + CASE - 35 WHEN - MIN( - 72 ) + COUNT( * ) * - - 98 THEN + 50 - - 95 - + 10 + + 7 * + 93 END * ( 75 / 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3097
SELECT + 10 + + 32 + - 20 / + + 54 * + ( 41 ) * + + CAST ( NULL AS INTEGER ) + CASE - 35 WHEN - MIN ( - 72 ) + COUNT ( * ) * - - 98 THEN + 50 - - 95 - + 10 + + 7 * + 93 END * ( 75 / 91 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT DISTINCT + 31 + COALESCE ( + COUNT( * ), - + 94 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT + 31 + COALESCE ( + COUNT ( * ), - + 94 ) AS col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-3099
SELECT - 79 DIV - + ( - 96 ) + + + 37 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-3099
SELECT - 79 / - + ( - 96 ) + + + 37 AS col1
----
37

query II rowsort
SELECT 59, 73 AS col2
----
59
73

query I rowsort
SELECT 63 + + - 72 * + 78 + 18 col0
----
-5535

query I rowsort
SELECT ALL 63 + + - 99 col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT COUNT( * ) * - 43
----
-43

skipif mysql # not compatible
query I rowsort label-3103
SELECT COUNT ( * ) * - 43
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-3104
SELECT ALL 56 + + COUNT( * ) * 31 AS col0, COUNT( * ) AS col0
----
87
1

skipif mysql # not compatible
query II rowsort label-3104
SELECT ALL 56 + + COUNT ( * ) * 31 AS col0, COUNT ( * ) AS col0
----
87
1

query II rowsort
SELECT + 44 AS col1, + 26 AS col0
----
44
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL - SUM( + + 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL - SUM ( + + 8 )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3107
SELECT ALL + 66 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3107
SELECT ALL + 66 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( 11 ) * - 71 col2
----
-781

query I rowsort
SELECT DISTINCT - NULLIF ( + 55, - - 98 * 25 ) AS col1
----
-55

query II rowsort
SELECT DISTINCT - 46 AS col0, + 28 * - 8
----
-46
-224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3111
SELECT 82 DIV + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-3111
SELECT 82 / + COUNT ( * )
----
82

query I rowsort
SELECT ALL 97 + 57
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3113
SELECT 53 - ( + CAST( + 79 AS SIGNED ) ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-3113
SELECT 53 - ( + CAST ( + 79 AS INTEGER ) ) AS col0
----
-26

query I rowsort
SELECT 88 * - 82
----
-7216

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT SUM( - 69 ) - + 78 AS col0
----
-147

skipif mysql # not compatible
query I rowsort label-3115
SELECT SUM ( - 69 ) - + 78 AS col0
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3116
SELECT 7 / - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3116
SELECT 7 / - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 14 + - 77
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-3118
SELECT DISTINCT - 39 DIV 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT - 39 / 67 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3119
SELECT DISTINCT 30 DIV 40 + + 38 * 2 + - 81 * - 31 col1
----
2587

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT 30 / 40 + + 38 * 2 + - 81 * - 31 col1
----
2587

query I rowsort
SELECT ( + + 70 ) - 44 AS col2
----
26

query I rowsort
SELECT ALL - 89 * 32 AS col2
----
-2848

query II rowsort
SELECT 1, 50 col2
----
1
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3123
SELECT DISTINCT COUNT( * ) DIV - ( + 23 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT COUNT ( * ) / - ( + 23 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3124
SELECT DISTINCT - CASE 57 WHEN + 9 + + 45 THEN + + CAST( NULL AS SIGNED ) / + 53 * - - COUNT( * ) - - - ( 30 ) + - 13 + 72 + ( - 21 ) + + + 80 / 22 / - 45 * - COUNT( * ) + 17 * 30 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT - CASE 57 WHEN + 9 + + 45 THEN + + CAST ( NULL AS INTEGER ) / + 53 * - - COUNT ( * ) - - - ( 30 ) + - 13 + 72 + ( - 21 ) + + + 80 / 22 / - 45 * - COUNT ( * ) + 17 * 30 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT - COUNT( * ) + + 48 * - 30 * + - 30 AS col0
----
43199

skipif mysql # not compatible
query I rowsort label-3125
SELECT - COUNT ( * ) + + 48 * - 30 * + - 30 AS col0
----
43199

onlyif mysql # aggregate syntax: 
query II rowsort label-3126
SELECT ALL 89 * - - 42 * + + SUM( + 22 ) * + - 2 + + 2, + COUNT( * ) AS col1
----
-164470
1

skipif mysql # not compatible
query II rowsort label-3126
SELECT ALL 89 * - - 42 * + + SUM ( + 22 ) * + - 2 + + 2, + COUNT ( * ) AS col1
----
-164470
1

query I rowsort
SELECT - 32 - - 43 * + 29 + - 4 * ( - 73 ) col2
----
1507

query I rowsort
SELECT ALL - NULLIF ( - - 49, 38 / 70 ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT ALL MAX( + + 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL MAX ( + + 68 ) AS col2
----
68

query I rowsort
SELECT 66 * + + 99
----
6534

query I rowsort
SELECT ALL ( - 50 ) col2
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3132
SELECT DISTINCT - + 22 DIV + + CAST( 52 AS SIGNED ) + - COUNT( * ) - + SUM( - ( + 38 ) ) * - - 17 * + 31 * - 0 * - 32 * MIN( - - 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT - + 22 / + + CAST ( 52 AS INTEGER ) + - COUNT ( * ) - + SUM ( - ( + 38 ) ) * - - 17 * + 31 * - 0 * - 32 * MIN ( - - 90 )
----
-1

query I rowsort
SELECT ALL + - 60 + - - 47 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-3134
SELECT 0 AS col0, COALESCE ( + COALESCE ( + - 65, COUNT( * ) ), + 48 - + + 94 ) + - + 53 AS col2
----
0
-118

skipif mysql # not compatible
query II rowsort label-3134
SELECT 0 AS col0, COALESCE ( + COALESCE ( + - 65, COUNT ( * ) ), + 48 - + + 94 ) + - + 53 AS col2
----
0
-118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3135
SELECT ALL CAST( MAX( ALL - 6 ) AS SIGNED ) + - 31
----
-37

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL CAST ( MAX ( ALL - 6 ) AS INTEGER ) + - 31
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-3136
SELECT 77 - MIN( ALL 45 ) col1, 63 * - 97 AS col1
----
32
-6111

skipif mysql # not compatible
query II rowsort label-3136
SELECT 77 - MIN ( ALL 45 ) col1, 63 * - 97 AS col1
----
32
-6111

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT COUNT( DISTINCT + + 22 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3137
SELECT COUNT ( DISTINCT + + 22 ) AS col2
----
1

query I rowsort
SELECT ALL - 35 * + + ( + + 81 )
----
-2835

onlyif mysql # DIV for integer division: 
query I rowsort label-3139
SELECT ALL - 89 DIV 15 * - - 82 col1
----
-410

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL - 89 / 15 * - - 82 col1
----
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT ALL 11 * + + COUNT( * ) * - + 97 * - + NULLIF ( + 84, - COUNT( 66 ) ) + - ( - MIN( 49 ) ) AS col0
----
89677

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL 11 * + + COUNT ( * ) * - + 97 * - + NULLIF ( + 84, - COUNT ( 66 ) ) + - ( - MIN ( 49 ) ) AS col0
----
89677

query I rowsort
SELECT 82 + 19 - 77 AS col2
----
24

query I rowsort
SELECT ALL - NULLIF ( 76, ( 97 ) ) AS col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3143
SELECT CAST( + - COUNT( * ) AS SIGNED ) * - COUNT( DISTINCT 0 ) + COALESCE ( - + 41, COALESCE ( 55, 6 DIV + + 48 ) + 76 + + 29 + + + 38 * + SUM( - - 55 ), + 59, ( - COALESCE ( + 85, + 77 + - 65, 88 ) ) * + ( - ( 63 ) * 62 ) ) - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-3143
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) * - COUNT ( DISTINCT 0 ) + COALESCE ( - + 41, COALESCE ( 55, 6 / + + 48 ) + 76 + + 29 + + + 38 * + SUM ( - - 55 ), + 59, ( - COALESCE ( + 85, + 77 + - 65, 88 ) ) * + ( - ( 63 ) * 62 ) ) - COUNT ( * )
----
-41

query I rowsort
SELECT 72 + 50
----
122

query I rowsort
SELECT - ( - 70 ) * 17 * + + 81 - 55
----
96335

query I rowsort
SELECT 17 + + 63 AS col0
----
80

query I rowsort
SELECT - 49 * + - COALESCE ( + ( 8 ), + 45 - + 73 )
----
392

query I rowsort
SELECT ALL + ( - 85 ) AS col2
----
-85

query I rowsort
SELECT DISTINCT - 82 * + 51 * 15 AS col1
----
-62730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3150
SELECT ALL + + CAST( + + 65 AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL + + CAST ( + + 65 AS INTEGER )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT + - 55 + + COUNT( * ) - + 33
----
-87

skipif mysql # not compatible
query I rowsort label-3151
SELECT + - 55 + + COUNT ( * ) - + 33
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT + + 78 + NULLIF ( - + 41, - 71 * 54 / + COUNT( * ) * COUNT( * ) - - - 48 )
----
37

skipif mysql # not compatible
query I rowsort label-3152
SELECT + + 78 + NULLIF ( - + 41, - 71 * 54 / + COUNT ( * ) * COUNT ( * ) - - - 48 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT + + 72 * + - 7 * ( + MAX( ALL + 35 ) )
----
-17640

skipif mysql # not compatible
query I rowsort label-3153
SELECT + + 72 * + - 7 * ( + MAX ( ALL + 35 ) )
----
-17640

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT - 29 * 88 * + 21 + + + 51 + + CASE + 91 WHEN CASE - - AVG ( - 92 ) WHEN + 53 THEN - 28 WHEN 63 THEN NULL END THEN + COUNT( * ) * + 83 END + + CASE + 95 WHEN + - 13 * COUNT( * ) / + 25 THEN + CASE 72 WHEN 80 / + CASE - 6 WHEN - 30 THEN + ( + 42 ) + - 95 ELSE COUNT( * ) END THEN 99 + - 71 END * 43 WHEN 89 THEN - 38 + - 90 * - 11 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3154
SELECT - 29 * 88 * + 21 + + + 51 + + CASE + 91 WHEN CASE - - AVG ( - 92 ) WHEN + 53 THEN - 28 WHEN 63 THEN NULL END THEN + COUNT ( * ) * + 83 END + + CASE + 95 WHEN + - 13 * COUNT ( * ) / + 25 THEN + CASE 72 WHEN 80 / + CASE - 6 WHEN - 30 THEN + ( + 42 ) + - 95 ELSE COUNT ( * ) END THEN 99 + - 71 END * 43 WHEN 89 THEN - 38 + - 90 * - 11 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT ALL ( COUNT( NULLIF ( + 98, + ( + 33 ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL ( COUNT ( NULLIF ( + 98, + ( + 33 ) ) ) )
----
1

query I rowsort
SELECT DISTINCT 48 + + - 74
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT + 92 + ( + + SUM( ALL - + 19 ) )
----
73

skipif mysql # not compatible
query I rowsort label-3157
SELECT + 92 + ( + + SUM ( ALL - + 19 ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT ALL MAX( + NULLIF ( + - 56, - 94 ) ) + + 0 * + 36 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL MAX ( + NULLIF ( + - 56, - 94 ) ) + + 0 * + 36 AS col2
----
-56

query I rowsort
SELECT + COALESCE ( 39, 65 ) + 82 - 1 + 26 + + + 7 * - + 54 - + 10 * - 22
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT + - 51 + + - MAX( 93 )
----
-144

skipif mysql # not compatible
query I rowsort label-3160
SELECT + - 51 + + - MAX ( 93 )
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3161
SELECT ALL + CASE + CAST( + 61 AS SIGNED ) WHEN + - 78 THEN + 30 ELSE NULL END + 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL + CASE + CAST ( + 61 AS INTEGER ) WHEN + - 78 THEN + 30 ELSE NULL END + 95 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3162
SELECT + + CASE + + 73 WHEN + ( - + CAST( NULL AS SIGNED ) ) * SUM( - + 46 ) THEN NULL WHEN - ( + 25 ) THEN + - 54 ELSE NULL END + - 54 * - 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT + + CASE + + 73 WHEN + ( - + CAST ( NULL AS INTEGER ) ) * SUM ( - + 46 ) THEN NULL WHEN - ( + 25 ) THEN + - 54 ELSE NULL END + - 54 * - 4 AS col0
----
NULL

query I rowsort
SELECT - + 71 + - + 83 AS col1
----
-154

query I rowsort
SELECT - CASE - 51 WHEN 46 THEN - 36 + 30 + + - 34 - - 97 / + 50 * + 25 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3165
SELECT ALL 81 + 9 DIV + 75 * - 16 * + 65, 16 AS col1
----
81
16

skipif mysql # not compatible
query II rowsort label-3165
SELECT ALL 81 + 9 / + 75 * - 16 * + 65, 16 AS col1
----
81
16

query I rowsort
SELECT - 51 + - + 52 * 23 AS col1
----
-1247

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT + 63 + - + COUNT( * ) col2
----
62

skipif mysql # not compatible
query I rowsort label-3167
SELECT + 63 + - + COUNT ( * ) col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT ALL - 3 * - ( - - NULLIF ( + 38, - NULLIF ( - - 90, COUNT( * ) ) - + + 33 * + 45 * + 31 + - 24 ) ) * - + 44 + - 46 + + - COUNT( * ) * - 72
----
-4990

skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL - 3 * - ( - - NULLIF ( + 38, - NULLIF ( - - 90, COUNT ( * ) ) - + + 33 * + 45 * + 31 + - 24 ) ) * - + 44 + - 46 + + - COUNT ( * ) * - 72
----
-4990

onlyif mysql # aggregate syntax: 
query II rowsort label-3169
SELECT DISTINCT + COUNT( * ) AS col0, + COUNT( * ) - - 49 + - 43 AS col2
----
1
7

skipif mysql # not compatible
query II rowsort label-3169
SELECT DISTINCT + COUNT ( * ) AS col0, + COUNT ( * ) - - 49 + - 43 AS col2
----
1
7

query I rowsort
SELECT ( + - 23 ) col2
----
-23

query II rowsort
SELECT + 98 AS col2, - 90
----
98
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3172
SELECT DISTINCT + NULLIF ( - 9, 93 - + 93 / CAST( NULL AS SIGNED ) * - 44 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-3172
SELECT DISTINCT + NULLIF ( - 9, 93 - + 93 / CAST ( NULL AS INTEGER ) * - 44 ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT ALL + 4 * - COUNT( * ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL + 4 * - COUNT ( * ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-3174
SELECT - CASE - + ( 55 ) WHEN 19 + - 47 * - 87 THEN NULL ELSE + 62 * - 66 + 67 END + + 20 * - - 34 - + 90 + 73 AS col0, + MAX( + 0 ) + - 41 AS col0
----
4688
-41

skipif mysql # not compatible
query II rowsort label-3174
SELECT - CASE - + ( 55 ) WHEN 19 + - 47 * - 87 THEN NULL ELSE + 62 * - 66 + 67 END + + 20 * - - 34 - + 90 + 73 AS col0, + MAX ( + 0 ) + - 41 AS col0
----
4688
-41

query I rowsort
SELECT DISTINCT + 86 * ( + 11 )
----
946

query I rowsort
SELECT ALL 94 * - ( + 87 ) - + + 68 AS col0
----
-8246

onlyif mysql # aggregate syntax: 
query II rowsort label-3177
SELECT - NULLIF ( - 13, + 99 ) * - + 68 + + - 83, + ( + - COUNT( * ) ) * 81 AS col2
----
-967
-81

skipif mysql # not compatible
query II rowsort label-3177
SELECT - NULLIF ( - 13, + 99 ) * - + 68 + + - 83, + ( + - COUNT ( * ) ) * 81 AS col2
----
-967
-81

query II rowsort
SELECT ALL 38 * ( - 80 ) AS col2, 75 AS col1
----
-3040
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3179
SELECT - NULLIF ( + - 15, 52 ) DIV - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3179
SELECT - NULLIF ( + - 15, 52 ) / - 98 AS col0
----
0

query I rowsort
SELECT ALL + CASE - 58 WHEN 36 THEN - 85 ELSE + 92 END AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT NULLIF ( - COUNT( DISTINCT 79 ), - COUNT( ALL 48 ) + - 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-3181
SELECT NULLIF ( - COUNT ( DISTINCT 79 ), - COUNT ( ALL 48 ) + - 57 )
----
-1

query I rowsort
SELECT ALL - 32 * - 29
----
928

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT - 43 + SUM( 46 ) * + 23 AS col0
----
1015

skipif mysql # not compatible
query I rowsort label-3183
SELECT - 43 + SUM ( 46 ) * + 23 AS col0
----
1015

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3184
SELECT - + 67 DIV + - 35 + + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3184
SELECT - + 67 / + - 35 + + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT - - 98 - + - COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-3185
SELECT - - 98 - + - COUNT ( * )
----
99

query I rowsort
SELECT - + 23 - + 97
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3187
SELECT CAST( + ( + - NULLIF ( 16, - 96 * - + 71 + - COUNT( * ) ) ) AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-3187
SELECT CAST ( + ( + - NULLIF ( 16, - 96 * - + 71 + - COUNT ( * ) ) ) AS INTEGER )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3188
SELECT - + 97 * + 36 * + + COUNT( + - CAST( + 28 AS SIGNED ) ) + + 16
----
-3476

skipif mysql # not compatible
query I rowsort label-3188
SELECT - + 97 * + 36 * + + COUNT ( + - CAST ( + 28 AS INTEGER ) ) + + 16
----
-3476

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT + 10 + - + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-3189
SELECT + 10 + - + COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT DISTINCT - ( + MIN( ALL + 67 ) ) * - 37 * - 6 - - + 70 * COUNT( * )
----
-14804

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT - ( + MIN ( ALL + 67 ) ) * - 37 * - 6 - - + 70 * COUNT ( * )
----
-14804

query I rowsort
SELECT DISTINCT + 11 * 32 + - - 80 + - 68 AS col1
----
364

query I rowsort
SELECT + 81 - - 1 col1
----
82

query I rowsort
SELECT - + ( + 71 ) AS col2
----
-71

query I rowsort
SELECT + 12 + + 94
----
106

query I rowsort
SELECT DISTINCT 75 * + - COALESCE ( - + 48, + ( 47 ) * + 43, + 24 )
----
3600

query I rowsort
SELECT + 39 * - + 83 * - 46 * + + 3
----
446706

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT ALL COUNT( * ) - + 73 - + 14 * - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL COUNT ( * ) - + 73 - + 14 * - COUNT ( * )
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3198
SELECT ALL 4 DIV 52 * - + 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL 4 / 52 * - + 53 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3199
SELECT 75 AS col1, - COUNT( * ) AS col2
----
75
-1

skipif mysql # not compatible
query II rowsort label-3199
SELECT 75 AS col1, - COUNT ( * ) AS col2
----
75
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3200
SELECT ALL COUNT( * ) - + 82 - + COALESCE ( - NULLIF ( + - 22, - 43 ), 32 * - 91 ) + - 7 + COUNT( * ) * - 87 * - CASE + 14 WHEN COALESCE ( + 99, - 87 + - 61 ) THEN - 34 + - 80 + - CASE + ( 41 ) WHEN 47 THEN ( + 88 ) WHEN + 44 + + 50 THEN MIN( 96 ) / 70 ELSE - 79 * 48 END - CASE - 95 + - COALESCE ( - 93, - CAST( 62 AS SIGNED ) ) WHEN - 35 THEN 40 - + 68 ELSE COUNT( * ) / CAST( + 45 / - ( 93 ) AS DECIMAL ) END WHEN 74 / + 45 THEN NULL END * + CASE + ( CASE + 96 WHEN 47 + + 89 THEN NULL WHEN CAST( NULL AS SIGNED ) * - AVG ( NULLIF ( + 42, + 90 ) ) THEN + 13 + COUNT( * ) ELSE NULL END ) * + COUNT( * ) WHEN 34 THEN + 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL COUNT ( * ) - + 82 - + COALESCE ( - NULLIF ( + - 22, - 43 ), 32 * - 91 ) + - 7 + COUNT ( * ) * - 87 * - CASE + 14 WHEN COALESCE ( + 99, - 87 + - 61 ) THEN - 34 + - 80 + - CASE + ( 41 ) WHEN 47 THEN ( + 88 ) WHEN + 44 + + 50 THEN MIN ( 96 ) / 70 ELSE - 79 * 48 END - CASE - 95 + - COALESCE ( - 93, - CAST ( 62 AS INTEGER ) ) WHEN - 35 THEN 40 - + 68 ELSE COUNT ( * ) / CAST ( + 45 / - ( 93 ) AS REAL ) END WHEN 74 / + 45 THEN NULL END * + CASE + ( CASE + 96 WHEN 47 + + 89 THEN NULL WHEN CAST ( NULL AS INTEGER ) * - AVG ( NULLIF ( + 42, + 90 ) ) THEN + 13 + COUNT ( * ) ELSE NULL END ) * + COUNT ( * ) WHEN 34 THEN + 6 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 39 * - 75 * 97 AS col0
----
-283725

query II rowsort
SELECT ALL 39, 85 * ( - ( 78 ) ) + - 42 AS col0
----
39
-6672

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT + COUNT( * ) * + + MAX( + - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-3203
SELECT + COUNT ( * ) * + + MAX ( + - 70 )
----
-70

query II rowsort
SELECT ALL 94, + 78 col0
----
94
78

query I rowsort
SELECT + ( - 3 ) + + + 73 * 43
----
3136

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT + SUM( ALL - - 51 ) + + 80 + - 22 AS col1
----
109

skipif mysql # not compatible
query I rowsort label-3206
SELECT + SUM ( ALL - - 51 ) + + 80 + - 22 AS col1
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3207
SELECT SUM( ALL - 67 ) * + - SUM( DISTINCT - CASE - 20 WHEN 81 THEN NULL ELSE 13 END ) * + CAST( - - 32 AS SIGNED ), - 27 AS col2
----
-27872
-27

skipif mysql # not compatible
query II rowsort label-3207
SELECT SUM ( ALL - 67 ) * + - SUM ( DISTINCT - CASE - 20 WHEN 81 THEN NULL ELSE 13 END ) * + CAST ( - - 32 AS INTEGER ), - 27 AS col2
----
-27872
-27

query II rowsort
SELECT + 4 AS col0, ( 59 ) AS col2
----
4
59

query I rowsort
SELECT DISTINCT 97 * ( 99 ) AS col2
----
9603

query II rowsort
SELECT DISTINCT - 59 AS col1, + 49
----
-59
49

query II rowsort
SELECT DISTINCT - 30 AS col1, + 19 - + - 13 AS col2
----
-30
32

query II rowsort
SELECT DISTINCT - 36 AS col2, + 94
----
-36
94

query I rowsort
SELECT 7 + - 74 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT - 58 * - - ( - COUNT( * ) ) * 3 - - 21 + + - 27 * - COUNT( * ) + + - 8 AS col0
----
214

skipif mysql # not compatible
query I rowsort label-3214
SELECT - 58 * - - ( - COUNT ( * ) ) * 3 - - 21 + + - 27 * - COUNT ( * ) + + - 8 AS col0
----
214

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT ALL - COUNT( DISTINCT 62 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL - COUNT ( DISTINCT 62 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3216
SELECT + 33 * - CAST( 19 AS SIGNED ) + - 0 + + - 83
----
-710

skipif mysql # not compatible
query I rowsort label-3216
SELECT + 33 * - CAST ( 19 AS INTEGER ) + - 0 + + - 83
----
-710

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3217
SELECT ALL - 58 + NULLIF ( + 10, + CAST( NULL AS DECIMAL ) ) - 44 + + - 79 AS col2
----
-171

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL - 58 + NULLIF ( + 10, + CAST ( NULL AS REAL ) ) - 44 + + - 79 AS col2
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3218
SELECT CAST( + - 68 AS SIGNED ) + + 44 - + 13 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-3218
SELECT CAST ( + - 68 AS INTEGER ) + + 44 - + 13 AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3219
SELECT - ( - - COUNT( + 35 ) ) * + MAX( - - 97 ) * - COALESCE ( + 31, 36, 2 ) - - CAST( NULL AS SIGNED ) * + 0 * - - MAX( ALL + COALESCE ( - - 18, - 66 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3219
SELECT - ( - - COUNT ( + 35 ) ) * + MAX ( - - 97 ) * - COALESCE ( + 31, 36, 2 ) - - CAST ( NULL AS INTEGER ) * + 0 * - - MAX ( ALL + COALESCE ( - - 18, - 66 ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT ALL + CASE + + 63 WHEN 99 THEN NULL WHEN - + 51 + + - COUNT( * ) THEN SUM( DISTINCT + 24 ) WHEN + + 85 THEN NULL ELSE NULL END * 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL + CASE + + 63 WHEN 99 THEN NULL WHEN - + 51 + + - COUNT ( * ) THEN SUM ( DISTINCT + 24 ) WHEN + + 85 THEN NULL ELSE NULL END * 48 AS col0
----
NULL

query I rowsort
SELECT ALL 94 + - 73 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT ALL COUNT( ALL 46 ) + - - 13 col0
----
14

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL COUNT ( ALL 46 ) + - - 13 col0
----
14

query II rowsort
SELECT DISTINCT + 39 + 31 + - 77 * + 37 + - - 25 * + 16 AS col0, - 36 col1
----
-2379
-36

query I rowsort
SELECT ALL + 6 * + 78 * - 76 AS col2
----
-35568

query I rowsort
SELECT DISTINCT - 48 * + 23 AS col1
----
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT SUM( 35 ) + SUM( 62 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3226
SELECT SUM ( 35 ) + SUM ( 62 ) AS col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3227
SELECT ALL + 15 + - CAST( + - 8 AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL + 15 + - CAST ( + - 8 AS INTEGER )
----
23

query I rowsort
SELECT ALL - 56 + + + 95 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT + COUNT( * ) * + + 19 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-3229
SELECT + COUNT ( * ) * + + 19 AS col2
----
19

query I rowsort
SELECT - 27 + - - 19
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3231
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1, + ( + 82 ) + + 59 AS col1
----
NULL
141

skipif mysql # not compatible
query II rowsort label-3231
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1, + ( + 82 ) + + 59 AS col1
----
NULL
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3232
SELECT - + 87, COUNT( * ) DIV + - CAST( - - 42 AS SIGNED ) - + 93 + + 27 * - 12 * 45 AS col0
----
-87
-14673

skipif mysql # not compatible
query II rowsort label-3232
SELECT - + 87, COUNT ( * ) / + - CAST ( - - 42 AS INTEGER ) - + 93 + + 27 * - 12 * 45 AS col0
----
-87
-14673

onlyif mysql # aggregate syntax: 
query II rowsort label-3233
SELECT 31 AS col2, 85 / - CASE 28 WHEN - 37 THEN - 34 + - 65 - + - 3 * COUNT( * ) WHEN - COUNT( * ) + - NULLIF ( 30, + + 90 - - 90 ) * - + 67 + - 78 THEN NULL WHEN - + 65 * + 10 * - 56 * + 86 THEN NULL END
----
31
NULL

skipif mysql # not compatible
query II rowsort label-3233
SELECT 31 AS col2, 85 / - CASE 28 WHEN - 37 THEN - 34 + - 65 - + - 3 * COUNT ( * ) WHEN - COUNT ( * ) + - NULLIF ( 30, + + 90 - - 90 ) * - + 67 + - 78 THEN NULL WHEN - + 65 * + 10 * - 56 * + 86 THEN NULL END
----
31
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3234
SELECT ALL - MAX( DISTINCT - CAST( - 64 AS SIGNED ) ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL - MAX ( DISTINCT - CAST ( - 64 AS INTEGER ) ) AS col0
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-3235
SELECT - 68 * + MAX( ALL + 31 ) + - 97 AS col2, COUNT( * ) AS col0
----
-2205
1

skipif mysql # not compatible
query II rowsort label-3235
SELECT - 68 * + MAX ( ALL + 31 ) + - 97 AS col2, COUNT ( * ) AS col0
----
-2205
1

query I rowsort
SELECT ALL 34 * + 68 AS col0
----
2312

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT 63 + + 47 - - CASE - NULLIF ( 35, + 62 - 18 ) WHEN CASE 36 WHEN + NULLIF ( - 47, - - ( 82 ) ) THEN + + 76 - - - COUNT( * ) ELSE - 32 END THEN + 23 * NULLIF ( + 26, - + COUNT( * ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3237
SELECT 63 + + 47 - - CASE - NULLIF ( 35, + 62 - 18 ) WHEN CASE 36 WHEN + NULLIF ( - 47, - - ( 82 ) ) THEN + + 76 - - - COUNT ( * ) ELSE - 32 END THEN + 23 * NULLIF ( + 26, - + COUNT ( * ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT ALL + COALESCE ( MAX( ALL + - 69 ), + - 89 ) - 9 + + - 37 AS col0
----
-115

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL + COALESCE ( MAX ( ALL + - 69 ), + - 89 ) - 9 + + - 37 AS col0
----
-115

query I rowsort
SELECT DISTINCT + 21 * - 91 * 69 AS col1
----
-131859

query II rowsort
SELECT ALL + 3 * + 18, 80 - - 72 * - 90 * - 66 AS col2
----
54
427760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3241
SELECT 98 + - + MIN( DISTINCT + ( - - 75 ) ) + + 81 * + COALESCE ( + 40, - 30 DIV 83 + + ( - 40 ) * - 15 - + + 57 * + 28 * 31 + + 68 + + 61 + - NULLIF ( + CASE + + 46 WHEN + ( + - 60 ) DIV 65 - - CASE 5 WHEN + 31 * - 30 THEN 1 * 76 - CAST( NULL AS SIGNED ) ELSE 69 - + SUM( + 71 ) END THEN NULL WHEN - ( 97 ) + SUM( DISTINCT + 50 ) THEN NULL ELSE 0 END, ( - 46 ) ) ) * 88 * 86
----
24520343

skipif mysql # not compatible
query I rowsort label-3241
SELECT 98 + - + MIN ( DISTINCT + ( - - 75 ) ) + + 81 * + COALESCE ( + 40, - 30 / 83 + + ( - 40 ) * - 15 - + + 57 * + 28 * 31 + + 68 + + 61 + - NULLIF ( + CASE + + 46 WHEN + ( + - 60 ) / 65 - - CASE 5 WHEN + 31 * - 30 THEN 1 * 76 - CAST ( NULL AS INTEGER ) ELSE 69 - + SUM ( + 71 ) END THEN NULL WHEN - ( 97 ) + SUM ( DISTINCT + 50 ) THEN NULL ELSE 0 END, ( - 46 ) ) ) * 88 * 86
----
24520343

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3242
SELECT SUM( + NULLIF ( + CASE - - 43 WHEN 32 THEN + 38 + ( + 33 ) ELSE - - 35 * - CAST( NULL AS DECIMAL ) * 65 / - ( + 19 ) END, + 84 ) ) / 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3242
SELECT SUM ( + NULLIF ( + CASE - - 43 WHEN 32 THEN + 38 + ( + 33 ) ELSE - - 35 * - CAST ( NULL AS REAL ) * 65 / - ( + 19 ) END, + 84 ) ) / 96 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3243
SELECT 88 + + 36 - 6 / ( 39 ) * 39 - + CAST( - 24 AS SIGNED ) + - ( CAST( NULL AS SIGNED ) ) * + 18 * MIN( 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT 88 + + 36 - 6 / ( 39 ) * 39 - + CAST ( - 24 AS INTEGER ) + - ( CAST ( NULL AS INTEGER ) ) * + 18 * MIN ( 61 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3244
SELECT 91 DIV 93 * - + 60 * - 41
----
0

skipif mysql # not compatible
query I rowsort label-3244
SELECT 91 / 93 * - + 60 * - 41
----
0

query I rowsort
SELECT ALL 20 * 67
----
1340

onlyif mysql # DIV for integer division: 
query II rowsort label-3246
SELECT ALL - 68 DIV - - 41 AS col2, 17 - 76 + - - 98 DIV 17 + + 41 + + 17
----
-1
4

skipif mysql # not compatible
query II rowsort label-3246
SELECT ALL - 68 / - - 41 AS col2, 17 - 76 + - - 98 / 17 + + 41 + + 17
----
-1
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3247
SELECT ALL COALESCE ( - - 20, - 42, + + 1 DIV + + 14 + - ( COUNT( * ) ) * + + 34 ) * + 16
----
320

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL COALESCE ( - - 20, - 42, + + 1 / + + 14 + - ( COUNT ( * ) ) * + + 34 ) * + 16
----
320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3248
SELECT 81 DIV - - ( + + ( COUNT( * ) ) ) col0
----
81

skipif mysql # not compatible
query I rowsort label-3248
SELECT 81 / - - ( + + ( COUNT ( * ) ) ) col0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3249
SELECT 17 DIV + - 3 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3249
SELECT 17 / + - 3 AS col1
----
-5

query I rowsort
SELECT ALL 84 + + 58 * - 9 col0
----
-438

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT ( - COUNT( * ) ) * + - 2
----
2

skipif mysql # not compatible
query I rowsort label-3251
SELECT ( - COUNT ( * ) ) * + - 2
----
2

query I rowsort
SELECT DISTINCT 19 + + + AVG ( - + CASE + + 67 WHEN + 91 * 68 THEN NULL WHEN + 53 THEN - 43 * 61 + 43 * - 64 END ) AS col0
----
NULL

query I rowsort
SELECT ALL 26 * + - 79 * - 77 AS col2
----
158158

query I rowsort
SELECT 10 * 93 AS col1
----
930

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT ALL 83 + + NULLIF ( + COUNT( * ), - 13 + ( 68 ) )
----
84

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL 83 + + NULLIF ( + COUNT ( * ), - 13 + ( 68 ) )
----
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3256
SELECT ALL - CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL - CAST ( NULL AS REAL ) * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT ALL + COUNT( * ) + + 99
----
100

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL + COUNT ( * ) + + 99
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT DISTINCT + + ( COUNT( * ) ) + - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT + + ( COUNT ( * ) ) + - + COUNT ( * )
----
0

query I rowsort
SELECT 18 + + + 64 + - 38 AS col2
----
44

query I rowsort
SELECT DISTINCT 15 + + + 83 AS col0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3261
SELECT ALL + 55 * 41 DIV - - 73 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL + 55 * 41 / - - 73 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT + - ( SUM( + 95 ) )
----
-95

skipif mysql # not compatible
query I rowsort label-3262
SELECT + - ( SUM ( + 95 ) )
----
-95

query I rowsort
SELECT ALL + 86 + - + 21
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3264
SELECT - 16 - + CAST( NULL AS SIGNED ) col2, + 67 * 11 AS col1
----
NULL
737

skipif mysql # not compatible
query II rowsort label-3264
SELECT - 16 - + CAST ( NULL AS INTEGER ) col2, + 67 * 11 AS col1
----
NULL
737

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3265
SELECT 56 * - - 92 * + 18 * - CAST( + + 93 AS SIGNED )
----
-8624448

skipif mysql # not compatible
query I rowsort label-3265
SELECT 56 * - - 92 * + 18 * - CAST ( + + 93 AS INTEGER )
----
-8624448

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ALL 55 * - - COUNT( * ) + - 4 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL 55 * - - COUNT ( * ) + - 4 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ( 47 ) + - + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-3267
SELECT ( 47 ) + - + COUNT ( * )
----
46

query I rowsort
SELECT ALL + 34 * 12 * 6
----
2448

onlyif mysql # aggregate syntax: 
query II rowsort label-3269
SELECT ALL - 59 * + 49 AS col1, - 68 + COUNT( * )
----
-2891
-67

skipif mysql # not compatible
query II rowsort label-3269
SELECT ALL - 59 * + 49 AS col1, - 68 + COUNT ( * )
----
-2891
-67

query II rowsort
SELECT DISTINCT 63 * + - ( 22 ) AS col0, 26 AS col2
----
-1386
26

query I rowsort
SELECT ALL 22 * 17 AS col1
----
374

query I rowsort
SELECT 82 * - 79 * 88 AS col2
----
-570064

query I rowsort
SELECT - COALESCE ( - 58, - ( + - 72 ), 38 )
----
58

query I rowsort
SELECT 92 * - + 26 AS col2
----
-2392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3275
SELECT - CAST( NULL AS SIGNED ) * + + 12 * + + 57 * 73 * - 78 * + ( - + CASE + 14 WHEN + 70 * + - 74 + + 80 THEN + CAST( NULL AS SIGNED ) WHEN 96 THEN NULL END ), + 47 * - - MAX( + 80 ) + 24 AS col0
----
NULL
3784

skipif mysql # not compatible
query II rowsort label-3275
SELECT - CAST ( NULL AS INTEGER ) * + + 12 * + + 57 * 73 * - 78 * + ( - + CASE + 14 WHEN + 70 * + - 74 + + 80 THEN + CAST ( NULL AS INTEGER ) WHEN 96 THEN NULL END ), + 47 * - - MAX ( + 80 ) + 24 AS col0
----
NULL
3784

query I rowsort
SELECT ALL + 72 * - + 91
----
-6552

onlyif mysql # DIV for integer division: 
query II rowsort label-3277
SELECT - 48 AS col0, + 3 * - 9 DIV - 73
----
-48
0

skipif mysql # not compatible
query II rowsort label-3277
SELECT - 48 AS col0, + 3 * - 9 / - 73
----
-48
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3278
SELECT ALL - 73 + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL - 73 + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + NULLIF ( - 53, - + NULLIF ( NULLIF ( - - 72, - + 10 * + 86 + - 4 / 53 ), - + 38 ) ) + 4 AS col0, 67 AS col2
----
-49
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3280
SELECT - CASE + COUNT( * ) WHEN + CAST( NULL AS DECIMAL ) * - 9 * + 0 THEN + 94 + 83 + + 34 WHEN - - 32 THEN + - SUM( ALL - 43 ) END + + SUM( 37 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3280
SELECT - CASE + COUNT ( * ) WHEN + CAST ( NULL AS REAL ) * - 9 * + 0 THEN + 94 + 83 + + 34 WHEN - - 32 THEN + - SUM ( ALL - 43 ) END + + SUM ( 37 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3281
SELECT - 67 + 8 + - - 22 AS col0, 85 + - SUM( ALL + 15 ) DIV COUNT( * ) + 24 + COALESCE ( + CASE - 48 WHEN + 72 THEN - ( + - COUNT( * ) ) * + - MAX( DISTINCT CAST( - + 75 AS SIGNED ) ) + 86 END, - 26 ) + - 84 * + 23, + - 98 col0
----
-37
-1864
-98

skipif mysql # not compatible
query III rowsort label-3281
SELECT - 67 + 8 + - - 22 AS col0, 85 + - SUM ( ALL + 15 ) / COUNT ( * ) + 24 + COALESCE ( + CASE - 48 WHEN + 72 THEN - ( + - COUNT ( * ) ) * + - MAX ( DISTINCT CAST ( - + 75 AS INTEGER ) ) + 86 END, - 26 ) + - 84 * + 23, + - 98 col0
----
-37
-1864
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3282
SELECT - 50 * - + NULLIF ( - 59, - 94 ) * + 52 + + 19 * - CAST( + 77 AS SIGNED ) AS col1
----
-154863

skipif mysql # not compatible
query I rowsort label-3282
SELECT - 50 * - + NULLIF ( - 59, - 94 ) * + 52 + + 19 * - CAST ( + 77 AS INTEGER ) AS col1
----
-154863

query II rowsort
SELECT 87, + 22 col0
----
87
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3284
SELECT CAST( - 71 AS SIGNED ) * COUNT( * ) * + 70 + 37
----
-4933

skipif mysql # not compatible
query I rowsort label-3284
SELECT CAST ( - 71 AS INTEGER ) * COUNT ( * ) * + 70 + 37
----
-4933

query II rowsort
SELECT ALL + + 81 col1, - 3
----
81
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3286
SELECT DISTINCT - - 7 DIV + + 82
----
0

skipif mysql # not compatible
query I rowsort label-3286
SELECT DISTINCT - - 7 / + + 82
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3287
SELECT + 34 + 96 DIV - ( + 58 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-3287
SELECT + 34 + 96 / - ( + 58 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT + 3 * - 39 * + + 48 + MAX( ALL + 95 ) AS col1
----
-5521

skipif mysql # not compatible
query I rowsort label-3288
SELECT + 3 * - 39 * + + 48 + MAX ( ALL + 95 ) AS col1
----
-5521

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT ALL + 98 * - CASE + - CASE + CASE + 46 WHEN 48 - + AVG ( DISTINCT + - 94 ) + 23 + NULLIF ( - 61, + NULLIF ( - 21, - 16 ) * - 17 + - 52 / - 25 ) THEN - - 50 WHEN + SUM( DISTINCT - 74 ) THEN NULL ELSE + 48 / - 87 END WHEN - CASE + 44 WHEN 71 THEN ( 61 ) WHEN 24 THEN + 2 + 83 ELSE - 55 END THEN 93 WHEN + ( CASE 9 WHEN + 71 + + SUM( - 40 + - 63 * 15 ) THEN 70 + 29 * + SUM( ALL - 68 + 22 ) ELSE NULL END ) THEN AVG ( ALL 63 ) END WHEN 11 + + 9 THEN 10 + AVG ( ALL + 4 ) WHEN - ( 57 ) * 26 THEN - 99 ELSE NULL END - - 42 / 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL + 98 * - CASE + - CASE + CASE + 46 WHEN 48 - + AVG ( DISTINCT + - 94 ) + 23 + NULLIF ( - 61, + NULLIF ( - 21, - 16 ) * - 17 + - 52 / - 25 ) THEN - - 50 WHEN + SUM ( DISTINCT - 74 ) THEN NULL ELSE + 48 / - 87 END WHEN - CASE + 44 WHEN 71 THEN ( 61 ) WHEN 24 THEN + 2 + 83 ELSE - 55 END THEN 93 WHEN + ( CASE 9 WHEN + 71 + + SUM ( - 40 + - 63 * 15 ) THEN 70 + 29 * + SUM ( ALL - 68 + 22 ) ELSE NULL END ) THEN AVG ( ALL 63 ) END WHEN 11 + + 9 THEN 10 + AVG ( ALL + 4 ) WHEN - ( 57 ) * 26 THEN - 99 ELSE NULL END - - 42 / 14 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT - 86 * 17 * + ( + 59 ) + - 39 * 21 * - + COUNT( * )
----
-85439

skipif mysql # not compatible
query I rowsort label-3290
SELECT - 86 * 17 * + ( + 59 ) + - 39 * 21 * - + COUNT ( * )
----
-85439

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT + SUM( ALL - + 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-3291
SELECT + SUM ( ALL - + 72 )
----
-72

query I rowsort
SELECT - 0 + - - 18 * + - 51
----
-918

query I rowsort
SELECT 29 * + 11 - - - 69 + 63 + - 64 * - 50 * + 5 AS col2
----
16313

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT DISTINCT COUNT( * ) * - + 34
----
-34

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT COUNT ( * ) * - + 34
----
-34

query I rowsort
SELECT + 14 + 63
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3296
SELECT DISTINCT + - CAST( - 62 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-3296
SELECT DISTINCT + - CAST ( - 62 AS INTEGER )
----
62

query II rowsort
SELECT + 22 AS col2, + 93 + - 94
----
22
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT + MAX( ALL + 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3298
SELECT + MAX ( ALL + 61 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-3299
SELECT - COALESCE ( 37, + 44, - + 87 - - - 45 * - 31 + 34 - + + COUNT( - + 0 ) * 45 * + 40 + + 56 + - ( 22 ) + - + 80 * + + 23 * 25 * + + 9 - - 70 ) AS col2, 21 AS col0
----
-37
21

skipif mysql # not compatible
query II rowsort label-3299
SELECT - COALESCE ( 37, + 44, - + 87 - - - 45 * - 31 + 34 - + + COUNT ( - + 0 ) * 45 * + 40 + + 56 + - ( 22 ) + - + 80 * + + 23 * 25 * + + 9 - - 70 ) AS col2, 21 AS col0
----
-37
21

query I rowsort
SELECT + 69 * + 86 * - 52 * 34
----
-10491312

query I rowsort
SELECT + 81 + 14 AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT SUM( ALL - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-3302
SELECT SUM ( ALL - 6 )
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-3303
SELECT ALL MAX( ALL 42 ) AS col0, 59
----
42
59

skipif mysql # not compatible
query II rowsort label-3303
SELECT ALL MAX ( ALL 42 ) AS col0, 59
----
42
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3304
SELECT ALL MIN( ALL - CAST( - 13 AS SIGNED ) )
----
13

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL MIN ( ALL - CAST ( - 13 AS INTEGER ) )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3305
SELECT + COUNT( * ) DIV - 47 col2, - 15 * + - 75
----
0
1125

skipif mysql # not compatible
query II rowsort label-3305
SELECT + COUNT ( * ) / - 47 col2, - 15 * + - 75
----
0
1125

query II rowsort
SELECT DISTINCT 56 * - + 5 AS col0, + 40 AS col2
----
-280
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT ALL - ( MIN( ALL + 92 ) ) + - 77
----
-169

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL - ( MIN ( ALL + 92 ) ) + - 77
----
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT ALL 9 + - - 81 + - - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL 9 + - - 81 + - - COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT ALL MIN( DISTINCT + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL MIN ( DISTINCT + 49 )
----
49

query I rowsort
SELECT - 79 + 31 AS col1
----
-48

query I rowsort
SELECT DISTINCT + 23 + + 91 + + ( + 58 ) + - 9 - - 50 * + 90 * + 18 AS col2
----
81163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3312
SELECT ALL + COUNT( * ) + 33 * 76 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL + COUNT ( * ) + 33 * 76 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + + 54, - NULLIF ( + + 84, + 50 * - 46 - 33 ) ) + - - 98 AS col1
----
44

query I rowsort
SELECT ALL - 88 * - 38 * 8 AS col2
----
26752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3315
SELECT DISTINCT - CAST( - - 96 AS SIGNED ) * - 42 AS col0
----
4032

skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT - CAST ( - - 96 AS INTEGER ) * - 42 AS col0
----
4032

query I rowsort
SELECT - - 33 * - 22 AS col2
----
-726

query I rowsort
SELECT ALL - 27 * + 51 col2
----
-1377

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT + - COUNT( DISTINCT + 56 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3318
SELECT + - COUNT ( DISTINCT + 56 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT + + CASE + 81 WHEN - 99 * - COUNT( * ) - - - ( - - 30 ) THEN NULL ELSE ( 68 ) + 99 * 44 END + - MAX( DISTINCT - 86 )
----
4510

skipif mysql # not compatible
query I rowsort label-3319
SELECT + + CASE + 81 WHEN - 99 * - COUNT ( * ) - - - ( - - 30 ) THEN NULL ELSE ( 68 ) + 99 * 44 END + - MAX ( DISTINCT - 86 )
----
4510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3320
SELECT ALL - CASE COUNT( * ) WHEN + 93 THEN NULL WHEN - + 92 + - - ( + 15 ) THEN NULL ELSE - 83 DIV + 29 END DIV 71 + + - 75 - + 63 * + NULLIF ( 60, - + COUNT( * ) ) AS col0
----
-3855

skipif mysql # not compatible
query I rowsort label-3320
SELECT ALL - CASE COUNT ( * ) WHEN + 93 THEN NULL WHEN - + 92 + - - ( + 15 ) THEN NULL ELSE - 83 / + 29 END / 71 + + - 75 - + 63 * + NULLIF ( 60, - + COUNT ( * ) ) AS col0
----
-3855

query I rowsort
SELECT - 7 * - + ( - 5 ) AS col1
----
-35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3322
SELECT DISTINCT - 45 DIV + CAST( + 64 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT - 45 / + CAST ( + 64 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3323
SELECT + + 6 + + 97 + 23 DIV 12 + - ( + COUNT( * ) ) AS col1
----
103

skipif mysql # not compatible
query I rowsort label-3323
SELECT + + 6 + + 97 + 23 / 12 + - ( + COUNT ( * ) ) AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT - - COALESCE ( + 76, - - 17 * - 26 + + 64 + + 70 - - + 89 * + COUNT( * ) + - + 96 - COALESCE ( 5, ( - 20 ) ) * - 93 * + 19 + - - 39 * + + 95 - + - SUM( DISTINCT + 47 ) ) * + ( - 3 ) - - 41 * + 99 AS col0
----
3831

skipif mysql # not compatible
query I rowsort label-3324
SELECT - - COALESCE ( + 76, - - 17 * - 26 + + 64 + + 70 - - + 89 * + COUNT ( * ) + - + 96 - COALESCE ( 5, ( - 20 ) ) * - 93 * + 19 + - - 39 * + + 95 - + - SUM ( DISTINCT + 47 ) ) * + ( - 3 ) - - 41 * + 99 AS col0
----
3831

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3325
SELECT - + 62 - 45 * - 33 + + 24, - CAST( NULL AS SIGNED ) * - 59 AS col2
----
1447
NULL

skipif mysql # not compatible
query II rowsort label-3325
SELECT - + 62 - 45 * - 33 + + 24, - CAST ( NULL AS INTEGER ) * - 59 AS col2
----
1447
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3326
SELECT + + SUM( DISTINCT + 59 ) DIV - - COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-3326
SELECT + + SUM ( DISTINCT + 59 ) / - - COUNT ( * ) AS col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3327
SELECT - CASE + 70 WHEN - + 59 THEN + 95 / - 4 + + 58 + 34 END * 65 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3327
SELECT - CASE + 70 WHEN - + 59 THEN + 95 / - 4 + + 58 + 34 END * 65 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT 8 + - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-3328
SELECT 8 + - COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3329
SELECT DISTINCT 69 + + - COUNT( * ) + + 63, - 22 AS col2
----
131
-22

skipif mysql # not compatible
query II rowsort label-3329
SELECT DISTINCT 69 + + - COUNT ( * ) + + 63, - 22 AS col2
----
131
-22

query I rowsort
SELECT DISTINCT - 99 * + 10
----
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL 4 + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL 4 + COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-3332
SELECT ALL - 81 * - CASE + 33 WHEN - 44 + - 13 THEN 77 + 53 WHEN + 93 * 44 + - + 77 THEN NULL END AS col0, ( + + NULLIF ( COUNT( * ), 81 ) ) + + + 13 + - 95
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-3332
SELECT ALL - 81 * - CASE + 33 WHEN - 44 + - 13 THEN 77 + 53 WHEN + 93 * 44 + - + 77 THEN NULL END AS col0, ( + + NULLIF ( COUNT ( * ), 81 ) ) + + + 13 + - 95
----
NULL
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT CASE + + 26 WHEN ( + - 59 ) THEN NULL ELSE + COUNT( * ) - 94 END - 49 AS col1
----
-142

skipif mysql # not compatible
query I rowsort label-3333
SELECT CASE + + 26 WHEN ( + - 59 ) THEN NULL ELSE + COUNT ( * ) - 94 END - 49 AS col1
----
-142

query II rowsort
SELECT - 45, 39 - - 25 AS col2
----
-45
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3335
SELECT 36 * 46 DIV + 29 col2
----
57

skipif mysql # not compatible
query I rowsort label-3335
SELECT 36 * 46 / + 29 col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3336
SELECT DISTINCT MAX( DISTINCT + - 52 ) DIV - 7
----
7

skipif mysql # not compatible
query I rowsort label-3336
SELECT DISTINCT MAX ( DISTINCT + - 52 ) / - 7
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT 22 - + 67 + - - SUM( ALL - + 53 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-3337
SELECT 22 - + 67 + - - SUM ( ALL - + 53 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT COALESCE ( MIN( ALL + - 52 ), - 75 * 59 ) * ( 64 ) AS col0
----
-3328

skipif mysql # not compatible
query I rowsort label-3338
SELECT COALESCE ( MIN ( ALL + - 52 ), - 75 * 59 ) * ( 64 ) AS col0
----
-3328

onlyif mysql # DIV for integer division: 
query I rowsort label-3339
SELECT ( + - 68 ) DIV + - 58 + + - 65 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-3339
SELECT ( + - 68 ) / + - 58 + + - 65 AS col2
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3340
SELECT ALL NULLIF ( - 94, + 71 ) - + CAST( NULL AS SIGNED ) * + - 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL NULLIF ( - 94, + 71 ) - + CAST ( NULL AS INTEGER ) * + - 91 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3341
SELECT CAST( + SUM( - CAST( NULL AS SIGNED ) ) AS DECIMAL ) col0, 37
----
NULL
37

skipif mysql # not compatible
query II rowsort label-3341
SELECT CAST ( + SUM ( - CAST ( NULL AS INTEGER ) ) AS REAL ) col0, 37
----
NULL
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3342
SELECT ALL - ( + 71 ) - 25 + + 2 * + 10 * + COALESCE ( - NULLIF ( - 54, AVG ( + 74 ) ), + - 22 DIV - - 81 * - 83 ) * - - 34 * 36 + - COUNT( * ), - 44 AS col1
----
1321823
-44

skipif mysql # not compatible
query II rowsort label-3342
SELECT ALL - ( + 71 ) - 25 + + 2 * + 10 * + COALESCE ( - NULLIF ( - 54, AVG ( + 74 ) ), + - 22 / - - 81 * - 83 ) * - - 34 * 36 + - COUNT ( * ), - 44 AS col1
----
1321823
-44

query I rowsort
SELECT 26 + - 4
----
22

query I rowsort
SELECT + 46 * - - 97 AS col1
----
4462

onlyif mysql # DIV for integer division: 
query I rowsort label-3345
SELECT 16 DIV + 13 + 85
----
86

skipif mysql # not compatible
query I rowsort label-3345
SELECT 16 / + 13 + 85
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3346
SELECT COALESCE ( - MAX( DISTINCT + CASE 93 WHEN + - 73 THEN - 73 ELSE - + 83 * - + ( + 68 ) END ), - 75, COALESCE ( + 35, - 40 + + - 50, + NULLIF ( + NULLIF ( - + CAST( + COUNT( * ) AS SIGNED ), - 4 * 95 + + 54 / + SUM( DISTINCT 77 ) ), + COUNT( * ) ) * 38 ) * - 20 + + 25 )
----
-5644

skipif mysql # not compatible
query I rowsort label-3346
SELECT COALESCE ( - MAX ( DISTINCT + CASE 93 WHEN + - 73 THEN - 73 ELSE - + 83 * - + ( + 68 ) END ), - 75, COALESCE ( + 35, - 40 + + - 50, + NULLIF ( + NULLIF ( - + CAST ( + COUNT ( * ) AS INTEGER ), - 4 * 95 + + 54 / + SUM ( DISTINCT 77 ) ), + COUNT ( * ) ) * 38 ) * - 20 + + 25 )
----
-5644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3347
SELECT - + 18 * - + CASE + COUNT( * ) WHEN - MAX( 38 ) * - CASE - 99 WHEN + 90 THEN - COUNT( * ) WHEN 67 * 26 / 61 / + 81 * - - 15 THEN NULL WHEN COUNT( * ) THEN NULL END THEN NULL ELSE 26 END * CAST( NULL AS SIGNED ) + 36 * - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3347
SELECT - + 18 * - + CASE + COUNT ( * ) WHEN - MAX ( 38 ) * - CASE - 99 WHEN + 90 THEN - COUNT ( * ) WHEN 67 * 26 / 61 / + 81 * - - 15 THEN NULL WHEN COUNT ( * ) THEN NULL END THEN NULL ELSE 26 END * CAST ( NULL AS INTEGER ) + 36 * - 3
----
NULL

query I rowsort
SELECT DISTINCT + 54 - - 90 AS col0
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-3349
SELECT 43 DIV 77 * + 45 * + 58 * + 57 + - - ( 88 )
----
88

skipif mysql # not compatible
query I rowsort label-3349
SELECT 43 / 77 * + 45 * + 58 * + 57 + - - ( 88 )
----
88

query I rowsort
SELECT ALL - - 2 * 71
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT + ( + MIN( + 30 ) ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-3351
SELECT + ( + MIN ( + 30 ) ) AS col2
----
30

query I rowsort
SELECT ALL + + 35 * - 83
----
-2905

query I rowsort
SELECT + - ( - 2 ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3354
SELECT CAST( + + CASE COUNT( * ) WHEN + COUNT( ALL 54 ) THEN - AVG ( DISTINCT + 28 ) WHEN - CAST( NULL AS SIGNED ) * + 44 + + - 40 - 56 THEN NULL END AS SIGNED ) * 97 - + - 31 * + 96 AS col2
----
260

skipif mysql # not compatible
query I rowsort label-3354
SELECT CAST ( + + CASE COUNT ( * ) WHEN + COUNT ( ALL 54 ) THEN - AVG ( DISTINCT + 28 ) WHEN - CAST ( NULL AS INTEGER ) * + 44 + + - 40 - 56 THEN NULL END AS INTEGER ) * 97 - + - 31 * + 96 AS col2
----
260

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT ALL + - 10 * + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL + - 10 * + COUNT ( * )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3356
SELECT CAST( NULL AS SIGNED ) + - 32 * COUNT( * ) * 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3356
SELECT CAST ( NULL AS INTEGER ) + - 32 * COUNT ( * ) * 16 AS col1
----
NULL

query I rowsort
SELECT - + 38 * + - 67 + - 21 AS col2
----
2525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3358
SELECT 44 DIV COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-3358
SELECT 44 / COUNT ( * ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3359
SELECT - 77 * - COUNT( DISTINCT 2 ) * + 85 + - 16 AS col0, 61
----
6529
61

skipif mysql # not compatible
query II rowsort label-3359
SELECT - 77 * - COUNT ( DISTINCT 2 ) * + 85 + - 16 AS col0, 61
----
6529
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT DISTINCT + COUNT( * ) + 0 + - COALESCE ( - 75, 35 * + 86 ) - + 91
----
-15

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT + COUNT ( * ) + 0 + - COALESCE ( - 75, 35 * + 86 ) - + 91
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3361
SELECT MAX( DISTINCT - 8 ) DIV + + 64
----
0

skipif mysql # not compatible
query I rowsort label-3361
SELECT MAX ( DISTINCT - 8 ) / + + 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT DISTINCT + 41 + + 60 * + - COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-3362
SELECT DISTINCT + 41 + + 60 * + - COUNT ( * ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT ALL + COUNT( * ) + - + 31 + + MAX( - 27 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL + COUNT ( * ) + - + 31 + + MAX ( - 27 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT 81 * + + CASE 46 WHEN COUNT( + 24 ) THEN - 20 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3364
SELECT 81 * + + CASE 46 WHEN COUNT ( + 24 ) THEN - 20 ELSE NULL END
----
NULL

query II rowsort
SELECT 53 AS col1, - 89 + 51 * + 6 AS col1
----
53
217

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3366
SELECT ALL + NULLIF ( - - 39, - COUNT( DISTINCT + 76 ) ) DIV - COUNT( * ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL + NULLIF ( - - 39, - COUNT ( DISTINCT + 76 ) ) / - COUNT ( * ) AS col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3367
SELECT 88 + MAX( 0 ) DIV - MIN( - 35 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-3367
SELECT 88 + MAX ( 0 ) / - MIN ( - 35 ) AS col2
----
88

query II rowsort
SELECT + 42 AS col2, 41 + - 14 col0
----
42
27

query I rowsort
SELECT 97 + 56 AS col2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT ALL 55 - - + MAX( ALL + + 47 ) + + 56 * - - 6 + - - 66 + + 10 - + 24 * + 44
----
-542

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL 55 - - + MAX ( ALL + + 47 ) + + 56 * - - 6 + - - 66 + + 10 - + 24 * + 44
----
-542

query I rowsort
SELECT ALL + 51 * - 58
----
-2958

query I rowsort
SELECT ALL - 78 - - 66 AS col0
----
-12

onlyif mysql # DIV for integer division: 
query III rowsort label-3373
SELECT 81 AS col0, + 10 AS col0, - 9 DIV + 98 * - - 80 * 85
----
81
10
0

skipif mysql # not compatible
query III rowsort label-3373
SELECT 81 AS col0, + 10 AS col0, - 9 / + 98 * - - 80 * 85
----
81
10
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3374
SELECT + CAST( NULL AS SIGNED ), - 35 + - ( + COUNT( * ) ) * + COUNT( * ) + CAST( NULL AS SIGNED ) + + + 26 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3374
SELECT + CAST ( NULL AS INTEGER ), - 35 + - ( + COUNT ( * ) ) * + COUNT ( * ) + CAST ( NULL AS INTEGER ) + + + 26 AS col1
----
NULL
NULL

query II rowsort
SELECT ALL + 97 AS col1, + 48 col2
----
97
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT - COUNT( * ) + + COUNT( * ) * + + 9 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-3376
SELECT - COUNT ( * ) + + COUNT ( * ) * + + 9 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT NULLIF ( - - 92, + COUNT( * ) - - 31 ) * + + 64 AS col0
----
5888

skipif mysql # not compatible
query I rowsort label-3377
SELECT NULLIF ( - - 92, + COUNT ( * ) - - 31 ) * + + 64 AS col0
----
5888

query I rowsort
SELECT ALL ( + 38 ) - - 56
----
94

query I rowsort
SELECT DISTINCT - NULLIF ( + 58, - 48 + 22 * - - 96 + 93 ) AS col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3380
SELECT DISTINCT - CAST( + + 50 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-3380
SELECT DISTINCT - CAST ( + + 50 AS INTEGER )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT DISTINCT - 45 * + ( - COUNT( * ) ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT - 45 * + ( - COUNT ( * ) ) AS col2
----
45

query II rowsort
SELECT ALL 68, 73 + 92 AS col0
----
68
165

query I rowsort
SELECT DISTINCT + 17 * 63 + + + 23 AS col2
----
1094

query I rowsort
SELECT + 16 * - 97 AS col2
----
-1552

query I rowsort
SELECT 89 - 3 * + 74
----
-133

query II rowsort
SELECT + + 33, 88 AS col0
----
33
88

query I rowsort
SELECT + 82 * - 98 AS col2
----
-8036

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3388
SELECT ALL - + 95 DIV COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL - + 95 / COUNT ( * )
----
-95

query I rowsort
SELECT ALL 8 * - 21 + - - 16 * + + 84
----
1176

query II rowsort
SELECT DISTINCT + - 40, 5 AS col2
----
-40
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT DISTINCT COUNT( * ) * - + 4 + - + COUNT( * ) col1
----
-5

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT COUNT ( * ) * - + 4 + - + COUNT ( * ) col1
----
-5

query I rowsort
SELECT - 28 + - + 17
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT MAX( DISTINCT + 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-3393
SELECT MAX ( DISTINCT + 20 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-3394
SELECT - 56 * - COALESCE ( - 81, 61 * - 85, + + MAX( DISTINCT - 11 ) + COUNT( * ) ), 87 col2
----
-4536
87

skipif mysql # not compatible
query II rowsort label-3394
SELECT - 56 * - COALESCE ( - 81, 61 * - 85, + + MAX ( DISTINCT - 11 ) + COUNT ( * ) ), 87 col2
----
-4536
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3395
SELECT DISTINCT + 93 * 15 - 26 DIV + COUNT( * ) - + + 85 * 40
----
-2031

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT + 93 * 15 - 26 / + COUNT ( * ) - + + 85 * 40
----
-2031

query I rowsort
SELECT - 50 + - + 58 * 56 * 30
----
-97490

query I rowsort
SELECT - 20 * + 42
----
-840

query I rowsort
SELECT ALL + 19 * + - 19 AS col0
----
-361

query II rowsort
SELECT DISTINCT - 10 - 21 AS col2, - 63
----
-31
-63

query I rowsort
SELECT ALL ( 63 ) AS col1
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3401
SELECT DISTINCT - 65 DIV + + COALESCE ( + 12, 17 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT - 65 / + + COALESCE ( + 12, 17 ) AS col0
----
-5

query I rowsort
SELECT - 73 + - - 60 AS col2
----
-13

query II rowsort
SELECT - 2 - 39, + 19 AS col0
----
-41
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3404
SELECT DISTINCT - 74 DIV + 87 DIV COUNT( * ) * + 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT - 74 / + 87 / COUNT ( * ) * + 16 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3405
SELECT - MIN( ALL - ( - + 47 ) ), - COUNT( * ) * - - 15 AS col0
----
-47
-15

skipif mysql # not compatible
query II rowsort label-3405
SELECT - MIN ( ALL - ( - + 47 ) ), - COUNT ( * ) * - - 15 AS col0
----
-47
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3406
SELECT + 98 DIV + ( + + 81 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3406
SELECT + 98 / + ( + + 81 ) AS col0
----
1

query II rowsort
SELECT - - 51 * 43, + 48 AS col1
----
2193
48

query I rowsort
SELECT ALL + + ( - 46 ) * - 72
----
3312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3409
SELECT - - 59 - - 2 - 49 + 31 * - MIN( ALL 37 ) * + 17 + + 91 + - 6 * - + CASE - + 32 WHEN - 12 * 49 + COALESCE ( + + CAST( - + 12 AS SIGNED ), + COUNT( * ), + + 61 * + - COALESCE ( + 28, NULLIF ( - CASE - 68 WHEN - ( + 34 ) / - - 8 THEN NULL ELSE 56 * 59 + 94 * - 32 END, + 90 + + 65 ) - - 27 * 70 ) * 73 + CASE COUNT( * ) WHEN 91 THEN + 57 * + 72 - - 17 END ) THEN NULLIF ( - 21, - 52 ) WHEN - 10 + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) THEN CAST( NULL AS SIGNED ) * + 12 ELSE NULL END + 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3409
SELECT - - 59 - - 2 - 49 + 31 * - MIN ( ALL 37 ) * + 17 + + 91 + - 6 * - + CASE - + 32 WHEN - 12 * 49 + COALESCE ( + + CAST ( - + 12 AS INTEGER ), + COUNT ( * ), + + 61 * + - COALESCE ( + 28, NULLIF ( - CASE - 68 WHEN - ( + 34 ) / - - 8 THEN NULL ELSE 56 * 59 + 94 * - 32 END, + 90 + + 65 ) - - 27 * 70 ) * 73 + CASE COUNT ( * ) WHEN 91 THEN + 57 * + 72 - - 17 END ) THEN NULLIF ( - 21, - 52 ) WHEN - 10 + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS INTEGER ) * + 12 ELSE NULL END + 54 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + - 94 * 31 col2, + 87 AS col2
----
-2914
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT ALL - 15 + - COUNT( * ) + + - 24 * + - ( - 44 ) * 42
----
-44368

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL - 15 + - COUNT ( * ) + + - 24 * + - ( - 44 ) * 42
----
-44368

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT DISTINCT - SUM( - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-3412
SELECT DISTINCT - SUM ( - 41 )
----
41

query I rowsort
SELECT - NULLIF ( 77, + 9 * + + 60 + - 62 + - - 16 * + 93 * - + 30 ) + - 83 AS col2
----
-160

query I rowsort
SELECT + 14 * + + 37 AS col1
----
518

query I rowsort
SELECT ALL 83 + + - 48 * 96
----
-4525

query I rowsort
SELECT - 53 + + - 40 + 2 AS col1
----
-91

query I rowsort
SELECT + - 44 - + 34
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT - + SUM( DISTINCT 71 ) + - ( 42 ) AS col0
----
-113

skipif mysql # not compatible
query I rowsort label-3418
SELECT - + SUM ( DISTINCT 71 ) + - ( 42 ) AS col0
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT + + SUM( 85 ) - - 26
----
111

skipif mysql # not compatible
query I rowsort label-3419
SELECT + + SUM ( 85 ) - - 26
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT + COALESCE ( + + 80, - - NULLIF ( + COALESCE ( - 78, + 6, 67 ), + 27 ) + COUNT( * ) + - + 83 * + 30 + 78 + + - 73 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-3420
SELECT + COALESCE ( + + 80, - - NULLIF ( + COALESCE ( - 78, + 6, 67 ), + 27 ) + COUNT ( * ) + - + 83 * + 30 + 78 + + - 73 ) AS col2
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3421
SELECT + - CAST( NULL AS DECIMAL ) + - + ( - 20 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3421
SELECT + - CAST ( NULL AS REAL ) + - + ( - 20 ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3422
SELECT - CAST( COUNT( * ) AS SIGNED ), 34 * - + COUNT( * ) + - + 89 DIV - + 19 - + - 31 + + 22 AS col0
----
-1
23

skipif mysql # not compatible
query II rowsort label-3422
SELECT - CAST ( COUNT ( * ) AS INTEGER ), 34 * - + COUNT ( * ) + - + 89 / - + 19 - + - 31 + + 22 AS col0
----
-1
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3423
SELECT ALL + MAX( - - 4 ) DIV 57 * - - 12 + 17
----
17

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL + MAX ( - - 4 ) / 57 * - - 12 + 17
----
17

query I rowsort
SELECT + 87 + - 9 AS col0
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3425
SELECT ALL 18 DIV + 10 + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL 18 / + 10 + - COUNT ( * )
----
0

query II rowsort
SELECT DISTINCT + 40 col2, - NULLIF ( 22, + 63 ) AS col2
----
40
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT ( - ( - COUNT( ALL + + 6 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3427
SELECT ( - ( - COUNT ( ALL + + 6 ) ) )
----
1

query I rowsort
SELECT - 57 * + 78 AS col1
----
-4446

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT DISTINCT + 49 * - 24 * + COALESCE ( + MIN( 5 ), + 65 ) - + 16 AS col2
----
-5896

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT + 49 * - 24 * + COALESCE ( + MIN ( 5 ), + 65 ) - + 16 AS col2
----
-5896

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT ALL + MAX( - 62 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL + MAX ( - 62 ) AS col0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-3431
SELECT DISTINCT 97 DIV - 51 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3431
SELECT DISTINCT 97 / - 51 AS col0
----
-1

query II rowsort
SELECT ALL + 45, + 53 AS col2
----
45
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3433
SELECT + 21 * CAST( + 48 AS SIGNED ) col1
----
1008

skipif mysql # not compatible
query I rowsort label-3433
SELECT + 21 * CAST ( + 48 AS INTEGER ) col1
----
1008

onlyif mysql # aggregate syntax: 
query II rowsort label-3434
SELECT DISTINCT + COUNT( * ) AS col0, 99
----
1
99

skipif mysql # not compatible
query II rowsort label-3434
SELECT DISTINCT + COUNT ( * ) AS col0, 99
----
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT COALESCE ( - 24, COUNT( * ), 19 + - + 11 )
----
-24

skipif mysql # not compatible
query I rowsort label-3435
SELECT COALESCE ( - 24, COUNT ( * ), 19 + - + 11 )
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-3436
SELECT + 53, 7 * - 51 * + COUNT( * ) * + COUNT( * ) AS col1
----
53
-357

skipif mysql # not compatible
query II rowsort label-3436
SELECT + 53, 7 * - 51 * + COUNT ( * ) * + COUNT ( * ) AS col1
----
53
-357

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT - 67 * - 81 * + 57 * COUNT( * )
----
309339

skipif mysql # not compatible
query I rowsort label-3437
SELECT - 67 * - 81 * + 57 * COUNT ( * )
----
309339

query I rowsort
SELECT ALL - ( + - ( - 38 ) ) * 10
----
-380

query I rowsort
SELECT - 84 - 44 AS col0
----
-128

query I rowsort
SELECT - - 5 * 0 * - 35 * + + 6
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT ALL - 0 * - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL - 0 * - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT - COUNT( DISTINCT - 58 ) * 62 * 52 + - 70 AS col0
----
-3294

skipif mysql # not compatible
query I rowsort label-3442
SELECT - COUNT ( DISTINCT - 58 ) * 62 * 52 + - 70 AS col0
----
-3294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3443
SELECT - CASE - - 1 WHEN - 40 + + 73 THEN - 27 WHEN 64 THEN + + 7 * COUNT( ALL - 66 ) - 29 + + + CASE - 20 WHEN + CAST( - 97 AS SIGNED ) * + 54 * - COUNT( * ) * AVG ( - 26 ) THEN - COUNT( NULLIF ( - 29, + 29 + 99 ) ) WHEN + SUM( 97 ) THEN NULL ELSE + COUNT( * ) END * + + 85 / - - 61 + 6 * 25 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3443
SELECT - CASE - - 1 WHEN - 40 + + 73 THEN - 27 WHEN 64 THEN + + 7 * COUNT ( ALL - 66 ) - 29 + + + CASE - 20 WHEN + CAST ( - 97 AS INTEGER ) * + 54 * - COUNT ( * ) * AVG ( - 26 ) THEN - COUNT ( NULLIF ( - 29, + 29 + 99 ) ) WHEN + SUM ( 97 ) THEN NULL ELSE + COUNT ( * ) END * + + 85 / - - 61 + 6 * 25 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3444
SELECT ALL 8 * MIN( - NULLIF ( + + ( CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) ), + - ( 43 ) ) ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL 8 * MIN ( - NULLIF ( + + ( CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) ), + - ( 43 ) ) ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT - 57 + + - ( 75 ) + - 67 * + + COUNT( * ) AS col0
----
-199

skipif mysql # not compatible
query I rowsort label-3445
SELECT - 57 + + - ( 75 ) + - 67 * + + COUNT ( * ) AS col0
----
-199

query I rowsort
SELECT ALL - + 95 * + - 99 AS col1
----
9405

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT DISTINCT - COUNT( * ) + + - COUNT( * ) + + 5 - - 22
----
25

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT - COUNT ( * ) + + - COUNT ( * ) + + 5 - - 22
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3448
SELECT ALL + CASE - COUNT( * ) WHEN + ( - + 0 ) THEN - 76 WHEN + - 21 * + + COUNT( * ) THEN NULL ELSE - 52 END + + - COALESCE ( + 11, + 29 ) DIV - + 61 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL + CASE - COUNT ( * ) WHEN + ( - + 0 ) THEN - 76 WHEN + - 21 * + + COUNT ( * ) THEN NULL ELSE - 52 END + + - COALESCE ( + 11, + 29 ) / - + 61 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT CASE - 64 WHEN + NULLIF ( + 62, + 43 * CASE - COUNT( * ) WHEN COUNT( * ) THEN 43 ELSE + 89 END ) * + + 87 + + ( + 17 ) THEN - 98 * + + COALESCE ( + 60, - 13 * + + 48 * 23 ) / - + 92 * - 59 + + 84 - + - 69 * + + 24 + - + 85 * + 55 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3449
SELECT CASE - 64 WHEN + NULLIF ( + 62, + 43 * CASE - COUNT ( * ) WHEN COUNT ( * ) THEN 43 ELSE + 89 END ) * + + 87 + + ( + 17 ) THEN - 98 * + + COALESCE ( + 60, - 13 * + + 48 * 23 ) / - + 92 * - 59 + + 84 - + - 69 * + + 24 + - + 85 * + 55 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT - - COUNT( + 89 )
----
1

skipif mysql # not compatible
query I rowsort label-3450
SELECT - - COUNT ( + 89 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3451
SELECT ALL - - ( + COUNT( * ) ) + + 5, 44 + + - 38
----
6
6

skipif mysql # not compatible
query II rowsort label-3451
SELECT ALL - - ( + COUNT ( * ) ) + + 5, 44 + + - 38
----
6
6

query I rowsort
SELECT + 7 + + 41 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT COUNT( * ) * - + 60 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-3453
SELECT COUNT ( * ) * - + 60 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT + COUNT( * ) + + + 75
----
76

skipif mysql # not compatible
query I rowsort label-3454
SELECT + COUNT ( * ) + + + 75
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3455
SELECT ALL + - CAST( NULL AS SIGNED ) + + 15 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL + - CAST ( NULL AS INTEGER ) + + 15 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT ALL - - COUNT( DISTINCT 71 ) * - 88
----
-88

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL - - COUNT ( DISTINCT 71 ) * - 88
----
-88

query I rowsort
SELECT - CASE 25 WHEN 55 THEN + 76 - - 61 * 57 + + 38 * + 62 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 23 + - + 33 AS col1
----
-10

query II rowsort
SELECT DISTINCT - 65 + ( - - 51 ) AS col0, + 40 AS col2
----
-14
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT ALL ( + + 51 ) + CASE - - 14 WHEN + AVG ( DISTINCT - 49 ) THEN 75 * - 50 * + SUM( DISTINCT - 9 ) END + + - 14 * - 94 * + 71 * - - 30 * + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL ( + + 51 ) + CASE - - 14 WHEN + AVG ( DISTINCT - 49 ) THEN 75 * - 50 * + SUM ( DISTINCT - 9 ) END + + - 14 * - 94 * + 71 * - - 30 * + 67 AS col0
----
NULL

query I rowsort
SELECT ALL - + 24 * - + 59
----
1416

query I rowsort
SELECT DISTINCT - 10 + + - 87 + - 22 * ( - 66 ) AS col1
----
1355

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT ALL + MIN( ALL + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL + MIN ( ALL + 37 )
----
37

query II rowsort
SELECT + 65 AS col1, 2 AS col2
----
65
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3465
SELECT 81 - + 81 + - 55 DIV + 4 * - - COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-3465
SELECT 81 - + 81 + - 55 / + 4 * - - COUNT ( * ) AS col0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3466
SELECT ALL - CAST( - 48 AS SIGNED ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL - CAST ( - 48 AS INTEGER ) AS col0
----
48

query I rowsort
SELECT 7 * - 98 AS col1
----
-686

query I rowsort
SELECT DISTINCT 56 * - 30 col1
----
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT ALL SUM( - 95 ) * + 34
----
-3230

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL SUM ( - 95 ) * + 34
----
-3230

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT COUNT( * ) + + 74 col0
----
75

skipif mysql # not compatible
query I rowsort label-3470
SELECT COUNT ( * ) + + 74 col0
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3471
SELECT DISTINCT COUNT( * ) * - 75 AS col2, ( + 86 ) AS col2
----
-75
86

skipif mysql # not compatible
query II rowsort label-3471
SELECT DISTINCT COUNT ( * ) * - 75 AS col2, ( + 86 ) AS col2
----
-75
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT ALL SUM( ALL + 95 ) * - - 9
----
855

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL SUM ( ALL + 95 ) * - - 9
----
855

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT COUNT( * ) * - 5 * + - 74 * - 76 * 18
----
-506160

skipif mysql # not compatible
query I rowsort label-3473
SELECT COUNT ( * ) * - 5 * + - 74 * - 76 * 18
----
-506160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3474
SELECT COUNT( * ) * + 20 + - CAST( - 12 AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-3474
SELECT COUNT ( * ) * + 20 + - CAST ( - 12 AS INTEGER )
----
32

query I rowsort
SELECT 70 - + 94 + + 5 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT ALL 43 + - MAX( + 34 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL 43 + - MAX ( + 34 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT ALL - + COUNT( 66 ) + - + 10
----
-11

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL - + COUNT ( 66 ) + - + 10
----
-11

query I rowsort
SELECT DISTINCT + + ( - + 55 ) + - 38 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT - - COUNT( DISTINCT - + 18 )
----
1

skipif mysql # not compatible
query I rowsort label-3479
SELECT - - COUNT ( DISTINCT - + 18 )
----
1

query I rowsort
SELECT + 69 * + 89
----
6141

onlyif mysql # aggregate syntax: 
query II rowsort label-3481
SELECT ALL + 88 + + + 74 + + COUNT( * ) * + 45 + + 9, 47 * + + 47 * 46 * 60 AS col0
----
216
6096840

skipif mysql # not compatible
query II rowsort label-3481
SELECT ALL + 88 + + + 74 + + COUNT ( * ) * + 45 + + 9, 47 * + + 47 * 46 * 60 AS col0
----
216
6096840

query I rowsort
SELECT ALL - - 1 * ( - + 44 ) col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT ALL + - MIN( DISTINCT - 22 ) + 14 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL + - MIN ( DISTINCT - 22 ) + 14 AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3484
SELECT MIN( 16 ) - + CAST( COUNT( * ) AS SIGNED ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3484
SELECT MIN ( 16 ) - + CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT ALL + 72 + + CASE - 10 WHEN - SUM( ALL + 98 ) / - 73 * - 62 - + 58 - - + 0 THEN + 10 WHEN + 24 THEN NULL ELSE - 2 END + 99
----
169

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL + 72 + + CASE - 10 WHEN - SUM ( ALL + 98 ) / - 73 * - 62 - + 58 - - + 0 THEN + 10 WHEN + 24 THEN NULL ELSE - 2 END + 99
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT DISTINCT ( - - SUM( DISTINCT - + 84 ) ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-3486
SELECT DISTINCT ( - - SUM ( DISTINCT - + 84 ) ) AS col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3487
SELECT + NULLIF ( + + ( - 37 ), + COUNT( * ) + + 20 / - NULLIF ( 28, 85 ) + - CAST( NULL AS SIGNED ) + + + 51 ) + + CAST( - 5 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-3487
SELECT + NULLIF ( + + ( - 37 ), + COUNT ( * ) + + 20 / - NULLIF ( 28, 85 ) + - CAST ( NULL AS INTEGER ) + + + 51 ) + + CAST ( - 5 AS INTEGER )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3488
SELECT - CASE - 70 WHEN - 28 * + 6 THEN + 8 * + CAST( NULL AS SIGNED ) * - COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3488
SELECT - CASE - 70 WHEN - 28 * + 6 THEN + 8 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) END col0
----
NULL

query I rowsort
SELECT + 51 + + 12 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT 26 - - 32 * - + 80 + - ( + COUNT( * ) ) AS col2
----
-2535

skipif mysql # not compatible
query I rowsort label-3490
SELECT 26 - - 32 * - + 80 + - ( + COUNT ( * ) ) AS col2
----
-2535

query I rowsort
SELECT ALL + 68 * - 84 col1
----
-5712

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3492
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - 41 * 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 41 * 41 AS col1
----
NULL

query I rowsort
SELECT 10 + 75 AS col1
----
85

query I rowsort
SELECT ALL - 96 * 10 AS col2
----
-960

query I rowsort
SELECT 16 * + 21 AS col0
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT DISTINCT - COUNT( * ) * + 99
----
-99

skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT - COUNT ( * ) * + 99
----
-99

query I rowsort
SELECT DISTINCT - ( + + 81 ) AS col2
----
-81

query I rowsort
SELECT 6 * + 2
----
12

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3499
SELECT 42 * - - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3499
SELECT 42 * - - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT ALL - COUNT( ALL - 38 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL - COUNT ( ALL - 38 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT COUNT( DISTINCT 77 )
----
1

skipif mysql # not compatible
query I rowsort label-3501
SELECT COUNT ( DISTINCT 77 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT - ( - 41 ) * ( + + COALESCE ( + 3, ( - + 57 ) + - 90 - + COUNT( * ) + + + 11 + - + ( + 16 ) * + 37 ) ) + 57 + 1 * + COUNT( * )
----
181

skipif mysql # not compatible
query I rowsort label-3502
SELECT - ( - 41 ) * ( + + COALESCE ( + 3, ( - + 57 ) + - 90 - + COUNT ( * ) + + + 11 + - + ( + 16 ) * + 37 ) ) + 57 + 1 * + COUNT ( * )
----
181

query II rowsort
SELECT ALL - CASE 17 WHEN + 70 THEN + + 76 / 81 END AS col0, 32
----
NULL
32

query I rowsort
SELECT DISTINCT 84 + - 7 * 14 * - 80 AS col0
----
7924

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT ALL 43 + - 94 * + + 13 + NULLIF ( - COUNT( * ), 22 * CASE 79 WHEN AVG ( - 6 ) THEN - 96 ELSE + - 37 END ) - + + 14
----
-1194

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL 43 + - 94 * + + 13 + NULLIF ( - COUNT ( * ), 22 * CASE 79 WHEN AVG ( - 6 ) THEN - 96 ELSE + - 37 END ) - + + 14
----
-1194

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT ALL 2 + - COUNT( DISTINCT + 85 ) + 28
----
29

skipif mysql # not compatible
query I rowsort label-3506
SELECT ALL 2 + - COUNT ( DISTINCT + 85 ) + 28
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT ALL - CASE 19 WHEN + SUM( - 77 ) THEN 96 WHEN + 2 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL - CASE 19 WHEN + SUM ( - 77 ) THEN 96 WHEN + 2 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + + 87 + - 47 + - 83 * 31
----
-2533

query I rowsort
SELECT ALL - + 24 + + 21
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT + + MIN( + - 56 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-3510
SELECT + + MIN ( + - 56 ) AS col1
----
-56

query I rowsort
SELECT ALL 23 + - 58
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT + SUM( DISTINCT - ( 9 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-3512
SELECT + SUM ( DISTINCT - ( 9 ) )
----
-9

query I rowsort
SELECT - 6 + - 26 AS col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3514
SELECT + 80 * + CAST( NULL AS DECIMAL ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3514
SELECT + 80 * + CAST ( NULL AS REAL ) * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3515
SELECT + - COUNT( * ) * - CAST( NULL AS SIGNED ) + - 69 / + - 8 * + 91 * - 25 * 43 + 0 + + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - 69 / + - 8 * + 91 * - 25 * 43 + 0 + + 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT ALL - ( - - NULLIF ( - NULLIF ( + + 70, + 88 / - 80 * 44 + 86 ), 78 * + - 62 ) ) - - COUNT( - - 35 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL - ( - - NULLIF ( - NULLIF ( + + 70, + 88 / - 80 * 44 + 86 ), 78 * + - 62 ) ) - - COUNT ( - - 35 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT + - 71 + + - COUNT( * ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-3517
SELECT + - 71 + + - COUNT ( * ) AS col0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3518
SELECT + + CASE - 30 WHEN - + CAST( + + SUM( ALL + 9 ) AS SIGNED ) THEN - 69 * - 3 WHEN SUM( DISTINCT - 2 ) THEN + 67 * + + 44 END + + - 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3518
SELECT + + CASE - 30 WHEN - + CAST ( + + SUM ( ALL + 9 ) AS INTEGER ) THEN - 69 * - 3 WHEN SUM ( DISTINCT - 2 ) THEN + 67 * + + 44 END + + - 36 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 95 * - - 56 AS col2
----
5320

query I rowsort
SELECT + - 21 + - 77 col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT ALL COUNT( * ) - + 97
----
-96

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL COUNT ( * ) - + 97
----
-96

query I rowsort
SELECT + 8 * 69 AS col2
----
552

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT + MAX( 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-3523
SELECT + MAX ( 55 ) AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3524
SELECT + + ( + + 25 ) + ( - 17 ) + CAST( 12 AS SIGNED ) * SUM( 87 )
----
1052

skipif mysql # not compatible
query I rowsort label-3524
SELECT + + ( + + 25 ) + ( - 17 ) + CAST ( 12 AS INTEGER ) * SUM ( 87 )
----
1052

query II rowsort
SELECT ALL + 15 AS col2, - 37
----
15
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT DISTINCT - 82 - - 22 - + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-3526
SELECT DISTINCT - 82 - - 22 - + COUNT ( * )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT - COUNT( * ) + 60 * + 60 * + 16
----
57599

skipif mysql # not compatible
query I rowsort label-3527
SELECT - COUNT ( * ) + 60 * + 60 * + 16
----
57599

query I rowsort
SELECT ALL + ( - 74 ) * + 63 AS col0
----
-4662

query II rowsort
SELECT ALL 0, - 45 - + - 30 AS col1
----
0
-15

query II rowsort
SELECT - 11 AS col2, - 54 AS col1
----
-11
-54

query I rowsort
SELECT - 19 + 67 * - 27
----
-1828

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT ALL COUNT( 57 )
----
1

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL COUNT ( 57 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3533
SELECT 94 AS col0, - SUM( DISTINCT 53 ) * + 81 * - 76 - - 91
----
94
326359

skipif mysql # not compatible
query II rowsort label-3533
SELECT 94 AS col0, - SUM ( DISTINCT 53 ) * + 81 * - 76 - - 91
----
94
326359

onlyif mysql # aggregate syntax: 
query II rowsort label-3534
SELECT 2, MIN( - 97 ) + - 87 col1
----
2
-184

skipif mysql # not compatible
query II rowsort label-3534
SELECT 2, MIN ( - 97 ) + - 87 col1
----
2
-184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3535
SELECT ALL COALESCE ( - CASE WHEN - NULLIF ( - COUNT( * ), + - 19 - 19 ) IS NOT NULL THEN NULL WHEN CAST( + ( + COALESCE ( + CAST( - MAX( DISTINCT 58 ) AS SIGNED ), - - 22 * + 92 + + 9, - 68 / - COUNT( * ) * - 68 ) ) AS SIGNED ) * - 88 + + 60 + + COUNT( * ) * 59 + COALESCE ( - - CASE - - 77 WHEN - COUNT( * ) THEN - 66 + + 44 + + 2 WHEN COUNT( * ) THEN NULL ELSE - 21 END, + 43 ) IS NULL THEN 75 * 60 ELSE NULL END, - 97 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL COALESCE ( - CASE WHEN - NULLIF ( - COUNT ( * ), + - 19 - 19 ) IS NOT NULL THEN NULL WHEN CAST ( + ( + COALESCE ( + CAST ( - MAX ( DISTINCT 58 ) AS INTEGER ), - - 22 * + 92 + + 9, - 68 / - COUNT ( * ) * - 68 ) ) AS INTEGER ) * - 88 + + 60 + + COUNT ( * ) * 59 + COALESCE ( - - CASE - - 77 WHEN - COUNT ( * ) THEN - 66 + + 44 + + 2 WHEN COUNT ( * ) THEN NULL ELSE - 21 END, + 43 ) IS NULL THEN 75 * 60 ELSE NULL END, - 97 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT ALL CASE - SUM( 1 ) WHEN - 36 THEN NULL WHEN 18 THEN 28 WHEN + SUM( 55 ) THEN - 84 * - 24 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL CASE - SUM ( 1 ) WHEN - 36 THEN NULL WHEN 18 THEN 28 WHEN + SUM ( 55 ) THEN - 84 * - 24 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT ALL SUM( DISTINCT - - 18 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL SUM ( DISTINCT - - 18 ) AS col2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3538
SELECT - CASE 50 WHEN - - 45 THEN NULL WHEN - + CAST( NULL AS SIGNED ) * CAST( + 58 AS SIGNED ) - + - 46 THEN NULL ELSE + 1 END
----
-1

skipif mysql # not compatible
query I rowsort label-3538
SELECT - CASE 50 WHEN - - 45 THEN NULL WHEN - + CAST ( NULL AS INTEGER ) * CAST ( + 58 AS INTEGER ) - + - 46 THEN NULL ELSE + 1 END
----
-1

query I rowsort
SELECT + 62 - + 89
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-3540
SELECT + 38 AS col0, ( + + COUNT( DISTINCT 47 ) )
----
38
1

skipif mysql # not compatible
query II rowsort label-3540
SELECT + 38 AS col0, ( + + COUNT ( DISTINCT 47 ) )
----
38
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3541
SELECT ALL + 87 AS col2, - COUNT( * ) AS col1
----
87
-1

skipif mysql # not compatible
query II rowsort label-3541
SELECT ALL + 87 AS col2, - COUNT ( * ) AS col1
----
87
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT - 24 * - 42 - - + COUNT( * ) * 50 + 50 AS col0
----
1108

skipif mysql # not compatible
query I rowsort label-3542
SELECT - 24 * - 42 - - + COUNT ( * ) * 50 + 50 AS col0
----
1108

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT ALL + NULLIF ( - COUNT( * ), - 74 ) * + 53 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL + NULLIF ( - COUNT ( * ), - 74 ) * + 53 AS col2
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3544
SELECT DISTINCT CAST( - 40 AS SIGNED ) DIV COUNT( ALL + 35 ) + - 46
----
-86

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT CAST ( - 40 AS INTEGER ) / COUNT ( ALL + 35 ) + - 46
----
-86

query II rowsort
SELECT DISTINCT 92 * 66 * + - 93 + 83 + - 53 * + 54, 62 AS col2
----
-567475
62

query I rowsort
SELECT ALL 61 * 11 + 61 AS col2
----
732

query I rowsort
SELECT DISTINCT + 48 * - 6 AS col1
----
-288

query I rowsort
SELECT ALL + ( + + 72 ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-3549
SELECT - COUNT( * ) * - - 17, + 77 AS col0
----
-17
77

skipif mysql # not compatible
query II rowsort label-3549
SELECT - COUNT ( * ) * - - 17, + 77 AS col0
----
-17
77

query I rowsort
SELECT ALL 98 * + + 28 + - + NULLIF ( 61, + + 49 )
----
2683

query I rowsort
SELECT NULLIF ( - 50, + 64 )
----
-50

query I rowsort
SELECT ALL 34 * - 97 - + - ( + 14 ) + + + 26 + - 51
----
-3309

query II rowsort
SELECT - 26, 9 * - 32 * + 52 + - + 2 AS col1
----
-26
-14978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3554
SELECT - + CAST( - 90 AS SIGNED ) * - 76 * + NULLIF ( 37, - 0 ) AS col2, - MIN( - ( 98 ) )
----
-253080
98

skipif mysql # not compatible
query II rowsort label-3554
SELECT - + CAST ( - 90 AS INTEGER ) * - 76 * + NULLIF ( 37, - 0 ) AS col2, - MIN ( - ( 98 ) )
----
-253080
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3555
SELECT - CAST( + CASE + AVG ( DISTINCT - ( 50 ) ) WHEN 3 * 60 / - COUNT( * ) THEN NULL ELSE 56 * 34 - + 44 END AS SIGNED ) + - 14
----
-1874

skipif mysql # not compatible
query I rowsort label-3555
SELECT - CAST ( + CASE + AVG ( DISTINCT - ( 50 ) ) WHEN 3 * 60 / - COUNT ( * ) THEN NULL ELSE 56 * 34 - + 44 END AS INTEGER ) + - 14
----
-1874

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT ALL MIN( + - 88 ) * - COUNT( * ) * - 33 - + 86
----
-2990

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL MIN ( + - 88 ) * - COUNT ( * ) * - 33 - + 86
----
-2990

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT ALL + COUNT( * ) * 72 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL + COUNT ( * ) * 72 AS col0
----
72

query I rowsort
SELECT - 26 * 58 AS col2
----
-1508

query I rowsort
SELECT DISTINCT 66 * + 52 - + + 24
----
3408

query II rowsort
SELECT DISTINCT + 76, + 26 col0
----
76
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT + + 67 * - CAST( NULL AS SIGNED ) + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT + + 67 * - CAST ( NULL AS INTEGER ) + 82
----
NULL

query II rowsort
SELECT DISTINCT 0 col2, + 85 + - 2
----
0
83

query I rowsort
SELECT - 93 - + 17
----
-110

query I rowsort
SELECT NULLIF ( 30, - 53 - - + 83 )
----
NULL

query I rowsort
SELECT - 6 - + + 31
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT DISTINCT - ( + NULLIF ( + + 2, COUNT( * ) ) )
----
-2

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT - ( + NULLIF ( + + 2, COUNT ( * ) ) )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT ALL 50 * - 97 * + 53 * - + ( COUNT( DISTINCT 56 ) ) AS col0
----
257050

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL 50 * - 97 * + 53 * - + ( COUNT ( DISTINCT 56 ) ) AS col0
----
257050

onlyif mysql # aggregate syntax: 
query II rowsort label-3568
SELECT - + 17 AS col2, 68 * - + COUNT( * ) * 7 + 60 * 80 * + 2 + - 67 AS col1
----
-17
9057

skipif mysql # not compatible
query II rowsort label-3568
SELECT - + 17 AS col2, 68 * - + COUNT ( * ) * 7 + 60 * 80 * + 2 + - 67 AS col1
----
-17
9057

query II rowsort
SELECT 34, + 11 AS col0
----
34
11

query II rowsort
SELECT DISTINCT + 91 col1, 86 AS col2
----
91
86

query I rowsort
SELECT DISTINCT + 93 * - 85
----
-7905

onlyif mysql # DIV for integer division: 
query I rowsort label-3572
SELECT ALL - NULLIF ( - - 11, + 86 ) DIV + 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL - NULLIF ( - - 11, + 86 ) / + 22 AS col1
----
0

query I rowsort
SELECT + 81 * + 36 AS col0
----
2916

query I rowsort
SELECT ALL 68 + ( + 58 ) AS col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT + 74 + + MIN( DISTINCT + - 93 ) + COUNT( DISTINCT - - 41 ) + 55 - - COUNT( * ) + ( - + COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-3575
SELECT + 74 + + MIN ( DISTINCT + - 93 ) + COUNT ( DISTINCT - - 41 ) + 55 - - COUNT ( * ) + ( - + COUNT ( * ) )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3576
SELECT + 45 * CAST( 89 AS SIGNED )
----
4005

skipif mysql # not compatible
query I rowsort label-3576
SELECT + 45 * CAST ( 89 AS INTEGER )
----
4005

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT + 62 + COUNT( DISTINCT 78 )
----
63

skipif mysql # not compatible
query I rowsort label-3577
SELECT + 62 + COUNT ( DISTINCT 78 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT ALL COUNT( * ) + - - 89
----
90

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL COUNT ( * ) + - - 89
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3579
SELECT + 38 + + 27 * CAST( COUNT( * ) AS SIGNED ) * - 17
----
-421

skipif mysql # not compatible
query I rowsort label-3579
SELECT + 38 + + 27 * CAST ( COUNT ( * ) AS INTEGER ) * - 17
----
-421

query I rowsort
SELECT ALL 9 + 64 + - ( + ( + + 12 ) )
----
61

query I rowsort
SELECT ALL 26 + - 98
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3582
SELECT ALL CAST( NULL AS SIGNED ) * + + ( - + 40 ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL CAST ( NULL AS INTEGER ) * + + ( - + 40 ) * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3583
SELECT DISTINCT + COALESCE ( - 72, - CASE - + MIN( DISTINCT - 81 ) WHEN - COALESCE ( + CAST( NULL AS DECIMAL ), 11 + - - 27 * + + 38 * + - 33 ) THEN ( COUNT( * ) ) * 91 + - 60 + - - 28 + - 86 * - 60 WHEN 88 + ( + 91 ) THEN NULL WHEN + 97 * - + 90 * + 5 * + COUNT( * ) + 26 THEN NULL ELSE COUNT( * ) - - 52 END * + 46 * - NULLIF ( - 63, + 20 + + 46 ) * - 32 )
----
-72

skipif mysql # not compatible
query I rowsort label-3583
SELECT DISTINCT + COALESCE ( - 72, - CASE - + MIN ( DISTINCT - 81 ) WHEN - COALESCE ( + CAST ( NULL AS REAL ), 11 + - - 27 * + + 38 * + - 33 ) THEN ( COUNT ( * ) ) * 91 + - 60 + - - 28 + - 86 * - 60 WHEN 88 + ( + 91 ) THEN NULL WHEN + 97 * - + 90 * + 5 * + COUNT ( * ) + 26 THEN NULL ELSE COUNT ( * ) - - 52 END * + 46 * - NULLIF ( - 63, + 20 + + 46 ) * - 32 )
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3584
SELECT ALL + COUNT( * ) DIV + + 32 + 24
----
24

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL + COUNT ( * ) / + + 32 + 24
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3585
SELECT ALL NULLIF ( - COUNT( * ), + + CAST( NULL AS SIGNED ) DIV - - COALESCE ( 19, + - COUNT( * ) ) + - 59 + + - 53 DIV + 72 + + 55 ) DIV COUNT( ALL 19 ) + - 79
----
-80

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL NULLIF ( - COUNT ( * ), + + CAST ( NULL AS INTEGER ) / - - COALESCE ( 19, + - COUNT ( * ) ) + - 59 + + - 53 / + 72 + + 55 ) / COUNT ( ALL 19 ) + - 79
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3586
SELECT 50 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3586
SELECT 50 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3587
SELECT ALL - 98 DIV - + 11, SUM( - 21 ) + + 24 + - MAX( - 72 ) AS col0
----
8
75

skipif mysql # not compatible
query II rowsort label-3587
SELECT ALL - 98 / - + 11, SUM ( - 21 ) + + 24 + - MAX ( - 72 ) AS col0
----
8
75

query I rowsort
SELECT + NULLIF ( 41, - + 3 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT DISTINCT + + 57 - + - MIN( 17 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT + + 57 - + - MIN ( 17 ) AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3590
SELECT 39 * 66 + - + 28 + + - CAST( NULL AS SIGNED ) - - + 82 + - ( - NULLIF ( 55, 87 * COUNT( * ) * + COUNT( * ) ) ) + + 72 / 64 * + - COUNT( * ) / CASE 92 WHEN - 18 * 47 * - ( + + 48 ) THEN + 93 + - 80 WHEN + - 61 - + 72 THEN CAST( 41 AS SIGNED ) WHEN COUNT( DISTINCT - - ( 21 ) ) THEN NULL ELSE + 62 / - CASE 72 WHEN + 50 THEN NULL ELSE - ( - 9 ) / - CAST( NULL AS SIGNED ) END * 27 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3590
SELECT 39 * 66 + - + 28 + + - CAST ( NULL AS INTEGER ) - - + 82 + - ( - NULLIF ( 55, 87 * COUNT ( * ) * + COUNT ( * ) ) ) + + 72 / 64 * + - COUNT ( * ) / CASE 92 WHEN - 18 * 47 * - ( + + 48 ) THEN + 93 + - 80 WHEN + - 61 - + 72 THEN CAST ( 41 AS INTEGER ) WHEN COUNT ( DISTINCT - - ( 21 ) ) THEN NULL ELSE + 62 / - CASE 72 WHEN + 50 THEN NULL ELSE - ( - 9 ) / - CAST ( NULL AS INTEGER ) END * 27 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT ALL + - COUNT( * ) - + 33 * + 7 * + - 98
----
22637

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL + - COUNT ( * ) - + 33 * + 7 * + - 98
----
22637

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT ALL + + COUNT( + + 65 ) * + + 21 col2
----
21

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL + + COUNT ( + + 65 ) * + + 21 col2
----
21

query I rowsort
SELECT - 24 + + + 88 * + + 11 * + 32
----
30952

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT + MAX( + 14 ) * COUNT( * ) + - COUNT( * ) * - 47 + + 14
----
75

skipif mysql # not compatible
query I rowsort label-3594
SELECT + MAX ( + 14 ) * COUNT ( * ) + - COUNT ( * ) * - 47 + + 14
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3595
SELECT ALL + - 15 * CAST( NULL AS SIGNED ) / - 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL + - 15 * CAST ( NULL AS INTEGER ) / - 19 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3596
SELECT - ( - CAST( NULL AS SIGNED ) ) * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3596
SELECT - ( - CAST ( NULL AS INTEGER ) ) * + 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3597
SELECT + 91 + - - 77 - MIN( - + NULLIF ( - 43, 31 ) ) / - - 56 * + CAST( NULL AS SIGNED ) * - + 98 * - 87 AS col1, ( 99 )
----
NULL
99

skipif mysql # not compatible
query II rowsort label-3597
SELECT + 91 + - - 77 - MIN ( - + NULLIF ( - 43, 31 ) ) / - - 56 * + CAST ( NULL AS INTEGER ) * - + 98 * - 87 AS col1, ( 99 )
----
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT MIN( DISTINCT 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3598
SELECT MIN ( DISTINCT 3 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3599
SELECT ALL - MAX( 70 ) AS col1, 54
----
-70
54

skipif mysql # not compatible
query II rowsort label-3599
SELECT ALL - MAX ( 70 ) AS col1, 54
----
-70
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT 88 * ( - + COUNT( * ) ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-3600
SELECT 88 * ( - + COUNT ( * ) ) AS col2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3601
SELECT ALL - CASE - CAST( + ( 35 ) AS SIGNED ) WHEN 79 THEN - 55 + - COUNT( * ) WHEN 78 / - + ( 52 ) THEN + 41 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL - CASE - CAST ( + ( 35 ) AS INTEGER ) WHEN 79 THEN - 55 + - COUNT ( * ) WHEN 78 / - + ( 52 ) THEN + 41 END AS col0
----
NULL

query I rowsort
SELECT - 40 + 56 * 18 * 7
----
7016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3603
SELECT 80 * CASE - CAST( - + 57 AS SIGNED ) WHEN - - COUNT( * ) * 12 * - - CAST( NULL AS SIGNED ) THEN - CASE + 23 WHEN - CASE - 10 WHEN + CAST( NULL AS SIGNED ) * - 51 THEN NULL WHEN - - 43 / - 58 + - 74 THEN - + 11 + + 40 ELSE COUNT( * ) + - COUNT( * ) + - 80 END + 67 + - 21 * MAX( ALL + 46 ) - 60 THEN + - 74 WHEN + COUNT( 21 ) + SUM( DISTINCT + 43 ) THEN NULL END WHEN - 73 * COUNT( * ) + + 86 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3603
SELECT 80 * CASE - CAST ( - + 57 AS INTEGER ) WHEN - - COUNT ( * ) * 12 * - - CAST ( NULL AS INTEGER ) THEN - CASE + 23 WHEN - CASE - 10 WHEN + CAST ( NULL AS INTEGER ) * - 51 THEN NULL WHEN - - 43 / - 58 + - 74 THEN - + 11 + + 40 ELSE COUNT ( * ) + - COUNT ( * ) + - 80 END + 67 + - 21 * MAX ( ALL + 46 ) - 60 THEN + - 74 WHEN + COUNT ( 21 ) + SUM ( DISTINCT + 43 ) THEN NULL END WHEN - 73 * COUNT ( * ) + + 86 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT 11 + - 29 + COUNT( * ) * - 53 * 33 * - SUM( - 17 ) AS col1
----
-29751

skipif mysql # not compatible
query I rowsort label-3604
SELECT 11 + - 29 + COUNT ( * ) * - 53 * 33 * - SUM ( - 17 ) AS col1
----
-29751

query I rowsort
SELECT ALL 69 + - 41 col1
----
28

query I rowsort
SELECT 16 * - 71 col1
----
-1136

query I rowsort
SELECT DISTINCT - ( ( 50 ) ) * - 3 AS col1
----
150

query I rowsort
SELECT ALL ( - 61 ) + - ( - 66 ) * - - 78 + 70 + - ( - ( 67 ) ) * - 22
----
3683

query I rowsort
SELECT DISTINCT 91 + - 98
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3610
SELECT ALL 26 + 10 + + 65 + 89 DIV - COUNT( ALL + ( + 88 ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL 26 + 10 + + 65 + 89 / - COUNT ( ALL + ( + 88 ) ) AS col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3611
SELECT DISTINCT 61 DIV + + 87
----
0

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT 61 / + + 87
----
0

query I rowsort
SELECT ALL 79 + 77
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3613
SELECT 70 * + - CAST( + 95 AS SIGNED ) * 96 + - SUM( ALL + + 67 ) + + - 48 + - NULLIF ( + 60, - 94 )
----
-638575

skipif mysql # not compatible
query I rowsort label-3613
SELECT 70 * + - CAST ( + 95 AS INTEGER ) * 96 + - SUM ( ALL + + 67 ) + + - 48 + - NULLIF ( + 60, - 94 )
----
-638575

onlyif mysql # aggregate syntax: 
query II rowsort label-3614
SELECT - 2 col2, + NULLIF ( - COUNT( * ), - ( - 77 ) ) AS col0
----
-2
-1

skipif mysql # not compatible
query II rowsort label-3614
SELECT - 2 col2, + NULLIF ( - COUNT ( * ), - ( - 77 ) ) AS col0
----
-2
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3615
SELECT MIN( 77 ) - - 81 * ( - AVG ( 97 ) ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3615
SELECT MIN ( 77 ) - - 81 * ( - AVG ( 97 ) ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL - 21 col1, - 26 * + - 11
----
-21
286

query I rowsort
SELECT 5 + - 53 AS col0
----
-48

query II rowsort
SELECT + 72, 4 col2
----
72
4

query I rowsort
SELECT ALL - - CASE - + 71 WHEN 95 + 7 + 75 THEN 54 + - 74 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3620
SELECT ALL 60 * - 9 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL 60 * - 9 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT DISTINCT + 78 * - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT + 78 * - COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-3622
SELECT ( COALESCE ( - COUNT( * ), - 76, - - 18 * + - 9 - 51 + + + 55 + 19 - - + CASE 44 WHEN + 73 THEN NULL ELSE 41 END * + 24 * - - 7 + 76 ) ) AS col2, COUNT( 72 ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-3622
SELECT ( COALESCE ( - COUNT ( * ), - 76, - - 18 * + - 9 - 51 + + + 55 + 19 - - + CASE 44 WHEN + 73 THEN NULL ELSE 41 END * + 24 * - - 7 + 76 ) ) AS col2, COUNT ( 72 ) AS col1
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT COUNT( * ) * - - 15 * - 38 AS col2
----
-570

skipif mysql # not compatible
query I rowsort label-3623
SELECT COUNT ( * ) * - - 15 * - 38 AS col2
----
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT - + 82 * - 63 + COUNT( * ) - + 23 * + 33
----
4408

skipif mysql # not compatible
query I rowsort label-3624
SELECT - + 82 * - 63 + COUNT ( * ) - + 23 * + 33
----
4408

query I rowsort
SELECT DISTINCT - - NULLIF ( 82, - + 36 * - - ( + + 44 ) + 58 ) AS col2
----
82

query I rowsort
SELECT ALL - 62 * - 10
----
620

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT 3 * + 19 * + 36 * + ( - COUNT( * ) ) - 28 * + 25 AS col1
----
-2752

skipif mysql # not compatible
query I rowsort label-3627
SELECT 3 * + 19 * + 36 * + ( - COUNT ( * ) ) - 28 * + 25 AS col1
----
-2752

query I rowsort
SELECT ALL 85 + + - 18 * + - 54 + - 85 AS col1
----
972

query I rowsort
SELECT ALL + 12 + - NULLIF ( 48, + 96 )
----
-36

query II rowsort
SELECT 31, 48 AS col2
----
31
48

query I rowsort
SELECT ALL 12 * - 68 + 90 AS col0
----
-726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3632
SELECT COALESCE ( - 29, + 79 - + 98, 48 DIV + CAST( - + 49 AS SIGNED ) + - 64, - + 63 + COUNT( ALL + CAST( - - 23 AS SIGNED ) ) ) * - 37 * 36 + - + 96
----
38532

skipif mysql # not compatible
query I rowsort label-3632
SELECT COALESCE ( - 29, + 79 - + 98, 48 / + CAST ( - + 49 AS INTEGER ) + - 64, - + 63 + COUNT ( ALL + CAST ( - - 23 AS INTEGER ) ) ) * - 37 * 36 + - + 96
----
38532

query I rowsort
SELECT - NULLIF ( - 23, - 62 ) * + 79 + - 93
----
1724

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3634
SELECT ALL - COUNT( * ) + + - 71 DIV + - 66
----
0

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL - COUNT ( * ) + + - 71 / + - 66
----
0

query I rowsort
SELECT 61 * + 82 * - - 0
----
0

query I rowsort
SELECT 35 + - NULLIF ( 15, + 63 * + 26 / + 31 )
----
20

query II rowsort
SELECT DISTINCT - 98 * - + 85 * - ( - - 15 ), + 0 * + 98 * + + 41 / + CASE - 81 WHEN - 90 THEN + 66 END col1
----
-124950
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT ALL CASE - 88 WHEN + ( COUNT( * ) ) THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL CASE - 88 WHEN + ( COUNT ( * ) ) THEN + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3639
SELECT DISTINCT - NULLIF ( 51, 55 ) DIV - CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT - NULLIF ( 51, 55 ) / - CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT - MAX( 96 ) * 19
----
-1824

skipif mysql # not compatible
query I rowsort label-3640
SELECT - MAX ( 96 ) * 19
----
-1824

query I rowsort
SELECT DISTINCT - 98 * + 3 AS col1
----
-294

query I rowsort
SELECT - 49 + + 16 AS col1
----
-33

query I rowsort
SELECT ALL + 80 * - 84 AS col2
----
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT - COUNT( * ) + - 68
----
-69

skipif mysql # not compatible
query I rowsort label-3644
SELECT - COUNT ( * ) + - 68
----
-69

query I rowsort
SELECT ALL 13 - - 22
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3646
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ), 17 DIV + - COUNT( * ) AS col0
----
-1
-17

skipif mysql # not compatible
query II rowsort label-3646
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ), 17 / + - COUNT ( * ) AS col0
----
-1
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-3647
SELECT ALL - 18 DIV CASE + 91 WHEN + - 9 - + - 90 THEN + ( - 43 ) ELSE - 46 END * - 61 * - 74 - - - 81 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL - 18 / CASE + 91 WHEN + - 9 - + - 90 THEN + ( - 43 ) ELSE - 46 END * - 61 * - 74 - - - 81 AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT + + 79 + COUNT( * ) * - 83 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-3648
SELECT + + 79 + COUNT ( * ) * - 83 AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3649
SELECT + 20 DIV - + 24
----
0

skipif mysql # not compatible
query I rowsort label-3649
SELECT + 20 / - + 24
----
0

query I rowsort
SELECT + ( 27 ) * + 74
----
1998

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3651
SELECT + COALESCE ( - 27, 27 ) * CAST( - - 47 AS SIGNED ) * - 50 + - + 63 DIV 93 + + + 98 + 77 + - 55 AS col1
----
63570

skipif mysql # not compatible
query I rowsort label-3651
SELECT + COALESCE ( - 27, 27 ) * CAST ( - - 47 AS INTEGER ) * - 50 + - + 63 / 93 + + + 98 + 77 + - 55 AS col1
----
63570

query I rowsort
SELECT ALL + 21 * - + 81 * 57 - + 52 + - 32 col2
----
-97041

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT ALL 30 * COUNT( * ) col2
----
30

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL 30 * COUNT ( * ) col2
----
30

query I rowsort
SELECT ALL - 56 * + 67 + + + 98 AS col2
----
-3654

query I rowsort
SELECT + - 11 + 8
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT ALL + - 47 * COUNT( * ) - + - 72 + + 4
----
29

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL + - 47 * COUNT ( * ) - + - 72 + + 4
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3657
SELECT + + 36 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT + + 36 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3658
SELECT + MIN( + - 70 ) + - - ( 34 ) AS col0, 92
----
-36
92

skipif mysql # not compatible
query II rowsort label-3658
SELECT + MIN ( + - 70 ) + - - ( 34 ) AS col0, 92
----
-36
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT + COUNT( * ) + + + 28 * + COUNT( * ) * CASE - 56 WHEN - 30 THEN + NULLIF ( 14, - MAX( 97 ) ) ELSE + 13 - + 32 - + COUNT( * ) END
----
-559

skipif mysql # not compatible
query I rowsort label-3659
SELECT + COUNT ( * ) + + + 28 * + COUNT ( * ) * CASE - 56 WHEN - 30 THEN + NULLIF ( 14, - MAX ( 97 ) ) ELSE + 13 - + 32 - + COUNT ( * ) END
----
-559

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT ALL + COUNT( * ) * COUNT( * ) + - 76 + MIN( ALL + 89 ) * + 18 AS col1
----
1527

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL + COUNT ( * ) * COUNT ( * ) + - 76 + MIN ( ALL + 89 ) * + 18 AS col1
----
1527

query I rowsort
SELECT + 89 + - 26 AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3662
SELECT MAX( + 24 ) * 29 + + + 73 - + + ( - AVG ( - + 30 ) ) + - 9 + ( CAST( NULL AS SIGNED ) ) * + COUNT( * ) * - 72 + - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3662
SELECT MAX ( + 24 ) * 29 + + + 73 - + + ( - AVG ( - + 30 ) ) + - 9 + ( CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * - 72 + - - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT - COUNT( * ) * - 53 + + 96 AS col1
----
149

skipif mysql # not compatible
query I rowsort label-3663
SELECT - COUNT ( * ) * - 53 + + 96 AS col1
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT - COUNT( * ) + - + 54 - COUNT( * ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-3664
SELECT - COUNT ( * ) + - + 54 - COUNT ( * ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT ALL - COUNT( * ) * + + 85 + - + SUM( DISTINCT 41 ) AS col0
----
-126

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL - COUNT ( * ) * + + 85 + - + SUM ( DISTINCT 41 ) AS col0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT + COUNT( * ) + + - 73 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-3666
SELECT + COUNT ( * ) + + - 73 AS col0
----
-72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3667
SELECT ALL ( - 18 ) / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3667
SELECT ALL ( - 18 ) / + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 11 * - + 29 * - 50 AS col1
----
-15950

onlyif mysql # DIV for integer division: 
query I rowsort label-3669
SELECT - 85 + + 20 + 86 DIV ( + + 8 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-3669
SELECT - 85 + + 20 + 86 / ( + + 8 ) AS col0
----
-55

query I rowsort
SELECT ALL NULLIF ( - 3, - + 30 + - 81 + 77 * - 62 )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3671
SELECT 76 AS col1, + 71 - - + SUM( + 43 ) AS col0
----
76
114

skipif mysql # not compatible
query II rowsort label-3671
SELECT 76 AS col1, + 71 - - + SUM ( + 43 ) AS col0
----
76
114

query I rowsort
SELECT - ( + + 20 ) + - + ( 65 ) AS col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3673
SELECT - ( + + 75 ) * - COUNT( * ) * - 40 * - 8 * CAST( - 61 AS SIGNED ) AS col0
----
-1464000

skipif mysql # not compatible
query I rowsort label-3673
SELECT - ( + + 75 ) * - COUNT ( * ) * - 40 * - 8 * CAST ( - 61 AS INTEGER ) AS col0
----
-1464000

query I rowsort
SELECT ALL - 12 * + 89
----
-1068

query I rowsort
SELECT + 49 * - - NULLIF ( - 94, - 72 )
----
-4606

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3676
SELECT - CAST( - - ( - 88 ) AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-3676
SELECT - CAST ( - - ( - 88 ) AS INTEGER )
----
88

query I rowsort
SELECT ALL NULLIF ( - + 58, - 15 ) AS col2
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3678
SELECT DISTINCT ( - - SUM( DISTINCT COALESCE ( + 87, 24 DIV + 86 ) ) ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT ( - - SUM ( DISTINCT COALESCE ( + 87, 24 / + 86 ) ) ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3679
SELECT 14, + ( + COUNT( * ) ) * + + 83 AS col2
----
14
83

skipif mysql # not compatible
query II rowsort label-3679
SELECT 14, + ( + COUNT ( * ) ) * + + 83 AS col2
----
14
83

query I rowsort
SELECT ALL ( + 77 ) AS col1
----
77

query I rowsort
SELECT ALL NULLIF ( + ( - 76 ), - 26 + - 94 + + - 57 + - 78 * + 21 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT ALL + COUNT( * ) * + + 30
----
30

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL + COUNT ( * ) * + + 30
----
30

query I rowsort
SELECT ALL + 72 * - NULLIF ( + 60, - + 25 ) AS col1
----
-4320

query I rowsort
SELECT - 90 + - COALESCE ( - 12, - 14 * + + 84 ) * + 91 + + ( - 16 ) AS col0
----
986

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3685
SELECT DISTINCT + 61 DIV - + 16 + + 79 - + MIN( ALL + 31 )
----
45

skipif mysql # not compatible
query I rowsort label-3685
SELECT DISTINCT + 61 / - + 16 + + 79 - + MIN ( ALL + 31 )
----
45

query I rowsort
SELECT - 48 - - 68
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3687
SELECT - - 6 * - CAST( + 15 AS SIGNED ) * 63 + - 35 + + 80 * + 90
----
1495

skipif mysql # not compatible
query I rowsort label-3687
SELECT - - 6 * - CAST ( + 15 AS INTEGER ) * 63 + - 35 + + 80 * + 90
----
1495

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT + COUNT( * ) * - 61 * + 17 - + 19
----
-1056

skipif mysql # not compatible
query I rowsort label-3688
SELECT + COUNT ( * ) * - 61 * + 17 - + 19
----
-1056

onlyif mysql # aggregate syntax: 
query II rowsort label-3689
SELECT ALL + + COUNT( * ), 24 AS col0
----
1
24

skipif mysql # not compatible
query II rowsort label-3689
SELECT ALL + + COUNT ( * ), 24 AS col0
----
1
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3690
SELECT + ( COALESCE ( + SUM( DISTINCT + 26 ), ( + 63 ) + NULLIF ( COUNT( * ), + 3 ) DIV + 77 + - - 91 * - 73 * - 90 - + ( 52 ) ) ), - 79 - - 60 + - 59 AS col1
----
26
-78

skipif mysql # not compatible
query II rowsort label-3690
SELECT + ( COALESCE ( + SUM ( DISTINCT + 26 ), ( + 63 ) + NULLIF ( COUNT ( * ), + 3 ) / + 77 + - - 91 * - 73 * - 90 - + ( 52 ) ) ), - 79 - - 60 + - 59 AS col1
----
26
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3691
SELECT DISTINCT + 59 DIV 48 DIV + 95 - + ( + - COUNT( * ) ) + - + 44 * + 6 * - 24 + 16 AS col1
----
6353

skipif mysql # not compatible
query I rowsort label-3691
SELECT DISTINCT + 59 / 48 / + 95 - + ( + - COUNT ( * ) ) + - + 44 * + 6 * - 24 + 16 AS col1
----
6353

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT - 24 * COUNT( * ) + - + 13 - 2 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-3692
SELECT - 24 * COUNT ( * ) + - + 13 - 2 AS col1
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3693
SELECT + + 19 AS col2, - CAST( NULL AS SIGNED ) + + 92 AS col0
----
19
NULL

skipif mysql # not compatible
query II rowsort label-3693
SELECT + + 19 AS col2, - CAST ( NULL AS INTEGER ) + + 92 AS col0
----
19
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3694
SELECT ALL + + ( + 83 ) DIV - 21 + - - COUNT( * ) + - 97 + - - 36 + - - 22 + 54 * + 86 - - + 22 * + 20 + + 62 AS col2
----
5105

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL + + ( + 83 ) / - 21 + - - COUNT ( * ) + - 97 + - - 36 + - - 22 + 54 * + 86 - - + 22 * + 20 + + 62 AS col2
----
5105

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT - - ( CASE + 3 WHEN COUNT( * ) THEN + - 64 + - 65 END ) * 21 * 75 * - + NULLIF ( - ( + + COUNT( * ) ), - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3695
SELECT - - ( CASE + 3 WHEN COUNT ( * ) THEN + - 64 + - 65 END ) * 21 * 75 * - + NULLIF ( - ( + + COUNT ( * ) ), - 90 )
----
NULL

query I rowsort
SELECT ALL 10 * - 35 AS col2
----
-350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3697
SELECT DISTINCT + MIN( DISTINCT - - 83 ) * + + ( + 25 ) * CAST( NULL AS SIGNED ) + 63 / - - MAX( ALL - 36 ) - 83 AS col1, - NULLIF ( - COUNT( * ), - 91 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3697
SELECT DISTINCT + MIN ( DISTINCT - - 83 ) * + + ( + 25 ) * CAST ( NULL AS INTEGER ) + 63 / - - MAX ( ALL - 36 ) - 83 AS col1, - NULLIF ( - COUNT ( * ), - 91 )
----
NULL
1

query II rowsort
SELECT ALL + 16, + 68 + - 69 col1
----
16
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT + MIN( ALL 92 ) * 78
----
7176

skipif mysql # not compatible
query I rowsort label-3699
SELECT + MIN ( ALL 92 ) * 78
----
7176

query I rowsort
SELECT ALL ( - 63 ) * 11 + 99 col1
----
-594

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT DISTINCT 38 - + - COUNT( * ) col2
----
39

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT 38 - + - COUNT ( * ) col2
----
39

query I rowsort
SELECT 16 * 48 + 87 AS col2
----
855

query II rowsort
SELECT 81, 16 col2
----
81
16

query II rowsort
SELECT ALL 31, 94 AS col2
----
31
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT 41 + CAST( 70 AS SIGNED ) col0
----
111

skipif mysql # not compatible
query I rowsort label-3705
SELECT 41 + CAST ( 70 AS INTEGER ) col0
----
111

query I rowsort
SELECT NULLIF ( 7, - 43 ) * - 9 + 57 AS col1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3707
SELECT CAST( - 31 AS SIGNED ) * 55
----
-1705

skipif mysql # not compatible
query I rowsort label-3707
SELECT CAST ( - 31 AS INTEGER ) * 55
----
-1705

query II rowsort
SELECT DISTINCT 89, + ( - - 19 ) AS col2
----
89
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3709
SELECT 60 + + + CASE - + 27 WHEN + 13 THEN - CAST( NULL AS SIGNED ) WHEN 32 + - 25 * - - 34 * - + 15 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3709
SELECT 60 + + + CASE - + 27 WHEN + 13 THEN - CAST ( NULL AS INTEGER ) WHEN 32 + - 25 * - - 34 * - + 15 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT - 42 AS col2, 64 AS col2
----
-42
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT DISTINCT - 35 * 29 * SUM( - - 65 )
----
-65975

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT - 35 * 29 * SUM ( - - 65 )
----
-65975

query I rowsort
SELECT 95 + + 63 * + 18 AS col2
----
1229

onlyif mysql # aggregate syntax: 
query II rowsort label-3713
SELECT ALL 10 AS col1, COUNT( * ) AS col0
----
10
1

skipif mysql # not compatible
query II rowsort label-3713
SELECT ALL 10 AS col1, COUNT ( * ) AS col0
----
10
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3714
SELECT 1 DIV + - 75
----
0

skipif mysql # not compatible
query I rowsort label-3714
SELECT 1 / + - 75
----
0

query I rowsort
SELECT DISTINCT 95 + + - 28 + 25 + - 22 AS col2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3716
SELECT ALL 49 * + CAST( + 89 AS SIGNED ) AS col2
----
4361

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL 49 * + CAST ( + 89 AS INTEGER ) AS col2
----
4361

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3717
SELECT 32 + 86 * + CAST( 81 AS SIGNED ) - + 86 - - 4 * NULLIF ( CAST( - + 76 AS SIGNED ), - 97 ) AS col1
----
6608

skipif mysql # not compatible
query I rowsort label-3717
SELECT 32 + 86 * + CAST ( 81 AS INTEGER ) - + 86 - - 4 * NULLIF ( CAST ( - + 76 AS INTEGER ), - 97 ) AS col1
----
6608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3718
SELECT + CASE + + 77 WHEN + 40 THEN NULL WHEN - 92 + - 78 - + + NULLIF ( - 82, - + COUNT( * ) ) THEN 54 WHEN - 65 * + 79 THEN + - 51 DIV + + 66 - 9 * + COUNT( 26 ) * 71 ELSE 92 * + NULLIF ( 66, - + ( - + SUM( + 56 ) ) * 3 ) * - 12 + COUNT( * ) END + 71 * 84 * + - 49 AS col2
----
-365099

skipif mysql # not compatible
query I rowsort label-3718
SELECT + CASE + + 77 WHEN + 40 THEN NULL WHEN - 92 + - 78 - + + NULLIF ( - 82, - + COUNT ( * ) ) THEN 54 WHEN - 65 * + 79 THEN + - 51 / + + 66 - 9 * + COUNT ( 26 ) * 71 ELSE 92 * + NULLIF ( 66, - + ( - + SUM ( + 56 ) ) * 3 ) * - 12 + COUNT ( * ) END + 71 * 84 * + - 49 AS col2
----
-365099

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT ALL + 96 + - - COUNT( * ) * - 6
----
90

skipif mysql # not compatible
query I rowsort label-3719
SELECT ALL + 96 + - - COUNT ( * ) * - 6
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT ALL - 74 + + - 59 + - + MAX( - 71 ) + - 86 AS col1
----
-148

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL - 74 + + - 59 + - + MAX ( - 71 ) + - 86 AS col1
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL + 16 + - COALESCE ( - 49, 85 - - 79 + - COUNT( * ), + 56 ) + 52
----
117

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL + 16 + - COALESCE ( - 49, 85 - - 79 + - COUNT ( * ), + 56 ) + 52
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3722
SELECT DISTINCT - + 17 AS col1, + 18 + + 58 / + 54 * - 65 / - 51 * - - COUNT( * ) + - CAST( NULL AS SIGNED ) + 66
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-3722
SELECT DISTINCT - + 17 AS col1, + 18 + + 58 / + 54 * - 65 / - 51 * - - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + 66
----
-17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT DISTINCT - - 1 + - COALESCE ( - 51, + - MAX( 60 ) ) + 6 * 30 AS col1
----
232

skipif mysql # not compatible
query I rowsort label-3723
SELECT DISTINCT - - 1 + - COALESCE ( - 51, + - MAX ( 60 ) ) + 6 * 30 AS col1
----
232

query II rowsort
SELECT 57 AS col1, - 84
----
57
-84

query I rowsort
SELECT DISTINCT - NULLIF ( 91, 76 ) * - + 61 AS col1
----
5551

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT - MIN( DISTINCT + - 50 ) * - 39 + - 50
----
-2000

skipif mysql # not compatible
query I rowsort label-3726
SELECT - MIN ( DISTINCT + - 50 ) * - 39 + - 50
----
-2000

query II rowsort
SELECT - 65 AS col1, ( - + 85 ) AS col2
----
-65
-85

query I rowsort
SELECT ALL - 73 - 32 col0
----
-105

query I rowsort
SELECT DISTINCT - 62 * ( - 72 )
----
4464

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT 51 + + SUM( + ( - 88 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-3730
SELECT 51 + + SUM ( + ( - 88 ) )
----
-37

query II rowsort
SELECT 54 * - 66 AS col2, - 41 * 21 AS col2
----
-3564
-861

query I rowsort
SELECT DISTINCT - CASE - 38 WHEN - - 51 THEN 29 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT MIN( ALL + 9 ) * - 90 AS col2
----
-810

skipif mysql # not compatible
query I rowsort label-3733
SELECT MIN ( ALL + 9 ) * - 90 AS col2
----
-810

query I rowsort
SELECT ALL - ( - + 53 )
----
53

query I rowsort
SELECT ALL - 57 - - + 40
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-3736
SELECT 44 DIV + 47
----
0

skipif mysql # not compatible
query I rowsort label-3736
SELECT 44 / + 47
----
0

query II rowsort
SELECT 86 + 25 * 80 AS col1, 41 * + ( 63 ) + - 86
----
2086
2497

query II rowsort
SELECT DISTINCT - 39 * - ( + - 98 ), 74 AS col0
----
-3822
74

query I rowsort
SELECT ( 77 ) + - 27
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT DISTINCT SUM( 47 ) * 49 + - 54 - - 72 * + + 5
----
2609

skipif mysql # not compatible
query I rowsort label-3740
SELECT DISTINCT SUM ( 47 ) * 49 + - 54 - - 72 * + + 5
----
2609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3741
SELECT ALL CASE + + 83 WHEN - + ( + CAST( NULL AS SIGNED ) ) / - + 40 THEN + ( + ( - + 33 ) ) WHEN + 60 - - 16 THEN NULL WHEN + + MAX( 29 ) THEN + COUNT( * ) - + + 49 * 50 * - 7 WHEN + 94 * + 70 + + 68 + + 28 + 29 * - 3 + + 51 THEN + 33 END * + - 6 * + 69 * + CAST( 58 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL CASE + + 83 WHEN - + ( + CAST ( NULL AS INTEGER ) ) / - + 40 THEN + ( + ( - + 33 ) ) WHEN + 60 - - 16 THEN NULL WHEN + + MAX ( 29 ) THEN + COUNT ( * ) - + + 49 * 50 * - 7 WHEN + 94 * + 70 + + 68 + + 28 + 29 * - 3 + + 51 THEN + 33 END * + - 6 * + 69 * + CAST ( 58 AS INTEGER ) AS col2
----
NULL

query III rowsort
SELECT 69 * + 98 col1, NULLIF ( + + 15, - + 89 ) AS col2, + - 48
----
6762
15
-48

query I rowsort
SELECT 5 * + 87 AS col0
----
435

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT ALL 54 + + - MAX( ALL - 19 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL 54 + + - MAX ( ALL - 19 ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT ALL + COUNT( * ) + - - 5
----
6

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + COUNT ( * ) + - - 5
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT + COUNT( * ) + + 22 + + 16 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-3746
SELECT + COUNT ( * ) + + 22 + + 16 AS col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3747
SELECT DISTINCT 78 + COUNT( ALL + 81 ) - + 10 + - 89 DIV + 39
----
67

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT 78 + COUNT ( ALL + 81 ) - + 10 + - 89 / + 39
----
67

query I rowsort
SELECT ALL 83 + - + 78 + + 10
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT ALL MAX( + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL MAX ( + 62 )
----
62

query I rowsort
SELECT - 66 * 72 AS col1
----
-4752

query I rowsort
SELECT ALL - 29 * 26
----
-754

onlyif mysql # aggregate syntax: 
query II rowsort label-3752
SELECT ( + 46 ) AS col2, COUNT( * ) * 20 + - COUNT( * ) AS col0
----
46
19

skipif mysql # not compatible
query II rowsort label-3752
SELECT ( + 46 ) AS col2, COUNT ( * ) * 20 + - COUNT ( * ) AS col0
----
46
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3753
SELECT 15 DIV + + 6 + + + 56 - 30 * + 83 AS col2
----
-2432

skipif mysql # not compatible
query I rowsort label-3753
SELECT 15 / + + 6 + + + 56 - 30 * + 83 AS col2
----
-2432

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT ALL - MIN( + 7 ) + - SUM( ALL - 10 ) - - + 6 + - 59 * - + 97 * 88 - - + 26 * - 30 * + + CASE COUNT( * ) WHEN COALESCE ( - + 4, COALESCE ( 64, 6, + MAX( DISTINCT + 36 ), - COUNT( * ) ) ) + 39 * - - 89 * - 19 THEN + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL - MIN ( + 7 ) + - SUM ( ALL - 10 ) - - + 6 + - 59 * - + 97 * 88 - - + 26 * - 30 * + + CASE COUNT ( * ) WHEN COALESCE ( - + 4, COALESCE ( 64, 6, + MAX ( DISTINCT + 36 ), - COUNT ( * ) ) ) + 39 * - - 89 * - 19 THEN + + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT COUNT( * ) * 36 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-3755
SELECT COUNT ( * ) * 36 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT + COUNT( * ) - - ( + 89 )
----
90

skipif mysql # not compatible
query I rowsort label-3756
SELECT + COUNT ( * ) - - ( + 89 )
----
90

query I rowsort
SELECT ALL + COALESCE ( - 12, + 58 * 25 + + + 13 * + - 58 + - 35 )
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-3758
SELECT COUNT( * ) col2, + 27
----
1
27

skipif mysql # not compatible
query II rowsort label-3758
SELECT COUNT ( * ) col2, + 27
----
1
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT ALL + COUNT( 48 )
----
1

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL + COUNT ( 48 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT + 57 * + - 53 * + COUNT( * )
----
-3021

skipif mysql # not compatible
query I rowsort label-3760
SELECT + 57 * + - 53 * + COUNT ( * )
----
-3021

query I rowsort
SELECT + NULLIF ( + 36, + + 36 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT SUM( - 22 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-3762
SELECT SUM ( - 22 ) AS col0
----
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-3763
SELECT - 9 + ( - 86 ) + - 66 + - 19 DIV 81 AS col2, 34 * + - 21 AS col1
----
-161
-714

skipif mysql # not compatible
query II rowsort label-3763
SELECT - 9 + ( - 86 ) + - 66 + - 19 / 81 AS col2, 34 * + - 21 AS col1
----
-161
-714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3764
SELECT - 15 * + + COALESCE ( + + 74, ( - ( - 50 ) ) * 24 + CAST( + - 14 AS SIGNED ), - SUM( DISTINCT + 13 ) )
----
-1110

skipif mysql # not compatible
query I rowsort label-3764
SELECT - 15 * + + COALESCE ( + + 74, ( - ( - 50 ) ) * 24 + CAST ( + - 14 AS INTEGER ), - SUM ( DISTINCT + 13 ) )
----
-1110

query I rowsort
SELECT ALL - 53 * - 45 AS col2
----
2385

query I rowsort
SELECT - 26 * - 80 * + - 39 AS col1
----
-81120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3767
SELECT - ( 42 ) - + - CAST( - 80 AS SIGNED ) * - 75
----
5958

skipif mysql # not compatible
query I rowsort label-3767
SELECT - ( 42 ) - + - CAST ( - 80 AS INTEGER ) * - 75
----
5958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3768
SELECT DISTINCT + NULLIF ( - 70, - 98 * 34 * CAST( 70 AS SIGNED ) ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-3768
SELECT DISTINCT + NULLIF ( - 70, - 98 * 34 * CAST ( 70 AS INTEGER ) ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-3769
SELECT COUNT( * ) col0, 16 + + + 79
----
1
95

skipif mysql # not compatible
query II rowsort label-3769
SELECT COUNT ( * ) col0, 16 + + + 79
----
1
95

onlyif mysql # aggregate syntax: 
query II rowsort label-3770
SELECT ALL + 81 + + 35 * - 77, + COUNT( * ) * - 58 AS col2
----
-2614
-58

skipif mysql # not compatible
query II rowsort label-3770
SELECT ALL + 81 + + 35 * - 77, + COUNT ( * ) * - 58 AS col2
----
-2614
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3771
SELECT SUM( ALL + - 64 ) * - 55 - + 65 + COUNT( * ) + - + 44 + - 56 + - - 52 * - - 82 + COUNT( * ) * 85 DIV + 93
----
7620

skipif mysql # not compatible
query I rowsort label-3771
SELECT SUM ( ALL + - 64 ) * - 55 - + 65 + COUNT ( * ) + - + 44 + - 56 + - - 52 * - - 82 + COUNT ( * ) * 85 / + 93
----
7620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3772
SELECT - 49 DIV + 91 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3772
SELECT - 49 / + 91 * + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3773
SELECT DISTINCT + COUNT( * ) DIV - 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT + COUNT ( * ) / - 27 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT + 42 - + - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-3774
SELECT + 42 - + - COUNT ( * )
----
43

query I rowsort
SELECT ALL + 91 + 97 AS col2
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT - ( - COUNT( * ) ) + - 30
----
-29

skipif mysql # not compatible
query I rowsort label-3776
SELECT - ( - COUNT ( * ) ) + - 30
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT - MAX( + ( - 39 ) ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-3777
SELECT - MAX ( + ( - 39 ) ) AS col0
----
39

query I rowsort
SELECT DISTINCT + COALESCE ( - - 42, ( + ( - + 68 ) ) - - + 56 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3779
SELECT ALL 67 + 14 + - CAST( - - COALESCE ( 24, 88, + CASE + 62 WHEN + 4 + - 97 THEN + COALESCE ( - + ( COUNT( * ) ), + CASE + 41 WHEN 83 THEN - 59 ELSE - 29 END + + COUNT( * ), - 69 + + + 36 * - 9 / - - 69 ) END ) AS SIGNED ) + - + 3 * + - 2 * 64
----
441

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL 67 + 14 + - CAST ( - - COALESCE ( 24, 88, + CASE + 62 WHEN + 4 + - 97 THEN + COALESCE ( - + ( COUNT ( * ) ), + CASE + 41 WHEN 83 THEN - 59 ELSE - 29 END + + COUNT ( * ), - 69 + + + 36 * - 9 / - - 69 ) END ) AS INTEGER ) + - + 3 * + - 2 * 64
----
441

onlyif mysql # aggregate syntax: 
query II rowsort label-3780
SELECT ALL COUNT( * ) AS col2, ( 52 ) * + 94
----
1
4888

skipif mysql # not compatible
query II rowsort label-3780
SELECT ALL COUNT ( * ) AS col2, ( 52 ) * + 94
----
1
4888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT ALL - CAST( - 55 AS SIGNED ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL - CAST ( - 55 AS INTEGER ) AS col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3782
SELECT ALL - 89 + - 25 DIV ( + COALESCE ( - 45, + 43 + - 45 ) ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL - 89 + - 25 / ( + COALESCE ( - 45, + 43 + - 45 ) ) AS col0
----
-89

query I rowsort
SELECT - + 8 + - 24
----
-32

query I rowsort
SELECT COALESCE ( 97, - 87 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT + - 44 + + 61 + - 94 + + 81 * COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3785
SELECT + - 44 + + 61 + - 94 + + 81 * COUNT ( * ) AS col1
----
4

query I rowsort
SELECT - 30 + 69 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT + 0 * CASE - 97 WHEN - 95 THEN NULL WHEN - COALESCE ( - 91, + 52 ) * 97 THEN + - 44 + - - 44 * - COALESCE ( - 41, SUM( DISTINCT 17 ) * 89 * + - COUNT( * ) + - + 48 - + 87 ) * + 18 - - 37 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3787
SELECT + 0 * CASE - 97 WHEN - 95 THEN NULL WHEN - COALESCE ( - 91, + 52 ) * 97 THEN + - 44 + - - 44 * - COALESCE ( - 41, SUM ( DISTINCT 17 ) * 89 * + - COUNT ( * ) + - + 48 - + 87 ) * + 18 - - 37 END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3788
SELECT DISTINCT - ( + - CAST( 16 AS SIGNED ) )
----
16

skipif mysql # not compatible
query I rowsort label-3788
SELECT DISTINCT - ( + - CAST ( 16 AS INTEGER ) )
----
16

query I rowsort
SELECT + + 67 * - 17
----
-1139

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT ALL + CASE - - 7 WHEN 56 THEN - COUNT( * ) * MIN( + - 33 ) * - 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL + CASE - - 7 WHEN 56 THEN - COUNT ( * ) * MIN ( + - 33 ) * - 82 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT DISTINCT - MIN( 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-3791
SELECT DISTINCT - MIN ( 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT + - ( - - 63 ) + + ( - - 99 ) - + 10 * COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-3792
SELECT + - ( - - 63 ) + + ( - - 99 ) - + 10 * COUNT ( * ) AS col1
----
26

query I rowsort
SELECT ALL - 81 * 43 AS col0
----
-3483

query I rowsort
SELECT + - COALESCE ( - + 0, 0 + 53 + - - 56 + - 41 * 42 * + 57 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3795
SELECT ALL + NULLIF ( + + 17, 19 ) * + CAST( 16 AS SIGNED ) * - + CAST( + 77 AS SIGNED ) col2
----
-20944

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL + NULLIF ( + + 17, 19 ) * + CAST ( 16 AS INTEGER ) * - + CAST ( + 77 AS INTEGER ) col2
----
-20944

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT + CASE - COUNT( * ) WHEN - 84 * - + COUNT( * ) - + 81 THEN COUNT( * ) WHEN ( + + 56 ) THEN - 66 * 8 END * + + 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3796
SELECT + CASE - COUNT ( * ) WHEN - 84 * - + COUNT ( * ) - + 81 THEN COUNT ( * ) WHEN ( + + 56 ) THEN - 66 * 8 END * + + 19 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3797
SELECT + 33 * + CAST( 72 AS SIGNED ) AS col0
----
2376

skipif mysql # not compatible
query I rowsort label-3797
SELECT + 33 * + CAST ( 72 AS INTEGER ) AS col0
----
2376

query I rowsort
SELECT + 39 * 81 AS col1
----
3159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3799
SELECT ALL 45 * - COALESCE ( - 21, 75 ), + 19 / - CAST( NULL AS SIGNED ) AS col2
----
945
NULL

skipif mysql # not compatible
query II rowsort label-3799
SELECT ALL 45 * - COALESCE ( - 21, 75 ), + 19 / - CAST ( NULL AS INTEGER ) AS col2
----
945
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT 48 * 90 + + MIN( 13 )
----
4333

skipif mysql # not compatible
query I rowsort label-3800
SELECT 48 * 90 + + MIN ( 13 )
----
4333

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT - ( + 38 ) * - MIN( ALL + 88 ) + + 40 + + - 1
----
3383

skipif mysql # not compatible
query I rowsort label-3801
SELECT - ( + 38 ) * - MIN ( ALL + 88 ) + + 40 + + - 1
----
3383

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT ALL 91 * - + COUNT( * ) * - 50
----
4550

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL 91 * - + COUNT ( * ) * - 50
----
4550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3803
SELECT ALL + COALESCE ( + - 16, 93 - - ( ( + COUNT( * ) ) ) DIV - COUNT( * ) + + 38 + + + 48 + + - 48 + + - CAST( NULL AS SIGNED ) DIV + 51 )
----
-16

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL + COALESCE ( + - 16, 93 - - ( ( + COUNT ( * ) ) ) / - COUNT ( * ) + + 38 + + + 48 + + - 48 + + - CAST ( NULL AS INTEGER ) / + 51 )
----
-16

query I rowsort
SELECT ( - + 88 ) AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3805
SELECT ALL 66 * COUNT( DISTINCT - 63 ) + + 85, - CAST( NULL AS SIGNED ) / + COUNT( * ) AS col0
----
151
NULL

skipif mysql # not compatible
query II rowsort label-3805
SELECT ALL 66 * COUNT ( DISTINCT - 63 ) + + 85, - CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col0
----
151
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT DISTINCT COUNT( * ) * + + 50 + - 29 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT COUNT ( * ) * + + 50 + - 29 AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3807
SELECT ALL + 97 * - MIN( - CAST( + 69 AS SIGNED ) ) + 57
----
6750

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL + 97 * - MIN ( - CAST ( + 69 AS INTEGER ) ) + 57
----
6750

query I rowsort
SELECT ( 66 ) * 41 + - + 88 AS col2
----
2618

query I rowsort
SELECT ALL - 20 * 47 + 21
----
-919

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT + COUNT( * ) * - 48 * COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-3810
SELECT + COUNT ( * ) * - 48 * COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3811
SELECT DISTINCT + 87 * + COALESCE ( - MAX( DISTINCT - 75 ), - NULLIF ( - 28, + + 75 + 51 DIV + + 59 ) ) + 62 DIV COUNT( * ) + + 4 col2
----
6591

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT + 87 * + COALESCE ( - MAX ( DISTINCT - 75 ), - NULLIF ( - 28, + + 75 + 51 / + + 59 ) ) + 62 / COUNT ( * ) + + 4 col2
----
6591

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3812
SELECT ALL - COUNT( * ) * + 22 + + - 88 + 57 + - 33 DIV 78 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL - COUNT ( * ) * + 22 + + - 88 + 57 + - 33 / 78 AS col0
----
-53

query I rowsort
SELECT - + 73 * + 80
----
-5840

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT DISTINCT - 72 * MIN( + - ( - + 25 ) ) - - - 72
----
-1872

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT - 72 * MIN ( + - ( - + 25 ) ) - - - 72
----
-1872

onlyif mysql # DIV for integer division: 
query II rowsort label-3815
SELECT ALL + + 74 DIV 12, - 64 AS col1
----
6
-64

skipif mysql # not compatible
query II rowsort label-3815
SELECT ALL + + 74 / 12, - 64 AS col1
----
6
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL + 28 * - + COUNT( * ) * + - ( + - 83 ) - + 0
----
-2324

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL + 28 * - + COUNT ( * ) * + - ( + - 83 ) - + 0
----
-2324

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT - 1 - + + MIN( + - 75 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-3817
SELECT - 1 - + + MIN ( + - 75 ) AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3818
SELECT - - 46 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3818
SELECT - - 46 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 35 * + 5 AS col1
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT ALL CASE + COUNT( * ) WHEN MIN( ALL 62 ) THEN NULL ELSE - + 92 END AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL CASE + COUNT ( * ) WHEN MIN ( ALL 62 ) THEN NULL ELSE - + 92 END AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT - + 71 * + COUNT( * ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-3821
SELECT - + 71 * + COUNT ( * ) AS col0
----
-71

query I rowsort
SELECT - + 9 col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT ALL + MAX( - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL + MAX ( - 23 )
----
-23

query I rowsort
SELECT 86 + + - ( 3 )
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-3825
SELECT DISTINCT + + COALESCE ( + 0, + + ( - + 15 ) ) * - ( + - 42 ) * - COUNT( * ), 13 AS col2
----
0
13

skipif mysql # not compatible
query II rowsort label-3825
SELECT DISTINCT + + COALESCE ( + 0, + + ( - + 15 ) ) * - ( + - 42 ) * - COUNT ( * ), 13 AS col2
----
0
13

query I rowsort
SELECT - 0 * + 57
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3827
SELECT 54 + CASE MAX( ALL - 18 ) WHEN - + 5 THEN NULL WHEN + 33 + + 15 THEN + 3 * - - NULLIF ( 52, ( - - 40 ) * COUNT( * ) + - 87 + - + 21 - 57 * - 9 / + ( - + 82 ) ) + - 3 / COUNT( * ) - + 91 * - - 93 WHEN - 89 + - 18 + COUNT( ALL 55 ) / + 17 * + 88 * - + COUNT( * ) + ( + 81 ) * - - AVG ( + + ( + 33 ) ) THEN + 10 + 2 + + + 13 * - CAST( NULL AS SIGNED ) * - 73 END + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3827
SELECT 54 + CASE MAX ( ALL - 18 ) WHEN - + 5 THEN NULL WHEN + 33 + + 15 THEN + 3 * - - NULLIF ( 52, ( - - 40 ) * COUNT ( * ) + - 87 + - + 21 - 57 * - 9 / + ( - + 82 ) ) + - 3 / COUNT ( * ) - + 91 * - - 93 WHEN - 89 + - 18 + COUNT ( ALL 55 ) / + 17 * + 88 * - + COUNT ( * ) + ( + 81 ) * - - AVG ( + + ( + 33 ) ) THEN + 10 + 2 + + + 13 * - CAST ( NULL AS INTEGER ) * - 73 END + - 69
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3828
SELECT + CAST( NULL AS SIGNED ) / - - 3 + + - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT + CAST ( NULL AS INTEGER ) / - - 3 + + - 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT ALL + 53 + + + ( + ( + 42 ) ) - - 13 * 9 + - MAX( ALL + - 68 )
----
280

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL + 53 + + + ( + ( + 42 ) ) - - 13 * 9 + - MAX ( ALL + - 68 )
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT DISTINCT COUNT( * ) * + 14 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-3830
SELECT DISTINCT COUNT ( * ) * + 14 AS col1
----
14

query I rowsort
SELECT ALL 91 + 87 AS col2
----
178

query I rowsort
SELECT DISTINCT 3 + - 88 + 64 + + - 45 * + - 23 AS col2
----
1014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3833
SELECT COUNT( DISTINCT + - ( 87 ) ) * - - 7 - 4 + + + 25 + 61 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT COUNT ( DISTINCT + - ( 87 ) ) * - - 7 - 4 + + + 25 + 61 * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3834
SELECT CASE 25 WHEN + 84 / + COUNT( 78 ) * - + COUNT( DISTINCT + 56 ) + COUNT( * ) THEN NULL WHEN 41 THEN - - ( - 13 ) + - - 74 * - 73 * 13 * - COUNT( - 3 ) END * + - 95 + - - COUNT( * ), 63 AS col1
----
NULL
63

skipif mysql # not compatible
query II rowsort label-3834
SELECT CASE 25 WHEN + 84 / + COUNT ( 78 ) * - + COUNT ( DISTINCT + 56 ) + COUNT ( * ) THEN NULL WHEN 41 THEN - - ( - 13 ) + - - 74 * - 73 * 13 * - COUNT ( - 3 ) END * + - 95 + - - COUNT ( * ), 63 AS col1
----
NULL
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT ALL COALESCE ( - MIN( + 59 ), - ( + 37 ) + - + 73 * + 61 * - COUNT( * ) ) * - ( + 60 )
----
3540

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL COALESCE ( - MIN ( + 59 ), - ( + 37 ) + - + 73 * + 61 * - COUNT ( * ) ) * - ( + 60 )
----
3540

query I rowsort
SELECT DISTINCT 37 * + 6 * 32
----
7104

query II rowsort
SELECT ALL - 40 col2, + 13 AS col2
----
-40
13

query I rowsort
SELECT 11 - 39 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT NULLIF ( 29, + + MAX( + - 84 ) / 89 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-3839
SELECT NULLIF ( 29, + + MAX ( + - 84 ) / 89 ) AS col0
----
29

query I rowsort
SELECT 52 * + 0 * + + 78
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3841
SELECT + 99 + + ( - 24 ) - 83 + 11 + 75 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3841
SELECT + 99 + + ( - 24 ) - 83 + 11 + 75 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT ( + 5 ) + COUNT( * ) * + 37 * SUM( 33 )
----
1226

skipif mysql # not compatible
query I rowsort label-3842
SELECT ( + 5 ) + COUNT ( * ) * + 37 * SUM ( 33 )
----
1226

query I rowsort
SELECT - 48 + 80 AS col2
----
32

query I rowsort
SELECT ALL 18 * - 86
----
-1548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3845
SELECT 70 + - + NULLIF ( - CAST( - - COUNT( * ) AS SIGNED ), + 76 ) * + + 15
----
85

skipif mysql # not compatible
query I rowsort label-3845
SELECT 70 + - + NULLIF ( - CAST ( - - COUNT ( * ) AS INTEGER ), + 76 ) * + + 15
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT DISTINCT + 54 + + 15 + + COUNT( * ) * - + 91 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT + 54 + + 15 + + COUNT ( * ) * - + 91 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT - CASE - 94 WHEN + + 4 / - 14 * + + 26 + 1 THEN ( + 41 ) * - + 42 WHEN 46 * + + 59 THEN + - 51 + 60 * - COUNT( 11 ) + - + 75 + + 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3847
SELECT - CASE - 94 WHEN + + 4 / - 14 * + + 26 + 1 THEN ( + 41 ) * - + 42 WHEN 46 * + + 59 THEN + - 51 + 60 * - COUNT ( 11 ) + - + 75 + + 33 END
----
NULL

query I rowsort
SELECT ALL + - 75 + - - 66
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3849
SELECT DISTINCT - 63 / 28 - - + CASE - - 90 WHEN + 17 THEN NULL WHEN + 29 * NULLIF ( + NULLIF ( COUNT( * ), COUNT( * ) / - - 27 + - SUM( DISTINCT + + 74 ) - 31 - + + 99 + - + 65 + - 93 * + 19 ), + - ( 81 ) ) THEN + CAST( - - 81 AS DECIMAL ) + + - ( + - 7 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT - 63 / 28 - - + CASE - - 90 WHEN + 17 THEN NULL WHEN + 29 * NULLIF ( + NULLIF ( COUNT ( * ), COUNT ( * ) / - - 27 + - SUM ( DISTINCT + + 74 ) - 31 - + + 99 + - + 65 + - 93 * + 19 ), + - ( 81 ) ) THEN + CAST ( - - 81 AS REAL ) + + - ( + - 7 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT MAX( ALL - - 62 ) * - 40
----
-2480

skipif mysql # not compatible
query I rowsort label-3850
SELECT MAX ( ALL - - 62 ) * - 40
----
-2480

onlyif mysql # aggregate syntax: 
query II rowsort label-3851
SELECT DISTINCT ( ( + - 39 ) ) + - 37 + 43 * COUNT( * ) AS col1, 90 - + 0 AS col2
----
-33
90

skipif mysql # not compatible
query II rowsort label-3851
SELECT DISTINCT ( ( + - 39 ) ) + - 37 + 43 * COUNT ( * ) AS col1, 90 - + 0 AS col2
----
-33
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT DISTINCT + 39 + - + COALESCE ( 74, ( - - 49 ), - 44, - 52 ) * COUNT( * ) + - 33 + - + CASE - - 17 WHEN - CASE - 99 WHEN + 54 + + COUNT( * ) THEN + - ( 59 ) END THEN + - 41 WHEN - 61 * 96 * - 47 + MAX( 92 ) THEN + + 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT + 39 + - + COALESCE ( 74, ( - - 49 ), - 44, - 52 ) * COUNT ( * ) + - 33 + - + CASE - - 17 WHEN - CASE - 99 WHEN + 54 + + COUNT ( * ) THEN + - ( 59 ) END THEN + - 41 WHEN - 61 * 96 * - 47 + MAX ( 92 ) THEN + + 54 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3853
SELECT - 68 col0, COUNT( * ) + + COUNT( * ) + + 62
----
-68
64

skipif mysql # not compatible
query II rowsort label-3853
SELECT - 68 col0, COUNT ( * ) + + COUNT ( * ) + + 62
----
-68
64

query I rowsort
SELECT ALL 50 + + ( - ( 38 ) ) AS col1
----
12

query I rowsort
SELECT 89 + + 2
----
91

query II rowsort
SELECT ALL - 24 AS col2, 72
----
-24
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT MAX( ALL - - ( + 51 ) ) + - - 28 + - 58 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3857
SELECT MAX ( ALL - - ( + 51 ) ) + - - 28 + - 58 AS col0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3858
SELECT COUNT( * ) AS col2, 73 + 90 AS col2
----
1
163

skipif mysql # not compatible
query II rowsort label-3858
SELECT COUNT ( * ) AS col2, 73 + 90 AS col2
----
1
163

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT COUNT( + 41 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3859
SELECT COUNT ( + 41 ) AS col2
----
1

query I rowsort
SELECT ALL 70 * - - 18 + NULLIF ( + - 62, 54 ) AS col2
----
1198

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT MAX( + 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3861
SELECT MAX ( + 1 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT COUNT( * ) * - 53 * - 31 + - - 40 AS col1
----
1683

skipif mysql # not compatible
query I rowsort label-3862
SELECT COUNT ( * ) * - 53 * - 31 + - - 40 AS col1
----
1683

query I rowsort
SELECT ( - - 61 ) * - 52 AS col1
----
-3172

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT ALL + 22 + COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL + 22 + COUNT ( * ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT 14 * - + 11 * - - COUNT( * ) AS col2
----
-154

skipif mysql # not compatible
query I rowsort label-3865
SELECT 14 * - + 11 * - - COUNT ( * ) AS col2
----
-154

query I rowsort
SELECT 20 + + 69
----
89

onlyif mysql # aggregate syntax: 
query III rowsort label-3867
SELECT COUNT( * ) col2, + SUM( DISTINCT - 70 ) - - 93 AS col2, - 43
----
1
23
-43

skipif mysql # not compatible
query III rowsort label-3867
SELECT COUNT ( * ) col2, + SUM ( DISTINCT - 70 ) - - 93 AS col2, - 43
----
1
23
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-3868
SELECT + 59, - COUNT( * ) * 74 AS col1
----
59
-74

skipif mysql # not compatible
query II rowsort label-3868
SELECT + 59, - COUNT ( * ) * 74 AS col1
----
59
-74

query I rowsort
SELECT 46 * - 99 AS col1
----
-4554

query I rowsort
SELECT 7 * + 4 + - - 47 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT ALL - 1 * - - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL - 1 * - - COUNT ( * ) AS col1
----
-1

query II rowsort
SELECT 81 col2, 27
----
81
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3873
SELECT + 39 DIV + - 84 - - - ( MIN( + + 9 ) ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-3873
SELECT + 39 / + - 84 - - - ( MIN ( + + 9 ) ) AS col0
----
-9

query I rowsort
SELECT + NULLIF ( + 95, 48 )
----
95

query I rowsort
SELECT ALL 22 * 81
----
1782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3876
SELECT DISTINCT - COUNT( * ) DIV + - NULLIF ( - 47, 56 + + + 4 )
----
0

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT - COUNT ( * ) / + - NULLIF ( - 47, 56 + + + 4 )
----
0

query I rowsort
SELECT ALL - NULLIF ( - + 33, - - 29 ) AS col1
----
33

query I rowsort
SELECT + 76 * + 63
----
4788

query I rowsort
SELECT - NULLIF ( - + 83, 16 ) AS col0
----
83

query II rowsort
SELECT - 85 AS col0, 54
----
-85
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3881
SELECT + - CAST( NULL AS SIGNED ) - - - CASE WHEN NULL = 78 THEN 21 - + ( - 80 ) END + - CASE + 59 WHEN ( + - 59 ) + - 91 + + - 89 THEN + 14 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3881
SELECT + - CAST ( NULL AS INTEGER ) - - - CASE WHEN NULL = 78 THEN 21 - + ( - 80 ) END + - CASE + 59 WHEN ( + - 59 ) + - 91 + + - 89 THEN + 14 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + + 44 * + 71
----
3124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT ALL 52 * CAST( - + 29 AS SIGNED )
----
-1508

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL 52 * CAST ( - + 29 AS INTEGER )
----
-1508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3884
SELECT + NULLIF ( - ( + COUNT( * ) ), - 36 * - 64 + 93 ) DIV - ( + + 99 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3884
SELECT + NULLIF ( - ( + COUNT ( * ) ), - 36 * - 64 + 93 ) / - ( + + 99 ) col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3885
SELECT DISTINCT 91 + - + CAST( - + 9 AS SIGNED ) + COUNT( * )
----
101

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT 91 + - + CAST ( - + 9 AS INTEGER ) + COUNT ( * )
----
101

query I rowsort
SELECT ALL 96 + + + 50 + - 68 col2
----
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3887
SELECT ALL + 35 + NULLIF ( + 92, + + CAST( NULL AS DECIMAL ) ) AS col2
----
127

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL + 35 + NULLIF ( + 92, + + CAST ( NULL AS REAL ) ) AS col2
----
127

query I rowsort
SELECT DISTINCT 21 * 55
----
1155

query I rowsort
SELECT - 32 * 33
----
-1056

query I rowsort
SELECT + 44 * + 79
----
3476

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT - MAX( ALL + 80 ) + - 14 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-3891
SELECT - MAX ( ALL + 80 ) + - 14 AS col1
----
-94

query I rowsort
SELECT - 2 * + 54
----
-108

query II rowsort
SELECT ALL + 91 * - + 63 AS col0, + 48 AS col0
----
-5733
48

query I rowsort
SELECT DISTINCT + NULLIF ( - - 83, + 53 * - 45 * + ( - 64 ) + 15 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT DISTINCT + MAX( ALL + 98 ) * COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT + MAX ( ALL + 98 ) * COUNT ( * )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT + - 61 * - SUM( ALL - 66 )
----
-4026

skipif mysql # not compatible
query I rowsort label-3896
SELECT + - 61 * - SUM ( ALL - 66 )
----
-4026

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT DISTINCT - COUNT( * ) * - MIN( ALL + + 6 ) + - 72 - - NULLIF ( - COUNT( * ), + - 84 / - + 97 ) + - 20 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT - COUNT ( * ) * - MIN ( ALL + + 6 ) + - 72 - - NULLIF ( - COUNT ( * ), + - 84 / - + 97 ) + - 20 AS col1
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3898
SELECT DISTINCT - COALESCE ( + - ( + 79 ), - + 79, + MAX( ALL + 26 ) DIV - + 37 ) * + ( - 23 ) * - 40 * - - 22 + + - 97 + + 34 AS col0
----
1598897

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT - COALESCE ( + - ( + 79 ), - + 79, + MAX ( ALL + 26 ) / - + 37 ) * + ( - 23 ) * - 40 * - - 22 + + - 97 + + 34 AS col0
----
1598897

onlyif mysql # DIV for integer division: 
query I rowsort label-3899
SELECT ALL + 89 DIV + 53 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL + 89 / + 53 AS col0
----
1

query I rowsort
SELECT + - 1 * 38 - - 62
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT - + COUNT( * ) + + - 25 - + - ( - - COALESCE ( + 32, 0, 13 ) ) * + + ( - + ( - 25 ) ) * - 62
----
-49626

skipif mysql # not compatible
query I rowsort label-3901
SELECT - + COUNT ( * ) + + - 25 - + - ( - - COALESCE ( + 32, 0, 13 ) ) * + + ( - + ( - 25 ) ) * - 62
----
-49626

query I rowsort
SELECT NULLIF ( + 78, - 75 )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3903
SELECT - - 65 * CAST( NULL AS SIGNED ) * - + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3903
SELECT - - 65 * CAST ( NULL AS INTEGER ) * - + 70 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3904
SELECT ALL - COALESCE ( - 44, CASE + 19 WHEN + 76 * 33 THEN - 0 + - ( - 46 ) + - + COUNT( - 80 ) ELSE - - 40 END, ( + SUM( ALL 25 ) ) DIV - 40 ) * - - 39 + + CAST( - - 7 AS SIGNED ) + + 44
----
1767

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL - COALESCE ( - 44, CASE + 19 WHEN + 76 * 33 THEN - 0 + - ( - 46 ) + - + COUNT ( - 80 ) ELSE - - 40 END, ( + SUM ( ALL 25 ) ) / - 40 ) * - - 39 + + CAST ( - - 7 AS INTEGER ) + + 44
----
1767

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT - SUM( ALL + - 80 ) * - 86 + - 39 + - MIN( + + 52 ) + - + 67 / + CASE - 88 WHEN + + MIN( - 8 ) / 67 * + - 52 THEN NULLIF ( - COUNT( * ), + + 80 - - 96 + - 5 ) WHEN - 69 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT - SUM ( ALL + - 80 ) * - 86 + - 39 + - MIN ( + + 52 ) + - + 67 / + CASE - 88 WHEN + + MIN ( - 8 ) / 67 * + - 52 THEN NULLIF ( - COUNT ( * ), + + 80 - - 96 + - 5 ) WHEN - 69 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3906
SELECT - - CAST( + ( 42 ) AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-3906
SELECT - - CAST ( + ( 42 ) AS INTEGER )
----
42

query I rowsort
SELECT + 66 - + 13 - 88 * 88 * - + 92 AS col0
----
712501

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3908
SELECT ALL NULLIF ( - 44, + - 25 ) * + COUNT( * ) DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL NULLIF ( - 44, + - 25 ) * + COUNT ( * ) / - 95
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3909
SELECT + 10 + - COUNT( ALL + 49 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3909
SELECT + 10 + - COUNT ( ALL + 49 ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3910
SELECT ALL + + CAST( + + 14 AS SIGNED ) + 78 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL + + CAST ( + + 14 AS INTEGER ) + 78 AS col2
----
92

query I rowsort
SELECT + 24 + + + 4 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT ALL - COUNT( * ) + + - MIN( ( + 54 ) ) + - 16 * - COUNT( * ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL - COUNT ( * ) + + - MIN ( ( + 54 ) ) + - 16 * - COUNT ( * ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT ALL + CASE - 63 WHEN - 30 * - - 44 THEN - SUM( ALL 49 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL + CASE - 63 WHEN - 30 * - - 44 THEN - SUM ( ALL 49 ) END col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( - + 68, - 94 ) * + 51
----
-3468

query II rowsort
SELECT 47, + 43 AS col1
----
47
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3916
SELECT - CASE - 80 WHEN - - 18 + + MAX( DISTINCT + 79 ) THEN - + CAST( - 60 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3916
SELECT - CASE - 80 WHEN - - 18 + + MAX ( DISTINCT + 79 ) THEN - + CAST ( - 60 AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT + 9 + - + MIN( + + 29 ) + + 43 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3917
SELECT + 9 + - + MIN ( + + 29 ) + + 43 AS col2
----
23

query I rowsort
SELECT + 21 * - 62
----
-1302

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT + 26 * - 58 * - - 45 * + - COUNT( * )
----
67860

skipif mysql # not compatible
query I rowsort label-3919
SELECT + 26 * - 58 * - - 45 * + - COUNT ( * )
----
67860

query I rowsort
SELECT + 38 + + 60 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT ALL MIN( - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL MIN ( - 36 )
----
-36

query I rowsort
SELECT - ( - ( - 63 ) ) AS col1
----
-63

query II rowsort
SELECT 79, 69 AS col0
----
79
69

query I rowsort
SELECT ALL 79 - - 63
----
142

query I rowsort
SELECT + 90 * 5 AS col0
----
450

query I rowsort
SELECT DISTINCT 31 * - 44 AS col1
----
-1364

onlyif mysql # DIV for integer division: 
query I rowsort label-3927
SELECT - 43 DIV 45 * + 9
----
0

skipif mysql # not compatible
query I rowsort label-3927
SELECT - 43 / 45 * + 9
----
0

query I rowsort
SELECT - 60 * - + 61 * + - 68 * 63 col1
----
-15679440

query I rowsort
SELECT + 48 + - - 58 AS col2
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3930
SELECT + CAST( - ( 95 ) AS SIGNED ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-3930
SELECT + CAST ( - ( 95 ) AS INTEGER ) AS col1
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3931
SELECT - 27 DIV 6 + + COUNT( * ) + + - ( 23 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-3931
SELECT - 27 / 6 + + COUNT ( * ) + + - ( 23 ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-3932
SELECT ALL + + COUNT( * ) AS col1, - COALESCE ( - - NULLIF ( 24, - - 46 * - CASE COUNT( * ) WHEN - 92 THEN NULL ELSE + 98 * - 26 END + 87 ), 23 )
----
1
-24

skipif mysql # not compatible
query II rowsort label-3932
SELECT ALL + + COUNT ( * ) AS col1, - COALESCE ( - - NULLIF ( 24, - - 46 * - CASE COUNT ( * ) WHEN - 92 THEN NULL ELSE + 98 * - 26 END + 87 ), 23 )
----
1
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3933
SELECT DISTINCT - + 44 AS col0, COUNT( CAST( NULL AS SIGNED ) ) AS col1
----
-44
0

skipif mysql # not compatible
query II rowsort label-3933
SELECT DISTINCT - + 44 AS col0, COUNT ( CAST ( NULL AS INTEGER ) ) AS col1
----
-44
0

query I rowsort
SELECT ALL + 18 + 38 + - + 59 col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3935
SELECT DISTINCT 57 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT 57 / + 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL - + MIN( - 87 )
----
87

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL - + MIN ( - 87 )
----
87

query I rowsort
SELECT DISTINCT - 16 + - 20 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-3938
SELECT 97 AS col2, COALESCE ( + 35, - COUNT( * ), - 81 * - 90 )
----
97
35

skipif mysql # not compatible
query II rowsort label-3938
SELECT 97 AS col2, COALESCE ( + 35, - COUNT ( * ), - 81 * - 90 )
----
97
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3939
SELECT - 28 + 19 + + 72 + + 39 * 48 * - 99 + + + 66 + NULLIF ( - + 91, + COUNT( * ) ) + + + COUNT( * ) * + - 42 DIV 17 + + 95 - 75 * + ( 96 )
----
-192397

skipif mysql # not compatible
query I rowsort label-3939
SELECT - 28 + 19 + + 72 + + 39 * 48 * - 99 + + + 66 + NULLIF ( - + 91, + COUNT ( * ) ) + + + COUNT ( * ) * + - 42 / 17 + + 95 - 75 * + ( 96 )
----
-192397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT - 68 * - + 19 * 96 * - - CAST( NULL AS SIGNED ) * - 10 * + + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT - 68 * - + 19 * 96 * - - CAST ( NULL AS INTEGER ) * - 10 * + + 26 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 67 * 99
----
-6633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3942
SELECT + CAST( + + 98 AS SIGNED ) + 6 AS col0, MIN( - - 73 ) col0
----
104
73

skipif mysql # not compatible
query II rowsort label-3942
SELECT + CAST ( + + 98 AS INTEGER ) + 6 AS col0, MIN ( - - 73 ) col0
----
104
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT - 95 * MAX( - 80 )
----
7600

skipif mysql # not compatible
query I rowsort label-3943
SELECT - 95 * MAX ( - 80 )
----
7600

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT DISTINCT - - SUM( ALL - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT - - SUM ( ALL - 97 )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3945
SELECT ALL + 42 + - 67 + - + 69 * CASE - CASE CASE - 12 WHEN 95 + - 93 THEN - 10 END WHEN + - 5 * COALESCE ( 81, + 89, + 55 * + - 78 ) - + 98 THEN 37 WHEN + + 7 THEN NULL ELSE + CAST( NULL AS SIGNED ) + 19 END WHEN + + 24 + - 1 THEN + 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL + 42 + - 67 + - + 69 * CASE - CASE CASE - 12 WHEN 95 + - 93 THEN - 10 END WHEN + - 5 * COALESCE ( 81, + 89, + 55 * + - 78 ) - + 98 THEN 37 WHEN + + 7 THEN NULL ELSE + CAST ( NULL AS INTEGER ) + 19 END WHEN + + 24 + - 1 THEN + 80 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3946
SELECT ALL + 22 AS col2, 70 * - 59 + - 27 DIV + - 78 AS col2
----
22
-4130

skipif mysql # not compatible
query II rowsort label-3946
SELECT ALL + 22 AS col2, 70 * - 59 + - 27 / + - 78 AS col2
----
22
-4130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3947
SELECT DISTINCT - NULLIF ( - MIN( 89 ), + 53 ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3947
SELECT DISTINCT - NULLIF ( - MIN ( 89 ), + 53 ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 70 * - - 41 AS col0
----
-2870

query II rowsort
SELECT - 93, 34 AS col0
----
-93
34

query I rowsort
SELECT 79 - + 4 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT NULLIF ( + - NULLIF ( - + 32, - ( MAX( - - 26 ) ) * NULLIF ( + - MIN( ALL + 66 ), + 95 ) + 56 ), - 42 ) * + ( - + 74 ) col0
----
-2368

skipif mysql # not compatible
query I rowsort label-3951
SELECT NULLIF ( + - NULLIF ( - + 32, - ( MAX ( - - 26 ) ) * NULLIF ( + - MIN ( ALL + 66 ), + 95 ) + 56 ), - 42 ) * + ( - + 74 ) col0
----
-2368

query I rowsort
SELECT 24 * - 19 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT ALL + 72 * + 71 * - + COUNT( * )
----
-5112

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL + 72 * + 71 * - + COUNT ( * )
----
-5112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3954
SELECT ALL + COUNT( + 83 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3954
SELECT ALL + COUNT ( + 83 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 14 * - - 20 * - - 31 col1
----
8680

query I rowsort
SELECT 4 * + 80 * + 76
----
24320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3957
SELECT COUNT( * ) * - ( + 27 ) / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3957
SELECT COUNT ( * ) * - ( + 27 ) / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3958
SELECT NULLIF ( + 34, - + COUNT( * ) + 74 * + 47 ) + + 11 + - CASE + 17 WHEN - - 9 THEN CAST( - COUNT( * ) AS SIGNED ) WHEN - 79 - - 24 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3958
SELECT NULLIF ( + 34, - + COUNT ( * ) + 74 * + 47 ) + + 11 + - CASE + 17 WHEN - - 9 THEN CAST ( - COUNT ( * ) AS INTEGER ) WHEN - 79 - - 24 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 55 + + CASE + + 17 WHEN 19 THEN NULL ELSE + + 18 * 33 END AS col1
----
649

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3960
SELECT DISTINCT COUNT( * ) DIV - + 61
----
0

skipif mysql # not compatible
query I rowsort label-3960
SELECT DISTINCT COUNT ( * ) / - + 61
----
0

query I rowsort
SELECT ALL + 89 + - 98
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT ALL 46 * - NULLIF ( - + COUNT( ALL 46 ), - 26 + 55 ) * - + 14
----
-644

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL 46 * - NULLIF ( - + COUNT ( ALL 46 ), - 26 + 55 ) * - + 14
----
-644

query I rowsort
SELECT DISTINCT - 20 + + NULLIF ( 41, + 51 + + 99 ) AS col0
----
21

query I rowsort
SELECT ALL 55 + - + ( - 88 ) * + 85 + 32
----
7567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3965
SELECT 81 * + COALESCE ( - 46, - + CASE + 13 WHEN - + 33 DIV + 44 * + 40 + + 3 THEN NULL WHEN - CASE + 97 WHEN 55 THEN NULL WHEN + CASE COUNT( * ) WHEN + - 29 THEN + 72 END THEN 34 + 22 END THEN + 31 - 97 * NULLIF ( - - 23, + 51 DIV - 2 * NULLIF ( 21, + 36 ) * - COUNT( * ) ) END * + 95 + + COUNT( * ) * - 0 + + 96 ) * - MIN( ALL - + 25 ) - + - 93 + COUNT( * ) DIV - 29 AS col0
----
-93057

skipif mysql # not compatible
query I rowsort label-3965
SELECT 81 * + COALESCE ( - 46, - + CASE + 13 WHEN - + 33 / + 44 * + 40 + + 3 THEN NULL WHEN - CASE + 97 WHEN 55 THEN NULL WHEN + CASE COUNT ( * ) WHEN + - 29 THEN + 72 END THEN 34 + 22 END THEN + 31 - 97 * NULLIF ( - - 23, + 51 / - 2 * NULLIF ( 21, + 36 ) * - COUNT ( * ) ) END * + 95 + + COUNT ( * ) * - 0 + + 96 ) * - MIN ( ALL - + 25 ) - + - 93 + COUNT ( * ) / - 29 AS col0
----
-93057

query I rowsort
SELECT DISTINCT - + ( + 66 )
----
-66

query II rowsort
SELECT + COALESCE ( + 45, 10, + 39 ) col0, 93
----
45
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3968
SELECT + SUM( DISTINCT - - 15 ) AS col1, + 92 col2
----
15
92

skipif mysql # not compatible
query II rowsort label-3968
SELECT + SUM ( DISTINCT - - 15 ) AS col1, + 92 col2
----
15
92

query I rowsort
SELECT ALL + + 3 + + ( 35 ) AS col1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3970
SELECT 1 * - 37 * - 47 * COUNT( * ) - - COALESCE ( COUNT( DISTINCT + + 96 ), 38, + 93 - + 83 DIV - + 89 )
----
1740

skipif mysql # not compatible
query I rowsort label-3970
SELECT 1 * - 37 * - 47 * COUNT ( * ) - - COALESCE ( COUNT ( DISTINCT + + 96 ), 38, + 93 - + 83 / - + 89 )
----
1740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3971
SELECT DISTINCT 58 DIV COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-3971
SELECT DISTINCT 58 / COUNT ( * )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL - SUM( ALL - 75 )
----
75

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL - SUM ( ALL - 75 )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3973
SELECT - 7 * + 22 DIV COUNT( * ) + - - 47 - + + COUNT( * ) + COUNT( * )
----
-107

skipif mysql # not compatible
query I rowsort label-3973
SELECT - 7 * + 22 / COUNT ( * ) + - - 47 - + + COUNT ( * ) + COUNT ( * )
----
-107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3974
SELECT ALL + 2 DIV - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL + 2 / - COUNT ( * ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT + - 63 * - 69 + + 59 + + + 4 + MAX( DISTINCT + 14 ) + 40 * + + 46 - + 66 + + 9 AS col2
----
6207

skipif mysql # not compatible
query I rowsort label-3975
SELECT + - 63 * - 69 + + 59 + + + 4 + MAX ( DISTINCT + 14 ) + 40 * + + 46 - + 66 + + 9 AS col2
----
6207

onlyif mysql # DIV for integer division: 
query I rowsort label-3976
SELECT ALL + + 24 - - 48 DIV + 83
----
24

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL + + 24 - - 48 / + 83
----
24

query I rowsort
SELECT + 68 * 48 AS col2
----
3264

query I rowsort
SELECT 4 * - 94 + 75 - 8
----
-309

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT ALL MIN( DISTINCT 43 )
----
43

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL MIN ( DISTINCT 43 )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3980
SELECT 89 + - 61 + + 63 * + + 53 * - COUNT( * ) - + 95 * - 60 + 23 DIV - 46 AS col1
----
2389

skipif mysql # not compatible
query I rowsort label-3980
SELECT 89 + - 61 + + 63 * + + 53 * - COUNT ( * ) - + 95 * - 60 + 23 / - 46 AS col1
----
2389

query I rowsort
SELECT ALL 3 - + + 61 AS col0
----
-58

query I rowsort
SELECT DISTINCT + 86 * + 90
----
7740

query I rowsort
SELECT 8 + + 50
----
58

query I rowsort
SELECT DISTINCT COALESCE ( - COALESCE ( - 52, 87 ), + - 18, + + 31 * + + ( 58 ) + - - 38 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT COUNT( * ) + - 11
----
-10

skipif mysql # not compatible
query I rowsort label-3985
SELECT COUNT ( * ) + - 11
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3986
SELECT ALL + 41 DIV + 41
----
1

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL + 41 / + 41
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT DISTINCT + ( + 29 ) + + + 54 * COUNT( * ) * + - 82 AS col2
----
-4399

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT + ( + 29 ) + + + 54 * COUNT ( * ) * + - 82 AS col2
----
-4399

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT COUNT( * ) * + + MIN( 93 )
----
93

skipif mysql # not compatible
query I rowsort label-3988
SELECT COUNT ( * ) * + + MIN ( 93 )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3989
SELECT DISTINCT COUNT( * ) AS col1, + 93
----
1
93

skipif mysql # not compatible
query II rowsort label-3989
SELECT DISTINCT COUNT ( * ) AS col1, + 93
----
1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT DISTINCT - 24 * - + COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT - 24 * - + COUNT ( * ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-3991
SELECT ALL + ( + + 98 ) + + 9 + + 84 * - COUNT( * ), 65 AS col2
----
23
65

skipif mysql # not compatible
query II rowsort label-3991
SELECT ALL + ( + + 98 ) + + 9 + + 84 * - COUNT ( * ), 65 AS col2
----
23
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3992
SELECT DISTINCT - COUNT( * ) + 93 * 58 * + 9 DIV ( + COUNT( * ) ) * 22 + - 7 + + - 48
----
1067956

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT - COUNT ( * ) + 93 * 58 * + 9 / ( + COUNT ( * ) ) * 22 + - 7 + + - 48
----
1067956

query I rowsort
SELECT ALL 0 + + - 4 AS col1
----
-4

query I rowsort
SELECT DISTINCT - 91 + + 18 AS col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3995
SELECT + 60 / 67 - CAST( 43 AS SIGNED ) + 82 * + ( + + CASE 66 WHEN - - 32 / + + 19 THEN + COUNT( * ) WHEN MAX( ALL + + 52 ) THEN 17 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3995
SELECT + 60 / 67 - CAST ( 43 AS INTEGER ) + 82 * + ( + + CASE 66 WHEN - - 32 / + + 19 THEN + COUNT ( * ) WHEN MAX ( ALL + + 52 ) THEN 17 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT ALL + COALESCE ( - - CASE 2 WHEN 6 THEN NULL WHEN - 64 THEN + COUNT( * ) END, 65 ) * + COUNT( * ) + - 64
----
1

skipif mysql # not compatible
query I rowsort label-3996
SELECT ALL + COALESCE ( - - CASE 2 WHEN 6 THEN NULL WHEN - 64 THEN + COUNT ( * ) END, 65 ) * + COUNT ( * ) + - 64
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3997
SELECT 36 * - 56 + - COUNT( * ) DIV - 95
----
-2016

skipif mysql # not compatible
query I rowsort label-3997
SELECT 36 * - 56 + - COUNT ( * ) / - 95
----
-2016

onlyif mysql # aggregate syntax: 
query II rowsort label-3998
SELECT ALL + ( + - MIN( + + 35 ) ) AS col1, + 43
----
-35
43

skipif mysql # not compatible
query II rowsort label-3998
SELECT ALL + ( + - MIN ( + + 35 ) ) AS col1, + 43
----
-35
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT + COUNT( * ) - SUM( - 45 ) * + + NULLIF ( - 34, - CASE 36 WHEN 51 THEN NULL WHEN + - 1 + + 88 * - 30 THEN NULL WHEN - - 20 THEN - - ( - 6 ) * - 17 END + + ( 1 ) ) AS col2
----
-1529

skipif mysql # not compatible
query I rowsort label-3999
SELECT + COUNT ( * ) - SUM ( - 45 ) * + + NULLIF ( - 34, - CASE 36 WHEN 51 THEN NULL WHEN + - 1 + + 88 * - 30 THEN NULL WHEN - - 20 THEN - - ( - 6 ) * - 17 END + + ( 1 ) ) AS col2
----
-1529

query II rowsort
SELECT + 32, - 50 * 73 AS col0
----
32
-3650

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT ALL + 17 * COUNT( * ) * - 40
----
-680

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL + 17 * COUNT ( * ) * - 40
----
-680

query I rowsort
SELECT ALL 46 * 88 AS col1
----
4048

query II rowsort
SELECT DISTINCT 22 * + - 99 - 74 AS col1, 39 + + 5 AS col1
----
-2252
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4004
SELECT ALL 72 * - - 97 * + + ( - 66 ) * 50 - - 79 * CAST( 56 AS SIGNED ) + - + COUNT( * ) + - 70 + + + 64 + - 94 AS col1
----
-23042877

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL 72 * - - 97 * + + ( - 66 ) * 50 - - 79 * CAST ( 56 AS INTEGER ) + - + COUNT ( * ) + - 70 + + + 64 + - 94 AS col1
----
-23042877

query I rowsort
SELECT ALL 73 * - 54 col0
----
-3942

onlyif mysql # DIV for integer division: 
query I rowsort label-4006
SELECT + - COALESCE ( 46, + - 91 ) DIV 34
----
-1

skipif mysql # not compatible
query I rowsort label-4006
SELECT + - COALESCE ( 46, + - 91 ) / 34
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4007
SELECT + - SUM( ALL - COALESCE ( 41, + 88 * + + 7 ) ) AS col0, - 80 AS col0
----
41
-80

skipif mysql # not compatible
query II rowsort label-4007
SELECT + - SUM ( ALL - COALESCE ( 41, + 88 * + + 7 ) ) AS col0, - 80 AS col0
----
41
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL + COUNT( ALL + 35 )
----
1

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL + COUNT ( ALL + 35 )
----
1

query I rowsort
SELECT + 91 * + ( 88 )
----
8008

query I rowsort
SELECT + 50 * - 8
----
-400

query I rowsort
SELECT ALL - ( - 49 ) * + + 99 AS col0
----
4851

query I rowsort
SELECT - 61 + + 80 AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4013
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) * - + 35 + COUNT( * ) + - 7 + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) * - + 35 + COUNT ( * ) + - 7 + - 96
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4014
SELECT ALL + 46 + - - ( + + CAST( - COUNT( * ) AS SIGNED ) ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL + 46 + - - ( + + CAST ( - COUNT ( * ) AS INTEGER ) ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT + 8 - - COUNT( * ) + - 94
----
-85

skipif mysql # not compatible
query I rowsort label-4015
SELECT + 8 - - COUNT ( * ) + - 94
----
-85

query II rowsort
SELECT 30 AS col2, - 41 * + 98
----
30
-4018

query I rowsort
SELECT - 25 * + 60
----
-1500

query I rowsort
SELECT - 84 - - 7 * + + ( - 2 )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4019
SELECT ALL 90 + - 37 AS col0, 78 + - 95 + + 55 * + + CAST( NULL AS SIGNED ) + + - ( 21 ) + + AVG ( DISTINCT + - 63 ) * 89 * + 28
----
53
NULL

skipif mysql # not compatible
query II rowsort label-4019
SELECT ALL 90 + - 37 AS col0, 78 + - 95 + + 55 * + + CAST ( NULL AS INTEGER ) + + - ( 21 ) + + AVG ( DISTINCT + - 63 ) * 89 * + 28
----
53
NULL

query I rowsort
SELECT ALL 7 + 59 + 13
----
79

query I rowsort
SELECT ALL + 10 + 91
----
101

query II rowsort
SELECT - 95, - 91 AS col1
----
-95
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-4023
SELECT DISTINCT + 29 + - 17, - COUNT( * ) AS col0
----
12
-1

skipif mysql # not compatible
query II rowsort label-4023
SELECT DISTINCT + 29 + - 17, - COUNT ( * ) AS col0
----
12
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4024
SELECT ALL CAST( + 69 AS SIGNED ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL CAST ( + 69 AS INTEGER ) AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4025
SELECT - AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) + 83 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4025
SELECT - AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + 83 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT DISTINCT + ( SUM( DISTINCT 10 ) ) + - 39 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT + ( SUM ( DISTINCT 10 ) ) + - 39 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4027
SELECT ALL COALESCE ( 83, + 26 - 69 ) AS col0, - 19 * NULLIF ( + 48, SUM( DISTINCT - 48 ) ) * + - COUNT( * ) + - COALESCE ( - + 85, - 88 * + 40 + 48 + - 47 ) + 54 + - - 92 * + + 15 * + 13 * + - 58 * CASE + 75 WHEN + - 58 + + - ( 21 ) THEN + 20 END * - 72
----
83
NULL

skipif mysql # not compatible
query II rowsort label-4027
SELECT ALL COALESCE ( 83, + 26 - 69 ) AS col0, - 19 * NULLIF ( + 48, SUM ( DISTINCT - 48 ) ) * + - COUNT ( * ) + - COALESCE ( - + 85, - 88 * + 40 + 48 + - 47 ) + 54 + - - 92 * + + 15 * + 13 * + - 58 * CASE + 75 WHEN + - 58 + + - ( 21 ) THEN + 20 END * - 72
----
83
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4028
SELECT - COUNT( * ) AS col0, 99 AS col0
----
-1
99

skipif mysql # not compatible
query II rowsort label-4028
SELECT - COUNT ( * ) AS col0, 99 AS col0
----
-1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT - COALESCE ( + MIN( + 79 ), - 73 )
----
-79

skipif mysql # not compatible
query I rowsort label-4029
SELECT - COALESCE ( + MIN ( + 79 ), - 73 )
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4030
SELECT DISTINCT - + 87 DIV 25
----
-3

skipif mysql # not compatible
query I rowsort label-4030
SELECT DISTINCT - + 87 / 25
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT - - 7 + COUNT( * ) col0
----
8

skipif mysql # not compatible
query I rowsort label-4031
SELECT - - 7 + COUNT ( * ) col0
----
8

query II rowsort
SELECT + - ( - 91 ) * + 55 + + + 97 + 86 + + 14, 14 col1
----
5202
14

query II rowsort
SELECT - 37 AS col0, 90 AS col0
----
-37
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT - + COUNT( * ) + + 64 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-4034
SELECT - + COUNT ( * ) + + 64 AS col1
----
63

query I rowsort
SELECT DISTINCT - - 95 * 44
----
4180

query I rowsort
SELECT - 61 * - 2 AS col1
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4037
SELECT ALL - COUNT( * ) * 47 + - + 41 DIV + 10 + + 74
----
23

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL - COUNT ( * ) * 47 + - + 41 / + 10 + + 74
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4038
SELECT DISTINCT + - 82 * 33 * CAST( NULL AS DECIMAL ) * ( - - 51 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4038
SELECT DISTINCT + - 82 * 33 * CAST ( NULL AS REAL ) * ( - - 51 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ALL + MIN( DISTINCT 81 )
----
81

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL + MIN ( DISTINCT 81 )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4040
SELECT - CASE + 94 WHEN - CAST( NULL AS SIGNED ) THEN - - COUNT( * ) END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4040
SELECT - CASE + 94 WHEN - CAST ( NULL AS INTEGER ) THEN - - COUNT ( * ) END + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4041
SELECT DISTINCT + - 38 AS col1, + 74 + NULLIF ( + 45, SUM( ALL - 98 ) ) AS col0
----
-38
119

skipif mysql # not compatible
query II rowsort label-4041
SELECT DISTINCT + - 38 AS col1, + 74 + NULLIF ( + 45, SUM ( ALL - 98 ) ) AS col0
----
-38
119

onlyif mysql # aggregate syntax: 
query II rowsort label-4042
SELECT ALL + - 47, - COUNT( * ) + + SUM( ALL COALESCE ( 93, + - 53 ) ) * + - 23 + 53 AS col2
----
-47
-2087

skipif mysql # not compatible
query II rowsort label-4042
SELECT ALL + - 47, - COUNT ( * ) + + SUM ( ALL COALESCE ( 93, + - 53 ) ) * + - 23 + 53 AS col2
----
-47
-2087

query II rowsort
SELECT + ( - 27 ) AS col0, - 36
----
-27
-36

query I rowsort
SELECT DISTINCT 15 * - 56 AS col0
----
-840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4045
SELECT ALL - 68 * - ( - - 19 ) + + CAST( - - COUNT( * ) AS SIGNED ) + MAX( ALL + 33 ) * + 40 DIV - SUM( - 20 ) AS col2
----
1359

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL - 68 * - ( - - 19 ) + + CAST ( - - COUNT ( * ) AS INTEGER ) + MAX ( ALL + 33 ) * + 40 / - SUM ( - 20 ) AS col2
----
1359

query I rowsort
SELECT ALL 50 * + 82 * + CASE - 77 WHEN + 46 + + + 80 THEN NULL WHEN + + 19 + - + 6 THEN - 61 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4047
SELECT ALL - 91 * - - 75 * - + CASE - COALESCE ( CASE + + 62 WHEN 76 + - 9 THEN + + 21 WHEN MAX( 9 ) * + 10 THEN - ( 33 ) ELSE - + SUM( + 10 ) END, ( MIN( ALL + ( - 32 ) ) ) + - COUNT( * ) * 57 / + COUNT( * ), + - 68 ) WHEN 45 THEN NULL WHEN + 75 THEN NULL WHEN - COALESCE ( + 94, 41 ) * + - AVG ( DISTINCT - - 63 ) - + COUNT( * ) * - + MAX( 23 ) * + - 88 THEN - - 74 + + 69 * 51 ELSE 30 / + 25 * 37 - - CAST( NULL AS SIGNED ) END + + 32 + + + CASE 13 WHEN + + 61 THEN - 98 END * 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL - 91 * - - 75 * - + CASE - COALESCE ( CASE + + 62 WHEN 76 + - 9 THEN + + 21 WHEN MAX ( 9 ) * + 10 THEN - ( 33 ) ELSE - + SUM ( + 10 ) END, ( MIN ( ALL + ( - 32 ) ) ) + - COUNT ( * ) * 57 / + COUNT ( * ), + - 68 ) WHEN 45 THEN NULL WHEN + 75 THEN NULL WHEN - COALESCE ( + 94, 41 ) * + - AVG ( DISTINCT - - 63 ) - + COUNT ( * ) * - + MAX ( 23 ) * + - 88 THEN - - 74 + + 69 * 51 ELSE 30 / + 25 * 37 - - CAST ( NULL AS INTEGER ) END + + 32 + + + CASE 13 WHEN + + 61 THEN - 98 END * 81
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4048
SELECT 78 * + 37 + CAST( 38 AS SIGNED )
----
2924

skipif mysql # not compatible
query I rowsort label-4048
SELECT 78 * + 37 + CAST ( 38 AS INTEGER )
----
2924

query I rowsort
SELECT ( + 79 ) + - - 26 col2
----
105

query I rowsort
SELECT ALL 66 + 37 AS col0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4051
SELECT DISTINCT - 69 + - 46 + + + ( + - 13 ) + ( + 78 ) * - - CAST( NULL AS SIGNED ) - COALESCE ( + 13, 70, - SUM( ALL + 80 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT - 69 + - 46 + + + ( + - 13 ) + ( + 78 ) * - - CAST ( NULL AS INTEGER ) - COALESCE ( + 13, 70, - SUM ( ALL + 80 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT DISTINCT COUNT( * ) + - 96 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT COUNT ( * ) + - 96 AS col2
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4053
SELECT COUNT( * ) DIV - 61 AS col0, - COUNT( * ) AS col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-4053
SELECT COUNT ( * ) / - 61 AS col0, - COUNT ( * ) AS col2
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT 58 + - + COUNT( - 80 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4054
SELECT 58 + - + COUNT ( - 80 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT ALL COALESCE ( - 42, + - 49 ) * + COUNT( + 53 )
----
-42

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL COALESCE ( - 42, + - 49 ) * + COUNT ( + 53 )
----
-42

query I rowsort
SELECT ALL - 0 * + - ( - + 82 ) * + 97
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4057
SELECT ALL + 41 - + 35 AS col2, - COUNT( - 78 ) * 70 - - - 80 AS col0
----
6
-150

skipif mysql # not compatible
query II rowsort label-4057
SELECT ALL + 41 - + 35 AS col2, - COUNT ( - 78 ) * 70 - - - 80 AS col0
----
6
-150

query I rowsort
SELECT NULLIF ( - 11, + 73 / 94 ) + - 6 AS col0
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4059
SELECT - 23 * - 59 DIV + + COUNT( * ) col1
----
1357

skipif mysql # not compatible
query I rowsort label-4059
SELECT - 23 * - 59 / + + COUNT ( * ) col1
----
1357

query I rowsort
SELECT ALL + 39 * - - 98 * - 57 + - - 56 AS col0
----
-217798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4061
SELECT ALL 6 - - 74 - + ( + 4 ) + + CAST( - + 84 AS SIGNED ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL 6 - - 74 - + ( + 4 ) + + CAST ( - + 84 AS INTEGER ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT + CASE - + COUNT( * ) WHEN + ( + 88 ) THEN - 8 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4062
SELECT + CASE - + COUNT ( * ) WHEN + ( + 88 ) THEN - 8 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 54 + + 15 * 1 AS col1
----
69

query I rowsort
SELECT DISTINCT + 48 - - 6 * + ( 2 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT 99 + - - 2 * - + COUNT( * ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4065
SELECT 99 + - - 2 * - + COUNT ( * ) AS col0
----
97

query I rowsort
SELECT 47 * - 80 * + 10
----
-37600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4067
SELECT - CAST( 76 AS SIGNED ) * 31 - + - 84 col1
----
-2272

skipif mysql # not compatible
query I rowsort label-4067
SELECT - CAST ( 76 AS INTEGER ) * 31 - + - 84 col1
----
-2272

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4068
SELECT ALL - - 17 DIV - 84 + 88 * + - COUNT( + NULLIF ( 56, 90 * - ( + 19 ) + + + 18 ) ), COUNT( * ) - + + 72 AS col2
----
-88
-71

skipif mysql # not compatible
query II rowsort label-4068
SELECT ALL - - 17 / - 84 + 88 * + - COUNT ( + NULLIF ( 56, 90 * - ( + 19 ) + + + 18 ) ), COUNT ( * ) - + + 72 AS col2
----
-88
-71

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4069
SELECT DISTINCT - COALESCE ( - CAST( - 43 AS DECIMAL ), - 10 * COALESCE ( - + 70, + 94 ) / + + 31 + - 20, + ( + 6 ) ) * - + 41 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT - COALESCE ( - CAST ( - 43 AS REAL ), - 10 * COALESCE ( - + 70, + 94 ) / + + 31 + - 20, + ( + 6 ) ) * - + 41 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4070
SELECT ALL - - ( - 74 ) * + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL - - ( - 74 ) * + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT ALL - 63 * COUNT( * ) + - 29 * 1
----
-92

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL - 63 * COUNT ( * ) + - 29 * 1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4072
SELECT COUNT( * ) * + 8 * 41 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4072
SELECT COUNT ( * ) * + 8 * 41 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4073
SELECT CAST( NULL AS DECIMAL ) + ( + 45 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT CAST ( NULL AS REAL ) + ( + 45 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4074
SELECT 88 DIV 27
----
3

skipif mysql # not compatible
query I rowsort label-4074
SELECT 88 / 27
----
3

query I rowsort
SELECT - 4 * - ( + 90 ) + 94 * + + 28 + 91 + 61 * - 16 * + - 77
----
78235

query II rowsort
SELECT + 62 AS col0, + 93
----
62
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4077
SELECT 98 * - 52 DIV - MIN( + - 1 )
----
-5096

skipif mysql # not compatible
query I rowsort label-4077
SELECT 98 * - 52 / - MIN ( + - 1 )
----
-5096

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT 82 * 75 + + + COUNT( * )
----
6151

skipif mysql # not compatible
query I rowsort label-4078
SELECT 82 * 75 + + + COUNT ( * )
----
6151

query I rowsort
SELECT ALL - 46 + + 33 AS col0
----
-13

query I rowsort
SELECT ALL + 82 + + 40 + 24 AS col1
----
146

query I rowsort
SELECT DISTINCT 61 + - - 67 - - + 47 AS col0
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4082
SELECT ALL - 84, - CAST( - - 63 AS SIGNED ) AS col0
----
-84
-63

skipif mysql # not compatible
query II rowsort label-4082
SELECT ALL - 84, - CAST ( - - 63 AS INTEGER ) AS col0
----
-84
-63

query I rowsort
SELECT DISTINCT - 28 + 47 col2
----
19

query I rowsort
SELECT 48 * - 72
----
-3456

onlyif mysql # aggregate syntax: 
query II rowsort label-4085
SELECT - 92 AS col0, - COUNT( * )
----
-92
-1

skipif mysql # not compatible
query II rowsort label-4085
SELECT - 92 AS col0, - COUNT ( * )
----
-92
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT ALL 13 - + - SUM( + 72 ) col2
----
85

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL 13 - + - SUM ( + 72 ) col2
----
85

query I rowsort
SELECT 38 * - 52 AS col1
----
-1976

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT MAX( + 72 ) * COUNT( * ) * - - 64
----
4608

skipif mysql # not compatible
query I rowsort label-4088
SELECT MAX ( + 72 ) * COUNT ( * ) * - - 64
----
4608

onlyif mysql # DIV for integer division: 
query I rowsort label-4089
SELECT 48 - + 44 + 34 DIV - - 57 col1
----
4

skipif mysql # not compatible
query I rowsort label-4089
SELECT 48 - + 44 + 34 / - - 57 col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT DISTINCT MIN( ALL + 27 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4090
SELECT DISTINCT MIN ( ALL + 27 ) AS col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4091
SELECT CAST( NULL AS SIGNED ) * - + 30 * - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4091
SELECT CAST ( NULL AS INTEGER ) * - + 30 * - 76
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4092
SELECT + 43 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-4092
SELECT + 43 / 97
----
0

query I rowsort
SELECT 24 * - + 83
----
-1992

onlyif mysql # DIV for integer division: 
query I rowsort label-4094
SELECT - 52 * 39 DIV + + 65
----
-31

skipif mysql # not compatible
query I rowsort label-4094
SELECT - 52 * 39 / + + 65
----
-31

query I rowsort
SELECT 83 - - 32 AS col0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT 70 * - 91 - 59 + MAX( + - 36 )
----
-6465

skipif mysql # not compatible
query I rowsort label-4096
SELECT 70 * - 91 - 59 + MAX ( + - 36 )
----
-6465

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT ALL MIN( 23 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL MIN ( 23 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4098
SELECT - CASE + 25 WHEN - + 25 * - - ( NULLIF ( + + COUNT( * ), - 14 ) ) THEN + 71 END, + COALESCE ( + 30, - 63, + 39 ) + 91 AS col2
----
NULL
121

skipif mysql # not compatible
query II rowsort label-4098
SELECT - CASE + 25 WHEN - + 25 * - - ( NULLIF ( + + COUNT ( * ), - 14 ) ) THEN + 71 END, + COALESCE ( + 30, - 63, + 39 ) + 91 AS col2
----
NULL
121

query I rowsort
SELECT + 93 * + 48 AS col2
----
4464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4100
SELECT 93 * CASE - 6 WHEN + 93 THEN + 25 ELSE - 21 END + + 55 + - 71 + + CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4100
SELECT 93 * CASE - 6 WHEN + 93 THEN + 25 ELSE - 21 END + + 55 + - 71 + + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 66 * + 68 AS col2
----
-4488

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT - - NULLIF ( 92, + 55 + 7 - + 18 + + 35 + ( - 59 ) * COUNT( * ) ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-4102
SELECT - - NULLIF ( 92, + 55 + 7 - + 18 + + 35 + ( - 59 ) * COUNT ( * ) ) AS col0
----
92

query I rowsort
SELECT DISTINCT + 33 * ( ( - 23 ) )
----
-759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4104
SELECT DISTINCT - 45 * + + CASE - CASE + - COUNT( * ) WHEN + 92 / + + 87 THEN NULL WHEN - + COALESCE ( - - 57, + 58 ) + + CAST( NULL AS SIGNED ) + CAST( - 11 AS SIGNED ) * - - NULLIF ( - + 99, - COUNT( * ) ) THEN - COUNT( * ) END WHEN - 53 THEN - 95 ELSE 22 * - + 75 END + + 32 + - COUNT( * )
----
74281

skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT - 45 * + + CASE - CASE + - COUNT ( * ) WHEN + 92 / + + 87 THEN NULL WHEN - + COALESCE ( - - 57, + 58 ) + + CAST ( NULL AS INTEGER ) + CAST ( - 11 AS INTEGER ) * - - NULLIF ( - + 99, - COUNT ( * ) ) THEN - COUNT ( * ) END WHEN - 53 THEN - 95 ELSE 22 * - + 75 END + + 32 + - COUNT ( * )
----
74281

query I rowsort
SELECT ALL - - NULLIF ( - + ( 26 ), - 99 ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT - 2 * + 83 + - - MIN( - - 31 ) + - - 17 AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-4106
SELECT - 2 * + 83 + - - MIN ( - - 31 ) + - - 17 AS col2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT + COUNT( - ( - 40 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4107
SELECT + COUNT ( - ( - 40 ) ) AS col0
----
1

query I rowsort
SELECT 33 * + 45 AS col1
----
1485

onlyif mysql # DIV for integer division: 
query I rowsort label-4109
SELECT ALL - 53 * + 97 + + - 71 + + 58 DIV 79 AS col0
----
-5212

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL - 53 * + 97 + + - 71 + + 58 / 79 AS col0
----
-5212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4110
SELECT 14 DIV - - 93 + + + COALESCE ( + ( + CAST( ( + 37 ) AS SIGNED ) ), 54 * + 36 + + 97 + - SUM( DISTINCT 19 ) + + + 34 + 38, - - 32 )
----
37

skipif mysql # not compatible
query I rowsort label-4110
SELECT 14 / - - 93 + + + COALESCE ( + ( + CAST ( ( + 37 ) AS INTEGER ) ), 54 * + 36 + + 97 + - SUM ( DISTINCT 19 ) + + + 34 + 38, - - 32 )
----
37

query I rowsort
SELECT - 85 + + 80 * + COALESCE ( - - ( - 27 ), + 33 + 38 * + + 14 ) AS col0
----
-2245

query I rowsort
SELECT ALL + 75 * 46 + + 68 col0
----
3518

onlyif mysql # aggregate syntax: 
query II rowsort label-4113
SELECT ALL - COALESCE ( 18, - NULLIF ( - NULLIF ( - ( + 98 ), - 87 ), + - 88 + - + 29 ) * + - COUNT( + 91 ) ) * 16 * 77 * + - 0 AS col1, ( - + 54 ) col0
----
0
-54

skipif mysql # not compatible
query II rowsort label-4113
SELECT ALL - COALESCE ( 18, - NULLIF ( - NULLIF ( - ( + 98 ), - 87 ), + - 88 + - + 29 ) * + - COUNT ( + 91 ) ) * 16 * 77 * + - 0 AS col1, ( - + 54 ) col0
----
0
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4114
SELECT ALL + COALESCE ( - + 85, 0, - COUNT( * ) ) * 14 * ( + COUNT( * ) ) + + + MAX( + 57 ) + - CASE + 75 WHEN COUNT( * ) THEN - - 78 WHEN 95 * - 34 THEN - - COUNT( ALL - 52 ) - - 76 WHEN + CASE - 52 WHEN + - 65 + CAST( 67 AS SIGNED ) + 8 / + 99 THEN - 33 WHEN + - 68 THEN NULL ELSE + 22 + - 22 * - COALESCE ( + 46, - 75 + + ( - 2 ) * + 26, + 53 / - 97 * - - COUNT( * ) + - - 96 ) END THEN NULL END * + 74 / + ( + ( 49 ) ) * - COUNT( * ) + - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL + COALESCE ( - + 85, 0, - COUNT ( * ) ) * 14 * ( + COUNT ( * ) ) + + + MAX ( + 57 ) + - CASE + 75 WHEN COUNT ( * ) THEN - - 78 WHEN 95 * - 34 THEN - - COUNT ( ALL - 52 ) - - 76 WHEN + CASE - 52 WHEN + - 65 + CAST ( 67 AS INTEGER ) + 8 / + 99 THEN - 33 WHEN + - 68 THEN NULL ELSE + 22 + - 22 * - COALESCE ( + 46, - 75 + + ( - 2 ) * + 26, + 53 / - 97 * - - COUNT ( * ) + - - 96 ) END THEN NULL END * + 74 / + ( + ( 49 ) ) * - COUNT ( * ) + - 39 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4115
SELECT DISTINCT - ( - + 42 ) * + CAST( - 56 AS SIGNED ) + - COUNT( * )
----
-2353

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT - ( - + 42 ) * + CAST ( - 56 AS INTEGER ) + - COUNT ( * )
----
-2353

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT ALL 12 * + 52 + SUM( DISTINCT ( + 87 ) ) + 11 + 39 * + ( ( - - ( + - 77 ) ) ) * 45 - 16 * - - 26
----
-134829

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL 12 * + 52 + SUM ( DISTINCT ( + 87 ) ) + 11 + 39 * + ( ( - - ( + - 77 ) ) ) * 45 - 16 * - - 26
----
-134829

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4117
SELECT - 24 * - - COUNT( * ) - 99 DIV - 30 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4117
SELECT - 24 * - - COUNT ( * ) - 99 / - 30 AS col2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4118
SELECT - 66 * + 53 * - - CAST( NULL AS SIGNED ) * - 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT - 66 * + 53 * - - CAST ( NULL AS INTEGER ) * - 34 AS col1
----
NULL

query I rowsort
SELECT - 25 + 19
----
-6

query I rowsort
SELECT - 31 + + 5
----
-26

query I rowsort
SELECT - ( 87 ) + + 61 * + 5
----
218

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT ALL + 52 - + 74 - - 50 + + CASE + - 23 WHEN + ( + 14 ) - COUNT( * ) + + - 23 THEN NULL WHEN - 11 THEN 28 ELSE NULL END / - + 5 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL + 52 - + 74 - - 50 + + CASE + - 23 WHEN + ( + 14 ) - COUNT ( * ) + + - 23 THEN NULL WHEN - 11 THEN 28 ELSE NULL END / - + 5 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4123
SELECT - 61 * + CASE - CAST( - + 54 AS DECIMAL ) WHEN COUNT( * ) - - CAST( NULL AS SIGNED ) + - + 73 * + 98 * - 40 THEN - 97 - + 25 + 9 * - 19 WHEN + 28 THEN 98 / - COUNT( DISTINCT + 64 ) + - ( - + 4 ) * + - 84 + + - 49 - + CAST( + - 21 AS SIGNED ) - ( - 23 ) / - COUNT( * ) END + + 70 + 57 + - 64 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT - 61 * + CASE - CAST ( - + 54 AS REAL ) WHEN COUNT ( * ) - - CAST ( NULL AS INTEGER ) + - + 73 * + 98 * - 40 THEN - 97 - + 25 + 9 * - 19 WHEN + 28 THEN 98 / - COUNT ( DISTINCT + 64 ) + - ( - + 4 ) * + - 84 + + - 49 - + CAST ( + - 21 AS INTEGER ) - ( - 23 ) / - COUNT ( * ) END + + 70 + 57 + - 64 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT COUNT( ALL - + 63 )
----
1

skipif mysql # not compatible
query I rowsort label-4124
SELECT COUNT ( ALL - + 63 )
----
1

query II rowsort
SELECT ALL ( - + 6 ) AS col0, 13 AS col1
----
-6
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4126
SELECT DISTINCT 42 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT 42 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - + 44 + + 73
----
29

query I rowsort
SELECT - - NULLIF ( 55, - 49 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT - COUNT( DISTINCT + - 41 )
----
-1

skipif mysql # not compatible
query I rowsort label-4129
SELECT - COUNT ( DISTINCT + - 41 )
----
-1

query I rowsort
SELECT - - 76 + - 61 + - 64 * - - CASE 17 WHEN - + 76 THEN NULL ELSE 47 END
----
-2993

onlyif mysql # aggregate syntax: 
query II rowsort label-4131
SELECT - + SUM( - 77 ), - 19 * + + 31 * - - 13 * + ( - 12 ) col2
----
77
91884

skipif mysql # not compatible
query II rowsort label-4131
SELECT - + SUM ( - 77 ), - 19 * + + 31 * - - 13 * + ( - 12 ) col2
----
77
91884

onlyif mysql # DIV for integer division: 
query I rowsort label-4132
SELECT DISTINCT + 48 + + - 8 DIV - 84 + - ( + + 37 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT + 48 + + - 8 / - 84 + - ( + + 37 ) AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4133
SELECT ALL CAST( NULL AS SIGNED ) + - 27 / 83 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL CAST ( NULL AS INTEGER ) + - 27 / 83 col1
----
NULL

query I rowsort
SELECT + + NULLIF ( + 69, - + 44 * 89 * - AVG ( - 17 ) ) + 4
----
73

query I rowsort
SELECT DISTINCT - ( - 11 ) * - 94 AS col0
----
-1034

query II rowsort
SELECT + - 60 + + 91 * 5 * - ( - 63 ) AS col2, - 61 AS col0
----
28605
-61

query I rowsort
SELECT ALL + 55 + + 1
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4138
SELECT - MAX( 96 ) AS col0, - 73 AS col0
----
-96
-73

skipif mysql # not compatible
query II rowsort label-4138
SELECT - MAX ( 96 ) AS col0, - 73 AS col0
----
-96
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT + - 74 + SUM( + 52 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-4139
SELECT + - 74 + SUM ( + 52 ) AS col2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4140
SELECT + CASE 5 WHEN 74 THEN NULL ELSE + ( + CAST( NULL AS SIGNED ) ) END, + CASE - - ( - + AVG ( + 61 ) ) WHEN 7 THEN + 80 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4140
SELECT + CASE 5 WHEN 74 THEN NULL ELSE + ( + CAST ( NULL AS INTEGER ) ) END, + CASE - - ( - + AVG ( + 61 ) ) WHEN 7 THEN + 80 END
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4141
SELECT - 96 * - 96 + + SUM( DISTINCT + - 47 ) DIV - + 78 - 53 * - COUNT( - 35 ) * - 86 * - 56 * - 30 * - + 75 DIV + 75 AS col1
----
7666656

skipif mysql # not compatible
query I rowsort label-4141
SELECT - 96 * - 96 + + SUM ( DISTINCT + - 47 ) / - + 78 - 53 * - COUNT ( - 35 ) * - 86 * - 56 * - 30 * - + 75 / + 75 AS col1
----
7666656

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT DISTINCT NULLIF ( - 36, - - COUNT( * ) * - 12 ) * 43
----
-1548

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT NULLIF ( - 36, - - COUNT ( * ) * - 12 ) * 43
----
-1548

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT + ( MIN( ALL - 89 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-4143
SELECT + ( MIN ( ALL - 89 ) )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4144
SELECT ALL ( - - 97 ) * + + CAST( NULL AS SIGNED ) - + 96 + + 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL ( - - 97 ) * + + CAST ( NULL AS INTEGER ) - + 96 + + 13 AS col2
----
NULL

query I rowsort
SELECT + 79 + 69
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT DISTINCT CASE - + COUNT( * ) WHEN + - 51 + - CASE - COUNT( * ) WHEN + + 10 * - 56 THEN + 71 / + 24 WHEN + 72 THEN NULL END THEN - + 92 + + - 38 * + NULLIF ( - 74, - 38 ) WHEN 0 * - - 74 THEN NULL END * - 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT CASE - + COUNT ( * ) WHEN + - 51 + - CASE - COUNT ( * ) WHEN + + 10 * - 56 THEN + 71 / + 24 WHEN + 72 THEN NULL END THEN - + 92 + + - 38 * + NULLIF ( - 74, - 38 ) WHEN 0 * - - 74 THEN NULL END * - 30 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL + MAX( ALL - 77 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL + MAX ( ALL - 77 ) AS col2
----
-77

query I rowsort
SELECT ALL - ( - 32 ) * 34 - - 21 + - NULLIF ( 10, + 68 )
----
1099

query I rowsort
SELECT + 43 * + 24 AS col1
----
1032

query I rowsort
SELECT ( - - 60 ) AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4151
SELECT CASE CASE + + 94 WHEN + 81 - + 88 - + - 50 * + + ( + - CAST( + 63 AS SIGNED ) ) THEN + COUNT( * ) WHEN - 5 THEN + CAST( NULL AS SIGNED ) END WHEN + 98 + - 13 THEN - ( + 38 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT CASE CASE + + 94 WHEN + 81 - + 88 - + - 50 * + + ( + - CAST ( + 63 AS INTEGER ) ) THEN + COUNT ( * ) WHEN - 5 THEN + CAST ( NULL AS INTEGER ) END WHEN + 98 + - 13 THEN - ( + 38 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT - ( - 11 ) * - COUNT( * ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-4152
SELECT - ( - 11 ) * - COUNT ( * ) AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4153
SELECT - CAST( NULL AS SIGNED ) + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-4153
SELECT - CAST ( NULL AS INTEGER ) + - 84
----
NULL

query I rowsort
SELECT ALL + 48 * + NULLIF ( - COALESCE ( - 50, - 16 ), - 93 )
----
2400

query I rowsort
SELECT DISTINCT + 39 * + - 82 * + 10 col2
----
-31980

query II rowsort
SELECT - ( + 79 ) * + + 32 AS col2, + 11 * + 26
----
-2528
286

query I rowsort
SELECT ALL - 21 * ( + 41 )
----
-861

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4158
SELECT - 65 DIV - - 79 * - COUNT( * ) * + 94
----
0

skipif mysql # not compatible
query I rowsort label-4158
SELECT - 65 / - - 79 * - COUNT ( * ) * + 94
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4159
SELECT ALL - 48 * + 40 * - 69 AS col0, CAST( 26 AS SIGNED ) + + 47 * - - ( ( + + 38 ) ) * + 3 AS col1
----
132480
5384

skipif mysql # not compatible
query II rowsort label-4159
SELECT ALL - 48 * + 40 * - 69 AS col0, CAST ( 26 AS INTEGER ) + + 47 * - - ( ( + + 38 ) ) * + 3 AS col1
----
132480
5384

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT + MIN( ALL ( + ( - 75 ) ) ) * NULLIF ( - 59 + 88, - 37 + COALESCE ( AVG ( + 8 ), + 73, - 98 ) ) AS col1
----
-2175

skipif mysql # not compatible
query I rowsort label-4160
SELECT + MIN ( ALL ( + ( - 75 ) ) ) * NULLIF ( - 59 + 88, - 37 + COALESCE ( AVG ( + 8 ), + 73, - 98 ) ) AS col1
----
-2175

query I rowsort
SELECT + 12 + - 81 * + 48 col1
----
-3876

query I rowsort
SELECT - 18 * + 25
----
-450

query I rowsort
SELECT ALL ( 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT - 82 - - 51 * - COUNT( * ) AS col0
----
-133

skipif mysql # not compatible
query I rowsort label-4164
SELECT - 82 - - 51 * - COUNT ( * ) AS col0
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT MAX( - 40 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4165
SELECT MAX ( - 40 ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT DISTINCT + COUNT( * ) + 48
----
49

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT + COUNT ( * ) + 48
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4167
SELECT - ( MIN( ALL - 6 ) ) + SUM( ALL + CASE 90 WHEN 32 THEN - ( + 36 ) ELSE + CAST( NULL AS SIGNED ) * - 29 END + ( - 31 + 25 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT - ( MIN ( ALL - 6 ) ) + SUM ( ALL + CASE 90 WHEN 32 THEN - ( + 36 ) ELSE + CAST ( NULL AS INTEGER ) * - 29 END + ( - 31 + 25 ) )
----
NULL

query I rowsort
SELECT ALL + 58 + + 9
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT - COUNT( DISTINCT 97 )
----
-1

skipif mysql # not compatible
query I rowsort label-4169
SELECT - COUNT ( DISTINCT 97 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT ALL 46 + CASE NULLIF ( 85, + 91 - + CASE + 12 WHEN - 44 + - COUNT( * ) THEN 5 * 48 WHEN 22 * COUNT( * ) THEN 69 END ) WHEN - 26 THEN COUNT( DISTINCT 33 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL 46 + CASE NULLIF ( 85, + 91 - + CASE + 12 WHEN - 44 + - COUNT ( * ) THEN 5 * 48 WHEN 22 * COUNT ( * ) THEN 69 END ) WHEN - 26 THEN COUNT ( DISTINCT 33 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4171
SELECT DISTINCT ( - 65 ) * CASE CASE COUNT( * ) WHEN + 10 THEN COUNT( * ) * 6 ELSE NULL END + - 75 * 10 WHEN + 84 / CAST( NULL AS SIGNED ) THEN NULL WHEN + 50 THEN 90 * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT ( - 65 ) * CASE CASE COUNT ( * ) WHEN + 10 THEN COUNT ( * ) * 6 ELSE NULL END + - 75 * 10 WHEN + 84 / CAST ( NULL AS INTEGER ) THEN NULL WHEN + 50 THEN 90 * COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 31 + - 94
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4173
SELECT DISTINCT - CASE 42 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN 15 THEN + COUNT( ALL 52 ) * CAST( NULL AS SIGNED ) + + NULLIF ( - 30, - COUNT( DISTINCT 6 ) * + 72 ) * 58 END + + 44 * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-4173
SELECT DISTINCT - CASE 42 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN 15 THEN + COUNT ( ALL 52 ) * CAST ( NULL AS INTEGER ) + + NULLIF ( - 30, - COUNT ( DISTINCT 6 ) * + 72 ) * 58 END + + 44 * 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT ALL + COUNT( * ) + 6 col2
----
7

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL + COUNT ( * ) + 6 col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT ALL ( COUNT( * ) ) + + 77 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL ( COUNT ( * ) ) + + 77 AS col0
----
78

query I rowsort
SELECT - 92 * + NULLIF ( + ( - 76 ), ( + 74 ) / + 58 ) AS col2
----
6992

query I rowsort
SELECT ALL 4 * - 47
----
-188

onlyif mysql # DIV for integer division: 
query I rowsort label-4178
SELECT 14 DIV 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4178
SELECT 14 / 26 AS col0
----
0

query I rowsort
SELECT 49 * 37
----
1813

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT ALL + CASE - 95 WHEN 95 + + 19 * 27 THEN COUNT( * ) * - 66 WHEN - SUM( DISTINCT 96 ) - 57 THEN + 59 END - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL + CASE - 95 WHEN 95 + + 19 * 27 THEN COUNT ( * ) * - 66 WHEN - SUM ( DISTINCT 96 ) - 57 THEN + 59 END - 69
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4181
SELECT DISTINCT 91 DIV CAST( - 78 AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT 91 / CAST ( - 78 AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT COALESCE ( - MIN( DISTINCT 32 ), + 63 ) * + 45 AS col0
----
-1440

skipif mysql # not compatible
query I rowsort label-4182
SELECT COALESCE ( - MIN ( DISTINCT 32 ), + 63 ) * + 45 AS col0
----
-1440

query I rowsort
SELECT 24 * - 18 + - 79
----
-511

onlyif mysql # DIV for integer division: 
query I rowsort label-4184
SELECT ALL 37 DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL 37 / + 49
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4185
SELECT 29 DIV 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4185
SELECT 29 / 83 AS col0
----
0

query I rowsort
SELECT - 16 * 27 + 64
----
-368

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4187
SELECT CAST( 99 AS SIGNED ) * ( - 17 + 12 DIV 91 ) AS col2
----
-1683

skipif mysql # not compatible
query I rowsort label-4187
SELECT CAST ( 99 AS INTEGER ) * ( - 17 + 12 / 91 ) AS col2
----
-1683

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT COUNT( DISTINCT - 16 ) * + 47
----
47

skipif mysql # not compatible
query I rowsort label-4188
SELECT COUNT ( DISTINCT - 16 ) * + 47
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4189
SELECT 48 + - COUNT( * ) DIV 17
----
48

skipif mysql # not compatible
query I rowsort label-4189
SELECT 48 + - COUNT ( * ) / 17
----
48

query I rowsort
SELECT ALL 66 * - 90 col1
----
-5940

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT ( CASE 35 WHEN 44 / - 85 THEN + 31 ELSE NULL END ) + - COALESCE ( + CASE + 67 WHEN COUNT( * ) * 59 THEN NULL ELSE - 66 * - MIN( ALL - 77 * 39 ) END, + MIN( DISTINCT - 10 ) * + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT ( CASE 35 WHEN 44 / - 85 THEN + 31 ELSE NULL END ) + - COALESCE ( + CASE + 67 WHEN COUNT ( * ) * 59 THEN NULL ELSE - 66 * - MIN ( ALL - 77 * 39 ) END, + MIN ( DISTINCT - 10 ) * + 95 )
----
NULL

query I rowsort
SELECT ALL 84 * + 99 AS col0
----
8316

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4193
SELECT CAST( + AVG ( - 28 ) AS SIGNED ) * + 48 col1
----
-1344

skipif mysql # not compatible
query I rowsort label-4193
SELECT CAST ( + AVG ( - 28 ) AS INTEGER ) * + 48 col1
----
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT DISTINCT - NULLIF ( 36, + SUM( ALL + 20 ) + + 98 / - 24 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT - NULLIF ( 36, + SUM ( ALL + 20 ) + + 98 / - 24 ) AS col2
----
-36

query I rowsort
SELECT ALL 30 * + 56
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT SUM( ALL 18 ) * - 19 + 39 * - 59 AS col0
----
-2643

skipif mysql # not compatible
query I rowsort label-4196
SELECT SUM ( ALL 18 ) * - 19 + 39 * - 59 AS col0
----
-2643

query I rowsort
SELECT 54 * - 30
----
-1620

query I rowsort
SELECT DISTINCT 65 + 89
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT + 23 + ( MIN( ALL 72 ) ) * 99 AS col1
----
7151

skipif mysql # not compatible
query I rowsort label-4199
SELECT + 23 + ( MIN ( ALL 72 ) ) * 99 AS col1
----
7151

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT - MAX( DISTINCT 73 ) * + 56 + - COALESCE ( + 61, - 57 ) * + 97 AS col2
----
-10005

skipif mysql # not compatible
query I rowsort label-4200
SELECT - MAX ( DISTINCT 73 ) * + 56 + - COALESCE ( + 61, - 57 ) * + 97 AS col2
----
-10005

onlyif mysql # DIV for integer division: 
query I rowsort label-4201
SELECT ALL - 40 DIV - 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL - 40 / - 97 AS col2
----
0

query I rowsort
SELECT 68 + + 63 * - 52 AS col2
----
-3208

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT DISTINCT - + 8 + + MAX( 4 - + 59 * + 36 ) * + 28 AS col1
----
-59368

skipif mysql # not compatible
query I rowsort label-4203
SELECT DISTINCT - + 8 + + MAX ( 4 - + 59 * + 36 ) * + 28 AS col1
----
-59368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4204
SELECT ALL 59 + COUNT( NULLIF ( CASE - 44 WHEN 31 THEN - 62 + 12 END, - 99 + + CAST( NULL AS SIGNED ) ) ) DIV + 49 col0
----
59

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL 59 + COUNT ( NULLIF ( CASE - 44 WHEN 31 THEN - 62 + 12 END, - 99 + + CAST ( NULL AS INTEGER ) ) ) / + 49 col0
----
59

query I rowsort
SELECT ALL - 90 * + 67 AS col1
----
-6030

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4206
SELECT ALL - ( CAST( - 73 AS SIGNED ) ) + + 64 AS col1
----
137

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL - ( CAST ( - 73 AS INTEGER ) ) + + 64 AS col1
----
137

query I rowsort
SELECT ALL + - 95 + 24 * ( ( + 72 ) ) AS col0
----
1633

query I rowsort
SELECT DISTINCT - NULLIF ( 96, 64 ) + CASE - 27 WHEN + 55 THEN + 99 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4209
SELECT DISTINCT + ( 89 ) + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT + ( 89 ) + + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT - - 66 + + 49 col2
----
115

query I rowsort
SELECT ALL + - 3 + + 36
----
33

query I rowsort
SELECT 16 * + 25
----
400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4213
SELECT ALL - - 91 DIV - COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL - - 91 / - COUNT ( * ) AS col0
----
-91

query I rowsort
SELECT DISTINCT + - 28 - + 56 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT - ( COALESCE ( - 67, 89 + + 43, + 81 * + ( - 45 ), COUNT( 1 ), 95 ) ) * + COUNT( * ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-4215
SELECT - ( COALESCE ( - 67, 89 + + 43, + 81 * + ( - 45 ), COUNT ( 1 ), 95 ) ) * + COUNT ( * ) AS col0
----
67

query I rowsort
SELECT ALL 75 * - 97
----
-7275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4217
SELECT + COUNT( * ) + MIN( ALL 60 ) DIV - 80 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4217
SELECT + COUNT ( * ) + MIN ( ALL 60 ) / - 80 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT ALL - MIN( 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL - MIN ( 28 ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT ALL 32 - - NULLIF ( + COUNT( * ), 28 + 80 ) * 3 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL 32 - - NULLIF ( + COUNT ( * ), 28 + 80 ) * 3 AS col0
----
35

query I rowsort
SELECT 42 * 3 AS col1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT ALL 50 * + ( + COUNT( * ) )
----
50

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL 50 * + ( + COUNT ( * ) )
----
50

query I rowsort
SELECT 49 + - 35 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT MAX( ALL 69 ) + 99 AS col1
----
168

skipif mysql # not compatible
query I rowsort label-4223
SELECT MAX ( ALL 69 ) + 99 AS col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT 32 * CASE - 91 WHEN 32 THEN + MIN( ALL - 66 ) + COUNT( * ) * - NULLIF ( ( 48 ), - 32 + 92 ) END * SUM( ALL - 86 * 88 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT 32 * CASE - 91 WHEN 32 THEN + MIN ( ALL - 66 ) + COUNT ( * ) * - NULLIF ( ( 48 ), - 32 + 92 ) END * SUM ( ALL - 86 * 88 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 47 * - 23 * - 71 AS col0
----
-76751

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT ALL - CASE AVG ( 4 ) WHEN + 9 THEN COUNT( * ) * 80 WHEN COUNT( * ) THEN NULL ELSE SUM( DISTINCT 51 ) END
----
-51

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL - CASE AVG ( 4 ) WHEN + 9 THEN COUNT ( * ) * 80 WHEN COUNT ( * ) THEN NULL ELSE SUM ( DISTINCT 51 ) END
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT ALL - CASE + 56 WHEN + COUNT( DISTINCT 24 ) THEN COUNT( * ) ELSE CASE + 47 WHEN 96 THEN NULL WHEN - 55 THEN + AVG ( ALL - 21 ) ELSE CASE + COALESCE ( + COUNT( * ), + 28 + 63 ) WHEN - 77 THEN NULL WHEN - 72 THEN 26 + + 1 / COUNT( * ) END END END * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT ALL - CASE + 56 WHEN + COUNT ( DISTINCT 24 ) THEN COUNT ( * ) ELSE CASE + 47 WHEN 96 THEN NULL WHEN - 55 THEN + AVG ( ALL - 21 ) ELSE CASE + COALESCE ( + COUNT ( * ), + 28 + 63 ) WHEN - 77 THEN NULL WHEN - 72 THEN 26 + + 1 / COUNT ( * ) END END END * + 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT 58 * + - MIN( + 96 ) * + COUNT( * ) AS col1
----
-5568

skipif mysql # not compatible
query I rowsort label-4228
SELECT 58 * + - MIN ( + 96 ) * + COUNT ( * ) AS col1
----
-5568

query I rowsort
SELECT DISTINCT - ( + 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT COUNT( DISTINCT 68 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4230
SELECT COUNT ( DISTINCT 68 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4231
SELECT 77 DIV + COALESCE ( + 45, + 74 * + COALESCE ( - 69, + 37 * + 25 + 55 * 29 ) ) DIV COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4231
SELECT 77 / + COALESCE ( + 45, + 74 * + COALESCE ( - 69, + 37 * + 25 + 55 * 29 ) ) / COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL - 30 + 78 AS col1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-4233
SELECT ALL 36 + NULLIF ( - 2, 34 ) DIV - 13
----
36

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL 36 + NULLIF ( - 2, 34 ) / - 13
----
36

query I rowsort
SELECT 83 + 2 col0
----
85

query I rowsort
SELECT ALL 24 + - 12 + 38 AS col1
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4236
SELECT DISTINCT 83 DIV 39 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT 83 / 39 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4237
SELECT 67 DIV + + 42
----
1

skipif mysql # not compatible
query I rowsort label-4237
SELECT 67 / + + 42
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4238
SELECT COUNT( * ) DIV - + 9 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4238
SELECT COUNT ( * ) / - + 9 AS col1
----
0

query I rowsort
SELECT - COALESCE ( + + ( - 45 ), + 39, 66 * 41 ) * 64 AS col0
----
2880

query I rowsort
SELECT ALL - 0 + - - 95
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT DISTINCT COUNT( * ) + - + 16 + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT COUNT ( * ) + - + 16 + COUNT ( * )
----
-14

query I rowsort
SELECT ALL - + NULLIF ( - 3, 20 * - 92 + - 68 * 83 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT ALL - SUM( DISTINCT - 62 ) + 27
----
89

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL - SUM ( DISTINCT - 62 ) + 27
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4244
SELECT MAX( DISTINCT - + CASE - 31 WHEN - NULLIF ( 30, 81 + - 27 ) * - 78 + - 86 * - 77 THEN + 70 WHEN + 2 THEN ( - CAST( + 89 AS SIGNED ) ) ELSE + 92 DIV 47 END )
----
-1

skipif mysql # not compatible
query I rowsort label-4244
SELECT MAX ( DISTINCT - + CASE - 31 WHEN - NULLIF ( 30, 81 + - 27 ) * - 78 + - 86 * - 77 THEN + 70 WHEN + 2 THEN ( - CAST ( + 89 AS INTEGER ) ) ELSE + 92 / 47 END )
----
-1

query I rowsort
SELECT ALL + + 68 + - 16 - + 66 AS col1
----
-14

query I rowsort
SELECT - 19 + 32
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4247
SELECT 52 * 38 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT 52 * 38 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT ALL COUNT( ALL + + 23 ) + 5 * + 2
----
11

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL COUNT ( ALL + + 23 ) + 5 * + 2
----
11

query I rowsort
SELECT - 62 * + - 84
----
5208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4250
SELECT + 76 - CASE 73 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN + NULLIF ( - 87, - COALESCE ( 1, 56, - 72 ) ) THEN 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4250
SELECT + 76 - CASE 73 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN + NULLIF ( - 87, - COALESCE ( 1, 56, - 72 ) ) THEN 32 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4251
SELECT ALL COUNT( * ) DIV 16 - 78
----
-78

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL COUNT ( * ) / 16 - 78
----
-78

query I rowsort
SELECT + 90 - - 94
----
184

query I rowsort
SELECT + - 54 + - 16
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4254
SELECT ALL + ( + 17 ) DIV NULLIF ( 87 * COUNT( * ) + - 0 * + COUNT( - 83 + 40 * + COALESCE ( - 54, 92 * - 70 ) ), + ( 25 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL + ( + 17 ) / NULLIF ( 87 * COUNT ( * ) + - 0 * + COUNT ( - 83 + 40 * + COALESCE ( - 54, 92 * - 70 ) ), + ( 25 ) )
----
0

query I rowsort
SELECT - + 63 * - 93
----
5859

query II rowsort
SELECT - 55, + 64 AS col2
----
-55
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4257
SELECT DISTINCT CASE - 55 WHEN CAST( + 13 AS SIGNED ) THEN + CASE CASE WHEN NOT - 20 BETWEEN ( + 10 ) AND + COALESCE ( 44, + 46 / - 48 ) THEN - CAST( NULL AS SIGNED ) END WHEN - CAST( NULL AS SIGNED ) THEN 75 END ELSE NULL END * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT CASE - 55 WHEN CAST ( + 13 AS INTEGER ) THEN + CASE CASE WHEN NOT - 20 BETWEEN ( + 10 ) AND + COALESCE ( 44, + 46 / - 48 ) THEN - CAST ( NULL AS INTEGER ) END WHEN - CAST ( NULL AS INTEGER ) THEN 75 END ELSE NULL END * 38
----
NULL

query I rowsort
SELECT - NULLIF ( + - 79, - 92 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT - SUM( + 80 ) - + 67
----
-147

skipif mysql # not compatible
query I rowsort label-4259
SELECT - SUM ( + 80 ) - + 67
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-4260
SELECT + 3 DIV - - ( 41 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4260
SELECT + 3 / - - ( 41 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT - COALESCE ( + 41, + - COUNT( * ), + 92 * + ( 61 * 95 ) ) * 85
----
-3485

skipif mysql # not compatible
query I rowsort label-4261
SELECT - COALESCE ( + 41, + - COUNT ( * ), + 92 * + ( 61 * 95 ) ) * 85
----
-3485

query I rowsort
SELECT ALL AVG ( + - CASE + - 77 WHEN + 51 THEN 6 * 9 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT - CASE + + 99 WHEN + 95 + - NULLIF ( 26, 37 * - 30 ) * + 79 THEN NULL ELSE 45 + - COUNT( * ) * 34 END
----
-11

skipif mysql # not compatible
query I rowsort label-4263
SELECT - CASE + + 99 WHEN + 95 + - NULLIF ( 26, 37 * - 30 ) * + 79 THEN NULL ELSE 45 + - COUNT ( * ) * 34 END
----
-11

query I rowsort
SELECT + 79 * 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4265
SELECT ALL COUNT( * ), + 22 AS col1
----
1
22

skipif mysql # not compatible
query II rowsort label-4265
SELECT ALL COUNT ( * ), + 22 AS col1
----
1
22

query II rowsort
SELECT 4, - NULLIF ( + - 36, 40 ) AS col1
----
4
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4267
SELECT DISTINCT NULLIF ( - 82, CASE + 4 WHEN CAST( 92 AS DECIMAL ) THEN NULL WHEN 60 THEN NULL WHEN + 95 * 99 + - 64 THEN 96 END ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT NULLIF ( - 82, CASE + 4 WHEN CAST ( 92 AS REAL ) THEN NULL WHEN 60 THEN NULL WHEN + 95 * 99 + - 64 THEN 96 END ) AS col1
----
-82

query II rowsort
SELECT DISTINCT 25 AS col0, - 72 AS col2
----
25
-72

query I rowsort
SELECT - 49 * + 74
----
-3626

query I rowsort
SELECT ALL - 61 + - 49 col1
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4271
SELECT DISTINCT 70 * COUNT( * ) + - + CAST( + 80 AS SIGNED ) + COUNT( * ) DIV + 12 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT 70 * COUNT ( * ) + - + CAST ( + 80 AS INTEGER ) + COUNT ( * ) / + 12 AS col0
----
-10

query I rowsort
SELECT ALL 20 * - 81 + 64 * - 19
----
-2836

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4273
SELECT 98 * NULLIF ( - + 14, + 73 + - ( 8 ) ) + - 37 / + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4273
SELECT 98 * NULLIF ( - + 14, + 73 + - ( 8 ) ) + - 37 / + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4274
SELECT - COUNT( * ) * - ( + 37 ) DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-4274
SELECT - COUNT ( * ) * - ( + 37 ) / 85
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4275
SELECT + 69 DIV 18 + - 97 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-4275
SELECT + 69 / 18 + - 97 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT CASE - ( 75 ) WHEN - NULLIF ( - 28, + 24 - COUNT( + 75 ) ) * 43 THEN 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT CASE - ( 75 ) WHEN - NULLIF ( - 28, + 24 - COUNT ( + 75 ) ) * 43 THEN 21 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4277
SELECT - CASE - 9 WHEN + 43 THEN COALESCE ( - SUM( ALL CAST( ( 55 ) AS SIGNED ) ), - COUNT( * ) * 83, + 7 + CAST( 98 AS SIGNED ) ) WHEN 95 THEN - ( - 10 ) + 47 END + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT - CASE - 9 WHEN + 43 THEN COALESCE ( - SUM ( ALL CAST ( ( 55 ) AS INTEGER ) ), - COUNT ( * ) * 83, + 7 + CAST ( 98 AS INTEGER ) ) WHEN 95 THEN - ( - 10 ) + 47 END + - 75
----
NULL

query I rowsort
SELECT ALL + - ( + + 77 )
----
-77

query I rowsort
SELECT DISTINCT + + 74 * + 49
----
3626

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT - + 96 * MAX( ALL + ( - 13 ) ) + 60 AS col1
----
1308

skipif mysql # not compatible
query I rowsort label-4280
SELECT - + 96 * MAX ( ALL + ( - 13 ) ) + 60 AS col1
----
1308

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL COUNT( * ) * MIN( DISTINCT 3 ) + + 99
----
102

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL COUNT ( * ) * MIN ( DISTINCT 3 ) + + 99
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-4282
SELECT DISTINCT - 3 * + 0 DIV - - ( 49 ) + 76
----
76

skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT - 3 * + 0 / - - ( 49 ) + 76
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4283
SELECT DISTINCT - 57 DIV - 18 + + 56 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4283
SELECT DISTINCT - 57 / - 18 + + 56 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT - 24 * - - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-4284
SELECT - 24 * - - COUNT ( * )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4285
SELECT ( 98 ) * - 23 * CAST( CASE 12 WHEN 6 * - COALESCE ( + 48, + COUNT( * ) * - 37 ) THEN 51 * 9 ELSE NULL END AS SIGNED ) + 6 * - 70 + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4285
SELECT ( 98 ) * - 23 * CAST ( CASE 12 WHEN 6 * - COALESCE ( + 48, + COUNT ( * ) * - 37 ) THEN 51 * 9 ELSE NULL END AS INTEGER ) + 6 * - 70 + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4286
SELECT + 7 + - 85 + COUNT( DISTINCT + CAST( 0 AS SIGNED ) ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-4286
SELECT + 7 + - 85 + COUNT ( DISTINCT + CAST ( 0 AS INTEGER ) ) AS col1
----
-77

query I rowsort
SELECT + - 2 * + 4
----
-8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4288
SELECT DISTINCT - CAST( - 21 AS SIGNED ) DIV + + CAST( NULLIF ( + 29, 48 DIV 70 - 74 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4288
SELECT DISTINCT - CAST ( - 21 AS INTEGER ) / + + CAST ( NULLIF ( + 29, 48 / 70 - 74 ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4289
SELECT + 28 * + - MIN( DISTINCT ( + 47 ) ) + 96 DIV COUNT( * ) + + ( + 17 + COUNT( * ) * ( + 54 * + 95 + 63 DIV 50 ) ) * - COALESCE ( 74 - ( + 53 ), + NULLIF ( COUNT( * ), + COALESCE ( - 83, COUNT( * ) ) ), + 72 ) AS col2
----
-109328

skipif mysql # not compatible
query I rowsort label-4289
SELECT + 28 * + - MIN ( DISTINCT ( + 47 ) ) + 96 / COUNT ( * ) + + ( + 17 + COUNT ( * ) * ( + 54 * + 95 + 63 / 50 ) ) * - COALESCE ( 74 - ( + 53 ), + NULLIF ( COUNT ( * ), + COALESCE ( - 83, COUNT ( * ) ) ), + 72 ) AS col2
----
-109328

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT ALL + 63 * + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL + 63 * + COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT + - 58 + + COUNT( * ) + - 80 AS col0
----
-137

skipif mysql # not compatible
query I rowsort label-4291
SELECT + - 58 + + COUNT ( * ) + - 80 AS col0
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT ALL - 47 * - NULLIF ( + 95, - 19 / 99 ) * - 9 + + COUNT( * )
----
-40184

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL - 47 * - NULLIF ( + 95, - 19 / 99 ) * - 9 + + COUNT ( * )
----
-40184

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4293
SELECT CAST( NULL AS SIGNED ) AS col0, - 46
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-4293
SELECT CAST ( NULL AS INTEGER ) AS col0, - 46
----
NULL
-46

query I rowsort
SELECT ALL 27 * - 90 col2
----
-2430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4295
SELECT + CAST( 87 AS SIGNED ) * - 6 * COUNT( * ) - - 34
----
-488

skipif mysql # not compatible
query I rowsort label-4295
SELECT + CAST ( 87 AS INTEGER ) * - 6 * COUNT ( * ) - - 34
----
-488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4296
SELECT DISTINCT - COUNT( * ) - - 41 / - CAST( NULL AS SIGNED ) * AVG ( - 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT DISTINCT - COUNT ( * ) - - 41 / - CAST ( NULL AS INTEGER ) * AVG ( - 29 )
----
NULL

query I rowsort
SELECT ALL 93 * 73 AS col2
----
6789

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT + 27 * - 19 * + + COUNT( * )
----
-513

skipif mysql # not compatible
query I rowsort label-4298
SELECT + 27 * - 19 * + + COUNT ( * )
----
-513

query I rowsort
SELECT + 91 + - 70
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4300
SELECT + 20 + - 31 * 87 + - 15 + + CAST( NULL AS SIGNED ) * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4300
SELECT + 20 + - 31 * 87 + - 15 + + CAST ( NULL AS INTEGER ) * - 98
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4301
SELECT DISTINCT 8 DIV 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT 8 / 68 AS col0
----
0

query I rowsort
SELECT + 73 + + 78 AS col1
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT ALL 79 + COUNT( * ) + + - 33 - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL 79 + COUNT ( * ) + + - 33 - COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT ALL + 2 * ( + 60 ) * - - MIN( DISTINCT + 85 ) * 24
----
244800

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL + 2 * ( + 60 ) * - - MIN ( DISTINCT + 85 ) * 24
----
244800

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT + CASE COUNT( * ) WHEN + 34 + - - 36 * 87 THEN NULL WHEN CASE COUNT( * ) WHEN + 10 THEN - 78 * 17 WHEN 50 THEN NULL ELSE NULL END * + 9 THEN 83 + - 15 * COUNT( * ) END + - 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT + CASE COUNT ( * ) WHEN + 34 + - - 36 * 87 THEN NULL WHEN CASE COUNT ( * ) WHEN + 10 THEN - 78 * 17 WHEN 50 THEN NULL ELSE NULL END * + 9 THEN 83 + - 15 * COUNT ( * ) END + - 58 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 72 * - 23
----
-1656

query I rowsort
SELECT - 43 + - 0 + + 40 - 3 * 39 AS col2
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT ALL 49 + + COUNT( * ) + - - 41 * 56
----
2346

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL 49 + + COUNT ( * ) + - - 41 * 56
----
2346

query I rowsort
SELECT ALL 7 * 83
----
581

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT DISTINCT 66 + - MIN( + 86 ) col0
----
-20

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT 66 + - MIN ( + 86 ) col0
----
-20

query I rowsort
SELECT + COALESCE ( 51, + 39 ) * + 81 AS col1
----
4131

query I rowsort
SELECT ALL - 30 + + 15 * + 25 + - 91 AS col1
----
254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4313
SELECT + CAST( + ( + 64 ) AS SIGNED ) * + 37 + 42 AS col2
----
2410

skipif mysql # not compatible
query I rowsort label-4313
SELECT + CAST ( + ( + 64 ) AS INTEGER ) * + 37 + 42 AS col2
----
2410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4314
SELECT + CAST( + COUNT( * ) AS SIGNED ) DIV - 9 * + 61 * ( 71 * - COALESCE ( - 87, MIN( ALL + 38 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4314
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) / - 9 * + 61 * ( 71 * - COALESCE ( - 87, MIN ( ALL + 38 ) ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4315
SELECT ALL + CASE COUNT( * ) WHEN - 36 THEN NULL ELSE + + 34 END DIV MAX( NULLIF ( 44, - 24 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL + CASE COUNT ( * ) WHEN - 36 THEN NULL ELSE + + 34 END / MAX ( NULLIF ( 44, - 24 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT + + CASE - COUNT( ALL 41 ) WHEN - CASE 78 WHEN - 98 THEN 93 END + + NULLIF ( - 37, 61 ) * + COALESCE ( 65 + 16 / - COALESCE ( 49, COUNT( 2 ) * 72 + 0, 57 * + 88 ), 81 * 45 ) THEN 49 + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT + + CASE - COUNT ( ALL 41 ) WHEN - CASE 78 WHEN - 98 THEN 93 END + + NULLIF ( - 37, 61 ) * + COALESCE ( 65 + 16 / - COALESCE ( 49, COUNT ( 2 ) * 72 + 0, 57 * + 88 ), 81 * 45 ) THEN 49 + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4317
SELECT ALL - - 22 DIV 82 - + 83 + 54 * - 42
----
-2351

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL - - 22 / 82 - + 83 + 54 * - 42
----
-2351

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT + COUNT( + 4 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4318
SELECT + COUNT ( + 4 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT - + COUNT( * ) * + - 47
----
47

skipif mysql # not compatible
query I rowsort label-4319
SELECT - + COUNT ( * ) * + - 47
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT + - 11 * - 79 * + 36 + MAX( 79 ) col2
----
31363

skipif mysql # not compatible
query I rowsort label-4320
SELECT + - 11 * - 79 * + 36 + MAX ( 79 ) col2
----
31363

query I rowsort
SELECT ALL + ( 7 ) * + 57 col0
----
399

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT DISTINCT + - COUNT( * ) * 57 + - - 76 + + + 39 * MIN( - 28 + + 3 ) AS col0
----
-956

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT + - COUNT ( * ) * 57 + - - 76 + + + 39 * MIN ( - 28 + + 3 ) AS col0
----
-956

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT ALL + 7 * 32 + 90 * + COUNT( * )
----
314

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL + 7 * 32 + 90 * + COUNT ( * )
----
314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4324
SELECT - 81 * + COALESCE ( + NULLIF ( - 95, - COUNT( CAST( 95 AS SIGNED ) ) * - CAST( SUM( ALL 46 ) * COUNT( * ) - + 38 AS SIGNED ) ), 25, + 29 - 5 )
----
7695

skipif mysql # not compatible
query I rowsort label-4324
SELECT - 81 * + COALESCE ( + NULLIF ( - 95, - COUNT ( CAST ( 95 AS INTEGER ) ) * - CAST ( SUM ( ALL 46 ) * COUNT ( * ) - + 38 AS INTEGER ) ), 25, + 29 - 5 )
----
7695

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT DISTINCT - NULLIF ( - + COUNT( * ), 60 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4325
SELECT DISTINCT - NULLIF ( - + COUNT ( * ), 60 ) AS col1
----
1

query I rowsort
SELECT ALL - CASE - 14 WHEN - 76 THEN NULL WHEN ( + 10 ) THEN 91 + 89 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4327
SELECT + 47 DIV - 40
----
-1

skipif mysql # not compatible
query I rowsort label-4327
SELECT + 47 / - 40
----
-1

query I rowsort
SELECT + ( + 12 ) + - - 99 AS col2
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-4329
SELECT DISTINCT + - 79 DIV - COALESCE ( 56, + 5, + 91 * AVG ( ALL + 79 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT + - 79 / - COALESCE ( 56, + 5, + 91 * AVG ( ALL + 79 ) ) AS col2
----
1

query I rowsort
SELECT - 30 * - 5 * 1 * + 40 AS col0
----
6000

query I rowsort
SELECT ALL 15 + - 75
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT 42 - 75 + 55 - + + MIN( DISTINCT 81 ) * 0 * ( 6 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-4332
SELECT 42 - 75 + 55 - + + MIN ( DISTINCT 81 ) * 0 * ( 6 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT DISTINCT + SUM( + + 49 ) + 99 + 4 - + + 18 - 33 AS col1
----
101

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT + SUM ( + + 49 ) + 99 + 4 - + + 18 - 33 AS col1
----
101

query I rowsort
SELECT 51 + NULLIF ( - + NULLIF ( - + 45, 11 + - 57 * 0 ), 48 )
----
96

query I rowsort
SELECT ALL 67 * 24 col2
----
1608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4336
SELECT SUM( ALL 43 ) * MAX( CAST( NULL AS SIGNED ) ) + - - 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4336
SELECT SUM ( ALL 43 ) * MAX ( CAST ( NULL AS INTEGER ) ) + - - 91 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT ALL - COUNT( * ) + + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4338
SELECT ALL 61 + - - 62 * + - 30 - - 73 + CASE 98 WHEN 29 * + COUNT( * ) + - 50 THEN NULL WHEN - 82 + + 72 THEN NULL WHEN - COALESCE ( - 57, COUNT( * ) + + 79 * - 54 ) - - 62 THEN 2 / + CAST( - 71 AS SIGNED ) WHEN + MAX( DISTINCT 16 ) * - 78 THEN NULL END * 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL 61 + - - 62 * + - 30 - - 73 + CASE 98 WHEN 29 * + COUNT ( * ) + - 50 THEN NULL WHEN - 82 + + 72 THEN NULL WHEN - COALESCE ( - 57, COUNT ( * ) + + 79 * - 54 ) - - 62 THEN 2 / + CAST ( - 71 AS INTEGER ) WHEN + MAX ( DISTINCT 16 ) * - 78 THEN NULL END * 54 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT ALL COUNT( * ) + - MAX( NULLIF ( - 3, - 43 ) ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL COUNT ( * ) + - MAX ( NULLIF ( - 3, - 43 ) ) AS col2
----
4

query I rowsort
SELECT ALL 31 * 5
----
155

query I rowsort
SELECT 86 - - 63
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT ALL 25 + - - COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL 25 + - - COUNT ( * ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4343
SELECT 53 col2, + 23 + - - COUNT( * ) AS col1
----
53
24

skipif mysql # not compatible
query II rowsort label-4343
SELECT 53 col2, + 23 + - - COUNT ( * ) AS col1
----
53
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL COUNT( * ) + + 93 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL COUNT ( * ) + + 93 AS col2
----
94

query II rowsort
SELECT 67, 84 AS col0
----
67
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT ALL CASE + - COUNT( * ) WHEN + - 92 THEN - + 18 WHEN 0 THEN NULL WHEN - 15 * - 24 THEN + MAX( DISTINCT 9 ) * 2 ELSE 27 + + COUNT( * ) * 28 END * + 34 AS col2
----
1870

skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL CASE + - COUNT ( * ) WHEN + - 92 THEN - + 18 WHEN 0 THEN NULL WHEN - 15 * - 24 THEN + MAX ( DISTINCT 9 ) * 2 ELSE 27 + + COUNT ( * ) * 28 END * + 34 AS col2
----
1870

query I rowsort
SELECT ALL 65 - - + 47 * 34 AS col1
----
1663

query II rowsort
SELECT ALL - 73, 52 AS col0
----
-73
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4349
SELECT - - 16 DIV CAST( - 32 AS SIGNED ) + SUM( DISTINCT - 22 ) - 93
----
-115

skipif mysql # not compatible
query I rowsort label-4349
SELECT - - 16 / CAST ( - 32 AS INTEGER ) + SUM ( DISTINCT - 22 ) - 93
----
-115

query I rowsort
SELECT 81 * + 32 + + 51
----
2643

query I rowsort
SELECT ALL - 63 * - 66 + + - 54 AS col1
----
4104

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT ( + 40 ) * + - COUNT( * ) + + - 54 + + ( - CASE COALESCE ( + 23, 72 ) WHEN + COUNT( * ) THEN 83 ELSE NULL END ) * 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT ( + 40 ) * + - COUNT ( * ) + + - 54 + + ( - CASE COALESCE ( + 23, 72 ) WHEN + COUNT ( * ) THEN 83 ELSE NULL END ) * 38 AS col1
----
NULL

query I rowsort
SELECT + 61 * - 79 + ( 42 )
----
-4777

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL 46 * - + COUNT( * ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL 46 * - + COUNT ( * ) AS col2
----
-46

query I rowsort
SELECT + 36 * - + 0 + - 72 * - + 84 + 71 AS col0
----
6119

query I rowsort
SELECT + 89 * - 47 + + ( - 54 )
----
-4237

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4357
SELECT + 48 DIV - + 6 + MAX( DISTINCT 43 ) + - - 11 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-4357
SELECT + 48 / - + 6 + MAX ( DISTINCT 43 ) + - - 11 AS col0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4358
SELECT - COUNT( + - 2 ) DIV - 81 * + COUNT( * ) * + COALESCE ( + 97, 59 * - 49 ) + 24 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4358
SELECT - COUNT ( + - 2 ) / - 81 * + COUNT ( * ) * + COALESCE ( + 97, 59 * - 49 ) + 24 AS col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4359
SELECT MIN( + + 86 ) * + 0 DIV + 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4359
SELECT MIN ( + + 86 ) * + 0 / + 54 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4360
SELECT + 73 * - - CAST( NULL AS SIGNED ) + + 44 AS col1, ( + COUNT( * ) ) - - 16
----
NULL
17

skipif mysql # not compatible
query II rowsort label-4360
SELECT + 73 * - - CAST ( NULL AS INTEGER ) + + 44 AS col1, ( + COUNT ( * ) ) - - 16
----
NULL
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT - + COUNT( ALL 1 ) * - COUNT( * ) * - 32 + - 74
----
-106

skipif mysql # not compatible
query I rowsort label-4361
SELECT - + COUNT ( ALL 1 ) * - COUNT ( * ) * - 32 + - 74
----
-106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4362
SELECT 6 + + 3 DIV 56 + + COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4362
SELECT 6 + + 3 / 56 + + COUNT ( * ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT COUNT( * ) * - ( - + 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-4363
SELECT COUNT ( * ) * - ( - + 59 ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT + COUNT( * ) + + 1 + + + 88 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-4364
SELECT + COUNT ( * ) + + 1 + + + 88 AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4365
SELECT ALL + + CAST( - 72 AS SIGNED ) * + - 62 AS col0
----
4464

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL + + CAST ( - 72 AS INTEGER ) * + - 62 AS col0
----
4464

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4366
SELECT - CAST( NULL AS DECIMAL ) * 12 * - 59 * + 3 + + + 42 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4366
SELECT - CAST ( NULL AS REAL ) * 12 * - 59 * + 3 + + + 42 * COUNT ( * )
----
NULL

query I rowsort
SELECT 26 * + 16 + 91 + - 17
----
490

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL - COUNT( * ) + - 73 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL - COUNT ( * ) + - 73 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT DISTINCT COALESCE ( 9, - 26 * + 38 ) + - CASE + + 6 WHEN 18 * + NULLIF ( 33, COUNT( * ) ) THEN NULLIF ( + COUNT( * ), - 13 * 62 ) * + COUNT( * ) - - MAX( ALL + ( + 83 ) ) / + 56 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT COALESCE ( 9, - 26 * + 38 ) + - CASE + + 6 WHEN 18 * + NULLIF ( 33, COUNT ( * ) ) THEN NULLIF ( + COUNT ( * ), - 13 * 62 ) * + COUNT ( * ) - - MAX ( ALL + ( + 83 ) ) / + 56 END AS col1
----
NULL

query II rowsort
SELECT 20, + 98 AS col2
----
20
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT DISTINCT - 93 + - NULLIF ( - 14, 33 / COUNT( * ) ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT - 93 + - NULLIF ( - 14, 33 / COUNT ( * ) ) AS col0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4372
SELECT ALL + 30 + 75 DIV + 80 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL + 30 + 75 / + 80 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT ALL 20 + SUM( - 64 ) * COALESCE ( - 81, - 22 * + 72 )
----
5204

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL 20 + SUM ( - 64 ) * COALESCE ( - 81, - 22 * + 72 )
----
5204

onlyif mysql # DIV for integer division: 
query I rowsort label-4374
SELECT 66 * - 28 + - + 68 DIV + + 64 + - 32 * - 13 * 19
----
6055

skipif mysql # not compatible
query I rowsort label-4374
SELECT 66 * - 28 + - + 68 / + + 64 + - 32 * - 13 * 19
----
6055

query I rowsort
SELECT ALL - 76 + - + ( + + 69 ) AS col1
----
-145

query I rowsort
SELECT 67 * - 19 col0
----
-1273

query I rowsort
SELECT 73 + + + 28 + - ( - 86 )
----
187

query II rowsort
SELECT - 80 col0, - 22 AS col2
----
-80
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-4379
SELECT DISTINCT - 85 DIV 99 * - 12
----
0

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT - 85 / 99 * - 12
----
0

query I rowsort
SELECT ALL + 31 - + 43
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT 92 + + ( + ( + COALESCE ( - + 84, + COUNT( * ), - NULLIF ( - 2, 45 ) ) ) )
----
8

skipif mysql # not compatible
query I rowsort label-4381
SELECT 92 + + ( + ( + COALESCE ( - + 84, + COUNT ( * ), - NULLIF ( - 2, 45 ) ) ) )
----
8

query I rowsort
SELECT ALL 71 - - - 78 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-4383
SELECT ALL 94 AS col2, SUM( + 81 ) AS col2
----
94
81

skipif mysql # not compatible
query II rowsort label-4383
SELECT ALL 94 AS col2, SUM ( + 81 ) AS col2
----
94
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4384
SELECT COALESCE ( + - CAST( NULL AS SIGNED ), 86 + - 9 * + 16 ) + - 5 - MIN( + 66 - 25 ) AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-4384
SELECT COALESCE ( + - CAST ( NULL AS INTEGER ), 86 + - 9 * + 16 ) + - 5 - MIN ( + 66 - 25 ) AS col2
----
-104

query I rowsort
SELECT ALL NULLIF ( 66, + + 15 ) AS col1
----
66

query II rowsort
SELECT - 49 AS col0, - 61 AS col2
----
-49
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4387
SELECT DISTINCT - MAX( DISTINCT 21 ) AS col1, - ( - 12 ) + - CAST( + + COUNT( * ) AS SIGNED )
----
-21
11

skipif mysql # not compatible
query II rowsort label-4387
SELECT DISTINCT - MAX ( DISTINCT 21 ) AS col1, - ( - 12 ) + - CAST ( + + COUNT ( * ) AS INTEGER )
----
-21
11

query II rowsort
SELECT ALL 66 AS col0, ( - 91 )
----
66
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4389
SELECT - 0 * + + COALESCE ( - - CAST( NULL AS SIGNED ), + 79 * - 47 * + + COUNT( * ) * COUNT( * ) + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4389
SELECT - 0 * + + COALESCE ( - - CAST ( NULL AS INTEGER ), + 79 * - 47 * + + COUNT ( * ) * COUNT ( * ) + COUNT ( * ) )
----
0

query I rowsort
SELECT + 74 + ( - + 33 ) + + ( - 33 ) + 9 * 86 AS col2
----
782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT + - 14 + - CAST( + 8 AS SIGNED ) - ( - + CAST( NULL AS SIGNED ) ) + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT + - 14 + - CAST ( + 8 AS INTEGER ) - ( - + CAST ( NULL AS INTEGER ) ) + 81 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT ALL + MIN( ALL - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL + MIN ( ALL - 43 )
----
-43

query I rowsort
SELECT + - NULLIF ( 55, + + 91 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT ALL + + CASE + - 69 WHEN - - MAX( + 55 ) THEN NULL WHEN 87 + 88 THEN + 9 + + 32 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL + + CASE + - 69 WHEN - - MAX ( + 55 ) THEN NULL WHEN 87 + 88 THEN + 9 + + 32 END AS col2
----
NULL

query II rowsort
SELECT ALL + - 70 AS col1, - 18
----
-70
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-4396
SELECT ALL + + 79 AS col0, - MAX( 8 ) * + - 20 + - - 0 AS col2
----
79
160

skipif mysql # not compatible
query II rowsort label-4396
SELECT ALL + + 79 AS col0, - MAX ( 8 ) * + - 20 + - - 0 AS col2
----
79
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4397
SELECT + + CASE - + CAST( - + COUNT( * ) AS SIGNED ) WHEN - CASE + - COALESCE ( 76, - 66 ) WHEN - 5 * 40 THEN - CAST( NULL AS SIGNED ) - 60 / + 33 WHEN CAST( 63 AS SIGNED ) THEN NULL ELSE 73 / + 61 + + 58 END THEN NULL WHEN 5 + - 26 THEN - 65 END * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-4397
SELECT + + CASE - + CAST ( - + COUNT ( * ) AS INTEGER ) WHEN - CASE + - COALESCE ( 76, - 66 ) WHEN - 5 * 40 THEN - CAST ( NULL AS INTEGER ) - 60 / + 33 WHEN CAST ( 63 AS INTEGER ) THEN NULL ELSE 73 / + 61 + + 58 END THEN NULL WHEN 5 + - 26 THEN - 65 END * 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT + MAX( - + 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-4398
SELECT + MAX ( - + 60 )
----
-60

query I rowsort
SELECT + 90 * + 48
----
4320

query I rowsort
SELECT + CASE + 12 WHEN 65 THEN NULL ELSE CASE 80 WHEN + 99 THEN 24 END END
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 9, + + 92 - - 61 ) * 47 + - + 28 + 3
----
398

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT + - 69 * + + 67 * - - 20 - - 65 + + - COUNT( * )
----
-92396

skipif mysql # not compatible
query I rowsort label-4402
SELECT + - 69 * + + 67 * - - 20 - - 65 + + - COUNT ( * )
----
-92396

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT ALL + COUNT( * ) * - 76 * + 53 + + 7 * - 95 - - - 40 - - NULLIF ( + 45 - COUNT( * ), 31 ) col1
----
-4689

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL + COUNT ( * ) * - 76 * + 53 + + 7 * - 95 - - - 40 - - NULLIF ( + 45 - COUNT ( * ), 31 ) col1
----
-4689

query I rowsort
SELECT + - ( + 41 )
----
-41

query I rowsort
SELECT ALL 86 * 82 * + 17 + - 63 + - 13 AS col2
----
119808

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT + ( CASE + COUNT( * ) WHEN 73 THEN NULL ELSE - 8 * + + 9 END )
----
-72

skipif mysql # not compatible
query I rowsort label-4406
SELECT + ( CASE + COUNT ( * ) WHEN 73 THEN NULL ELSE - 8 * + + 9 END )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT ALL 92 * + COALESCE ( 73, - 20 ) * COUNT( * ) + 84 * - - COALESCE ( 23, + COUNT( * ) + - 30, 28 - + ( 91 ) ) AS col1
----
8648

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL 92 * + COALESCE ( 73, - 20 ) * COUNT ( * ) + 84 * - - COALESCE ( 23, + COUNT ( * ) + - 30, 28 - + ( 91 ) ) AS col1
----
8648

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT SUM( 39 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4408
SELECT SUM ( 39 ) AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4409
SELECT CASE - COUNT( * ) WHEN COUNT( + - 47 ) + CAST( NULL AS SIGNED ) THEN NULL WHEN - SUM( + - 44 ) THEN NULL ELSE 24 * + 32 END * - MIN( DISTINCT 68 * - 19 ) + + COUNT( * ) AS col2
----
992257

skipif mysql # not compatible
query I rowsort label-4409
SELECT CASE - COUNT ( * ) WHEN COUNT ( + - 47 ) + CAST ( NULL AS INTEGER ) THEN NULL WHEN - SUM ( + - 44 ) THEN NULL ELSE 24 * + 32 END * - MIN ( DISTINCT 68 * - 19 ) + + COUNT ( * ) AS col2
----
992257

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT - 2 * ( COUNT( ALL - 14 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-4410
SELECT - 2 * ( COUNT ( ALL - 14 ) )
----
-2

query I rowsort
SELECT + COALESCE ( 14, - + 60 ) AS col1
----
14

query I rowsort
SELECT DISTINCT - 98 + - 25 * + 18
----
-548

query I rowsort
SELECT ALL + 44 + + - CASE - 67 WHEN - - 82 - 46 * - 94 THEN - - 52 END + 97 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT SUM( DISTINCT + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-4414
SELECT SUM ( DISTINCT + 71 )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4415
SELECT - ( 79 ) col0, 94 DIV - COUNT( * ) - - 16
----
-79
-78

skipif mysql # not compatible
query II rowsort label-4415
SELECT - ( 79 ) col0, 94 / - COUNT ( * ) - - 16
----
-79
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT - 66 + SUM( DISTINCT - + 92 ) + - - 36
----
-122

skipif mysql # not compatible
query I rowsort label-4416
SELECT - 66 + SUM ( DISTINCT - + 92 ) + - - 36
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT ALL - SUM( ALL - 10 ) * - 56 * 10
----
-5600

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL - SUM ( ALL - 10 ) * - 56 * 10
----
-5600

onlyif mysql # aggregate syntax: 
query II rowsort label-4418
SELECT DISTINCT MAX( ALL 64 ) col1, ( 19 )
----
64
19

skipif mysql # not compatible
query II rowsort label-4418
SELECT DISTINCT MAX ( ALL 64 ) col1, ( 19 )
----
64
19

query I rowsort
SELECT ALL + 81 - + + 0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4420
SELECT ALL CASE 23 WHEN CAST( - 33 AS SIGNED ) / + 5 + 40 THEN + 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL CASE 23 WHEN CAST ( - 33 AS INTEGER ) / + 5 + 40 THEN + 92 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4421
SELECT DISTINCT + + 40 DIV - + 35 * - + COALESCE ( COUNT( * ), - CASE + 12 WHEN + 80 THEN - CAST( - 64 AS SIGNED ) ELSE - MAX( ALL + 55 ) * + 72 END + 75 DIV COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4421
SELECT DISTINCT + + 40 / - + 35 * - + COALESCE ( COUNT ( * ), - CASE + 12 WHEN + 80 THEN - CAST ( - 64 AS INTEGER ) ELSE - MAX ( ALL + 55 ) * + 72 END + 75 / COUNT ( * ) ) col2
----
1

query I rowsort
SELECT - + 49 - ( - 10 ) * - 29 AS col1
----
-339

query I rowsort
SELECT NULLIF ( + 10, - 98 * + 0 + + - 13 ) AS col0
----
10

query I rowsort
SELECT - - 74 * + - 70 col1
----
-5180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4425
SELECT ALL + 69 DIV - 38 + - CASE + + 8 WHEN + MAX( ALL + 29 ) * + 81 * 52 THEN NULL WHEN 33 + 8 THEN NULL WHEN COUNT( * ) THEN - 0 ELSE + 15 + + COUNT( * ) END * COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL + 69 / - 38 + - CASE + + 8 WHEN + MAX ( ALL + 29 ) * + 81 * 52 THEN NULL WHEN 33 + 8 THEN NULL WHEN COUNT ( * ) THEN - 0 ELSE + 15 + + COUNT ( * ) END * COUNT ( * )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT ALL CASE - + MAX( ALL - 0 ) WHEN - - 56 * + AVG ( ALL 78 ) THEN - 35 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL CASE - + MAX ( ALL - 0 ) WHEN - - 56 * + AVG ( ALL 78 ) THEN - 35 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4427
SELECT DISTINCT CAST( + + 14 AS SIGNED ) + + 52 * - MAX( ALL + + CAST( + 88 AS SIGNED ) ) AS col2
----
-4562

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT CAST ( + + 14 AS INTEGER ) + + 52 * - MAX ( ALL + + CAST ( + 88 AS INTEGER ) ) AS col2
----
-4562

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4428
SELECT ALL + 19 + - SUM( DISTINCT 74 ) DIV 62 * 73 * - - NULLIF ( - SUM( 19 ), COUNT( * ) * COUNT( ALL 73 ) + + ( 88 ) * + NULLIF ( - 11, - 93 ) ) * + 90
----
124849

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL + 19 + - SUM ( DISTINCT 74 ) / 62 * 73 * - - NULLIF ( - SUM ( 19 ), COUNT ( * ) * COUNT ( ALL 73 ) + + ( 88 ) * + NULLIF ( - 11, - 93 ) ) * + 90
----
124849

onlyif mysql # DIV for integer division: 
query II rowsort label-4429
SELECT - - 78 DIV 90 - 11 * + 74 - + 82 AS col0, 53 + + 13 AS col1
----
-896
66

skipif mysql # not compatible
query II rowsort label-4429
SELECT - - 78 / 90 - 11 * + 74 - + 82 AS col0, 53 + + 13 AS col1
----
-896
66

query I rowsort
SELECT 39 * 78 + 49 col2
----
3091

query I rowsort
SELECT + 61 - - + 71 AS col2
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-4432
SELECT ALL - 14 DIV 58 + 76 + - 93 * - + 3
----
355

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL - 14 / 58 + 76 + - 93 * - + 3
----
355

onlyif mysql # DIV for integer division: 
query I rowsort label-4433
SELECT - 14 DIV 82 + 77
----
77

skipif mysql # not compatible
query I rowsort label-4433
SELECT - 14 / 82 + 77
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4434
SELECT - - NULLIF ( - 74, 34 ) * - 22 * - ( + 98 ) + - - COUNT( * ) DIV - NULLIF ( 48, 58 ) AS col0
----
-159544

skipif mysql # not compatible
query I rowsort label-4434
SELECT - - NULLIF ( - 74, 34 ) * - 22 * - ( + 98 ) + - - COUNT ( * ) / - NULLIF ( 48, 58 ) AS col0
----
-159544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4435
SELECT NULLIF ( - COUNT( * ), - - CAST( NULL AS SIGNED ) * + 65 * + 42 + 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-4435
SELECT NULLIF ( - COUNT ( * ), - - CAST ( NULL AS INTEGER ) * + 65 * + 42 + 75 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4436
SELECT ALL 10 DIV + 48 - 36 + ( + 62 ) * - COUNT( * ) + 29 * 26
----
656

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL 10 / + 48 - 36 + ( + 62 ) * - COUNT ( * ) + 29 * 26
----
656

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT ALL + MAX( 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL + MAX ( 51 ) AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4438
SELECT ALL 6 * - MIN( DISTINCT - - 97 ) + - 99 + 50 + - 5 DIV + 93 + + + 89 AS col0
----
-542

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL 6 * - MIN ( DISTINCT - - 97 ) + - 99 + 50 + - 5 / + 93 + + + 89 AS col0
----
-542

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4439
SELECT 75 * MIN( DISTINCT CAST( NULL AS SIGNED ) ) + 78 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4439
SELECT 75 * MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + 78 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT + NULLIF ( MIN( DISTINCT + - ( - 36 ) ), 88 ) + - CASE - + 63 WHEN - 80 / + 8 THEN - 91 WHEN 85 THEN NULL END + 79 * - 21 * - AVG ( DISTINCT - 34 * + 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4440
SELECT + NULLIF ( MIN ( DISTINCT + - ( - 36 ) ), 88 ) + - CASE - + 63 WHEN - 80 / + 8 THEN - 91 WHEN 85 THEN NULL END + 79 * - 21 * - AVG ( DISTINCT - 34 * + 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4441
SELECT ALL 8 * + ( + COUNT( * ) ) AS col2, - 30 AS col2
----
8
-30

skipif mysql # not compatible
query II rowsort label-4441
SELECT ALL 8 * + ( + COUNT ( * ) ) AS col2, - 30 AS col2
----
8
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT + COUNT( * ) * 63
----
63

skipif mysql # not compatible
query I rowsort label-4442
SELECT + COUNT ( * ) * 63
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4443
SELECT + CAST( + - 34 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-4443
SELECT + CAST ( + - 34 AS INTEGER )
----
-34

query I rowsort
SELECT + 79 + ( 27 )
----
106

query I rowsort
SELECT DISTINCT 43 * - - 44 AS col0
----
1892

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4446
SELECT CASE - - 66 WHEN + + 25 * + + 53 * 76 + - 95 + + SUM( ALL 87 ) * + 10 THEN NULL WHEN - 50 + - 1 THEN + CAST( NULL AS SIGNED ) * - CASE 62 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE + ( 28 ) END WHEN 59 THEN 43 + 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4446
SELECT CASE - - 66 WHEN + + 25 * + + 53 * 76 + - 95 + + SUM ( ALL 87 ) * + 10 THEN NULL WHEN - 50 + - 1 THEN + CAST ( NULL AS INTEGER ) * - CASE 62 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE + ( 28 ) END WHEN 59 THEN 43 + 64 END
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - 12, - - ( - 55 ) )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4448
SELECT ALL + 13 DIV COUNT( DISTINCT - 71 )
----
13

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL + 13 / COUNT ( DISTINCT - 71 )
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4449
SELECT + 37 DIV - 27
----
-1

skipif mysql # not compatible
query I rowsort label-4449
SELECT + 37 / - 27
----
-1

query I rowsort
SELECT + 13 * - 30
----
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT MAX( ALL - 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-4451
SELECT MAX ( ALL - 23 ) AS col0
----
-23

query I rowsort
SELECT - 30 + 1
----
-29

query II rowsort
SELECT 77 AS col2, + 91
----
77
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4454
SELECT COUNT( * ) * - - COUNT( * ) * CAST( NULL AS SIGNED ), - 53 col0
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-4454
SELECT COUNT ( * ) * - - COUNT ( * ) * CAST ( NULL AS INTEGER ), - 53 col0
----
NULL
-53

query I rowsort
SELECT 37 * + - 40 AS col2
----
-1480

query I rowsort
SELECT ALL - ( - 24 ) * - 82 * - + 89
----
175152

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT COALESCE ( - 43, + 40 ) + - 97 + + 32 * + MAX( + 21 )
----
532

skipif mysql # not compatible
query I rowsort label-4457
SELECT COALESCE ( - 43, + 40 ) + - 97 + + 32 * + MAX ( + 21 )
----
532

query I rowsort
SELECT 43 + + 93
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT ALL + + 37 + 51 + + + 72 * + + COUNT( 26 ) * 84 - - 87
----
6223

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL + + 37 + 51 + + + 72 * + + COUNT ( 26 ) * 84 - - 87
----
6223

query II rowsort
SELECT ALL 79 AS col2, + 76 + - + 36 col1
----
79
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4461
SELECT ALL - CAST( NULL AS SIGNED ) + - - 2 * + + 33 + - + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL - CAST ( NULL AS INTEGER ) + - - 2 * + + 33 + - + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4462
SELECT - + 81, 6 * 83 + - ( - 12 ) + - - 34 * - MAX( DISTINCT + 14 ) * 98 AS col0
----
-81
-46138

skipif mysql # not compatible
query II rowsort label-4462
SELECT - + 81, 6 * 83 + - ( - 12 ) + - - 34 * - MAX ( DISTINCT + 14 ) * 98 AS col0
----
-81
-46138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4463
SELECT NULLIF ( - 81, - COUNT( * ) - + 37 ) + - 70 * 77 DIV - 56
----
15

skipif mysql # not compatible
query I rowsort label-4463
SELECT NULLIF ( - 81, - COUNT ( * ) - + 37 ) + - 70 * 77 / - 56
----
15

query I rowsort
SELECT ALL + + 45 + + + 73 AS col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT + 58 + - COUNT( * ) + - + 15 - - - COUNT( * ) - 49 * + - 66 * + 23 * - + COUNT( * ) + - 28
----
-74369

skipif mysql # not compatible
query I rowsort label-4465
SELECT + 58 + - COUNT ( * ) + - + 15 - - - COUNT ( * ) - 49 * + - 66 * + 23 * - + COUNT ( * ) + - 28
----
-74369

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4466
SELECT ALL + MIN( + CAST( NULL AS DECIMAL ) ) + - + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL + MIN ( + CAST ( NULL AS REAL ) ) + - + 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT ALL - MIN( + + 97 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL - MIN ( + + 97 ) AS col0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4468
SELECT - 25 * 39 DIV + - 46 + + 35 col2
----
56

skipif mysql # not compatible
query I rowsort label-4468
SELECT - 25 * 39 / + - 46 + + 35 col2
----
56

query I rowsort
SELECT DISTINCT - NULLIF ( + + 89, - 54 ) AS col0
----
-89

query I rowsort
SELECT 14 * 70 AS col1
----
980

query II rowsort
SELECT - 48, + COALESCE ( + ( - 42 ), - 68 + - 8 ) * - - ( - - 94 ) AS col0
----
-48
-3948

query I rowsort
SELECT DISTINCT + + 28 - 63 * - ( + 97 ) AS col1
----
6139

query I rowsort
SELECT ALL - 43 - + + 79 * 23 + - 43
----
-1903

onlyif mysql # aggregate syntax: 
query II rowsort label-4474
SELECT DISTINCT + 89 * COUNT( * ) AS col0, + COUNT( * ) * COUNT( * )
----
89
1

skipif mysql # not compatible
query II rowsort label-4474
SELECT DISTINCT + 89 * COUNT ( * ) AS col0, + COUNT ( * ) * COUNT ( * )
----
89
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4475
SELECT COUNT( * ) * - NULLIF ( + 46, - MIN( 58 ) * - - 64 + - 52 ) DIV + 47
----
0

skipif mysql # not compatible
query I rowsort label-4475
SELECT COUNT ( * ) * - NULLIF ( + 46, - MIN ( 58 ) * - - 64 + - 52 ) / + 47
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4476
SELECT CASE + CASE - - 1 WHEN - - 41 THEN NULL ELSE + + 88 * - ( - - CASE - + 12 WHEN - 88 THEN - 84 * 84 + - COALESCE ( 81, - CAST( + 51 AS SIGNED ), + 7 ) * ( 57 ) WHEN + 49 THEN NULL WHEN 10 - - 20 * + 21 THEN NULL END ) + COALESCE ( - 15, COUNT( * ) * 57 + 70 * - 47 ) END WHEN - COUNT( * ) + 83 THEN + 3 END * - 43 - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4476
SELECT CASE + CASE - - 1 WHEN - - 41 THEN NULL ELSE + + 88 * - ( - - CASE - + 12 WHEN - 88 THEN - 84 * 84 + - COALESCE ( 81, - CAST ( + 51 AS INTEGER ), + 7 ) * ( 57 ) WHEN + 49 THEN NULL WHEN 10 - - 20 * + 21 THEN NULL END ) + COALESCE ( - 15, COUNT ( * ) * 57 + 70 * - 47 ) END WHEN - COUNT ( * ) + 83 THEN + 3 END * - 43 - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT SUM( + 36 ) * COUNT( DISTINCT - 83 ) * - 35
----
-1260

skipif mysql # not compatible
query I rowsort label-4477
SELECT SUM ( + 36 ) * COUNT ( DISTINCT - 83 ) * - 35
----
-1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4478
SELECT DISTINCT CASE - COUNT( * ) WHEN + 59 THEN NULL WHEN - + COUNT( * ) + - 33 THEN + NULLIF ( + + 83, + 11 / - MIN( ALL + ( 97 ) ) * + 22 + - 17 + + ( + 76 ) * + COUNT( * ) ) * 92 + + 89 ELSE NULL END * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT CASE - COUNT ( * ) WHEN + 59 THEN NULL WHEN - + COUNT ( * ) + - 33 THEN + NULLIF ( + + 83, + 11 / - MIN ( ALL + ( 97 ) ) * + 22 + - 17 + + ( + 76 ) * + COUNT ( * ) ) * 92 + + 89 ELSE NULL END * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( + 79 ) + - 27 col1
----
52

query I rowsort
SELECT 21 - + + 68 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT DISTINCT CASE + 63 WHEN + + 12 * + 81 THEN NULL WHEN - MIN( DISTINCT - - 62 ) THEN - 13 END * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT CASE + 63 WHEN + + 12 * + 81 THEN NULL WHEN - MIN ( DISTINCT - - 62 ) THEN - 13 END * + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4482
SELECT CAST( NULL AS SIGNED ) * - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT CAST ( NULL AS INTEGER ) * - 72
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4483
SELECT CAST( NULL AS SIGNED ) / 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4483
SELECT CAST ( NULL AS INTEGER ) / 19 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4484
SELECT COALESCE ( 82, + 59 * - CASE + 35 WHEN + COALESCE ( + 76, + 12 + - + 18 + + ( CAST( NULL AS SIGNED ) ) ) * 79 THEN - COUNT( * ) WHEN COUNT( * ) THEN 89 END ) * 97
----
7954

skipif mysql # not compatible
query I rowsort label-4484
SELECT COALESCE ( 82, + 59 * - CASE + 35 WHEN + COALESCE ( + 76, + 12 + - + 18 + + ( CAST ( NULL AS INTEGER ) ) ) * 79 THEN - COUNT ( * ) WHEN COUNT ( * ) THEN 89 END ) * 97
----
7954

query I rowsort
SELECT DISTINCT + 36 * - 52
----
-1872

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4486
SELECT DISTINCT CAST( NULL AS DECIMAL ) + MAX( ALL 28 ) + - AVG ( ALL - 42 ) + + - 36 * 26 * 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT CAST ( NULL AS REAL ) + MAX ( ALL 28 ) + - AVG ( ALL - 42 ) + + - 36 * 26 * 58 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4487
SELECT ( 26 ) + + 35 + 8 + - 50 + - 30 DIV - - MAX( - 61 ) + + - 70 * - 13 AS col0
----
929

skipif mysql # not compatible
query I rowsort label-4487
SELECT ( 26 ) + + 35 + 8 + - 50 + - 30 / - - MAX ( - 61 ) + + - 70 * - 13 AS col0
----
929

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT ALL + + COUNT( * ) + - ( 29 )
----
-28

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL + + COUNT ( * ) + - ( 29 )
----
-28

query I rowsort
SELECT - ( + 61 )
----
-61

query I rowsort
SELECT - + ( - 89 ) col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4491
SELECT 27 * - 93 * - MIN( ALL - ( CAST( - 29 AS DECIMAL ) ) ) / - CAST( NULL AS SIGNED ) * + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT 27 * - 93 * - MIN ( ALL - ( CAST ( - 29 AS REAL ) ) ) / - CAST ( NULL AS INTEGER ) * + 50 AS col2
----
NULL

query I rowsort
SELECT - 82 - 51 AS col1
----
-133

query I rowsort
SELECT ALL 26 + + 94
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4494
SELECT 60 - 60, + COUNT( * ) + MIN( DISTINCT 86 ) + + 71 * - 91 + - + SUM( + 16 ) DIV - CASE - 6 WHEN - CAST( 3 AS SIGNED ) THEN 12 + 14 * ( + 44 ) WHEN - MIN( 23 ) * AVG ( ALL 34 ) - 92 THEN NULL ELSE - ( 76 ) * + 31 + + 60 END AS col2
----
0
-6374

skipif mysql # not compatible
query II rowsort label-4494
SELECT 60 - 60, + COUNT ( * ) + MIN ( DISTINCT 86 ) + + 71 * - 91 + - + SUM ( + 16 ) / - CASE - 6 WHEN - CAST ( 3 AS INTEGER ) THEN 12 + 14 * ( + 44 ) WHEN - MIN ( 23 ) * AVG ( ALL 34 ) - 92 THEN NULL ELSE - ( 76 ) * + 31 + + 60 END AS col2
----
0
-6374

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT ALL 65 + - + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL 65 + - + COUNT ( * )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT DISTINCT - COUNT( * ) + - 88 * MIN( + + 8 )
----
-705

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT - COUNT ( * ) + - 88 * MIN ( + + 8 )
----
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT ALL + NULLIF ( + COUNT( * ), NULLIF ( CASE + + 95 WHEN + ( - 89 ) THEN NULL ELSE - 81 / - 14 END, + ( 16 ) + + 61 ) - - 22 ) + 26 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL + NULLIF ( + COUNT ( * ), NULLIF ( CASE + + 95 WHEN + ( - 89 ) THEN NULL ELSE - 81 / - 14 END, + ( 16 ) + + 61 ) - - 22 ) + 26 AS col1
----
27

query I rowsort
SELECT DISTINCT - ( + 60 ) * - - 70 AS col1
----
-4200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4499
SELECT - + ( + CAST( - - 0 AS SIGNED ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-4499
SELECT - + ( + CAST ( - - 0 AS INTEGER ) ) col1
----
0

query I rowsort
SELECT 78 * 8 * + 85 AS col0
----
53040

query I rowsort
SELECT 77 + - 45 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT 86 + 11 * 53 * + COUNT( * ) AS col0
----
669

skipif mysql # not compatible
query I rowsort label-4502
SELECT 86 + 11 * 53 * + COUNT ( * ) AS col0
----
669

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT ALL - COUNT( * ) * + 50 * + 9 AS col0
----
-450

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL - COUNT ( * ) * + 50 * + 9 AS col0
----
-450

onlyif mysql # DIV for integer division: 
query I rowsort label-4504
SELECT 92 DIV + - 80
----
-1

skipif mysql # not compatible
query I rowsort label-4504
SELECT 92 / + - 80
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4505
SELECT DISTINCT - 40 DIV - + 14 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT - 40 / - + 14 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4506
SELECT DISTINCT NULLIF ( - 66, + - 84 - + 2 - - 54 * 16 ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4506
SELECT DISTINCT NULLIF ( - 66, + - 84 - + 2 - - 54 * 16 ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( - - 24, + + 60 )
----
-24

query I rowsort
SELECT ALL - 13 * - + 19
----
247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4509
SELECT - CAST( NULL AS SIGNED ) * + COUNT( * ) * - + 35 * 39
----
NULL

skipif mysql # not compatible
query I rowsort label-4509
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - + 35 * 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT + 7 * - - CASE + 17 WHEN - COUNT( * ) + + 79 * + + 73 THEN NULLIF ( - 32, + ( + 35 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4510
SELECT + 7 * - - CASE + 17 WHEN - COUNT ( * ) + + 79 * + + 73 THEN NULLIF ( - 32, + ( + 35 ) ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 41 + + 25 + + ( - - ( + 12 ) ) * 43 col1
----
582

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT MAX( + 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-4512
SELECT MAX ( + 91 ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT ALL + COUNT( * ) + + 14 - - MIN( + + 26 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL + COUNT ( * ) + + 14 - - MIN ( + + 26 ) AS col1
----
41

query I rowsort
SELECT DISTINCT - 96 + - 58
----
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4515
SELECT DISTINCT CAST( - - 33 AS SIGNED ) + - 18 * - 54 * + - 57 DIV + - COUNT( * )
----
55437

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT CAST ( - - 33 AS INTEGER ) + - 18 * - 54 * + - 57 / + - COUNT ( * )
----
55437

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT - MAX( + 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-4516
SELECT - MAX ( + 52 )
----
-52

query I rowsort
SELECT ALL 30 + - + 11 AS col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4518
SELECT + 0 + + CASE + CAST( - 8 AS SIGNED ) WHEN CAST( 41 AS SIGNED ) THEN + COUNT( + 43 ) WHEN - SUM( DISTINCT 37 ) / COUNT( * ) THEN NULL ELSE - 35 END + 75 * 12
----
865

skipif mysql # not compatible
query I rowsort label-4518
SELECT + 0 + + CASE + CAST ( - 8 AS INTEGER ) WHEN CAST ( 41 AS INTEGER ) THEN + COUNT ( + 43 ) WHEN - SUM ( DISTINCT 37 ) / COUNT ( * ) THEN NULL ELSE - 35 END + 75 * 12
----
865

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT DISTINCT - MIN( DISTINCT + NULLIF ( - ( - ( - 79 ) ), - + 57 ) ) + 52
----
131

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT - MIN ( DISTINCT + NULLIF ( - ( - ( - 79 ) ), - + 57 ) ) + 52
----
131

query II rowsort
SELECT 8 AS col0, + 38 AS col1
----
8
38

query I rowsort
SELECT + - 63 * + 98
----
-6174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4522
SELECT NULLIF ( + NULLIF ( - - 18, - ( + COALESCE ( - + 11, AVG ( - + 14 ) - ( - 77 ) ) ) - - MIN( - ( 0 ) ) ), - ( - 90 ) * NULLIF ( 0 * + 91 + + 79 * 89, 29 - + 62 ) + + CAST( NULL AS SIGNED ) ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-4522
SELECT NULLIF ( + NULLIF ( - - 18, - ( + COALESCE ( - + 11, AVG ( - + 14 ) - ( - 77 ) ) ) - - MIN ( - ( 0 ) ) ), - ( - 90 ) * NULLIF ( 0 * + 91 + + 79 * 89, 29 - + 62 ) + + CAST ( NULL AS INTEGER ) ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT ALL 96 + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL 96 + COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT - + COALESCE ( + 11, - 74 * + COUNT( * ) ) + + - 5
----
-16

skipif mysql # not compatible
query I rowsort label-4524
SELECT - + COALESCE ( + 11, - 74 * + COUNT ( * ) ) + + - 5
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT + - 60 + - 65 * + - COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4525
SELECT + - 60 + - 65 * + - COUNT ( * ) AS col1
----
5

query I rowsort
SELECT + 84 - - 41
----
125

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4527
SELECT + + ( + - 10 ) + - CAST( NULL AS DECIMAL ) + + + SUM( DISTINCT + - ( - 71 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT + + ( + - 10 ) + - CAST ( NULL AS REAL ) + + + SUM ( DISTINCT + - ( - 71 ) ) AS col1
----
NULL

query II rowsort
SELECT ALL + 74 - 35 + 61 + + 17 * 45 AS col2, 42 AS col1
----
865
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4529
SELECT ALL - COALESCE ( + ( - - 65 ), 30 * 18, + + 12 DIV - CAST( NULL AS SIGNED ) + + MAX( DISTINCT 3 ) DIV - 35 ) * + 61 AS col0
----
-3965

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL - COALESCE ( + ( - - 65 ), 30 * 18, + + 12 / - CAST ( NULL AS INTEGER ) + + MAX ( DISTINCT 3 ) / - 35 ) * + 61 AS col0
----
-3965

query I rowsort
SELECT + + 36 * 62 + - - 46
----
2278

query I rowsort
SELECT + - 61 * 84 * 9 + COALESCE ( 72, - + ( - + 57 ) ) col0
----
-46044

query I rowsort
SELECT + 43 + + 0 AS col0
----
43

query I rowsort
SELECT + 82 * ( - 91 ) * 89 * + 20 + + + 95 AS col2
----
-13282265

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4534
SELECT + COUNT( * ) * 64 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4534
SELECT + COUNT ( * ) * 64 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT NULLIF ( - ( 44 ), - + 52 ) AS col2
----
-44

query I rowsort
SELECT ALL 79 * + 87 AS col1
----
6873

query II rowsort
SELECT DISTINCT + 18 AS col0, + 67 AS col2
----
18
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL - 26 * + - ( NULLIF ( + - CASE - - COUNT( * ) WHEN + - CASE - COUNT( * ) WHEN 2 THEN NULL WHEN 39 THEN NULL ELSE - 25 + - - MAX( ALL + 93 ) / - 92 END * + 19 THEN - 4 ELSE NULL END, AVG ( 21 ) + + 77 / COALESCE ( + 25, COUNT( 8 ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL - 26 * + - ( NULLIF ( + - CASE - - COUNT ( * ) WHEN + - CASE - COUNT ( * ) WHEN 2 THEN NULL WHEN 39 THEN NULL ELSE - 25 + - - MAX ( ALL + 93 ) / - 92 END * + 19 THEN - 4 ELSE NULL END, AVG ( 21 ) + + 77 / COALESCE ( + 25, COUNT ( 8 ) ) ) )
----
NULL

query I rowsort
SELECT + 20 * + 60
----
1200

query I rowsort
SELECT ALL 26 * + 27
----
702

query I rowsort
SELECT + 0 * 52 - + 1 col2
----
-1

query I rowsort
SELECT + 84 * - 2
----
-168

query I rowsort
SELECT + ( 27 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT DISTINCT - 46 * - ( + SUM( - 45 ) ) + + + COUNT( * ) col0
----
-2069

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT - 46 * - ( + SUM ( - 45 ) ) + + + COUNT ( * ) col0
----
-2069

query II rowsort
SELECT + 78 - + - 95, 62 + + 90 AS col1
----
173
152

onlyif mysql # aggregate syntax: 
query II rowsort label-4546
SELECT + 77, + COUNT( * ) AS col0
----
77
1

skipif mysql # not compatible
query II rowsort label-4546
SELECT + 77, + COUNT ( * ) AS col0
----
77
1

query I rowsort
SELECT 54 * - 98 - + NULLIF ( + 67, - 33 + - NULLIF ( + - 86, - - 47 * 19 ) ) * + 39 + 21 + 78
----
-7806

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4548
SELECT ALL - CASE - - 79 WHEN AVG ( 21 ) THEN + AVG ( 24 ) + - + 77 WHEN + 74 + + ( ( + + COUNT( * ) ) ) - + 84 THEN NULL ELSE 97 - + 65 END DIV 25
----
-1

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL - CASE - - 79 WHEN AVG ( 21 ) THEN + AVG ( 24 ) + - + 77 WHEN + 74 + + ( ( + + COUNT ( * ) ) ) - + 84 THEN NULL ELSE 97 - + 65 END / 25
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4549
SELECT - 71 DIV - 14 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4549
SELECT - 71 / - 14 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT DISTINCT + 69 * - - COUNT( DISTINCT - 33 ) * + 50 + + + CASE + 76 WHEN - - COUNT( * ) + - 45 THEN 73 ELSE NULL END + 48 + - SUM( ALL 72 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT + 69 * - - COUNT ( DISTINCT - 33 ) * + 50 + + + CASE + 76 WHEN - - COUNT ( * ) + - 45 THEN 73 ELSE NULL END + 48 + - SUM ( ALL 72 ) AS col1
----
NULL

query II rowsort
SELECT + 87, 27 + + ( - 9 ) AS col1
----
87
18

query I rowsort
SELECT DISTINCT + 30 * - - 66 + - + 21 + + + 84 - - 55 * - 72
----
-1917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4553
SELECT DISTINCT + CASE 73 WHEN - - COALESCE ( 62, - 61 * 16 + + 49 - + 41 ) THEN CAST( NULL AS SIGNED ) WHEN - - 32 / + COUNT( * ) THEN + 31 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT + CASE 73 WHEN - - COALESCE ( 62, - 61 * 16 + + 49 - + 41 ) THEN CAST ( NULL AS INTEGER ) WHEN - - 32 / + COUNT ( * ) THEN + 31 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4554
SELECT + 35 DIV 34 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4554
SELECT + 35 / 34 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4555
SELECT - COALESCE ( - - 59, MIN( CAST( + + 57 AS SIGNED ) ) ) - - COALESCE ( 88, + 45 )
----
29

skipif mysql # not compatible
query I rowsort label-4555
SELECT - COALESCE ( - - 59, MIN ( CAST ( + + 57 AS INTEGER ) ) ) - - COALESCE ( 88, + 45 )
----
29

query I rowsort
SELECT ALL + 19 * ( + 11 ) * 51
----
10659

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT DISTINCT - COUNT( * ) * - 30 - - - 91
----
-61

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT - COUNT ( * ) * - 30 - - - 91
----
-61

query I rowsort
SELECT + 72 * + NULLIF ( 36, + + ( - 90 ) ) - + 62
----
2530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4559
SELECT + - COUNT( * ), + 52 * + 50 + + 63 + 49 + 57 - - + 27 + - ( 29 ) * + 96 * + 86 / + CAST( NULL AS SIGNED ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4559
SELECT + - COUNT ( * ), + 52 * + 50 + + 63 + 49 + 57 - - + 27 + - ( 29 ) * + 96 * + 86 / + CAST ( NULL AS INTEGER ) AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT + + CASE - MAX( - + 71 ) WHEN - + 4 + + + 26 THEN NULL WHEN + 69 * - - 94 * COUNT( * ) THEN NULL ELSE - 84 END
----
-84

skipif mysql # not compatible
query I rowsort label-4560
SELECT + + CASE - MAX ( - + 71 ) WHEN - + 4 + + + 26 THEN NULL WHEN + 69 * - - 94 * COUNT ( * ) THEN NULL ELSE - 84 END
----
-84

query I rowsort
SELECT ALL 76 * - - 33 * - - COALESCE ( + 3, - 15, + 85 ) + + 43 - - + 44 - - 59 + - 4 + - 53 col2
----
7613

onlyif mysql # aggregate syntax: 
query II rowsort label-4562
SELECT COUNT( * ), 94 + - 91 AS col2
----
1
3

skipif mysql # not compatible
query II rowsort label-4562
SELECT COUNT ( * ), 94 + - 91 AS col2
----
1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4563
SELECT - + 31 + + + 58 DIV - 24 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-4563
SELECT - + 31 + + + 58 / - 24 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT DISTINCT - MAX( ALL 59 ) col0
----
-59

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT - MAX ( ALL 59 ) col0
----
-59

query II rowsort
SELECT DISTINCT + 64 AS col2, + 78 * + 86 col2
----
64
6708

query I rowsort
SELECT - 44 + 69 * + 69 * + 63 col1
----
299899

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4567
SELECT ALL - - CAST( - MIN( DISTINCT - 88 ) AS SIGNED ) / CAST( + 6 AS SIGNED ) + - + 46 - - COUNT( * ) + + + 28 * + - CASE - 1 WHEN - ( + 1 ) * + 82 THEN - MAX( ALL - 37 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL - - CAST ( - MIN ( DISTINCT - 88 ) AS INTEGER ) / CAST ( + 6 AS INTEGER ) + - + 46 - - COUNT ( * ) + + + 28 * + - CASE - 1 WHEN - ( + 1 ) * + 82 THEN - MAX ( ALL - 37 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT - + SUM( ( - ( + + 92 ) ) ) - - 5 + + 44 AS col1
----
141

skipif mysql # not compatible
query I rowsort label-4568
SELECT - + SUM ( ( - ( + + 92 ) ) ) - - 5 + + 44 AS col1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT - CASE + 0 WHEN - + 62 THEN - + 78 * 89 WHEN - - 96 + - 49 THEN - - 9 ELSE NULL END / + 12 + ( - - ( + COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT - CASE + 0 WHEN - + 62 THEN - + 78 * 89 WHEN - - 96 + - 49 THEN - - 9 ELSE NULL END / + 12 + ( - - ( + COUNT ( * ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4570
SELECT + - 24 * - + 9 - + COALESCE ( - 20, - 62 DIV + + COALESCE ( + - 68, - 25 + + + CAST( - 42 AS SIGNED ), AVG ( DISTINCT - 8 ) * 27 ) + + 78 )
----
236

skipif mysql # not compatible
query I rowsort label-4570
SELECT + - 24 * - + 9 - + COALESCE ( - 20, - 62 / + + COALESCE ( + - 68, - 25 + + + CAST ( - 42 AS INTEGER ), AVG ( DISTINCT - 8 ) * 27 ) + + 78 )
----
236

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT ALL CASE - - 85 WHEN + 50 THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL CASE - - 85 WHEN + 50 THEN - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4572
SELECT + + 38 + COUNT( * ) DIV - ( 8 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-4572
SELECT + + 38 + COUNT ( * ) / - ( 8 ) AS col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4573
SELECT ALL COUNT( * ) DIV - + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL COUNT ( * ) / - + 57 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4574
SELECT + 97 * - COALESCE ( + 57, - ( 6 ) DIV + 60 * COUNT( DISTINCT ( 64 ) ), 35 ) AS col1
----
-5529

skipif mysql # not compatible
query I rowsort label-4574
SELECT + 97 * - COALESCE ( + 57, - ( 6 ) / + 60 * COUNT ( DISTINCT ( 64 ) ), 35 ) AS col1
----
-5529

query I rowsort
SELECT 12 - - 72
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4576
SELECT ALL COUNT( 94 ) DIV - - COUNT( * ) - + - 35
----
36

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL COUNT ( 94 ) / - - COUNT ( * ) - + - 35
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT + NULLIF ( 71, - 47 - + COUNT( * ) ) * + - 57 + - + 58 + - - 91 - + NULLIF ( + - 73, + - COUNT( * ) * + - ( + COUNT( * ) ) / + 11 + 16 + 96 ) * 28 + - 63
----
-2033

skipif mysql # not compatible
query I rowsort label-4577
SELECT + NULLIF ( 71, - 47 - + COUNT ( * ) ) * + - 57 + - + 58 + - - 91 - + NULLIF ( + - 73, + - COUNT ( * ) * + - ( + COUNT ( * ) ) / + 11 + 16 + 96 ) * 28 + - 63
----
-2033

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT COALESCE ( - + ( COUNT( * ) ), - 64, - 72, + MAX( + 57 ) + + - SUM( - - 27 ) ) + ( + 39 )
----
38

skipif mysql # not compatible
query I rowsort label-4578
SELECT COALESCE ( - + ( COUNT ( * ) ), - 64, - 72, + MAX ( + 57 ) + + - SUM ( - - 27 ) ) + ( + 39 )
----
38

query I rowsort
SELECT 95 * + 40 AS col2
----
3800

query I rowsort
SELECT 31 * + - 29 * + 79
----
-71021

query II rowsort
SELECT ALL 72 + 98 + + 77 * + + 80 + - - 81 - - 19 * + 50, + 32 AS col1
----
7361
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4582
SELECT 86 DIV - - 30 + 51 * + COALESCE ( 9, + 9 * - - NULLIF ( 29, 12 * + COUNT( * ) + + 44 * + COUNT( * ) + 75 ) * COALESCE ( - 55, + 78 + 90 ) + 40, - 2 + + CAST( - 61 AS SIGNED ) ) * COUNT( + 86 ) + + 69 * 0
----
461

skipif mysql # not compatible
query I rowsort label-4582
SELECT 86 / - - 30 + 51 * + COALESCE ( 9, + 9 * - - NULLIF ( 29, 12 * + COUNT ( * ) + + 44 * + COUNT ( * ) + 75 ) * COALESCE ( - 55, + 78 + 90 ) + 40, - 2 + + CAST ( - 61 AS INTEGER ) ) * COUNT ( + 86 ) + + 69 * 0
----
461

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT ALL COUNT( * ) + - 93 * - 65
----
6046

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL COUNT ( * ) + - 93 * - 65
----
6046

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT COALESCE ( + 94, - 0 - + 37 - - 62 * - 49 ) + - MAX( 82 ) + + 5
----
17

skipif mysql # not compatible
query I rowsort label-4584
SELECT COALESCE ( + 94, - 0 - + 37 - - 62 * - 49 ) + - MAX ( 82 ) + + 5
----
17

onlyif mysql # aggregate syntax: 
query III rowsort label-4585
SELECT ALL - SUM( ALL + - 96 ), 77 col2, - ( - 66 ) AS col2
----
96
77
66

skipif mysql # not compatible
query III rowsort label-4585
SELECT ALL - SUM ( ALL + - 96 ), 77 col2, - ( - 66 ) AS col2
----
96
77
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT 59 * - - ( + 34 ) + COUNT( * )
----
2007

skipif mysql # not compatible
query I rowsort label-4586
SELECT 59 * - - ( + 34 ) + COUNT ( * )
----
2007

query I rowsort
SELECT ALL 36 + ( + + 38 ) AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4588
SELECT - 95 * + ( + + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) ) + - 93 + - NULLIF ( + 20, - 41 + MAX( + ( + 66 ) ) + - 99 + + CASE + COUNT( * ) WHEN + 31 + - 84 THEN 91 * 34 END * 78 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4588
SELECT - 95 * + ( + + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) ) + - 93 + - NULLIF ( + 20, - 41 + MAX ( + ( + 66 ) ) + - 99 + + CASE + COUNT ( * ) WHEN + 31 + - 84 THEN 91 * 34 END * 78 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4589
SELECT ALL + 23 + + 4, - 62 - 52 - 95 + - - CAST( NULL AS SIGNED ) * + COUNT( + - 22 ) AS col2
----
27
NULL

skipif mysql # not compatible
query II rowsort label-4589
SELECT ALL + 23 + + 4, - 62 - 52 - 95 + - - CAST ( NULL AS INTEGER ) * + COUNT ( + - 22 ) AS col2
----
27
NULL

query I rowsort
SELECT 10 * + 90
----
900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4591
SELECT DISTINCT COUNT( * ) + + + 34 + ( COUNT( * ) ) DIV + 71
----
35

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT COUNT ( * ) + + + 34 + ( COUNT ( * ) ) / + 71
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT ALL + + COUNT( * ) - - - 69 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL + + COUNT ( * ) - - - 69 AS col1
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4593
SELECT + CAST( NULL AS SIGNED ) * - 73 * - ( + 58 ) * - + ( - + 98 ) + + - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4593
SELECT + CAST ( NULL AS INTEGER ) * - 73 * - ( + 58 ) * - + ( - + 98 ) + + - 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT ALL - - MIN( 69 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL - - MIN ( 69 ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT - 15 * - - ( - COUNT( * ) ) + - COUNT( * ) + + COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-4595
SELECT - 15 * - - ( - COUNT ( * ) ) + - COUNT ( * ) + + COUNT ( * ) AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4596
SELECT - CAST( + + 38 AS SIGNED ) AS col1, 81 AS col2
----
-38
81

skipif mysql # not compatible
query II rowsort label-4596
SELECT - CAST ( + + 38 AS INTEGER ) AS col1, 81 AS col2
----
-38
81

query I rowsort
SELECT - 75 * - - 67 col1
----
-5025

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4598
SELECT ALL + 58 * 20 / + + 24 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL + 58 * 20 / + + 24 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - + 49 - + 42
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-4600
SELECT ALL MIN( DISTINCT 20 ), - 99 AS col2
----
20
-99

skipif mysql # not compatible
query II rowsort label-4600
SELECT ALL MIN ( DISTINCT 20 ), - 99 AS col2
----
20
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4601
SELECT - 2 DIV + ( + + NULLIF ( + - 34, + COUNT( * ) + - 48 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4601
SELECT - 2 / + ( + + NULLIF ( + - 34, + COUNT ( * ) + - 48 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4602
SELECT + 42 * + 19 AS col1, 94 + CAST( - 92 AS SIGNED ) + - - 90 * + 60 * - 8
----
798
-43198

skipif mysql # not compatible
query II rowsort label-4602
SELECT + 42 * + 19 AS col1, 94 + CAST ( - 92 AS INTEGER ) + - - 90 * + 60 * - 8
----
798
-43198

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4603
SELECT ALL + - CAST( NULL AS SIGNED ) * - 70 AS col2, 71 * - - 74
----
NULL
5254

skipif mysql # not compatible
query II rowsort label-4603
SELECT ALL + - CAST ( NULL AS INTEGER ) * - 70 AS col2, 71 * - - 74
----
NULL
5254

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT + 25 + - + COUNT( * ) + 88 * 15
----
1344

skipif mysql # not compatible
query I rowsort label-4604
SELECT + 25 + - + COUNT ( * ) + 88 * 15
----
1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4605
SELECT ALL - CASE - - 74 WHEN + ( 66 ) * - NULLIF ( 37, 64 + + COUNT( - 99 ) ) - + 32 THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL - CASE - - 74 WHEN + ( 66 ) * - NULLIF ( 37, 64 + + COUNT ( - 99 ) ) - + 32 THEN CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT ALL - MIN( DISTINCT 4 ) * - 9 - + 70
----
-34

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL - MIN ( DISTINCT 4 ) * - 9 - + 70
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT COUNT( * ) + - - 74 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-4607
SELECT COUNT ( * ) + - - 74 AS col2
----
75

query I rowsort
SELECT ALL + 26 + + 30
----
56

query I rowsort
SELECT 12 + + 63
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4610
SELECT 18, + COUNT( * ) AS col0
----
18
1

skipif mysql # not compatible
query II rowsort label-4610
SELECT 18, + COUNT ( * ) AS col0
----
18
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4611
SELECT 26 col1, 87 + - - 2 DIV - + 8 DIV + + COUNT( * )
----
26
87

skipif mysql # not compatible
query II rowsort label-4611
SELECT 26 col1, 87 + - - 2 / - + 8 / + + COUNT ( * )
----
26
87

query I rowsort
SELECT 2 * + 30 AS col0
----
60

query I rowsort
SELECT DISTINCT + 9 + + 66
----
75

query I rowsort
SELECT DISTINCT 84 + + - 2
----
82

query II rowsort
SELECT DISTINCT - 59 AS col0, + 15 * + 93 col1
----
-59
1395

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4616
SELECT ALL 19 + - + 61 + + CAST( NULL AS SIGNED ) * - ( 42 ) * + - 14, - 21 / + CAST( NULL AS DECIMAL ) * - - AVG ( + 72 ) / - + 86 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4616
SELECT ALL 19 + - + 61 + + CAST ( NULL AS INTEGER ) * - ( 42 ) * + - 14, - 21 / + CAST ( NULL AS REAL ) * - - AVG ( + 72 ) / - + 86 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT MAX( - 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-4617
SELECT MAX ( - 93 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT ALL - MAX( + - 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL - MAX ( + - 31 ) AS col2
----
31

onlyif mysql # DIV for integer division: 
query II rowsort label-4619
SELECT - 53 DIV - 44 + - 36 AS col1, 33 AS col2
----
-35
33

skipif mysql # not compatible
query II rowsort label-4619
SELECT - 53 / - 44 + - 36 AS col1, 33 AS col2
----
-35
33

onlyif mysql # DIV for integer division: 
query III rowsort label-4620
SELECT ( 45 ) DIV 35 AS col2, - 41 AS col2, - 4
----
1
-41
-4

skipif mysql # not compatible
query III rowsort label-4620
SELECT ( 45 ) / 35 AS col2, - 41 AS col2, - 4
----
1
-41
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT ALL COUNT( DISTINCT + 70 ) - + - 23 * 63
----
1450

skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL COUNT ( DISTINCT + 70 ) - + - 23 * 63
----
1450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4622
SELECT COALESCE ( + + 10, + 15 - - COUNT( * ), + MIN( ALL + 39 ) DIV - 56 ) - + 7 + + ( - - 74 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4622
SELECT COALESCE ( + + 10, + 15 - - COUNT ( * ), + MIN ( ALL + 39 ) / - 56 ) - + 7 + + ( - - 74 ) AS col0
----
77

query II rowsort
SELECT ALL - 7 AS col1, - 81 * + 7 + + 80 AS col0
----
-7
-487

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT DISTINCT - CASE - - 44 WHEN 51 + COUNT( * ) THEN NULL ELSE 11 END
----
-11

skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT - CASE - - 44 WHEN 51 + COUNT ( * ) THEN NULL ELSE 11 END
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT NULLIF ( 86, - - COUNT( * ) + + 54 ) * - 21 + - 41 * COUNT( * )
----
-1847

skipif mysql # not compatible
query I rowsort label-4625
SELECT NULLIF ( 86, - - COUNT ( * ) + + 54 ) * - 21 + - 41 * COUNT ( * )
----
-1847

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT + MAX( DISTINCT - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-4626
SELECT + MAX ( DISTINCT - 24 )
----
-24

query I rowsort
SELECT + 73 * 74
----
5402

onlyif mysql # DIV for integer division: 
query II rowsort label-4628
SELECT + + 6, 62 * + 19 * - + 32 + + ( - ( + ( - 57 ) ) ) DIV 44 AS col2
----
6
-37695

skipif mysql # not compatible
query II rowsort label-4628
SELECT + + 6, 62 * + 19 * - + 32 + + ( - ( + ( - 57 ) ) ) / 44 AS col2
----
6
-37695

query I rowsort
SELECT + 40 * - 32 AS col2
----
-1280

query I rowsort
SELECT - ( + 75 ) * - 32 * + 76 AS col1
----
182400

onlyif mysql # aggregate syntax: 
query II rowsort label-4631
SELECT - + 83, MAX( DISTINCT + 51 ) AS col1
----
-83
51

skipif mysql # not compatible
query II rowsort label-4631
SELECT - + 83, MAX ( DISTINCT + 51 ) AS col1
----
-83
51

query II rowsort
SELECT DISTINCT 7 AS col2, 8
----
7
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4633
SELECT ALL + 73, - CAST( NULL AS SIGNED ) * CASE COUNT( + + 44 ) WHEN + 54 THEN 6 - - 79 + + + ( - - 0 ) / - 53 WHEN - + CASE + ( + COALESCE ( - 19, 24 + + COUNT( * ) ) ) WHEN 11 + + 18 THEN - 77 + - COUNT( * ) END THEN - 90 / - CAST( NULL AS SIGNED ) END / 23 AS col0
----
73
NULL

skipif mysql # not compatible
query II rowsort label-4633
SELECT ALL + 73, - CAST ( NULL AS INTEGER ) * CASE COUNT ( + + 44 ) WHEN + 54 THEN 6 - - 79 + + + ( - - 0 ) / - 53 WHEN - + CASE + ( + COALESCE ( - 19, 24 + + COUNT ( * ) ) ) WHEN 11 + + 18 THEN - 77 + - COUNT ( * ) END THEN - 90 / - CAST ( NULL AS INTEGER ) END / 23 AS col0
----
73
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4634
SELECT DISTINCT - 50 col1, + NULLIF ( - + 45, MAX( + 45 ) ) AS col0
----
-50
-45

skipif mysql # not compatible
query II rowsort label-4634
SELECT DISTINCT - 50 col1, + NULLIF ( - + 45, MAX ( + 45 ) ) AS col0
----
-50
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4635
SELECT - CAST( + + 77 AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-4635
SELECT - CAST ( + + 77 AS INTEGER )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT COUNT( ALL - - 82 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4636
SELECT COUNT ( ALL - - 82 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4637
SELECT ALL + 41 + + ( - 44 ) AS col2, CAST( NULL AS SIGNED ) AS col0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4637
SELECT ALL + 41 + + ( - 44 ) AS col2, CAST ( NULL AS INTEGER ) AS col0
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT - - 30 * COUNT( * ) - - COUNT( - 63 )
----
31

skipif mysql # not compatible
query I rowsort label-4638
SELECT - - 30 * COUNT ( * ) - - COUNT ( - 63 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT + COUNT( DISTINCT - 67 ) + - 57
----
-56

skipif mysql # not compatible
query I rowsort label-4639
SELECT + COUNT ( DISTINCT - 67 ) + - 57
----
-56

query I rowsort
SELECT - 91 * - ( - + ( - 72 ) )
----
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT + COALESCE ( - COUNT( - + 96 ), - 79 ) - + + 33 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-4641
SELECT + COALESCE ( - COUNT ( - + 96 ), - 79 ) - + + 33 AS col1
----
-34

query I rowsort
SELECT - COALESCE ( + - 18, + - 25 ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT - 79 + COUNT( DISTINCT + 40 ) + + 3 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-4643
SELECT - 79 + COUNT ( DISTINCT + 40 ) + + 3 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT ALL - COUNT( * ) + 66 * + - COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL - COUNT ( * ) + 66 * + - COUNT ( * ) AS col2
----
-67

query I rowsort
SELECT - 25 - - 95 AS col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4646
SELECT - 95 + + - 39 DIV + - COUNT( * ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4646
SELECT - 95 + + - 39 / + - COUNT ( * ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-4647
SELECT - 1 - - COUNT( * ) * + COUNT( + 65 ) AS col2, + ( NULLIF ( + 86, 79 ) ) * - + 18 + - 52 - COUNT( * ) * + 67 + + + 89 - + 56 * 47
----
0
-4210

skipif mysql # not compatible
query II rowsort label-4647
SELECT - 1 - - COUNT ( * ) * + COUNT ( + 65 ) AS col2, + ( NULLIF ( + 86, 79 ) ) * - + 18 + - 52 - COUNT ( * ) * + 67 + + + 89 - + 56 * 47
----
0
-4210

query II rowsort
SELECT ( 96 ) AS col1, 14
----
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT ALL + 38 * - 3 - 76 * - COUNT( ALL 20 ) + - 87 * - - 4 + - 45 AS col1
----
-431

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL + 38 * - 3 - 76 * - COUNT ( ALL 20 ) + - 87 * - - 4 + - 45 AS col1
----
-431

query I rowsort
SELECT - 89 * - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT COUNT( * ) * - 85 + 34 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4651
SELECT COUNT ( * ) * - 85 + 34 AS col1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4652
SELECT 60 DIV 4 + 54 + 24 col1
----
93

skipif mysql # not compatible
query I rowsort label-4652
SELECT 60 / 4 + 54 + 24 col1
----
93

query I rowsort
SELECT ALL + 33 * + 1
----
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4654
SELECT ALL - SUM( ALL - 28 ) * - 11 - + - 44 AS col1, NULLIF ( ( ( - CAST( NULL AS DECIMAL ) ) ), 17 * + 13 )
----
-264
NULL

skipif mysql # not compatible
query II rowsort label-4654
SELECT ALL - SUM ( ALL - 28 ) * - 11 - + - 44 AS col1, NULLIF ( ( ( - CAST ( NULL AS REAL ) ) ), 17 * + 13 )
----
-264
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4655
SELECT 44 * - + 65 + - 77 - + - COUNT( * ) DIV 67 + - 24 * - - MAX( DISTINCT + 9 )
----
-3153

skipif mysql # not compatible
query I rowsort label-4655
SELECT 44 * - + 65 + - 77 - + - COUNT ( * ) / 67 + - 24 * - - MAX ( DISTINCT + 9 )
----
-3153

query II rowsort
SELECT DISTINCT - 80 * ( + 18 ) * + - 9 AS col2, 82 - - + 38 - + + 57 + - ( - 77 ) * + - 31
----
12960
-2324

query I rowsort
SELECT ALL + 22 * + 8 + - 56
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-4658
SELECT + + 52 DIV - 30
----
-1

skipif mysql # not compatible
query I rowsort label-4658
SELECT + + 52 / - 30
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4659
SELECT + + ( + 54 ) DIV 88 + + COUNT( ALL - 90 ) AS col1, - COUNT( * )
----
1
-1

skipif mysql # not compatible
query II rowsort label-4659
SELECT + + ( + 54 ) / 88 + + COUNT ( ALL - 90 ) AS col1, - COUNT ( * )
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT - COUNT( * ) * + - MIN( ALL - 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4660
SELECT - COUNT ( * ) * + - MIN ( ALL - 92 ) AS col1
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-4661
SELECT + 93 DIV + 81 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4661
SELECT + 93 / + 81 AS col0
----
1

query I rowsort
SELECT ALL + CASE - ( - - 22 ) WHEN + 39 + 9 THEN 14 * 51 * 54 * - + 37 * 68 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 48 * - - 19 + + 21 col2
----
933

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4664
SELECT - CASE WHEN NULL IS NOT NULL THEN - COUNT( ALL 71 ) ELSE + + CAST( NULLIF ( + MIN( + - 79 ), - + ( - 30 ) / - 48 + + - 51 + - - 15 ) AS SIGNED ) + 12 END AS col1
----
67

skipif mysql # not compatible
query I rowsort label-4664
SELECT - CASE WHEN NULL IS NOT NULL THEN - COUNT ( ALL 71 ) ELSE + + CAST ( NULLIF ( + MIN ( + - 79 ), - + ( - 30 ) / - 48 + + - 51 + - - 15 ) AS INTEGER ) + 12 END AS col1
----
67

query I rowsort
SELECT - - 81 - - 24 AS col2
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4666
SELECT DISTINCT + 18 * - 59 / - + 77 + 10 + - 95 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT + 18 * - 59 / - + 77 + 10 + - 95 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT - COALESCE ( - - COALESCE ( - - COUNT( * ), + - 32 + 29, - 27 + 13 ), - + 58, ( ( - COUNT( * ) ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4667
SELECT - COALESCE ( - - COALESCE ( - - COUNT ( * ), + - 32 + 29, - 27 + 13 ), - + 58, ( ( - COUNT ( * ) ) ) ) AS col1
----
-1

query I rowsort
SELECT - 67 + + + 28
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4669
SELECT + 79 + + - 4 * - 60 + - + COUNT( * ) DIV - 85 AS col1, ( + 95 ) * - - 14
----
319
1330

skipif mysql # not compatible
query II rowsort label-4669
SELECT + 79 + + - 4 * - 60 + - + COUNT ( * ) / - 85 AS col1, ( + 95 ) * - - 14
----
319
1330

onlyif mysql # DIV for integer division: 
query I rowsort label-4670
SELECT DISTINCT 85 + 22 + 54 DIV + 99 * + 1 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT 85 + 22 + 54 / + 99 * + 1 AS col2
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4671
SELECT + 55 DIV 59 DIV - + 95 * + CASE WHEN NOT 89 <= + COALESCE ( + ( + 94 ), + 4 ) DIV - 1 * - 50 THEN - + 44 ELSE MIN( ALL + + 22 ) END
----
0

skipif mysql # not compatible
query I rowsort label-4671
SELECT + 55 / 59 / - + 95 * + CASE WHEN NOT 89 <= + COALESCE ( + ( + 94 ), + 4 ) / - 1 * - 50 THEN - + 44 ELSE MIN ( ALL + + 22 ) END
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4672
SELECT DISTINCT 9 col0, + 1 DIV + - 20 + 44 * + 3
----
9
132

skipif mysql # not compatible
query II rowsort label-4672
SELECT DISTINCT 9 col0, + 1 / + - 20 + 44 * + 3
----
9
132

query I rowsort
SELECT ALL - 36 * - ( + + 95 ) AS col0
----
3420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4674
SELECT ALL 13 DIV + - ( + 34 ) * + + 88 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL 13 / + - ( + 34 ) * + + 88 + + COUNT ( * )
----
1

query I rowsort
SELECT - 25 + - 98 AS col2
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT - COUNT( * ) + 5 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4676
SELECT - COUNT ( * ) + 5 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT + 72 * + NULLIF ( + 39, + - 54 + 3 ) * - COUNT( * ) AS col1
----
-2808

skipif mysql # not compatible
query I rowsort label-4677
SELECT + 72 * + NULLIF ( + 39, + - 54 + 3 ) * - COUNT ( * ) AS col1
----
-2808

onlyif mysql # aggregate syntax: 
query II rowsort label-4678
SELECT - 95 * + COUNT( * ) * - + 98, 31 + - 96 col1
----
9310
-65

skipif mysql # not compatible
query II rowsort label-4678
SELECT - 95 * + COUNT ( * ) * - + 98, 31 + - 96 col1
----
9310
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-4679
SELECT ALL 83 col2, + COUNT( * )
----
83
1

skipif mysql # not compatible
query II rowsort label-4679
SELECT ALL 83 col2, + COUNT ( * )
----
83
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 8 * 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 8 * 91 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT - ( + 30 ) * - ( 21 ) * + COUNT( * ) - - 44
----
674

skipif mysql # not compatible
query I rowsort label-4681
SELECT - ( + 30 ) * - ( 21 ) * + COUNT ( * ) - - 44
----
674

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4682
SELECT ALL - 43 DIV + NULLIF ( - 6, - ( + 66 ) ) + COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL - 43 / + NULLIF ( - 6, - ( + 66 ) ) + COUNT ( * ) AS col2
----
8

query I rowsort
SELECT - - 29 * - 96 + - ( + 53 ) AS col2
----
-2837

onlyif mysql # aggregate syntax: 
query II rowsort label-4684
SELECT + - COUNT( * ) * - - 94 - + ( + + ( - 50 ) ), - 5 AS col2
----
-44
-5

skipif mysql # not compatible
query II rowsort label-4684
SELECT + - COUNT ( * ) * - - 94 - + ( + + ( - 50 ) ), - 5 AS col2
----
-44
-5

query I rowsort
SELECT DISTINCT - - 83 * - 64 * - + CASE 17 WHEN 34 THEN + 77 / - NULLIF ( + 38, - 13 + 66 ) * - + 60 + + 72 END * 3 * + ( - 17 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4686
SELECT ALL - 14 DIV - 59 + + 1
----
1

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL - 14 / - 59 + + 1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4687
SELECT + - 14 * + + CAST( NULL AS SIGNED ) * 36 + + 28 * + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4687
SELECT + - 14 * + + CAST ( NULL AS INTEGER ) * 36 + + 28 * + 98 AS col0
----
NULL

query I rowsort
SELECT - 80 * - 33
----
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT DISTINCT + MAX( + 63 ) + + 63 + 78 AS col0
----
204

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT + MAX ( + 63 ) + + 63 + 78 AS col0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT ALL - + MAX( + + 14 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL - + MAX ( + + 14 ) AS col0
----
-14

query I rowsort
SELECT + 47 * - 35 AS col0
----
-1645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4692
SELECT DISTINCT CAST( NULL AS SIGNED ) - - 1 - - 78 / - 66 - - - ( - 44 ) * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4692
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 1 - - 78 / - 66 - - - ( - 44 ) * 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT MAX( 94 ) - 71 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT MAX ( 94 ) - 71 AS col1
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-4694
SELECT ALL 4 AS col0, 46 + - 92 DIV + + 48
----
4
45

skipif mysql # not compatible
query II rowsort label-4694
SELECT ALL 4 AS col0, 46 + - 92 / + + 48
----
4
45

query II rowsort
SELECT DISTINCT 61 * + 46 AS col1, 17
----
2806
17

query I rowsort
SELECT DISTINCT 72 * + 81
----
5832

query I rowsort
SELECT 40 * - 3
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT 11 + + COUNT( * ) - + 37
----
-25

skipif mysql # not compatible
query I rowsort label-4698
SELECT 11 + + COUNT ( * ) - + 37
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT ALL 7 - - + COUNT( * ) + - 29 + - - 22 - - - 12 * + - 3 * 8 + - 41
----
248

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL 7 - - + COUNT ( * ) + - 29 + - - 22 - - - 12 * + - 3 * 8 + - 41
----
248

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT COUNT( * ) + + 8 * + - 2 * SUM( + 91 ) * + + 10 + - 96 AS col1
----
-14655

skipif mysql # not compatible
query I rowsort label-4700
SELECT COUNT ( * ) + + 8 * + - 2 * SUM ( + 91 ) * + + 10 + - 96 AS col1
----
-14655

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT COUNT( * ) + + - 35 * 11 AS col2
----
-384

skipif mysql # not compatible
query I rowsort label-4701
SELECT COUNT ( * ) + + - 35 * 11 AS col2
----
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT 65 * + + COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4702
SELECT 65 * + + COUNT ( * ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT ALL - CASE 55 WHEN + COUNT( * ) * 51 THEN - 62 + + 14 * - 8 * - 9 * - COUNT( * ) END * - + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL - CASE 55 WHEN + COUNT ( * ) * 51 THEN - 62 + + 14 * - 8 * - 9 * - COUNT ( * ) END * - + 69
----
NULL

query II rowsort
SELECT ALL 78 AS col1, 6 + 24 + - 9
----
78
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT ( + - 55 ) + - - 54 + + - COUNT( - 24 )
----
-2

skipif mysql # not compatible
query I rowsort label-4705
SELECT ( + - 55 ) + - - 54 + + - COUNT ( - 24 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT 55 + - SUM( 23 ) col1
----
32

skipif mysql # not compatible
query I rowsort label-4706
SELECT 55 + - SUM ( 23 ) col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4707
SELECT CAST( + 74 AS SIGNED ) + - 14 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-4707
SELECT CAST ( + 74 AS INTEGER ) + - 14 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT NULLIF ( 23, + - COUNT( * ) - ( 50 ) * + 8 ) + + 24
----
47

skipif mysql # not compatible
query I rowsort label-4708
SELECT NULLIF ( 23, + - COUNT ( * ) - ( 50 ) * + 8 ) + + 24
----
47

query I rowsort
SELECT 25 + - 93 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT - CASE - 20 WHEN 48 + - 24 THEN - - COUNT( * ) * - - ( - + 57 ) * - 9 + 3 + COUNT( * ) * + 92 WHEN 44 + + + 45 THEN + 95 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4710
SELECT - CASE - 20 WHEN 48 + - 24 THEN - - COUNT ( * ) * - - ( - + 57 ) * - 9 + 3 + COUNT ( * ) * + 92 WHEN 44 + + + 45 THEN + 95 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT COUNT( * ) * + 43 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-4711
SELECT COUNT ( * ) * + 43 AS col2
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4712
SELECT + COUNT( * ) * ( - 76 ) + - COALESCE ( + - CASE 78 WHEN + 15 THEN - 10 WHEN 77 THEN NULL WHEN - 43 * + 96 THEN 34 * + + 43 DIV - - 11 ELSE NULL END, - 73, COUNT( * ) ) + + ( + 70 + - 23 ) * + COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4712
SELECT + COUNT ( * ) * ( - 76 ) + - COALESCE ( + - CASE 78 WHEN + 15 THEN - 10 WHEN 77 THEN NULL WHEN - 43 * + 96 THEN 34 * + + 43 / - - 11 ELSE NULL END, - 73, COUNT ( * ) ) + + ( + 70 + - 23 ) * + COUNT ( * ) AS col0
----
44

query I rowsort
SELECT DISTINCT - 39 + - + 61 + 24 * 29
----
596

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT ALL + + COUNT( * ) + + 19 + 96
----
116

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL + + COUNT ( * ) + + 19 + 96
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-4715
SELECT + 2 DIV - - 59 + + 45 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4715
SELECT + 2 / - - 59 + + 45 AS col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4716
SELECT ALL + COUNT( 38 ) * - - 29 DIV 16
----
1

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL + COUNT ( 38 ) * - - 29 / 16
----
1

query I rowsort
SELECT DISTINCT + NULLIF ( + 64, 86 ) + 12
----
76

query I rowsort
SELECT ALL - - 59 col2
----
59

query I rowsort
SELECT DISTINCT 98 + + 53 * - + 40 + 21 col1
----
-2001

onlyif mysql # aggregate syntax: 
query II rowsort label-4720
SELECT ALL COUNT( * ) + - 15 - + 90 * 46 AS col2, + 9 AS col1
----
-4154
9

skipif mysql # not compatible
query II rowsort label-4720
SELECT ALL COUNT ( * ) + - 15 - + 90 * 46 AS col2, + 9 AS col1
----
-4154
9

query I rowsort
SELECT DISTINCT + 98 + - 24 + - CASE + 31 WHEN - 47 THEN 22 END / - 59 + + 47
----
NULL

query II rowsort
SELECT - 69 + + + 56, 39 AS col0
----
-13
39

onlyif mysql # aggregate syntax: 
query III rowsort label-4723
SELECT + ( + 46 ) AS col0, - 66 + - 16, - CASE - - COUNT( * ) WHEN - 5 * + + 86 + + - 32 THEN NULL WHEN - 21 * + 37 THEN NULL ELSE + 81 + - 1 + + 26 END + - - COUNT( * ) AS col0
----
46
-82
-105

skipif mysql # not compatible
query III rowsort label-4723
SELECT + ( + 46 ) AS col0, - 66 + - 16, - CASE - - COUNT ( * ) WHEN - 5 * + + 86 + + - 32 THEN NULL WHEN - 21 * + 37 THEN NULL ELSE + 81 + - 1 + + 26 END + - - COUNT ( * ) AS col0
----
46
-82
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT + + SUM( + 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4724
SELECT + + SUM ( + 33 ) AS col2
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4725
SELECT 66 + - - MIN( DISTINCT + - 2 ) DIV 57 * ( + 66 ) + + - 51 * + - 83 AS col2
----
4299

skipif mysql # not compatible
query I rowsort label-4725
SELECT 66 + - - MIN ( DISTINCT + - 2 ) / 57 * ( + 66 ) + + - 51 * + - 83 AS col2
----
4299

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT ( + 76 ) * 80 * + MIN( ALL 82 ) col0
----
498560

skipif mysql # not compatible
query I rowsort label-4726
SELECT ( + 76 ) * 80 * + MIN ( ALL 82 ) col0
----
498560

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT ALL - - COUNT( * ) * - 99 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL - - COUNT ( * ) * - 99 AS col0
----
-99

query I rowsort
SELECT ALL - 36 * 19 AS col2
----
-684

query I rowsort
SELECT 21 + 87
----
108

query I rowsort
SELECT ALL - 64 * 54 AS col0
----
-3456

query I rowsort
SELECT ALL + ( - 76 ) - + - 10
----
-66

query I rowsort
SELECT DISTINCT + NULLIF ( - + 59, - 96 ) * - - 82
----
-4838

query I rowsort
SELECT 4 - - 66 AS col2
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-4734
SELECT 11 * - 4, + 58 DIV - 42 AS col1
----
-44
-1

skipif mysql # not compatible
query II rowsort label-4734
SELECT 11 * - 4, + 58 / - 42 AS col1
----
-44
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4735
SELECT 49 * - + 98 AS col2, COUNT( * ) DIV - 33 AS col0
----
-4802
0

skipif mysql # not compatible
query II rowsort label-4735
SELECT 49 * - + 98 AS col2, COUNT ( * ) / - 33 AS col0
----
-4802
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT DISTINCT COUNT( 81 )
----
1

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT COUNT ( 81 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4737
SELECT 30 DIV + 6
----
5

skipif mysql # not compatible
query I rowsort label-4737
SELECT 30 / + 6
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT MIN( - 17 ) + + 16 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4738
SELECT MIN ( - 17 ) + + 16 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT DISTINCT SUM( ALL - + 45 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT SUM ( ALL - + 45 ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-4740
SELECT ALL COUNT( 97 ), - 27 AS col2
----
1
-27

skipif mysql # not compatible
query II rowsort label-4740
SELECT ALL COUNT ( 97 ), - 27 AS col2
----
1
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT DISTINCT + 84 + + - 39 - - COUNT( * ) * - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT + 84 + + - 39 - - COUNT ( * ) * - COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT - COUNT( ALL + 84 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4742
SELECT - COUNT ( ALL + 84 ) AS col2
----
-1

query I rowsort
SELECT ALL 53 * + 26 * + 36
----
49608

query I rowsort
SELECT 55 * + NULLIF ( + NULLIF ( - - COALESCE ( 91, + 39 ), - 32 * 35 ), + ( + 0 ) - - + 16 ) * + + 96 + + 19 * + 59 * - 75 col0
----
396405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4745
SELECT SUM( + - 73 ) * + NULLIF ( - 48, + CAST( ( - CAST( NULL AS DECIMAL ) ) AS SIGNED ) ) AS col2
----
3504

skipif mysql # not compatible
query I rowsort label-4745
SELECT SUM ( + - 73 ) * + NULLIF ( - 48, + CAST ( ( - CAST ( NULL AS REAL ) ) AS INTEGER ) ) AS col2
----
3504

onlyif mysql # DIV for integer division: 
query I rowsort label-4746
SELECT ALL - 10 + - 91 DIV 71 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL - 10 + - 91 / 71 AS col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4747
SELECT DISTINCT + - 91 * COUNT( * ), CAST( - 84 AS SIGNED ) AS col1
----
-91
-84

skipif mysql # not compatible
query II rowsort label-4747
SELECT DISTINCT + - 91 * COUNT ( * ), CAST ( - 84 AS INTEGER ) AS col1
----
-91
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT + + ( 12 ) * CASE 22 WHEN - 42 + - 21 THEN - SUM( DISTINCT 35 ) - - 23 WHEN COUNT( * ) THEN 9 ELSE NULL END + - 75 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4748
SELECT + + ( 12 ) * CASE 22 WHEN - 42 + - 21 THEN - SUM ( DISTINCT 35 ) - - 23 WHEN COUNT ( * ) THEN 9 ELSE NULL END + - 75 col0
----
NULL

query I rowsort
SELECT + - 63 * - + 29 AS col0
----
1827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4750
SELECT ALL - 58 DIV + + 53 - - ( - COUNT( - - 54 ) ), ( - + COUNT( DISTINCT 33 ) ) DIV + - 94 + - - 93 + + - 71 + 5 * - CAST( NULL AS SIGNED ) AS col2
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-4750
SELECT ALL - 58 / + + 53 - - ( - COUNT ( - - 54 ) ), ( - + COUNT ( DISTINCT 33 ) ) / + - 94 + - - 93 + + - 71 + 5 * - CAST ( NULL AS INTEGER ) AS col2
----
-2
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4751
SELECT COUNT( ALL 31 ) DIV - 77 + - - 17 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4751
SELECT COUNT ( ALL 31 ) / - 77 + - - 17 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT + - CASE + - 0 WHEN + COUNT( * ) THEN NULL ELSE + 76 END
----
-76

skipif mysql # not compatible
query I rowsort label-4752
SELECT + - CASE + - 0 WHEN + COUNT ( * ) THEN NULL ELSE + 76 END
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4753
SELECT + + CAST( + + 97 AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-4753
SELECT + + CAST ( + + 97 AS INTEGER )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4754
SELECT - CASE - 9 WHEN 27 THEN - - 74 ELSE NULL END * - CAST( NULL AS SIGNED ) + + - 21 * 44 + - - NULLIF ( + 98, - + ( - - 26 ) ) * + COALESCE ( - + COUNT( * ), 63 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT - CASE - 9 WHEN 27 THEN - - 74 ELSE NULL END * - CAST ( NULL AS INTEGER ) + + - 21 * 44 + - - NULLIF ( + 98, - + ( - - 26 ) ) * + COALESCE ( - + COUNT ( * ), 63 ) AS col1
----
NULL

query I rowsort
SELECT + 6 * + 64 * 93 AS col2
----
35712

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT + 95 * 17 + + 53 - + ( + MAX( - + 12 ) ) AS col1
----
1680

skipif mysql # not compatible
query I rowsort label-4756
SELECT + 95 * 17 + + 53 - + ( + MAX ( - + 12 ) ) AS col1
----
1680

query I rowsort
SELECT DISTINCT - 64 * + 54 AS col0
----
-3456

query II rowsort
SELECT - ( + 31 ) * + - ( - - 13 ) + + 84 + - 73, 19 AS col0
----
414
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4759
SELECT COUNT( * ) AS col1, + 68
----
1
68

skipif mysql # not compatible
query II rowsort label-4759
SELECT COUNT ( * ) AS col1, + 68
----
1
68

query I rowsort
SELECT + NULLIF ( 61, + 35 ) AS col1
----
61

query I rowsort
SELECT + 73 * 27
----
1971

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT - SUM( - 88 ) * - + 53
----
-4664

skipif mysql # not compatible
query I rowsort label-4762
SELECT - SUM ( - 88 ) * - + 53
----
-4664

query I rowsort
SELECT DISTINCT + 15 * - 72
----
-1080

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4764
SELECT ALL NULLIF ( + CAST( 55 AS SIGNED ), + + 40 + + - 73 ) DIV + + COALESCE ( + - ( + ( - 47 ) ), + 45 DIV + 60, + 48, 3 ) AS col2, - 6
----
1
-6

skipif mysql # not compatible
query II rowsort label-4764
SELECT ALL NULLIF ( + CAST ( 55 AS INTEGER ), + + 40 + + - 73 ) / + + COALESCE ( + - ( + ( - 47 ) ), + 45 / + 60, + 48, 3 ) AS col2, - 6
----
1
-6

query II rowsort
SELECT ALL NULLIF ( - ( - - CASE + - 13 WHEN 5 THEN - - ( 94 ) ELSE NULL END ), + - 93 * - - 79 + + 78 - + + 10 ) AS col0, 61
----
NULL
61

query I rowsort
SELECT ALL - 70 + - - 54 col2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4767
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 41 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT - NULLIF ( ( 0 ), + - 95 * COUNT( * ) + MAX( DISTINCT 46 ) + 2 * - 40 * - 34 + - 40 - + - 67 ) - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4768
SELECT - NULLIF ( ( 0 ), + - 95 * COUNT ( * ) + MAX ( DISTINCT 46 ) + 2 * - 40 * - 34 + - 40 - + - 67 ) - COUNT ( * )
----
-1

query II rowsort
SELECT DISTINCT + 97 * + 60 * - 8 AS col1, 46
----
-46560
46

query I rowsort
SELECT - 83 + + 76
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4771
SELECT - CAST( 83 AS SIGNED ) DIV - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-4771
SELECT - CAST ( 83 AS INTEGER ) / - COUNT ( * )
----
83

query I rowsort
SELECT ALL + 70 + + 9
----
79

query I rowsort
SELECT ALL - 43 * 43
----
-1849

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4774
SELECT - CAST( 99 AS SIGNED ) col0
----
-99

skipif mysql # not compatible
query I rowsort label-4774
SELECT - CAST ( 99 AS INTEGER ) col0
----
-99

query I rowsort
SELECT - + 84 + 16 - 44 * + ( 12 ) * + 89 AS col1
----
-47060

query II rowsort
SELECT ALL + + NULLIF ( - 93, + 89 ) + - 75 AS col2, + 64
----
-168
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4777
SELECT DISTINCT + 93 AS col2, 97 * + COUNT( * )
----
93
97

skipif mysql # not compatible
query II rowsort label-4777
SELECT DISTINCT + 93 AS col2, 97 * + COUNT ( * )
----
93
97

query II rowsort
SELECT ALL 26, CASE + 11 WHEN - ( - + 89 ) THEN + + 77 / + - 78 + 77 END * + + 9 * + 1 + - - 33 AS col0
----
26
NULL

query II rowsort
SELECT + + 92 + 71 * - 53 AS col1, 6 AS col1
----
-3671
6

query II rowsort
SELECT DISTINCT 10 AS col0, 60 + 28 * + 91 AS col1
----
10
2608

query I rowsort
SELECT - 77 * + 90 AS col2
----
-6930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4782
SELECT + CAST( 44 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-4782
SELECT + CAST ( 44 AS INTEGER )
----
44

query I rowsort
SELECT - 59 * - - 13 - 99 + - 3
----
-869

onlyif mysql # DIV for integer division: 
query I rowsort label-4784
SELECT ALL + 23 DIV + 88 - - 5
----
5

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL + 23 / + 88 - - 5
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4785
SELECT + + 90 AS col1, - ( + CASE - 95 WHEN + COUNT( - 22 ) * CAST( NULL AS SIGNED ) + + + ( - 35 ) THEN - - 57 END )
----
90
NULL

skipif mysql # not compatible
query II rowsort label-4785
SELECT + + 90 AS col1, - ( + CASE - 95 WHEN + COUNT ( - 22 ) * CAST ( NULL AS INTEGER ) + + + ( - 35 ) THEN - - 57 END )
----
90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT ALL + SUM( ALL + 46 ) * + COALESCE ( 86, - 78 )
----
3956

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL + SUM ( ALL + 46 ) * + COALESCE ( 86, - 78 )
----
3956

query I rowsort
SELECT + 4 + - + 51
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4788
SELECT + - CASE 36 WHEN + 32 * 87 * + 15 THEN NULL ELSE 74 DIV - 35 * - + COUNT( * ) + - 65 * 60 END AS col0
----
3898

skipif mysql # not compatible
query I rowsort label-4788
SELECT + - CASE 36 WHEN + 32 * 87 * + 15 THEN NULL ELSE 74 / - 35 * - + COUNT ( * ) + - 65 * 60 END AS col0
----
3898

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT DISTINCT + - COUNT( * ) * 39
----
-39

skipif mysql # not compatible
query I rowsort label-4789
SELECT DISTINCT + - COUNT ( * ) * 39
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-4790
SELECT DISTINCT + - 66 AS col1, - 80 * COUNT( * )
----
-66
-80

skipif mysql # not compatible
query II rowsort label-4790
SELECT DISTINCT + - 66 AS col1, - 80 * COUNT ( * )
----
-66
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT DISTINCT + - ( - SUM( + + 94 ) )
----
94

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT + - ( - SUM ( + + 94 ) )
----
94

query II rowsort
SELECT + - 5 AS col1, - 12 AS col0
----
-5
-12

query I rowsort
SELECT + 97 + - 75 - + 36 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT + 79 * - COUNT( * ) * + 13 col0
----
-1027

skipif mysql # not compatible
query I rowsort label-4794
SELECT + 79 * - COUNT ( * ) * + 13 col0
----
-1027

query I rowsort
SELECT ALL 84 * 28
----
2352

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT - SUM( - 5 ) * + ( + ( 34 ) ) * + 41
----
6970

skipif mysql # not compatible
query I rowsort label-4796
SELECT - SUM ( - 5 ) * + ( + ( 34 ) ) * + 41
----
6970

onlyif mysql # DIV for integer division: 
query I rowsort label-4797
SELECT DISTINCT - 73 * + 26 + - 7 + + 37 DIV 12 * - 18 col0
----
-1959

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT - 73 * + 26 + - 7 + + 37 / 12 * - 18 col0
----
-1959

query I rowsort
SELECT ALL - 40 * 21 + 13 * + 43 * 61 AS col1
----
33259

query I rowsort
SELECT ALL NULLIF ( + - 71, - 34 ) * + 62 - 36
----
-4438

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT DISTINCT ( + MIN( - 93 ) ) * - 93 * + - MAX( - 14 ) AS col0
----
121086

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT ( + MIN ( - 93 ) ) * - 93 * + - MAX ( - 14 ) AS col0
----
121086

query I rowsort
SELECT ALL 97 * - ( + 75 ) + 62 AS col0
----
-7213

onlyif mysql # DIV for integer division: 
query II rowsort label-4802
SELECT + ( - 27 ), + 3 DIV 87 AS col2
----
-27
0

skipif mysql # not compatible
query II rowsort label-4802
SELECT + ( - 27 ), + 3 / 87 AS col2
----
-27
0

query I rowsort
SELECT - 13 + + 21 - - 82
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-4804
SELECT MAX( DISTINCT + 62 ), + 99 * 90 AS col2
----
62
8910

skipif mysql # not compatible
query II rowsort label-4804
SELECT MAX ( DISTINCT + 62 ), + 99 * 90 AS col2
----
62
8910

query I rowsort
SELECT ( 41 ) * - ( - 54 ) + - + 76
----
2138

query I rowsort
SELECT DISTINCT + 66 * + - 98 * 10
----
-64680

query I rowsort
SELECT ALL ( - + 22 ) AS col2
----
-22

query I rowsort
SELECT ALL + 82 + - - 58 * - + 78 AS col0
----
-4442

onlyif mysql # DIV for integer division: 
query I rowsort label-4809
SELECT DISTINCT - 24 DIV - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT - 24 / - 89 AS col2
----
0

query I rowsort
SELECT ALL + + 91 - + - 47 - 90
----
48

query I rowsort
SELECT 33 * + 34 + - 68
----
1054

query I rowsort
SELECT DISTINCT - + ( - 52 ) * - 66
----
-3432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4813
SELECT ALL - MAX( - 85 ) * + 2 + - - COUNT( DISTINCT - 5 ), - CAST( NULL AS SIGNED ) + - COALESCE ( - 95, + - ( - + ( + COUNT( ALL + ( 54 ) ) ) ) ) + COALESCE ( - + 61, + 98 ) * + 47 + - + ( - + 81 ) AS col0
----
171
NULL

skipif mysql # not compatible
query II rowsort label-4813
SELECT ALL - MAX ( - 85 ) * + 2 + - - COUNT ( DISTINCT - 5 ), - CAST ( NULL AS INTEGER ) + - COALESCE ( - 95, + - ( - + ( + COUNT ( ALL + ( 54 ) ) ) ) ) + COALESCE ( - + 61, + 98 ) * + 47 + - + ( - + 81 ) AS col0
----
171
NULL

query I rowsort
SELECT 59 - - 79 * - 46 AS col1
----
-3575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4815
SELECT DISTINCT - - AVG ( ( CAST( NULL AS SIGNED ) ) ) / 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT - - AVG ( ( CAST ( NULL AS INTEGER ) ) ) / 58 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 89 col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4817
SELECT - COUNT( * ) / - + 19 + - + ( + 82 ) + - 68 + - ( 32 ) - - 38 + - - 36 - + CAST( NULL AS SIGNED ) * - + 97 * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4817
SELECT - COUNT ( * ) / - + 19 + - + ( + 82 ) + - 68 + - ( 32 ) - - 38 + - - 36 - + CAST ( NULL AS INTEGER ) * - + 97 * - 47
----
NULL

query I rowsort
SELECT 61 * - - 90 * + - 93
----
-510570

query I rowsort
SELECT - 82 + - - 35 * - 45 AS col2
----
-1657

onlyif mysql # aggregate syntax: 
query II rowsort label-4820
SELECT + 95 AS col0, 4 + 38 / CASE - MIN( DISTINCT 3 ) WHEN + ( - - ( ( + 55 ) ) ) + + + 18 * + + COALESCE ( + - COUNT( * ), - 98 ) THEN + - 27 END col1
----
95
NULL

skipif mysql # not compatible
query II rowsort label-4820
SELECT + 95 AS col0, 4 + 38 / CASE - MIN ( DISTINCT 3 ) WHEN + ( - - ( ( + 55 ) ) ) + + + 18 * + + COALESCE ( + - COUNT ( * ), - 98 ) THEN + - 27 END col1
----
95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT ALL + COUNT( * ) * - 28 col0
----
-28

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL + COUNT ( * ) * - 28 col0
----
-28

query I rowsort
SELECT DISTINCT - 87 + - 90 AS col2
----
-177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4823
SELECT DISTINCT - NULLIF ( - + CAST( NULL AS SIGNED ), - + SUM( + NULLIF ( 75, + + 85 ) ) * + 21 / - 18 ) + 0 * + - 28, + 27 + + 81 + 12 col2
----
NULL
120

skipif mysql # not compatible
query II rowsort label-4823
SELECT DISTINCT - NULLIF ( - + CAST ( NULL AS INTEGER ), - + SUM ( + NULLIF ( 75, + + 85 ) ) * + 21 / - 18 ) + 0 * + - 28, + 27 + + 81 + 12 col2
----
NULL
120

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4824
SELECT ALL - 15 + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL - 15 + - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL 31 + + 77 AS col2
----
108

query II rowsort
SELECT ALL - 29 AS col2, ( - 51 )
----
-29
-51

query I rowsort
SELECT DISTINCT 36 + - + 71 AS col1
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-4828
SELECT ALL - 80 DIV + - 88 col0
----
0

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL - 80 / + - 88 col0
----
0

query I rowsort
SELECT DISTINCT + 25 + 39
----
64

query I rowsort
SELECT ALL 59 + 80 AS col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL COUNT( * ) * + - 5
----
-5

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL COUNT ( * ) * + - 5
----
-5

query I rowsort
SELECT ALL 35 - + - 8 AS col2
----
43

query I rowsort
SELECT ALL 94 * + + 60 col1
----
5640

query II rowsort
SELECT DISTINCT 53 * - - 91 * + 33 AS col2, + 6 AS col0
----
159159
6

onlyif mysql # DIV for integer division: 
query II rowsort label-4835
SELECT + 43, - 44 DIV + 64 + - 25 AS col1
----
43
-25

skipif mysql # not compatible
query II rowsort label-4835
SELECT + 43, - 44 / + 64 + - 25 AS col1
----
43
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-4836
SELECT 4 + - COUNT( * ) + - 9, - 30 AS col2
----
-6
-30

skipif mysql # not compatible
query II rowsort label-4836
SELECT 4 + - COUNT ( * ) + - 9, - 30 AS col2
----
-6
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4837
SELECT COUNT( * ) - - 58 + 9 DIV + 2 + - 90 * + 69 * - 45 * 92 + - - 23 * COUNT( * ) + - 49 * 1 * CASE - 39 WHEN + 34 DIV - 31 - + 49 - - ( - SUM( ALL - 4 ) ) THEN NULL ELSE + 19 * - 64 END AS col2
----
25769070

skipif mysql # not compatible
query I rowsort label-4837
SELECT COUNT ( * ) - - 58 + 9 / + 2 + - 90 * + 69 * - 45 * 92 + - - 23 * COUNT ( * ) + - 49 * 1 * CASE - 39 WHEN + 34 / - 31 - + 49 - - ( - SUM ( ALL - 4 ) ) THEN NULL ELSE + 19 * - 64 END AS col2
----
25769070

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT MAX( ALL - 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-4838
SELECT MAX ( ALL - 22 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT ALL - MIN( 56 ) - - 71 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL - MIN ( 56 ) - - 71 AS col0
----
15

query II rowsort
SELECT ALL 55 AS col2, 82
----
55
82

query I rowsort
SELECT - + NULLIF ( + 85, + 48 ) AS col1
----
-85

query I rowsort
SELECT 27 + 70 * - ( 47 )
----
-3263

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4843
SELECT CASE - 76 WHEN - - ( + COUNT( * ) ) THEN + 34 * - 64 ELSE - + ( 9 ) END + + 99 + 96 * - NULLIF ( - 59, - COUNT( - CAST( - 26 AS DECIMAL ) ) + + 85 ) * - + 95 AS col2
----
-537990

skipif mysql # not compatible
query I rowsort label-4843
SELECT CASE - 76 WHEN - - ( + COUNT ( * ) ) THEN + 34 * - 64 ELSE - + ( 9 ) END + + 99 + 96 * - NULLIF ( - 59, - COUNT ( - CAST ( - 26 AS REAL ) ) + + 85 ) * - + 95 AS col2
----
-537990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4844
SELECT DISTINCT CASE - NULLIF ( + - 66, - + 72 ) WHEN + - 89 THEN + CASE - COUNT( * ) WHEN - - ( - 20 ) + 32 * 78 THEN 47 ELSE NULL END * - CASE 94 WHEN + - 70 THEN + 56 END + 44 END * + 75 AS col0, + CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4844
SELECT DISTINCT CASE - NULLIF ( + - 66, - + 72 ) WHEN + - 89 THEN + CASE - COUNT ( * ) WHEN - - ( - 20 ) + 32 * 78 THEN 47 ELSE NULL END * - CASE 94 WHEN + - 70 THEN + 56 END + 44 END * + 75 AS col0, + CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT ALL MIN( ALL + 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL MIN ( ALL + 39 ) AS col2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4846
SELECT ALL 83 * - + ( + COALESCE ( 8, - 59 ) ) DIV ( - 4 )
----
166

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL 83 * - + ( + COALESCE ( 8, - 59 ) ) / ( - 4 )
----
166

query I rowsort
SELECT 42 + + 34 AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4848
SELECT + 61 / + - 83 * - 54 * + 81 * - - 79 * + CAST( NULL AS SIGNED ) + - 82 * - COUNT( * ) + + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4848
SELECT + 61 / + - 83 * - 54 * + 81 * - - 79 * + CAST ( NULL AS INTEGER ) + - 82 * - COUNT ( * ) + + 2 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT DISTINCT - - 54 + + 33 + - SUM( - 39 )
----
126

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT - - 54 + + 33 + - SUM ( - 39 )
----
126

query II rowsort
SELECT 78, - 30 + 6 * + 7 * - 53 * + + 49 AS col2
----
78
-109104

query I rowsort
SELECT + - COALESCE ( + - 21, 98 ) AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4852
SELECT ALL COALESCE ( + - COUNT( - - CAST( NULL AS SIGNED ) ), + + 31, - COUNT( * ) ) * 16 + - CASE 29 WHEN - - 78 THEN - 47 * + + COUNT( * ) + - 54 DIV - + 36 WHEN CASE + - 26 WHEN + 24 + - COUNT( * ) + COUNT( * ) THEN NULL WHEN + 90 DIV 95 * + 23 * + 80 + + 0 DIV NULLIF ( 38 + - 3, ( 12 ) ) THEN NULL WHEN - COALESCE ( - 46, 69 ) THEN - 84 - + ( 75 ) * 47 END THEN 80 * - ( 73 ) ELSE ( 67 ) * - 96 END * - 62 col2
----
-398784

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL COALESCE ( + - COUNT ( - - CAST ( NULL AS INTEGER ) ), + + 31, - COUNT ( * ) ) * 16 + - CASE 29 WHEN - - 78 THEN - 47 * + + COUNT ( * ) + - 54 / - + 36 WHEN CASE + - 26 WHEN + 24 + - COUNT ( * ) + COUNT ( * ) THEN NULL WHEN + 90 / 95 * + 23 * + 80 + + 0 / NULLIF ( 38 + - 3, ( 12 ) ) THEN NULL WHEN - COALESCE ( - 46, 69 ) THEN - 84 - + ( 75 ) * 47 END THEN 80 * - ( 73 ) ELSE ( 67 ) * - 96 END * - 62 col2
----
-398784

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT DISTINCT + 2 * + - 69 * 12 * + + NULLIF ( 45, + 22 * - 84 + + 91 * + 41 ) * 68 + COUNT( * ) + 71 + - + 58 AS col2
----
-5067346

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT + 2 * + - 69 * 12 * + + NULLIF ( 45, + 22 * - 84 + + 91 * + 41 ) * 68 + COUNT ( * ) + 71 + - + 58 AS col2
----
-5067346

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT 46 * - MAX( ALL - + 5 ) * + 58 - - - 31 AS col2
----
13309

skipif mysql # not compatible
query I rowsort label-4854
SELECT 46 * - MAX ( ALL - + 5 ) * + 58 - - - 31 AS col2
----
13309

query I rowsort
SELECT 49 * 13 AS col2
----
637

query II rowsort
SELECT DISTINCT - 88 AS col2, 31
----
-88
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4857
SELECT ALL CAST( NULL AS SIGNED ) * + 53 / + 1 + + 34 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL CAST ( NULL AS INTEGER ) * + 53 / + 1 + + 34 col2
----
NULL

query II rowsort
SELECT + 7 AS col1, 82 * - 5
----
7
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT 74 * + + 12 * - - 86 * + + 87 + + ( + COUNT( ALL - + 3 ) )
----
6644017

skipif mysql # not compatible
query I rowsort label-4859
SELECT 74 * + + 12 * - - 86 * + + 87 + + ( + COUNT ( ALL - + 3 ) )
----
6644017

query II rowsort
SELECT + 61 col1, - 76 * + 52 * + - 38 AS col2
----
61
150176

query I rowsort
SELECT ALL - 84 * + + 37
----
-3108

onlyif mysql # aggregate syntax: 
query II rowsort label-4862
SELECT COUNT( * ), 38 + + 0 AS col1
----
1
38

skipif mysql # not compatible
query II rowsort label-4862
SELECT COUNT ( * ), 38 + + 0 AS col1
----
1
38

query I rowsort
SELECT DISTINCT - 93 * - + 3 * - + 25 col0
----
-6975

query I rowsort
SELECT ALL - 84 * 82 AS col2
----
-6888

query I rowsort
SELECT 12 * 17 + COALESCE ( + + 54, - 78 * + 93 + 9 - + 77, 42 * + - 80 ) col2
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT COUNT( ALL - + 30 )
----
1

skipif mysql # not compatible
query I rowsort label-4866
SELECT COUNT ( ALL - + 30 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT - 76 * - COUNT( * ) * - 54 AS col0
----
-4104

skipif mysql # not compatible
query I rowsort label-4867
SELECT - 76 * - COUNT ( * ) * - 54 AS col0
----
-4104

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT + COUNT( - 15 ) * - + 41
----
-41

skipif mysql # not compatible
query I rowsort label-4868
SELECT + COUNT ( - 15 ) * - + 41
----
-41

query I rowsort
SELECT + 0 + + + 64 * + 10 * + ( 88 ) AS col1
----
56320

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT - + 25 * - COUNT( * ) + + 92 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-4870
SELECT - + 25 * - COUNT ( * ) + + 92 AS col1
----
117

query I rowsort
SELECT - - 36 * - 29 AS col0
----
-1044

query I rowsort
SELECT + - 30 + - 34
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT DISTINCT COUNT( * ) * 0 - + COUNT( * ) * 97
----
-97

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT COUNT ( * ) * 0 - + COUNT ( * ) * 97
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4874
SELECT - - 80 AS col2, + 8 * ( - 51 ) * - + 57 DIV COUNT( * ) - + + 53 AS col1
----
80
23203

skipif mysql # not compatible
query II rowsort label-4874
SELECT - - 80 AS col2, + 8 * ( - 51 ) * - + 57 / COUNT ( * ) - + + 53 AS col1
----
80
23203

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT - + CASE - - 77 WHEN - 71 THEN - 38 * + COUNT( DISTINCT - ( 59 ) ) ELSE 11 END
----
-11

skipif mysql # not compatible
query I rowsort label-4875
SELECT - + CASE - - 77 WHEN - 71 THEN - 38 * + COUNT ( DISTINCT - ( 59 ) ) ELSE 11 END
----
-11

query I rowsort
SELECT + - 34 * + 77 col0
----
-2618

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT - + MAX( + 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-4877
SELECT - + MAX ( + 25 )
----
-25

query II rowsort
SELECT 74 AS col1, + 15 * - 81 + - 86 + - 70
----
74
-1371

query I rowsort
SELECT + 73 - - + 71
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4880
SELECT ALL COALESCE ( 18, COUNT( 69 ), - + 82 ) + - - 7 DIV - 60 col0, 18 + - CASE + + 77 WHEN + - 9 THEN 38 + 33 END + 40 * COUNT( * )
----
18
NULL

skipif mysql # not compatible
query II rowsort label-4880
SELECT ALL COALESCE ( 18, COUNT ( 69 ), - + 82 ) + - - 7 / - 60 col0, 18 + - CASE + + 77 WHEN + - 9 THEN 38 + 33 END + 40 * COUNT ( * )
----
18
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4881
SELECT + 86 - 77 * - 14 + COALESCE ( - + CAST( SUM( - - 10 ) AS SIGNED ), 80 ) - + 71
----
1083

skipif mysql # not compatible
query I rowsort label-4881
SELECT + 86 - 77 * - 14 + COALESCE ( - + CAST ( SUM ( - - 10 ) AS INTEGER ), 80 ) - + 71
----
1083

query I rowsort
SELECT DISTINCT - 69 + - - 50
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-4883
SELECT ALL MAX( + - 64 ) col1, + 48 AS col0
----
-64
48

skipif mysql # not compatible
query II rowsort label-4883
SELECT ALL MAX ( + - 64 ) col1, + 48 AS col0
----
-64
48

query I rowsort
SELECT ( - + ( + 78 ) ) AS col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4885
SELECT 88 DIV - 80 + - NULLIF ( 29, - NULLIF ( + 77, - 24 * - ( + CAST( NULL AS SIGNED ) ) * + ( + 11 ) ) * + 39 ) DIV + 77 * - 36 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4885
SELECT 88 / - 80 + - NULLIF ( 29, - NULLIF ( + 77, - 24 * - ( + CAST ( NULL AS INTEGER ) ) * + ( + 11 ) ) * + 39 ) / + 77 * - 36 AS col2
----
-1

query I rowsort
SELECT + ( + + ( + - 83 ) ) AS col2
----
-83

query I rowsort
SELECT - 90 + - - 29 AS col2
----
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-4888
SELECT - COALESCE ( + 34, + - 68 ) DIV 62 * NULLIF ( - - 43, + - 55 ) AS col0, 17 AS col0
----
0
17

skipif mysql # not compatible
query II rowsort label-4888
SELECT - COALESCE ( + 34, + - 68 ) / 62 * NULLIF ( - - 43, + - 55 ) AS col0, 17 AS col0
----
0
17

query I rowsort
SELECT + 16 * ( - 36 ) + + 96
----
-480

onlyif mysql # aggregate syntax: 
query II rowsort label-4890
SELECT ( + - 47 ) col1, COUNT( * )
----
-47
1

skipif mysql # not compatible
query II rowsort label-4890
SELECT ( + - 47 ) col1, COUNT ( * )
----
-47
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4891
SELECT CAST( NULL AS SIGNED ) / - - ( - 50 ) + + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT CAST ( NULL AS INTEGER ) / - - ( - 50 ) + + 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4892
SELECT DISTINCT + 35 DIV MAX( 62 )
----
0

skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT + 35 / MAX ( 62 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4893
SELECT DISTINCT + 26 DIV MAX( ALL + 68 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT + 26 / MAX ( ALL + 68 ) AS col0
----
0

query I rowsort
SELECT - 59 * + 5 * + 4 AS col1
----
-1180

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT NULLIF ( 6, - + COUNT( * ) * + ( 61 ) ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4895
SELECT NULLIF ( 6, - + COUNT ( * ) * + ( 61 ) ) AS col2
----
6

query I rowsort
SELECT ALL + + ( + - 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT DISTINCT - - 55 * + 97 + - 63 + + ( - ( MIN( ALL + 52 ) ) ) * - 75
----
9172

skipif mysql # not compatible
query I rowsort label-4897
SELECT DISTINCT - - 55 * + 97 + - 63 + + ( - ( MIN ( ALL + 52 ) ) ) * - 75
----
9172

query I rowsort
SELECT ALL + - 58 AS col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4899
SELECT + - COUNT( * ) * - COALESCE ( COUNT( * ), - 72 + COUNT( DISTINCT + 80 ) ) * 99 - + CAST( - + 26 AS SIGNED )
----
125

skipif mysql # not compatible
query I rowsort label-4899
SELECT + - COUNT ( * ) * - COALESCE ( COUNT ( * ), - 72 + COUNT ( DISTINCT + 80 ) ) * 99 - + CAST ( - + 26 AS INTEGER )
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT ALL + + COALESCE ( + COUNT( * ), - 54 + - - ( ( 81 ) ) * COALESCE ( 13, 73 ), + 34 ) * COUNT( 12 ) * 42
----
42

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL + + COALESCE ( + COUNT ( * ), - 54 + - - ( ( 81 ) ) * COALESCE ( 13, 73 ), + 34 ) * COUNT ( 12 ) * 42
----
42

query I rowsort
SELECT DISTINCT - ( + COALESCE ( + 60, 23 ) )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT - + 24 * 88 * COUNT( * ) AS col2
----
-2112

skipif mysql # not compatible
query I rowsort label-4902
SELECT - + 24 * 88 * COUNT ( * ) AS col2
----
-2112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4903
SELECT ALL + 70 * - + NULLIF ( + COALESCE ( + 79, COUNT( * ) - + CAST( - COUNT( * ) AS SIGNED ) + + 0 ), 69 + - 51 ) + + 7
----
-5523

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL + 70 * - + NULLIF ( + COALESCE ( + 79, COUNT ( * ) - + CAST ( - COUNT ( * ) AS INTEGER ) + + 0 ), 69 + - 51 ) + + 7
----
-5523

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4904
SELECT - + 7 - - - CAST( NULL AS SIGNED ) - COUNT( * ) - + + CASE 87 WHEN 45 THEN NULL WHEN - - COUNT( * ) - + 38 THEN + - 32 END + + CASE - - 10 WHEN - COUNT( * ) * - 8 THEN 19 * COUNT( 61 ) ELSE + 67 + - ( + ( SUM( - 54 ) ) ) + - + 74 END * COUNT( * ) * - ( + 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT - + 7 - - - CAST ( NULL AS INTEGER ) - COUNT ( * ) - + + CASE 87 WHEN 45 THEN NULL WHEN - - COUNT ( * ) - + 38 THEN + - 32 END + + CASE - - 10 WHEN - COUNT ( * ) * - 8 THEN 19 * COUNT ( 61 ) ELSE + 67 + - ( + ( SUM ( - 54 ) ) ) + - + 74 END * COUNT ( * ) * - ( + 81 )
----
NULL

query I rowsort
SELECT - - 38 + + + 32 AS col0
----
70

query I rowsort
SELECT + 4 * - 63 AS col0
----
-252

query I rowsort
SELECT DISTINCT - 36 + 48
----
12

query I rowsort
SELECT ALL 87 + + 76
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT - SUM( 93 ) + - + ( 67 )
----
-160

skipif mysql # not compatible
query I rowsort label-4909
SELECT - SUM ( 93 ) + - + ( 67 )
----
-160

query I rowsort
SELECT ALL + 92 + 25 - 34 col0
----
83

query I rowsort
SELECT ALL - 86 * 1 AS col1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4912
SELECT DISTINCT + + COUNT( CAST( - + 17 AS SIGNED ) ) + - CASE + NULLIF ( + MIN( 13 ), + + 75 / + 20 ) WHEN 35 THEN NULL WHEN + COUNT( DISTINCT - 80 ) * - - 77 + + - 63 THEN - - MIN( + 42 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT + + COUNT ( CAST ( - + 17 AS INTEGER ) ) + - CASE + NULLIF ( + MIN ( 13 ), + + 75 / + 20 ) WHEN 35 THEN NULL WHEN + COUNT ( DISTINCT - 80 ) * - - 77 + + - 63 THEN - - MIN ( + 42 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4913
SELECT ALL ( - + NULLIF ( + - ( - - 58 ), + MAX( + - 51 ) - - - 28 + - COUNT( * ) - - ( - CAST( NULL AS SIGNED ) ) * + + CASE + + 28 WHEN + - 48 THEN + ( + ( - 80 ) ) * + 58 WHEN + 46 * + + 90 + 88 - - 4 * + 87 THEN + 45 + 78 ELSE NULL END + + 55 ) )
----
58

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL ( - + NULLIF ( + - ( - - 58 ), + MAX ( + - 51 ) - - - 28 + - COUNT ( * ) - - ( - CAST ( NULL AS INTEGER ) ) * + + CASE + + 28 WHEN + - 48 THEN + ( + ( - 80 ) ) * + 58 WHEN + 46 * + + 90 + 88 - - 4 * + 87 THEN + 45 + 78 ELSE NULL END + + 55 ) )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4914
SELECT - 91 DIV COUNT( * ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4914
SELECT - 91 / COUNT ( * ) AS col2
----
-91

query I rowsort
SELECT - 67 * + 58 AS col0
----
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT + MAX( 45 ) + - 10 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-4916
SELECT + MAX ( 45 ) + - 10 AS col2
----
35

query II rowsort
SELECT ALL 50, - 90 col2
----
50
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT - NULLIF ( + - 31, + 76 / - + COUNT( * ) ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-4918
SELECT - NULLIF ( + - 31, + 76 / - + COUNT ( * ) ) AS col1
----
31

query I rowsort
SELECT + 49 + - 42 AS col0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4920
SELECT ALL 25 DIV 1 - + - 36 + - 86 + - + 43 + 3 DIV + 30
----
-68

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL 25 / 1 - + - 36 + - 86 + - + 43 + 3 / + 30
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4921
SELECT + COUNT( * ) * + 96 * - - COUNT( * ) AS col0, CAST( COUNT( * ) AS SIGNED ) AS col2
----
96
1

skipif mysql # not compatible
query II rowsort label-4921
SELECT + COUNT ( * ) * + 96 * - - COUNT ( * ) AS col0, CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
96
1

query II rowsort
SELECT + 75 * + + 64 + - - 50 AS col2, 48 AS col1
----
4850
48

query I rowsort
SELECT DISTINCT 66 - + 99 AS col0
----
-33

query I rowsort
SELECT ALL + 21 * + + 2 col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4925
SELECT ALL 12 DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL 12 / 53
----
0

query II rowsort
SELECT ALL - 28 col2, + 35
----
-28
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT - COUNT( * ) * - NULLIF ( - - NULLIF ( + + 31, 95 * + - ( + + 91 ) + + 58 + + - 7 ), ( - 96 ) ) + - + 70
----
-39

skipif mysql # not compatible
query I rowsort label-4927
SELECT - COUNT ( * ) * - NULLIF ( - - NULLIF ( + + 31, 95 * + - ( + + 91 ) + + 58 + + - 7 ), ( - 96 ) ) + - + 70
----
-39

query II rowsort
SELECT ALL - 60 AS col1, - ( + ( - 58 ) ) * - 81
----
-60
-4698

query II rowsort
SELECT DISTINCT - 31 col2, - 28 AS col2
----
-31
-28

query II rowsort
SELECT ALL - + 99, - 65 * + + 49 AS col1
----
-99
-3185

query I rowsort
SELECT ALL + 22 + 26 col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT ALL - 59 * - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL - 59 * - COUNT ( * )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4933
SELECT 71 DIV + + COUNT( * ) + - + 84
----
-13

skipif mysql # not compatible
query I rowsort label-4933
SELECT 71 / + + COUNT ( * ) + - + 84
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-4934
SELECT ALL - 47 + ( + 43 ) AS col1, COUNT( * ) + + + 43 + - 60 * - + 68
----
-4
4124

skipif mysql # not compatible
query II rowsort label-4934
SELECT ALL - 47 + ( + 43 ) AS col1, COUNT ( * ) + + + 43 + - 60 * - + 68
----
-4
4124

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT - 92 * - 93 + - + 18 + 11 + + + 54 + - CASE 35 WHEN 72 THEN + 53 * 0 WHEN - + 88 THEN NULL ELSE NULL END / + + 44 * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4935
SELECT - 92 * - 93 + - + 18 + 11 + + + 54 + - CASE 35 WHEN 72 THEN + 53 * 0 WHEN - + 88 THEN NULL ELSE NULL END / + + 44 * + COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4936
SELECT - 5 * + + COUNT( * ) * + CASE - AVG ( ALL 57 ) WHEN + 37 DIV 30 THEN NULL ELSE + + 26 DIV + NULLIF ( ( - 80 ), 46 ) END + - + MAX( + 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-4936
SELECT - 5 * + + COUNT ( * ) * + CASE - AVG ( ALL 57 ) WHEN + 37 / 30 THEN NULL ELSE + + 26 / + NULLIF ( ( - 80 ), 46 ) END + - + MAX ( + 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT - 75 + 13 * - + CASE 52 WHEN + 69 THEN - COUNT( * ) END / + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT - 75 + 13 * - + CASE 52 WHEN + 69 THEN - COUNT ( * ) END / + - 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT ALL + SUM( + 2 ) + - 77 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL + SUM ( + 2 ) + - 77 AS col2
----
-75

query I rowsort
SELECT DISTINCT + 40 + 1
----
41

query II rowsort
SELECT 60 AS col2, 33 AS col2
----
60
33

onlyif mysql # aggregate syntax: 
query II rowsort label-4941
SELECT - 92 AS col0, COUNT( * )
----
-92
1

skipif mysql # not compatible
query II rowsort label-4941
SELECT - 92 AS col0, COUNT ( * )
----
-92
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL + ( - COUNT( * ) ) + + 53 * + SUM( DISTINCT 37 ) * - 61 AS col1
----
-119622

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL + ( - COUNT ( * ) ) + + 53 * + SUM ( DISTINCT 37 ) * - 61 AS col1
----
-119622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4943
SELECT + 41 * 40 * - + 44 + + - ( NULLIF ( - - 82, + - 17 ) ) + + 82 * + - CAST( NULL AS SIGNED ) * 78 * COALESCE ( - 24, + - 30 ) * + 39 / SUM( - 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT + 41 * 40 * - + 44 + + - ( NULLIF ( - - 82, + - 17 ) ) + + 82 * + - CAST ( NULL AS INTEGER ) * 78 * COALESCE ( - 24, + - 30 ) * + 39 / SUM ( - 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ALL COUNT( - 98 )
----
1

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL COUNT ( - 98 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4945
SELECT DISTINCT + - ( + CAST( NULL AS SIGNED ) ) + 14 - ( + 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT + - ( + CAST ( NULL AS INTEGER ) ) + 14 - ( + 77 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4946
SELECT ALL + 46 + + 38 DIV + 50 + 77 * - 32 AS col0
----
-2418

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL + 46 + + 38 / + 50 + 77 * - 32 AS col0
----
-2418

query I rowsort
SELECT ALL + NULLIF ( - - 35, + 34 )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4948
SELECT - COALESCE ( 93, - COALESCE ( + - 16, - + CAST( NULL AS SIGNED ) + + COUNT( * ) ) + 3, + + 0 * 1 ) - 14 * - - COUNT( * ) * - + 24 / 48 + + 89 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4948
SELECT - COALESCE ( 93, - COALESCE ( + - 16, - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) ) + 3, + + 0 * 1 ) - 14 * - - COUNT ( * ) * - + 24 / 48 + + 89 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4949
SELECT ALL 21, + COUNT( DISTINCT + 85 ) AS col2
----
21
1

skipif mysql # not compatible
query II rowsort label-4949
SELECT ALL 21, + COUNT ( DISTINCT + 85 ) AS col2
----
21
1

query I rowsort
SELECT 45 * - + 39 col1
----
-1755

query I rowsort
SELECT DISTINCT + 43 / - - 94 * + - ( - CASE - 31 WHEN - 92 THEN NULL WHEN - 96 - + 51 THEN - 44 END )
----
NULL

query I rowsort
SELECT ALL 31 * 28 col2
----
868

query I rowsort
SELECT 64 - + 21 AS col2
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4954
SELECT ALL - 52 DIV + - 99
----
0

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL - 52 / + - 99
----
0

query I rowsort
SELECT 74 - - - 25 + 80 col1
----
129

query I rowsort
SELECT ALL 25 * + 85 AS col2
----
2125

query I rowsort
SELECT ALL - 25 * + - 4 AS col1
----
100

onlyif mysql # DIV for integer division: 
query II rowsort label-4958
SELECT 90 DIV 49 AS col0, 29
----
1
29

skipif mysql # not compatible
query II rowsort label-4958
SELECT 90 / 49 AS col0, 29
----
1
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4959
SELECT ALL + 62 * - 29 * + NULLIF ( + 71, + 22 / - 20 + + ( + 15 ) * 36 + + 24 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL + 62 * - 29 * + NULLIF ( + 71, + 22 / - 20 + + ( + 15 ) * 36 + + 24 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4960
SELECT + 8 * - + 90 + + 98 DIV 58 AS col0
----
-719

skipif mysql # not compatible
query I rowsort label-4960
SELECT + 8 * - + 90 + + 98 / 58 AS col0
----
-719

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4961
SELECT ALL 89 * - - ( - 36 ) DIV - COUNT( * )
----
3204

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL 89 * - - ( - 36 ) / - COUNT ( * )
----
3204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4962
SELECT 26 * MIN( + CAST( NULL AS SIGNED ) ) - 10 - COUNT( * ) * - 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4962
SELECT 26 * MIN ( + CAST ( NULL AS INTEGER ) ) - 10 - COUNT ( * ) * - 22 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4963
SELECT CAST( NULL AS SIGNED ) * - + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT CAST ( NULL AS INTEGER ) * - + 65 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT DISTINCT + COUNT( * ) + + - 6 + + NULLIF ( 98, 44 ) * + 84 AS col1
----
8227

skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT + COUNT ( * ) + + - 6 + + NULLIF ( 98, 44 ) * + 84 AS col1
----
8227

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT ALL - 62 * 86 * 36 * 61 + 16 * + COALESCE ( COUNT( * ), - - 35, ( - + 32 ) ) AS col0
----
-11709056

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL - 62 * 86 * 36 * 61 + 16 * + COALESCE ( COUNT ( * ), - - 35, ( - + 32 ) ) AS col0
----
-11709056

query I rowsort
SELECT - 23 * - + 51 col1
----
1173

query I rowsort
SELECT DISTINCT + - 87 + + 38 * 53
----
1927

query I rowsort
SELECT ALL 20 * + 6
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT COUNT( * ) * + ( - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-4969
SELECT COUNT ( * ) * + ( - 37 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT ALL - MAX( 23 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL - MAX ( 23 ) AS col1
----
-23

query I rowsort
SELECT + + NULLIF ( - + 70, + ( - NULLIF ( - 27, - 3 ) ) )
----
-70

query I rowsort
SELECT ALL - 10 + + 11 col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4973
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col2, ( - COUNT( * ) ) - 53 + + ( - 42 ) * + + 24 * CAST( NULL AS SIGNED ) + - 84 * - 25 * - 23 col0
----
2
NULL

skipif mysql # not compatible
query II rowsort label-4973
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col2, ( - COUNT ( * ) ) - 53 + + ( - 42 ) * + + 24 * CAST ( NULL AS INTEGER ) + - 84 * - 25 * - 23 col0
----
2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT + 37 * 74 + - 82 * 15 - COUNT( * )
----
1507

skipif mysql # not compatible
query I rowsort label-4974
SELECT + 37 * 74 + - 82 * 15 - COUNT ( * )
----
1507

query I rowsort
SELECT ALL - 66 * - NULLIF ( - NULLIF ( + + 79, 16 + - 12 ), - CASE + 70 WHEN - 1 * - 46 THEN + COALESCE ( + 67, 3 ) + 14 + + 11 ELSE NULL END ) AS col2
----
-5214

query I rowsort
SELECT DISTINCT 4 * + 17
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4977
SELECT ALL - - CAST( CASE COALESCE ( + 4, - 37 ) WHEN + - 46 THEN NULL ELSE + 88 END AS SIGNED ) DIV + NULLIF ( + + MAX( + 82 ), + CASE + 6 WHEN - COUNT( * ) THEN NULL ELSE 19 END ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL - - CAST ( CASE COALESCE ( + 4, - 37 ) WHEN + - 46 THEN NULL ELSE + 88 END AS INTEGER ) / + NULLIF ( + + MAX ( + 82 ), + CASE + 6 WHEN - COUNT ( * ) THEN NULL ELSE 19 END ) col1
----
1

query I rowsort
SELECT - 62 * - + 67 AS col1
----
4154

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT SUM( ALL + - 84 ) - - 10 col2
----
-74

skipif mysql # not compatible
query I rowsort label-4979
SELECT SUM ( ALL + - 84 ) - - 10 col2
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-4980
SELECT ALL - - 78 DIV + 39 + 57 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL - - 78 / + 39 + 57 AS col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4981
SELECT 14 + + + CAST( NULL AS SIGNED ) col0, - CAST( - 12 AS SIGNED ) AS col0
----
NULL
12

skipif mysql # not compatible
query II rowsort label-4981
SELECT 14 + + + CAST ( NULL AS INTEGER ) col0, - CAST ( - 12 AS INTEGER ) AS col0
----
NULL
12

query I rowsort
SELECT ALL + 56 * + 96
----
5376

onlyif mysql # aggregate syntax: 
query II rowsort label-4983
SELECT ALL 2 * + + ( + 11 ), 0 * - 63 + + COUNT( * ) col0
----
22
1

skipif mysql # not compatible
query II rowsort label-4983
SELECT ALL 2 * + + ( + 11 ), 0 * - 63 + + COUNT ( * ) col0
----
22
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4984
SELECT - 13 + + + 35 + - COUNT( * ) DIV + 12 * 71 AS col1, 70
----
22
70

skipif mysql # not compatible
query II rowsort label-4984
SELECT - 13 + + + 35 + - COUNT ( * ) / + 12 * 71 AS col1, 70
----
22
70

query I rows