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 rowsort
SELECT ALL NULLIF ( + 31, - 41 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT DISTINCT - 48 * CASE - MIN( DISTINCT ( - 34 ) ) WHEN 31 THEN + - COALESCE ( + COALESCE ( + 6, + + COUNT( * ) ), + - 83 ) * + 7 WHEN 77 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4986
SELECT DISTINCT - 48 * CASE - MIN ( DISTINCT ( - 34 ) ) WHEN 31 THEN + - COALESCE ( + COALESCE ( + 6, + + COUNT ( * ) ), + - 83 ) * + 7 WHEN 77 THEN NULL ELSE NULL END
----
NULL

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

query I rowsort
SELECT - 66 + - 59
----
-125

query II rowsort
SELECT 1, - 27 AS col0
----
1
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-4990
SELECT - 95 + - 24 * - + COUNT( * ) AS col0, + 51
----
-71
51

skipif mysql # not compatible
query II rowsort label-4990
SELECT - 95 + - 24 * - + COUNT ( * ) AS col0, + 51
----
-71
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT - 59 + COUNT( * ) + - 90 * - - 66 + - - 35 * + 38 * - 86 + 7 AS col1
----
-120371

skipif mysql # not compatible
query I rowsort label-4991
SELECT - 59 + COUNT ( * ) + - 90 * - - 66 + - - 35 * + 38 * - 86 + 7 AS col1
----
-120371

query II rowsort
SELECT 14 col0, 51 * - 8 AS col1
----
14
-408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4993
SELECT - 30 * - CAST( 5 AS SIGNED ) * + 68
----
10200

skipif mysql # not compatible
query I rowsort label-4993
SELECT - 30 * - CAST ( 5 AS INTEGER ) * + 68
----
10200

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4996
SELECT ALL - 85 * 19 + + + CASE + 6 WHEN + - 2 DIV - 1 - + + 41 DIV - + 99 THEN + - 16 ELSE + 21 END DIV ( 87 ) + - 55 AS col0
----
-1670

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL - 85 * 19 + + + CASE + 6 WHEN + - 2 / - 1 - + + 41 / - + 99 THEN + - 16 ELSE + 21 END / ( 87 ) + - 55 AS col0
----
-1670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4997
SELECT + 79 AS col2, - 73 DIV + COUNT( ALL + CAST( + - 77 AS SIGNED ) ) * - COUNT( * ) - + MIN( + 77 )
----
79
-4

skipif mysql # not compatible
query II rowsort label-4997
SELECT + 79 AS col2, - 73 / + COUNT ( ALL + CAST ( + - 77 AS INTEGER ) ) * - COUNT ( * ) - + MIN ( + 77 )
----
79
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT ALL + NULLIF ( + 35, + AVG ( ALL - 42 ) * + 25 * 35 / - 76 + + + COUNT( * ) + - + MIN( DISTINCT + 54 ) + - ( + 9 ) + COUNT( * ) * - 94 * - 89 * + + MAX( ALL + 75 ) + ( COUNT( * ) ) + 78 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL + NULLIF ( + 35, + AVG ( ALL - 42 ) * + 25 * 35 / - 76 + + + COUNT ( * ) + - + MIN ( DISTINCT + 54 ) + - ( + 9 ) + COUNT ( * ) * - 94 * - 89 * + + MAX ( ALL + 75 ) + ( COUNT ( * ) ) + 78 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT ALL - 19 * - 82 + + COUNT( - + ( + + ( 57 ) ) ) AS col0
----
1559

skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL - 19 * - 82 + + COUNT ( - + ( + + ( 57 ) ) ) AS col0
----
1559

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5000
SELECT - COUNT( * ) DIV + 77 * + NULLIF ( 44, 25 ) + - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5000
SELECT - COUNT ( * ) / + 77 * + NULLIF ( 44, 25 ) + - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT DISTINCT 40 * + 2 * + 58 + 18 + 95 + - - COUNT( - 46 ) * + + 30 * + 74
----
6973

skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT 40 * + 2 * + 58 + 18 + 95 + - - COUNT ( - 46 ) * + + 30 * + 74
----
6973

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT ALL 11 * - - 56 * COUNT( * ) AS col1
----
616

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL 11 * - - 56 * COUNT ( * ) AS col1
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT DISTINCT - MIN( - 33 ) * - + ( - 35 ) AS col0
----
1155

skipif mysql # not compatible
query I rowsort label-5003
SELECT DISTINCT - MIN ( - 33 ) * - + ( - 35 ) AS col0
----
1155

query I rowsort
SELECT + + 50 * ( - + 42 ) + 45 + - + 96 * + 98 * + 42
----
-397191

query I rowsort
SELECT - 65 - 75 AS col0
----
-140

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5006
SELECT + NULLIF ( + 74, + COUNT( ALL + + 57 ) + - 48 DIV + + 66 ) * 94 DIV SUM( ALL + 65 ) + - MIN( 24 ) AS col0, - 94 DIV - - 54 AS col2
----
83
-1

skipif mysql # not compatible
query II rowsort label-5006
SELECT + NULLIF ( + 74, + COUNT ( ALL + + 57 ) + - 48 / + + 66 ) * 94 / SUM ( ALL + 65 ) + - MIN ( 24 ) AS col0, - 94 / - - 54 AS col2
----
83
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5007
SELECT - - COUNT( * ) DIV - + 11 * + 21 * - - 6 * - - 39 col2, 52 DIV 24 + + 40 + - 39
----
0
3

skipif mysql # not compatible
query II rowsort label-5007
SELECT - - COUNT ( * ) / - + 11 * + 21 * - - 6 * - - 39 col2, 52 / 24 + + 40 + - 39
----
0
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5008
SELECT - 2 DIV - + 88 + - 13 + COUNT( DISTINCT + ( ( 39 ) ) ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-5008
SELECT - 2 / - + 88 + - 13 + COUNT ( DISTINCT + ( ( 39 ) ) ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT + 10 + - 50 + - MAX( 83 ) * + 56
----
-4688

skipif mysql # not compatible
query I rowsort label-5009
SELECT + 10 + - 50 + - MAX ( 83 ) * + 56
----
-4688

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

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

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

query II rowsort
SELECT + - 90 AS col0, - ( 62 )
----
-90
-62

query I rowsort
SELECT DISTINCT - 13 * ( 81 ) AS col2
----
-1053

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT DISTINCT 38 * + MIN( 2 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-5014
SELECT DISTINCT 38 * + MIN ( 2 ) AS col2
----
76

query I rowsort
SELECT + - 74 * - 71 AS col2
----
5254

query I rowsort
SELECT ALL 56 * - + 68 - 2 + + - NULLIF ( 27, + + 36 ) * + 79 AS col2
----
-5943

onlyif mysql # DIV for integer division: 
query I rowsort label-5017
SELECT + 26 DIV - + 58
----
0

skipif mysql # not compatible
query I rowsort label-5017
SELECT + 26 / - + 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT DISTINCT MAX( - 98 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT MAX ( - 98 ) AS col2
----
-98

query I rowsort
SELECT DISTINCT 61 * + + 22
----
1342

query I rowsort
SELECT ALL 20 * 53 AS col0
----
1060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5021
SELECT ALL CASE 76 WHEN - - 8 / - - 67 + + 51 + - - 82 / CASE + 72 WHEN + COUNT( * ) THEN 92 * - - COUNT( * ) + + CAST( ( + + 56 ) AS SIGNED ) + 79 + + 45 WHEN - ( + - COUNT( * ) ) THEN + 62 * - - 65 + - + 37 + - 22 + - 30 END + - 0 * - 84 THEN NULL WHEN - 38 THEN NULL WHEN + 26 THEN CAST( NULL AS SIGNED ) + - 93 / + ( 33 ) ELSE COUNT( * ) * - 2 END
----
-2

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL CASE 76 WHEN - - 8 / - - 67 + + 51 + - - 82 / CASE + 72 WHEN + COUNT ( * ) THEN 92 * - - COUNT ( * ) + + CAST ( ( + + 56 ) AS INTEGER ) + 79 + + 45 WHEN - ( + - COUNT ( * ) ) THEN + 62 * - - 65 + - + 37 + - 22 + - 30 END + - 0 * - 84 THEN NULL WHEN - 38 THEN NULL WHEN + 26 THEN CAST ( NULL AS INTEGER ) + - 93 / + ( 33 ) ELSE COUNT ( * ) * - 2 END
----
-2

query II rowsort
SELECT 92 col2, 21
----
92
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT ALL COALESCE ( 43, - - 4, - - NULLIF ( + 88, 20 * - 84 - + 74 * 30 / + 91 ) * 98 + + NULLIF ( + + COALESCE ( - 6, SUM( ALL 54 ) * - 72 ), 51 ) + - 9 * - 64 + - 16 * 77 )
----
43

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL COALESCE ( 43, - - 4, - - NULLIF ( + 88, 20 * - 84 - + 74 * 30 / + 91 ) * 98 + + NULLIF ( + + COALESCE ( - 6, SUM ( ALL 54 ) * - 72 ), 51 ) + - 9 * - 64 + - 16 * 77 )
----
43

query II rowsort
SELECT + 7 * + 13 AS col2, - ( - CASE 24 WHEN + 85 THEN NULL WHEN + 7 THEN COALESCE ( + ( 42 ), - 63 ) END ) AS col2
----
91
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5025
SELECT 5 AS col0, MAX( DISTINCT - 2 ) AS col1
----
5
-2

skipif mysql # not compatible
query II rowsort label-5025
SELECT 5 AS col0, MAX ( DISTINCT - 2 ) AS col1
----
5
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-5026
SELECT ALL 89 DIV + 84 AS col1, - 76 + NULLIF ( 49, + 90 ) AS col0
----
1
-27

skipif mysql # not compatible
query II rowsort label-5026
SELECT ALL 89 / + 84 AS col1, - 76 + NULLIF ( 49, + 90 ) AS col0
----
1
-27

query I rowsort
SELECT ALL 48 + + 44 + 49
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5028
SELECT + 54 + ( - 63 ) + - + CASE 86 WHEN - COALESCE ( - 73, 16 ) THEN NULL WHEN CAST( NULL AS DECIMAL ) THEN 10 * - - ( + 72 ) END + 46 * + - CAST( NULL AS SIGNED ) * - NULLIF ( - + 31, - 96 + 11 ) + 4 * + 49 / + AVG ( ALL - - 60 ) - - MIN( 89 ) + + + 65 - - COUNT( * ) + SUM( 91 ) / MAX( ALL + 73 * 19 ) * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5028
SELECT + 54 + ( - 63 ) + - + CASE 86 WHEN - COALESCE ( - 73, 16 ) THEN NULL WHEN CAST ( NULL AS REAL ) THEN 10 * - - ( + 72 ) END + 46 * + - CAST ( NULL AS INTEGER ) * - NULLIF ( - + 31, - 96 + 11 ) + 4 * + 49 / + AVG ( ALL - - 60 ) - - MIN ( 89 ) + + + 65 - - COUNT ( * ) + SUM ( 91 ) / MAX ( ALL + 73 * 19 ) * - 30
----
NULL

query I rowsort
SELECT - ( + COALESCE ( - 30, 46, - - 54 ) ) AS col1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5030
SELECT ALL + 62 + + + MIN( ALL 40 ) DIV - 65 AS col2, - 33 - 5 AS col0
----
62
-38

skipif mysql # not compatible
query II rowsort label-5030
SELECT ALL + 62 + + + MIN ( ALL 40 ) / - 65 AS col2, - 33 - 5 AS col0
----
62
-38

query II rowsort
SELECT DISTINCT - 8 * - NULLIF ( 33, 16 ), 5 * 29 col0
----
264
145

query I rowsort
SELECT ALL 12 + 2 * 20 AS col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5033
SELECT ALL - 90 * CAST( + 74 AS SIGNED ) AS col0
----
-6660

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL - 90 * CAST ( + 74 AS INTEGER ) AS col0
----
-6660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5034
SELECT - 41 * + + 7 DIV - COUNT( * )
----
287

skipif mysql # not compatible
query I rowsort label-5034
SELECT - 41 * + + 7 / - COUNT ( * )
----
287

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT DISTINCT 47 + - - COUNT( * ) + + 3 * 75 + 28 AS col1
----
301

skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT 47 + - - COUNT ( * ) + + 3 * 75 + 28 AS col1
----
301

onlyif mysql # aggregate syntax: 
query II rowsort label-5036
SELECT ALL COUNT( * ) + 79 AS col1, 90
----
80
90

skipif mysql # not compatible
query II rowsort label-5036
SELECT ALL COUNT ( * ) + 79 AS col1, 90
----
80
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5037
SELECT DISTINCT - ( + 94 ) + 22 DIV - 93
----
-94

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT - ( + 94 ) + 22 / - 93
----
-94

query I rowsort
SELECT - 76 * - 27 * + - 38 * + + 54 AS col0
----
-4210704

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT ALL + COUNT( DISTINCT - 49 )
----
1

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL + COUNT ( DISTINCT - 49 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5041
SELECT CAST( + + CASE - ( - CAST( NULL AS DECIMAL ) ) WHEN ( - 51 ) THEN NULL ELSE 38 END AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-5041
SELECT CAST ( + + CASE - ( - CAST ( NULL AS REAL ) ) WHEN ( - 51 ) THEN NULL ELSE 38 END AS INTEGER )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5042
SELECT - COUNT( * ) + NULLIF ( + COALESCE ( - + 81, - + 65, ( - CASE CAST( + - 45 AS SIGNED ) WHEN - - 71 / + + CASE + 90 WHEN 29 / - - 73 * - + 65 / - 53 * + 2 / - 67 * + ( 18 ) THEN NULL WHEN + 83 THEN + 42 * CAST( - COUNT( * ) AS SIGNED ) - SUM( ALL 55 ) + - COUNT( * ) WHEN 26 THEN NULL END THEN NULL WHEN - 21 + + NULLIF ( COUNT( * ), - 72 ) * CASE CASE + 48 WHEN + 26 THEN - 87 ELSE 26 * + 48 END WHEN CASE + 11 WHEN + ( 93 ) * + 29 THEN SUM( DISTINCT - 20 ) * ( 59 - NULLIF ( NULLIF ( + CAST( 68 AS DECIMAL ), - 21 + 58 ), - 97 + + 65 ) ) - - 33 WHEN - 24 THEN COUNT( * ) END THEN - 56 + + 91 ELSE 90 END THEN - 69 END ) ), 46 + - NULLIF ( CAST( - MIN( ALL NULLIF ( 34, 96 + + 22 ) ) AS SIGNED ), - 50 ) * 31 ) + 95
----
13

skipif mysql # not compatible
query I rowsort label-5042
SELECT - COUNT ( * ) + NULLIF ( + COALESCE ( - + 81, - + 65, ( - CASE CAST ( + - 45 AS INTEGER ) WHEN - - 71 / + + CASE + 90 WHEN 29 / - - 73 * - + 65 / - 53 * + 2 / - 67 * + ( 18 ) THEN NULL WHEN + 83 THEN + 42 * CAST ( - COUNT ( * ) AS INTEGER ) - SUM ( ALL 55 ) + - COUNT ( * ) WHEN 26 THEN NULL END THEN NULL WHEN - 21 + + NULLIF ( COUNT ( * ), - 72 ) * CASE CASE + 48 WHEN + 26 THEN - 87 ELSE 26 * + 48 END WHEN CASE + 11 WHEN + ( 93 ) * + 29 THEN SUM ( DISTINCT - 20 ) * ( 59 - NULLIF ( NULLIF ( + CAST ( 68 AS REAL ), - 21 + 58 ), - 97 + + 65 ) ) - - 33 WHEN - 24 THEN COUNT ( * ) END THEN - 56 + + 91 ELSE 90 END THEN - 69 END ) ), 46 + - NULLIF ( CAST ( - MIN ( ALL NULLIF ( 34, 96 + + 22 ) ) AS INTEGER ), - 50 ) * 31 ) + 95
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5043
SELECT DISTINCT + - COUNT( * ) DIV 73 + + 10
----
10

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT + - COUNT ( * ) / 73 + + 10
----
10

query II rowsort
SELECT + 20, 79 * + 70 + - - 8 + - 34 AS col0
----
20
5504

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5045
SELECT 11 AS col0, 51 + 4 DIV COUNT( * ) * - + SUM( - 16 ) * + COUNT( + 88 ) AS col0
----
11
115

skipif mysql # not compatible
query II rowsort label-5045
SELECT 11 AS col0, 51 + 4 / COUNT ( * ) * - + SUM ( - 16 ) * + COUNT ( + 88 ) AS col0
----
11
115

query II rowsort
SELECT ALL + 46 col0, 43
----
46
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5047
SELECT - 99 * - COUNT( * ) + - 52 DIV + NULLIF ( + 81, - 55 - + 43 DIV 40 )
----
99

skipif mysql # not compatible
query I rowsort label-5047
SELECT - 99 * - COUNT ( * ) + - 52 / + NULLIF ( + 81, - 55 - + 43 / 40 )
----
99

query II rowsort
SELECT DISTINCT + - 42 AS col2, + 0 - - 69 AS col0
----
-42
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5049
SELECT + 7 * + - CAST( 71 AS SIGNED ) * - 7 + - - COUNT( DISTINCT + 66 ) * - 70 + 38
----
3447

skipif mysql # not compatible
query I rowsort label-5049
SELECT + 7 * + - CAST ( 71 AS INTEGER ) * - 7 + - - COUNT ( DISTINCT + 66 ) * - 70 + 38
----
3447

query II rowsort
SELECT ALL + 39 col0, - ( + 41 )
----
39
-41

query I rowsort
SELECT ALL - 28 * + 69 * 71 AS col0
----
-137172

query II rowsort
SELECT ALL + 28 AS col1, - 92 AS col1
----
28
-92

query I rowsort
SELECT ALL + - 86 * + NULLIF ( 17, 31 )
----
-1462

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5054
SELECT + + 3, 21 * - ( + CAST( NULL AS SIGNED ) ) AS col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5054
SELECT + + 3, 21 * - ( + CAST ( NULL AS INTEGER ) ) AS col0
----
3
NULL

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

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

query I rowsort
SELECT ALL - 84 * - 52
----
4368

query I rowsort
SELECT - - 78 + - 65 * - 95 AS col0
----
6253

query I rowsort
SELECT ALL - 67 * - 39 AS col1
----
2613

query I rowsort
SELECT 97 * - 65
----
-6305

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( - + 62, - + 1 ) AS col2
----
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5062
SELECT 74 + + 72 + + - CASE WHEN NOT CAST( NULL AS DECIMAL ) < NULL THEN - 34 * - - 41 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5062
SELECT 74 + + 72 + + - CASE WHEN NOT CAST ( NULL AS REAL ) < NULL THEN - 34 * - - 41 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT ALL SUM( ALL + - 68 ) + 20 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL SUM ( ALL + - 68 ) + 20 AS col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5064
SELECT SUM( + NULLIF ( 74, CAST( - - 63 AS SIGNED ) - + CAST( NULL AS SIGNED ) ) ) + 15 AS col0, 46 + - 20
----
89
26

skipif mysql # not compatible
query II rowsort label-5064
SELECT SUM ( + NULLIF ( 74, CAST ( - - 63 AS INTEGER ) - + CAST ( NULL AS INTEGER ) ) ) + 15 AS col0, 46 + - 20
----
89
26

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

skipif mysql # not compatible
query I rowsort label-5065
SELECT 0 - + - COUNT ( ALL + 61 ) / 89 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5066
SELECT ALL 48 + + + 95, + 17 DIV - 34 * 40 * + 85 * + 34 * - 24 col2
----
143
0

skipif mysql # not compatible
query II rowsort label-5066
SELECT ALL 48 + + + 95, + 17 / - 34 * 40 * + 85 * + 34 * - 24 col2
----
143
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT 74 + - 56 * - ( - COUNT( * ) )
----
18

skipif mysql # not compatible
query I rowsort label-5067
SELECT 74 + - 56 * - ( - COUNT ( * ) )
----
18

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5069
SELECT DISTINCT COUNT( * ) * + + 43 * COUNT( * ) AS col2, 87
----
43
87

skipif mysql # not compatible
query II rowsort label-5069
SELECT DISTINCT COUNT ( * ) * + + 43 * COUNT ( * ) AS col2, 87
----
43
87

query I rowsort
SELECT DISTINCT 60 + + 8 - 27 - - + NULLIF ( - 17, + + ( - 34 ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT DISTINCT 71 + + AVG ( + 96 ) - - 99 + - 66 - - - 99 * + 22 / - 91 + + COUNT( * ) / COUNT( * ) * - 47 * - 98 * + 80 + + 57 / - CASE - + ( 45 ) WHEN - 65 THEN + - 82 - COUNT( * ) * 32 - + ( 17 ) + 73 * 80 WHEN - 68 * ( 13 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT 71 + + AVG ( + 96 ) - - 99 + - 66 - - - 99 * + 22 / - 91 + + COUNT ( * ) / COUNT ( * ) * - 47 * - 98 * + 80 + + 57 / - CASE - + ( 45 ) WHEN - 65 THEN + - 82 - COUNT ( * ) * 32 - + ( 17 ) + 73 * 80 WHEN - 68 * ( 13 ) THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 95 + - 77
----
18

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

query I rowsort
SELECT ( 32 ) * + 80
----
2560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5075
SELECT ALL 59 + - 83 AS col0, CAST( NULL AS SIGNED ) * + 49 AS col2
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-5075
SELECT ALL 59 + - 83 AS col0, CAST ( NULL AS INTEGER ) * + 49 AS col2
----
-24
NULL

query I rowsort
SELECT 5 + - + 21 * 12 * 10 AS col0
----
-2515

onlyif mysql # DIV for integer division: 
query I rowsort label-5077
SELECT ALL ( - 57 ) DIV + 63 col1
----
0

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL ( - 57 ) / + 63 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5078
SELECT - + MAX( + 40 ) AS col2, + NULLIF ( - 30, + + 10 ) - + 88 * - 17 AS col1
----
-40
1466

skipif mysql # not compatible
query II rowsort label-5078
SELECT - + MAX ( + 40 ) AS col2, + NULLIF ( - 30, + + 10 ) - + 88 * - 17 AS col1
----
-40
1466

query I rowsort
SELECT ALL - 23 * + 63 AS col2
----
-1449

query I rowsort
SELECT DISTINCT + 12 - 70 + 49 + + 14
----
5

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

skipif mysql # not compatible
query I rowsort label-5081
SELECT - COUNT ( * ) / 73 + - 52
----
-52

query I rowsort
SELECT DISTINCT - 32 - 90 AS col0
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5083
SELECT + + CAST( - 15 AS SIGNED ) AS col2, + COUNT( * ) AS col2
----
-15
1

skipif mysql # not compatible
query II rowsort label-5083
SELECT + + CAST ( - 15 AS INTEGER ) AS col2, + COUNT ( * ) AS col2
----
-15
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT COUNT( * ) - + ( 19 ) + COUNT( * ) * + 11
----
-7

skipif mysql # not compatible
query I rowsort label-5084
SELECT COUNT ( * ) - + ( 19 ) + COUNT ( * ) * + 11
----
-7

query I rowsort
SELECT + 42 * 2 + 36 - + 14
----
106

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

skipif mysql # not compatible
query I rowsort label-5086
SELECT COUNT ( * ) / - 82 + 34
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5087
SELECT ALL + + 59 DIV - + 12 + NULLIF ( + 96, 31 ) + - COUNT( * ) + 1
----
92

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL + + 59 / - + 12 + NULLIF ( + 96, 31 ) + - COUNT ( * ) + 1
----
92

query I rowsort
SELECT + - 19 * 25 + - 45 - + 54 + - 32 AS col2
----
-606

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT - 63 * 7 * COUNT( * ) * 29 + + COUNT( * )
----
-12788

skipif mysql # not compatible
query I rowsort label-5089
SELECT - 63 * 7 * COUNT ( * ) * 29 + + COUNT ( * )
----
-12788

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

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL + - 92 / COUNT ( * ) col1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5091
SELECT 89 * CAST( NULL AS SIGNED ) * 72 / + 71 - + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5091
SELECT 89 * CAST ( NULL AS INTEGER ) * 72 / + 71 - + 85
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT DISTINCT + 80 + - ( - COUNT( * ) ) * + - 51 * + 77 AS col1
----
-3847

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT + 80 + - ( - COUNT ( * ) ) * + - 51 * + 77 AS col1
----
-3847

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT ALL + MIN( DISTINCT 54 ) + - - 80 AS col0
----
134

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL + MIN ( DISTINCT 54 ) + - - 80 AS col0
----
134

query II rowsort
SELECT - 0 AS col1, - 44 AS col0
----
0
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5096
SELECT 83 * CASE - 65 WHEN + MAX( DISTINCT + 49 ) THEN NULL WHEN - SUM( 69 ) THEN + 65 * + 78 + - + 51 / CAST( NULL AS SIGNED ) * + 73 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5096
SELECT 83 * CASE - 65 WHEN + MAX ( DISTINCT + 49 ) THEN NULL WHEN - SUM ( 69 ) THEN + 65 * + 78 + - + 51 / CAST ( NULL AS INTEGER ) * + 73 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT ALL 19 + - 53 + + SUM( + 0 ) + 5 * - + 59 * + + 76
----
-22454

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL 19 + - 53 + + SUM ( + 0 ) + 5 * - + 59 * + + 76
----
-22454

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5098
SELECT - 9 AS col2, + 79 - CASE - 40 WHEN COUNT( * ) + - COUNT( * ) THEN 22 * - COUNT( ALL + - CAST( + 94 AS SIGNED ) ) + - 57 END, - 74 col1
----
-9
NULL
-74

skipif mysql # not compatible
query III rowsort label-5098
SELECT - 9 AS col2, + 79 - CASE - 40 WHEN COUNT ( * ) + - COUNT ( * ) THEN 22 * - COUNT ( ALL + - CAST ( + 94 AS INTEGER ) ) + - 57 END, - 74 col1
----
-9
NULL
-74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT DISTINCT MIN( + + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-5100
SELECT DISTINCT MIN ( + + 46 )
----
46

query I rowsort
SELECT 99 - 66 col0
----
33

query II rowsort
SELECT - 32, - 39 + + 56 AS col0
----
-32
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT 50 + - MIN( + 95 )
----
-45

skipif mysql # not compatible
query I rowsort label-5103
SELECT 50 + - MIN ( + 95 )
----
-45

query I rowsort
SELECT ALL + 52 * + CASE - 36 WHEN - 24 THEN - + 55 WHEN - NULLIF ( NULLIF ( 41, + 18 / - 28 ), 82 * - + 82 ) THEN NULL ELSE NULL END / 83 AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 43, + 50 )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5106
SELECT 9 AS col2, - CASE 12 WHEN - AVG ( - 84 ) + 0 + - 34 * - + CASE 24 WHEN + 23 * 29 * - 49 * - 8 + - - SUM( ALL + 46 ) * 72 THEN - + 45 - - 44 * + MIN( 23 ) / + 51 WHEN + - 0 THEN NULL END * AVG ( + + 34 ) * - COUNT( DISTINCT ( - 82 ) ) + - AVG ( ALL + 46 ) * + 90 - - ( + COUNT( ALL 77 ) ) THEN NULL WHEN - 46 THEN 61 + - 58 * + COALESCE ( - NULLIF ( + 83, - ( 7 ) ), 87 * + ( - 41 ) + 98 * + MIN( 0 - 18 ) ) WHEN + 53 / 42 THEN - COUNT( * ) / + 10 END + - CAST( NULL AS SIGNED ) * 88
----
9
NULL

skipif mysql # not compatible
query II rowsort label-5106
SELECT 9 AS col2, - CASE 12 WHEN - AVG ( - 84 ) + 0 + - 34 * - + CASE 24 WHEN + 23 * 29 * - 49 * - 8 + - - SUM ( ALL + 46 ) * 72 THEN - + 45 - - 44 * + MIN ( 23 ) / + 51 WHEN + - 0 THEN NULL END * AVG ( + + 34 ) * - COUNT ( DISTINCT ( - 82 ) ) + - AVG ( ALL + 46 ) * + 90 - - ( + COUNT ( ALL 77 ) ) THEN NULL WHEN - 46 THEN 61 + - 58 * + COALESCE ( - NULLIF ( + 83, - ( 7 ) ), 87 * + ( - 41 ) + 98 * + MIN ( 0 - 18 ) ) WHEN + 53 / 42 THEN - COUNT ( * ) / + 10 END + - CAST ( NULL AS INTEGER ) * 88
----
9
NULL

query I rowsort
SELECT + 81 - - + 51 - + + 89
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5108
SELECT - 90 * - - 24 + - 99 AS col0, - CAST( NULL AS SIGNED ) AS col0
----
-2259
NULL

skipif mysql # not compatible
query II rowsort label-5108
SELECT - 90 * - - 24 + - 99 AS col0, - CAST ( NULL AS INTEGER ) AS col0
----
-2259
NULL

query II rowsort
SELECT ALL 16, + 71 + + 83 col1
----
16
154

query I rowsort
SELECT 66 * 74
----
4884

onlyif mysql # aggregate syntax: 
query II rowsort label-5111
SELECT 46 AS col0, + SUM( + 26 ) AS col2
----
46
26

skipif mysql # not compatible
query II rowsort label-5111
SELECT 46 AS col0, + SUM ( + 26 ) AS col2
----
46
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5112
SELECT 55 DIV 97 * 29 col1
----
0

skipif mysql # not compatible
query I rowsort label-5112
SELECT 55 / 97 * 29 col1
----
0

query I rowsort
SELECT + 56 * 60
----
3360

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT CASE - - 62 WHEN - 35 THEN NULL WHEN 43 THEN - ( - COUNT( * ) ) END * + ( - 71 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT CASE - - 62 WHEN - 35 THEN NULL WHEN 43 THEN - ( - COUNT ( * ) ) END * + ( - 71 ) AS col1
----
NULL

query II rowsort
SELECT - 29, + 38 AS col2
----
-29
38

query I rowsort
SELECT ALL 19 * 83 + 55 + - - 67 * - 4
----
1364

query I rowsort
SELECT DISTINCT + - 56 * + - 36 * + 16 AS col1
----
32256

query I rowsort
SELECT + 6 * - - 93 AS col0
----
558

query II rowsort
SELECT ALL + 14 AS col0, + 9 AS col2
----
14
9

query I rowsort
SELECT ALL 27 * - - 4 + - 93 AS col2
----
15

query I rowsort
SELECT ALL 39 * - - 23 * + 56 + 74
----
50306

query I rowsort
SELECT - 84 * 1 AS col2
----
-84

query I rowsort
SELECT ALL 75 * 34 + + + 13 AS col2
----
2563

onlyif mysql # DIV for integer division: 
query I rowsort label-5125
SELECT - 37 DIV - 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5125
SELECT - 37 / - 60 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT ALL - 9 * 11 * + COUNT( * ) + + 16 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL - 9 * 11 * + COUNT ( * ) + + 16 AS col0
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5127
SELECT - COALESCE ( 40, + + 8, + 20 * - 62 DIV 45, COUNT( * ) ) + 38 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5127
SELECT - COALESCE ( 40, + + 8, + 20 * - 62 / 45, COUNT ( * ) ) + 38 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL 12 * + COALESCE ( 69, + + 28 ) + 28 + + COUNT( * ) + + 24 * - 75
----
-943

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL 12 * + COALESCE ( 69, + + 28 ) + 28 + + COUNT ( * ) + + 24 * - 75
----
-943

query I rowsort
SELECT - 1 + - - 89 AS col2
----
88

query II rowsort
SELECT ALL - 31 * 37 AS col1, - 73
----
-1147
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-5131
SELECT + ( - - 49 ) * - - COUNT( 39 ) * 37 + 27 + - + 91 + + 65 - + 84 AS col2, 30 * + 32
----
1730
960

skipif mysql # not compatible
query II rowsort label-5131
SELECT + ( - - 49 ) * - - COUNT ( 39 ) * 37 + 27 + - + 91 + + 65 - + 84 AS col2, 30 * + 32
----
1730
960

query I rowsort
SELECT 68 * - 81 - - 37 AS col1
----
-5471

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT ALL - COALESCE ( - ( + MIN( - 69 ) ), - 61 ) * - 58 * + 80
----
320160

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL - COALESCE ( - ( + MIN ( - 69 ) ), - 61 ) * - 58 * + 80
----
320160

query I rowsort
SELECT - 41 + + 42
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT - COUNT( * ) + + - COALESCE ( COUNT( * ), - 32 + 83 * - - 16 * - 9 ) - + + 87
----
-89

skipif mysql # not compatible
query I rowsort label-5135
SELECT - COUNT ( * ) + + - COALESCE ( COUNT ( * ), - 32 + 83 * - - 16 * - 9 ) - + + 87
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5136
SELECT ALL + SUM( ALL + + 4 ) - 84 DIV 61 + NULLIF ( + 94, + + COALESCE ( + 14, - 67 ) + + + 81 * - + 92 ) - 41 * SUM( - - 60 ) + + + 92 + + 19
----
-2252

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL + SUM ( ALL + + 4 ) - 84 / 61 + NULLIF ( + 94, + + COALESCE ( + 14, - 67 ) + + + 81 * - + 92 ) - 41 * SUM ( - - 60 ) + + + 92 + + 19
----
-2252

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

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

query I rowsort
SELECT + 23 + 51 AS col0
----
74

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

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

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

query I rowsort
SELECT ALL + 69 * - 27 AS col1
----
-1863

query II rowsort
SELECT - 65 + + 64 * + 1 * + 86 AS col0, 81 AS col2
----
5439
81

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

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

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

query I rowsort
SELECT - - 40 + - + 92
----
-52

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

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

query I rowsort
SELECT ALL - 96 * - 35 + + - 22 + 50 AS col1
----
3388

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT + - 85 * - + MAX( + 4 ) + + COUNT( * ) * + 79 + - - 40 - + 45
----
414

skipif mysql # not compatible
query I rowsort label-5149
SELECT + - 85 * - + MAX ( + 4 ) + + COUNT ( * ) * + 79 + - - 40 - + 45
----
414

query I rowsort
SELECT ALL 93 + + 83 * - 7
----
-488

onlyif mysql # DIV for integer division: 
query I rowsort label-5151
SELECT DISTINCT - - 50 DIV - - 20 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT - - 50 / - - 20 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5152
SELECT + CAST( + CAST( - 90 AS SIGNED ) AS SIGNED ) * - + 66 + + COUNT( * ) + + 32 * CAST( NULL AS DECIMAL ), CAST( MAX( 33 ) AS SIGNED ) AS col0
----
NULL
33

skipif mysql # not compatible
query II rowsort label-5152
SELECT + CAST ( + CAST ( - 90 AS INTEGER ) AS INTEGER ) * - + 66 + + COUNT ( * ) + + 32 * CAST ( NULL AS REAL ), CAST ( MAX ( 33 ) AS INTEGER ) AS col0
----
NULL
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5153
SELECT ALL - NULLIF ( - 88, - 59 * CAST( - + 68 AS DECIMAL ) + - 48 ) * + + 2 AS col1
----
176

skipif mysql # not compatible
query I rowsort label-5153
SELECT ALL - NULLIF ( - 88, - 59 * CAST ( - + 68 AS REAL ) + - 48 ) * + + 2 AS col1
----
176

query I rowsort
SELECT + 4 + ( - - 30 ) * + 8 AS col1
----
244

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT + NULLIF ( + - 15, COUNT( * ) + + 11 * + 81 - - 14 / 91 * 31 + - - 84 )
----
-15

skipif mysql # not compatible
query I rowsort label-5155
SELECT + NULLIF ( + - 15, COUNT ( * ) + + 11 * + 81 - - 14 / 91 * 31 + - - 84 )
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5156
SELECT - AVG ( - - 26 ) * - 3 + + + 81 * + CAST( NULL AS DECIMAL ) + + 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT - AVG ( - - 26 ) * - 3 + + + 81 * + CAST ( NULL AS REAL ) + + 82 AS col0
----
NULL

query I rowsort
SELECT + 20 * + COALESCE ( + 30, + NULLIF ( - 5, + 83 ) + + - 82 - - 68 + + 4 * + 97 + + 65 ) AS col1
----
600

onlyif mysql # DIV for integer division: 
query I rowsort label-5158
SELECT ALL 26 DIV 48
----
0

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL 26 / 48
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5159
SELECT + 37 + - + ( - 72 ) DIV + 49 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-5159
SELECT + 37 + - + ( - 72 ) / + 49 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT ALL - 14 * COUNT( * ) * - ( - - 22 ) + - + 46
----
262

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL - 14 * COUNT ( * ) * - ( - - 22 ) + - + 46
----
262

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5162
SELECT + 27 * - 34 + + 30 + + NULLIF ( - + 48, - - COUNT( * ) ) DIV - NULLIF ( - ( COUNT( * ) ), 58 - - 25 * 72 * + 89 )
----
-936

skipif mysql # not compatible
query I rowsort label-5162
SELECT + 27 * - 34 + + 30 + + NULLIF ( - + 48, - - COUNT ( * ) ) / - NULLIF ( - ( COUNT ( * ) ), 58 - - 25 * 72 * + 89 )
----
-936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5163
SELECT DISTINCT ( COUNT( * ) ) * - 73 AS col2, 65 + COALESCE ( - 21, 34 + + + COUNT( * ) + - 42 DIV - - 24 - - + NULLIF ( + MAX( ALL 95 ), - + 43 * 77 * 64 * - - 47 * + ( - 61 ) * - CAST( + 32 AS SIGNED ) ) DIV + 50 * + 29 + - - 94 * - - COUNT( * ), - + CAST( NULL AS SIGNED ) + + COUNT( * ) ) * + - 76 - + 82 * + 97 AS col1
----
-73
-6293

skipif mysql # not compatible
query II rowsort label-5163
SELECT DISTINCT ( COUNT ( * ) ) * - 73 AS col2, 65 + COALESCE ( - 21, 34 + + + COUNT ( * ) + - 42 / - - 24 - - + NULLIF ( + MAX ( ALL 95 ), - + 43 * 77 * 64 * - - 47 * + ( - 61 ) * - CAST ( + 32 AS INTEGER ) ) / + 50 * + 29 + - - 94 * - - COUNT ( * ), - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) ) * + - 76 - + 82 * + 97 AS col1
----
-73
-6293

onlyif mysql # aggregate syntax: 
query II rowsort label-5164
SELECT ALL - ( + ( + 55 ) ) * - 66 - 61, + COUNT( * ) + - 13 AS col1
----
3569
-12

skipif mysql # not compatible
query II rowsort label-5164
SELECT ALL - ( + ( + 55 ) ) * - 66 - 61, + COUNT ( * ) + - 13 AS col1
----
3569
-12

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

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

query I rowsort
SELECT ALL 83 * + 52
----
4316

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5167
SELECT + 95 * + CAST( + + 52 AS SIGNED )
----
4940

skipif mysql # not compatible
query I rowsort label-5167
SELECT + 95 * + CAST ( + + 52 AS INTEGER )
----
4940

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT - 71 + + + SUM( DISTINCT + - 88 ) + 49 AS col2
----
-110

skipif mysql # not compatible
query I rowsort label-5168
SELECT - 71 + + + SUM ( DISTINCT + - 88 ) + 49 AS col2
----
-110

query I rowsort
SELECT - 30 * + + 66
----
-1980

query I rowsort
SELECT CASE 99 WHEN - 29 THEN 8 + + 47 END
----
NULL

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

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

query I rowsort
SELECT ALL - 0 * + 47 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5173
SELECT DISTINCT COUNT( * ) AS col2, MAX( ALL + ( + - 45 ) ) AS col1
----
1
-45

skipif mysql # not compatible
query II rowsort label-5173
SELECT DISTINCT COUNT ( * ) AS col2, MAX ( ALL + ( + - 45 ) ) AS col1
----
1
-45

query I rowsort
SELECT - 63 * + + 21
----
-1323

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

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

query I rowsort
SELECT + - 11 + 88
----
77

query I rowsort
SELECT + ( - CASE - 96 WHEN 12 + - 77 + + 91 THEN 12 WHEN + 2 + 10 THEN NULL ELSE - - 84 * - - 22 END )
----
-1848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5178
SELECT - COUNT( * ) * - + 20 DIV - MAX( ALL - 46 )
----
0

skipif mysql # not compatible
query I rowsort label-5178
SELECT - COUNT ( * ) * - + 20 / - MAX ( ALL - 46 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5179
SELECT - + 36 + COUNT( CAST( + + ( - 88 ) AS DECIMAL ) ) - + CAST( + 80 AS SIGNED ) AS col2
----
-115

skipif mysql # not compatible
query I rowsort label-5179
SELECT - + 36 + COUNT ( CAST ( + + ( - 88 ) AS REAL ) ) - + CAST ( + 80 AS INTEGER ) AS col2
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT DISTINCT - + CASE + + 89 WHEN - COUNT( * ) THEN - 39 * - - 32 * + + 64 WHEN - 88 THEN NULL END * - - 86 * 60 - COUNT( + 67 ) / - + NULLIF ( + 36, ( + COUNT( * ) ) ) + + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT - + CASE + + 89 WHEN - COUNT ( * ) THEN - 39 * - - 32 * + + 64 WHEN - 88 THEN NULL END * - - 86 * 60 - COUNT ( + 67 ) / - + NULLIF ( + 36, ( + COUNT ( * ) ) ) + + 33 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5182
SELECT ALL + + CAST( + 12 AS SIGNED ) + + ( + 45 )
----
57

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL + + CAST ( + 12 AS INTEGER ) + + ( + 45 )
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-5183
SELECT DISTINCT - COUNT( * ) + 37 + + 27 AS col1, + COUNT( * ) AS col1
----
63
1

skipif mysql # not compatible
query II rowsort label-5183
SELECT DISTINCT - COUNT ( * ) + 37 + + 27 AS col1, + COUNT ( * ) AS col1
----
63
1

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

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

query II rowsort
SELECT 97 + + 65 + + 85 AS col1, + 68 - - - 60
----
247
8

query II rowsort
SELECT ALL - + 85, - ( + + 42 ) AS col1
----
-85
-42

query I rowsort
SELECT 18 * 72 AS col1
----
1296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5188
SELECT - 93 * CAST( NULL AS SIGNED ) * - - 58 * 92 - - + AVG ( DISTINCT + ( 84 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT - 93 * CAST ( NULL AS INTEGER ) * - - 58 * 92 - - + AVG ( DISTINCT + ( 84 ) ) col2
----
NULL

query I rowsort
SELECT DISTINCT + 91 * 73
----
6643

query I rowsort
SELECT ALL 7 + - - 63 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT 93 * + COUNT( * ) * 78
----
7254

skipif mysql # not compatible
query I rowsort label-5191
SELECT 93 * + COUNT ( * ) * 78
----
7254

query I rowsort
SELECT ALL - 76 * - 55
----
4180

onlyif mysql # DIV for integer division: 
query I rowsort label-5193
SELECT 99 DIV + 28 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5193
SELECT 99 / + 28 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT - COUNT( * ) * + 88 + 0 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-5194
SELECT - COUNT ( * ) * + 88 + 0 AS col1
----
-88

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT - ( - - 5 ) * - 43 * COUNT( * ) + 71 + - + 30 - + 2 AS col1
----
254

skipif mysql # not compatible
query I rowsort label-5197
SELECT - ( - - 5 ) * - 43 * COUNT ( * ) + 71 + - + 30 - + 2 AS col1
----
254

query I rowsort
SELECT 99 + - - 96 col0
----
195

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5199
SELECT NULLIF ( - COUNT( * ), CASE + 45 WHEN + 89 THEN - ( + CAST( NULL AS DECIMAL ) ) * + 0 * - CASE - 97 WHEN 20 * 94 THEN NULL WHEN 41 THEN NULL WHEN + 18 THEN - 85 ELSE - 77 END - + - 51 * 35 WHEN - 1 - COUNT( * ) THEN NULL ELSE - + 1 END ) / 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5199
SELECT NULLIF ( - COUNT ( * ), CASE + 45 WHEN + 89 THEN - ( + CAST ( NULL AS REAL ) ) * + 0 * - CASE - 97 WHEN 20 * 94 THEN NULL WHEN 41 THEN NULL WHEN + 18 THEN - 85 ELSE - 77 END - + - 51 * 35 WHEN - 1 - COUNT ( * ) THEN NULL ELSE - + 1 END ) / 35 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT 14 * 1 * + COUNT( * ) * - + 94 + - - 54
----
-1262

skipif mysql # not compatible
query I rowsort label-5201
SELECT 14 * 1 * + COUNT ( * ) * - + 94 + - - 54
----
-1262

query I rowsort
SELECT 5 * - 92 + - 26 AS col1
----
-486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5203
SELECT ALL NULLIF ( + CASE CASE + ( + 61 ) WHEN - 12 + - CAST( NULL AS SIGNED ) THEN NULL ELSE CAST( + 76 AS SIGNED ) * + 43 * - - 92 * + + 21 END WHEN - - 67 * + CAST( NULL AS SIGNED ) + - - 85 * COUNT( * ) + - - 6 THEN NULL WHEN - CAST( + 71 AS SIGNED ) THEN - 70 * - + 84 END, + + 54 * + COUNT( * ) + - 35 + - 33 * - 54 * + 35 * 57 * + CAST( NULL AS DECIMAL ) ) / CAST( + COUNT( * ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL NULLIF ( + CASE CASE + ( + 61 ) WHEN - 12 + - CAST ( NULL AS INTEGER ) THEN NULL ELSE CAST ( + 76 AS INTEGER ) * + 43 * - - 92 * + + 21 END WHEN - - 67 * + CAST ( NULL AS INTEGER ) + - - 85 * COUNT ( * ) + - - 6 THEN NULL WHEN - CAST ( + 71 AS INTEGER ) THEN - 70 * - + 84 END, + + 54 * + COUNT ( * ) + - 35 + - 33 * - 54 * + 35 * 57 * + CAST ( NULL AS REAL ) ) / CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5204
SELECT ALL - COUNT( * ), 81 + + ( + ( + CAST( NULL AS SIGNED ) ) ) + + 52 * - CAST( NULL AS DECIMAL ) - - 84 AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5204
SELECT ALL - COUNT ( * ), 81 + + ( + ( + CAST ( NULL AS INTEGER ) ) ) + + 52 * - CAST ( NULL AS REAL ) - - 84 AS col0
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5205
SELECT 43 + - 69 DIV + - ( - ( - + ( - - COUNT( * ) ) ) ) AS col0, 74 AS col2
----
112
74

skipif mysql # not compatible
query II rowsort label-5205
SELECT 43 + - 69 / + - ( - ( - + ( - - COUNT ( * ) ) ) ) AS col0, 74 AS col2
----
112
74

query I rowsort
SELECT 49 * - 53 * 35 AS col1
----
-90895

onlyif mysql # aggregate syntax: 
query II rowsort label-5207
SELECT + 65 * + - COUNT( * ) + COUNT( * ) + + 90 AS col2, + COALESCE ( + + 96, - 7 * - 96, - - 22 ) * + 31 + 6 * - 6 AS col0
----
26
2940

skipif mysql # not compatible
query II rowsort label-5207
SELECT + 65 * + - COUNT ( * ) + COUNT ( * ) + + 90 AS col2, + COALESCE ( + + 96, - 7 * - 96, - - 22 ) * + 31 + 6 * - 6 AS col0
----
26
2940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5208
SELECT COALESCE ( COUNT( * ), 12 ) + - + 10 * + SUM( ALL + CAST( - - 4 AS SIGNED ) ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-5208
SELECT COALESCE ( COUNT ( * ), 12 ) + - + 10 * + SUM ( ALL + CAST ( - - 4 AS INTEGER ) ) AS col2
----
-39

query II rowsort
SELECT - 13 AS col0, 94
----
-13
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5210
SELECT ALL - + NULLIF ( + 93, - 46 ) + ( - 11 ) + - COUNT( + 18 ) + - ( - COALESCE ( + 58, + 71 + 8, 63 DIV - CASE + - 77 WHEN 67 THEN NULL WHEN + 95 * - + 55 * 15 + NULLIF ( + COUNT( * ), - + 89 ) - - CAST( NULL AS SIGNED ) DIV ( + ( + 50 ) ) DIV 62 - + MIN( CAST( NULL AS SIGNED ) ) THEN NULL WHEN + + AVG ( + 4 ) + 14 * ( 54 ) THEN - 0 * + 6 END + NULLIF ( + 16, - 49 ) - + CAST( 8 AS SIGNED ) ) ) * 94 AS col2
----
5347

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL - + NULLIF ( + 93, - 46 ) + ( - 11 ) + - COUNT ( + 18 ) + - ( - COALESCE ( + 58, + 71 + 8, 63 / - CASE + - 77 WHEN 67 THEN NULL WHEN + 95 * - + 55 * 15 + NULLIF ( + COUNT ( * ), - + 89 ) - - CAST ( NULL AS INTEGER ) / ( + ( + 50 ) ) / 62 - + MIN ( CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + + AVG ( + 4 ) + 14 * ( 54 ) THEN - 0 * + 6 END + NULLIF ( + 16, - 49 ) - + CAST ( 8 AS INTEGER ) ) ) * 94 AS col2
----
5347

query II rowsort
SELECT ALL 10 + + - 59 AS col0, 74 AS col1
----
-49
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT + COUNT( * ) + - ( - + NULLIF ( - - 80, + 39 ) )
----
81

skipif mysql # not compatible
query I rowsort label-5212
SELECT + COUNT ( * ) + - ( - + NULLIF ( - - 80, + 39 ) )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5213
SELECT - ( - - NULLIF ( - 63, + CAST( NULL AS SIGNED ) + + 68 * - 96 - + 66 + + 21 ) ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-5213
SELECT - ( - - NULLIF ( - 63, + CAST ( NULL AS INTEGER ) + + 68 * - 96 - + 66 + + 21 ) ) AS col2
----
63

query I rowsort
SELECT DISTINCT COALESCE ( + 35, 88, 42 ) + + 46 + + 16 AS col1
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5215
SELECT ALL - 19 + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL - 19 + + CAST ( NULL AS REAL ) AS col0
----
NULL

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

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

query I rowsort
SELECT - 25 + + - 71
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5219
SELECT 12 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-5219
SELECT 12 / 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT - 99 + - 79 - - SUM( 25 )
----
-153

skipif mysql # not compatible
query I rowsort label-5220
SELECT - 99 + - 79 - - SUM ( 25 )
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5221
SELECT DISTINCT - - ( - - 73 ) * + 67 + - 18 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT - - ( - - 73 ) * + 67 + - 18 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

query I rowsort
SELECT 2 + + 89
----
91

query II rowsort
SELECT - 66 * - 64 + - - ( + 65 ) * 71 + - 22 - 41 AS col0, - 67 * ( + 65 )
----
8776
-4355

query I rowsort
SELECT ALL + 92 * + 47 + 28
----
4352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5226
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + SUM( DISTINCT + 18 ) / - + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + SUM ( DISTINCT + 18 ) / - + 69 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT 92 * COALESCE ( - MIN( + 75 ), + 72 ) AS col1
----
-6900

skipif mysql # not compatible
query I rowsort label-5227
SELECT 92 * COALESCE ( - MIN ( + 75 ), + 72 ) AS col1
----
-6900

onlyif mysql # aggregate syntax: 
query II rowsort label-5228
SELECT 28 * + + 45 AS col2, 14 + - + MAX( ALL 11 ) AS col1
----
1260
3

skipif mysql # not compatible
query II rowsort label-5228
SELECT 28 * + + 45 AS col2, 14 + - + MAX ( ALL 11 ) AS col1
----
1260
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5229
SELECT - COALESCE ( - 51, - 54, 28 DIV + + 92 ) * - 78 + + 14 AS col0
----
-3964

skipif mysql # not compatible
query I rowsort label-5229
SELECT - COALESCE ( - 51, - 54, 28 / + + 92 ) * - 78 + + 14 AS col0
----
-3964

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5231
SELECT ALL + 9 * + 23 * + 39, ( + COUNT( * ) ) DIV + 54 AS col0
----
8073
0

skipif mysql # not compatible
query II rowsort label-5231
SELECT ALL + 9 * + 23 * + 39, ( + COUNT ( * ) ) / + 54 AS col0
----
8073
0

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5234
SELECT ALL + CAST( NULL AS SIGNED ) * + ( - 71 ) / + + NULLIF ( + 48, COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL + CAST ( NULL AS INTEGER ) * + ( - 71 ) / + + NULLIF ( + 48, COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5235
SELECT MAX( DISTINCT + - 4 ), + 24 AS col2
----
-4
24

skipif mysql # not compatible
query II rowsort label-5235
SELECT MAX ( DISTINCT + - 4 ), + 24 AS col2
----
-4
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT CASE - + CASE - 19 WHEN + 47 * + 81 * COUNT( * ) / - - 9 THEN - 1 + - 31 ELSE NULL END WHEN - ( 77 ) THEN + 96 + + + 28 WHEN - - 42 THEN + 52 + - 16 / + 68 END / + 68 / + 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5237
SELECT CASE - + CASE - 19 WHEN + 47 * + 81 * COUNT ( * ) / - - 9 THEN - 1 + - 31 ELSE NULL END WHEN - ( 77 ) THEN + 96 + + + 28 WHEN - - 42 THEN + 52 + - 16 / + 68 END / + 68 / + 23 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT ALL + 84 + - 54 * SUM( DISTINCT 3 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL + 84 + - 54 * SUM ( DISTINCT 3 ) AS col2
----
-78

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

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL - COUNT ( * ) + + 17 * - COUNT ( * ) AS col0
----
-18

query I rowsort
SELECT + + 3 * - 90 AS col0
----
-270

query II rowsort
SELECT DISTINCT + ( 49 ) * - NULLIF ( - + 95, + 70 / - - 12 + + + 42 ), - 32 + + 19 + - ( - 85 ) * - 31 AS col2
----
4655
-2648

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

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

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

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

query I rowsort
SELECT - + NULLIF ( - 36, - - 25 * AVG ( DISTINCT + ( + - 67 ) ) * - 93 * + - 8 ) col0
----
36

query I rowsort
SELECT ALL + 48 + - 28 * 52 AS col1
----
-1408

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5246
SELECT + 0 + + 8 - - + 89 - + 29 + - 35 * 21 DIV COUNT( 76 ) DIV COUNT( * ) - + 68 AS col1, 77 AS col2
----
-735
77

skipif mysql # not compatible
query II rowsort label-5246
SELECT + 0 + + 8 - - + 89 - + 29 + - 35 * 21 / COUNT ( 76 ) / COUNT ( * ) - + 68 AS col1, 77 AS col2
----
-735
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT + ( + MIN( DISTINCT 6 ) ) + + 29
----
35

skipif mysql # not compatible
query I rowsort label-5248
SELECT + ( + MIN ( DISTINCT 6 ) ) + + 29
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5249
SELECT - 97 * + CAST( 34 AS SIGNED )
----
-3298

skipif mysql # not compatible
query I rowsort label-5249
SELECT - 97 * + CAST ( 34 AS INTEGER )
----
-3298

query I rowsort
SELECT + + 2 * + 38
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT ALL + NULLIF ( + 91, 1 * - 22 + 30 ) - + + COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL + NULLIF ( + 91, 1 * - 22 + 30 ) - + + COUNT ( * ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT + + MAX( ALL + + ( - 8 ) ) - 51
----
-59

skipif mysql # not compatible
query I rowsort label-5252
SELECT + + MAX ( ALL + + ( - 8 ) ) - 51
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5253
SELECT + - CAST( - NULLIF ( + COUNT( DISTINCT - - 21 ), + + 10 DIV - 64 ) AS SIGNED ) + COUNT( * ) - - + COUNT( * ) + - 40 DIV 30 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5253
SELECT + - CAST ( - NULLIF ( + COUNT ( DISTINCT - - 21 ), + + 10 / - 64 ) AS INTEGER ) + COUNT ( * ) - - + COUNT ( * ) + - 40 / 30 AS col2
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT ALL ( + - COUNT( * ) ) * + + 69 + + COALESCE ( + 70, + 76, + + COALESCE ( + - CASE 46 WHEN - + COUNT( * ) + - 71 THEN NULL WHEN MIN( DISTINCT + ( + - ( + 53 ) ) ) THEN - 4 WHEN + + 62 THEN NULL END, + 84 ) * + + 59 - + MAX( + 13 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL ( + - COUNT ( * ) ) * + + 69 + + COALESCE ( + 70, + 76, + + COALESCE ( + - CASE 46 WHEN - + COUNT ( * ) + - 71 THEN NULL WHEN MIN ( DISTINCT + ( + - ( + 53 ) ) ) THEN - 4 WHEN + + 62 THEN NULL END, + 84 ) * + + 59 - + MAX ( + 13 ) )
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5257
SELECT ALL - 86 * - ( CAST( + 23 AS SIGNED ) ) AS col2
----
1978

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL - 86 * - ( CAST ( + 23 AS INTEGER ) ) AS col2
----
1978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5258
SELECT + 19 DIV + COUNT( 44 ) AS col1, 28 + - 88 - + CAST( NULL AS SIGNED )
----
19
NULL

skipif mysql # not compatible
query II rowsort label-5258
SELECT + 19 / + COUNT ( 44 ) AS col1, 28 + - 88 - + CAST ( NULL AS INTEGER )
----
19
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5260
SELECT ALL - 90 * - 61 + CAST( NULL AS SIGNED ) + - - 89 AS col0, + 92
----
NULL
92

skipif mysql # not compatible
query II rowsort label-5260
SELECT ALL - 90 * - 61 + CAST ( NULL AS INTEGER ) + - - 89 AS col0, + 92
----
NULL
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT DISTINCT MIN( 3 ) * 2 + + 57 * - + NULLIF ( + 9, + COUNT( * ) * 73 * - + 57 * + MAX( + + 21 ) )
----
-507

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT MIN ( 3 ) * 2 + + 57 * - + NULLIF ( + 9, + COUNT ( * ) * 73 * - + 57 * + MAX ( + + 21 ) )
----
-507

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT ALL + MIN( + 37 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL + MIN ( + 37 ) AS col0
----
37

query II rowsort
SELECT DISTINCT + 85, - 5 * - 30 AS col2
----
85
150

query I rowsort
SELECT NULLIF ( - - 27, - 60 )
----
27

query I rowsort
SELECT ALL - 63 * 19 + - 52
----
-1249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5266
SELECT - 53 + + - NULLIF ( + + 83, + 14 ) - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5266
SELECT - 53 + + - NULLIF ( + + 83, + 14 ) - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT NULLIF ( - - 0, + - 40 + - 72 + + + 97 )
----
0

query I rowsort
SELECT - 57 * 59 + 67 AS col2
----
-3296

query I rowsort
SELECT - ( - + 34 ) * 89 * + 8 * 55
----
1331440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5270
SELECT 32 * + 35 + + ( - - CAST( NULL AS SIGNED ) ) + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5270
SELECT 32 * + 35 + + ( - - CAST ( NULL AS INTEGER ) ) + + 8
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5271
SELECT ALL - COUNT( * ) * + COUNT( * ) - 56 * 90 DIV + + 50 + - 41 + - 17 AS col1
----
-159

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL - COUNT ( * ) * + COUNT ( * ) - 56 * 90 / + + 50 + - 41 + - 17 AS col1
----
-159

query I rowsort
SELECT - 18 + + 96
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT ALL + 1 * - - SUM( + 11 ) * - CASE + 67 WHEN - - 94 THEN + ( + + 52 ) + 19 WHEN - 41 * 75 THEN NULL ELSE NULL END * + + ( + 45 ) + - - 78 + - 91 + + - 60 + + 93 / + 23 + - 71 * + - 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL + 1 * - - SUM ( + 11 ) * - CASE + 67 WHEN - - 94 THEN + ( + + 52 ) + 19 WHEN - 41 * 75 THEN NULL ELSE NULL END * + + ( + 45 ) + - - 78 + - 91 + + - 60 + + 93 / + 23 + - 71 * + - 54 AS col1
----
NULL

query II rowsort
SELECT ALL + - 62 AS col2, - 61
----
-62
-61

query I rowsort
SELECT + + 92 * 17 + + 68
----
1632

query I rowsort
SELECT DISTINCT 16 * 26 - + 45
----
371

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT + + COUNT( * ) + + - 19 * 66
----
-1253

skipif mysql # not compatible
query I rowsort label-5277
SELECT + + COUNT ( * ) + + - 19 * 66
----
-1253

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

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

query I rowsort
SELECT - - 31 * - + 52 AS col1
----
-1612

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

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL + COUNT ( DISTINCT 76 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL - ( + 58 ) * + 99 + - + 40 * + SUM( - 41 ) + 77 * + - COUNT( * )
----
-4179

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL - ( + 58 ) * + 99 + - + 40 * + SUM ( - 41 ) + 77 * + - COUNT ( * )
----
-4179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5282
SELECT + 48 + + - 50 DIV - MAX( ALL - 30 ) col0
----
47

skipif mysql # not compatible
query I rowsort label-5282
SELECT + 48 + + - 50 / - MAX ( ALL - 30 ) col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5283
SELECT ALL - 76 DIV + - 2
----
38

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL - 76 / + - 2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT + 57 * + + NULLIF ( 99, COUNT( * ) ) + + - 52 + + 76
----
5667

skipif mysql # not compatible
query I rowsort label-5284
SELECT + 57 * + + NULLIF ( 99, COUNT ( * ) ) + + - 52 + + 76
----
5667

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT + CASE + 17 WHEN - - ( - + 15 ) THEN NULL ELSE 12 + 14 + COUNT( * ) END + + 26 + ( - 23 )
----
30

skipif mysql # not compatible
query I rowsort label-5285
SELECT + CASE + 17 WHEN - - ( - + 15 ) THEN NULL ELSE 12 + 14 + COUNT ( * ) END + + 26 + ( - 23 )
----
30

query I rowsort
SELECT + 70 * + + 90 * + - 58 + - 91 * - 20 + + - 35 * + 28 AS col2
----
-364560

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT - MIN( DISTINCT - + 24 ) + - MIN( ALL 93 )
----
-69

skipif mysql # not compatible
query I rowsort label-5287
SELECT - MIN ( DISTINCT - + 24 ) + - MIN ( ALL 93 )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5288
SELECT + COUNT( * ) + - 19 + - - 66 * - + ( - 6 ) * - CAST( - - 55 AS SIGNED )
----
-21798

skipif mysql # not compatible
query I rowsort label-5288
SELECT + COUNT ( * ) + - 19 + - - 66 * - + ( - 6 ) * - CAST ( - - 55 AS INTEGER )
----
-21798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5289
SELECT + COUNT( * ) * CASE - + 87 WHEN 73 + + 41 THEN NULL WHEN 85 THEN 42 * 50 * + CAST( - - 51 AS SIGNED ) * 90 + - 24 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5289
SELECT + COUNT ( * ) * CASE - + 87 WHEN 73 + + 41 THEN NULL WHEN 85 THEN 42 * 50 * + CAST ( - - 51 AS INTEGER ) * 90 + - 24 ELSE NULL END
----
NULL

query I rowsort
SELECT + 7 + 6 * + 10
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-5291
SELECT - ( - - 28 ) AS col2, 35 + + COUNT( * ) col1
----
-28
36

skipif mysql # not compatible
query II rowsort label-5291
SELECT - ( - - 28 ) AS col2, 35 + + COUNT ( * ) col1
----
-28
36

query II rowsort
SELECT ALL 7 + + 63, 0 AS col1
----
70
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5293
SELECT DISTINCT - 68 / + 99 * + CAST( NULL AS DECIMAL ) * 62 + - - 69 * + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT - 68 / + 99 * + CAST ( NULL AS REAL ) * 62 + - - 69 * + 31 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5294
SELECT + 77 * 29 col1, NULLIF ( COUNT( * ), 22 + - 31 ) AS col1
----
2233
1

skipif mysql # not compatible
query II rowsort label-5294
SELECT + 77 * 29 col1, NULLIF ( COUNT ( * ), 22 + - 31 ) AS col1
----
2233
1

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

query I rowsort
SELECT 49 * - 99
----
-4851

onlyif mysql # DIV for integer division: 
query I rowsort label-5297
SELECT - 2 DIV - - ( - 24 )
----
0

skipif mysql # not compatible
query I rowsort label-5297
SELECT - 2 / - - ( - 24 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5298
SELECT ALL + - 6 - + ( - 30 ) DIV + - 41 + 75 + - + COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL + - 6 - + ( - 30 ) / + - 41 + 75 + - + COUNT ( * ) AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5299
SELECT + CASE - + 11 WHEN - CAST( NULL AS DECIMAL ) + - - COUNT( * ) THEN - 62 / - - 24 WHEN + COUNT( * ) * - - CAST( NULL AS SIGNED ) + + 44 * + 8 * - + 46 + - AVG ( DISTINCT + + 34 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5299
SELECT + CASE - + 11 WHEN - CAST ( NULL AS REAL ) + - - COUNT ( * ) THEN - 62 / - - 24 WHEN + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + + 44 * + 8 * - + 46 + - AVG ( DISTINCT + + 34 ) THEN NULL END
----
NULL

query I rowsort
SELECT 49 * - 88
----
-4312

query I rowsort
SELECT DISTINCT - + 63 * + 15 - ( + + 96 )
----
-1041

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT + 9 * 14 * COUNT( * )
----
126

skipif mysql # not compatible
query I rowsort label-5302
SELECT + 9 * 14 * COUNT ( * )
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT DISTINCT - 47 * + - ( COUNT( * ) ) * + 16 - 51
----
701

skipif mysql # not compatible
query I rowsort label-5303
SELECT DISTINCT - 47 * + - ( COUNT ( * ) ) * + 16 - 51
----
701

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT CASE - - 59 WHEN + 98 * - 58 * 40 + 56 THEN COALESCE ( 30, + 39 ) / + - ( + COUNT( + 98 ) ) END * + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5305
SELECT CASE - - 59 WHEN + 98 * - 58 * 40 + 56 THEN COALESCE ( 30, + 39 ) / + - ( + COUNT ( + 98 ) ) END * + 29 AS col1
----
NULL

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

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

query I rowsort
SELECT ( 88 ) + + - 89 + 36 AS col1
----
35

query II rowsort
SELECT + 12 + - 38 + 46 * + 27, 10 AS col1
----
1216
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5309
SELECT 8 DIV 20 * + 77 * - - 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5309
SELECT 8 / 20 * + 77 * - - 79 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT 44 + + 78 - - - COALESCE ( + MIN( ALL 77 ), + + 65 + - 78 )
----
45

skipif mysql # not compatible
query I rowsort label-5310
SELECT 44 + + 78 - - - COALESCE ( + MIN ( ALL 77 ), + + 65 + - 78 )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5311
SELECT DISTINCT SUM( ALL + 88 ) / + - 34 + + 82 + + - 67 - - CASE - 9 WHEN + CAST( 44 AS SIGNED ) - - - 83 THEN 81 * - 37 + + COUNT( CAST( NULL AS SIGNED ) ) * - 14 END * SUM( ALL - - 83 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT SUM ( ALL + 88 ) / + - 34 + + 82 + + - 67 - - CASE - 9 WHEN + CAST ( 44 AS INTEGER ) - - - 83 THEN 81 * - 37 + + COUNT ( CAST ( NULL AS INTEGER ) ) * - 14 END * SUM ( ALL - - 83 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 41 + - 47 * - - 91 * 1
----
-4236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5313
SELECT 34 DIV + MAX( - 52 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5313
SELECT 34 / + MAX ( - 52 ) AS col1
----
0

query I rowsort
SELECT COALESCE ( 50, 5, + ( + 77 ) ) + + 42 * - - 60 AS col0
----
2570

onlyif mysql # DIV for integer division: 
query I rowsort label-5315
SELECT DISTINCT 1 + + 72 DIV 84 + + 45
----
46

skipif mysql # not compatible
query I rowsort label-5315
SELECT DISTINCT 1 + + 72 / 84 + + 45
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5316
SELECT ALL + ( COALESCE ( - - CAST( NULL AS SIGNED ), - 50 ) ) + - 29
----
-79

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL + ( COALESCE ( - - CAST ( NULL AS INTEGER ), - 50 ) ) + - 29
----
-79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT 27 + + ( - MIN( - 57 ) ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-5318
SELECT 27 + + ( - MIN ( - 57 ) ) AS col1
----
84

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

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

query II rowsort
SELECT DISTINCT 65 + 17 + - 28 AS col1, 23
----
54
23

query II rowsort
SELECT DISTINCT - 20 AS col2, + COALESCE ( - 33, + 4, - 80 + + + 23 )
----
-20
-33

query I rowsort
SELECT DISTINCT 52 - - - 32
----
20

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

skipif mysql # not compatible
query I rowsort label-5323
SELECT COUNT ( * ) / - + 19 + 82 AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5324
SELECT + - CASE + 40 WHEN - ( + SUM( DISTINCT + 78 ) ) * + - 76 THEN COALESCE ( + 55, - 7 + AVG ( CAST( NULL AS SIGNED ) ), - + CASE + 47 WHEN SUM( DISTINCT - + 97 ) * 10 + - 1 THEN NULL WHEN + 20 THEN NULL ELSE - + ( + 83 ) * NULLIF ( + CASE - 88 WHEN - - 53 THEN + 19 * + 29 + 48 + - 80 END, + 55 * + 64 + - + 48 - - - 65 ) + + + 24 END ) / + 60 + + + MIN( ALL + 41 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT + - CASE + 40 WHEN - ( + SUM ( DISTINCT + 78 ) ) * + - 76 THEN COALESCE ( + 55, - 7 + AVG ( CAST ( NULL AS INTEGER ) ), - + CASE + 47 WHEN SUM ( DISTINCT - + 97 ) * 10 + - 1 THEN NULL WHEN + 20 THEN NULL ELSE - + ( + 83 ) * NULLIF ( + CASE - 88 WHEN - - 53 THEN + 19 * + 29 + 48 + - 80 END, + 55 * + 64 + - + 48 - - - 65 ) + + + 24 END ) / + 60 + + + MIN ( ALL + 41 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5325
SELECT ALL - + CAST( 81 AS SIGNED ) col0
----
-81

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL - + CAST ( 81 AS INTEGER ) col0
----
-81

query I rowsort
SELECT + 27 * - 45 AS col1
----
-1215

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT - 36 - COALESCE ( + 95, + + 82 + - SUM( DISTINCT + 10 ) * + + COUNT( * ) ) * + + COUNT( * ) AS col0
----
-131

skipif mysql # not compatible
query I rowsort label-5327
SELECT - 36 - COALESCE ( + 95, + + 82 + - SUM ( DISTINCT + 10 ) * + + COUNT ( * ) ) * + + COUNT ( * ) AS col0
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5328
SELECT ALL COALESCE ( + COUNT( * ), ( - + CASE - 79 WHEN 65 + + 93 * - 83 THEN 86 + - + 0 * + 44 END ) + 79 * + 65 * - - 74, - COUNT( * ) ) - - - 45 + CAST( - - 38 AS SIGNED ) AS col2, 7 * + 99 + + 97 AS col1
----
-6
790

skipif mysql # not compatible
query II rowsort label-5328
SELECT ALL COALESCE ( + COUNT ( * ), ( - + CASE - 79 WHEN 65 + + 93 * - 83 THEN 86 + - + 0 * + 44 END ) + 79 * + 65 * - - 74, - COUNT ( * ) ) - - - 45 + CAST ( - - 38 AS INTEGER ) AS col2, 7 * + 99 + + 97 AS col1
----
-6
790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5329
SELECT ALL - + CAST( NULL AS SIGNED ) AS col2, MAX( 85 ) - 50 * - + 73 AS col1
----
NULL
3735

skipif mysql # not compatible
query II rowsort label-5329
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col2, MAX ( 85 ) - 50 * - + 73 AS col1
----
NULL
3735

query I rowsort
SELECT 63 * + + 19
----
1197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5331
SELECT + 90 * 59 * - ( - + COUNT( * ) ) + + 98 * CAST( NULL AS SIGNED ) + + + COUNT( DISTINCT - 44 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT + 90 * 59 * - ( - + COUNT ( * ) ) + + 98 * CAST ( NULL AS INTEGER ) + + + COUNT ( DISTINCT - 44 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT ALL + COUNT( * ) * + 21 col1
----
21

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL + COUNT ( * ) * + 21 col1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5333
SELECT DISTINCT 95 * - COALESCE ( - ( + CAST( NULL AS SIGNED ) ), - 68 ) + - CAST( - 92 AS SIGNED ) * + 3
----
6736

skipif mysql # not compatible
query I rowsort label-5333
SELECT DISTINCT 95 * - COALESCE ( - ( + CAST ( NULL AS INTEGER ) ), - 68 ) + - CAST ( - 92 AS INTEGER ) * + 3
----
6736

query I rowsort
SELECT ALL - 84 + - + 44
----
-128

query I rowsort
SELECT - 66 + + 91
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT DISTINCT - MIN( 69 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT - MIN ( 69 ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT - 10 * - 88 * - 7 * + SUM( DISTINCT + - 13 ) * - - 16 * - 58
----
-74314240

skipif mysql # not compatible
query I rowsort label-5337
SELECT - 10 * - 88 * - 7 * + SUM ( DISTINCT + - 13 ) * - - 16 * - 58
----
-74314240

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

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

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

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

query I rowsort
SELECT 37 * - - 9
----
333

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5343
SELECT ALL - CAST( 43 AS SIGNED ) + + 47 * 28 DIV 71
----
-25

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL - CAST ( 43 AS INTEGER ) + + 47 * 28 / 71
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5344
SELECT - CASE - - 40 WHEN CAST( + - 57 AS SIGNED ) THEN NULL ELSE + + ( 33 ) + + 31 + - 37 + + + COALESCE ( COALESCE ( - COUNT( * ), + 18, 40 + + - 76 + - + 40 * + CAST( 50 AS SIGNED ) * 16 DIV + 42 ), - 94, + - 20 + 55 ) + + 50 + - 88 + + - ( + 36 ) END AS col1
----
48

skipif mysql # not compatible
query I rowsort label-5344
SELECT - CASE - - 40 WHEN CAST ( + - 57 AS INTEGER ) THEN NULL ELSE + + ( 33 ) + + 31 + - 37 + + + COALESCE ( COALESCE ( - COUNT ( * ), + 18, 40 + + - 76 + - + 40 * + CAST ( 50 AS INTEGER ) * 16 / + 42 ), - 94, + - 20 + 55 ) + + 50 + - 88 + + - ( + 36 ) END AS col1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5345
SELECT 24 + + CASE + + 46 WHEN - 0 + 92 * 90 THEN NULL WHEN - CAST( - NULLIF ( - 38, + 73 + 4 + 42 ) AS SIGNED ) THEN + 47 END * + + 25 / + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT 24 + + CASE + + 46 WHEN - 0 + 92 * 90 THEN NULL WHEN - CAST ( - NULLIF ( - 38, + 73 + 4 + 42 ) AS INTEGER ) THEN + 47 END * + + 25 / + 12
----
NULL

query II rowsort
SELECT - 36 * 8 AS col2, + 86 * + 53 * - 99
----
-288
-451242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5347
SELECT - COUNT( * ) * - - 36 / CASE + 10 WHEN + - 45 THEN - COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN - 41 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5347
SELECT - COUNT ( * ) * - - 36 / CASE + 10 WHEN + - 45 THEN - COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN - 41 END AS col0
----
NULL

query II rowsort
SELECT - 53 + + 28 AS col0, - 98 AS col2
----
-25
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT ALL NULLIF ( - ( COUNT( * ) ), + SUM( ALL 57 ) / 37 - + - 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-5349
SELECT ALL NULLIF ( - ( COUNT ( * ) ), + SUM ( ALL 57 ) / 37 - + - 8 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5350
SELECT ALL + CAST( + - 94 AS DECIMAL ) - MIN( + 8 ) / + 78 * + + 77 + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL + CAST ( + - 94 AS REAL ) - MIN ( + 8 ) / + 78 * + + 77 + - CAST ( NULL AS INTEGER ) col0
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5353
SELECT - COUNT( * ) + - COUNT( * ) DIV + 89 col0
----
-1

skipif mysql # not compatible
query I rowsort label-5353
SELECT - COUNT ( * ) + - COUNT ( * ) / + 89 col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5354
SELECT DISTINCT + 47 - 67 DIV + + 94 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT + 47 - 67 / + + 94 AS col2
----
47

query I rowsort
SELECT - 0 + - ( 76 )
----
-76

query I rowsort
SELECT - ( + - 11 ) + - + 22 + 83 + - 6 AS col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5357
SELECT ALL + 20 DIV 40 * 82
----
0

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL + 20 / 40 * 82
----
0

query I rowsort
SELECT - 46 * 59
----
-2714

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT + 25 * - COUNT( * ) + 10 * 41
----
385

skipif mysql # not compatible
query I rowsort label-5359
SELECT + 25 * - COUNT ( * ) + 10 * 41
----
385

query I rowsort
SELECT ALL 95 * + 76 AS col2
----
7220

query II rowsort
SELECT DISTINCT + 60, 15 AS col2
----
60
15

query II rowsort
SELECT - 34 AS col1, - 95 AS col1
----
-34
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5363
SELECT ALL + - CASE - - CAST( NULL AS SIGNED ) WHEN + - 3 THEN + + CAST( NULL AS DECIMAL ) * - CAST( - + COUNT( * ) AS SIGNED ) / + 79 * + + 16 * CASE - 70 WHEN + + 53 + 66 THEN - COUNT( * ) ELSE NULL END + 22 WHEN 12 THEN NULL ELSE NULL END * - ( + 54 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL + - CASE - - CAST ( NULL AS INTEGER ) WHEN + - 3 THEN + + CAST ( NULL AS REAL ) * - CAST ( - + COUNT ( * ) AS INTEGER ) / + 79 * + + 16 * CASE - 70 WHEN + + 53 + 66 THEN - COUNT ( * ) ELSE NULL END + 22 WHEN 12 THEN NULL ELSE NULL END * - ( + 54 ) AS col1
----
NULL

query I rowsort
SELECT ( + - COALESCE ( - 62, 89 * + 61 ) )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT - COUNT( ALL - COALESCE ( + 97, 76, + 60 ) ) - NULLIF ( - + 69, - 39 * 74 )
----
68

skipif mysql # not compatible
query I rowsort label-5365
SELECT - COUNT ( ALL - COALESCE ( + 97, 76, + 60 ) ) - NULLIF ( - + 69, - 39 * 74 )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5366
SELECT ALL 6 DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL 6 / + 53
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5368
SELECT + 68 AS col2, - NULLIF ( + - CAST( NULL AS SIGNED ), - + 90 )
----
68
NULL

skipif mysql # not compatible
query II rowsort label-5368
SELECT + 68 AS col2, - NULLIF ( + - CAST ( NULL AS INTEGER ), - + 90 )
----
68
NULL

query I rowsort
SELECT + + 67 - + 11 - + - 96 * + - 82
----
-7816

query II rowsort
SELECT ALL 3, 42 * - + 54 AS col2
----
3
-2268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5371
SELECT DISTINCT CASE + 74 WHEN + COALESCE ( CAST( NULL AS SIGNED ), - - 14, + - 76 ) * - + 89 THEN - 72 + + AVG ( DISTINCT ( - 64 ) ) * + + ( - + 67 ) - - - CAST( + + 83 AS SIGNED ) * - 82 + COALESCE ( + 90, + 71 + + - COUNT( * ) ) ELSE NULL END * + 72 + + 2 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT CASE + 74 WHEN + COALESCE ( CAST ( NULL AS INTEGER ), - - 14, + - 76 ) * - + 89 THEN - 72 + + AVG ( DISTINCT ( - 64 ) ) * + + ( - + 67 ) - - - CAST ( + + 83 AS INTEGER ) * - 82 + COALESCE ( + 90, + 71 + + - COUNT ( * ) ) ELSE NULL END * + 72 + + 2 col0
----
NULL

query II rowsort
SELECT - ( + 25 ) AS col2, 57
----
-25
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT DISTINCT ( - 63 ) + - COUNT( * ) + - 99
----
-163

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT ( - 63 ) + - COUNT ( * ) + - 99
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT ALL COUNT( - 11 ) + + 64 + - COUNT( * ) + - - ( - 81 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL COUNT ( - 11 ) + + 64 + - COUNT ( * ) + - - ( - 81 ) AS col1
----
-17

query I rowsort
SELECT + 36 + + 29
----
65

onlyif mysql # DIV for integer division: 
query II rowsort label-5376
SELECT + 13 + 31 AS col2, 39 * + 75 DIV - 74 AS col0
----
44
-39

skipif mysql # not compatible
query II rowsort label-5376
SELECT + 13 + 31 AS col2, 39 * + 75 / - 74 AS col0
----
44
-39

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

query I rowsort
SELECT - COALESCE ( + + 2, + 42 ) + - 42 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-5379
SELECT - 59 + - COUNT( * ), - 47 AS col0
----
-60
-47

skipif mysql # not compatible
query II rowsort label-5379
SELECT - 59 + - COUNT ( * ), - 47 AS col0
----
-60
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-5380
SELECT ALL + 34 * COUNT( * ) col0, - 97 col1
----
34
-97

skipif mysql # not compatible
query II rowsort label-5380
SELECT ALL + 34 * COUNT ( * ) col0, - 97 col1
----
34
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-5381
SELECT + COUNT( * ) * - ( + 84 ) AS col1, + AVG ( DISTINCT 89 ) + + + 93 + - 27 * - + CASE - + 79 WHEN COUNT( * ) * + - COUNT( * ) / + 9 + - COUNT( - 47 ) THEN 8 * - + COUNT( * ) * + - 94 * 44 END * + - 57 * + 5 AS col0
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-5381
SELECT + COUNT ( * ) * - ( + 84 ) AS col1, + AVG ( DISTINCT 89 ) + + + 93 + - 27 * - + CASE - + 79 WHEN COUNT ( * ) * + - COUNT ( * ) / + 9 + - COUNT ( - 47 ) THEN 8 * - + COUNT ( * ) * + - 94 * 44 END * + - 57 * + 5 AS col0
----
-84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT - - COUNT( * ) * + - 99 + 69 + - 90 col2
----
-120

skipif mysql # not compatible
query I rowsort label-5382
SELECT - - COUNT ( * ) * + - 99 + 69 + - 90 col2
----
-120

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

skipif mysql # not compatible
query I rowsort label-5383
SELECT - - MAX ( DISTINCT + 45 ) * + + 11 AS col2
----
495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5384
SELECT - SUM( - 30 ) - - - 52 * 16 - - 77 - + 89 / + CASE 7 WHEN + CASE 31 WHEN + AVG ( ALL + 20 ) * 48 THEN - + 27 WHEN - 97 * + 14 / + + ( - 84 ) THEN NULL ELSE + + 8 END THEN CASE 86 WHEN 85 THEN - 82 ELSE NULL END + + MAX( ALL + - 48 ) ELSE - CAST( NULL AS SIGNED ) * + 83 / + 60 - - - 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5384
SELECT - SUM ( - 30 ) - - - 52 * 16 - - 77 - + 89 / + CASE 7 WHEN + CASE 31 WHEN + AVG ( ALL + 20 ) * 48 THEN - + 27 WHEN - 97 * + 14 / + + ( - 84 ) THEN NULL ELSE + + 8 END THEN CASE 86 WHEN 85 THEN - 82 ELSE NULL END + + MAX ( ALL + - 48 ) ELSE - CAST ( NULL AS INTEGER ) * + 83 / + 60 - - - 12 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5385
SELECT DISTINCT 77 DIV + - 99 + COUNT( DISTINCT - 33 ) * 4 + + 87 * MIN( 73 )
----
6355

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT 77 / + - 99 + COUNT ( DISTINCT - 33 ) * 4 + + 87 * MIN ( 73 )
----
6355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5386
SELECT ALL + 47 DIV - 50 + - 94 + - 61 * + - COUNT( - ( 3 ) ) + + 59 - + ( 81 ) col1, + 5 * - 44 * - + 30 + + 43 * CAST( NULL AS SIGNED ) AS col1
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-5386
SELECT ALL + 47 / - 50 + - 94 + - 61 * + - COUNT ( - ( 3 ) ) + + 59 - + ( 81 ) col1, + 5 * - 44 * - + 30 + + 43 * CAST ( NULL AS INTEGER ) AS col1
----
-55
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5387
SELECT + 19 DIV - - 42 + 34 + 66 - - 78 * - + 51 + + 88
----
-3790

skipif mysql # not compatible
query I rowsort label-5387
SELECT + 19 / - - 42 + 34 + 66 - - 78 * - + 51 + + 88
----
-3790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5388
SELECT + COUNT( * ) DIV 17 + - - 80 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5388
SELECT + COUNT ( * ) / 17 + - - 80 AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5389
SELECT - + COUNT( * ) + + 6 + - CAST( + + ( + + 60 ) AS SIGNED ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5389
SELECT - + COUNT ( * ) + + 6 + - CAST ( + + ( + + 60 ) AS INTEGER ) AS col1
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-5390
SELECT - 23 * 4 - - + 97 DIV - - 11 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-5390
SELECT - 23 * 4 - - + 97 / - - 11 AS col0
----
-84

query I rowsort
SELECT + - 57 - - + 7 + - 28 * + 3 * 42 AS col1
----
-3578

query I rowsort
SELECT + ( - 51 ) * - - 13 + - 54
----
-717

query II rowsort
SELECT ALL + - 94 * 88 + ( + 7 ) + - 7 AS col0, 51 + - 24
----
-8272
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT + 1 + - ( - COALESCE ( + + 90, NULLIF ( + + 0, - 16 ) * + 63 ) ) + - 92 * COUNT( + 96 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5394
SELECT + 1 + - ( - COALESCE ( + + 90, NULLIF ( + + 0, - 16 ) * + 63 ) ) + - 92 * COUNT ( + 96 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5395
SELECT ALL + ( - - 61 ) AS col0, - 1 + - - 74 * MIN( - 76 )
----
61
-5625

skipif mysql # not compatible
query II rowsort label-5395
SELECT ALL + ( - - 61 ) AS col0, - 1 + - - 74 * MIN ( - 76 )
----
61
-5625

query I rowsort
SELECT DISTINCT - + 29 * 47 + - + 46 AS col2
----
-1409

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT - 19 * + ( - 71 ) + - COUNT( - - 35 ) AS col2
----
1348

skipif mysql # not compatible
query I rowsort label-5397
SELECT - 19 * + ( - 71 ) + - COUNT ( - - 35 ) AS col2
----
1348

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5398
SELECT ALL + 59 * + 68 + - - ( - - 13 ) + 99 DIV MAX( ALL + - 13 )
----
4018

skipif mysql # not compatible
query I rowsort label-5398
SELECT ALL + 59 * + 68 + - - ( - - 13 ) + 99 / MAX ( ALL + - 13 )
----
4018

onlyif mysql # DIV for integer division: 
query I rowsort label-5399
SELECT ALL 7 DIV + 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL 7 / + 45 AS col0
----
0

query I rowsort
SELECT NULLIF ( + + 70, 60 ) * + - 29
----
-2030

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT ALL 1 - + MAX( + 48 ) * - 52 AS col0
----
2497

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL 1 - + MAX ( + 48 ) * - 52 AS col0
----
2497

onlyif mysql # aggregate syntax: 
query II rowsort label-5402
SELECT - 52 AS col0, + 66 * + - COUNT( * ) + - - 5
----
-52
-61

skipif mysql # not compatible
query II rowsort label-5402
SELECT - 52 AS col0, + 66 * + - COUNT ( * ) + - - 5
----
-52
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5403
SELECT ALL 71 * - 90 * + 7 AS col1, - 75 * + 68 * - + CAST( NULL AS SIGNED ) col0
----
-44730
NULL

skipif mysql # not compatible
query II rowsort label-5403
SELECT ALL 71 * - 90 * + 7 AS col1, - 75 * + 68 * - + CAST ( NULL AS INTEGER ) col0
----
-44730
NULL

query II rowsort
SELECT ALL 8, 42 AS col2
----
8
42

query I rowsort
SELECT 68 + + 72 AS col2
----
140

query I rowsort
SELECT DISTINCT 6 * - 93
----
-558

onlyif mysql # DIV for integer division: 
query I rowsort label-5407
SELECT 52 DIV + 5 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-5407
SELECT 52 / + 5 AS col2
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5408
SELECT 87 DIV - + 98 * 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5408
SELECT 87 / - + 98 * 97 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5409
SELECT 58 + + 63 * + 42 col1, - COUNT( * ) * - 27 * - 46 * + - 48 - 67
----
2704
59549

skipif mysql # not compatible
query II rowsort label-5409
SELECT 58 + + 63 * + 42 col1, - COUNT ( * ) * - 27 * - 46 * + - 48 - 67
----
2704
59549

query II rowsort
SELECT DISTINCT 25, 68 + - + 12 AS col1
----
25
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT + 46 * CASE - NULLIF ( - 64, + + COALESCE ( - 79, - - COUNT( ALL + 88 ) ) * + + 4 ) WHEN + - ( COUNT( * ) ) THEN + 36 - + 31 * - 67 + - + 3 ELSE NULL END * ( - 96 ) * 29 + - + 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT + 46 * CASE - NULLIF ( - 64, + + COALESCE ( - 79, - - COUNT ( ALL + 88 ) ) * + + 4 ) WHEN + - ( COUNT ( * ) ) THEN + 36 - + 31 * - 67 + - + 3 ELSE NULL END * ( - 96 ) * 29 + - + 82 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT - 55 + - - COUNT ( * ) AS col2
----
-54

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

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

query I rowsort
SELECT ALL - 21 + + COALESCE ( - - 93, + 93 ) + + 70 AS col0
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT 8 * + COUNT( * ) + COUNT( * ) + 63 col1
----
72

skipif mysql # not compatible
query I rowsort label-5415
SELECT 8 * + COUNT ( * ) + COUNT ( * ) + 63 col1
----
72

query I rowsort
SELECT DISTINCT + + 63 * + 16 AS col2
----
1008

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5417
SELECT - - CASE - + CAST( NULL AS DECIMAL ) WHEN - + 17 + + - 50 * - + COUNT( * ) THEN - - ( + 28 ) ELSE - 56 * - 25 END * - 29 + ( - 80 ) AS col1
----
-40680

skipif mysql # not compatible
query I rowsort label-5417
SELECT - - CASE - + CAST ( NULL AS REAL ) WHEN - + 17 + + - 50 * - + COUNT ( * ) THEN - - ( + 28 ) ELSE - 56 * - 25 END * - 29 + ( - 80 ) AS col1
----
-40680

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

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL - - CAST ( NULL AS INTEGER ) * - 10
----
NULL

query I rowsort
SELECT ALL + 6 + + 53 - 66
----
-7

query II rowsort
SELECT 29 AS col0, - 30
----
29
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5421
SELECT ALL - - 29 AS col0, CAST( COUNT( * ) AS SIGNED )
----
29
1

skipif mysql # not compatible
query II rowsort label-5421
SELECT ALL - - 29 AS col0, CAST ( COUNT ( * ) AS INTEGER )
----
29
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT 56 * + + COALESCE ( + - 92, + COALESCE ( COUNT( 29 ), 91, - 46 * + 24 * + COUNT( * ) * - + COALESCE ( 93, 85 ) * + - 16 ) * + COUNT( * ), 93 ) * + 65 AS col0
----
-334880

skipif mysql # not compatible
query I rowsort label-5422
SELECT 56 * + + COALESCE ( + - 92, + COALESCE ( COUNT ( 29 ), 91, - 46 * + 24 * + COUNT ( * ) * - + COALESCE ( 93, 85 ) * + - 16 ) * + COUNT ( * ), 93 ) * + 65 AS col0
----
-334880

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT ALL + - COUNT( * ) + - 0 * + + 30 * + - 93 * 61 * 99 * - + 40
----
-1

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL + - COUNT ( * ) + - 0 * + + 30 * + - 93 * 61 * 99 * - + 40
----
-1

query I rowsort
SELECT + 51 - - NULLIF ( + 69, 31 ) + 54 + - 60 * + 94 * 85 * + 52 * + ( + ( - 24 ) ) AS col1
----
598291374

onlyif mysql # DIV for integer division: 
query I rowsort label-5425
SELECT + 21 * - 52 * - 57 DIV - 1
----
-62244

skipif mysql # not compatible
query I rowsort label-5425
SELECT + 21 * - 52 * - 57 / - 1
----
-62244

query I rowsort
SELECT DISTINCT - ( - 3 ) * + 49 AS col1
----
147

query II rowsort
SELECT DISTINCT + 51 * - 77, + 66 + 20 AS col1
----
-3927
86

query I rowsort
SELECT ALL 1 * 57
----
57

query I rowsort
SELECT ALL + 60 * 65
----
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT DISTINCT + SUM( ALL - - 54 ) * 28 * 65 AS col2
----
98280

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT + SUM ( ALL - - 54 ) * 28 * 65 AS col2
----
98280

query I rowsort
SELECT 78 * + - 7
----
-546

onlyif mysql # aggregate syntax: 
query II rowsort label-5432
SELECT ALL + 62 + + 37 AS col2, + COUNT( 15 ) * - + 96 * - 18 + - COUNT( * ) AS col1
----
99
1727

skipif mysql # not compatible
query II rowsort label-5432
SELECT ALL + 62 + + 37 AS col2, + COUNT ( 15 ) * - + 96 * - 18 + - COUNT ( * ) AS col1
----
99
1727

query I rowsort
SELECT ALL 87 * - - 19 col1
----
1653

onlyif mysql # DIV for integer division: 
query I rowsort label-5434
SELECT ALL - 98 DIV 25 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL - 98 / 25 AS col1
----
-3

query I rowsort
SELECT DISTINCT + 44 + 11
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5436
SELECT ALL - CAST( 75 AS SIGNED ) + - 64 AS col2
----
-139

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL - CAST ( 75 AS INTEGER ) + - 64 AS col2
----
-139

onlyif mysql # aggregate syntax: 
query II rowsort label-5437
SELECT CASE - 67 WHEN + 23 THEN NULL WHEN COUNT( * ) - COUNT( * ) / - - 34 THEN + 71 END AS col0, - 78 AS col0
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-5437
SELECT CASE - 67 WHEN + 23 THEN NULL WHEN COUNT ( * ) - COUNT ( * ) / - - 34 THEN + 71 END AS col0, - 78 AS col0
----
NULL
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-5438
SELECT ALL + 51 + - 28 col2, - COUNT( * )
----
23
-1

skipif mysql # not compatible
query II rowsort label-5438
SELECT ALL + 51 + - 28 col2, - COUNT ( * )
----
23
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5439
SELECT ALL + 92 * - + COUNT( * ) AS col0, COUNT( - 58 ) - 72 + - 22 + - COUNT( * ) AS col1
----
-92
-94

skipif mysql # not compatible
query II rowsort label-5439
SELECT ALL + 92 * - + COUNT ( * ) AS col0, COUNT ( - 58 ) - 72 + - 22 + - COUNT ( * ) AS col1
----
-92
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT 63 - - ( + COALESCE ( + 19, 64 - + 3 ) ) + MIN( + - 55 ) - + COUNT( * ) * 28 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5440
SELECT 63 - - ( + COALESCE ( + 19, 64 - + 3 ) ) + MIN ( + - 55 ) - + COUNT ( * ) * 28 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT - 20 + MIN( ALL + - 94 ) * - ( + ( NULLIF ( + + 95, - 46 ) ) )
----
8910

skipif mysql # not compatible
query I rowsort label-5441
SELECT - 20 + MIN ( ALL + - 94 ) * - ( + ( NULLIF ( + + 95, - 46 ) ) )
----
8910

query I rowsort
SELECT DISTINCT - 68 + - 83 AS col0
----
-151

query I rowsort
SELECT ALL 72 + - 16
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT DISTINCT - 60 * + 9 + + COUNT( * ) * - - 13 * 31
----
-137

skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT - 60 * + 9 + + COUNT ( * ) * - - 13 * 31
----
-137

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

skipif mysql # not compatible
query I rowsort label-5445
SELECT 80 * + - ( + + COUNT ( * ) ) + + + 14 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT MIN( - 9 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-5446
SELECT MIN ( - 9 ) AS col1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5447
SELECT - - ( - COUNT( * ) ) DIV + 5 + - 27 + - 80 + 68
----
-39

skipif mysql # not compatible
query I rowsort label-5447
SELECT - - ( - COUNT ( * ) ) / + 5 + - 27 + - 80 + 68
----
-39

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

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

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

query I rowsort
SELECT + 49 + + 20 + + 94 + + 71 + - - ( - 53 )
----
181

onlyif mysql # DIV for integer division: 
query I rowsort label-5451
SELECT 14 DIV + - 70 - + ( - - ( - 39 ) )
----
39

skipif mysql # not compatible
query I rowsort label-5451
SELECT 14 / + - 70 - + ( - - ( - 39 ) )
----
39

query I rowsort
SELECT ALL 36 * 62 - ( + 91 ) AS col2
----
2141

query II rowsort
SELECT DISTINCT + 78, - 49 AS col0
----
78
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT ALL MAX( + + 91 ) * 48 AS col0
----
4368

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL MAX ( + + 91 ) * 48 AS col0
----
4368

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5456
SELECT ALL - 74 DIV + 18
----
-4

skipif mysql # not compatible
query I rowsort label-5456
SELECT ALL - 74 / + 18
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT - MAX( DISTINCT + + 93 ) + 35 * 73 AS col0
----
2462

skipif mysql # not compatible
query I rowsort label-5457
SELECT - MAX ( DISTINCT + + 93 ) + 35 * 73 AS col0
----
2462

onlyif mysql # aggregate syntax: 
query II rowsort label-5458
SELECT ALL + 7 AS col2, COUNT( * ) * + CASE 41 WHEN - 77 + - 13 - 48 THEN 36 WHEN + 97 THEN NULL END + - + 23 + - 30 + + COUNT( * ) AS col2
----
7
NULL

skipif mysql # not compatible
query II rowsort label-5458
SELECT ALL + 7 AS col2, COUNT ( * ) * + CASE 41 WHEN - 77 + - 13 - 48 THEN 36 WHEN + 97 THEN NULL END + - + 23 + - 30 + + COUNT ( * ) AS col2
----
7
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5459
SELECT - MAX( - - 88 ) DIV - 92 * - + 7
----
0

skipif mysql # not compatible
query I rowsort label-5459
SELECT - MAX ( - - 88 ) / - 92 * - + 7
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5461
SELECT ALL + 75 + 64 DIV + 80 * 86
----
75

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL + 75 + 64 / + 80 * 86
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5462
SELECT - COUNT( * ) * 78 DIV + COALESCE ( COUNT( * ), 88 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-5462
SELECT - COUNT ( * ) * 78 / + COALESCE ( COUNT ( * ), 88 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT + 16 * - 56 + - COUNT( * ) col0
----
-897

skipif mysql # not compatible
query I rowsort label-5463
SELECT + 16 * - 56 + - COUNT ( * ) col0
----
-897

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

skipif mysql # not compatible
query I rowsort label-5464
SELECT - COUNT ( * ) + 69 AS col1
----
68

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5466
SELECT ALL - 30 + 10 - COUNT( * ) * + 23 + + - 7, - 15 AS col1
----
-50
-15

skipif mysql # not compatible
query II rowsort label-5466
SELECT ALL - 30 + 10 - COUNT ( * ) * + 23 + + - 7, - 15 AS col1
----
-50
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT DISTINCT - 84 * + NULLIF ( 75, + + COUNT( * ) + + SUM( ALL 75 ) ) AS col2
----
-6300

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT - 84 * + NULLIF ( 75, + + COUNT ( * ) + + SUM ( ALL 75 ) ) AS col2
----
-6300

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT ALL + 30 + - - 20 * - 97 + + + 1 + - CASE MAX( - 49 ) WHEN + 20 + + 94 THEN + ( + 60 ) WHEN - 78 - + 79 THEN NULL ELSE NULL END + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL + 30 + - - 20 * - 97 + + + 1 + - CASE MAX ( - 49 ) WHEN + 20 + + 94 THEN + ( + 60 ) WHEN - 78 - + 79 THEN NULL ELSE NULL END + 77 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT DISTINCT + 57 + + + ( SUM( DISTINCT - ( 90 ) ) ) + + 33 + + SUM( ALL - 88 ) * + NULLIF ( - COALESCE ( 60, 59 * + 16 + 99 ), 60 - - - 96 ) AS col0
----
5280

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT + 57 + + + ( SUM ( DISTINCT - ( 90 ) ) ) + + 33 + + SUM ( ALL - 88 ) * + NULLIF ( - COALESCE ( 60, 59 * + 16 + 99 ), 60 - - - 96 ) AS col0
----
5280

query I rowsort
SELECT ALL - 3 * + - 15 AS col2
----
45

query I rowsort
SELECT - 87 + 72 + + 1 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT - - COALESCE ( + + COALESCE ( + 17, + - 29, 53 ), COUNT( DISTINCT + - 59 ) ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5472
SELECT - - COALESCE ( + + COALESCE ( + 17, + - 29, 53 ), COUNT ( DISTINCT + - 59 ) ) AS col1
----
17

query I rowsort
SELECT COALESCE ( - 12, + 42 * 28 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT - 4 + COALESCE ( - 35, + SUM( 30 ), 93 * 56 * + 47 ) + 66
----
27

skipif mysql # not compatible
query I rowsort label-5474
SELECT - 4 + COALESCE ( - 35, + SUM ( 30 ), 93 * 56 * + 47 ) + 66
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT - - NULLIF ( - 5, + - 67 * - NULLIF ( - COUNT( * ), 88 * NULLIF ( + SUM( DISTINCT - 63 ), - 36 ) + - 66 ) ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-5475
SELECT - - NULLIF ( - 5, + - 67 * - NULLIF ( - COUNT ( * ), 88 * NULLIF ( + SUM ( DISTINCT - 63 ), - 36 ) + - 66 ) ) AS col1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5476
SELECT DISTINCT + 36 DIV - 44 + - MAX( - + 38 ) col0
----
38

skipif mysql # not compatible
query I rowsort label-5476
SELECT DISTINCT + 36 / - 44 + - MAX ( - + 38 ) col0
----
38

query I rowsort
SELECT ALL - 78 - + 79 AS col1
----
-157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5478
SELECT ALL + 20 * - - 40 + - CAST( 14 AS SIGNED ) + - + 28 + - 22 * - 26 * - + MIN( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL + 20 * - - 40 + - CAST ( 14 AS INTEGER ) + - + 28 + - 22 * - 26 * - + MIN ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + + ( - - 59 ) + - 31
----
28

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

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

query II rowsort
SELECT DISTINCT 46 * - + 56 - 93, + 84 AS col1
----
-2669
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT DISTINCT + + COUNT( ALL 11 )
----
1

skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT + + COUNT ( ALL 11 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5483
SELECT + 8 * + - 35 * ( - - MIN( DISTINCT + 61 ) ) + + 74 * 31 + - 61 / + - CAST( NULL AS SIGNED ) / + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-5483
SELECT + 8 * + - 35 * ( - - MIN ( DISTINCT + 61 ) ) + + 74 * 31 + - 61 / + - CAST ( NULL AS INTEGER ) / + + 15
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5484
SELECT + 49 DIV 86 + + 99
----
99

skipif mysql # not compatible
query I rowsort label-5484
SELECT + 49 / 86 + + 99
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-5485
SELECT + + 57 * + 33 * + 51 AS col2, 11 DIV 58 AS col0
----
95931
0

skipif mysql # not compatible
query II rowsort label-5485
SELECT + + 57 * + 33 * + 51 AS col2, 11 / 58 AS col0
----
95931
0

query I rowsort
SELECT + 66 * + + 63 AS col2
----
4158

query II rowsort
SELECT DISTINCT + 94, 50 AS col1
----
94
50

query II rowsort
SELECT ALL + 98 AS col2, 46
----
98
46

query II rowsort
SELECT ALL + 1, 51 AS col0
----
1
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5490
SELECT + CAST( + - AVG ( ALL + 39 ) AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-5490
SELECT + CAST ( + - AVG ( ALL + 39 ) AS INTEGER )
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-5491
SELECT ALL + COALESCE ( + 47, - 12 DIV + 61 - 70, ( - - 52 ) ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL + COALESCE ( + 47, - 12 / + 61 - 70, ( - - 52 ) ) AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5492
SELECT + CAST( + 58 AS SIGNED ) AS col1, 50
----
58
50

skipif mysql # not compatible
query II rowsort label-5492
SELECT + CAST ( + 58 AS INTEGER ) AS col1, 50
----
58
50

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

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

query I rowsort
SELECT ALL 13 * + - 11 + + + 81
----
-62

query I rowsort
SELECT 70 * + 84 - - 81
----
5961

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5496
SELECT NULLIF ( - - 11, CAST( NULL AS DECIMAL ) )
----
11

skipif mysql # not compatible
query I rowsort label-5496
SELECT NULLIF ( - - 11, CAST ( NULL AS REAL ) )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5497
SELECT ALL 19 * 85 DIV 58 + 30
----
57

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL 19 * 85 / 58 + 30
----
57

query I rowsort
SELECT NULLIF ( + ( 53 ), - - 47 - + 37 + + - 10 ) AS col1
----
53

query I rowsort
SELECT - 6 * + ( + 61 ) AS col0
----
-366

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5501
SELECT CASE + 79 WHEN + 3 * + - 43 * + COALESCE ( + - 34, + ( - 86 ) + + ( - + COALESCE ( + 74, - 72 / + MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) + - - 90, - ( - 39 ) ) ) ) THEN + + 8 * + 86 WHEN + - 88 / + 58 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5501
SELECT CASE + 79 WHEN + 3 * + - 43 * + COALESCE ( + - 34, + ( - 86 ) + + ( - + COALESCE ( + 74, - 72 / + MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + - - 90, - ( - 39 ) ) ) ) THEN + + 8 * + 86 WHEN + - 88 / + 58 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5502
SELECT ALL 87 * + 4 * - 27 + 70 + + 22 + 78 + 22 * + 96 - - 66 DIV 50 AS col0
----
-7113

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL 87 * + 4 * - 27 + 70 + + 22 + 78 + 22 * + 96 - - 66 / 50 AS col0
----
-7113

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT DISTINCT COUNT( * ) * - + 47 + - + 86 + - 64 AS col1
----
-197

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT COUNT ( * ) * - + 47 + - + 86 + - 64 AS col1
----
-197

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT ALL - 2 * - ( - COALESCE ( + - 81, - MIN( ALL 31 ), + + 98, - - 88 + 98 * + NULLIF ( + 84, + - 20 / + 25 ) ) ) + + + 9 + 8 + - 11 AS col2
----
168

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL - 2 * - ( - COALESCE ( + - 81, - MIN ( ALL 31 ), + + 98, - - 88 + 98 * + NULLIF ( + 84, + - 20 / + 25 ) ) ) + + + 9 + 8 + - 11 AS col2
----
168

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

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

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

query I rowsort
SELECT 44 * + - 70 - - + 15
----
-3065

query I rowsort
SELECT ALL - 42 * - 97 * 88 * - 15 * - 75 + + ( - 69 ) AS col0
----
403325931

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

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

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

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

query II rowsort
SELECT 17 AS col0, - ( + ( - + 53 ) ) * + 10 - NULLIF ( 56, + - 27 ) - + - 70 + + - 77 * + - COALESCE ( - 20, + 61 * 37 + 95, - 4 ) * + 39
----
17
-59516

query I rowsort
SELECT DISTINCT + + 76 - + 4
----
72

query I rowsort
SELECT DISTINCT 91 - - 90 col2
----
181

query II rowsort
SELECT - 22 col0, ( - + 86 )
----
-22
-86

query II rowsort
SELECT 41 + 57 AS col2, + 41
----
98
41

onlyif mysql # aggregate syntax: 
query II rowsort label-5516
SELECT - 55 col2, ( ( - - COUNT( * ) ) ) * 77 + CASE 25 WHEN 55 THEN + 99 / + 72 ELSE NULL END + 30 * + + 27 AS col1
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-5516
SELECT - 55 col2, ( ( - - COUNT ( * ) ) ) * 77 + CASE 25 WHEN 55 THEN + 99 / + 72 ELSE NULL END + 30 * + + 27 AS col1
----
-55
NULL

query II rowsort
SELECT ALL - 90 AS col2, 27 AS col1
----
-90
27

query I rowsort
SELECT ALL 98 * 51
----
4998

query I rowsort
SELECT DISTINCT + 92 + - 32 * 31
----
-900

onlyif mysql # DIV for integer division: 
query I rowsort label-5520
SELECT ( 8 ) DIV - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5520
SELECT ( 8 ) / - 90 AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT MIN( 60 ) + + 30 + COUNT( * ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-5522
SELECT MIN ( 60 ) + + 30 + COUNT ( * ) AS col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5523
SELECT 62 + - CAST( - 16 AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-5523
SELECT 62 + - CAST ( - 16 AS INTEGER )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT 11 * + + COUNT( * ) + - - 25 * NULLIF ( 72, + - 32 )
----
1811

skipif mysql # not compatible
query I rowsort label-5524
SELECT 11 * + + COUNT ( * ) + - - 25 * NULLIF ( 72, + - 32 )
----
1811

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT 7 + + CASE - COUNT( * ) WHEN + - 6 + 2 * 44 * - 17 THEN - 13 * 41 + + 62 + - + ( 26 ) + - 35 ELSE - 82 - 57 + + - 46 END
----
-178

skipif mysql # not compatible
query I rowsort label-5525
SELECT 7 + + CASE - COUNT ( * ) WHEN + - 6 + 2 * 44 * - 17 THEN - 13 * 41 + + 62 + - + ( 26 ) + - 35 ELSE - 82 - 57 + + - 46 END
----
-178

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

query II rowsort
SELECT ALL 64 + + - 55, - 34 AS col1
----
9
-34

query I rowsort
SELECT 97 + 57 + - COALESCE ( - + 53, + - 25 ) * + - 46 * - 63 * + 54
----
8294230

query I rowsort
SELECT DISTINCT 94 + - 54 + 39
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT ALL SUM( DISTINCT 1 ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL SUM ( DISTINCT 1 ) * 0
----
0

query I rowsort
SELECT ALL 28 + - + 26
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5532
SELECT CASE + + 97 WHEN - - 65 THEN NULL WHEN - - 43 THEN 66 + - 13 - - - 17 + - - 12 * + - 87 * - 81 + - 36 ELSE NULL END * 50 / - + SUM( DISTINCT + 3 ) / + 14 col2, + 5 AS col0
----
NULL
5

skipif mysql # not compatible
query II rowsort label-5532
SELECT CASE + + 97 WHEN - - 65 THEN NULL WHEN - - 43 THEN 66 + - 13 - - - 17 + - - 12 * + - 87 * - 81 + - 36 ELSE NULL END * 50 / - + SUM ( DISTINCT + 3 ) / + 14 col2, + 5 AS col0
----
NULL
5

query II rowsort
SELECT - 70 * + 80 + + ( + + 46 ) + + 10, + 15 + + 46 AS col2
----
-5544
61

query II rowsort
SELECT 20 + - + 64 AS col1, 67 + + 96 AS col2
----
-44
163

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

skipif mysql # not compatible
query I rowsort label-5535
SELECT DISTINCT + ( COUNT ( * ) ) - + + 58 AS col0
----
-57

query I rowsort
SELECT ALL 83 * + + 2
----
166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5537
SELECT DISTINCT + NULLIF ( - COUNT( * ), + + 39 + 44 DIV + COALESCE ( + 75, - 84 ) ) DIV - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT + NULLIF ( - COUNT ( * ), + + 39 + 44 / + COALESCE ( + 75, - 84 ) ) / - COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5538
SELECT ALL + CASE 8 WHEN - - 39 / + 54 * - MAX( ALL CAST( 38 AS SIGNED ) ) - + 17 + - 31 + - + SUM( 29 ) THEN - 9 WHEN - ( + 77 ) + - 0 + - + 77 THEN NULL ELSE 32 END AS col1
----
32

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL + CASE 8 WHEN - - 39 / + 54 * - MAX ( ALL CAST ( 38 AS INTEGER ) ) - + 17 + - 31 + - + SUM ( 29 ) THEN - 9 WHEN - ( + 77 ) + - 0 + - + 77 THEN NULL ELSE 32 END AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5539
SELECT - 79 / + + SUM( + CAST( NULL AS SIGNED ) ) * + 57 + 31 + CASE + ( - + 66 ) WHEN 56 - + 42 THEN - SUM( DISTINCT + 51 ) / - 42 * - + 78 / 44 + - + 15 / 2 + + 70 WHEN - 41 THEN NULL END * + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT - 79 / + + SUM ( + CAST ( NULL AS INTEGER ) ) * + 57 + 31 + CASE + ( - + 66 ) WHEN 56 - + 42 THEN - SUM ( DISTINCT + 51 ) / - 42 * - + 78 / 44 + - + 15 / 2 + + 70 WHEN - 41 THEN NULL END * + - 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT + COUNT( DISTINCT 76 ) + - 64 * - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-5540
SELECT + COUNT ( DISTINCT 76 ) + - 64 * - COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT - 72 + ( COUNT( * ) ) + COUNT( * ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-5541
SELECT - 72 + ( COUNT ( * ) ) + COUNT ( * ) AS col1
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-5542
SELECT 69 DIV - + 3 - 30
----
-53

skipif mysql # not compatible
query I rowsort label-5542
SELECT 69 / - + 3 - 30
----
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5543
SELECT ALL - 37 * - - ( 45 ) * + CASE WHEN NOT - 83 BETWEEN CAST( - + ( - 19 ) AS DECIMAL ) * + - 69 * 78 * + 37 * - 72 AND 5 THEN + + 42 ELSE 78 END * 46 * - + 43 + 77 AS col0
----
138321617

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL - 37 * - - ( 45 ) * + CASE WHEN NOT - 83 BETWEEN CAST ( - + ( - 19 ) AS REAL ) * + - 69 * 78 * + 37 * - 72 AND 5 THEN + + 42 ELSE 78 END * 46 * - + 43 + 77 AS col0
----
138321617

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT 0 + - + CASE + 57 WHEN 76 + 86 * - 4 + COALESCE ( 76, - + 85 * - 59 ) THEN NULL WHEN - COUNT( * ) + 69 - + - 93 * 97 THEN 5 ELSE NULL END + + + 90 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5544
SELECT 0 + - + CASE + 57 WHEN 76 + 86 * - 4 + COALESCE ( 76, - + 85 * - 59 ) THEN NULL WHEN - COUNT ( * ) + 69 - + - 93 * 97 THEN 5 ELSE NULL END + + + 90 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT ALL + ( + COALESCE ( + 44, + 54 + - + COUNT( + ( 71 ) ), 33 ) )
----
44

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL + ( + COALESCE ( + 44, + 54 + - + COUNT ( + ( 71 ) ), 33 ) )
----
44

query I rowsort
SELECT + 29 * + 74 * + 71 + - 99
----
152267

query I rowsort
SELECT - 38 + - - 8 AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5548
SELECT ALL + 2 * 56 * - ( + + COALESCE ( + ( + 44 ), + 2 ) ) + + 14 * - NULLIF ( - + 88, CAST( NULL AS SIGNED ) ) AS col0
----
-3696

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL + 2 * 56 * - ( + + COALESCE ( + ( + 44 ), + 2 ) ) + + 14 * - NULLIF ( - + 88, CAST ( NULL AS INTEGER ) ) AS col0
----
-3696

query I rowsort
SELECT DISTINCT - 43 + + - 18 AS col2
----
-61

query I rowsort
SELECT ALL + 6 + - + 98 - 67 * ( + 15 )
----
-1097

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT ALL 67 * - COUNT( * ) + + ( + COUNT( * ) ) + - 95 AS col0
----
-161

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL 67 * - COUNT ( * ) + + ( + COUNT ( * ) ) + - 95 AS col0
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT DISTINCT 36 * + 62 + + CASE COUNT( * ) WHEN 36 THEN 51 END + + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5552
SELECT DISTINCT 36 * + 62 + + CASE COUNT ( * ) WHEN 36 THEN 51 END + + 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT 62 * MAX( DISTINCT ( + - 75 ) ) AS col1
----
-4650

skipif mysql # not compatible
query I rowsort label-5553
SELECT 62 * MAX ( DISTINCT ( + - 75 ) ) AS col1
----
-4650

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT 43 / 33 + COUNT( * ) + - 10 + + ( + CASE - 43 WHEN 62 + + 50 THEN - 65 * 63 WHEN - ( + 21 ) THEN 48 * - 46 * - - CASE - - 44 WHEN - 29 THEN 95 * - 11 WHEN - 92 THEN NULL END WHEN 71 - + 25 + 87 + - + 5 THEN + MIN( DISTINCT + 54 ) + CASE 40 WHEN - 64 THEN + 2 WHEN - 33 * 58 * 72 * - - 2 * - MAX( ALL + ( - 12 ) ) * - 13 * 36 THEN NULL WHEN + - 68 THEN 6 END + 46 + - 56 * - 37 END ) * - SUM( 22 / - 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5554
SELECT 43 / 33 + COUNT ( * ) + - 10 + + ( + CASE - 43 WHEN 62 + + 50 THEN - 65 * 63 WHEN - ( + 21 ) THEN 48 * - 46 * - - CASE - - 44 WHEN - 29 THEN 95 * - 11 WHEN - 92 THEN NULL END WHEN 71 - + 25 + 87 + - + 5 THEN + MIN ( DISTINCT + 54 ) + CASE 40 WHEN - 64 THEN + 2 WHEN - 33 * 58 * 72 * - - 2 * - MAX ( ALL + ( - 12 ) ) * - 13 * 36 THEN NULL WHEN + - 68 THEN 6 END + 46 + - 56 * - 37 END ) * - SUM ( 22 / - 69 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT DISTINCT ( - 91 ) * NULLIF ( + 39, + 66 * + - 84 - + + 68 + 10 + - COUNT( ALL 7 ) ) + MIN( 15 ) AS col1
----
-3534

skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT ( - 91 ) * NULLIF ( + 39, + 66 * + - 84 - + + 68 + 10 + - COUNT ( ALL 7 ) ) + MIN ( 15 ) AS col1
----
-3534

query II rowsort
SELECT + 99 AS col2, 81
----
99
81

query I rowsort
SELECT ALL 89 + + + 75 - + - 7 col0
----
171

query I rowsort
SELECT 87 * - + ( - 33 )
----
2871

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

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

query I rowsort
SELECT DISTINCT 23 + - 74
----
-51

query I rowsort
SELECT DISTINCT - 53 * 44
----
-2332

query I rowsort
SELECT DISTINCT - COALESCE ( + 49, - + 93 ) AS col2
----
-49

query I rowsort
SELECT ALL - 44 + + 15 AS col2
----
-29

query I rowsort
SELECT 77 * - 70
----
-5390

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT SUM( + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-5565
SELECT SUM ( + 34 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5566
SELECT + 78 * + - 51 - - - 60 * + COUNT( CAST( NULL AS SIGNED ) ) * + 79 AS col0, + CAST( 79 AS SIGNED ) AS col0
----
-3978
79

skipif mysql # not compatible
query II rowsort label-5566
SELECT + 78 * + - 51 - - - 60 * + COUNT ( CAST ( NULL AS INTEGER ) ) * + 79 AS col0, + CAST ( 79 AS INTEGER ) AS col0
----
-3978
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT SUM( + 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-5567
SELECT SUM ( + 8 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT ALL COUNT( * ) * - 53 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL COUNT ( * ) * - 53 AS col0
----
-53

query I rowsort
SELECT 81 * - 11 + 96 AS col2
----
-795

onlyif mysql # DIV for integer division: 
query I rowsort label-5570
SELECT 32 DIV 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5570
SELECT 32 / 65 AS col2
----
0

query I rowsort
SELECT 2 * - 39
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT COUNT( * ) + + COUNT( * ) + - - ( + COALESCE ( + + 10, COUNT( * ) + 67 ) )
----
12

skipif mysql # not compatible
query I rowsort label-5572
SELECT COUNT ( * ) + + COUNT ( * ) + - - ( + COALESCE ( + + 10, COUNT ( * ) + 67 ) )
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT ALL - SUM( ALL 35 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL - SUM ( ALL 35 ) AS col1
----
-35

query I rowsort
SELECT ALL - 2 * 99
----
-198

query I rowsort
SELECT + 24 - 25
----
-1

query I rowsort
SELECT ALL - 58 * + 35 AS col2
----
-2030

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT + - NULLIF ( + 76, + 53 ) * - COUNT( DISTINCT + 87 )
----
76

skipif mysql # not compatible
query I rowsort label-5578
SELECT + - NULLIF ( + 76, + 53 ) * - COUNT ( DISTINCT + 87 )
----
76

query I rowsort
SELECT ALL 17 * 13
----
221

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT + CASE - COUNT( * ) WHEN + 60 THEN NULL ELSE 87 END * + 15 * ( + CASE - 53 WHEN - 10 * + 84 + + - MIN( ( - 42 ) ) THEN + COALESCE ( - 15, 23 ) ELSE - 55 END )
----
-71775

skipif mysql # not compatible
query I rowsort label-5580
SELECT + CASE - COUNT ( * ) WHEN + 60 THEN NULL ELSE 87 END * + 15 * ( + CASE - 53 WHEN - 10 * + 84 + + - MIN ( ( - 42 ) ) THEN + COALESCE ( - 15, 23 ) ELSE - 55 END )
----
-71775

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5582
SELECT ALL COUNT( ALL - 31 ) * 48 AS col0, 65 + + COALESCE ( + ( - COUNT( * ) ), + SUM( DISTINCT - 45 ) ) AS col2
----
48
64

skipif mysql # not compatible
query II rowsort label-5582
SELECT ALL COUNT ( ALL - 31 ) * 48 AS col0, 65 + + COALESCE ( + ( - COUNT ( * ) ), + SUM ( DISTINCT - 45 ) ) AS col2
----
48
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5583
SELECT ALL - 61 AS col1, - COALESCE ( 45, - 80 * 93 DIV + COUNT( * ) + - - 50 + - - COALESCE ( + 12, 99 ), - + ( 36 ) )
----
-61
-45

skipif mysql # not compatible
query II rowsort label-5583
SELECT ALL - 61 AS col1, - COALESCE ( 45, - 80 * 93 / + COUNT ( * ) + - - 50 + - - COALESCE ( + 12, 99 ), - + ( 36 ) )
----
-61
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5584
SELECT DISTINCT 1 + + + 79 + - 29 / - CAST( NULL AS SIGNED ) * 68 / 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT 1 + + + 79 + - 29 / - CAST ( NULL AS INTEGER ) * 68 / 74
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5585
SELECT ALL - + 58 DIV + 26 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL - + 58 / + 26 AS col0
----
-2

query I rowsort
SELECT + + COALESCE ( + + 23, - 92 ) * - - 56 - 39
----
1249

query I rowsort
SELECT + 89 + - 81 AS col1
----
8

query I rowsort
SELECT - - 45 * - 40 col1
----
-1800

query I rowsort
SELECT + 2 + + 63 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT - COALESCE ( MIN( 41 ), + 21 + - + 97 * ( 40 ) ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-5590
SELECT - COALESCE ( MIN ( 41 ), + 21 + - + 97 * ( 40 ) ) AS col0
----
-41

query I rowsort
SELECT + 25 + - 67
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-5592
SELECT - COUNT( * ) * - 68 * - + ( - 7 ), 36 * - 1 AS col0
----
476
-36

skipif mysql # not compatible
query II rowsort label-5592
SELECT - COUNT ( * ) * - 68 * - + ( - 7 ), 36 * - 1 AS col0
----
476
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-5593
SELECT ALL MAX( DISTINCT - + 44 ), - COUNT( * ) col0
----
-44
-1

skipif mysql # not compatible
query II rowsort label-5593
SELECT ALL MAX ( DISTINCT - + 44 ), - COUNT ( * ) col0
----
-44
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5594
SELECT + ( 12 ) + + 1 / - 91 * + NULLIF ( - MAX( ALL - + 69 ), + ( 47 ) ) * - - 95 + - - 52 + + 95 + - 54 + + 0 / + 22 * - + 15 - + CASE - + 55 WHEN + 93 THEN - + 53 END, 88 - - CASE + 52 WHEN - 64 THEN - - 18 ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5594
SELECT + ( 12 ) + + 1 / - 91 * + NULLIF ( - MAX ( ALL - + 69 ), + ( 47 ) ) * - - 95 + - - 52 + + 95 + - 54 + + 0 / + 22 * - + 15 - + CASE - + 55 WHEN + 93 THEN - + 53 END, 88 - - CASE + 52 WHEN - 64 THEN - - 18 ELSE NULL END
----
NULL
NULL

query I rowsort
SELECT ALL 7 + + - 5 - - 18 + - + 63
----
-43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5596
SELECT DISTINCT 66 + + - COUNT( - CAST( NULL AS DECIMAL ) )
----
66

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT 66 + + - COUNT ( - CAST ( NULL AS REAL ) )
----
66

query I rowsort
SELECT ALL + 36 * + + 88 + - 86
----
3082

query II rowsort
SELECT ( + 96 ), 44 * + 12 col2
----
96
528

query I rowsort
SELECT ALL 59 * - - 26
----
1534

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT ALL + CASE + - COUNT( * ) WHEN + + 71 / + - 25 * - - 68 * + 40 THEN + - COUNT( * ) WHEN - 28 * + 4 THEN + 91 - - AVG ( ALL - 67 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL + CASE + - COUNT ( * ) WHEN + + 71 / + - 25 * - - 68 * + 40 THEN + - COUNT ( * ) WHEN - 28 * + 4 THEN + 91 - - AVG ( ALL - 67 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT - 75 * + 32 * + 35 + + COUNT( * ) AS col0
----
-83999

skipif mysql # not compatible
query I rowsort label-5601
SELECT - 75 * + 32 * + 35 + + COUNT ( * ) AS col0
----
-83999

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT ALL 87 * - 79 - - ( - 35 ) * + COUNT( 46 ) AS col1
----
-6908

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL 87 * - 79 - - ( - 35 ) * + COUNT ( 46 ) AS col1
----
-6908

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT + COALESCE ( + 92, + 51 ) / CASE COALESCE ( - 83, ( - - 73 ) ) WHEN 66 + - 8 + + AVG ( 51 ) - - 39 * + 81 * + 25 THEN NULL WHEN + + 29 * 21 + - 60 THEN - AVG ( + 91 ) + + 82 ELSE NULL END + + - 85 / + COUNT( DISTINCT ( + 0 ) ) * - - 22 + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5603
SELECT + COALESCE ( + 92, + 51 ) / CASE COALESCE ( - 83, ( - - 73 ) ) WHEN 66 + - 8 + + AVG ( 51 ) - - 39 * + 81 * + 25 THEN NULL WHEN + + 29 * 21 + - 60 THEN - AVG ( + 91 ) + + 82 ELSE NULL END + + - 85 / + COUNT ( DISTINCT ( + 0 ) ) * - - 22 + + 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT ( - CASE - - COALESCE ( + + 16, - - 26 ) WHEN - 9 THEN NULL ELSE - SUM( ALL 16 ) * + + 29 END )
----
464

skipif mysql # not compatible
query I rowsort label-5604
SELECT ( - CASE - - COALESCE ( + + 16, - - 26 ) WHEN - 9 THEN NULL ELSE - SUM ( ALL 16 ) * + + 29 END )
----
464

query I rowsort
SELECT - 35 + + 33
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT COALESCE ( - - CASE - 99 WHEN - 70 THEN NULL WHEN + COUNT( * ) THEN + 24 END, - ( + 85 ) ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-5606
SELECT COALESCE ( - - CASE - 99 WHEN - 70 THEN NULL WHEN + COUNT ( * ) THEN + 24 END, - ( + 85 ) ) AS col1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5607
SELECT + 12 * + CAST( NULL AS SIGNED ) * - 81 * + 73 + + ( - 20 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5607
SELECT + 12 * + CAST ( NULL AS INTEGER ) * - 81 * + 73 + + ( - 20 ) AS col1
----
NULL

query I rowsort
SELECT - 17 - - + 50
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT - 5 * + - COUNT( * ) * + 34 AS col1
----
170

skipif mysql # not compatible
query I rowsort label-5609
SELECT - 5 * + - COUNT ( * ) * + 34 AS col1
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT COALESCE ( + ( - ( - 11 ) ), COUNT( * ) + COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-5610
SELECT COALESCE ( + ( - ( - 11 ) ), COUNT ( * ) + COUNT ( * ) )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5611
SELECT ALL + CAST( SUM( ALL 7 ) AS SIGNED ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL + CAST ( SUM ( ALL 7 ) AS INTEGER ) AS col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-5612
SELECT ALL - 53 DIV COALESCE ( ( + 91 ), 36 ) - - 11
----
11

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL - 53 / COALESCE ( ( + 91 ), 36 ) - - 11
----
11

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

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

query I rowsort
SELECT ALL + 31 * + 94
----
2914

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT - 28 * + + COUNT( * ) + - 98 col0
----
-126

skipif mysql # not compatible
query I rowsort label-5615
SELECT - 28 * + + COUNT ( * ) + - 98 col0
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5616
SELECT COUNT( ALL 77 ) * + 71 DIV + + 7 + - 34
----
-24

skipif mysql # not compatible
query I rowsort label-5616
SELECT COUNT ( ALL 77 ) * + 71 / + + 7 + - 34
----
-24

query I rowsort
SELECT - 89 * 42 AS col1
----
-3738

query I rowsort
SELECT ALL + - 37 * 18 * - - 0 + + 78 + 8 - - 57 AS col0
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-5619
SELECT ALL 28 DIV 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL 28 / 91 AS col1
----
0

query I rowsort
SELECT ALL - COALESCE ( - + 22, 62, + 9 )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5621
SELECT DISTINCT + - ( - ( - - 14 ) ) + COUNT( * ) + + - NULLIF ( + 64, - 65 ) + - 48 + COALESCE ( + + 9, + - CAST( - COUNT( * ) AS SIGNED ) * - + ( COALESCE ( - COUNT( * ), - - 88 - + 16 + + 25 * - CAST( NULL AS SIGNED ) * + 30 + - ( + 34 ) - 83, - - 63 + - - 51 ) ) DIV - + 33 ) + + ( + 2 )
----
-86

skipif mysql # not compatible
query I rowsort label-5621
SELECT DISTINCT + - ( - ( - - 14 ) ) + COUNT ( * ) + + - NULLIF ( + 64, - 65 ) + - 48 + COALESCE ( + + 9, + - CAST ( - COUNT ( * ) AS INTEGER ) * - + ( COALESCE ( - COUNT ( * ), - - 88 - + 16 + + 25 * - CAST ( NULL AS INTEGER ) * + 30 + - ( + 34 ) - 83, - - 63 + - - 51 ) ) / - + 33 ) + + ( + 2 )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5622
SELECT + COUNT( * ) + + 46 AS col0, MAX( DISTINCT - 55 ) * + - 18 * - + CAST( ( - + 77 ) AS SIGNED ) * - 32 DIV COUNT( * ) - 63 - + 95 * + - 91 AS col2
----
47
-2430778

skipif mysql # not compatible
query II rowsort label-5622
SELECT + COUNT ( * ) + + 46 AS col0, MAX ( DISTINCT - 55 ) * + - 18 * - + CAST ( ( - + 77 ) AS INTEGER ) * - 32 / COUNT ( * ) - 63 - + 95 * + - 91 AS col2
----
47
-2430778

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

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

query I rowsort
SELECT ALL + 85 + ( - + 95 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT - 87 * - CASE 87 WHEN 44 - - 24 - - 73 * - 41 + - 33 THEN - 54 WHEN 89 THEN NULL ELSE NULL END + - - SUM( ALL + 80 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5625
SELECT - 87 * - CASE 87 WHEN 44 - - 24 - - 73 * - 41 + - 33 THEN - 54 WHEN 89 THEN NULL ELSE NULL END + - - SUM ( ALL + 80 ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5626
SELECT - MIN ( + 41 )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5627
SELECT + 90 * - CASE 74 WHEN + 34 + - + 34 THEN - 69 * - 1 + + CAST( NULL AS SIGNED ) - 81 / - + 87 + 45 + + + 15 / + 99 + 10 * - MIN( ALL + 47 ) * 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5627
SELECT + 90 * - CASE 74 WHEN + 34 + - + 34 THEN - 69 * - 1 + + CAST ( NULL AS INTEGER ) - 81 / - + 87 + 45 + + + 15 / + 99 + 10 * - MIN ( ALL + 47 ) * 14 END
----
NULL

query II rowsort
SELECT DISTINCT 82, + 99 * 11 AS col2
----
82
1089

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT ALL MIN( DISTINCT + + 61 ) col1
----
61

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL MIN ( DISTINCT + + 61 ) col1
----
61

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

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

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

query I rowsort
SELECT ALL 77 - + 30 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT - 41 + - 23 - + 94 - - + COUNT( * )
----
-157

skipif mysql # not compatible
query I rowsort label-5633
SELECT - 41 + - 23 - + 94 - - + COUNT ( * )
----
-157

query I rowsort
SELECT + 88 * - - 77
----
6776

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5636
SELECT + 5 DIV 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5636
SELECT + 5 / 86 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT COUNT ( * ) / 75 AS col2
----
0

query I rowsort
SELECT DISTINCT 5 * 43 col0
----
215

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT ALL - + ( + 19 ) * + 69 + + NULLIF ( + 56, + + 43 + + 0 + 68 * ( + 60 ) * - COUNT( * ) ) * + SUM( DISTINCT - 83 )
----
-5959

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL - + ( + 19 ) * + 69 + + NULLIF ( + 56, + + 43 + + 0 + 68 * ( + 60 ) * - COUNT ( * ) ) * + SUM ( DISTINCT - 83 )
----
-5959

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5641
SELECT ALL - 74 * + 63 + - NULLIF ( + + 5, + - ( - - CAST( NULL AS SIGNED ) ) ) DIV - 28 * + 27 DIV COUNT( * )
----
-4662

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL - 74 * + 63 + - NULLIF ( + + 5, + - ( - - CAST ( NULL AS INTEGER ) ) ) / - 28 * + 27 / COUNT ( * )
----
-4662

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT ALL - COUNT( DISTINCT - - 90 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL - COUNT ( DISTINCT - - 90 ) col2
----
-1

query I rowsort
SELECT - 84 * + 23 + - 16 AS col0
----
-1948

query I rowsort
SELECT 62 * - 13 AS col1
----
-806

query I rowsort
SELECT - 73 + - 28 * - 77 * + + 29 col2
----
62451

onlyif mysql # aggregate syntax: 
query II rowsort label-5646
SELECT ALL + + 79 + + + MAX( ALL + + 29 ) col1, + MAX( DISTINCT + - 45 ) + - + COUNT( * )
----
108
-46

skipif mysql # not compatible
query II rowsort label-5646
SELECT ALL + + 79 + + + MAX ( ALL + + 29 ) col1, + MAX ( DISTINCT + - 45 ) + - + COUNT ( * )
----
108
-46

query I rowsort
SELECT ALL + 58 * + + 13 AS col0
----
754

query I rowsort
SELECT 85 * - 6 col0
----
-510

query I rowsort
SELECT + 22 + - 14 + 43 AS col1
----
51

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

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

query I rowsort
SELECT 34 * - 94 + 61 * - 91
----
-8747

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT - SUM( - - 46 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-5652
SELECT - SUM ( - - 46 ) AS col1
----
-46

query I rowsort
SELECT ALL + - 75 * + + 87
----
-6525

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5654
SELECT - CAST( + 1 AS SIGNED ) + 1, 13 DIV + 10 + + 20 AS col0
----
0
21

skipif mysql # not compatible
query II rowsort label-5654
SELECT - CAST ( + 1 AS INTEGER ) + 1, 13 / + 10 + + 20 AS col0
----
0
21

query I rowsort
SELECT ALL - 23 * - 93 * 73
----
156147

query I rowsort
SELECT DISTINCT + 65 + + 29 AS col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5657
SELECT + COALESCE ( COUNT( * ), + CAST( COUNT( * ) AS SIGNED ) ) * 0 + - 42 - - 35 + + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-5657
SELECT + COALESCE ( COUNT ( * ), + CAST ( COUNT ( * ) AS INTEGER ) ) * 0 + - 42 - - 35 + + COUNT ( * )
----
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT ALL + 32 - - + 9 * + COUNT( * ) + - 43 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL + 32 - - + 9 * + COUNT ( * ) + - 43 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query III rowsort label-5660
SELECT ALL 28, 61 AS col0, COUNT( * ) AS col1
----
28
61
1

skipif mysql # not compatible
query III rowsort label-5660
SELECT ALL 28, 61 AS col0, COUNT ( * ) AS col1
----
28
61
1

query II rowsort
SELECT 39, ( 64 ) AS col1
----
39
64

onlyif mysql # aggregate syntax: 
query II rowsort label-5662
SELECT ALL - 84 * - - ( 81 ) * + 40 AS col1, - 42 + + COUNT( * )
----
-272160
-41

skipif mysql # not compatible
query II rowsort label-5662
SELECT ALL - 84 * - - ( 81 ) * + 40 AS col1, - 42 + + COUNT ( * )
----
-272160
-41

query I rowsort
SELECT 87 * - + 7 col0
----
-609

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

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

query II rowsort
SELECT 25, - 85 + + ( + ( - - 98 ) ) col0
----
25
13

query I rowsort
SELECT 77 + + - 86 col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5667
SELECT DISTINCT 45, + CAST( NULL AS SIGNED ) * - 66 AS col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-5667
SELECT DISTINCT 45, + CAST ( NULL AS INTEGER ) * - 66 AS col2
----
45
NULL

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

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

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

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

query II rowsort
SELECT 82 AS col1, 78
----
82
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT COUNT( * ) * + 53 * + + 21 AS col0
----
1113

skipif mysql # not compatible
query I rowsort label-5672
SELECT COUNT ( * ) * + 53 * + + 21 AS col0
----
1113

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

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

query II rowsort
SELECT DISTINCT - 54, - 63 * - 9 AS col0
----
-54
567

query II rowsort
SELECT ALL - 96 AS col1, 36 AS col2
----
-96
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5676
SELECT 31 + + - 69 * - + CAST( NULL AS SIGNED ) / 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5676
SELECT 31 + + - 69 * - + CAST ( NULL AS INTEGER ) / 20
----
NULL

query I rowsort
SELECT - 28 * - 3 + 93
----
177

query II rowsort
SELECT DISTINCT - 82 col1, 10
----
-82
10

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5680
SELECT + NULLIF ( + + CAST( - 99 AS SIGNED ), - COUNT( 20 ) ) + + - 51, 51 * - 39 * - ( 5 ) - - 13 AS col1
----
-150
9958

skipif mysql # not compatible
query II rowsort label-5680
SELECT + NULLIF ( + + CAST ( - 99 AS INTEGER ), - COUNT ( 20 ) ) + + - 51, 51 * - 39 * - ( 5 ) - - 13 AS col1
----
-150
9958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5681
SELECT + COUNT( * ) AS col0, CAST( 22 AS SIGNED ) * - 99 AS col1
----
1
-2178

skipif mysql # not compatible
query II rowsort label-5681
SELECT + COUNT ( * ) AS col0, CAST ( 22 AS INTEGER ) * - 99 AS col1
----
1
-2178

query I rowsort
SELECT + 13 + + 76 + 4
----
93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5683
SELECT ALL + CAST( 44 AS SIGNED ) DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL + CAST ( 44 AS INTEGER ) / - 58
----
0

query I rowsort
SELECT DISTINCT ( + 0 ) + - - 72 AS col2
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-5685
SELECT ALL - MIN( - 83 ) + - - NULLIF ( 67, 63 * 44 * 62 + + 83 * - 81 ) * + + 51 + 33 * + 0 * - ( + - 61 ), + 12 AS col1
----
3500
12

skipif mysql # not compatible
query II rowsort label-5685
SELECT ALL - MIN ( - 83 ) + - - NULLIF ( 67, 63 * 44 * 62 + + 83 * - 81 ) * + + 51 + 33 * + 0 * - ( + - 61 ), + 12 AS col1
----
3500
12

query I rowsort
SELECT DISTINCT + 21 * + + COALESCE ( + 65, 92 * - 81 + + + 72 )
----
1365

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT DISTINCT + 51 + 12 + - + 42 * - - 65 - COALESCE ( + 10, + COUNT( * ) ) AS col0
----
-2677

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT + 51 + 12 + - + 42 * - - 65 - COALESCE ( + 10, + COUNT ( * ) ) AS col0
----
-2677

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

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

query I rowsort
SELECT 69 + - + 61 AS col1
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5690
SELECT ALL 63 + + + COUNT( * ) AS col0, - COALESCE ( + 92, - + 9 + - 28 )
----
64
-92

skipif mysql # not compatible
query II rowsort label-5690
SELECT ALL 63 + + + COUNT ( * ) AS col0, - COALESCE ( + 92, - + 9 + - 28 )
----
64
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT - 68 * 27 + + COUNT( * ) + + 57 * + 59 * + 90 - - + 11
----
300846

skipif mysql # not compatible
query I rowsort label-5691
SELECT - 68 * 27 + + COUNT ( * ) + + 57 * + 59 * + 90 - - + 11
----
300846

onlyif mysql # aggregate syntax: 
query II rowsort label-5692
SELECT 48 * + COUNT( * ), 23 AS col2
----
48
23

skipif mysql # not compatible
query II rowsort label-5692
SELECT 48 * + COUNT ( * ), 23 AS col2
----
48
23

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5694
SELECT CAST( - + ( - 60 ) AS SIGNED ) + + - 93
----
-33

skipif mysql # not compatible
query I rowsort label-5694
SELECT CAST ( - + ( - 60 ) AS INTEGER ) + + - 93
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-5695
SELECT + COUNT( DISTINCT - 32 ), + 40 * 31 AS col0
----
1
1240

skipif mysql # not compatible
query II rowsort label-5695
SELECT + COUNT ( DISTINCT - 32 ), + 40 * 31 AS col0
----
1
1240

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT 38 + SUM( + 4 ) * + 64 + + + 62
----
356

skipif mysql # not compatible
query I rowsort label-5696
SELECT 38 + SUM ( + 4 ) * + 64 + + + 62
----
356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5697
SELECT ALL + - 72 - 49 + - NULLIF ( - CAST( - 48 AS SIGNED ), - + 66 ) AS col2
----
-169

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL + - 72 - 49 + - NULLIF ( - CAST ( - 48 AS INTEGER ), - + 66 ) AS col2
----
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT - ( + 42 ) * MAX( DISTINCT + + 56 ) AS col1
----
-2352

skipif mysql # not compatible
query I rowsort label-5698
SELECT - ( + 42 ) * MAX ( DISTINCT + + 56 ) AS col1
----
-2352

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5700
SELECT 97 + + CAST( + 54 AS SIGNED ) AS col0
----
151

skipif mysql # not compatible
query I rowsort label-5700
SELECT 97 + + CAST ( + 54 AS INTEGER ) AS col0
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5701
SELECT 6 + - CAST( NULL AS SIGNED ), 19 AS col2
----
NULL
19

skipif mysql # not compatible
query II rowsort label-5701
SELECT 6 + - CAST ( NULL AS INTEGER ), 19 AS col2
----
NULL
19

onlyif mysql # aggregate syntax: 
query II rowsort label-5702
SELECT DISTINCT + COUNT( * ) * 63 AS col0, + 53 AS col2
----
63
53

skipif mysql # not compatible
query II rowsort label-5702
SELECT DISTINCT + COUNT ( * ) * 63 AS col0, + 53 AS col2
----
63
53

query I rowsort
SELECT 90 - + 28 - + 29 * - - 32
----
-866

onlyif mysql # DIV for integer division: 
query I rowsort label-5704
SELECT NULLIF ( + + 23, + 90 * - + 0 - - COALESCE ( ( + 82 ), - 24 + + 89 * + - ( 17 ) ) + - + 79 ) DIV 13 + - - 34 + + 90 * - 13
----
-1135

skipif mysql # not compatible
query I rowsort label-5704
SELECT NULLIF ( + + 23, + 90 * - + 0 - - COALESCE ( ( + 82 ), - 24 + + 89 * + - ( 17 ) ) + - + 79 ) / 13 + - - 34 + + 90 * - 13
----
-1135

onlyif mysql # aggregate syntax: 
query II rowsort label-5705
SELECT 96 * + 63, COUNT( DISTINCT - 18 ) - + 74 + 62 AS col0
----
6048
-11

skipif mysql # not compatible
query II rowsort label-5705
SELECT 96 * + 63, COUNT ( DISTINCT - 18 ) - + 74 + 62 AS col0
----
6048
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5706
SELECT NULLIF ( + - 10, CAST( NULL AS SIGNED ) ) + COUNT( * ) + + 58 * 69
----
3993

skipif mysql # not compatible
query I rowsort label-5706
SELECT NULLIF ( + - 10, CAST ( NULL AS INTEGER ) ) + COUNT ( * ) + + 58 * 69
----
3993

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT ALL COALESCE ( - NULLIF ( + + ( + MAX( DISTINCT - 96 ) ), - + 96 ), - - 79, + - ( - + 77 ) + 4 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL COALESCE ( - NULLIF ( + + ( + MAX ( DISTINCT - 96 ) ), - + 96 ), - - 79, + - ( - + 77 ) + 4 ) AS col1
----
79

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

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

query I rowsort
SELECT DISTINCT 11 + ( - - 13 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT ALL COALESCE ( 39, - + 40 - + 29, + ( 49 ) + ( COUNT( * ) ), + - ( - 86 ) ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL COALESCE ( 39, - + 40 - + 29, + ( 49 ) + ( COUNT ( * ) ), + - ( - 86 ) ) AS col2
----
39

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

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT + ( 25 ) + - CAST ( - + 39 AS INTEGER )
----
64

query I rowsort
SELECT - 46 - + ( + 33 )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5714
SELECT DISTINCT COALESCE ( 5, 49, + + CASE - 58 WHEN COUNT( * ) DIV COUNT( * ) - + 76 + 34 THEN NULL WHEN - CASE ( 62 ) WHEN + - 71 + - 22 + + 45 THEN + + 30 * - 1 DIV + + 87 WHEN - 91 * + + 52 THEN - + 43 * - + MAX( 81 ) ELSE - 78 END - - 51 - 24 - + 3 * - - 92 * - - 49 * + COUNT( * ) + 12 + - 3 + + - ( 60 ) THEN - - CAST( NULLIF ( 31, 77 ) AS SIGNED ) END DIV 35 )
----
5

skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT COALESCE ( 5, 49, + + CASE - 58 WHEN COUNT ( * ) / COUNT ( * ) - + 76 + 34 THEN NULL WHEN - CASE ( 62 ) WHEN + - 71 + - 22 + + 45 THEN + + 30 * - 1 / + + 87 WHEN - 91 * + + 52 THEN - + 43 * - + MAX ( 81 ) ELSE - 78 END - - 51 - 24 - + 3 * - - 92 * - - 49 * + COUNT ( * ) + 12 + - 3 + + - ( 60 ) THEN - - CAST ( NULLIF ( 31, 77 ) AS INTEGER ) END / 35 )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5715
SELECT DISTINCT + 52 * - 88 + 49 * 18 + - + ( - COUNT( * ) ) DIV + 91 + + - 59 + + 21 + - 55 - + - NULLIF ( - 73, - 66 * + - 82 * + 2 ) * + 18 * 97 AS col0, + COUNT( ALL + ( + 64 ) ) - - SUM( ALL + 39 ) AS col2
----
-131245
40

skipif mysql # not compatible
query II rowsort label-5715
SELECT DISTINCT + 52 * - 88 + 49 * 18 + - + ( - COUNT ( * ) ) / + 91 + + - 59 + + 21 + - 55 - + - NULLIF ( - 73, - 66 * + - 82 * + 2 ) * + 18 * 97 AS col0, + COUNT ( ALL + ( + 64 ) ) - - SUM ( ALL + 39 ) AS col2
----
-131245
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT DISTINCT + - CASE + 14 WHEN 63 * - + 71 * - - 51 / - 50 * + 13 * - + COUNT( * ) + - - 4 + - - 79 THEN 94 END * + MAX( DISTINCT + 37 ) + - 84 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5716
SELECT DISTINCT + - CASE + 14 WHEN 63 * - + 71 * - - 51 / - 50 * + 13 * - + COUNT ( * ) + - - 4 + - - 79 THEN 94 END * + MAX ( DISTINCT + 37 ) + - 84 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT ALL - NULLIF ( + COUNT( * ), 87 ) * + - ( + - 65 ) * MAX( 76 ) + + - 93 AS col1
----
-5033

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL - NULLIF ( + COUNT ( * ), 87 ) * + - ( + - 65 ) * MAX ( 76 ) + + - 93 AS col1
----
-5033

query I rowsort
SELECT - - 19 * - 90 AS col1
----
-1710

onlyif mysql # aggregate syntax: 
query II rowsort label-5719
SELECT ALL COUNT( * ) * - 84 + - - SUM( ALL - 63 ) + + - 68 * + + 68 + + 88, - 75 col0
----
-4683
-75

skipif mysql # not compatible
query II rowsort label-5719
SELECT ALL COUNT ( * ) * - 84 + - - SUM ( ALL - 63 ) + + - 68 * + + 68 + + 88, - 75 col0
----
-4683
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5720
SELECT + MIN( NULLIF ( - 68, - + 84 ) ) * - + 17 / - - ( + MAX( - + 36 ) ) * - - CAST( NULL AS SIGNED ) / + NULLIF ( + ( CAST( NULL AS SIGNED ) ), - + ( 74 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5720
SELECT + MIN ( NULLIF ( - 68, - + 84 ) ) * - + 17 / - - ( + MAX ( - + 36 ) ) * - - CAST ( NULL AS INTEGER ) / + NULLIF ( + ( CAST ( NULL AS INTEGER ) ), - + ( 74 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT ALL - 25 * + + ( - COUNT( ALL - + 15 ) ) + - SUM( - 51 ) * - + 22
----
-1097

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL - 25 * + + ( - COUNT ( ALL - + 15 ) ) + - SUM ( - 51 ) * - + 22
----
-1097

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT - - 42 * + COUNT( * ) * - NULLIF ( NULLIF ( 60, - 26 ), SUM( DISTINCT NULLIF ( + 4, - 22 ) ) ) + + CASE + + 20 WHEN - COUNT( * ) THEN NULL ELSE + - 25 END
----
-2545

skipif mysql # not compatible
query I rowsort label-5722
SELECT - - 42 * + COUNT ( * ) * - NULLIF ( NULLIF ( 60, - 26 ), SUM ( DISTINCT NULLIF ( + 4, - 22 ) ) ) + + CASE + + 20 WHEN - COUNT ( * ) THEN NULL ELSE + - 25 END
----
-2545

onlyif mysql # DIV for integer division: 
query I rowsort label-5723
SELECT 84 * 36 + 69 DIV + 95 AS col0
----
3024

skipif mysql # not compatible
query I rowsort label-5723
SELECT 84 * 36 + 69 / + 95 AS col0
----
3024

query I rowsort
SELECT - + 67 + - + 83
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5725
SELECT ALL + ( + - CASE + 39 WHEN + 18 THEN + 75 + + SUM( ALL 56 ) ELSE + ( COALESCE ( + CAST( NULL AS SIGNED ), 46 + 8, - 53 - - 47 ) ) DIV 41 END )
----
-1

skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL + ( + - CASE + 39 WHEN + 18 THEN + 75 + + SUM ( ALL 56 ) ELSE + ( COALESCE ( + CAST ( NULL AS INTEGER ), 46 + 8, - 53 - - 47 ) ) / 41 END )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT + - 87 * - 66 * - 49 + - 66 + + COUNT( * ) + - 80 + 27 + 67 * 45 AS col0
----
-278461

skipif mysql # not compatible
query I rowsort label-5726
SELECT + - 87 * - 66 * - 49 + - 66 + + COUNT ( * ) + - 80 + 27 + 67 * 45 AS col0
----
-278461

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT + - 43 + + + 74 - COUNT( * ) * ( + 44 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-5728
SELECT + - 43 + + + 74 - COUNT ( * ) * ( + 44 ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT ALL + - 45 * + COUNT( * ) + 5 + - 83 + 88 col1
----
-35

skipif mysql # not compatible
query I rowsort label-5729
SELECT ALL + - 45 * + COUNT ( * ) + 5 + - 83 + 88 col1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5730
SELECT + CAST( - 40 AS SIGNED ) - - 52 * - + 93
----
-4876

skipif mysql # not compatible
query I rowsort label-5730
SELECT + CAST ( - 40 AS INTEGER ) - - 52 * - + 93
----
-4876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5731
SELECT ALL + + MIN( + - CAST( NULL AS SIGNED ) ), SUM( - 25 ) * + 4 + 99 + COUNT( * ) DIV - NULLIF ( + - ( + + 35 ), + MIN( DISTINCT - 35 ) * + - 39 * + COUNT( * ) + + - 94 ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5731
SELECT ALL + + MIN ( + - CAST ( NULL AS INTEGER ) ), SUM ( - 25 ) * + 4 + 99 + COUNT ( * ) / - NULLIF ( + - ( + + 35 ), + MIN ( DISTINCT - 35 ) * + - 39 * + COUNT ( * ) + + - 94 ) AS col2
----
NULL
-1

query I rowsort
SELECT - 24 * + 75
----
-1800

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5734
SELECT - MAX( - ( + - 63 ) ) - 23, COUNT( * ) AS col2
----
-86
1

skipif mysql # not compatible
query II rowsort label-5734
SELECT - MAX ( - ( + - 63 ) ) - 23, COUNT ( * ) AS col2
----
-86
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5735
SELECT ALL + ( - 16 ) + + 8 * + COALESCE ( 50, - 95, - 62 DIV - 42 - - 78 ) col1
----
384

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL + ( - 16 ) + + 8 * + COALESCE ( 50, - 95, - 62 / - 42 - - 78 ) col1
----
384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5736
SELECT DISTINCT - MAX( - ( 17 ) ) * CASE - ( + + 98 ) WHEN - COUNT( * ) * - 28 + + - ( - 50 ) THEN 4 WHEN + 3 / - NULLIF ( - 82, - 89 ) * 82 THEN COUNT( CAST( 78 AS SIGNED ) ) + 77 * 94 + + 68 + + + 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT - MAX ( - ( 17 ) ) * CASE - ( + + 98 ) WHEN - COUNT ( * ) * - 28 + + - ( - 50 ) THEN 4 WHEN + 3 / - NULLIF ( - 82, - 89 ) * 82 THEN COUNT ( CAST ( 78 AS INTEGER ) ) + 77 * 94 + + 68 + + + 20 END
----
NULL

query I rowsort
SELECT DISTINCT + 4 + + + 47
----
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT ALL + COUNT( * ) + - - 95 + + + 87 * - - 42
----
3750

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL + COUNT ( * ) + - - 95 + + + 87 * - - 42
----
3750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5740
SELECT + 46 + - - NULLIF ( - 4, + + COUNT( * ) * - 81 / - 35 + - AVG ( - - 26 ) + - CAST( NULL AS SIGNED ) ) + 7
----
49

skipif mysql # not compatible
query I rowsort label-5740
SELECT + 46 + - - NULLIF ( - 4, + + COUNT ( * ) * - 81 / - 35 + - AVG ( - - 26 ) + - CAST ( NULL AS INTEGER ) ) + 7
----
49

query I rowsort
SELECT ALL - 59 + 61 AS col2
----
2

query I rowsort
SELECT - 28 - - 62 AS col1
----
34

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5744
SELECT ALL ( - - NULLIF ( MAX( ALL + 56 ), NULLIF ( - - 9, + 0 / COUNT( * ) ) * - 85 ) ) col1, + ( - COUNT( * ) ) * + + ( - 74 ) AS col0
----
56
74

skipif mysql # not compatible
query II rowsort label-5744
SELECT ALL ( - - NULLIF ( MAX ( ALL + 56 ), NULLIF ( - - 9, + 0 / COUNT ( * ) ) * - 85 ) ) col1, + ( - COUNT ( * ) ) * + + ( - 74 ) AS col0
----
56
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT - 75 + COUNT( * ) col2
----
-74

skipif mysql # not compatible
query I rowsort label-5745
SELECT - 75 + COUNT ( * ) col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5746
SELECT ALL - 43 + 15 * + + 2 col1, - COUNT( * ) * + CAST( NULL AS SIGNED ) col2
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-5746
SELECT ALL - 43 + 15 * + + 2 col1, - COUNT ( * ) * + CAST ( NULL AS INTEGER ) col2
----
-13
NULL

query I rowsort
SELECT DISTINCT + 84 + - 64 col0
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-5748
SELECT DISTINCT + COALESCE ( + 55, - 54 ), - COALESCE ( COUNT( * ), 76, 88 ) * - 40 AS col0
----
55
40

skipif mysql # not compatible
query II rowsort label-5748
SELECT DISTINCT + COALESCE ( + 55, - 54 ), - COALESCE ( COUNT ( * ), 76, 88 ) * - 40 AS col0
----
55
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT - + SUM( 25 ) + + - 87 AS col1
----
-112

skipif mysql # not compatible
query I rowsort label-5749
SELECT - + SUM ( 25 ) + + - 87 AS col1
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-5750
SELECT ALL + 19, + COUNT( * ) * - - 25 AS col1
----
19
25

skipif mysql # not compatible
query II rowsort label-5750
SELECT ALL + 19, + COUNT ( * ) * - - 25 AS col1
----
19
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT 82 * - 55 * 91 + MAX( DISTINCT - 27 ) + + ( + + 80 ) AS col1
----
-410357

skipif mysql # not compatible
query I rowsort label-5751
SELECT 82 * - 55 * 91 + MAX ( DISTINCT - 27 ) + + ( + + 80 ) AS col1
----
-410357

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

skipif mysql # not compatible
query II rowsort label-5752
SELECT + + 93, COUNT ( * ) AS col1
----
93
1

query II rowsort
SELECT 69 AS col0, + 85 AS col1
----
69
85

query I rowsort
SELECT + + 21 * 93 + - - 87 * + 31 + 75
----
4725

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

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL - 64 / + COUNT ( * ) - + + 81 + - 84
----
-229

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5756
SELECT - 15 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT - 15 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5757
SELECT ALL + - 58, - 34 + - - COUNT( * ) + + COUNT( * ) * - 89 AS col0
----
-58
-122

skipif mysql # not compatible
query II rowsort label-5757
SELECT ALL + - 58, - 34 + - - COUNT ( * ) + + COUNT ( * ) * - 89 AS col0
----
-58
-122

onlyif mysql # aggregate syntax: 
query II rowsort label-5758
SELECT - 60 AS col2, + 20 + ( - 39 ) - + + CASE - COUNT( * ) WHEN + 74 + + CASE - + 10 WHEN + SUM( ALL - - 58 ) + + 23 THEN NULL ELSE 42 END THEN NULL ELSE 14 END col2
----
-60
-33

skipif mysql # not compatible
query II rowsort label-5758
SELECT - 60 AS col2, + 20 + ( - 39 ) - + + CASE - COUNT ( * ) WHEN + 74 + + CASE - + 10 WHEN + SUM ( ALL - - 58 ) + + 23 THEN NULL ELSE 42 END THEN NULL ELSE 14 END col2
----
-60
-33

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

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

query II rowsort
SELECT + + 32, + 89 AS col2
----
32
89

query I rowsort
SELECT + 11 + 45 * + - 19
----
-844

query II rowsort
SELECT ALL 81 * - 20 + - 34, + ( 62 ) * 21 * + 7 * - + 59 + - - 53 AS col2
----
-1654
-537673

query II rowsort
SELECT + - 78 AS col2, ( - 22 ) AS col1
----
-78
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5764
SELECT DISTINCT 39 DIV - - 87 - + MAX( ALL - 89 ) + - 16 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT 39 / - - 87 - + MAX ( ALL - 89 ) + - 16 AS col2
----
73

query II rowsort
SELECT ALL + + 4, + COALESCE ( 11, 20 ) AS col1
----
4
11

onlyif mysql # aggregate syntax: 
query II rowsort label-5766
SELECT DISTINCT + - COUNT( * ), 80 - - 37 AS col1
----
-1
117

skipif mysql # not compatible
query II rowsort label-5766
SELECT DISTINCT + - COUNT ( * ), 80 - - 37 AS col1
----
-1
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT + + 6 + - + MIN( - ( 1 ) )
----
7

skipif mysql # not compatible
query I rowsort label-5767
SELECT + + 6 + - + MIN ( - ( 1 ) )
----
7

query II rowsort
SELECT NULLIF ( 8, 86 ) AS col0, - 63
----
8
-63

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

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL + - COUNT ( DISTINCT 7 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5770
SELECT + 25 DIV 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5770
SELECT + 25 / 29 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT COALESCE ( + + 16, - COUNT( * ) ) col2
----
16

skipif mysql # not compatible
query I rowsort label-5771
SELECT COALESCE ( + + 16, - COUNT ( * ) ) col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5772
SELECT + CAST( NULL AS SIGNED ) + - MIN( DISTINCT + 4 ) - + MAX( + + 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5772
SELECT + CAST ( NULL AS INTEGER ) + - MIN ( DISTINCT + 4 ) - + MAX ( + + 30 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5773
SELECT ALL 83 DIV - 29
----
-2

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL 83 / - 29
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5774
SELECT ALL CAST( - COALESCE ( - CAST( 4 AS SIGNED ), - 60 ) AS SIGNED ) + 74 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL CAST ( - COALESCE ( - CAST ( 4 AS INTEGER ), - 60 ) AS INTEGER ) + 74 AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5775
SELECT CAST( NULL AS SIGNED ) + + AVG ( DISTINCT + 6 ) / - - 95, 7 AS col2
----
NULL
7

skipif mysql # not compatible
query II rowsort label-5775
SELECT CAST ( NULL AS INTEGER ) + + AVG ( DISTINCT + 6 ) / - - 95, 7 AS col2
----
NULL
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5776
SELECT DISTINCT CASE + COUNT( * ) WHEN - SUM( + 87 ) DIV - 71 THEN - - COUNT( * ) * + 82 * 62 + - COUNT( * ) - 46 END + + 29 AS col0
----
5066

skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT CASE + COUNT ( * ) WHEN - SUM ( + 87 ) / - 71 THEN - - COUNT ( * ) * + 82 * 62 + - COUNT ( * ) - 46 END + + 29 AS col0
----
5066

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

skipif mysql # not compatible
query I rowsort label-5777
SELECT DISTINCT ( - 80 ) + + COUNT ( * ) AS col0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5778
SELECT 41 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5778
SELECT 41 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5780
SELECT 24 - + 77 + ( 43 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5780
SELECT 24 - + 77 + ( 43 ) / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 66 + - 46
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT + 32 * - + MIN( ALL - 65 ) * - 78 AS col0
----
-162240

skipif mysql # not compatible
query I rowsort label-5782
SELECT + 32 * - + MIN ( ALL - 65 ) * - 78 AS col0
----
-162240

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5783
SELECT DISTINCT - - COALESCE ( + NULLIF ( - ( - + 71 ), - + ( + + CAST( NULL AS DECIMAL ) ) ), MAX( DISTINCT - 81 ), + 8 + - AVG ( - NULLIF ( - - 58, - 4 ) ) ) * 6 * + CASE - 12 WHEN 75 THEN NULL WHEN - 30 THEN ( + - 91 ) END * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT - - COALESCE ( + NULLIF ( - ( - + 71 ), - + ( + + CAST ( NULL AS REAL ) ) ), MAX ( DISTINCT - 81 ), + 8 + - AVG ( - NULLIF ( - - 58, - 4 ) ) ) * 6 * + CASE - 12 WHEN 75 THEN NULL WHEN - 30 THEN ( + - 91 ) END * 64
----
NULL

query I rowsort
SELECT ALL - + 41 * 30
----
-1230

query I rowsort
SELECT DISTINCT + + 78 - + + ( + - 39 ) + 53 * - + 10 * 19 * - - 2 AS col1
----
-20023

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5786
SELECT DISTINCT - 98 - - - 7 + + + CASE + COUNT( * ) WHEN - CAST( NULL AS DECIMAL ) - - ( 88 ) THEN NULL WHEN + + 60 THEN - + ( + 53 ) * 4 END * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5786
SELECT DISTINCT - 98 - - - 7 + + + CASE + COUNT ( * ) WHEN - CAST ( NULL AS REAL ) - - ( 88 ) THEN NULL WHEN + + 60 THEN - + ( + 53 ) * 4 END * - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT ALL - + CASE + - COUNT( * ) WHEN - 64 THEN - + 94 - - 90 END * - 63 - - 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL - + CASE + - COUNT ( * ) WHEN - 64 THEN - + 94 - - 90 END * - 63 - - 99 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT ALL + MIN( ALL 46 ) * - 94 AS col1
----
-4324

skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL + MIN ( ALL 46 ) * - 94 AS col1
----
-4324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5789
SELECT + COUNT( * ) * - COUNT( * ) * - - CASE - 39 WHEN 26 - - COALESCE ( - 78, - + COUNT( * ) ) - - 26 THEN - NULLIF ( + 86, + AVG ( ALL - 29 ) * - + ( + + 23 ) ) WHEN + - 13 * - 47 - + - 99 THEN 26 - + + COUNT( * ) ELSE 15 END * - CAST( + 26 AS SIGNED ) + - NULLIF ( - - MAX( DISTINCT - 16 ), + SUM( CAST( NULL AS SIGNED ) ) + 75 * - - 0 ) * + - 61 AS col1
----
-586

skipif mysql # not compatible
query I rowsort label-5789
SELECT + COUNT ( * ) * - COUNT ( * ) * - - CASE - 39 WHEN 26 - - COALESCE ( - 78, - + COUNT ( * ) ) - - 26 THEN - NULLIF ( + 86, + AVG ( ALL - 29 ) * - + ( + + 23 ) ) WHEN + - 13 * - 47 - + - 99 THEN 26 - + + COUNT ( * ) ELSE 15 END * - CAST ( + 26 AS INTEGER ) + - NULLIF ( - - MAX ( DISTINCT - 16 ), + SUM ( CAST ( NULL AS INTEGER ) ) + 75 * - - 0 ) * + - 61 AS col1
----
-586

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT DISTINCT 14 * 22 * + - 78 + + + 48 + COUNT( * ) * - 85 * - - COUNT( * )
----
-24061

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT 14 * 22 * + - 78 + + + 48 + COUNT ( * ) * - 85 * - - COUNT ( * )
----
-24061

query I rowsort
SELECT ALL - - 36 * - 29 + + COALESCE ( 40, - - 29 ) * + - 66 + 19 * - 50 + - + 94 + 71
----
-4657

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5792
SELECT DISTINCT - - COALESCE ( 80, - - CAST( + 74 AS SIGNED ) * + - 80 * + 43 DIV + 2 + 1, + 32 * + 8 )
----
80

skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT - - COALESCE ( 80, - - CAST ( + 74 AS INTEGER ) * + - 80 * + 43 / + 2 + 1, + 32 * + 8 )
----
80

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

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

query I rowsort
SELECT - 85 * 79 AS col2
----
-6715

query I rowsort
SELECT DISTINCT - COALESCE ( - 44, - 60 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT + 65 * COUNT( * ) + - 98 + - - COUNT( * ) * - 37 + + 94
----
24

skipif mysql # not compatible
query I rowsort label-5796
SELECT + 65 * COUNT ( * ) + - 98 + - - COUNT ( * ) * - 37 + + 94
----
24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT 0 + - COALESCE ( COUNT( * ), + 20 + 98, - + ( - COUNT( ALL 32 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5798
SELECT 0 + - COALESCE ( COUNT ( * ), + 20 + 98, - + ( - COUNT ( ALL 32 ) ) )
----
-1

query I rowsort
SELECT ALL - COALESCE ( + - 78, - 32 ) AS col1
----
78

query I rowsort
SELECT ALL 60 + 60 * - 14 * - - 37
----
-31020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5801
SELECT NULLIF ( ( + + 34 ), - ( - + COUNT( * ) ) ) + CAST( NULL AS SIGNED ) + 11 * - CASE - - 81 WHEN - 15 THEN + COUNT( * ) WHEN + - 63 / 73 THEN 69 + + + 39 * 95 END + - - 65 * - - 57 / - 47 * + 85 * + 82 / - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5801
SELECT NULLIF ( ( + + 34 ), - ( - + COUNT ( * ) ) ) + CAST ( NULL AS INTEGER ) + 11 * - CASE - - 81 WHEN - 15 THEN + COUNT ( * ) WHEN + - 63 / 73 THEN 69 + + + 39 * 95 END + - - 65 * - - 57 / - 47 * + 85 * + 82 / - 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT DISTINCT + NULLIF ( + 66, + - 58 / - CASE - + COUNT( * ) WHEN 28 * - 87 + - + 71 THEN - - 33 WHEN 89 THEN NULL ELSE - 43 END + - - 90 ) + - + NULLIF ( + 88, + ( + 15 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-5802
SELECT DISTINCT + NULLIF ( + 66, + - 58 / - CASE - + COUNT ( * ) WHEN 28 * - 87 + - + 71 THEN - - 33 WHEN 89 THEN NULL ELSE - 43 END + - - 90 ) + - + NULLIF ( + 88, + ( + 15 ) )
----
-22

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

query II rowsort
SELECT DISTINCT 51 AS col2, + 4 * + 22 AS col0
----
51
88

onlyif mysql # aggregate syntax: 
query II rowsort label-5805
SELECT - 58, 23 + + SUM( DISTINCT - 28 ) col2
----
-58
-5

skipif mysql # not compatible
query II rowsort label-5805
SELECT - 58, 23 + + SUM ( DISTINCT - 28 ) col2
----
-58
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5806
SELECT ALL - COALESCE ( - 12, - + COALESCE ( - + 19, - 0 * 70 - + 85 ) ) + + + 58 DIV 55 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL - COALESCE ( - 12, - + COALESCE ( - + 19, - 0 * 70 - + 85 ) ) + + + 58 / 55 AS col2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-5807
SELECT DISTINCT 28 DIV - 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5807
SELECT DISTINCT 28 / - 68 AS col1
----
0

query I rowsort
SELECT 47 - - 81 col2
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-5809
SELECT DISTINCT COUNT( * ) col0, 80 + - 33
----
1
47

skipif mysql # not compatible
query II rowsort label-5809
SELECT DISTINCT COUNT ( * ) col0, 80 + - 33
----
1
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5810
SELECT CASE - - 19 WHEN 68 THEN 47 + + 0 END - - 63 * - 52 + 63 - + + AVG ( DISTINCT + + 62 ) * - CAST( - - 99 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5810
SELECT CASE - - 19 WHEN 68 THEN 47 + + 0 END - - 63 * - 52 + 63 - + + AVG ( DISTINCT + + 62 ) * - CAST ( - - 99 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 81 * - - 27
----
2187

query I rowsort
SELECT ALL 40 * 65 AS col2
----
2600

query I rowsort
SELECT ALL 51 - + 89 AS col2
----
-38

query I rowsort
SELECT 37 + + 29 AS col2
----
66

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

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

query I rowsort
SELECT ( - 13 ) * - 4
----
52

query I rowsort
SELECT ALL 27 * - 13 AS col1
----
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT NULLIF ( + COUNT( 62 ), - 56 ) + 43 * 65 AS col0
----
2796

skipif mysql # not compatible
query I rowsort label-5818
SELECT NULLIF ( + COUNT ( 62 ), - 56 ) + 43 * 65 AS col0
----
2796

query I rowsort
SELECT 49 * - 92 AS col1
----
-4508

query I rowsort
SELECT 56 + + 80
----
136

query I rowsort
SELECT ( - 84 ) + - 48
----
-132

query I rowsort
SELECT DISTINCT 50 * 28 AS col2
----
1400

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT SUM( ALL 43 ) + ( 92 )
----
135

skipif mysql # not compatible
query I rowsort label-5823
SELECT SUM ( ALL 43 ) + ( 92 )
----
135

query I rowsort
SELECT 91 + - 98 * 45
----
-4319

query I rowsort
SELECT - 29 * 64 + 97 AS col1
----
-1759

query I rowsort
SELECT 7 * 40 AS col0
----
280

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

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL 47 * - COUNT ( * ) + - 47 AS col0
----
-94

query I rowsort
SELECT 19 + 87
----
106

query I rowsort
SELECT ( 38 ) * + 4 AS col1
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-5830
SELECT - 78 DIV ( - 70 ) + 56 * + 83
----
4649

skipif mysql # not compatible
query I rowsort label-5830
SELECT - 78 / ( - 70 ) + 56 * + 83
----
4649

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5834
SELECT ALL 84 * - 42 + + 69 DIV 79 AS col0
----
-3528

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL 84 * - 42 + + 69 / 79 AS col0
----
-3528

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5836
SELECT - 48 DIV 10 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-5836
SELECT - 48 / 10 AS col1
----
-4

query I rowsort
SELECT ALL + 52 * + 32 + 78 * - 58 AS col1
----
-2860

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT ALL SUM( 35 ) * 90
----
3150

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL SUM ( 35 ) * 90
----
3150

query I rowsort
SELECT - 59 * 17 AS col2
----
-1003

query I rowsort
SELECT DISTINCT + ( 11 ) * - 4 + CASE + 51 WHEN 12 THEN + 55 * - 83 ELSE 10 END
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT ALL - 75 * + NULLIF ( 45 * - 80, COUNT( * ) - - 62 ) + - 53
----
269947

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL - 75 * + NULLIF ( 45 * - 80, COUNT ( * ) - - 62 ) + - 53
----
269947

query I rowsort
SELECT ALL - 72 + 66 AS col2
----
-6

query I rowsort
SELECT DISTINCT - 91 - 29
----
-120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT ALL - 73 - - NULLIF ( 24, + 17 / + COUNT( * ) + + ( 75 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL - 73 - - NULLIF ( 24, + 17 / + COUNT ( * ) + + ( 75 ) )
----
-49

query I rowsort
SELECT DISTINCT 5 * 7
----
35

query I rowsort
SELECT DISTINCT + 46 * - ( + 4 ) AS col1
----
-184

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5849
SELECT DISTINCT COALESCE ( - 32, - 33 DIV - ( 49 * + 88 ) + + 52, 79 DIV COUNT( * ) )
----
-32

skipif mysql # not compatible
query I rowsort label-5849
SELECT DISTINCT COALESCE ( - 32, - 33 / - ( 49 * + 88 ) + + 52, 79 / COUNT ( * ) )
----
-32

query I rowsort
SELECT - + COALESCE ( - 17, + 49 ) * + 1 AS col0
----
17

query I rowsort
SELECT + - 20 * + 13 AS col1
----
-260

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

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

query I rowsort
SELECT + 51 + - 89
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-5854
SELECT DISTINCT + 81 DIV 3
----
27

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT + 81 / 3
----
27

query I rowsort
SELECT - 8 * + 73
----
-584

query I rowsort
SELECT + 21 * - 77
----
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT DISTINCT - SUM( 45 ) * + 38 col2
----
-1710

skipif mysql # not compatible
query I rowsort label-5857
SELECT DISTINCT - SUM ( 45 ) * + 38 col2
----
-1710

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT ALL COUNT( DISTINCT + 25 ) + + 73
----
74

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL COUNT ( DISTINCT + 25 ) + + 73
----
74

query I rowsort
SELECT + + 93 * - 4
----
-372

query I rowsort
SELECT ALL + 88 * + 34
----
2992

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT - - 24 * COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5861
SELECT - - 24 * COUNT ( * ) AS col1
----
24

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

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

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

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

query I rowsort
SELECT DISTINCT 36 * + 57
----
2052

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5865
SELECT ALL + 64 DIV 6 + 67 * + COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL + 64 / 6 + 67 * + COUNT ( * ) AS col1
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5866
SELECT ALL + + 21 DIV + 25 + + 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL + + 21 / + 25 + + 49 AS col2
----
49

query I rowsort
SELECT + - 58 * 29
----
-1682

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT ALL 3 * CASE 91 WHEN + COUNT( * ) - 33 THEN + COUNT( * ) * 54 WHEN 33 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL 3 * CASE 91 WHEN + COUNT ( * ) - 33 THEN + COUNT ( * ) * 54 WHEN 33 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT NULLIF ( - 48, AVG ( DISTINCT 98 ) ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT ALL - 47 * - 1 + - SUM( + 42 ) * + 79 AS col1
----
-3271

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL - 47 * - 1 + - SUM ( + 42 ) * + 79 AS col1
----
-3271

query I rowsort
SELECT DISTINCT + 64 * - 92 + 6 * 32
----
-5696

query I rowsort
SELECT ALL + COALESCE ( + - 12, - 10 ) * 26
----
-312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5873
SELECT + CAST( + NULLIF ( NULLIF ( COUNT( * ), 75 ), + 79 ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5873
SELECT + CAST ( + NULLIF ( NULLIF ( COUNT ( * ), 75 ), + 79 ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT ALL - 31 * - 58 + + 81 AS col1
----
1879

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

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

query I rowsort
SELECT - 86 * - + 93 + - 37 AS col1
----
7961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5878
SELECT - COALESCE ( + 27, + 52 ) * CAST( - 84 AS SIGNED ) AS col0
----
2268

skipif mysql # not compatible
query I rowsort label-5878
SELECT - COALESCE ( + 27, + 52 ) * CAST ( - 84 AS INTEGER ) AS col0
----
2268

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

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

query I rowsort
SELECT ( - 2 ) col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5881
SELECT 41 * - + CAST( NULL AS SIGNED ) + 37 * + CASE 71 / ( - 17 ) + MIN( 74 ) * CASE COALESCE ( + 61, CAST( - 84 AS SIGNED ) ) + ( 56 ) / + 48 WHEN 33 / - 78 + - 18 THEN 65 * + 91 END WHEN 95 - - 17 * 39 THEN NULL WHEN - 15 THEN COUNT( * ) WHEN - CASE 73 WHEN + 48 THEN NULL WHEN - COUNT( * ) THEN + 64 + - 77 * ( CASE WHEN NOT - 56 IS NULL THEN NULL WHEN NOT 65 IS NULL THEN 85 ELSE 35 * + AVG ( ALL 88 * 25 ) END + + 66 ) END * MAX( ALL + 28 * 32 - 91 * + 59 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5881
SELECT 41 * - + CAST ( NULL AS INTEGER ) + 37 * + CASE 71 / ( - 17 ) + MIN ( 74 ) * CASE COALESCE ( + 61, CAST ( - 84 AS INTEGER ) ) + ( 56 ) / + 48 WHEN 33 / - 78 + - 18 THEN 65 * + 91 END WHEN 95 - - 17 * 39 THEN NULL WHEN - 15 THEN COUNT ( * ) WHEN - CASE 73 WHEN + 48 THEN NULL WHEN - COUNT ( * ) THEN + 64 + - 77 * ( CASE WHEN NOT - 56 IS NULL THEN NULL WHEN NOT 65 IS NULL THEN 85 ELSE 35 * + AVG ( ALL 88 * 25 ) END + + 66 ) END * MAX ( ALL + 28 * 32 - 91 * + 59 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5882
SELECT NULLIF ( + 29, 47 / CAST( + COUNT( * ) AS SIGNED ) )
----
29

skipif mysql # not compatible
query I rowsort label-5882
SELECT NULLIF ( + 29, 47 / CAST ( + COUNT ( * ) AS INTEGER ) )
----
29

query I rowsort
SELECT ALL + 5 * 78 * + 67 AS col2
----
26130

query I rowsort
SELECT + 76 * - ( - 1 ) * + 60
----
4560

query I rowsort
SELECT ALL 82 * - 59
----
-4838

query I rowsort
SELECT DISTINCT 17 * ( - 8 ) col1
----
-136

onlyif mysql # DIV for integer division: 
query I rowsort label-5887
SELECT ALL - 69 DIV - - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL - 69 / - - 85 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5888
SELECT - 46 * 33 DIV + 95 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-5888
SELECT - 46 * 33 / + 95 AS col1
----
-15

query I rowsort
SELECT + 54 * + 84 * + 74 + + 55 AS col1
----
335719

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5890
SELECT ALL 66 * - COUNT( * ) - - CAST( + CASE COUNT( * ) WHEN - 16 + NULLIF ( ( 20 ), 79 ) * 56 THEN - 6 - 15 WHEN + COUNT( * ) THEN NULL WHEN 30 + - SUM( + 8 ) * - COUNT( * ) THEN + 65 / 67 END + + 18 * 6 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL 66 * - COUNT ( * ) - - CAST ( + CASE COUNT ( * ) WHEN - 16 + NULLIF ( ( 20 ), 79 ) * 56 THEN - 6 - 15 WHEN + COUNT ( * ) THEN NULL WHEN 30 + - SUM ( + 8 ) * - COUNT ( * ) THEN + 65 / 67 END + + 18 * 6 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT + 16 * - COUNT( * ) * - MIN( ALL - 63 ) AS col0
----
-1008

skipif mysql # not compatible
query I rowsort label-5891
SELECT + 16 * - COUNT ( * ) * - MIN ( ALL - 63 ) AS col0
----
-1008

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5893
SELECT + 93 DIV + 41 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5893
SELECT + 93 / + 41 AS col2
----
2

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

skipif mysql # not compatible
query I rowsort label-5894
SELECT - 98 / COUNT ( * )
----
-98

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

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

query I rowsort
SELECT - 10 + + - ( 89 ) AS col2
----
-99

query I rowsort
SELECT - 39 * + ( 86 )
----
-3354

query I rowsort
SELECT - 79 * - 90 + 42
----
7152

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

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

query I rowsort
SELECT - - 72 - - 3
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT DISTINCT - MIN( ALL - 53 )
----
53

skipif mysql # not compatible
query I rowsort label-5901
SELECT DISTINCT - MIN ( ALL - 53 )
----
53

query I rowsort
SELECT ALL + + 46 + + + 78 + 12
----
136

query I rowsort
SELECT - + 97 - 87 * ( + 79 ) AS col2
----
-6970

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

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

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

query I rowsort
SELECT - 68 + - + 68 + - 86 AS col0
----
-222

query I rowsort
SELECT - + 47 * + - 61 + 67 AS col2
----
2934

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

skipif mysql # not compatible
query I rowsort label-5908
SELECT - 81 + - - COUNT ( * ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT - 95 + 43 * + NULLIF ( ( + MIN( - 6 ) ), + COUNT( * ) * + 47 ) AS col2
----
-353

skipif mysql # not compatible
query I rowsort label-5909
SELECT - 95 + 43 * + NULLIF ( ( + MIN ( - 6 ) ), + COUNT ( * ) * + 47 ) AS col2
----
-353

query I rowsort
SELECT - 8 + - 52 * - 84
----
4360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5911
SELECT ALL - MIN( - CAST( + 32 AS SIGNED ) ) + 17 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL - MIN ( - CAST ( + 32 AS INTEGER ) ) + 17 AS col1
----
49

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5913
SELECT CASE 98 WHEN - 16 - + 96 THEN NULL WHEN - COUNT( + CAST( NULL AS SIGNED ) ) THEN 50 END + + 73 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5913
SELECT CASE 98 WHEN - 16 - + 96 THEN NULL WHEN - COUNT ( + CAST ( NULL AS INTEGER ) ) THEN 50 END + + 73 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT ALL - ( COUNT( * ) ) + + 43 * 51 AS col1
----
2192

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL - ( COUNT ( * ) ) + + 43 * 51 AS col1
----
2192

query I rowsort
SELECT + 44 + - 31
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-5916
SELECT ALL - 15 DIV - 90 - 0
----
0

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL - 15 / - 90 - 0
----
0

query I rowsort
SELECT DISTINCT 83 * - 90 AS col2
----
-7470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5918
SELECT 15 DIV COALESCE ( - COUNT( DISTINCT + 23 ), - MIN( ALL 64 ) DIV COUNT( ( - 9 ) + - 30 * - CAST( NULL AS SIGNED ) ) + + 53 * - 47 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5918
SELECT 15 / COALESCE ( - COUNT ( DISTINCT + 23 ), - MIN ( ALL 64 ) / COUNT ( ( - 9 ) + - 30 * - CAST ( NULL AS INTEGER ) ) + + 53 * - 47 ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT ALL COUNT( * ) * ( - 85 ) * - 58
----
4930

skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL COUNT ( * ) * ( - 85 ) * - 58
----
4930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5920
SELECT ALL CAST( + 81 AS SIGNED ) * - 9 * 23
----
-16767

skipif mysql # not compatible
query I rowsort label-5920
SELECT ALL CAST ( + 81 AS INTEGER ) * - 9 * 23
----
-16767

query I rowsort
SELECT COALESCE ( + 0, - 95, + 82 + 27 ) * 49
----
0

query II rowsort
SELECT ALL - 5 AS col2, - 9
----
-5
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5923
SELECT ALL - CASE + + AVG ( - 42 ) WHEN - 89 * - 61 THEN + ( CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL - CASE + + AVG ( - 42 ) WHEN - 89 * - 61 THEN + ( CAST ( NULL AS INTEGER ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5924
SELECT CAST( - 22 AS SIGNED ) * + 92 AS col1
----
-2024

skipif mysql # not compatible
query I rowsort label-5924
SELECT CAST ( - 22 AS INTEGER ) * + 92 AS col1
----
-2024

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5925
SELECT ALL - 95, + 20 DIV CAST( ( - 25 ) AS SIGNED ) AS col0
----
-95
0

skipif mysql # not compatible
query II rowsort label-5925
SELECT ALL - 95, + 20 / CAST ( ( - 25 ) AS INTEGER ) AS col0
----
-95
0

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

skipif mysql # not compatible
query I rowsort label-5926
SELECT 40 * ( - COUNT ( * ) )
----
-40

query I rowsort
SELECT 75 * + 8 * - 94
----
-56400

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT COALESCE ( - - 18, - COUNT( * ) ) - 50 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-5928
SELECT COALESCE ( - - 18, - COUNT ( * ) ) - 50 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT 59 - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-5929
SELECT 59 - COUNT ( * )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5930
SELECT DISTINCT - COUNT( + - CAST( NULL AS SIGNED ) ) * - 18 * + ( + 85 )
----
0

skipif mysql # not compatible
query I rowsort label-5930
SELECT DISTINCT - COUNT ( + - CAST ( NULL AS INTEGER ) ) * - 18 * + ( + 85 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5931
SELECT DISTINCT CASE + + 79 WHEN + 8 + 40 THEN NULL ELSE + 3 DIV - 57 END + + MIN( - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-5931
SELECT DISTINCT CASE + + 79 WHEN + 8 + 40 THEN NULL ELSE + 3 / - 57 END + + MIN ( - 56 )
----
-56

query I rowsort
SELECT ALL - 32 + + + 70 + - 52 * - 44
----
2326

query I rowsort
SELECT 98 + - + 46
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT ALL 69 + + NULLIF ( 39, + 10 + + COUNT( DISTINCT 91 ) ) AS col2
----
108

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL 69 + + NULLIF ( 39, + 10 + + COUNT ( DISTINCT 91 ) ) AS col2
----
108

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5936
SELECT + 43 * - 43 - 9 DIV + 44
----
-1849

skipif mysql # not compatible
query I rowsort label-5936
SELECT + 43 * - 43 - 9 / + 44
----
-1849

query I rowsort
SELECT 44 + 43
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5938
SELECT - 26 DIV - - 95
----
0

skipif mysql # not compatible
query I rowsort label-5938
SELECT - 26 / - - 95
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5939
SELECT + 35 + - 33 + + + CAST( NULL AS SIGNED ) + + COUNT( - 61 ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5939
SELECT + 35 + - 33 + + + CAST ( NULL AS INTEGER ) + + COUNT ( - 61 ) * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT ALL + + 27 + - COUNT( * ) - + 34 * COUNT( * ) * 42
----
-1402

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL + + 27 + - COUNT ( * ) - + 34 * COUNT ( * ) * 42
----
-1402

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT 67 + COUNT( * ) * + 63
----
130

skipif mysql # not compatible
query I rowsort label-5941
SELECT 67 + COUNT ( * ) * + 63
----
130

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

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL NULLIF ( + COUNT ( * ), 88 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5943
SELECT CASE - COUNT( 48 ) WHEN + 17 THEN 70 - 55 WHEN - 78 THEN NULL WHEN - 70 + 92 * + CAST( NULL AS SIGNED ) THEN NULL ELSE + 10 END AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5943
SELECT CASE - COUNT ( 48 ) WHEN + 17 THEN 70 - 55 WHEN - 78 THEN NULL WHEN - 70 + 92 * + CAST ( NULL AS INTEGER ) THEN NULL ELSE + 10 END AS col0
----
10

query I rowsort
SELECT ALL - + 52 * 65
----
-3380

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT DISTINCT + ( COUNT( * ) ) + 26 + - 27 * SUM( 86 ) AS col0
----
-2295

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT + ( COUNT ( * ) ) + 26 + - 27 * SUM ( 86 ) AS col0
----
-2295

onlyif mysql # aggregate syntax: 
query II rowsort label-5946
SELECT - COUNT( * ) AS col1, + 74 + - 49 - + MIN( ALL 24 - 26 )
----
-1
27

skipif mysql # not compatible
query II rowsort label-5946
SELECT - COUNT ( * ) AS col1, + 74 + - 49 - + MIN ( ALL 24 - 26 )
----
-1
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT DISTINCT - + ( 94 ) - + - 15 * COUNT( 49 + - 82 * 80 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT - + ( 94 ) - + - 15 * COUNT ( 49 + - 82 * 80 ) AS col1
----
-79

query I rowsort
SELECT 26 * + 67 AS col2
----
1742

query I rowsort
SELECT DISTINCT - - 10 * + + 29 + - - 91
----
381

query II rowsort
SELECT 15 - 39 AS col0, 53 AS col2
----
-24
53

onlyif mysql # DIV for integer division: 
query I rowsort label-5951
SELECT 77 DIV + 77 - - 94 + + + 20 AS col0
----
115

skipif mysql # not compatible
query I rowsort label-5951
SELECT 77 / + 77 - - 94 + + + 20 AS col0
----
115

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

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

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

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

query II rowsort
SELECT DISTINCT - 32 * + 98, - 25 * + 37 AS col2
----
-3136
-925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5955
SELECT ALL + 41 - + - CAST( + NULLIF ( - 80, CASE 68 WHEN 37 THEN 19 END ) AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL + 41 - + - CAST ( + NULLIF ( - 80, CASE 68 WHEN 37 THEN 19 END ) AS INTEGER )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5956
SELECT DISTINCT 30 DIV - 35 * + + MIN( + + 32 ) * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5956
SELECT DISTINCT 30 / - 35 * + + MIN ( + + 32 ) * + COUNT ( * )
----
0

query I rowsort
SELECT 44 * CASE + 48 WHEN + CASE ( 78 ) WHEN - 82 THEN + 94 END THEN NULL ELSE 51 END AS col2
----
2244

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT ALL 65 * - COUNT( + - 39 )
----
-65

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL 65 * - COUNT ( + - 39 )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5961
SELECT ALL - CAST( CASE + - 63 WHEN - 48 + COUNT( * ) / + 42 THEN NULL WHEN 21 THEN - COALESCE ( 82, MAX( ALL 47 ) ) + - 68 * - 23 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL - CAST ( CASE + - 63 WHEN - 48 + COUNT ( * ) / + 42 THEN NULL WHEN 21 THEN - COALESCE ( 82, MAX ( ALL 47 ) ) + - 68 * - 23 END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5962
SELECT MIN( ALL + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT MIN ( ALL + CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 69 * - 29
----
-2001

query I rowsort
SELECT ALL 87 * 69
----
6003

query I rowsort
SELECT DISTINCT 64 + 86 + - 36 * + 96 AS col2
----
-3306

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5967
SELECT + ( + COUNT( * ) ) * + 83 DIV - + NULLIF ( 79, COUNT( * ) * - 46 ) - SUM( ALL + 38 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-5967
SELECT + ( + COUNT ( * ) ) * + 83 / - + NULLIF ( 79, COUNT ( * ) * - 46 ) - SUM ( ALL + 38 ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT DISTINCT - COUNT( * ) * SUM( ALL + 97 ) col2
----
-97

skipif mysql # not compatible
query I rowsort label-5968
SELECT DISTINCT - COUNT ( * ) * SUM ( ALL + 97 ) col2
----
-97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT DISTINCT - 25 * COALESCE ( + + 85, + 61 + COUNT( * ) * + 44 )
----
-2125

skipif mysql # not compatible
query I rowsort label-5970
SELECT DISTINCT - 25 * COALESCE ( + + 85, + 61 + COUNT ( * ) * + 44 )
----
-2125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5971
SELECT ALL 14 + - 55 + - 87 + ( + COALESCE ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ), - 94, + 8 + - 31 ) ) * - 77 * + 72 AS col2
----
521008

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL 14 + - 55 + - 87 + ( + COALESCE ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), - 94, + 8 + - 31 ) ) * - 77 * + 72 AS col2
----
521008

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5974
SELECT ALL + 0 + + 12 + + COUNT( * ) DIV - 32 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL + 0 + + 12 + + COUNT ( * ) / - 32 AS col1
----
12

query I rowsort
SELECT + 50 + - 30 * 82 col0
----
-2410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5976
SELECT ALL - COUNT( * ) + NULLIF ( + MAX( ALL - COALESCE ( 62, 29 ) ), CASE 62 WHEN 80 THEN NULL WHEN + 85 THEN + 84 * 36 ELSE 9 * + 72 END * + 70 + - 72 * 74 ) DIV + 79 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL - COUNT ( * ) + NULLIF ( + MAX ( ALL - COALESCE ( 62, 29 ) ), CASE 62 WHEN 80 THEN NULL WHEN + 85 THEN + 84 * 36 ELSE 9 * + 72 END * + 70 + - 72 * 74 ) / + 79 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT ALL - 76 * - CASE 1 WHEN + ( - 92 ) THEN 36 + NULLIF ( + NULLIF ( 24, + 62 + 73 * - 95 ), 49 * MIN( 96 ) ) * 89 ELSE NULL END - ( SUM( DISTINCT + 60 ) ) / 49
----
NULL

skipif mysql # not compatible
query I rowsort label-5977
SELECT ALL - 76 * - CASE 1 WHEN + ( - 92 ) THEN 36 + NULLIF ( + NULLIF ( 24, + 62 + 73 * - 95 ), 49 * MIN ( 96 ) ) * 89 ELSE NULL END - ( SUM ( DISTINCT + 60 ) ) / 49
----
NULL

query I rowsort
SELECT ALL + + 87 + - 8 AS col0
----
79

query I rowsort
SELECT + 99 - + - 71 * 62 AS col2
----
4501

query I rowsort
SELECT DISTINCT ( 52 ) * - 11 AS col0
----
-572

query I rowsort
SELECT - 26 + - 90 + + 43 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT + - ( - - 51 ) + + COUNT( * ) + - COALESCE ( + 91, 75 * 13 - 82 * 23 ) AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-5982
SELECT + - ( - - 51 ) + + COUNT ( * ) + - COALESCE ( + 91, 75 * 13 - 82 * 23 ) AS col2
----
-141

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

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

query I rowsort
SELECT + 83 + - - 62 * - 16 AS col1
----
-909

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT ALL COUNT( DISTINCT - + 90 )
----
1

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL COUNT ( DISTINCT - + 90 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5986
SELECT + 60 + NULLIF ( - - CAST( NULL AS SIGNED ), COUNT( * ) * - + 12 - 64 ) * - 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5986
SELECT + 60 + NULLIF ( - - CAST ( NULL AS INTEGER ), COUNT ( * ) * - + 12 - 64 ) * - 86 AS col2
----
NULL

query II rowsort
SELECT ALL 29 AS col2, + 62 col2
----
29
62

query I rowsort
SELECT - 77 * - - 43 AS col2
----
-3311

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT DISTINCT - 0 * - COALESCE ( - COALESCE ( ( 89 ), 75 + 10 * - ( 91 + + SUM( 66 ) ), COUNT( * ) * 40, + 32 ), MIN( ALL - 86 ) + 44 * + 27, 24 + - COALESCE ( + 30 + 42 * + ( - 4 ), 66, 71 + - ( MIN( 48 ) + + COUNT( * ) ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT - 0 * - COALESCE ( - COALESCE ( ( 89 ), 75 + 10 * - ( 91 + + SUM ( 66 ) ), COUNT ( * ) * 40, + 32 ), MIN ( ALL - 86 ) + 44 * + 27, 24 + - COALESCE ( + 30 + 42 * + ( - 4 ), 66, 71 + - ( MIN ( 48 ) + + COUNT ( * ) ) ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT ALL CASE - 63 WHEN - COUNT( * ) THEN + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL CASE - 63 WHEN - COUNT ( * ) THEN + - COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL - 82 * 67 AS col2
----
-5494

query I rowsort
SELECT - 29 + + 92 col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5993
SELECT DISTINCT - 1 * - COUNT( * ) DIV - 12 * ( + CAST( + 95 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5993
SELECT DISTINCT - 1 * - COUNT ( * ) / - 12 * ( + CAST ( + 95 AS INTEGER ) )
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5995
SELECT ( - - 42 ) DIV - - 95 * + + 89 + - COUNT( * ) + - ( 0 ) * ( + 97 DIV 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-5995
SELECT ( - - 42 ) / - - 95 * + + 89 + - COUNT ( * ) + - ( 0 ) * ( + 97 / 87 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5996
SELECT ALL CAST( - COUNT( - 57 ) AS SIGNED ) * - 23 - 28 + 34
----
29

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL CAST ( - COUNT ( - 57 ) AS INTEGER ) * - 23 - 28 + 34
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5997
SELECT ( - + MAX( DISTINCT 25 ) ) AS col2, ( - - ( + CAST( NULL AS SIGNED ) ) ) AS col0
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-5997
SELECT ( - + MAX ( DISTINCT 25 ) ) AS col2, ( - - ( + CAST ( NULL AS INTEGER ) ) ) AS col0
----
-25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT NULLIF ( - - 26, + 37 * - NULLIF ( SUM( - 67 ), + 94 ) - 31 + 52 * - 72 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-5998
SELECT NULLIF ( - - 26, + 37 * - NULLIF ( SUM ( - 67 ), + 94 ) - 31 + 52 * - 72 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT NULLIF ( 53, 14 * + COUNT( * ) ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-5999
SELECT NULLIF ( 53, 14 * + COUNT ( * ) ) AS col1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6000
SELECT ALL CASE - - 6 WHEN ( + COALESCE ( - 59, + ( + 34 ) + CAST( - 31 AS SIGNED ) ) ) THEN - 5 ELSE NULL END * 41 + 64 * + 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL CASE - - 6 WHEN ( + COALESCE ( - 59, + ( + 34 ) + CAST ( - 31 AS INTEGER ) ) ) THEN - 5 ELSE NULL END * 41 + 64 * + 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT ALL COUNT( * ) * + - COUNT( 8 ) + - - 84
----
83

skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL COUNT ( * ) * + - COUNT ( 8 ) + - - 84
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6002
SELECT COALESCE ( 16, + CAST( NULL AS SIGNED ) ) * + 30 + - + COALESCE ( 20, - 38, + ( 50 ) * 22 ) col2
----
460

skipif mysql # not compatible
query I rowsort label-6002
SELECT COALESCE ( 16, + CAST ( NULL AS INTEGER ) ) * + 30 + - + COALESCE ( 20, - 38, + ( 50 ) * 22 ) col2
----
460

query I rowsort
SELECT DISTINCT + - 46 col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT ALL 23 * - ( COUNT( * ) ) + - 77 + - + 45
----
-145

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL 23 * - ( COUNT ( * ) ) + - 77 + - + 45
----
-145

query I rowsort
SELECT - 27 * + 57 * 61 + - 29
----
-93908

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6006
SELECT - + 65 - ( - - 3 ) * + - CAST( - 91 AS SIGNED )
----
-338

skipif mysql # not compatible
query I rowsort label-6006
SELECT - + 65 - ( - - 3 ) * + - CAST ( - 91 AS INTEGER )
----
-338

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT - 31 * 45 + + - COUNT( ALL + 53 ) AS col2
----
-1396

skipif mysql # not compatible
query I rowsort label-6007
SELECT - 31 * 45 + + - COUNT ( ALL + 53 ) AS col2
----
-1396

query I rowsort
SELECT ALL - ( + 75 ) * - + 20 AS col0
----
1500

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT DISTINCT + + CASE - + 73 WHEN CASE COUNT( * ) WHEN + CASE WHEN NULL IS NULL THEN NULL ELSE + 84 END THEN 65 + 86 END THEN 5 + 21 WHEN + 49 + - 93 * CASE 26 + 32 WHEN 93 + + 13 THEN ( - 40 ) - ( 4 ) / - 31 WHEN + 2 THEN - COUNT( 38 ) WHEN ( - 68 ) * - COUNT( * ) THEN 31 END THEN NULL ELSE 49 * + 75 END AS col0
----
3675

skipif mysql # not compatible
query I rowsort label-6009
SELECT DISTINCT + + CASE - + 73 WHEN CASE COUNT ( * ) WHEN + CASE WHEN NULL IS NULL THEN NULL ELSE + 84 END THEN 65 + 86 END THEN 5 + 21 WHEN + 49 + - 93 * CASE 26 + 32 WHEN 93 + + 13 THEN ( - 40 ) - ( 4 ) / - 31 WHEN + 2 THEN - COUNT ( 38 ) WHEN ( - 68 ) * - COUNT ( * ) THEN 31 END THEN NULL ELSE 49 * + 75 END AS col0
----
3675

onlyif mysql # DIV for integer division: 
query II rowsort label-6010
SELECT ALL - 90 * - 44 - + 97 col2, + 98 DIV - 19 col1
----
3863
-5

skipif mysql # not compatible
query II rowsort label-6010
SELECT ALL - 90 * - 44 - + 97 col2, + 98 / - 19 col1
----
3863
-5

query I rowsort
SELECT + - ( - - 99 ) + 61
----
-38

query I rowsort
SELECT + ( + + 95 ) * 3 AS col2
----
285

query I rowsort
SELECT ALL + - 68 * + 13 * - 18 AS col0
----
15912

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT - 51 * + 29 * + 48 + - + COUNT( - 86 ) * ( 34 )
----
-71026

skipif mysql # not compatible
query I rowsort label-6014
SELECT - 51 * + 29 * + 48 + - + COUNT ( - 86 ) * ( 34 )
----
-71026

query I rowsort
SELECT + - 33 + 16 * - 66
----
-1089

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT CASE - 3 WHEN - MIN( DISTINCT 85 ) * AVG ( DISTINCT 95 ) + 99 / + 3 THEN 20 WHEN - NULLIF ( - 10, MAX( 67 ) ) * ( + 20 * 37 ) THEN COUNT( * ) + 52 WHEN 89 THEN - MIN( ALL 94 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6016
SELECT CASE - 3 WHEN - MIN ( DISTINCT 85 ) * AVG ( DISTINCT 95 ) + 99 / + 3 THEN 20 WHEN - NULLIF ( - 10, MAX ( 67 ) ) * ( + 20 * 37 ) THEN COUNT ( * ) + 52 WHEN 89 THEN - MIN ( ALL 94 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 33 + 93 AS col2
----
126

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6019
SELECT + CAST( NULL AS SIGNED ) + + - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT + CAST ( NULL AS INTEGER ) + + - 37 AS col2
----
NULL

query I rowsort
SELECT ALL - 3 * - 96 AS col0
----
288

query II rowsort
SELECT DISTINCT 24 AS col2, + 50 * + 58 AS col1
----
24
2900

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT DISTINCT 89 * + ( + + MAX( 8 ) )
----
712

skipif mysql # not compatible
query I rowsort label-6022
SELECT DISTINCT 89 * + ( + + MAX ( 8 ) )
----
712

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

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

query II rowsort
SELECT 58 AS col1, ( - 75 )
----
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT - NULLIF ( + - MAX( ALL 48 ), - + 21 )
----
48

skipif mysql # not compatible
query I rowsort label-6025
SELECT - NULLIF ( + - MAX ( ALL 48 ), - + 21 )
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6026
SELECT + 18 - - 11 + + 81 DIV - 30 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-6026
SELECT + 18 - - 11 + + 81 / - 30 AS col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6027
SELECT ALL 5 DIV + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL 5 / + 90 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT + MIN( + ( - - 34 ) ) + 90
----
124

skipif mysql # not compatible
query I rowsort label-6028
SELECT + MIN ( + ( - - 34 ) ) + 90
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6029
SELECT DISTINCT ( - - 1 ) / - - COUNT( + + ( - - 43 ) ) * + CAST( NULL AS SIGNED ) + 95 * 0 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6029
SELECT DISTINCT ( - - 1 ) / - - COUNT ( + + ( - - 43 ) ) * + CAST ( NULL AS INTEGER ) + 95 * 0 col1
----
NULL

query II rowsort
SELECT DISTINCT + 7, 54 + + 82 AS col2
----
7
136

onlyif mysql # DIV for integer division: 
query I rowsort label-6031
SELECT ALL 37 DIV 51 + + + 88
----
88

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL 37 / 51 + + + 88
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6032
SELECT CAST( 26 AS SIGNED ) AS col1, + 61
----
26
61

skipif mysql # not compatible
query II rowsort label-6032
SELECT CAST ( 26 AS INTEGER ) AS col1, + 61
----
26
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6033
SELECT DISTINCT 5 / + COUNT( * ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6033
SELECT DISTINCT 5 / + COUNT ( * ) + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6034
SELECT ALL CASE - 50 WHEN - MIN( ALL + 21 ) + - 62 + + 94 + 21 / 14 THEN + 10 * 99 + + 21 * ( - CAST( COUNT( * ) AS SIGNED ) ) ELSE NULL END / 0 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL CASE - 50 WHEN - MIN ( ALL + 21 ) + - 62 + + 94 + 21 / 14 THEN + 10 * 99 + + 21 * ( - CAST ( COUNT ( * ) AS INTEGER ) ) ELSE NULL END / 0 + COUNT ( * )
----
NULL

query I rowsort
SELECT 95 * 82 + + 51 col2
----
7841

query I rowsort
SELECT ALL - - CASE + - 47 WHEN - 53 THEN - 6 END
----
NULL

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

query II rowsort
SELECT DISTINCT - - 47 AS col1, - 56
----
47
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6039
SELECT + 39 DIV - ( + 85 ) * - 49 * + COUNT( - 4 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6039
SELECT + 39 / - ( + 85 ) * - 49 * + COUNT ( - 4 ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6040
SELECT + CAST( - 5 AS SIGNED ) * + - 33 * 73 * 70
----
843150

skipif mysql # not compatible
query I rowsort label-6040
SELECT + CAST ( - 5 AS INTEGER ) * + - 33 * 73 * 70
----
843150

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT - 61 + COUNT( * ) + 19 + + 2 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-6042
SELECT - 61 + COUNT ( * ) + 19 + + 2 AS col0
----
-39

query I rowsort
SELECT DISTINCT + 63 * - - 91 + + 44
----
5777

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT MIN( 43 ) - - - 20 - + + 95 + - 32 * - 34
----
1016

skipif mysql # not compatible
query I rowsort label-6044
SELECT MIN ( 43 ) - - - 20 - + + 95 + - 32 * - 34
----
1016

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6046
SELECT 34 * + 50 * - 86 AS col1, + COUNT( * ) * + 31 AS col0
----
-146200
31

skipif mysql # not compatible
query II rowsort label-6046
SELECT 34 * + 50 * - 86 AS col1, + COUNT ( * ) * + 31 AS col0
----
-146200
31

onlyif mysql # aggregate syntax: 
query II rowsort label-6047
SELECT ALL 12 + + 97 - + - COALESCE ( + + 94, - + 1 ) AS col0, - COUNT( * ) AS col0
----
203
-1

skipif mysql # not compatible
query II rowsort label-6047
SELECT ALL 12 + + 97 - + - COALESCE ( + + 94, - + 1 ) AS col0, - COUNT ( * ) AS col0
----
203
-1

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

skipif mysql # not compatible
query I rowsort label-6048
SELECT 50 + + 64 / - + COUNT ( * )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6049
SELECT AVG ( 45 ) - - + ( + 60 ) + + 2 + + MIN( - 17 ) + ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6049
SELECT AVG ( 45 ) - - + ( + 60 ) + + 2 + + MIN ( - 17 ) + ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 64 + + ( - 21 )
----
43

query I rowsort
SELECT ALL 58 + + 50 * 64 * - 71 col1
----
-227142

query I rowsort
SELECT DISTINCT 63 + - - ( 78 )
----
141

query I rowsort
SELECT 57 * - + 68 + + 45 AS col1
----
-3831

query I rowsort
SELECT ALL 98 - 72 col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT 75 * + CASE - COALESCE ( - 31, - - 24 ) WHEN - - 47 - 2 THEN NULL ELSE MAX( ALL - 32 ) END
----
-2400

skipif mysql # not compatible
query I rowsort label-6055
SELECT 75 * + CASE - COALESCE ( - 31, - - 24 ) WHEN - - 47 - 2 THEN NULL ELSE MAX ( ALL - 32 ) END
----
-2400

query I rowsort
SELECT 10 * + 66 AS col0
----
660

query I rowsort
SELECT 98 + + + 97 + + 37 AS col2
----
232

onlyif mysql # DIV for integer division: 
query I rowsort label-6058
SELECT DISTINCT - - 56 * - 0 DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT - - 56 * - 0 / 55
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT ALL + COUNT( - 39 ) - - 71
----
72

skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL + COUNT ( - 39 ) - - 71
----
72

query I rowsort
SELECT + 43 * + 33 AS col2
----
1419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6061
SELECT DISTINCT + - 43 * + 12 + + CAST( NULL AS SIGNED ) * - COUNT( * ) * + COUNT( * ) AS col1, 50 AS col0
----
NULL
50

skipif mysql # not compatible
query II rowsort label-6061
SELECT DISTINCT + - 43 * + 12 + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + COUNT ( * ) AS col1, 50 AS col0
----
NULL
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT - COUNT( * ) * + 5 * + ( - 90 ) * + MAX( + + 47 ) AS col2
----
21150

skipif mysql # not compatible
query I rowsort label-6062
SELECT - COUNT ( * ) * + 5 * + ( - 90 ) * + MAX ( + + 47 ) AS col2
----
21150

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT ALL - - MAX( + - 82 ) col2
----
-82

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL - - MAX ( + - 82 ) col2
----
-82

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6067
SELECT 15 + + + 58 * 37 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6067
SELECT 15 + + + 58 * 37 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - NULLIF ( + + 8, + + 45 )
----
-8

query I rowsort
SELECT ALL + - 13 + 71
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6070
SELECT + + 59 * + 84 * 4 * + - 8 + - COUNT( * ) * + COALESCE ( - 44, - 40 DIV - 61, 85 * 87 + 66 )
----
-158548

skipif mysql # not compatible
query I rowsort label-6070
SELECT + + 59 * + 84 * 4 * + - 8 + - COUNT ( * ) * + COALESCE ( - 44, - 40 / - 61, 85 * 87 + 66 )
----
-158548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6071
SELECT ALL + COUNT( * ) + 95 + + + 82 * CAST( NULL AS SIGNED ) * ( CAST( - - 13 AS SIGNED ) ) / 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6071
SELECT ALL + COUNT ( * ) + 95 + + + 82 * CAST ( NULL AS INTEGER ) * ( CAST ( - - 13 AS INTEGER ) ) / 29 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6072
SELECT 34 DIV 9 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6072
SELECT 34 / 9 AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6073
SELECT 69 DIV 52 col1
----
1

skipif mysql # not compatible
query I rowsort label-6073
SELECT 69 / 52 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT 40 * 9 * 10 * 26 * - COUNT( * ) AS col0
----
-93600

skipif mysql # not compatible
query I rowsort label-6074
SELECT 40 * 9 * 10 * 26 * - COUNT ( * ) AS col0
----
-93600

query II rowsort
SELECT - 80 AS col0, 16 * - 19 AS col0
----
-80
-304

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT ALL - 24 * COALESCE ( - - 88, 94 * 52 + + COUNT( * ) * - 72 )
----
-2112

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL - 24 * COALESCE ( - - 88, 94 * 52 + + COUNT ( * ) * - 72 )
----
-2112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6078
SELECT ALL - CAST( + 84 AS SIGNED ) + - ( 11 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL - CAST ( + 84 AS INTEGER ) + - ( 11 ) AS col1
----
-95

query II rowsort
SELECT 29 AS col0, 77 AS col0
----
29
77

query I rowsort
SELECT ALL + 52 + 13 AS col2
----
65

query I rowsort
SELECT DISTINCT + 79 * 14 * - 63 * + 40
----
-2787120

query I rowsort
SELECT 59 + - - 18
----
77

query I rowsort
SELECT 94 * 29
----
2726

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6084
SELECT ALL - 52 - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL - 52 - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - 81 - + - 44 * - 13 * - 49 * + - ( NULLIF ( 90, - + 95 * - COALESCE ( + 76, 65 + + ( - 84 + 75 ) ) ) ) + 54
----
-2522547

query I rowsort
SELECT ALL CASE 41 WHEN - 4 THEN - - 77 END * + 43 - + ( - + 45 ) AS col2
----
NULL

query I rowsort
SELECT 3 * + 64 + - + 34 * 22 * + + 77 col0
----
-57404

query I rowsort
SELECT + + 87 * 64 AS col2
----
5568

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT - 57 * + 75 * 57 * - NULLIF ( + 57, 70 ) + - ( + 27 ) + + COUNT( * ) - 35
----
13889414

skipif mysql # not compatible
query I rowsort label-6090
SELECT - 57 * + 75 * 57 * - NULLIF ( + 57, 70 ) + - ( + 27 ) + + COUNT ( * ) - 35
----
13889414

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT + 70 / + 70 - COUNT( * ) + - 12 - + + CASE + ( + 50 ) WHEN - - NULLIF ( - 85, + 6 * 77 + 17 ) * COUNT( * ) THEN NULL WHEN 38 + COUNT( * ) THEN - 42 + + MAX( DISTINCT 89 ) END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6091
SELECT + 70 / + 70 - COUNT ( * ) + - 12 - + + CASE + ( + 50 ) WHEN - - NULLIF ( - 85, + 6 * 77 + 17 ) * COUNT ( * ) THEN NULL WHEN 38 + COUNT ( * ) THEN - 42 + + MAX ( DISTINCT 89 ) END * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6092
SELECT - 94 DIV + COALESCE ( + + 26, 27 ) + + COUNT( * ) * - 68 + - SUM( + ( 53 ) ) * + 4 AS col2
----
-283

skipif mysql # not compatible
query I rowsort label-6092
SELECT - 94 / + COALESCE ( + + 26, 27 ) + + COUNT ( * ) * - 68 + - SUM ( + ( 53 ) ) * + 4 AS col2
----
-283

query I rowsort
SELECT + 63 * 99 * - 14 AS col2
----
-87318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6094
SELECT + 68 + + + COALESCE ( + ( + 58 ), - 13, - CASE - 64 WHEN + NULLIF ( - NULLIF ( + CAST( - 94 AS SIGNED ), 83 ), NULLIF ( 75, - 72 ) ) / + 53 THEN - 1 END ) * 50
----
2968

skipif mysql # not compatible
query I rowsort label-6094
SELECT + 68 + + + COALESCE ( + ( + 58 ), - 13, - CASE - 64 WHEN + NULLIF ( - NULLIF ( + CAST ( - 94 AS INTEGER ), 83 ), NULLIF ( 75, - 72 ) ) / + 53 THEN - 1 END ) * 50
----
2968

query I rowsort
SELECT 76 * + 31 + + 43 AS col1
----
2399

query I rowsort
SELECT + - 60 * + ( + 21 ) AS col2
----
-1260

query II rowsort
SELECT + + 2 + 48 * - 11 AS col2, - 62
----
-526
-62

query I rowsort
SELECT ALL - 27 * 11 + - + 49 col1
----
-346

query I rowsort
SELECT DISTINCT - 91 * 38 + + 61
----
-3397

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT 25 * + - 78 + NULLIF ( 54, + + ( - CASE - 6 WHEN COUNT( * ) THEN - 71 - + 46 / - 74 WHEN 46 THEN NULL ELSE NULL END ) ) AS col1
----
-1896

skipif mysql # not compatible
query I rowsort label-6100
SELECT 25 * + - 78 + NULLIF ( 54, + + ( - CASE - 6 WHEN COUNT ( * ) THEN - 71 - + 46 / - 74 WHEN 46 THEN NULL ELSE NULL END ) ) AS col1
----
-1896

query I rowsort
SELECT + 80 * 47 * + 56
----
210560

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT ALL - 48 * - 12 * - 20 + 61 + + COUNT( * ) * - 84 * - 75 + - 91
----
-5250

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL - 48 * - 12 * - 20 + 61 + + COUNT ( * ) * - 84 * - 75 + - 91
----
-5250

query II rowsort
SELECT 32 AS col1, + 50 AS col0
----
32
50

query II rowsort
SELECT + 69 AS col2, + ( + 50 ) + - - 32 AS col2
----
69
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6105
SELECT ALL 89 + + - 70 * CAST( 53 AS SIGNED ) AS col1
----
-3621

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL 89 + + - 70 * CAST ( 53 AS INTEGER ) AS col1
----
-3621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6106
SELECT + 95 + + 10 col1, CASE + 85 WHEN CAST( NULL AS SIGNED ) * - NULLIF ( - ( - COUNT( * ) ), + - CASE COUNT( DISTINCT + 36 ) WHEN COUNT( * ) / 90 THEN - 29 + - SUM( 63 + + 95 * 82 ) * 96 WHEN 67 * - MIN( 32 ) THEN NULL END ) + + ( + 21 ) THEN ( 41 ) END * + COUNT( * ) + 98 col0
----
105
NULL

skipif mysql # not compatible
query II rowsort label-6106
SELECT + 95 + + 10 col1, CASE + 85 WHEN CAST ( NULL AS INTEGER ) * - NULLIF ( - ( - COUNT ( * ) ), + - CASE COUNT ( DISTINCT + 36 ) WHEN COUNT ( * ) / 90 THEN - 29 + - SUM ( 63 + + 95 * 82 ) * 96 WHEN 67 * - MIN ( 32 ) THEN NULL END ) + + ( + 21 ) THEN ( 41 ) END * + COUNT ( * ) + 98 col0
----
105
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT + CASE + + MIN( ALL - 31 ) WHEN + 15 THEN NULL ELSE + + 83 END + - 2 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-6108
SELECT + CASE + + MIN ( ALL - 31 ) WHEN + 15 THEN NULL ELSE + + 83 END + - 2 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT COUNT( + - 36 ) * + COUNT( * ) + + 83 * 58 col0
----
4815

skipif mysql # not compatible
query I rowsort label-6109
SELECT COUNT ( + - 36 ) * + COUNT ( * ) + + 83 * 58 col0
----
4815

query I rowsort
SELECT - 65 - - - 9 - + 36 col0
----
-110

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

skipif mysql # not compatible
query I rowsort label-6111
SELECT DISTINCT 88 - + ( - - COUNT ( * ) ) AS col2
----
87

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

query I rowsort
SELECT ALL - 20 - - 92 * 66 AS col0
----
6052

query I rowsort
SELECT - 93 + 47 * + 34 + - - 67
----
1572

query I rowsort
SELECT + 5 + ( + 30 ) + + + 98 AS col1
----
133

query I rowsort
SELECT DISTINCT NULLIF ( - ( + 2 ), - 0 / + 57 )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6117
SELECT ALL + SUM( DISTINCT - - 80 ) * 79 DIV - MIN( 27 ) + 17
----
-217

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL + SUM ( DISTINCT - - 80 ) * 79 / - MIN ( 27 ) + 17
----
-217

query I rowsort
SELECT - 87 - - 28
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-6119
SELECT - 57 + - + 57 DIV - 78 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-6119
SELECT - 57 + - + 57 / - 78 AS col2
----
-57

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6121
SELECT - 51 DIV 93 AS col2, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-6121
SELECT - 51 / 93 AS col2, COUNT ( * )
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6122
SELECT ALL - + COALESCE ( - - 16, - CASE - - ( ( - - SUM( - 77 ) ) ) WHEN + + ( - - NULLIF ( 64, - 64 / COALESCE ( ( + 5 ), 63 * 5 + CASE + 81 + 35 WHEN - 34 THEN - 12 ELSE NULL END, - COUNT( * ) ) + - 56 ) ) - + COALESCE ( - CAST( - 81 AS SIGNED ), - 33 * + 5 ) THEN NULL WHEN - 65 THEN + CASE 94 WHEN - COUNT( * ) THEN + 50 * 13 WHEN + 9 + SUM( 48 ) * 47 THEN NULL END END + - 78 ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL - + COALESCE ( - - 16, - CASE - - ( ( - - SUM ( - 77 ) ) ) WHEN + + ( - - NULLIF ( 64, - 64 / COALESCE ( ( + 5 ), 63 * 5 + CASE + 81 + 35 WHEN - 34 THEN - 12 ELSE NULL END, - COUNT ( * ) ) + - 56 ) ) - + COALESCE ( - CAST ( - 81 AS INTEGER ), - 33 * + 5 ) THEN NULL WHEN - 65 THEN + CASE 94 WHEN - COUNT ( * ) THEN + 50 * 13 WHEN + 9 + SUM ( 48 ) * 47 THEN NULL END END + - 78 ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 39 + - 97 + - - 68 - + ( + 49 ) AS col2
----
-117

query I rowsort
SELECT + NULLIF ( - + 22, - 8 + - + 38 ) / 83 + + + CASE 59 WHEN + 25 THEN + 68 END AS col0
----
NULL

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

query II rowsort
SELECT + + ( + + 96 ), - 47 * - + 96 AS col2
----
96
4512

query I rowsort
SELECT ALL 58 * + ( - - 98 ) AS col2
----
5684

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

skipif mysql # not compatible
query II rowsort label-6128
SELECT - COUNT ( * ) / 93 col0, + 69 AS col1
----
0
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6129
SELECT DISTINCT 42 * CAST( + COUNT( - 30 ) AS SIGNED ) DIV + - 63 DIV COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT 42 * CAST ( + COUNT ( - 30 ) AS INTEGER ) / + - 63 / COUNT ( * ) AS col0
----
0

query I rowsort
SELECT + NULLIF ( - + 4, - 81 )
----
-4

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6132
SELECT + CAST( NULL AS SIGNED ) / 23 + + + CAST( - AVG ( ALL + + 26 ) AS DECIMAL ) + + - COUNT( * ) + COUNT( * ) + 90 * - 11 + 55 * + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-6132
SELECT + CAST ( NULL AS INTEGER ) / 23 + + + CAST ( - AVG ( ALL + + 26 ) AS REAL ) + + - COUNT ( * ) + COUNT ( * ) + 90 * - 11 + 55 * + 16
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6133
SELECT + ( 16 ) + - NULLIF ( - SUM( ALL - 62 ), + 61 * + + ( - + ( - 32 ) ) ) - 37 DIV 90 col2
----
-46

skipif mysql # not compatible
query I rowsort label-6133
SELECT + ( 16 ) + - NULLIF ( - SUM ( ALL - 62 ), + 61 * + + ( - + ( - 32 ) ) ) - 37 / 90 col2
----
-46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT DISTINCT SUM( DISTINCT + 21 ) * 62
----
1302

skipif mysql # not compatible
query I rowsort label-6135
SELECT DISTINCT SUM ( DISTINCT + 21 ) * 62
----
1302

query I rowsort
SELECT ALL NULLIF ( 1, - COALESCE ( + + 86, 49 / + 93, - 43 ) ) AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT MIN( - 27 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-6138
SELECT MIN ( - 27 ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT + COUNT( * ) * + 78 * MIN( + 6 ) col2
----
468

skipif mysql # not compatible
query I rowsort label-6139
SELECT + COUNT ( * ) * + 78 * MIN ( + 6 ) col2
----
468

query I rowsort
SELECT DISTINCT 34 * ( + + 18 ) * ( + 25 ) AS col1
----
15300

query I rowsort
SELECT DISTINCT 81 * - 85 * 93 * + 2 AS col1
----
-1280610

query I rowsort
SELECT 13 * 70 AS col2
----
910

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT CASE + 72 WHEN + + COUNT( * ) + + + ( - 92 ) THEN + 74 WHEN + COUNT( * ) * + 74 + + 56 * 15 THEN NULL WHEN COUNT( * ) + + COUNT( * ) THEN + 19 ELSE COUNT( * ) + + COALESCE ( 80, - 52 * 91 + 52, + ( - 81 ) ) END * + 86
----
6966

skipif mysql # not compatible
query I rowsort label-6143
SELECT CASE + 72 WHEN + + COUNT ( * ) + + + ( - 92 ) THEN + 74 WHEN + COUNT ( * ) * + 74 + + 56 * 15 THEN NULL WHEN COUNT ( * ) + + COUNT ( * ) THEN + 19 ELSE COUNT ( * ) + + COALESCE ( 80, - 52 * 91 + 52, + ( - 81 ) ) END * + 86
----
6966

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

skipif mysql # not compatible
query I rowsort label-6144
SELECT - COUNT ( - 39 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT 91 + - NULLIF ( CASE 96 WHEN + 43 THEN - 64 ELSE NULL END, - + 38 * COUNT( * ) + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6145
SELECT 91 + - NULLIF ( CASE 96 WHEN + 43 THEN - 64 ELSE NULL END, - + 38 * COUNT ( * ) + COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT + 36 * + 73 AS col0
----
2628

onlyif mysql # aggregate syntax: 
query II rowsort label-6147
SELECT ( + MAX( DISTINCT - ( + 58 ) ) ) - + + 46 AS col0, + 52 * - 91 AS col1
----
-104
-4732

skipif mysql # not compatible
query II rowsort label-6147
SELECT ( + MAX ( DISTINCT - ( + 58 ) ) ) - + + 46 AS col0, + 52 * - 91 AS col1
----
-104
-4732

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6150
SELECT DISTINCT - 71 DIV 38
----
-1

skipif mysql # not compatible
query I rowsort label-6150
SELECT DISTINCT - 71 / 38
----
-1

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

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

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

query I rowsort
SELECT COALESCE ( + 47, + 92, - 34 ) AS col1
----
47

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

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

query I rowsort
SELECT ALL - 80 + + - 96 AS col0
----
-176

query I rowsort
SELECT ALL + + ( - 35 ) + 37 + - - 96 - + 36 AS col0
----
62

query I rowsort
SELECT + COALESCE ( 31, + - ( + - 87 ) * + - ( + - 56 ) )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6158
SELECT DISTINCT + - COUNT( * ) + + - 95 + + - 84 + + NULLIF ( - CAST( - 72 AS SIGNED ), + - SUM( ALL + 64 ) ) * ( + CASE + 34 WHEN MAX( 76 ) THEN 68 ELSE NULL END ) + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT + - COUNT ( * ) + + - 95 + + - 84 + + NULLIF ( - CAST ( - 72 AS INTEGER ), + - SUM ( ALL + 64 ) ) * ( + CASE + 34 WHEN MAX ( 76 ) THEN 68 ELSE NULL END ) + - 65
----
NULL

query I rowsort
SELECT - 89 * - + 71 AS col2
----
6319

query II rowsort
SELECT 37, 55 AS col0
----
37
55

query I rowsort
SELECT DISTINCT + 38 - - ( + 3 ) AS col2
----
41

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

skipif mysql # not compatible
query I rowsort label-6162
SELECT ALL COUNT ( * ) * + + 64 / 21 / - ( - 58 )
----
0

query II rowsort
SELECT ALL - 23, 26 col2
----
-23
26

query II rowsort
SELECT + 33 AS col2, 57 * + - 83
----
33
-4731

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6165
SELECT 84 + - 71 DIV - COUNT( * ) - - 39
----
194

skipif mysql # not compatible
query I rowsort label-6165
SELECT 84 + - 71 / - COUNT ( * ) - - 39
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT ALL + 3 * - ( - COALESCE ( + SUM( ALL + + 33 ), - COUNT( * ), - MAX( 16 ) ) ) col1
----
99

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL + 3 * - ( - COALESCE ( + SUM ( ALL + + 33 ), - COUNT ( * ), - MAX ( 16 ) ) ) col1
----
99

query I rowsort
SELECT DISTINCT - 48 * + 69
----
-3312

onlyif mysql # DIV for integer division: 
query I rowsort label-6168
SELECT DISTINCT 87 DIV NULLIF ( 54, - 96 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT 87 / NULLIF ( 54, - 96 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6169
SELECT DISTINCT COUNT( * ), - ( + 24 ) + + COUNT( * ) AS col0
----
1
-23

skipif mysql # not compatible
query II rowsort label-6169
SELECT DISTINCT COUNT ( * ), - ( + 24 ) + + COUNT ( * ) AS col0
----
1
-23

query I rowsort
SELECT ALL 22 * 51 col0
----
1122

query I rowsort
SELECT 19 + + 95 AS col1
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-6172
SELECT ALL 34 DIV + 93 * 44 col1
----
0

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL 34 / + 93 * 44 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6173
SELECT NULLIF ( - 21, 4 / + 18 + MIN( + 81 ) * ( 14 ) * CAST( - 94 AS SIGNED ) ) + + 23 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6173
SELECT NULLIF ( - 21, 4 / + 18 + MIN ( + 81 ) * ( 14 ) * CAST ( - 94 AS INTEGER ) ) + + 23 AS col2
----
2

query I rowsort
SELECT ALL 90 + - - 30 - + 38 AS col0
----
82

query I rowsort
SELECT 49 + - 47
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6176
SELECT 36 + - 4 * CAST( NULL AS SIGNED ) / + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-6176
SELECT 36 + - 4 * CAST ( NULL AS INTEGER ) / + + 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT - ( MIN( ALL 17 ) ) + + 64 + - 13 + - 29 - + COALESCE ( + ( - 61 ), - 77 ) col1
----
66

skipif mysql # not compatible
query I rowsort label-6177
SELECT - ( MIN ( ALL 17 ) ) + + 64 + - 13 + - 29 - + COALESCE ( + ( - 61 ), - 77 ) col1
----
66

query I rowsort
SELECT DISTINCT - 42 + - - 73 AS col0
----
31

query I rowsort
SELECT ALL 57 + 67 * - 67 * + - 55 + + - 46 AS col0
----
246906

onlyif mysql # aggregate syntax: 
query II rowsort label-6180
SELECT - + COUNT( * ) AS col0, - 0 * - COUNT( * ) AS col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-6180
SELECT - + COUNT ( * ) AS col0, - 0 * - COUNT ( * ) AS col1
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6181
SELECT 28 * + COUNT( DISTINCT - ( + CAST( NULL AS SIGNED ) ) ), ( + 10 ) AS col2
----
0
10

skipif mysql # not compatible
query II rowsort label-6181
SELECT 28 * + COUNT ( DISTINCT - ( + CAST ( NULL AS INTEGER ) ) ), ( + 10 ) AS col2
----
0
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6182
SELECT DISTINCT CAST( + 93 AS SIGNED ) + 44
----
137

skipif mysql # not compatible
query I rowsort label-6182
SELECT DISTINCT CAST ( + 93 AS INTEGER ) + 44
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6183
SELECT CAST( NULL AS SIGNED ) / + ( + - 72 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6183
SELECT CAST ( NULL AS INTEGER ) / + ( + - 72 ) AS col2
----
NULL

query I rowsort
SELECT + 37 + - 13 * + 89 + 51
----
-1069

query I rowsort
SELECT - 76 * 72 + + 28
----
-5444

onlyif mysql # DIV for integer division: 
query I rowsort label-6186
SELECT ALL 16 DIV - 46 * - + 82 * 56 + - + 80
----
-80

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL 16 / - 46 * - + 82 * 56 + - + 80
----
-80

query II rowsort
SELECT 21 col1, 21
----
21
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT + COUNT( * ) + + 65 + 54 * 92 * - 62 AS col2
----
-307950

skipif mysql # not compatible
query I rowsort label-6189
SELECT + COUNT ( * ) + + 65 + 54 * 92 * - 62 AS col2
----
-307950

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

query I rowsort
SELECT ALL + ( - 50 ) * 56 * + ( 66 )
----
-184800

onlyif mysql # DIV for integer division: 
query I rowsort label-6192
SELECT 78 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-6192
SELECT 78 / 91
----
0

query I rowsort
SELECT 88 * - 44
----
-3872

query I rowsort
SELECT ALL + 34 * - 42 * + 74
----
-105672

query I rowsort
SELECT - 94 + + + 49 + - + 35
----
-80

query I rowsort
SELECT - ( - 78 ) * + ( + 3 ) + - - 14 * - 10 AS col1
----
94

query I rowsort
SELECT - 70 * - 51 AS col0
----
3570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6198
SELECT - 69 * + + 96 + - + 5 * - 17 * - CAST( - 76 AS SIGNED ) + - 71 * - + 9 + - ( - 69 )
----
544

skipif mysql # not compatible
query I rowsort label-6198
SELECT - 69 * + + 96 + - + 5 * - 17 * - CAST ( - 76 AS INTEGER ) + - 71 * - + 9 + - ( - 69 )
----
544

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

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

query I rowsort
SELECT - 34 * 94 AS col2
----
-3196

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6201
SELECT ALL CAST( NULL AS DECIMAL ) * + - 69 * + 87 * + + 7 * + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL CAST ( NULL AS REAL ) * + - 69 * + 87 * + + 7 * + 7 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 81 * - 34 AS col2, ( 87 ) AS col1
----
-2754
87

onlyif mysql # aggregate syntax: 
query II rowsort label-6203
SELECT - 98 * - COUNT( * ), + 66 * - ( + 66 ) * 20 col0
----
98
-87120

skipif mysql # not compatible
query II rowsort label-6203
SELECT - 98 * - COUNT ( * ), + 66 * - ( + 66 ) * 20 col0
----
98
-87120

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT + 4 * - - COUNT( * ) * + COALESCE ( - - 81, - ( + ( + 59 ) ), + 34 )
----
324

skipif mysql # not compatible
query I rowsort label-6204
SELECT + 4 * - - COUNT ( * ) * + COALESCE ( - - 81, - ( + ( + 59 ) ), + 34 )
----
324

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

skipif mysql # not compatible
query I rowsort label-6205
SELECT ALL + ( - 53 ) + - COUNT ( * ) / 57
----
-53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT - + COUNT( * ) * - 45 * + + 87
----
3915

skipif mysql # not compatible
query I rowsort label-6207
SELECT - + COUNT ( * ) * - 45 * + + 87
----
3915

query I rowsort
SELECT ALL + + 23 + - 62 AS col2
----
-39

query I rowsort
SELECT ALL - 32 + 81 AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6210
SELECT + 74 + - NULLIF ( - 50, - - 19 + - - COUNT( * ) ) * + CAST( NULL AS SIGNED ) * - - ( + + 50 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6210
SELECT + 74 + - NULLIF ( - 50, - - 19 + - - COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) * - - ( + + 50 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6211
SELECT + - CASE + + 70 WHEN - - CAST( NULL AS SIGNED ) THEN - SUM( DISTINCT - 69 ) * - 96 ELSE NULL END * + + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-6211
SELECT + - CASE + + 70 WHEN - - CAST ( NULL AS INTEGER ) THEN - SUM ( DISTINCT - 69 ) * - 96 ELSE NULL END * + + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT DISTINCT 31 * + 65 + MIN( + - 50 ) AS col2
----
1965

skipif mysql # not compatible
query I rowsort label-6212
SELECT DISTINCT 31 * + 65 + MIN ( + - 50 ) AS col2
----
1965

query I rowsort
SELECT + - 42 + - 68
----
-110

query I rowsort
SELECT ALL - ( - 19 ) - + - 49
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6215
SELECT + + 25 * CASE - 14 WHEN + + 21 THEN NULL ELSE - - 35 + COUNT( + + 61 ) + MAX( + - 95 ) * - 92 + + - 67 * + + COUNT( * ) DIV + COUNT( * ) + + COALESCE ( - 18, 44, - 53 + - 19 ) * + CASE - 21 WHEN 97 THEN 87 DIV + 68 ELSE + 14 * - 97 END END
----
828825

skipif mysql # not compatible
query I rowsort label-6215
SELECT + + 25 * CASE - 14 WHEN + + 21 THEN NULL ELSE - - 35 + COUNT ( + + 61 ) + MAX ( + - 95 ) * - 92 + + - 67 * + + COUNT ( * ) / + COUNT ( * ) + + COALESCE ( - 18, 44, - 53 + - 19 ) * + CASE - 21 WHEN 97 THEN 87 / + 68 ELSE + 14 * - 97 END END
----
828825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6216
SELECT DISTINCT + - NULLIF ( + COALESCE ( + 39, - CAST( NULL AS SIGNED ), 27 ), - 67 )
----
-39

skipif mysql # not compatible
query I rowsort label-6216
SELECT DISTINCT + - NULLIF ( + COALESCE ( + 39, - CAST ( NULL AS INTEGER ), 27 ), - 67 )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6217
SELECT ALL + SUM( + 86 ) DIV + 45 - - ( 4 ) + 68
----
73

skipif mysql # not compatible
query I rowsort label-6217
SELECT ALL + SUM ( + 86 ) / + 45 - - ( 4 ) + 68
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6218
SELECT + MAX( ALL + ( + 0 ) ) * 82 * + 26 * - 50 + - 17 + + COUNT( * ) + 20 + - 52 * + COALESCE ( - COUNT( * ), - 35 * - 8 ) * + 79 + - ( + 85 - NULLIF ( - NULLIF ( COALESCE ( + 36, COUNT( 54 ) ), - 95 ) + + 23 * + MAX( DISTINCT 66 ), 29 + + COALESCE ( 89, - 28, 61 ) * + 32 ) * - CAST( - 43 AS SIGNED ) ) col2
----
67753

skipif mysql # not compatible
query I rowsort label-6218
SELECT + MAX ( ALL + ( + 0 ) ) * 82 * + 26 * - 50 + - 17 + + COUNT ( * ) + 20 + - 52 * + COALESCE ( - COUNT ( * ), - 35 * - 8 ) * + 79 + - ( + 85 - NULLIF ( - NULLIF ( COALESCE ( + 36, COUNT ( 54 ) ), - 95 ) + + 23 * + MAX ( DISTINCT 66 ), 29 + + COALESCE ( 89, - 28, 61 ) * + 32 ) * - CAST ( - 43 AS INTEGER ) ) col2
----
67753

query I rowsort
SELECT + 18 * - 33 * 58 AS col1
----
-34452

query II rowsort
SELECT DISTINCT + 30, 34 AS col2
----
30
34

onlyif mysql # DIV for integer division: 
query I rowsort label-6221
SELECT - 71 DIV 69 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-6221
SELECT - 71 / 69 / - 71
----
0

query I rowsort
SELECT + 82 * - 65
----
-5330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6223
SELECT + MAX( ALL + CAST( NULL AS SIGNED ) ) / 48 + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6223
SELECT + MAX ( ALL + CAST ( NULL AS INTEGER ) ) / 48 + - 86
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6224
SELECT ALL 23 DIV + - 40
----
0

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL 23 / + - 40
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6225
SELECT - 35 DIV 17 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6225
SELECT - 35 / 17 AS col1
----
-2

query I rowsort
SELECT ALL - 46 * + 69 + + NULLIF ( + 9, - + 14 * + ( - - 50 ) ) AS col1
----
-3165

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT 94 * COUNT( 6 ) - COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-6227
SELECT 94 * COUNT ( 6 ) - COUNT ( * ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT DISTINCT + COUNT( * ) * - 74 + - 7
----
-81

skipif mysql # not compatible
query I rowsort label-6228
SELECT DISTINCT + COUNT ( * ) * - 74 + - 7
----
-81

query II rowsort
SELECT + 49, + NULLIF ( 28, + 56 ) + + 1 + - 64 col2
----
49
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6230
SELECT + 33 * 18 DIV + - COUNT( * ) DIV COUNT( * ) * + COUNT( * ) + 86 + - COALESCE ( - 66, + - 36 DIV - - 1 + + - COUNT( * ) * + 64 )
----
-442

skipif mysql # not compatible
query I rowsort label-6230
SELECT + 33 * 18 / + - COUNT ( * ) / COUNT ( * ) * + COUNT ( * ) + 86 + - COALESCE ( - 66, + - 36 / - - 1 + + - COUNT ( * ) * + 64 )
----
-442

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6231
SELECT ALL - 68 * + 1 * - CASE + ( + + COUNT( * ) ) WHEN - 60 THEN + 94 / + ( + + 74 ) + + + 5 WHEN + 59 THEN 57 * - 26 * 14 + + CAST( NULL AS SIGNED ) ELSE NULL END + 41 * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL - 68 * + 1 * - CASE + ( + + COUNT ( * ) ) WHEN - 60 THEN + 94 / + ( + + 74 ) + + + 5 WHEN + 59 THEN 57 * - 26 * 14 + + CAST ( NULL AS INTEGER ) ELSE NULL END + 41 * 41
----
NULL

query I rowsort
SELECT - 70 * + - 1 + - 71
----
-1

query I rowsort
SELECT CASE 93 WHEN + - 95 + 22 THEN + + 80 - - 30 END
----
NULL

query I rowsort
SELECT + 92 + 6
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6235
SELECT + COUNT( * ), - 55 - - - 6 AS col0
----
1
-61

skipif mysql # not compatible
query II rowsort label-6235
SELECT + COUNT ( * ), - 55 - - - 6 AS col0
----
1
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT ALL ( NULLIF ( + 38, + - 20 * 34 + - COUNT( * ) ) ) col2
----
38

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL ( NULLIF ( + 38, + - 20 * 34 + - COUNT ( * ) ) ) col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6237
SELECT 47 * + SUM( DISTINCT + 75 ) + + - 63 * 27 DIV 7
----
3282

skipif mysql # not compatible
query I rowsort label-6237
SELECT 47 * + SUM ( DISTINCT + 75 ) + + - 63 * 27 / 7
----
3282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6238
SELECT ALL + COUNT( * ) * + COUNT( * ) * - + ( - - 55 ) * - 14 + CAST( NULL AS SIGNED ), 50 AS col0
----
NULL
50

skipif mysql # not compatible
query II rowsort label-6238
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * - + ( - - 55 ) * - 14 + CAST ( NULL AS INTEGER ), 50 AS col0
----
NULL
50

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6240
SELECT ALL - CASE CAST( NULL AS SIGNED ) WHEN + 69 THEN NULL ELSE - 74 END * - 29 + + 12 AS col1
----
-2134

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL - CASE CAST ( NULL AS INTEGER ) WHEN + 69 THEN NULL ELSE - 74 END * - 29 + + 12 AS col1
----
-2134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6241
SELECT ALL NULLIF ( NULLIF ( - 46, - CASE + 26 WHEN - CAST( NULL AS SIGNED ) / + 47 THEN NULL ELSE + AVG ( - 11 ) - - - 66 END * + AVG ( + + CAST( NULL AS SIGNED ) ) + + - 29 * ( 89 + 0 ) ), + 51 / COUNT( - 88 * + 72 ) ) col2
----
-46

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL NULLIF ( NULLIF ( - 46, - CASE + 26 WHEN - CAST ( NULL AS INTEGER ) / + 47 THEN NULL ELSE + AVG ( - 11 ) - - - 66 END * + AVG ( + + CAST ( NULL AS INTEGER ) ) + + - 29 * ( 89 + 0 ) ), + 51 / COUNT ( - 88 * + 72 ) ) col2
----
-46

query I rowsort
SELECT - + 70 * + + 54 AS col0
----
-3780

query I rowsort
SELECT DISTINCT - 59 * + 32
----
-1888

query I rowsort
SELECT ALL + 1 - + - ( - 83 ) * + - 30 - 5 AS col2
----
2486

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT COALESCE ( + COUNT( * ), 30, - MIN( ALL - - ( - 81 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6245
SELECT COALESCE ( + COUNT ( * ), 30, - MIN ( ALL - - ( - 81 ) ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6246
SELECT - + 21 DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-6246
SELECT - + 21 / + 35
----
0

query I rowsort
SELECT + + 15 * - - 4
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6248
SELECT + - 57 + - COUNT( * ) + + 88 * - + 13 DIV - - COUNT( * ) AS col1
----
-1202

skipif mysql # not compatible
query I rowsort label-6248
SELECT + - 57 + - COUNT ( * ) + + 88 * - + 13 / - - COUNT ( * ) AS col1
----
-1202

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT - 94 * + 40 - + NULLIF ( - NULLIF ( - COUNT( DISTINCT - + 92 ), 76 * + COUNT( * ) * + + MAX( DISTINCT 87 ) ), - - 54 + 14 + + 69 * + 81 ) * 52
----
-3812

skipif mysql # not compatible
query I rowsort label-6249
SELECT - 94 * + 40 - + NULLIF ( - NULLIF ( - COUNT ( DISTINCT - + 92 ), 76 * + COUNT ( * ) * + + MAX ( DISTINCT 87 ) ), - - 54 + 14 + + 69 * + 81 ) * 52
----
-3812

query II rowsort
SELECT ALL + 89 AS col1, 31
----
89
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT + ( - - COALESCE ( + 59, - + MAX( ALL - 25 ) - + 84 ) ) * + + COUNT( - - 26 ) * - + COUNT( DISTINCT 66 ) + - 63 - - - COUNT( * )
----
-123

skipif mysql # not compatible
query I rowsort label-6251
SELECT + ( - - COALESCE ( + 59, - + MAX ( ALL - 25 ) - + 84 ) ) * + + COUNT ( - - 26 ) * - + COUNT ( DISTINCT 66 ) + - 63 - - - COUNT ( * )
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6252
SELECT ALL 83, 94 DIV - 28 + + CAST( + 84 AS SIGNED ) + - SUM( ALL - 49 ) + - + NULLIF ( + 25, + AVG ( ( - 21 ) ) ) * + 89 col1
----
83
-2095

skipif mysql # not compatible
query II rowsort label-6252
SELECT ALL 83, 94 / - 28 + + CAST ( + 84 AS INTEGER ) + - SUM ( ALL - 49 ) + - + NULLIF ( + 25, + AVG ( ( - 21 ) ) ) * + 89 col1
----
83
-2095

query I rowsort
SELECT + + 88 * - + 60 AS col1
----
-5280

onlyif mysql # DIV for integer division: 
query I rowsort label-6254
SELECT DISTINCT + 83 DIV - - 45
----
1

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT + 83 / - - 45
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6255
SELECT 69 * + + 88 * ( - SUM( - 40 ) ) * 39 + + COALESCE ( + - 87, CAST( NULL AS SIGNED ), - 16 * + COUNT( ALL - ( - CAST( 21 AS SIGNED ) ) ) ) * 15
----
9471015

skipif mysql # not compatible
query I rowsort label-6255
SELECT 69 * + + 88 * ( - SUM ( - 40 ) ) * 39 + + COALESCE ( + - 87, CAST ( NULL AS INTEGER ), - 16 * + COUNT ( ALL - ( - CAST ( 21 AS INTEGER ) ) ) ) * 15
----
9471015

query II rowsort
SELECT 4 * - 58, - 38 AS col0
----
-232
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6257
SELECT SUM( CAST( ( + - 63 ) AS SIGNED ) ) - + 28 * 23 AS col1
----
-707

skipif mysql # not compatible
query I rowsort label-6257
SELECT SUM ( CAST ( ( + - 63 ) AS INTEGER ) ) - + 28 * 23 AS col1
----
-707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6258
SELECT COUNT( ALL - - CASE 65 WHEN + 38 THEN + CAST( - 92 AS SIGNED ) ELSE NULL END ) + 66 - - + 77 col2
----
143

skipif mysql # not compatible
query I rowsort label-6258
SELECT COUNT ( ALL - - CASE 65 WHEN + 38 THEN + CAST ( - 92 AS INTEGER ) ELSE NULL END ) + 66 - - + 77 col2
----
143

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

query I rowsort
SELECT DISTINCT 82 * + - 25 AS col2
----
-2050

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

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL COUNT ( * ) + + COUNT ( * ) - 59 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT ALL COUNT( * ) + COALESCE ( - 91, - + 44 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL COUNT ( * ) + COALESCE ( - 91, - + 44 ) AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT DISTINCT CASE + - 95 WHEN + COUNT( ALL 10 ) THEN + 86 + - 4 + + + 76 + - 70 END + + AVG ( + 35 ) - 36 - + - 94 * COUNT( ALL 49 ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT DISTINCT CASE + - 95 WHEN + COUNT ( ALL 10 ) THEN + 86 + - 4 + + + 76 + - 70 END + + AVG ( + 35 ) - 36 - + - 94 * COUNT ( ALL 49 ) - + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 34 + 30 * - 9
----
-236

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT DISTINCT NULLIF ( 70, + 61 ) DIV 36
----
1

skipif mysql # not compatible
query I rowsort label-6266
SELECT DISTINCT NULLIF ( 70, + 61 ) / 36
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6267
SELECT ALL 75 + - CASE - - 20 WHEN - - ( - COUNT( * ) ) THEN - - COALESCE ( - COUNT( * ), + + 39 * - ( 89 ) * - 3 / + 85 ) / + 86 ELSE 0 * + CAST( NULL AS DECIMAL ) END - + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL 75 + - CASE - - 20 WHEN - - ( - COUNT ( * ) ) THEN - - COALESCE ( - COUNT ( * ), + + 39 * - ( 89 ) * - 3 / + 85 ) / + 86 ELSE 0 * + CAST ( NULL AS REAL ) END - + 65 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6268
SELECT DISTINCT CASE 75 WHEN 44 * CAST( NULL AS SIGNED ) THEN + - ( + + 15 ) WHEN 13 * 96 * COALESCE ( - 62, - - COUNT( ALL 52 ), ( + CAST( 82 AS SIGNED ) ) ) + - 18 THEN 41 END / + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6268
SELECT DISTINCT CASE 75 WHEN 44 * CAST ( NULL AS INTEGER ) THEN + - ( + + 15 ) WHEN 13 * 96 * COALESCE ( - 62, - - COUNT ( ALL 52 ), ( + CAST ( 82 AS INTEGER ) ) ) + - 18 THEN 41 END / + 48 AS col2
----
NULL

query II rowsort
SELECT 80 * - 28 AS col0, - 70 + + + ( - ( - - COALESCE ( + 65, + + 53 + - 74 * 53 * + 37, 76 + + - 23 ) ) ) AS col1
----
-2240
-135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6270
SELECT ALL 37 * + COUNT( * ) + - 42 / + - AVG ( ALL 44 ) - - MIN( 73 ) * COUNT( * ) * 4 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL 37 * + COUNT ( * ) + - 42 / + - AVG ( ALL 44 ) - - MIN ( 73 ) * COUNT ( * ) * 4 * - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 41 * - 77 * + ( + - 12 ) AS col1, + 27
----
37884
27

onlyif mysql # aggregate syntax: 
query II rowsort label-6272
SELECT ALL - - 56 - + - 8 * - ( MIN( + 24 ) ) AS col0, COUNT( * ) * + COUNT( * ) * 6 AS col2
----
-136
6

skipif mysql # not compatible
query II rowsort label-6272
SELECT ALL - - 56 - + - 8 * - ( MIN ( + 24 ) ) AS col0, COUNT ( * ) * + COUNT ( * ) * 6 AS col2
----
-136
6

query II rowsort
SELECT ALL 26 * + - 36, + 11 AS col0
----
-936
11

query I rowsort
SELECT - 65 * - - 94 AS col0
----
-6110

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6275
SELECT DISTINCT - ( - 29 ), CAST( 20 AS SIGNED ) DIV - 6 AS col0
----
29
-3

skipif mysql # not compatible
query II rowsort label-6275
SELECT DISTINCT - ( - 29 ), CAST ( 20 AS INTEGER ) / - 6 AS col0
----
29
-3

query II rowsort
SELECT 29 * - 50 AS col1, 7 + + - 25 AS col2
----
-1450
-18

query I rowsort
SELECT 60 - - - 58
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT MAX( + 79 ) + - 60
----
19

skipif mysql # not compatible
query I rowsort label-6278
SELECT MAX ( + 79 ) + - 60
----
19

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

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

query I rowsort
SELECT 8 + + 87
----
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT ALL + 75 * + MAX( + + 45 ) * + 37 AS col2
----
124875

skipif mysql # not compatible
query I rowsort label-6282
SELECT ALL + 75 * + MAX ( + + 45 ) * + 37 AS col2
----
124875

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

skipif mysql # not compatible
query I rowsort label-6283
SELECT 94 / - 95 * - COUNT ( * ) AS col0
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6285
SELECT DISTINCT - COALESCE ( - COUNT( * ), + - 77 DIV - 94 + - + COUNT( * ) * + 74 ), - 50 * - 41 + - 80 col2
----
1
1970

skipif mysql # not compatible
query II rowsort label-6285
SELECT DISTINCT - COALESCE ( - COUNT ( * ), + - 77 / - 94 + - + COUNT ( * ) * + 74 ), - 50 * - 41 + - 80 col2
----
1
1970

query I rowsort
SELECT ALL - 3 + + - 69
----
-72

query I rowsort
SELECT ALL + 48 + + - 55 AS col0
----
-7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT ALL - COUNT( DISTINCT + 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL - COUNT ( DISTINCT + 46 )
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6291
SELECT ALL MIN( 41 ) * + - 62 * CAST( NULL AS SIGNED ) * + ( - 42 ) * - ( + - 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL MIN ( 41 ) * + - 62 * CAST ( NULL AS INTEGER ) * + ( - 42 ) * - ( + - 25 )
----
NULL

query I rowsort
SELECT ALL 57 - + - 4 - + + 4 * - + 45
----
241

query I rowsort
SELECT ALL + 41 * - 73 AS col0
----
-2993

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT 41 * + + 22 + + ( + - COUNT( * ) ) + + 27 - + 80 AS col1
----
848

skipif mysql # not compatible
query I rowsort label-6295
SELECT 41 * + + 22 + + ( + - COUNT ( * ) ) + + 27 - + 80 AS col1
----
848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6296
SELECT CAST( - + 97 AS SIGNED ) - - - CASE + - COALESCE ( + COUNT( * ), - + 45 + - 9 - + MAX( DISTINCT - 19 ) / + 86, - + CASE + 29 WHEN + 35 - 33 + - 17 - COALESCE ( + COUNT( * ) - 89, ( 78 ) * + 68 ) / + 47 THEN NULL ELSE - 54 - - 25 END ) WHEN + 32 THEN + 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6296
SELECT CAST ( - + 97 AS INTEGER ) - - - CASE + - COALESCE ( + COUNT ( * ), - + 45 + - 9 - + MAX ( DISTINCT - 19 ) / + 86, - + CASE + 29 WHEN + 35 - 33 + - 17 - COALESCE ( + COUNT ( * ) - 89, ( 78 ) * + 68 ) / + 47 THEN NULL ELSE - 54 - - 25 END ) WHEN + 32 THEN + 79 END
----
NULL

query II rowsort
SELECT + - 26 AS col2, 61
----
-26
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT MAX( ALL - 58 ) + + 80 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-6298
SELECT MAX ( ALL - 58 ) + + 80 AS col1
----
22

query I rowsort
SELECT 73 * 68 - CASE + - 15 WHEN + 30 THEN - - ( - 55 ) WHEN + - 85 THEN NULLIF ( - 89, + - 44 ) END * - 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT 18 * - COUNT( * ) * - 77 * + 77 * 94
----
10031868

skipif mysql # not compatible
query I rowsort label-6300
SELECT 18 * - COUNT ( * ) * - 77 * + 77 * 94
----
10031868

onlyif mysql # DIV for integer division: 
query I rowsort label-6301
SELECT ALL 71 DIV + 87 * 10
----
0

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL 71 / + 87 * 10
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6302
SELECT 5 + - CAST( - NULLIF ( + + 79, + - 27 * - COUNT( * ) + - 92 ) AS SIGNED ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6302
SELECT 5 + - CAST ( - NULLIF ( + + 79, + - 27 * - COUNT ( * ) + - 92 ) AS INTEGER ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6303
SELECT DISTINCT 78 AS col1, + 42 DIV MAX( + 39 )
----
78
1

skipif mysql # not compatible
query II rowsort label-6303
SELECT DISTINCT 78 AS col1, + 42 / MAX ( + 39 )
----
78
1

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

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

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

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

query I rowsort
SELECT 98 * + ( + - 93 ) AS col1
----
-9114

onlyif mysql # aggregate syntax: 
query II rowsort label-6307
SELECT DISTINCT - 56, SUM( DISTINCT + ( - + 3 ) ) AS col1
----
-56
-3

skipif mysql # not compatible
query II rowsort label-6307
SELECT DISTINCT - 56, SUM ( DISTINCT + ( - + 3 ) ) AS col1
----
-56
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT DISTINCT 55 * 62 + - COUNT( * ) AS col0
----
3409

skipif mysql # not compatible
query I rowsort label-6308
SELECT DISTINCT 55 * 62 + - COUNT ( * ) AS col0
----
3409

query I rowsort
SELECT ALL 60 * - ( 58 ) AS col2
----
-3480

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT DISTINCT + 99 * + + MIN( ALL - - 54 ) AS col0
----
5346

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT + 99 * + + MIN ( ALL - - 54 ) AS col0
----
5346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6311
SELECT - + 88 + + + 34 * - - CAST( + 95 AS SIGNED ) * ( + 22 ) * 52 AS col0
----
3695032

skipif mysql # not compatible
query I rowsort label-6311
SELECT - + 88 + + + 34 * - - CAST ( + 95 AS INTEGER ) * ( + 22 ) * 52 AS col0
----
3695032

query I rowsort
SELECT DISTINCT 82 + + 98 AS col2
----
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6313
SELECT DISTINCT + 75 + - MAX( + - 9 ) AS col0, + 64 DIV 37 + - COUNT( * ) + - - 71 DIV + + SUM( 88 ) + - 94 AS col0
----
84
-94

skipif mysql # not compatible
query II rowsort label-6313
SELECT DISTINCT + 75 + - MAX ( + - 9 ) AS col0, + 64 / 37 + - COUNT ( * ) + - - 71 / + + SUM ( 88 ) + - 94 AS col0
----
84
-94

query I rowsort
SELECT DISTINCT 65 + + + 25 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT DISTINCT SUM( - 71 ) + - 61 AS col0
----
-132

skipif mysql # not compatible
query I rowsort label-6315
SELECT DISTINCT SUM ( - 71 ) + - 61 AS col0
----
-132

query I rowsort
SELECT + ( + 97 ) * + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6317
SELECT - 88 * + - 42 AS col0, 12 * - - 2 + + 30 - + MIN( + + 68 )
----
3696
-14

skipif mysql # not compatible
query II rowsort label-6317
SELECT - 88 * + - 42 AS col0, 12 * - - 2 + + 30 - + MIN ( + + 68 )
----
3696
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT ALL + NULLIF ( + MAX( DISTINCT 19 ), + COUNT( * ) / 26 + - 6 ) * 55 col2
----
1045

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL + NULLIF ( + MAX ( DISTINCT 19 ), + COUNT ( * ) / 26 + - 6 ) * 55 col2
----
1045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6319
SELECT - CASE + - COUNT( * ) WHEN + COUNT( * ) THEN + - 68 ELSE NULL END col0, - 71 * CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6319
SELECT - CASE + - COUNT ( * ) WHEN + COUNT ( * ) THEN + - 68 ELSE NULL END col0, - 71 * CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6320
SELECT - CASE + 17 WHEN 63 THEN NULL ELSE - + 6 * - 16 * + CAST( 62 AS SIGNED ) END * + + 61 * - MIN( DISTINCT - + 37 ) col0
----
-13433664

skipif mysql # not compatible
query I rowsort label-6320
SELECT - CASE + 17 WHEN 63 THEN NULL ELSE - + 6 * - 16 * + CAST ( 62 AS INTEGER ) END * + + 61 * - MIN ( DISTINCT - + 37 ) col0
----
-13433664

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT DISTINCT + NULLIF ( + COUNT( * ), - 98 ) * - 84 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT + NULLIF ( + COUNT ( * ), - 98 ) * - 84 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-6322
SELECT ALL + 2, 59 + - COUNT( DISTINCT - 86 ) AS col1
----
2
58

skipif mysql # not compatible
query II rowsort label-6322
SELECT ALL + 2, 59 + - COUNT ( DISTINCT - 86 ) AS col1
----
2
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6323
SELECT - 22 * + 68, 45 * - ( + - COUNT( * ) ) * + 60 + + - ( + 9 ) + 60 * - 55 + - 60 + COUNT( * ) AS col1
----
-1496
-668

skipif mysql # not compatible
query II rowsort label-6323
SELECT - 22 * + 68, 45 * - ( + - COUNT ( * ) ) * + 60 + + - ( + 9 ) + 60 * - 55 + - 60 + COUNT ( * ) AS col1
----
-1496
-668

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6324
SELECT DISTINCT + COUNT( DISTINCT CAST( NULL AS DECIMAL ) ), + 26 AS col1
----
0
26

skipif mysql # not compatible
query II rowsort label-6324
SELECT DISTINCT + COUNT ( DISTINCT CAST ( NULL AS REAL ) ), + 26 AS col1
----
0
26

query I rowsort
SELECT DISTINCT - 93 * + 15 * - 82 * - 21 - - - ( + 7 ) AS col2
----
-2402197

query I rowsort
SELECT COALESCE ( 25, 54 )
----
25

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

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL - CAST ( - 12 AS INTEGER ) / + COUNT ( * )
----
12

query I rowsort
SELECT - 86 * - 77 * + 23 AS col1
----
152306

query I rowsort
SELECT + 92 + + + 62 + - 61 * + 92
----
-5458

query I rowsort
SELECT - 2 * 12
----
-24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT DISTINCT 59 * - SUM( ALL 87 ) * + 21
----
-107793

skipif mysql # not compatible
query I rowsort label-6332
SELECT DISTINCT 59 * - SUM ( ALL 87 ) * + 21
----
-107793

query I rowsort
SELECT ALL + + 97 * + COALESCE ( 75, + 4 ) - + - 39
----
7314

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

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

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

skipif mysql # not compatible
query I rowsort label-6335
SELECT - CAST ( NULL AS INTEGER ) * + - 32
----
NULL

query I rowsort
SELECT ALL 44 * + 84
----
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT DISTINCT COUNT( 63 ) * + 40 + - COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-6337
SELECT DISTINCT COUNT ( 63 ) * + 40 + - COUNT ( * ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT - + 6 - CASE 56 WHEN - + 44 / + - 51 + - - 69 THEN + - NULLIF ( 12, + AVG ( - - 76 ) ) * + COUNT( - 66 ) + - 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6338
SELECT - + 6 - CASE 56 WHEN - + 44 / + - 51 + - - 69 THEN + - NULLIF ( 12, + AVG ( - - 76 ) ) * + COUNT ( - 66 ) + - 3 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT DISTINCT + COUNT( ALL 89 ) + - 16 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT + COUNT ( ALL 89 ) + - 16 AS col1
----
-15

query I rowsort
SELECT ALL 71 + 8 AS col2
----
79

query I rowsort
SELECT + - 32 - + 16
----
-48

query II rowsort
SELECT ALL 41 AS col1, + 65
----
41
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6343
SELECT - SUM( DISTINCT 49 ) col1, - CAST( - 56 AS SIGNED ) col2
----
-49
56

skipif mysql # not compatible
query II rowsort label-6343
SELECT - SUM ( DISTINCT 49 ) col1, - CAST ( - 56 AS INTEGER ) col2
----
-49
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6344
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) AS col1, 14 AS col1
----
1
14

skipif mysql # not compatible
query II rowsort label-6344
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) AS col1, 14 AS col1
----
1
14

query I rowsort
SELECT DISTINCT 33 + 50 + 67
----
150

query I rowsort
SELECT ALL - 76 + 96 AS col0
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-6347
SELECT 5, + ( + - 38 ) * - - COUNT( * ) AS col1
----
5
-38

skipif mysql # not compatible
query II rowsort label-6347
SELECT 5, + ( + - 38 ) * - - COUNT ( * ) AS col1
----
5
-38

query I rowsort
SELECT - ( + COALESCE ( + 22, - - ( 63 ) * - + 90 * - 0, + 70 ) )
----
-22

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

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

query I rowsort
SELECT + 82 + 2 col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT + 88 - - MIN( DISTINCT + + 2 ) col2
----
90

skipif mysql # not compatible
query I rowsort label-6351
SELECT + 88 - - MIN ( DISTINCT + + 2 ) col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT ALL 94 * ( - + 95 ) * + COUNT( * )
----
-8930

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL 94 * ( - + 95 ) * + COUNT ( * )
----
-8930

query I rowsort
SELECT + 0 * - ( - - 73 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6354
SELECT + CAST( - 16 AS SIGNED ) + - + 81 + + 85 + + 32 * - 92 * + - 8 AS col0
----
23540

skipif mysql # not compatible
query I rowsort label-6354
SELECT + CAST ( - 16 AS INTEGER ) + - + 81 + + 85 + + 32 * - 92 * + - 8 AS col0
----
23540

query I rowsort
SELECT - 64 * - + 17
----
1088

onlyif mysql # aggregate syntax: 
query II rowsort label-6356
SELECT ALL SUM( ALL 7 ), COUNT( * ) + + 15 AS col0
----
7
16

skipif mysql # not compatible
query II rowsort label-6356
SELECT ALL SUM ( ALL 7 ), COUNT ( * ) + + 15 AS col0
----
7
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT ALL 47 - - COUNT( * ) * 33 * - 79
----
-2560

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL 47 - - COUNT ( * ) * 33 * - 79
----
-2560

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6358
SELECT + 52 + - + 53 + 28 * + - ( - + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6358
SELECT + 52 + - + 53 + 28 * + - ( - + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6359
SELECT ALL CASE - 72 WHEN - ( 48 ) + 23 THEN MAX( + 49 ) WHEN + NULLIF ( - 99, 48 ) + ( CAST( NULL AS SIGNED ) ) * 43 * 6 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL CASE - 72 WHEN - ( 48 ) + 23 THEN MAX ( + 49 ) WHEN + NULLIF ( - 99, 48 ) + ( CAST ( NULL AS INTEGER ) ) * 43 * 6 THEN NULL ELSE NULL END
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6362
SELECT DISTINCT - COUNT( * ) DIV 76 - 47 * + 38
----
-1786

skipif mysql # not compatible
query I rowsort label-6362
SELECT DISTINCT - COUNT ( * ) / 76 - 47 * + 38
----
-1786

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6363
SELECT + ( + 75 ) DIV - 99 + - + COUNT( - 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-6363
SELECT + ( + 75 ) / - 99 + - + COUNT ( - 8 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6364
SELECT ALL + COUNT( ALL + + 92 ) AS col0, + 36 * - CAST( NULL AS SIGNED ) / - 9 * 72 * - - COUNT( * ) - - 50 + + COUNT( * ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6364
SELECT ALL + COUNT ( ALL + + 92 ) AS col0, + 36 * - CAST ( NULL AS INTEGER ) / - 9 * 72 * - - COUNT ( * ) - - 50 + + COUNT ( * ) AS col0
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6365
SELECT CAST( COUNT( - 75 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6365
SELECT CAST ( COUNT ( - 75 ) AS INTEGER )
----
1

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

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

query I rowsort
SELECT ALL - 78 * - 99
----
7722

onlyif mysql # aggregate syntax: 
query II rowsort label-6368
SELECT - 80 + - COUNT( * ) * + 48 AS col1, + 24
----
-128
24

skipif mysql # not compatible
query II rowsort label-6368
SELECT - 80 + - COUNT ( * ) * + 48 AS col1, + 24
----
-128
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6369
SELECT ALL 61 / - CASE COUNT( * ) WHEN - + 66 - - 87 THEN - - CAST( 27 AS SIGNED ) END + 10 * - - 76 + - + 84 + - + CAST( + COUNT( ALL - 7 ) AS DECIMAL ) * - 66 / - + ( 45 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL 61 / - CASE COUNT ( * ) WHEN - + 66 - - 87 THEN - - CAST ( 27 AS INTEGER ) END + 10 * - - 76 + - + 84 + - + CAST ( + COUNT ( ALL - 7 ) AS REAL ) * - 66 / - + ( 45 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6370
SELECT - ( 17 ) - - + COUNT( + - 74 ) + - - 78 - + COUNT( * ) * 12 + + 14 + 67 + 6 DIV - 19 * 10 AS col2
----
131

skipif mysql # not compatible
query I rowsort label-6370
SELECT - ( 17 ) - - + COUNT ( + - 74 ) + - - 78 - + COUNT ( * ) * 12 + + 14 + 67 + 6 / - 19 * 10 AS col2
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT ( + 19 ) * + 88 * COUNT( * ) * + - 15 * - 80 + + + 60 + 62 * - 44 + - + 55 + - - 22
----
2003699

skipif mysql # not compatible
query I rowsort label-6371
SELECT ( + 19 ) * + 88 * COUNT ( * ) * + - 15 * - 80 + + + 60 + 62 * - 44 + - + 55 + - - 22
----
2003699

query I rowsort
SELECT - 58 + + + 23
----
-35

query I rowsort
SELECT ALL - - COALESCE ( - 81, - - 86 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT - 2 * + + CASE - COUNT( * ) WHEN - ( - + 5 ) THEN NULL WHEN - 38 THEN - 12 * + 67 + - 41 + + 45 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6374
SELECT - 2 * + + CASE - COUNT ( * ) WHEN - ( - + 5 ) THEN NULL WHEN - 38 THEN - 12 * + 67 + - 41 + + 45 END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6375
SELECT CASE - 6 WHEN 54 THEN + 58 WHEN - 36 * + CASE + + 66 WHEN + NULLIF ( - 66, + 79 ) * + 33 + - 90 + NULLIF ( - + CAST( + 67 AS SIGNED ), + 74 ) THEN NULL WHEN - 85 THEN - 13 * - SUM( ALL 4 ) WHEN - COUNT( * ) - 10 THEN - 1 * 40 END THEN - 9 / + 62 END * 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT CASE - 6 WHEN 54 THEN + 58 WHEN - 36 * + CASE + + 66 WHEN + NULLIF ( - 66, + 79 ) * + 33 + - 90 + NULLIF ( - + CAST ( + 67 AS INTEGER ), + 74 ) THEN NULL WHEN - 85 THEN - 13 * - SUM ( ALL 4 ) WHEN - COUNT ( * ) - 10 THEN - 1 * 40 END THEN - 9 / + 62 END * 45 AS col0
----
NULL

query I rowsort
SELECT + 61 * + 98 + - 41
----
5937

onlyif mysql # DIV for integer division: 
query I rowsort label-6377
SELECT + 85 DIV + + 36 + - 83 col1
----
-81

skipif mysql # not compatible
query I rowsort label-6377
SELECT + 85 / + + 36 + - 83 col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT DISTINCT + 39 + COUNT( * ) col1
----
40

skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT + 39 + COUNT ( * ) col1
----
40

query I rowsort
SELECT ALL 78 * + 34 * - + 57 * + ( + 97 )
----
-14662908

query I rowsort
SELECT ALL + - 90 + 41 + + 46
----
-3

query I rowsort
SELECT DISTINCT - - 27 + 55 AS col2
----
82

query II rowsort
SELECT ALL - - 77 * - 69 AS col0, + 44 - - 85
----
-5313
129

query II rowsort
SELECT - 66 AS col0, + 64
----
-66
64

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

skipif mysql # not compatible
query I rowsort label-6384
SELECT COUNT ( * ) + - 22 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-6385
SELECT DISTINCT 71 AS col2, - COUNT( * ) * - + 75
----
71
75

skipif mysql # not compatible
query II rowsort label-6385
SELECT DISTINCT 71 AS col2, - COUNT ( * ) * - + 75
----
71
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6386
SELECT ALL 71 - + 22 + + 89 * 57 DIV - 47 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL 71 - + 22 + + 89 * 57 / - 47 AS col0
----
-58

query I rowsort
SELECT 3 * + + 11 AS col1
----
33

query I rowsort
SELECT 39 * - + 79 AS col2
----
-3081

query I rowsort
SELECT 28 * + 81
----
2268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6390
SELECT DISTINCT 70 DIV + MIN( - CAST( 63 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6390
SELECT DISTINCT 70 / + MIN ( - CAST ( 63 AS INTEGER ) )
----
-1

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

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

query I rowsort
SELECT 18 * 92 AS col0
----
1656

query II rowsort
SELECT 92, 35 AS col2
----
92
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6394
SELECT COUNT( * ) DIV - - CASE + - 96 WHEN 74 * 19 * 46 + + 78 + + 92 * + + 13 + + 38 - - - 70 * - 24 THEN - SUM( ALL 15 ) * + 90 + + - 72 ELSE + COUNT( DISTINCT 82 ) + - 14 END
----
0

skipif mysql # not compatible
query I rowsort label-6394
SELECT COUNT ( * ) / - - CASE + - 96 WHEN 74 * 19 * 46 + + 78 + + 92 * + + 13 + + 38 - - - 70 * - 24 THEN - SUM ( ALL 15 ) * + 90 + + - 72 ELSE + COUNT ( DISTINCT 82 ) + - 14 END
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6395
SELECT 73 DIV + - 39 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6395
SELECT 73 / + - 39 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6396
SELECT - 12 DIV + 37 + 95 - 61
----
34

skipif mysql # not compatible
query I rowsort label-6396
SELECT - 12 / + 37 + 95 - 61
----
34

query I rowsort
SELECT ALL 45 * 54
----
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT DISTINCT - - 71 + 40 + - COUNT( * ) + + 31 * MAX( 16 )
----
606

skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT - - 71 + 40 + - COUNT ( * ) + + 31 * MAX ( 16 )
----
606

onlyif mysql # aggregate syntax: 
query II rowsort label-6399
SELECT ALL 81 + + SUM( - 18 ), + 59 + - ( - 92 ) AS col2
----
63
151

skipif mysql # not compatible
query II rowsort label-6399
SELECT ALL 81 + + SUM ( - 18 ), + 59 + - ( - 92 ) AS col2
----
63
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6400
SELECT DISTINCT - 32 col1, 17 * + ( - COUNT( * ) ) DIV + ( - 93 ) * - + COUNT( * ) * + + 58 + 4 + - 9
----
-32
-5

skipif mysql # not compatible
query II rowsort label-6400
SELECT DISTINCT - 32 col1, 17 * + ( - COUNT ( * ) ) / + ( - 93 ) * - + COUNT ( * ) * + + 58 + 4 + - 9
----
-32
-5

query I rowsort
SELECT ALL - NULLIF ( - + 80, + ( - AVG ( DISTINCT + - 53 ) ) ) + + 77 + - 24 AS col2
----
133

query I rowsort
SELECT - 13 * 51 * + 78 + + ( 90 ) AS col1
----
-51624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6403
SELECT DISTINCT - + CASE CAST( + AVG ( + + 44 ) AS SIGNED ) WHEN + COUNT( * ) THEN 49 * COUNT( * ) + - 98 + + - 92 * + - 91 * + 68 * 73 * - 25 + + + 83 + - 90 * - COUNT( * ) / COUNT( * ) - + ( COUNT( * ) ) WHEN 84 * - 78 THEN - 22 * + COUNT( * ) WHEN - 52 * + 19 THEN 59 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT - + CASE CAST ( + AVG ( + + 44 ) AS INTEGER ) WHEN + COUNT ( * ) THEN 49 * COUNT ( * ) + - 98 + + - 92 * + - 91 * + 68 * 73 * - 25 + + + 83 + - 90 * - COUNT ( * ) / COUNT ( * ) - + ( COUNT ( * ) ) WHEN 84 * - 78 THEN - 22 * + COUNT ( * ) WHEN - 52 * + 19 THEN 59 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT - 47 - - - COUNT( * ) * - 34 - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-6404
SELECT - 47 - - - COUNT ( * ) * - 34 - COUNT ( * )
----
-14

query II rowsort
SELECT DISTINCT 21 + + 7 + 87 col2, 80 AS col1
----
115
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT ALL - + 29 + - 88 + - + 72 + + - 24 * - 46 * + COUNT( * ) * 51 col1
----
56115

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL - + 29 + - 88 + - + 72 + + - 24 * - 46 * + COUNT ( * ) * 51 col1
----
56115

query I rowsort
SELECT 14 * + - 46
----
-644

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6409
SELECT ALL - + 54 * + 43 - - 68 AS col1, - ( - - COUNT( * ) )
----
-2254
-1

skipif mysql # not compatible
query II rowsort label-6409
SELECT ALL - + 54 * + 43 - - 68 AS col1, - ( - - COUNT ( * ) )
----
-2254
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6411
SELECT - 25 AS col1, + COUNT( DISTINCT - 75 )
----
-25
1

skipif mysql # not compatible
query II rowsort label-6411
SELECT - 25 AS col1, + COUNT ( DISTINCT - 75 )
----
-25
1

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

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL COUNT ( * ) + 10 AS col2
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6413
SELECT DISTINCT 10 + 90 DIV 50 * - + COUNT( DISTINCT + 61 )
----
9

skipif mysql # not compatible
query I rowsort label-6413
SELECT DISTINCT 10 + 90 / 50 * - + COUNT ( DISTINCT + 61 )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6414
SELECT + + 98 AS col1, 31 * - COUNT( * ) * - 27
----
98
837

skipif mysql # not compatible
query II rowsort label-6414
SELECT + + 98 AS col1, 31 * - COUNT ( * ) * - 27
----
98
837

onlyif mysql # DIV for integer division: 
query I rowsort label-6415
SELECT 29 DIV - 49 + - 3 + - 71
----
-74

skipif mysql # not compatible
query I rowsort label-6415
SELECT 29 / - 49 + - 3 + - 71
----
-74

query I rowsort
SELECT 97 * + 67 AS col2
----
6499

query I rowsort
SELECT ALL + CASE - 44 WHEN + + 32 / 24 + + 77 THEN 73 * - 37 ELSE NULL END / + 34 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT COUNT( * ) * - - NULLIF ( + 20, + - NULLIF ( 50, + 78 ) ) * + 99 + + 56 + - 87 * + 10 AS col1
----
1166

skipif mysql # not compatible
query I rowsort label-6418
SELECT COUNT ( * ) * - - NULLIF ( + 20, + - NULLIF ( 50, + 78 ) ) * + 99 + + 56 + - 87 * + 10 AS col1
----
1166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6419
SELECT 13 - - - AVG ( - - CAST( NULL AS SIGNED ) ) * + 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6419
SELECT 13 - - - AVG ( - - CAST ( NULL AS INTEGER ) ) * + 39 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - 13 * - ( ( 18 ) )
----
234

query I rowsort
SELECT 22 + 84 * + - 95 AS col0
----
-7958

query I rowsort
SELECT 57 - - 75 AS col0
----
132

query II rowsort
SELECT 28 * + + 46, ( 27 ) col2
----
1288
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT ALL CASE - COUNT( * ) WHEN 55 - + 4 - 3 + 9 * 34 THEN + - 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL CASE - COUNT ( * ) WHEN 55 - + 4 - 3 + 9 * 34 THEN + - 98 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6426
SELECT 53 * - COUNT( ALL + 34 ) * - + CASE - CAST( - - 43 AS DECIMAL ) WHEN - CASE 26 WHEN - + 28 * - + 35 THEN NULL ELSE - - 91 END + + ( 41 ) * + 81 / - CAST( NULL AS SIGNED ) * + + 74 THEN - COALESCE ( 61, + ( - 59 ), 21 ) * 57 WHEN + 84 THEN NULL ELSE - 72 END * + MIN( 98 )
----
-373968

skipif mysql # not compatible
query I rowsort label-6426
SELECT 53 * - COUNT ( ALL + 34 ) * - + CASE - CAST ( - - 43 AS REAL ) WHEN - CASE 26 WHEN - + 28 * - + 35 THEN NULL ELSE - - 91 END + + ( 41 ) * + 81 / - CAST ( NULL AS INTEGER ) * + + 74 THEN - COALESCE ( 61, + ( - 59 ), 21 ) * 57 WHEN + 84 THEN NULL ELSE - 72 END * + MIN ( 98 )
----
-373968

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT DISTINCT + CASE ( - COALESCE ( + NULLIF ( + + 29, NULLIF ( ( ( 47 ) ), 85 * + 35 * - - 38 ) * - MAX( - 68 ) + + 60 + 49 * + COUNT( * ) ), - + 41 ) ) WHEN 45 - 99 THEN NULL WHEN 62 THEN - 24 ELSE NULL END + - 88 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6427
SELECT DISTINCT + CASE ( - COALESCE ( + NULLIF ( + + 29, NULLIF ( ( ( 47 ) ), 85 * + 35 * - - 38 ) * - MAX ( - 68 ) + + 60 + 49 * + COUNT ( * ) ), - + 41 ) ) WHEN 45 - 99 THEN NULL WHEN 62 THEN - 24 ELSE NULL END + - 88 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT DISTINCT 45 + - COUNT( * ) * - - ( - MAX( + 51 ) )
----
96

skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT 45 + - COUNT ( * ) * - - ( - MAX ( + 51 ) )
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT + - 54 * + - COUNT( * ) * 30 * - 72
----
-116640

skipif mysql # not compatible
query I rowsort label-6430
SELECT + - 54 * + - COUNT ( * ) * 30 * - 72
----
-116640

query I rowsort
SELECT DISTINCT + 30 * - 13 + + - 46 * - COALESCE ( - 5, + 86, - 9 - - + 97 ) * 33 + + + 15 AS col1
----
-7965

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6432
SELECT + CAST( 14 AS SIGNED ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-6432
SELECT + CAST ( 14 AS INTEGER ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT ALL 90 * - + 55 + SUM( - + 75 ) * + - 99 AS col2
----
2475

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL 90 * - + 55 + SUM ( - + 75 ) * + - 99 AS col2
----
2475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6434
SELECT + 80 - - 4 / CAST( - COUNT( * ) AS SIGNED ) * + ( - 39 ) / CAST( - COUNT( * ) AS SIGNED ) * - 50 + + + 74 - - 89 * - + 47 + + CASE - - SUM( DISTINCT + 27 ) WHEN - - 89 THEN 79 + + + 34 END + - 88 + 96 * - 50 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6434
SELECT + 80 - - 4 / CAST ( - COUNT ( * ) AS INTEGER ) * + ( - 39 ) / CAST ( - COUNT ( * ) AS INTEGER ) * - 50 + + + 74 - - 89 * - + 47 + + CASE - - SUM ( DISTINCT + 27 ) WHEN - - 89 THEN 79 + + + 34 END + - 88 + 96 * - 50 + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6435
SELECT + 93 + - 51, COUNT( * ) col1
----
42
1

skipif mysql # not compatible
query II rowsort label-6435
SELECT + 93 + - 51, COUNT ( * ) col1
----
42
1

query I rowsort
SELECT DISTINCT - 97 * + 46 + 57
----
-4405

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT DISTINCT + COALESCE ( + 0, - 51, 98 + 21 ) * COUNT( * ) * - 69 + + 83 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-6437
SELECT DISTINCT + COALESCE ( + 0, - 51, 98 + 21 ) * COUNT ( * ) * - 69 + + 83 AS col2
----
83

query I rowsort
SELECT - 57 + 20
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6439
SELECT ALL + 64 * + - 71 - CAST( NULL AS DECIMAL ) + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL + 64 * + - 71 - CAST ( NULL AS REAL ) + 44
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6440
SELECT + 96 * - ( + COUNT( * ) ) * - 55 col2, + 96 DIV - - 22 AS col1
----
5280
4

skipif mysql # not compatible
query II rowsort label-6440
SELECT + 96 * - ( + COUNT ( * ) ) * - 55 col2, + 96 / - - 22 AS col1
----
5280
4

query I rowsort
SELECT - 84 * - + 81
----
6804

query I rowsort
SELECT + 53 + + 76
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6443
SELECT - COUNT( * ) DIV - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6443
SELECT - COUNT ( * ) / - 82 AS col0
----
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6445
SELECT - ( - + 86 ) DIV + 71, 0 - 53 AS col2
----
1
-53

skipif mysql # not compatible
query II rowsort label-6445
SELECT - ( - + 86 ) / + 71, 0 - 53 AS col2
----
1
-53

query I rowsort
SELECT - 52 + - COALESCE ( + 3, - - 18 + 18, + 21 ) AS col2
----
-55

query I rowsort
SELECT ALL NULLIF ( - - 31, + 40 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT - 57 + + + MIN( - 12 ) * + + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-6448
SELECT - 57 + + + MIN ( - 12 ) * + + COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT DISTINCT - 10 + ( - 76 ) * - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-6449
SELECT DISTINCT - 10 + ( - 76 ) * - COUNT ( * )
----
66

query II rowsort
SELECT - 55 AS col2, - 28 * + 74 * - 88 + 4 + + + 23 AS col1
----
-55
182363

query I rowsort
SELECT DISTINCT + 46 + - - 85
----
131

query I rowsort
SELECT ALL - 92 + - - 72
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT ALL NULLIF ( + - 70, + COALESCE ( + + NULLIF ( 72, - COUNT( * ) + + 30 + COUNT( * ) ), - - 96 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL NULLIF ( + - 70, + COALESCE ( + + NULLIF ( 72, - COUNT ( * ) + + 30 + COUNT ( * ) ), - - 96 ) )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT - MAX( DISTINCT + 98 ) - - 26 * - 37 AS col0
----
-1060

skipif mysql # not compatible
query I rowsort label-6454
SELECT - MAX ( DISTINCT + 98 ) - - 26 * - 37 AS col0
----
-1060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6455
SELECT - 11 + - CAST( - 55 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-6455
SELECT - 11 + - CAST ( - 55 AS INTEGER )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-6456
SELECT - + 20 AS col1, + 14 * + COUNT( * ) + COUNT( * )
----
-20
15

skipif mysql # not compatible
query II rowsort label-6456
SELECT - + 20 AS col1, + 14 * + COUNT ( * ) + COUNT ( * )
----
-20
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT + COUNT( * ) + + + 33
----
34

skipif mysql # not compatible
query I rowsort label-6457
SELECT + COUNT ( * ) + + + 33
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6458
SELECT DISTINCT 46 / 10 * - CAST( NULL AS SIGNED ) * + 12 * 31 + - + 71 / - 35 * + - COUNT( * ) + - 37 + + 30 - + 91 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT 46 / 10 * - CAST ( NULL AS INTEGER ) * + 12 * 31 + - + 71 / - 35 * + - COUNT ( * ) + - 37 + + 30 - + 91 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6459
SELECT ALL + COUNT( * ) DIV 13 DIV COUNT( * ) + COUNT( * ) DIV 4 - + 67 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL + COUNT ( * ) / 13 / COUNT ( * ) + COUNT ( * ) / 4 - + 67 AS col2
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6460
SELECT DISTINCT + COUNT( * ) DIV 39 - - - 10
----
-10

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT + COUNT ( * ) / 39 - - - 10
----
-10

query I rowsort
SELECT + COALESCE ( - + ( - ( + + 62 ) ), - 97 - + - 57, 5 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT ALL COALESCE ( + - COUNT( * ), + - 66 ) * + 69 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-6462
SELECT ALL COALESCE ( + - COUNT ( * ), + - 66 ) * + 69 AS col0
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6463
SELECT DISTINCT 53 * - COUNT( * ) * 77 + - + ( 23 ) * 93 DIV + + 2 AS col1
----
-5150

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT 53 * - COUNT ( * ) * 77 + - + ( 23 ) * 93 / + + 2 AS col1
----
-5150

query I rowsort
SELECT + - 49 * - 25
----
1225

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT - MAX( ALL + + COALESCE ( - 32, - 10, 28 ) ) * - ( + 75 ) + - COUNT( + 85 )
----
-2401

skipif mysql # not compatible
query I rowsort label-6465
SELECT - MAX ( ALL + + COALESCE ( - 32, - 10, 28 ) ) * - ( + 75 ) + - COUNT ( + 85 )
----
-2401

query I rowsort
SELECT + 41 + - 72
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-6467
SELECT DISTINCT - 67 * - 48 - - COUNT( * ) AS col1, 18 * - 7 * MIN( ALL - 61 ) * 29 - 80 - 17 AS col2
----
3217
222797

skipif mysql # not compatible
query II rowsort label-6467
SELECT DISTINCT - 67 * - 48 - - COUNT ( * ) AS col1, 18 * - 7 * MIN ( ALL - 61 ) * 29 - 80 - 17 AS col2
----
3217
222797

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6468
SELECT + COUNT( - + 34 ) DIV 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6468
SELECT + COUNT ( - + 34 ) / 42 AS col2
----
0

query I rowsort
SELECT + 68 * - + 73
----
-4964

onlyif mysql # aggregate syntax: 
query III rowsort label-6470
SELECT ALL + + COUNT( * ) col2, ( - - 54 ) AS col0, + + 56 + + ( + + COALESCE ( - 59, + 26 ) ) AS col1
----
1
54
-3

skipif mysql # not compatible
query III rowsort label-6470
SELECT ALL + + COUNT ( * ) col2, ( - - 54 ) AS col0, + + 56 + + ( + + COALESCE ( - 59, + 26 ) ) AS col1
----
1
54
-3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6472
SELECT ALL COUNT( * ) * + 32 DIV 15
----
2

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL COUNT ( * ) * + 32 / 15
----
2

query I rowsort
SELECT + 94 + - + 23
----
71

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6475
SELECT CASE 97 WHEN - + COUNT( * ) THEN + CAST( NULL AS SIGNED ) END AS col2, + 59
----
NULL
59

skipif mysql # not compatible
query II rowsort label-6475
SELECT CASE 97 WHEN - + COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) END AS col2, + 59
----
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT CASE 80 WHEN + + 62 + + 40 + - - 39 THEN - + 68 WHEN 42 THEN NULL ELSE 66 * - + 90 * + COUNT( * ) END
----
-5940

skipif mysql # not compatible
query I rowsort label-6476
SELECT CASE 80 WHEN + + 62 + + 40 + - - 39 THEN - + 68 WHEN 42 THEN NULL ELSE 66 * - + 90 * + COUNT ( * ) END
----
-5940

query I rowsort
SELECT + 46 * - ( + 44 ) AS col0
----
-2024

query I rowsort
SELECT - ( + 52 ) * + 99 AS col2
----
-5148

query I rowsort
SELECT ALL 75 * + 45 * + - 42
----
-141750

query I rowsort
SELECT 59 * + 86 - + 12 AS col0
----
5062

onlyif mysql # DIV for integer division: 
query I rowsort label-6481
SELECT ALL - 63 * 97 + 47 DIV 32
----
-6110

skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL - 63 * 97 + 47 / 32
----
-6110

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT ALL - COALESCE ( - + 68, + - COUNT( DISTINCT 71 ) ) * MAX( DISTINCT - 2 ) + - 25 + - + SUM( 19 ) AS col2
----
-180

skipif mysql # not compatible
query I rowsort label-6482
SELECT ALL - COALESCE ( - + 68, + - COUNT ( DISTINCT 71 ) ) * MAX ( DISTINCT - 2 ) + - 25 + - + SUM ( 19 ) AS col2
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6483
SELECT COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6483
SELECT COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT ALL + 60 + - - 29 col0
----
89

query I rowsort
SELECT ALL 74 + 72 AS col0
----
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6486
SELECT 47 + 55 DIV + COUNT( * )
----
102

skipif mysql # not compatible
query I rowsort label-6486
SELECT 47 + 55 / + COUNT ( * )
----
102

query II rowsort
SELECT - 9 col1, + 1 * - ( ( 30 ) ) * + 43
----
-9
-1290

query II rowsort
SELECT - 10 AS col1, 87
----
-10
87

query I rowsort
SELECT DISTINCT - 15 + - 71 - 33 * - + 88
----
2818

query II rowsort
SELECT + 9 AS col0, 32
----
9
32

query I rowsort
SELECT 48 + - - 97
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6492
SELECT ALL - - CAST( NULL AS SIGNED ) / 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL - - CAST ( NULL AS INTEGER ) / 30
----
NULL

query II rowsort
SELECT DISTINCT 32 - - - 44 AS col1, - 73 AS col2
----
-12
-73

query II rowsort
SELECT ALL NULLIF ( - 14, 37 + + 25 ), + ( - COALESCE ( + 99, 85 * 86 - + 51 ) ) AS col2
----
-14
-99

query I rowsort
SELECT DISTINCT - 50 * - + 47 AS col2
----
2350

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT ALL + COUNT( * ) - - 9 + - 60 + + + 95
----
45

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL + COUNT ( * ) - - 9 + - 60 + + + 95
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6498
SELECT ALL - - 47 * + 9 * - NULLIF ( - + COUNT( * ), - 18 * + 63 - + 42 + 89 ) DIV COUNT( * ) * - + 56 + 91 AS col1
----
-23597

skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL - - 47 * + 9 * - NULLIF ( - + COUNT ( * ), - 18 * + 63 - + 42 + 89 ) / COUNT ( * ) * - + 56 + 91 AS col1
----
-23597

query II rowsort
SELECT - 93 AS col1, 43 * + 82 * - 81
----
-93
-285606

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT ALL + 58 - - - SUM( ALL 38 )
----
20

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL + 58 - - - SUM ( ALL 38 )
----
20

query I rowsort
SELECT - 2 * + 70 + + 88
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6502
SELECT 67 DIV - MAX( 31 ) + + - 19 * - 74 AS col0
----
1404

skipif mysql # not compatible
query I rowsort label-6502
SELECT 67 / - MAX ( 31 ) + + - 19 * - 74 AS col0
----
1404

query I rowsort
SELECT + 78 + - - 4
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT + NULLIF ( - MAX( DISTINCT + - ( + 82 ) ), + 90 )
----
82

skipif mysql # not compatible
query I rowsort label-6504
SELECT + NULLIF ( - MAX ( DISTINCT + - ( + 82 ) ), + 90 )
----
82

query II rowsort
SELECT ALL - - 76 * - 77 + 60 * - 92, 19 AS col1
----
-11372
19

onlyif mysql # DIV for integer division: 
query I rowsort label-6506
SELECT ALL 44 DIV 61 * - 33
----
0

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL 44 / 61 * - 33
----
0

query II rowsort
SELECT ALL - + 49 AS col0, + 17 AS col2
----
-49
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6508
SELECT ALL + 27 + + 51 AS col2, + 89 * - CAST( NULL AS SIGNED )
----
78
NULL

skipif mysql # not compatible
query II rowsort label-6508
SELECT ALL + 27 + + 51 AS col2, + 89 * - CAST ( NULL AS INTEGER )
----
78
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6509
SELECT 41 DIV + + 40 AS col0, + MAX( DISTINCT - 81 ) - + - 32
----
1
-49

skipif mysql # not compatible
query II rowsort label-6509
SELECT 41 / + + 40 AS col0, + MAX ( DISTINCT - 81 ) - + - 32
----
1
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT 48 + + MIN( + + 13 )
----
61

skipif mysql # not compatible
query I rowsort label-6510
SELECT 48 + + MIN ( + + 13 )
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-6511
SELECT ALL - 54 DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL - 54 / - 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT + 53 * + 50 * - - 30 + ( COUNT( * ) )
----
79501

skipif mysql # not compatible
query I rowsort label-6512
SELECT + 53 * + 50 * - - 30 + ( COUNT ( * ) )
----
79501

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6513
SELECT 31 DIV - COUNT( - 93 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-6513
SELECT 31 / - COUNT ( - 93 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT MIN( + - 66 ) * + COUNT( * ) + - 40 + + 93
----
-13

skipif mysql # not compatible
query I rowsort label-6514
SELECT MIN ( + - 66 ) * + COUNT ( * ) + - 40 + + 93
----
-13

query I rowsort
SELECT NULLIF ( + 94, + - 23 * + 28 + + 84 ) + + 95
----
189

query I rowsort
SELECT DISTINCT - 37 * - + 51
----
1887

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6517
SELECT 64 * + + SUM( + - 4 ) * - CAST( NULL AS SIGNED ) + MIN( ALL + 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6517
SELECT 64 * + + SUM ( + - 4 ) * - CAST ( NULL AS INTEGER ) + MIN ( ALL + 49 )
----
NULL

query I rowsort
SELECT ALL 28 + + 53 AS col2
----
81

query I rowsort
SELECT ALL 98 + - NULLIF ( + 14, - 57 * 11 - 25 / + - 41 * 56 ) AS col0
----
84

query I rowsort
SELECT DISTINCT 33 + + 9 * - 45 AS col2
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT 92 + + 74 * 39 * 60 + - COUNT( * ) * + 57 AS col1
----
173195

skipif mysql # not compatible
query I rowsort label-6521
SELECT 92 + + 74 * 39 * 60 + - COUNT ( * ) * + 57 AS col1
----
173195

query I rowsort
SELECT 63 * + + 41 AS col2
----
2583

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT ( 64 ) + + COUNT( * ) * + 11
----
75

skipif mysql # not compatible
query I rowsort label-6523
SELECT ( 64 ) + + COUNT ( * ) * + 11
----
75

query I rowsort
SELECT ALL + 54 * ( - + 28 ) AS col2
----
-1512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6525
SELECT - CAST( - 66 AS SIGNED ) + + 34 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-6525
SELECT - CAST ( - 66 AS INTEGER ) + + 34 AS col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT DISTINCT - ( - COUNT( + 55 ) ) * - - MIN( - 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-6526
SELECT DISTINCT - ( - COUNT ( + 55 ) ) * - - MIN ( - 82 ) AS col2
----
-82

query II rowsort
SELECT DISTINCT - 9 * - + 80 AS col0, - 66 + - - 82 AS col0
----
720
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6528
SELECT ALL ( + 14 ) * - 27 AS col0, 32 * + + 13 DIV COUNT( * ) * - 67 AS col2
----
-378
-27872

skipif mysql # not compatible
query II rowsort label-6528
SELECT ALL ( + 14 ) * - 27 AS col0, 32 * + + 13 / COUNT ( * ) * - 67 AS col2
----
-378
-27872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6529
SELECT COUNT( ALL + CAST( + + 20 AS SIGNED ) ) * 52 DIV - 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6529
SELECT COUNT ( ALL + CAST ( + + 20 AS INTEGER ) ) * 52 / - 88 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-6530
SELECT NULLIF ( + - COUNT ( * ), 43 ) AS col2
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6532
SELECT 52 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-6532
SELECT 52 / - 62
----
0

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

skipif mysql # not compatible
query I rowsort label-6533
SELECT CAST ( NULL AS INTEGER ) * + 55
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6534
SELECT DISTINCT - 77 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT - 77 / + 78
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6535
SELECT - MIN( + 15 ) * 77 DIV 4
----
-288

skipif mysql # not compatible
query I rowsort label-6535
SELECT - MIN ( + 15 ) * 77 / 4
----
-288

query I rowsort
SELECT ALL + + 3 * 52
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6537
SELECT ALL - + COUNT( * ) * - 98 DIV - - 90 AS col0
----
1

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

query I rowsort
SELECT 21 * ( - 65 ) AS col2
----
-1365

query I rowsort
SELECT ALL - + 18 * - 15 + + - 92 AS col0
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT DISTINCT - - 90 * - COUNT( * ) + - 76 - + COUNT( * ) + 89 * 40 AS col1
----
3393

skipif mysql # not compatible
query I rowsort label-6540
SELECT DISTINCT - - 90 * - COUNT ( * ) + - 76 - + COUNT ( * ) + 89 * 40 AS col1
----
3393

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6541
SELECT DISTINCT - 85 * + CAST( - + 25 AS SIGNED ) + 84
----
2209

skipif mysql # not compatible
query I rowsort label-6541
SELECT DISTINCT - 85 * + CAST ( - + 25 AS INTEGER ) + 84
----
2209

query I rowsort
SELECT 57 * + 98
----
5586

onlyif mysql # aggregate syntax: 
query II rowsort label-6543
SELECT + 74, + COUNT( * ) - 18 AS col1
----
74
-17

skipif mysql # not compatible
query II rowsort label-6543
SELECT + 74, + COUNT ( * ) - 18 AS col1
----
74
-17

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

query II rowsort
SELECT DISTINCT - 89 AS col0, 98 AS col0
----
-89
98

query I rowsort
SELECT ALL + 60 + + 53 AS col1
----
113

query I rowsort
SELECT DISTINCT + 78 + - + 25 + + 40 * 8
----
373

query II rowsort
SELECT + 95 col2, - 2 * + 63 * - + ( - - 66 )
----
95
8316

onlyif mysql # aggregate syntax: 
query II rowsort label-6549
SELECT 57, - COUNT( * ) * + + 5 + - 8 + 3 * - 81 AS col1
----
57
-256

skipif mysql # not compatible
query II rowsort label-6549
SELECT 57, - COUNT ( * ) * + + 5 + - 8 + 3 * - 81 AS col1
----
57
-256

onlyif mysql # aggregate syntax: 
query II rowsort label-6550
SELECT - SUM( - 54 ) * + 35 AS col0, 11 AS col1
----
1890
11

skipif mysql # not compatible
query II rowsort label-6550
SELECT - SUM ( - 54 ) * + 35 AS col0, 11 AS col1
----
1890
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT + CASE COUNT( * ) WHEN + 76 THEN NULL ELSE - ( + COUNT( ALL - 39 ) ) END * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6551
SELECT + CASE COUNT ( * ) WHEN + 76 THEN NULL ELSE - ( + COUNT ( ALL - 39 ) ) END * COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6552
SELECT DISTINCT + MAX( + 93 ) * 41 DIV 91
----
41

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT + MAX ( + 93 ) * 41 / 91
----
41

query I rowsort
SELECT - 51 - + 68
----
-119

query II rowsort
SELECT ALL 43, 28 AS col0
----
43
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6555
SELECT - + 61 * SUM( ALL + + 94 ) - + SUM( DISTINCT - 58 ) + - 79 * NULLIF ( ( + COALESCE ( CAST( NULL AS SIGNED ), + 46, + 76 ) ), 54 * + - ( - COUNT( * ) ) * - COUNT( * ) + - 43 - - ( ( 38 ) ) + - COUNT( DISTINCT + - 11 ) ) DIV 76 * + 34 AS col0
----
-7274

skipif mysql # not compatible
query I rowsort label-6555
SELECT - + 61 * SUM ( ALL + + 94 ) - + SUM ( DISTINCT - 58 ) + - 79 * NULLIF ( ( + COALESCE ( CAST ( NULL AS INTEGER ), + 46, + 76 ) ), 54 * + - ( - COUNT ( * ) ) * - COUNT ( * ) + - 43 - - ( ( 38 ) ) + - COUNT ( DISTINCT + - 11 ) ) / 76 * + 34 AS col0
----
-7274

query I rowsort
SELECT ALL - 80 * - 66
----
5280

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6557
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2, + COALESCE ( - 84, COALESCE ( + - 18, - 63 - + + 32 + - 28 * 34, + 35 ) ) DIV + - 52 + - 34 + - 28 AS col0
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-6557
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2, + COALESCE ( - 84, COALESCE ( + - 18, - 63 - + + 32 + - 28 * 34, + 35 ) ) / + - 52 + - 34 + - 28 AS col0
----
NULL
-61

query II rowsort
SELECT DISTINCT 50 AS col0, + 33 AS col2
----
50
33

query I rowsort
SELECT - + 42 + + 24
----
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6560
SELECT + - CAST( NULL AS DECIMAL ) - + MAX( DISTINCT 42 ) AS col1, 96 AS col1
----
NULL
96

skipif mysql # not compatible
query II rowsort label-6560
SELECT + - CAST ( NULL AS REAL ) - + MAX ( DISTINCT 42 ) AS col1, 96 AS col1
----
NULL
96

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

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

query II rowsort
SELECT - 28 AS col2, 65 - - + 30 * - 25 col0
----
-28
-685

query I rowsort
SELECT + 21 * + 43 * + - 79 + + 82 AS col1
----
-71255

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT + 65 + + 21 - + 23 - - - 17 * - CASE 37 WHEN 10 THEN NULL ELSE - COUNT( * ) - - 80 + - + 82 END * + 48 + - 50
----
-2435

skipif mysql # not compatible
query I rowsort label-6564
SELECT + 65 + + 21 - + 23 - - - 17 * - CASE 37 WHEN 10 THEN NULL ELSE - COUNT ( * ) - - 80 + - + 82 END * + 48 + - 50
----
-2435

query III rowsort
SELECT ALL + 4 + + 99 + 5 AS col0, - 55 AS col1, - - 67 * - + 0 + - 64
----
108
-55
-64

query I rowsort
SELECT ALL + + 76 + - 49 AS col1
----
27

query I rowsort
SELECT DISTINCT 66 * + - 20 * + 69
----
-91080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6568
SELECT 24 DIV - NULLIF ( + 10, + 58 ) + - COUNT( * ) * - ( 53 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-6568
SELECT 24 / - NULLIF ( + 10, + 58 ) + - COUNT ( * ) * - ( 53 ) AS col2
----
51

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6570
SELECT + + COUNT( * ) + - 18 + 84 col0, - 49 + 39 AS col0
----
67
-10

skipif mysql # not compatible
query II rowsort label-6570
SELECT + + COUNT ( * ) + - 18 + 84 col0, - 49 + 39 AS col0
----
67
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6571
SELECT - 23 DIV COUNT( * ) - + + COUNT( * ) DIV + ( + - 71 ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-6571
SELECT - 23 / COUNT ( * ) - + + COUNT ( * ) / + ( + - 71 ) col0
----
-23

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

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

query I rowsort
SELECT - 45 * 57 + 3
----
-2562

query I rowsort
SELECT ALL + 73 * 86 AS col0
----
6278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6575
SELECT ALL 82 * CAST( - COALESCE ( + COUNT( DISTINCT + - 60 ), + 73, 12 ) AS SIGNED ) - + + 10 col1
----
-92

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL 82 * CAST ( - COALESCE ( + COUNT ( DISTINCT + - 60 ), + 73, 12 ) AS INTEGER ) - + + 10 col1
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-6576
SELECT + 94 DIV - + 52 + + 56
----
55

skipif mysql # not compatible
query I rowsort label-6576
SELECT + 94 / - + 52 + + 56
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT NULLIF ( 63, COUNT( * ) * + 44 )
----
63

skipif mysql # not compatible
query I rowsort label-6577
SELECT NULLIF ( 63, COUNT ( * ) * + 44 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT + ( - + CASE + + 76 WHEN + 91 / - - 49 / COUNT( * ) THEN + 53 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6578
SELECT + ( - + CASE + + 76 WHEN + 91 / - - 49 / COUNT ( * ) THEN + 53 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT - SUM( + + 93 ) + - ( - 36 ) - - - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-6579
SELECT - SUM ( + + 93 ) + - ( - 36 ) - - - COUNT ( * )
----
-58

query I rowsort
SELECT ALL 13 * + 65 - + 41
----
804

query I rowsort
SELECT + 6 * - + 1 + + 11 AS col1
----
5

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT ALL - 2 * NULLIF ( + - MAX( ALL + 40 ), - ( - CASE - - COUNT( * ) WHEN - COUNT( * ) + + 8 / - - 92 THEN NULL ELSE COALESCE ( + 17, + 36 ) * + 45 * + + COUNT( * ) END ) )
----
80

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL - 2 * NULLIF ( + - MAX ( ALL + 40 ), - ( - CASE - - COUNT ( * ) WHEN - COUNT ( * ) + + 8 / - - 92 THEN NULL ELSE COALESCE ( + 17, + 36 ) * + 45 * + + COUNT ( * ) END ) )
----
80

query I rowsort
SELECT - 27 + + - 72
----
-99

query I rowsort
SELECT NULLIF ( 25, 72 - + + ( - 45 ) + - 14 * - 79 )
----
25

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6588
SELECT DISTINCT + + 3 DIV NULLIF ( 9, 81 ) * + 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6588
SELECT DISTINCT + + 3 / NULLIF ( 9, 81 ) * + 51 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6589
SELECT - - COALESCE ( + COUNT( * ), - COUNT( * ) - - COUNT( DISTINCT + 79 ) + + 15 DIV 25 )
----
1

skipif mysql # not compatible
query I rowsort label-6589
SELECT - - COALESCE ( + COUNT ( * ), - COUNT ( * ) - - COUNT ( DISTINCT + 79 ) + + 15 / 25 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6590
SELECT - + MIN( - 91 ) + - NULLIF ( + ( + 36 ), - - 93 + - NULLIF ( - 25, - CAST( NULL AS SIGNED ) ) * + + AVG ( ( + 77 ) ) / + + 49 ) + + + CASE - 92 WHEN - + 8 THEN + COALESCE ( + + 11, - + COUNT( * ), + + 37 ) * - 9 WHEN + - 11 + + COUNT( - ( + ( - 50 ) ) ) * + ( CASE + MIN( ALL 76 ) WHEN COALESCE ( 58, + 29 + 57, 37 / 4 + - 65 * - 57 ) * 94 + - COALESCE ( 40, + 48 - COUNT( * ) / - 80, + CAST( NULL AS SIGNED ) + COUNT( DISTINCT - 19 + 53 ), CASE CASE CAST( NULL AS SIGNED ) WHEN CAST( - AVG ( ALL - CAST( 46 AS SIGNED ) ) AS SIGNED ) / CASE - 80 WHEN 69 THEN CAST( COUNT( * ) AS SIGNED ) + - ( 49 + + 62 ) END THEN + 57 * 82 + - 15 / + 96 END WHEN - 23 * 83 THEN NULL WHEN + 29 / + 18 + - AVG ( DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - 99 ) THEN + COUNT( * ) END + 29 ) THEN 2 WHEN - COUNT( * ) + 28 THEN 63 WHEN + SUM( DISTINCT - 18 ) + ( + 34 ) THEN NULL ELSE NULL END / + ( - ( - 78 ) ) ) THEN NULL END * - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6590
SELECT - + MIN ( - 91 ) + - NULLIF ( + ( + 36 ), - - 93 + - NULLIF ( - 25, - CAST ( NULL AS INTEGER ) ) * + + AVG ( ( + 77 ) ) / + + 49 ) + + + CASE - 92 WHEN - + 8 THEN + COALESCE ( + + 11, - + COUNT ( * ), + + 37 ) * - 9 WHEN + - 11 + + COUNT ( - ( + ( - 50 ) ) ) * + ( CASE + MIN ( ALL 76 ) WHEN COALESCE ( 58, + 29 + 57, 37 / 4 + - 65 * - 57 ) * 94 + - COALESCE ( 40, + 48 - COUNT ( * ) / - 80, + CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT - 19 + 53 ), CASE CASE CAST ( NULL AS INTEGER ) WHEN CAST ( - AVG ( ALL - CAST ( 46 AS INTEGER ) ) AS INTEGER ) / CASE - 80 WHEN 69 THEN CAST ( COUNT ( * ) AS INTEGER ) + - ( 49 + + 62 ) END THEN + 57 * 82 + - 15 / + 96 END WHEN - 23 * 83 THEN NULL WHEN + 29 / + 18 + - AVG ( DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - 99 ) THEN + COUNT ( * ) END + 29 ) THEN 2 WHEN - COUNT ( * ) + 28 THEN 63 WHEN + SUM ( DISTINCT - 18 ) + ( + 34 ) THEN NULL ELSE NULL END / + ( - ( - 78 ) ) ) THEN NULL END * - COUNT ( * ) col2
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-6592
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - - 72 * 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT DISTINCT - 41 + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-6593
SELECT DISTINCT - 41 + COUNT ( * )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT DISTINCT - COUNT( ALL + 89 )
----
-1

skipif mysql # not compatible
query I rowsort label-6594
SELECT DISTINCT - COUNT ( ALL + 89 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT ALL CASE WHEN NOT NULL IS NOT NULL THEN NULLIF ( - + COUNT( * ), - + COALESCE ( - - 90, 77 ) ) ELSE - 22 * COALESCE ( + 74, - 62 * - 39 + - 58 * + - 99 ) END
----
-1

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL CASE WHEN NOT NULL IS NOT NULL THEN NULLIF ( - + COUNT ( * ), - + COALESCE ( - - 90, 77 ) ) ELSE - 22 * COALESCE ( + 74, - 62 * - 39 + - 58 * + - 99 ) END
----
-1

query II rowsort
SELECT - + 13 + + + 72 AS col0, + 30 * - 57 AS col2
----
59
-1710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6597
SELECT ALL - + 32 + + NULLIF ( - 98, - + 61 ) + + NULLIF ( 67, + 97 ) * CASE + 21 WHEN 36 * 27 THEN 83 WHEN - + CASE 95 WHEN 49 * + - COUNT( * ) THEN CAST( NULL AS SIGNED ) WHEN + + NULLIF ( + 30, - + COALESCE ( + - CAST( NULL AS SIGNED ), + 42, + COALESCE ( - ( 22 ), - CASE 63 WHEN 2 THEN - 10 * 1 WHEN 68 + 56 * NULLIF ( - 55 * 38, CASE - COALESCE ( COUNT( * ), COUNT( * ) * MIN( 21 ) - + ( - 28 + 40 * NULLIF ( + 71 * - 2 + 68, - MIN( ALL - 37 ) * - 65 ) ), 81 - - 19 ) WHEN - NULLIF ( 46, - NULLIF ( + 37, - 47 ) ) / CAST( NULL AS SIGNED ) THEN COUNT( * ) / 61 WHEN 48 THEN NULL ELSE + MIN( + 68 ) + - 59 * + 25 END + + 80 ) THEN - ( + 70 ) * 48 ELSE NULL END * - ( + 36 + + 81 ) + + 72, 2 ) * 90 ) ) * 90 THEN ( + 40 ) WHEN 2 THEN NULL END THEN - CASE - 64 WHEN NULLIF ( - 52, - 15 ) THEN 12 END ELSE NULL END * 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL - + 32 + + NULLIF ( - 98, - + 61 ) + + NULLIF ( 67, + 97 ) * CASE + 21 WHEN 36 * 27 THEN 83 WHEN - + CASE 95 WHEN 49 * + - COUNT ( * ) THEN CAST ( NULL AS INTEGER ) WHEN + + NULLIF ( + 30, - + COALESCE ( + - CAST ( NULL AS INTEGER ), + 42, + COALESCE ( - ( 22 ), - CASE 63 WHEN 2 THEN - 10 * 1 WHEN 68 + 56 * NULLIF ( - 55 * 38, CASE - COALESCE ( COUNT ( * ), COUNT ( * ) * MIN ( 21 ) - + ( - 28 + 40 * NULLIF ( + 71 * - 2 + 68, - MIN ( ALL - 37 ) * - 65 ) ), 81 - - 19 ) WHEN - NULLIF ( 46, - NULLIF ( + 37, - 47 ) ) / CAST ( NULL AS INTEGER ) THEN COUNT ( * ) / 61 WHEN 48 THEN NULL ELSE + MIN ( + 68 ) + - 59 * + 25 END + + 80 ) THEN - ( + 70 ) * 48 ELSE NULL END * - ( + 36 + + 81 ) + + 72, 2 ) * 90 ) ) * 90 THEN ( + 40 ) WHEN 2 THEN NULL END THEN - CASE - 64 WHEN NULLIF ( - 52, - 15 ) THEN 12 END ELSE NULL END * 34 AS col0
----
NULL

query I rowsort
SELECT ALL 11 + + - 40 AS col1
----
-29

query I rowsort
SELECT ALL + 69 + - 66 + - 80 * - 72 + 42
----
5805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6600
SELECT - CAST( NULL AS SIGNED ) * + + COUNT( ( - 70 ) ) * - 46 / + 8 * 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6600
SELECT - CAST ( NULL AS INTEGER ) * + + COUNT ( ( - 70 ) ) * - 46 / + 8 * 45 AS col0
----
NULL

query I rowsort
SELECT + 94 + 4 + 11 * - 96 AS col0
----
-958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6602
SELECT + COALESCE ( 46, + + ( - CAST( NULL AS SIGNED ) ) - - COALESCE ( + 57, + + 10 DIV - - COUNT( * ) ) - + - 81 + - 93 ) + - - 63 AS col1
----
109

skipif mysql # not compatible
query I rowsort label-6602
SELECT + COALESCE ( 46, + + ( - CAST ( NULL AS INTEGER ) ) - - COALESCE ( + 57, + + 10 / - - COUNT ( * ) ) - + - 81 + - 93 ) + - - 63 AS col1
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-6603
SELECT ALL 77 + - 19 AS col1, - SUM( 31 )
----
58
-31

skipif mysql # not compatible
query II rowsort label-6603
SELECT ALL 77 + - 19 AS col1, - SUM ( 31 )
----
58
-31

query I rowsort
SELECT ALL - ( 53 ) + + 90
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT + 65 * + 55 * - 36 * - COUNT( * ) col1
----
128700

skipif mysql # not compatible
query I rowsort label-6605
SELECT + 65 * + 55 * - 36 * - COUNT ( * ) col1
----
128700

query I rowsort
SELECT DISTINCT 77 * - 56
----
-4312

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT + 41 * + CASE 47 WHEN + COUNT( * ) THEN - 48 ELSE NULL END * - + 43 - 99 / + 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6607
SELECT + 41 * + CASE 47 WHEN + COUNT ( * ) THEN - 48 ELSE NULL END * - + 43 - 99 / + 54 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6608
SELECT ALL ( - + 87 ) DIV + 11
----
-7

skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL ( - + 87 ) / + 11
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-6609
SELECT DISTINCT 46 * - ( + COUNT( * ) ) AS col0, 43 - 8 AS col0
----
-46
35

skipif mysql # not compatible
query II rowsort label-6609
SELECT DISTINCT 46 * - ( + COUNT ( * ) ) AS col0, 43 - 8 AS col0
----
-46
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6610
SELECT DISTINCT SUM( ALL 32 ) - - - 78, CAST( - MIN( ALL - - 53 ) AS SIGNED ) AS col0
----
-46
-53

skipif mysql # not compatible
query II rowsort label-6610
SELECT DISTINCT SUM ( ALL 32 ) - - - 78, CAST ( - MIN ( ALL - - 53 ) AS INTEGER ) AS col0
----
-46
-53

query II rowsort
SELECT ( - 7 ) * - 54, 48 + - - 31 AS col0
----
378
79

query II rowsort
SELECT ALL - 21 AS col2, 35 AS col0
----
-21
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT ( + - NULLIF ( - 12, AVG ( + - ( + 39 ) ) * - COUNT( * ) + - + NULLIF ( + 47, - COUNT( * ) ) + COUNT( * ) ) ) * + 78 AS col0
----
936

skipif mysql # not compatible
query I rowsort label-6613
SELECT ( + - NULLIF ( - 12, AVG ( + - ( + 39 ) ) * - COUNT ( * ) + - + NULLIF ( + 47, - COUNT ( * ) ) + COUNT ( * ) ) ) * + 78 AS col0
----
936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6614
SELECT 1 * - CAST( - 89 AS SIGNED ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-6614
SELECT 1 * - CAST ( - 89 AS INTEGER ) AS col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6615
SELECT DISTINCT SUM( ALL - 68 ) DIV 34
----
-2

skipif mysql # not compatible
query I rowsort label-6615
SELECT DISTINCT SUM ( ALL - 68 ) / 34
----
-2

query II rowsort
SELECT DISTINCT - 14 AS col0, - 88
----
-14
-88

query II rowsort
SELECT ALL - 53, - 9 * 57 AS col2
----
-53
-513

query I rowsort
SELECT ALL - COALESCE ( 4, ( - - 72 ) * + - 12 ) * 86 * - CASE - 28 WHEN - - ( 22 ) THEN + + 47 END * + 63
----
NULL

query I rowsort
SELECT 91 * 54 col2
----
4914

onlyif mysql # DIV for integer division: 
query II rowsort label-6620
SELECT ALL 9 DIV + + 71 * + + 50, 87 AS col0
----
0
87

skipif mysql # not compatible
query II rowsort label-6620
SELECT ALL 9 / + + 71 * + + 50, 87 AS col0
----
0
87

query II rowsort
SELECT DISTINCT - 30 AS col0, 1 col2
----
-30
1

query I rowsort
SELECT DISTINCT - 25 * + 45 AS col1
----
-1125

query I rowsort
SELECT ALL + ( - 74 ) * - + 12 AS col0
----
888

query I rowsort
SELECT 81 + + 52
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT + NULLIF ( 64, + + COUNT( * ) ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-6625
SELECT + NULLIF ( 64, + + COUNT ( * ) ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT DISTINCT - + 72 + + - 78 - + COUNT( * ) + - 10 * + 22 * - - 36 - - + ( + - 39 ) AS col0
----
-8110

skipif mysql # not compatible
query I rowsort label-6626
SELECT DISTINCT - + 72 + + - 78 - + COUNT ( * ) + - 10 * + 22 * - - 36 - - + ( + - 39 ) AS col0
----
-8110

query I rowsort
SELECT ALL + - 9 * - ( + 54 )
----
486

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT ALL - COUNT( * ) + - 84 + 34
----
-51

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL - COUNT ( * ) + - 84 + 34
----
-51

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

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

query I rowsort
SELECT DISTINCT ( - 20 ) + - 9 * 88
----
-812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6631
SELECT MIN( ALL - - 91 ) + + 44 * - ( - - 10 ) + + - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6631
SELECT MIN ( ALL - - 91 ) + + 44 * - ( - - 10 ) + + - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6632
SELECT ALL + 79 + CASE + 41 WHEN - - 91 THEN NULL WHEN 89 THEN 32 * - MIN( + 27 ) ELSE + - 10 * - COUNT( * ) + - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL + 79 + CASE + 41 WHEN - - 91 THEN NULL WHEN 89 THEN 32 * - MIN ( + 27 ) ELSE + - 10 * - COUNT ( * ) + - CAST ( NULL AS INTEGER ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT ALL + MAX( + 73 ) + + 52 - + 21 col2
----
104

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL + MAX ( + 73 ) + + 52 - + 21 col2
----
104

query I rowsort
SELECT DISTINCT - - 54 + 59
----
113

query I rowsort
SELECT 76 + 43 AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT 19 - 14 + - COALESCE ( MAX( 52 ), 29 + + 89 ) * - 88
----
4581

skipif mysql # not compatible
query I rowsort label-6637
SELECT 19 - 14 + - COALESCE ( MAX ( 52 ), 29 + + 89 ) * - 88
----
4581

query I rowsort
SELECT DISTINCT + CASE 25 WHEN 62 * 78 THEN + 27 END / 21 * + 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT ALL - 38 + - - SUM( DISTINCT 16 )
----
-22

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL - 38 + - - SUM ( DISTINCT 16 )
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-6640
SELECT + ( + 88 ) DIV - 98 * 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6640
SELECT + ( + 88 ) / - 98 * 14 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6642
SELECT ALL + 35 - 83 + - 47 DIV + COALESCE ( 33, - COALESCE ( + 74, - + 69, - + MAX( DISTINCT - 16 ) DIV - 50, + COUNT( * ) ) - + - 29 )
----
-49

skipif mysql # not compatible
query I rowsort label-6642
SELECT ALL + 35 - 83 + - 47 / + COALESCE ( 33, - COALESCE ( + 74, - + 69, - + MAX ( DISTINCT - 16 ) / - 50, + COUNT ( * ) ) - + - 29 )
----
-49

query I rowsort
SELECT ALL 29 - 83 AS col1
----
-54

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

skipif mysql # not compatible
query I rowsort label-6644
SELECT 76 / - 94 / + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6645
SELECT COUNT( * ) DIV 49 + + COUNT( * ) * - - 98 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-6645
SELECT COUNT ( * ) / 49 + + COUNT ( * ) * - - 98 AS col2
----
98

query II rowsort
SELECT 57, 17 AS col0
----
57
17

onlyif mysql # DIV for integer division: 
query I rowsort label-6647
SELECT + 24 DIV 79 + - 21 col0
----
-21

skipif mysql # not compatible
query I rowsort label-6647
SELECT + 24 / 79 + - 21 col0
----
-21

query II rowsort
SELECT 30 AS col2, - 38 AS col0
----
30
-38

query II rowsort
SELECT + 80 AS col1, - 2
----
80
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6650
SELECT ALL - 27 AS col2, - COUNT( * ) DIV - 42
----
-27
0

skipif mysql # not compatible
query II rowsort label-6650
SELECT ALL - 27 AS col2, - COUNT ( * ) / - 42
----
-27
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6651
SELECT + CASE - + COALESCE ( - 77, - 17, 14 ) WHEN - 70 * + 85 THEN + + 93 + - COUNT( * ) END / + SUM( + - 12 ) + - COUNT( * ) * ( + 23 ) col0, - 43 * 72 AS col1
----
NULL
-3096

skipif mysql # not compatible
query II rowsort label-6651
SELECT + CASE - + COALESCE ( - 77, - 17, 14 ) WHEN - 70 * + 85 THEN + + 93 + - COUNT ( * ) END / + SUM ( + - 12 ) + - COUNT ( * ) * ( + 23 ) col0, - 43 * 72 AS col1
----
NULL
-3096

query I rowsort
SELECT 72 + - - 71 + 84 + 97 AS col0
----
324

onlyif mysql # DIV for integer division: 
query II rowsort label-6653
SELECT 75 DIV - 85 + 2 * - 32 * ( + 39 ) AS col0, - 47 AS col1
----
-2496
-47

skipif mysql # not compatible
query II rowsort label-6653
SELECT 75 / - 85 + 2 * - 32 * ( + 39 ) AS col0, - 47 AS col1
----
-2496
-47

query I rowsort
SELECT DISTINCT + 84 * + 10
----
840

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

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

query II rowsort
SELECT + 56 col1, NULLIF ( - 76, - 42 ) + - + 28
----
56
-104

query II rowsort
SELECT + 59 col2, 33
----
59
33

query I rowsort
SELECT 96 * + 24 + + 22 AS col1
----
2326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6659
SELECT 49 * - 65 * ( + 26 ) + + - 27 + 46 + - 62 * + 68 + - CAST( NULL AS SIGNED ) * - 30 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6659
SELECT 49 * - 65 * ( + 26 ) + + - 27 + 46 + - 62 * + 68 + - CAST ( NULL AS INTEGER ) * - 30 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6660
SELECT ALL - 43 + - - 54 * - 8 * - CAST( - 4 AS SIGNED ) + - COUNT( * ) + 69 + - 55 * - 51 + + - 42 + + + 13 AS col1
----
1073

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL - 43 + - - 54 * - 8 * - CAST ( - 4 AS INTEGER ) + - COUNT ( * ) + 69 + - 55 * - 51 + + - 42 + + + 13 AS col1
----
1073

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT DISTINCT - - COALESCE ( - + COUNT( * ), + 54 * 24, - SUM( DISTINCT + 67 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT - - COALESCE ( - + COUNT ( * ), + 54 * 24, - SUM ( DISTINCT + 67 ) ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6662
SELECT 91 AS col1, - 23 - + - 85 * + COALESCE ( + 23, CAST( NULL AS SIGNED ), + + NULLIF ( - 30, - COUNT( * ) ) + - 18 + + - 80 * - - 88 )
----
91
1932

skipif mysql # not compatible
query II rowsort label-6662
SELECT 91 AS col1, - 23 - + - 85 * + COALESCE ( + 23, CAST ( NULL AS INTEGER ), + + NULLIF ( - 30, - COUNT ( * ) ) + - 18 + + - 80 * - - 88 )
----
91
1932

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6663
SELECT + 17 * + ( - COUNT( * ) ) + - COALESCE ( + 68, + 36 DIV - 38 * + 58 * 2 * - COALESCE ( + 8, COUNT( * ) ) + + + 15 + 90 * 46 - + ( - - 31 ) * + 40 + + COUNT( * ) + + 20 )
----
-85

skipif mysql # not compatible
query I rowsort label-6663
SELECT + 17 * + ( - COUNT ( * ) ) + - COALESCE ( + 68, + 36 / - 38 * + 58 * 2 * - COALESCE ( + 8, COUNT ( * ) ) + + + 15 + 90 * 46 - + ( - - 31 ) * + 40 + + COUNT ( * ) + + 20 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT ALL COUNT( ALL ( - 26 ) ) + - 83 + 43
----
-39

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL COUNT ( ALL ( - 26 ) ) + - 83 + 43
----
-39

query I rowsort
SELECT 65 * - CASE - - COALESCE ( - 46, NULLIF ( - 66, - 78 ) ) WHEN - 69 + 2 THEN - 33 ELSE + NULLIF ( 64, + 62 ) END * 50
----
-208000

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6666
SELECT COUNT( * ) + + - 66, 5 DIV + 64 AS col2
----
-65
0

skipif mysql # not compatible
query II rowsort label-6666
SELECT COUNT ( * ) + + - 66, 5 / + 64 AS col2
----
-65
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT 44 * + - SUM( DISTINCT + - 36 ) AS col0
----
1584

skipif mysql # not compatible
query I rowsort label-6667
SELECT 44 * + - SUM ( DISTINCT + - 36 ) AS col0
----
1584

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( - ( + 84 ), + 97 * + 15 ) * - - 59 AS col1
----
-4956

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

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

query II rowsort
SELECT ALL 76 col2, + NULLIF ( 28, 86 ) AS col2
----
76
28

query I rowsort
SELECT ALL 17 - + 52 AS col2
----
-35

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

query I rowsort
SELECT - ( - + 50 ) + + 39 - - 33
----
122

query I rowsort
SELECT + 58 * - 31
----
-1798

query I rowsort
SELECT - 64 + - ( 76 ) AS col1
----
-140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6677
SELECT ALL - 69 DIV ( 71 ) * + MIN( ALL - - 32 ) * 28 DIV - 47 * + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL - 69 / ( 71 ) * + MIN ( ALL - - 32 ) * 28 / - 47 * + 72 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT DISTINCT - MAX( DISTINCT + 6 ) * 93 * 46 + 2 + - ( 73 )
----
-25739

skipif mysql # not compatible
query I rowsort label-6678
SELECT DISTINCT - MAX ( DISTINCT + 6 ) * 93 * 46 + 2 + - ( 73 )
----
-25739

query I rowsort
SELECT ALL - 43 * 74 AS col1
----
-3182

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

skipif mysql # not compatible
query I rowsort label-6680
SELECT - COUNT ( * ) * - COUNT ( * ) / + + SUM ( - 81 ) AS col0
----
0

query I rowsort
SELECT ALL - 70 * 32 * + COALESCE ( 41, - 43 + - 4 )
----
-91840

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT COALESCE ( MAX( + 40 ), + 72, + COUNT( * ), - COUNT( * ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-6682
SELECT COALESCE ( MAX ( + 40 ), + 72, + COUNT ( * ), - COUNT ( * ) ) AS col0
----
40

query I rowsort
SELECT - 98 * + ( + COALESCE ( + 70, + 14 ) ) AS col0
----
-6860

query I rowsort
SELECT COALESCE ( 89, - 75 ) col0
----
89

query I rowsort
SELECT - 68 * - 88
----
5984

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6686
SELECT + NULLIF ( + - 53, - + 78 + + CAST( + 25 AS SIGNED ) ) * - - 14 - + 99 AS col1, 30 + 85 + 40
----
NULL
155

skipif mysql # not compatible
query II rowsort label-6686
SELECT + NULLIF ( + - 53, - + 78 + + CAST ( + 25 AS INTEGER ) ) * - - 14 - + 99 AS col1, 30 + 85 + 40
----
NULL
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6687
SELECT DISTINCT + COUNT( * ) * 56 + - 23 * CAST( 24 AS SIGNED ) DIV - COALESCE ( - + NULLIF ( + 47, - ( + + CAST( NULL AS SIGNED ) ) ), + COUNT( * ) + ( - + 27 ) ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6687
SELECT DISTINCT + COUNT ( * ) * 56 + - 23 * CAST ( 24 AS INTEGER ) / - COALESCE ( - + NULLIF ( + 47, - ( + + CAST ( NULL AS INTEGER ) ) ), + COUNT ( * ) + ( - + 27 ) ) AS col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6688
SELECT DISTINCT + ( 71 ) * + - CASE - 23 WHEN + 96 + - 14 THEN - - 71 * COALESCE ( + COUNT( * ), - - 6 ) * + - 1 + - 2 + 61 ELSE 90 END * 41 - - - 45 * + 82 + 1 DIV - 30 + - 40, 71 - + + 93 + - 44 + 83 AS col1
----
-265720
17

skipif mysql # not compatible
query II rowsort label-6688
SELECT DISTINCT + ( 71 ) * + - CASE - 23 WHEN + 96 + - 14 THEN - - 71 * COALESCE ( + COUNT ( * ), - - 6 ) * + - 1 + - 2 + 61 ELSE 90 END * 41 - - - 45 * + 82 + 1 / - 30 + - 40, 71 - + + 93 + - 44 + 83 AS col1
----
-265720
17

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6690
SELECT + 15 * 30, - 72 DIV + - MAX( 90 ) AS col2
----
450
0

skipif mysql # not compatible
query II rowsort label-6690
SELECT + 15 * 30, - 72 / + - MAX ( 90 ) AS col2
----
450
0

query I rowsort
SELECT ALL - - 53 * 72 + + 78
----
3894

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT DISTINCT + - SUM( DISTINCT + ( 36 ) ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT + - SUM ( DISTINCT + ( 36 ) ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT - + MIN( - 3 ) * + - 3 + - NULLIF ( CASE WHEN COUNT( * ) IS NULL THEN - - 39 - 12 ELSE + - SUM( DISTINCT + 86 ) * 72 END, + 27 ) * COUNT( * ) AS col0
----
6183

skipif mysql # not compatible
query I rowsort label-6693
SELECT - + MIN ( - 3 ) * + - 3 + - NULLIF ( CASE WHEN COUNT ( * ) IS NULL THEN - - 39 - 12 ELSE + - SUM ( DISTINCT + 86 ) * 72 END, + 27 ) * COUNT ( * ) AS col0
----
6183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6694
SELECT - 46 * 11 - + COALESCE ( 97, CAST( NULL AS SIGNED ) + + ( + - 96 ) + - COUNT( DISTINCT + + 11 ) ) AS col2
----
-603

skipif mysql # not compatible
query I rowsort label-6694
SELECT - 46 * 11 - + COALESCE ( 97, CAST ( NULL AS INTEGER ) + + ( + - 96 ) + - COUNT ( DISTINCT + + 11 ) ) AS col2
----
-603

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT - + 82 + - COALESCE ( - 11, - 85 * + + COUNT( ALL + 10 ) * - + 25 + + 73 + - ( + 62 ) + + 85 + - - 29, - 11 ) + + 7 * + 22 col2
----
83

skipif mysql # not compatible
query I rowsort label-6695
SELECT - + 82 + - COALESCE ( - 11, - 85 * + + COUNT ( ALL + 10 ) * - + 25 + + 73 + - ( + 62 ) + + 85 + - - 29, - 11 ) + + 7 * + 22 col2
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-6696
SELECT - 91 * - MIN( DISTINCT 80 ) AS col0, - 43 + ( - 29 ) * + COUNT( * ) + + + 54 + - ( + CASE + 53 WHEN + + MAX( - 26 ) THEN NULL ELSE + 57 END ) + + - 34 * 66 * - - 70 AS col1
----
7280
-157155

skipif mysql # not compatible
query II rowsort label-6696
SELECT - 91 * - MIN ( DISTINCT 80 ) AS col0, - 43 + ( - 29 ) * + COUNT ( * ) + + + 54 + - ( + CASE + 53 WHEN + + MAX ( - 26 ) THEN NULL ELSE + 57 END ) + + - 34 * 66 * - - 70 AS col1
----
7280
-157155

onlyif mysql # aggregate syntax: 
query II rowsort label-6697
SELECT - ( + 67 ), ( + MAX( + 1 ) ) * + - COUNT( * ) col0
----
-67
-1

skipif mysql # not compatible
query II rowsort label-6697
SELECT - ( + 67 ), ( + MAX ( + 1 ) ) * + - COUNT ( * ) col0
----
-67
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6698
SELECT ALL - ( - 57 ) * - CAST( NULL AS SIGNED ) + + 23 - - SUM( DISTINCT - 24 ) * - 52 + + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL - ( - 57 ) * - CAST ( NULL AS INTEGER ) + + 23 - - SUM ( DISTINCT - 24 ) * - 52 + + 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-6699
SELECT ALL 1 - 21 AS col1, - 86 AS col0, - - COUNT( * ) * - - 57
----
-20
-86
57

skipif mysql # not compatible
query III rowsort label-6699
SELECT ALL 1 - 21 AS col1, - 86 AS col0, - - COUNT ( * ) * - - 57
----
-20
-86
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6700
SELECT - CASE + 29 WHEN - 46 + COUNT( * ) THEN NULL WHEN - ( + 65 ) THEN NULL WHEN NULLIF ( - 4, + COUNT( * ) - - 57 ) THEN COUNT( * ) DIV + 35 ELSE NULL END AS col2, 38 DIV 11 AS col2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6700
SELECT - CASE + 29 WHEN - 46 + COUNT ( * ) THEN NULL WHEN - ( + 65 ) THEN NULL WHEN NULLIF ( - 4, + COUNT ( * ) - - 57 ) THEN COUNT ( * ) / + 35 ELSE NULL END AS col2, 38 / 11 AS col2
----
NULL
3

query I rowsort
SELECT + 45 + + + ( + - 29 ) * - ( 23 ) col0
----
712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6702
SELECT + - SUM( - + 0 ) DIV + 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6702
SELECT + - SUM ( - + 0 ) / + 60 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6703
SELECT ALL + 44 DIV + - NULLIF ( + - 98, COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL + 44 / + - NULLIF ( + - 98, COUNT ( * ) )
----
0

query I rowsort
SELECT + + ( 80 ) + 81 + 65 col2
----
226

query I rowsort
SELECT + 71 * + 71 col1
----
5041

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

skipif mysql # not compatible
query II rowsort label-6706
SELECT - 67 AS col0, + 60 * + COUNT ( * )
----
-67
60

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

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

query II rowsort
SELECT + 35 * ( + 85 ) col0, - 17 + + 83
----
2975
66

query I rowsort
SELECT - 40 * 65 AS col0
----
-2600

query I rowsort
SELECT ALL 46 * - + 65 col1
----
-2990

query I rowsort
SELECT DISTINCT 58 * + 84
----
4872

query I rowsort
SELECT ALL CASE - 47 WHEN - - 82 THEN - 91 END
----
NULL

query I rowsort
SELECT ALL 93 * - 89
----
-8277

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

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

query I rowsort
SELECT DISTINCT ( COALESCE ( - + 82, 83 ) )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT + ( - COUNT( * ) ) + + 96 - - COALESCE ( 9, 60 ) * + 39
----
446

skipif mysql # not compatible
query I rowsort label-6716
SELECT + ( - COUNT ( * ) ) + + 96 - - COALESCE ( 9, 60 ) * + 39
----
446

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT - 98 - 59 - 14 * + - SUM( + 63 ) + + 18
----
743

skipif mysql # not compatible
query I rowsort label-6717
SELECT - 98 - 59 - 14 * + - SUM ( + 63 ) + + 18
----
743

query II rowsort
SELECT - 41, - 92 AS col2
----
-41
-92

query I rowsort
SELECT - 74 * - - 26 AS col2
----
-1924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6720
SELECT ALL + CASE 13 WHEN ( - 67 ) THEN - 47 - - MAX( + + 80 ) + CAST( NULL AS SIGNED ) + 70 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL + CASE 13 WHEN ( - 67 ) THEN - 47 - - MAX ( + + 80 ) + CAST ( NULL AS INTEGER ) + 70 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT + 62 + + - 87 + COUNT( * ) * + 36
----
11

skipif mysql # not compatible
query I rowsort label-6721
SELECT + 62 + + - 87 + COUNT ( * ) * + 36
----
11

query II rowsort
SELECT DISTINCT + 68 AS col2, - 87 + - - 63 + + 1 + - 88
----
68
-111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6723
SELECT - 38 + - CASE - - COALESCE ( 75, - 82 * + - 75, - - 69 * + COUNT( * ) ) WHEN + + COALESCE ( 29, + 14 * 28 ) * CAST( + 18 AS SIGNED ) THEN - - NULLIF ( - 69, - 8 ) + + + 11 WHEN 52 + + + 10 THEN NULL WHEN 83 + + MAX( + 35 ) THEN NULL ELSE + CAST( NULL AS SIGNED ) END - - ( + 56 ) * + + 62 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6723
SELECT - 38 + - CASE - - COALESCE ( 75, - 82 * + - 75, - - 69 * + COUNT ( * ) ) WHEN + + COALESCE ( 29, + 14 * 28 ) * CAST ( + 18 AS INTEGER ) THEN - - NULLIF ( - 69, - 8 ) + + + 11 WHEN 52 + + + 10 THEN NULL WHEN 83 + + MAX ( + 35 ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) END - - ( + 56 ) * + + 62 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6724
SELECT ALL - 48 DIV - + 57 + + - ( + 79 ) + + COUNT( ALL 92 )
----
-78

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL - 48 / - + 57 + + - ( + 79 ) + + COUNT ( ALL 92 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT - - 55 * + - COUNT( + + 87 ) + - - 74 + - 22 + + 23 * - - ( + NULLIF ( - 84, - 23 ) )
----
-1935

skipif mysql # not compatible
query I rowsort label-6725
SELECT - - 55 * + - COUNT ( + + 87 ) + - - 74 + - 22 + + 23 * - - ( + NULLIF ( - 84, - 23 ) )
----
-1935

query II rowsort
SELECT DISTINCT + - 48, 77 col0
----
-48
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6727
SELECT - CAST( NULL AS SIGNED ) + - + 13 * COUNT( * ), 90 AS col0
----
NULL
90

skipif mysql # not compatible
query II rowsort label-6727
SELECT - CAST ( NULL AS INTEGER ) + - + 13 * COUNT ( * ), 90 AS col0
----
NULL
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT + - SUM( 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-6728
SELECT + - SUM ( 23 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT - 35 + + - COUNT( * ) - + + 76 * 82
----
-6268

skipif mysql # not compatible
query I rowsort label-6729
SELECT - 35 + + - COUNT ( * ) - + + 76 * 82
----
-6268

onlyif mysql # DIV for integer division: 
query I rowsort label-6730
SELECT ALL + 19 DIV + - 47 - + 55 - - - 29 * - 22 * 85
----
54175

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL + 19 / + - 47 - + 55 - - - 29 * - 22 * 85
----
54175

query I rowsort
SELECT - 75 * - 90
----
6750

onlyif mysql # aggregate syntax: 
query II rowsort label-6732
SELECT - 88 * CASE - 13 WHEN + 43 * + 46 + + - ( + + ( + COUNT( * ) ) ) * + 70 * - - 82 THEN - 27 WHEN + + 30 THEN + - 48 + 22 WHEN - - 30 - 74 THEN NULL END col1, - 36 col2
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-6732
SELECT - 88 * CASE - 13 WHEN + 43 * + 46 + + - ( + + ( + COUNT ( * ) ) ) * + 70 * - - 82 THEN - 27 WHEN + + 30 THEN + - 48 + 22 WHEN - - 30 - 74 THEN NULL END col1, - 36 col2
----
NULL
-36

query I rowsort
SELECT + 63 + + 85 AS col2
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-6734
SELECT ALL + - COUNT( * ) AS col1, 29 * - + SUM( + - ( + + 31 ) )
----
-1
899

skipif mysql # not compatible
query II rowsort label-6734
SELECT ALL + - COUNT ( * ) AS col1, 29 * - + SUM ( + - ( + + 31 ) )
----
-1
899

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT ALL + + MAX( - 91 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL + + MAX ( - 91 ) AS col0
----
-91

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6737
SELECT DISTINCT - 22 AS col1, - 15 DIV + 26 + + + 46 + + 26 * + COUNT( * ) + 79 * - - 88
----
-22
7024

skipif mysql # not compatible
query II rowsort label-6737
SELECT DISTINCT - 22 AS col1, - 15 / + 26 + + + 46 + + 26 * + COUNT ( * ) + 79 * - - 88
----
-22
7024

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6739
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + COALESCE ( COALESCE ( - ( MAX( + 51 ) ), - NULLIF ( - 81, MIN( 69 ) ), - - 69 * + 0 * - - 33 ), 67 ) + + CASE + COUNT( * ) WHEN + - 92 * + MAX( ALL 34 ) THEN - 68 WHEN + - ( + 14 ) * COALESCE ( - CAST( NULL AS SIGNED ), 5 + MAX( DISTINCT - + 87 ) * - 90 ) + AVG ( - 84 ) THEN NULL ELSE 79 * + 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6739
SELECT DISTINCT - CAST ( NULL AS REAL ) * + COALESCE ( COALESCE ( - ( MAX ( + 51 ) ), - NULLIF ( - 81, MIN ( 69 ) ), - - 69 * + 0 * - - 33 ), 67 ) + + CASE + COUNT ( * ) WHEN + - 92 * + MAX ( ALL 34 ) THEN - 68 WHEN + - ( + 14 ) * COALESCE ( - CAST ( NULL AS INTEGER ), 5 + MAX ( DISTINCT - + 87 ) * - 90 ) + AVG ( - 84 ) THEN NULL ELSE 79 * + 49 END
----
NULL

query I rowsort
SELECT ALL + 15 * + 73 col0
----
1095

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6741
SELECT 61 * + + CAST( NULL AS SIGNED ) / - 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6741
SELECT 61 * + + CAST ( NULL AS INTEGER ) / - 62 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6742
SELECT - CAST( 55 AS SIGNED ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-6742
SELECT - CAST ( 55 AS INTEGER ) AS col0
----
-55

query I rowsort
SELECT DISTINCT 12 * + + 75 col2
----
900

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT CASE - 92 WHEN - + 38 THEN ( + + 17 ) WHEN - COUNT( * ) + + + MAX( ALL 73 ) + - 25 + NULLIF ( + - 96, 33 ) THEN NULL END * COALESCE ( + COUNT( * ), + - 83 + + 13 * 79 + + 39 + + - 12 * + 52 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6744
SELECT CASE - 92 WHEN - + 38 THEN ( + + 17 ) WHEN - COUNT ( * ) + + + MAX ( ALL 73 ) + - 25 + NULLIF ( + - 96, 33 ) THEN NULL END * COALESCE ( + COUNT ( * ), + - 83 + + 13 * 79 + + 39 + + - 12 * + 52 ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT ALL 5 + 47 + COALESCE ( - 52, - 31, + 22 * ( + MAX( ALL + + 49 ) ) * + 10 ) + 42 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL 5 + 47 + COALESCE ( - 52, - 31, + 22 * ( + MAX ( ALL + + 49 ) ) * + 10 ) + 42 AS col0
----
42

query I rowsort
SELECT 82 + + ( 73 ) AS col1
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT ALL 11 + + 88 * - + 37 + NULLIF ( ( 11 ), + 37 + - 77 ) * + + COUNT( * ) - - 76
----
-3158

skipif mysql # not compatible
query I rowsort label-6747
SELECT ALL 11 + + 88 * - + 37 + NULLIF ( ( 11 ), + 37 + - 77 ) * + + COUNT ( * ) - - 76
----
-3158

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT DISTINCT COUNT( * ) + + + ( - 50 )
----
-49

skipif mysql # not compatible
query I rowsort label-6748
SELECT DISTINCT COUNT ( * ) + + + ( - 50 )
----
-49

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6750
SELECT DISTINCT MAX( + 11 ) + - + 0 * - + 4, 58 * + 15 + - 88 * + + 85 + - 61 - + 49 + CAST( MAX( DISTINCT 2 ) AS SIGNED ) AS col2
----
11
-6718

skipif mysql # not compatible
query II rowsort label-6750
SELECT DISTINCT MAX ( + 11 ) + - + 0 * - + 4, 58 * + 15 + - 88 * + + 85 + - 61 - + 49 + CAST ( MAX ( DISTINCT 2 ) AS INTEGER ) AS col2
----
11
-6718

query II rowsort
SELECT ALL 3 * + - 73 AS col1, 0
----
-219
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT DISTINCT COUNT( * ) * + 58 * + - 81 * - 9 * + COUNT( - + 76 ) AS col1
----
42282

skipif mysql # not compatible
query I rowsort label-6752
SELECT DISTINCT COUNT ( * ) * + 58 * + - 81 * - 9 * + COUNT ( - + 76 ) AS col1
----
42282

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT ( + SUM( ALL + + 97 ) ) * 76 AS col2
----
7372

skipif mysql # not compatible
query I rowsort label-6753
SELECT ( + SUM ( ALL + + 97 ) ) * 76 AS col2
----
7372

query I rowsort
SELECT ALL - 69 - + 94 col2
----
-163

onlyif mysql # DIV for integer division: 
query I rowsort label-6755
SELECT ALL - 10 DIV + 16
----
0

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL - 10 / + 16
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT ALL + - SUM( DISTINCT - 29 ) * + 41 * + 83
----
98687

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL + - SUM ( DISTINCT - 29 ) * + 41 * + 83
----
98687

onlyif mysql # DIV for integer division: 
query I rowsort label-6757
SELECT 50 DIV + 61 + - 30 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-6757
SELECT 50 / + 61 + - 30 AS col0
----
-30

query I rowsort
SELECT 96 * 52
----
4992

query I rowsort
SELECT 98 + + 93
----
191

query I rowsort
SELECT + 99 * - + 28 - + NULLIF ( - 75, - + 73 ) + - 0 + - - 76 col0
----
-2621

onlyif mysql # DIV for integer division: 
query I rowsort label-6761
SELECT 29 DIV - 80 - - - 32 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-6761
SELECT 29 / - 80 - - - 32 AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6762
SELECT - 80 + + ( + 65 ) + - CAST( COALESCE ( 16, 54 + + + 7 * + + COUNT( DISTINCT 97 ) ) AS SIGNED ) - - - ( - 75 )
----
44

skipif mysql # not compatible
query I rowsort label-6762
SELECT - 80 + + ( + 65 ) + - CAST ( COALESCE ( 16, 54 + + + 7 * + + COUNT ( DISTINCT 97 ) ) AS INTEGER ) - - - ( - 75 )
----
44

query I rowsort
SELECT ( - 5 ) * + NULLIF ( 58, - 57 ) * 7
----
-2030

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT DISTINCT + 36 + - COUNT( DISTINCT - 67 ) * - 56 * - 54
----
-2988

skipif mysql # not compatible
query I rowsort label-6764
SELECT DISTINCT + 36 + - COUNT ( DISTINCT - 67 ) * - 56 * - 54
----
-2988

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT + NULLIF ( + 32, - 1 * + + MAX( DISTINCT - 96 ) )
----
32

skipif mysql # not compatible
query I rowsort label-6765
SELECT + NULLIF ( + 32, - 1 * + + MAX ( DISTINCT - 96 ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT ALL + 56 + 64 * + + COUNT( * ) AS col2
----
120

skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL + 56 + 64 * + + COUNT ( * ) AS col2
----
120

query I rowsort
SELECT 85 + CASE - - 25 WHEN + 15 THEN - 59 + - NULLIF ( 15, + - 14 ) - + + 39 + - - 26 * 63 * 21 - + 96 END * + 45
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6768
SELECT ALL + 56 + - 55 DIV 66 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL + 56 + - 55 / 66 AS col1
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-6769
SELECT ALL COUNT( * ), COALESCE ( + 95, - + 39 * 43, + - 14 ) AS col0
----
1
95

skipif mysql # not compatible
query II rowsort label-6769
SELECT ALL COUNT ( * ), COALESCE ( + 95, - + 39 * 43, + - 14 ) AS col0
----
1
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6770
SELECT NULLIF ( - + 31, + 29 + + 23 ) + + 9 + CAST( 2 AS SIGNED ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-6770
SELECT NULLIF ( - + 31, + 29 + + 23 ) + + 9 + CAST ( 2 AS INTEGER ) AS col0
----
-20

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6772
SELECT COALESCE ( 70, 60 * - CASE + 27 WHEN - 78 * + 49 * - 40 + - ( + COUNT( * ) ) + - 46 + 22 * - 82 - - 14 / 7 + - 68 / + 2 + - 0 + + 72 * + 59 * - 7 * + 50 + + 46 - + 52 + 53 + 65 THEN + - ( + - 96 ) * + COALESCE ( - 52, COUNT( ALL - 81 ) + + 1 ) * - COUNT( * ) + - 60 * 14 END - - 28, - CAST( - 13 AS SIGNED ) - + 67 ) * 99
----
6930

skipif mysql # not compatible
query I rowsort label-6772
SELECT COALESCE ( 70, 60 * - CASE + 27 WHEN - 78 * + 49 * - 40 + - ( + COUNT ( * ) ) + - 46 + 22 * - 82 - - 14 / 7 + - 68 / + 2 + - 0 + + 72 * + 59 * - 7 * + 50 + + 46 - + 52 + 53 + 65 THEN + - ( + - 96 ) * + COALESCE ( - 52, COUNT ( ALL - 81 ) + + 1 ) * - COUNT ( * ) + - 60 * 14 END - - 28, - CAST ( - 13 AS INTEGER ) - + 67 ) * 99
----
6930

query I rowsort
SELECT ALL + 21 * - + 57 col2
----
-1197

onlyif mysql # DIV for integer division: 
query I rowsort label-6774
SELECT DISTINCT 44 DIV + + ( - 98 )
----
0

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT 44 / + + ( - 98 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6775
SELECT MAX( + + 12 ) + - 94 + - ( - 62 ) * + CAST( NULL AS SIGNED ) * - + 55 + ( - 57 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6775
SELECT MAX ( + + 12 ) + - 94 + - ( - 62 ) * + CAST ( NULL AS INTEGER ) * - + 55 + ( - 57 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT DISTINCT - COUNT( * ) - + 96
----
-97

skipif mysql # not compatible
query I rowsort label-6776
SELECT DISTINCT - COUNT ( * ) - + 96
----
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT + 17 * + + COALESCE ( - 33, 55 * 22 + - 72 * + CASE - 85 WHEN - 1 * 51 THEN - SUM( - 63 ) WHEN + 91 * 37 THEN 17 END - - COUNT( * ), 47 ) AS col0
----
-561

skipif mysql # not compatible
query I rowsort label-6778
SELECT + 17 * + + COALESCE ( - 33, 55 * 22 + - 72 * + CASE - 85 WHEN - 1 * 51 THEN - SUM ( - 63 ) WHEN + 91 * 37 THEN 17 END - - COUNT ( * ), 47 ) AS col0
----
-561

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT 95 + + 65 * - CASE NULLIF ( - ( + ( + NULLIF ( 67, 37 * - 92 ) ) ), - 73 * + 2 ) WHEN + - 13 THEN NULL WHEN + COUNT( * ) THEN COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6779
SELECT 95 + + 65 * - CASE NULLIF ( - ( + ( + NULLIF ( 67, 37 * - 92 ) ) ), - 73 * + 2 ) WHEN + - 13 THEN NULL WHEN + COUNT ( * ) THEN COUNT ( * ) END col2
----
NULL

query I rowsort
SELECT + 61 * 92 col0
----
5612

query I rowsort
SELECT DISTINCT 10 * - 54
----
-540

query I rowsort
SELECT DISTINCT 49 * - 90
----
-4410

query I rowsort
SELECT ALL ( - + 17 ) * - 18 AS col1
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT ( - COUNT( DISTINCT + 10 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-6784
SELECT ( - COUNT ( DISTINCT + 10 ) ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6785
SELECT + 64 * + + 11 - + 48 + COUNT( * ) + 30 + - 58 * 37 + 69 * + CAST( + 18 AS SIGNED ) AS col2
----
-217

skipif mysql # not compatible
query I rowsort label-6785
SELECT + 64 * + + 11 - + 48 + COUNT ( * ) + 30 + - 58 * 37 + 69 * + CAST ( + 18 AS INTEGER ) AS col2
----
-217

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT + - ( + - 26 ) * - 16 + - - COUNT( * )
----
-415

skipif mysql # not compatible
query I rowsort label-6786
SELECT + - ( + - 26 ) * - 16 + - - COUNT ( * )
----
-415

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

skipif mysql # not compatible
query I rowsort label-6787
SELECT - - MIN ( ALL + + 63 ) / CAST ( - 28 AS INTEGER )
----
-2

query I rowsort
SELECT + - 27 * - 13
----
351

onlyif mysql # aggregate syntax: 
query II rowsort label-6789
SELECT ALL - 15 * + 22, - COUNT( * ) AS col2
----
-330
-1

skipif mysql # not compatible
query II rowsort label-6789
SELECT ALL - 15 * + 22, - COUNT ( * ) AS col2
----
-330
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6790
SELECT + 29 DIV - - 52
----
0

skipif mysql # not compatible
query I rowsort label-6790
SELECT + 29 / - - 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT DISTINCT 47 * - - MAX( ALL 63 ) * + 54 * + - ( - - 84 ) + - 76 AS col1
----
-13431172

skipif mysql # not compatible
query I rowsort label-6791
SELECT DISTINCT 47 * - - MAX ( ALL 63 ) * + 54 * + - ( - - 84 ) + - 76 AS col1
----
-13431172

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT ALL + CASE + 52 WHEN - + CASE WHEN NOT NULL IS NULL THEN - 59 ELSE NULL END / + 14 + + 8 * - COUNT( * ) + - 58 * - - 39 - 6 * - 8 THEN MAX( DISTINCT + 56 ) + 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL + CASE + 52 WHEN - + CASE WHEN NOT NULL IS NULL THEN - 59 ELSE NULL END / + 14 + + 8 * - COUNT ( * ) + - 58 * - - 39 - 6 * - 8 THEN MAX ( DISTINCT + 56 ) + 12 END
----
NULL

query II rowsort
SELECT DISTINCT + 59 col0, 50
----
59
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6794
SELECT ALL 70 + COUNT( * ) - - - 9 + - 84 DIV 13 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL 70 + COUNT ( * ) - - - 9 + - 84 / 13 AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6795
SELECT MAX( DISTINCT + CAST( 64 AS SIGNED ) )
----
64

skipif mysql # not compatible
query I rowsort label-6795
SELECT MAX ( DISTINCT + CAST ( 64 AS INTEGER ) )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT - CASE - ( COUNT( * ) ) WHEN + + 18 THEN 77 + - 89 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6796
SELECT - CASE - ( COUNT ( * ) ) WHEN + + 18 THEN 77 + - 89 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6797
SELECT ALL + SUM( 34 ) * ( 55 ) + CAST( NULL AS SIGNED ) - + 14 * + 65 * SUM( - 62 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL + SUM ( 34 ) * ( 55 ) + CAST ( NULL AS INTEGER ) - + 14 * + 65 * SUM ( - 62 ) AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6799
SELECT - 34 DIV 17 col0, 16
----
-2
16

skipif mysql # not compatible
query II rowsort label-6799
SELECT - 34 / 17 col0, 16
----
-2
16

query I rowsort
SELECT - 46 * + + 53 AS col0
----
-2438

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6801
SELECT 8 AS col2, 7 DIV + - COUNT( * ) AS col0
----
8
-7

skipif mysql # not compatible
query II rowsort label-6801
SELECT 8 AS col2, 7 / + - COUNT ( * ) AS col0
----
8
-7

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

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

query I rowsort
SELECT - 39 + - - 96
----
57

query I rowsort
SELECT - 98 - - - 87
----
-185

query I rowsort
SELECT - 16 + 14 AS col1
----
-2

query I rowsort
SELECT - 74 * - ( - 32 )
----
-2368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6807
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) * COUNT( - 25 ) * + - 9 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( - 25 ) * + - 9 AS col1
----
-9

query I rowsort
SELECT DISTINCT CASE 59 WHEN - + 22 THEN - 69 ELSE 80 END
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-6809
SELECT 8 AS col0, - COUNT( * ) - + 65
----
8
-66

skipif mysql # not compatible
query II rowsort label-6809
SELECT 8 AS col0, - COUNT ( * ) - + 65
----
8
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6810
SELECT - 85 + + + 64 DIV - 41 * COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-6810
SELECT - 85 + + + 64 / - 41 * COUNT ( * )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT ALL - SUM( ALL + + 39 ) * + 65 * + - 16
----
40560

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL - SUM ( ALL + + 39 ) * + 65 * + - 16
----
40560

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT - 56 * + MAX( 83 )
----
-4648

skipif mysql # not compatible
query I rowsort label-6812
SELECT - 56 * + MAX ( 83 )
----
-4648

query I rowsort
SELECT + 62 + 59
----
121

query I rowsort
SELECT + + 18 + 8 AS col2
----
26

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

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

query II rowsort
SELECT DISTINCT 56 AS col2, 78 * + 98
----
56
7644

query I rowsort
SELECT DISTINCT - + 74 * + 0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6819
SELECT ALL - COUNT( * ) DIV + 89 * + CAST( + - 9 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL - COUNT ( * ) / + 89 * + CAST ( + - 9 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6820
SELECT - + COUNT( * ) DIV 61 + - 20 * - + 19 col2
----
380

skipif mysql # not compatible
query I rowsort label-6820
SELECT - + COUNT ( * ) / 61 + - 20 * - + 19 col2
----
380

query I rowsort
SELECT + + 17 * 46 - - - 67
----
715

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6822
SELECT + - 42 * - 9 - - - 8 + COALESCE ( - + ( - - 96 ), SUM( DISTINCT + 89 ) ) DIV ( + COUNT( * ) ) AS col1
----
274

skipif mysql # not compatible
query I rowsort label-6822
SELECT + - 42 * - 9 - - - 8 + COALESCE ( - + ( - - 96 ), SUM ( DISTINCT + 89 ) ) / ( + COUNT ( * ) ) AS col1
----
274

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6823
SELECT ALL 36 DIV 66 + + COUNT( * ) + - 21 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-6823
SELECT ALL 36 / 66 + + COUNT ( * ) + - 21 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-6824
SELECT + + 62 * - - 98 + + + ( - COUNT( * ) ) * 1 - + 53, + 16 AS col0
----
6022
16

skipif mysql # not compatible
query II rowsort label-6824
SELECT + + 62 * - - 98 + + + ( - COUNT ( * ) ) * 1 - + 53, + 16 AS col0
----
6022
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6825
SELECT + COALESCE ( + MAX( 57 ), - - 51 * - 71 ) DIV 24 * 7 DIV + 82 - 68 + - + 91 * 22
----
-2070

skipif mysql # not compatible
query I rowsort label-6825
SELECT + COALESCE ( + MAX ( 57 ), - - 51 * - 71 ) / 24 * 7 / + 82 - 68 + - + 91 * 22
----
-2070

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT ALL 28 * + - SUM( DISTINCT + 70 ) col0
----
-1960

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL 28 * + - SUM ( DISTINCT + 70 ) col0
----
-1960

query I rowsort
SELECT + 98 * + + 85 AS col1
----
8330

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6829
SELECT + 52 + - - 18 * NULLIF ( - 50, + COALESCE ( 44, + COUNT( * ) * + 33 + 38 + + 33 + - 53 ) + 92 / + - COUNT( * ) * - - 83 + - 3 + + AVG ( ALL - 68 ) * + 14 * + - MIN( DISTINCT - 71 ) * + + 73 ) + MIN( ALL 71 ) AS col1, 32 AS col0
----
-777
32

skipif mysql # not compatible
query II rowsort label-6829
SELECT + 52 + - - 18 * NULLIF ( - 50, + COALESCE ( 44, + COUNT ( * ) * + 33 + 38 + + 33 + - 53 ) + 92 / + - COUNT ( * ) * - - 83 + - 3 + + AVG ( ALL - 68 ) * + 14 * + - MIN ( DISTINCT - 71 ) * + + 73 ) + MIN ( ALL 71 ) AS col1, 32 AS col0
----
-777
32

onlyif mysql # DIV for integer division: 
query I rowsort label-6830
SELECT + COALESCE ( - - 73, - + 7 DIV + 45 * + ( - + 37 ) * - + 2 )
----
73

skipif mysql # not compatible
query I rowsort label-6830
SELECT + COALESCE ( - - 73, - + 7 / + 45 * + ( - + 37 ) * - + 2 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT ALL - 87 * - 19 * + 10 - + COUNT( * )
----
16529

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL - 87 * - 19 * + 10 - + COUNT ( * )
----
16529

query I rowsort
SELECT + 22 * - - 28
----
616

query I rowsort
SELECT ALL CASE + + 91 WHEN AVG ( ALL + 22 ) THEN NULL WHEN 69 THEN NULL ELSE + 52 END AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT ALL + COUNT( * ) * + - 70 - - NULLIF ( + - COUNT( * ), + 10 * + 9 * + MIN( DISTINCT + 49 ) ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL + COUNT ( * ) * + - 70 - - NULLIF ( + - COUNT ( * ), + 10 * + 9 * + MIN ( DISTINCT + 49 ) ) AS col1
----
-71

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

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

query II rowsort
SELECT ALL ( + - 30 ) col0, 96 AS col1
----
-30
96

query I rowsort
SELECT + 62 * + + 44 AS col0
----
2728

onlyif mysql # aggregate syntax: 
query II rowsort label-6838
SELECT ALL SUM( ALL + 10 ), + ( + 65 ) AS col0
----
10
65

skipif mysql # not compatible
query II rowsort label-6838
SELECT ALL SUM ( ALL + 10 ), + ( + 65 ) AS col0
----
10
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6839
SELECT + 80 + - 27 DIV - + 10 + - COUNT( * ) + - 48
----
33

skipif mysql # not compatible
query I rowsort label-6839
SELECT + 80 + - 27 / - + 10 + - COUNT ( * ) + - 48
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT MIN( - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-6840
SELECT MIN ( - 14 )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6841
SELECT - 45 + - - 22 DIV - MAX( - + ( 58 ) ) * + 1 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-6841
SELECT - 45 + - - 22 / - MAX ( - + ( 58 ) ) * + 1 AS col1
----
-45

query I rowsort
SELECT + 56 * 69
----
3864

query I rowsort
SELECT - 62 * - + 50
----
3100

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

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

query I rowsort
SELECT + 25 - 87
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-6846
SELECT DISTINCT + COALESCE ( + - ( ( + + COUNT( * ) ) ), + 97 ) AS col1, + 5
----
-1
5

skipif mysql # not compatible
query II rowsort label-6846
SELECT DISTINCT + COALESCE ( + - ( ( + + COUNT ( * ) ) ), + 97 ) AS col1, + 5
----
-1
5

query I rowsort
SELECT DISTINCT + 14 * + 3 col2
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-6848
SELECT ALL - + 72 + - 7 - + + 55, - 26 DIV + + 62 AS col0
----
-134
0

skipif mysql # not compatible
query II rowsort label-6848
SELECT ALL - + 72 + - 7 - + + 55, - 26 / + + 62 AS col0
----
-134
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6849
SELECT + SUM( ALL + 51 ), - 22 - 89 * - COUNT( * ) * + - 92 + + 61 AS col0
----
51
-8149

skipif mysql # not compatible
query II rowsort label-6849
SELECT + SUM ( ALL + 51 ), - 22 - 89 * - COUNT ( * ) * + - 92 + + 61 AS col0
----
51
-8149

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT ALL + 1 + ( - NULLIF ( MIN( + + 45 ), + - 88 * COUNT( * ) ) )
----
-44

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL + 1 + ( - NULLIF ( MIN ( + + 45 ), + - 88 * COUNT ( * ) ) )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6851
SELECT + ( 9 ), CAST( NULL AS DECIMAL ) * + 30 - - 77 + + 53 * - 16 - + 68 - + MIN( DISTINCT - + 47 ) AS col0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-6851
SELECT + ( 9 ), CAST ( NULL AS REAL ) * + 30 - - 77 + + 53 * - 16 - + 68 - + MIN ( DISTINCT - + 47 ) AS col0
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT ( COUNT( * ) ) + 75 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-6852
SELECT ( COUNT ( * ) ) + 75 AS col2
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6853
SELECT - MAX( ALL 50 ) - + 74 DIV + - 95 col1
----
-50

skipif mysql # not compatible
query I rowsort label-6853
SELECT - MAX ( ALL 50 ) - + 74 / + - 95 col1
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6854
SELECT DISTINCT - 98 + - COUNT( * ) + 2 DIV + 2 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-6854
SELECT DISTINCT - 98 + - COUNT ( * ) + 2 / + 2 AS col2
----
-98

query I rowsort
SELECT ALL + 40 + ( - - ( 36 ) ) * - ( 59 )
----
-2084

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

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

query I rowsort
SELECT - 55 + 48 + - + 24 + 12 - 58 * - 85 * ( - 60 ) * - 33 * 59 + 90 AS col0
----
575922671

query I rowsort
SELECT ALL - - ( 13 ) col1
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6859
SELECT - 13 DIV + SUM( DISTINCT - - 59 ) + - 32 + + 95 * + 85 AS col1
----
8043

skipif mysql # not compatible
query I rowsort label-6859
SELECT - 13 / + SUM ( DISTINCT - - 59 ) + - 32 + + 95 * + 85 AS col1
----
8043

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

skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL - COUNT ( * ) + + - 93 AS col2
----
-94

query I rowsort
SELECT + 91 * + 2 AS col0
----
182

query I rowsort
SELECT ALL + 24 + + + 78 + - 41
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT ALL - NULLIF ( - COUNT( * ), 84 * + + 44 * + 11 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL - NULLIF ( - COUNT ( * ), 84 * + + 44 * + 11 ) AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-6864
SELECT COUNT ( * ) + 24 AS col0
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6865
SELECT DISTINCT COUNT( DISTINCT 59 ) DIV - - 13 * 30 + + 48 + + 68 * - 59 AS col1
----
-3964

skipif mysql # not compatible
query I rowsort label-6865
SELECT DISTINCT COUNT ( DISTINCT 59 ) / - - 13 * 30 + + 48 + + 68 * - 59 AS col1
----
-3964

query I rowsort
SELECT ALL 41 - - + 5 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT - 20 * 18 * + 36 * + 8 + + COUNT( * )
----
-103679

skipif mysql # not compatible
query I rowsort label-6867
SELECT - 20 * 18 * + 36 * + 8 + + COUNT ( * )
----
-103679

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6868
SELECT COUNT( * ) DIV + 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6868
SELECT COUNT ( * ) / + 42 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6869
SELECT ALL COALESCE ( 5, 75 + + + ( - NULLIF ( - 96, + 84 ) ) + - COUNT( * ) + 12, + COUNT( * ) ) * + COUNT( * ) + - ( - 23 ) DIV 54
----
5

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL COALESCE ( 5, 75 + + + ( - NULLIF ( - 96, + 84 ) ) + - COUNT ( * ) + 12, + COUNT ( * ) ) * + COUNT ( * ) + - ( - 23 ) / 54
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6870
SELECT DISTINCT 39 * + 69 * - COUNT( * ), - 35 * 59 DIV - + SUM( DISTINCT + + 31 ) - + 56 AS col0
----
-2691
10

skipif mysql # not compatible
query II rowsort label-6870
SELECT DISTINCT 39 * + 69 * - COUNT ( * ), - 35 * 59 / - + SUM ( DISTINCT + + 31 ) - + 56 AS col0
----
-2691
10

query I rowsort
SELECT 0 - 71 * - + 18
----
1278

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

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

query I rowsort
SELECT ALL 74 * - 47 AS col1
----
-3478

query II rowsort
SELECT DISTINCT 89 AS col2, - 70 + 61
----
89
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT NULLIF ( + NULLIF ( 0, + 83 ), - COUNT( * ) ) - - COUNT( * ) + - 58 * COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-6875
SELECT NULLIF ( + NULLIF ( 0, + 83 ), - COUNT ( * ) ) - - COUNT ( * ) + - 58 * COUNT ( * )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6876
SELECT CAST( + 69 AS SIGNED ) + - 86 + + + MIN( + - 22 ) + - 90 * - 8 - - 45 + SUM( DISTINCT + + 25 ) + + COUNT( * ) - 7 + - NULLIF ( MAX( DISTINCT + + 87 ), + - 10 * - COALESCE ( + CASE CAST( NULL AS SIGNED ) WHEN 73 THEN NULL WHEN - 27 * + + 24 * 1 + - - COALESCE ( 32, + 76, + 92 + + + MAX( ALL 48 ) ) * - CAST( - 51 AS SIGNED ) * - - 60 THEN NULL ELSE + - 19 * + MIN( 19 / 74 ) END, + 52, 50 + ( - 37 ) ) + 22 ) + + 24 * - 1 * ( 74 ) * 80 * 66 AS col0
----
-9376622

skipif mysql # not compatible
query I rowsort label-6876
SELECT CAST ( + 69 AS INTEGER ) + - 86 + + + MIN ( + - 22 ) + - 90 * - 8 - - 45 + SUM ( DISTINCT + + 25 ) + + COUNT ( * ) - 7 + - NULLIF ( MAX ( DISTINCT + + 87 ), + - 10 * - COALESCE ( + CASE CAST ( NULL AS INTEGER ) WHEN 73 THEN NULL WHEN - 27 * + + 24 * 1 + - - COALESCE ( 32, + 76, + 92 + + + MAX ( ALL 48 ) ) * - CAST ( - 51 AS INTEGER ) * - - 60 THEN NULL ELSE + - 19 * + MIN ( 19 / 74 ) END, + 52, 50 + ( - 37 ) ) + 22 ) + + 24 * - 1 * ( 74 ) * 80 * 66 AS col0
----
-9376622

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT MAX( + 43 ) - - + 22
----
65

skipif mysql # not compatible
query I rowsort label-6877
SELECT MAX ( + 43 ) - - + 22
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-6878
SELECT DISTINCT 15 DIV - + ( 58 )
----
0

skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT 15 / - + ( 58 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT ALL 33 + + 6 + + MIN( 17 ) + 98 * - + 1 * 91
----
-8862

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL 33 + + 6 + + MIN ( 17 ) + 98 * - + 1 * 91
----
-8862

query I rowsort
SELECT ALL + 69 + - 28
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6882
SELECT DISTINCT 4 + 13 + 25 DIV - 12 AS col2, 83 + - COUNT( * ) + CASE 6 WHEN - 93 * - 27 - 15 + - MIN( ALL 23 ) + - - 81 THEN + - 95 * + 38 + 74 * NULLIF ( + COUNT( * ), - 55 ) END * 41 * + - ( + NULLIF ( - 63, SUM( DISTINCT 36 ) + - + 5 ) ) * 57 + - + 17
----
15
NULL

skipif mysql # not compatible
query II rowsort label-6882
SELECT DISTINCT 4 + 13 + 25 / - 12 AS col2, 83 + - COUNT ( * ) + CASE 6 WHEN - 93 * - 27 - 15 + - MIN ( ALL 23 ) + - - 81 THEN + - 95 * + 38 + 74 * NULLIF ( + COUNT ( * ), - 55 ) END * 41 * + - ( + NULLIF ( - 63, SUM ( DISTINCT 36 ) + - + 5 ) ) * 57 + - + 17
----
15
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6883
SELECT DISTINCT + + ( + MAX( ALL + 4 ) ) DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-6883
SELECT DISTINCT + + ( + MAX ( ALL + 4 ) ) / 41
----
0

query I rowsort
SELECT ALL - 25 * - 18 + 8
----
458

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6886
SELECT - 89 * 82 * 41 * - 38 * + 57 + 48 + + 34 / COUNT( * ) * + 97 / - 73 * ( CAST( NULL AS SIGNED ) ) * - 0 / 70
----
NULL

skipif mysql # not compatible
query I rowsort label-6886
SELECT - 89 * 82 * 41 * - 38 * + 57 + 48 + + 34 / COUNT ( * ) * + 97 / - 73 * ( CAST ( NULL AS INTEGER ) ) * - 0 / 70
----
NULL

query I rowsort
SELECT 68 + - + 1 + 30 - + 69
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT ALL - NULLIF ( + 5, MIN( DISTINCT 44 ) * 94 * + 36 + + 29 * - - 22 * 45 + + 67 ) * 23 - 72
----
-187

skipif mysql # not compatible
query I rowsort label-6888
SELECT ALL - NULLIF ( + 5, MIN ( DISTINCT 44 ) * 94 * + 36 + + 29 * - - 22 * 45 + + 67 ) * 23 - 72
----
-187

query I rowsort
SELECT 91 * + 64
----
5824

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT 27 * - + COUNT( * ) col0
----
-27

skipif mysql # not compatible
query I rowsort label-6890
SELECT 27 * - + COUNT ( * ) col0
----
-27

query II rowsort
SELECT ALL - ( - + 77 ) col1, 21 AS col2
----
77
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT 10 - + SUM( ALL - - 23 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-6892
SELECT 10 - + SUM ( ALL - - 23 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT 17 * - 85 * + - MAX( ALL 8 )
----
11560

skipif mysql # not compatible
query I rowsort label-6893
SELECT 17 * - 85 * + - MAX ( ALL 8 )
----
11560

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT ALL 87 - - COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL 87 - - COUNT ( * ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-6895
SELECT COUNT( * ) * - - 56 AS col0, 0 AS col1
----
56
0

skipif mysql # not compatible
query II rowsort label-6895
SELECT COUNT ( * ) * - - 56 AS col0, 0 AS col1
----
56
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6896
SELECT - 15 * - 74 + 29 + + CASE - - 77 WHEN - COUNT( * ) * - 66 + - + 38 THEN NULL WHEN + - CAST( NULL AS DECIMAL ) * + + MIN( + 10 ) - + COALESCE ( + + 22, - 10 ) + - ( + + CAST( - 91 AS DECIMAL ) ) * 59 THEN 54 END * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-6896
SELECT - 15 * - 74 + 29 + + CASE - - 77 WHEN - COUNT ( * ) * - 66 + - + 38 THEN NULL WHEN + - CAST ( NULL AS REAL ) * + + MIN ( + 10 ) - + COALESCE ( + + 22, - 10 ) + - ( + + CAST ( - 91 AS REAL ) ) * 59 THEN 54 END * - 44
----
NULL

query I rowsort
SELECT 7 * - + 93
----
-651

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6899
SELECT + COALESCE ( - 12, 46 ) DIV + - 22 AS col0, - 13 * - 18 AS col0
----
0
234

skipif mysql # not compatible
query II rowsort label-6899
SELECT + COALESCE ( - 12, 46 ) / + - 22 AS col0, - 13 * - 18 AS col0
----
0
234

query I rowsort
SELECT - 27 * 84
----
-2268

query II rowsort
SELECT DISTINCT + 86 + + + 20 AS col1, 63 col2
----
106
63

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

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

query I rowsort
SELECT ALL + 65 + + 79 AS col2
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6904
SELECT - 74 + 53 + - 48 * - 79 + + 97 DIV - ( + + 40 ) + 8 * + + 26 * NULLIF ( + - 79, - 11 ) + + COUNT( - 57 ) AS col2
----
-12662

skipif mysql # not compatible
query I rowsort label-6904
SELECT - 74 + 53 + - 48 * - 79 + + 97 / - ( + + 40 ) + 8 * + + 26 * NULLIF ( + - 79, - 11 ) + + COUNT ( - 57 ) AS col2
----
-12662

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT + 62 + + CASE + - 58 WHEN - 90 THEN + 12 ELSE + COUNT( * ) END
----
63

skipif mysql # not compatible
query I rowsort label-6905
SELECT + 62 + + CASE + - 58 WHEN - 90 THEN + 12 ELSE + COUNT ( * ) END
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6906
SELECT + - 4 * 25 AS col1, 14 DIV MIN( DISTINCT - 61 ) AS col2
----
-100
0

skipif mysql # not compatible
query II rowsort label-6906
SELECT + - 4 * 25 AS col1, 14 / MIN ( DISTINCT - 61 ) AS col2
----
-100
0

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

query I rowsort
SELECT + 37 + - - ( - 47 )
----
-10

query I rowsort
SELECT + 51 + - 69
----
-18

query I rowsort
SELECT ALL 90 - - - 53 AS col2
----
37

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

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

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

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

query I rowsort
SELECT + - 8 + 5 AS col0
----
-3

query I rowsort
SELECT ALL + 97 - - 79
----
176

query I rowsort
SELECT + + 33 * - ( + - 62 ) AS col2
----
2046

onlyif mysql # DIV for integer division: 
query II rowsort label-6916
SELECT + - 17 DIV 39 * - 75 - - 16, 51 AS col1
----
16
51

skipif mysql # not compatible
query II rowsort label-6916
SELECT + - 17 / 39 * - 75 - - 16, 51 AS col1
----
16
51

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

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

query I rowsort
SELECT ALL 29 * 77 AS col0
----
2233

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6919
SELECT ALL - ( + + MAX( ALL - - 79 ) ) DIV 57 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL - ( + + MAX ( ALL - - 79 ) ) / 57 AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT - COUNT( * ) + 49 * + 53
----
2596

skipif mysql # not compatible
query I rowsort label-6921
SELECT - COUNT ( * ) + 49 * + 53
----
2596

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT ALL + SUM( 96 ) * + 40
----
3840

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL + SUM ( 96 ) * + 40
----
3840

query I rowsort
SELECT + 57 * - ( + 49 ) * - + 80
----
223440

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT 36 * + 23 * + + 7 * + COUNT( * ) + + + 79 - 81 * + MIN( ALL + + 15 ) * + 51
----
-56090

skipif mysql # not compatible
query I rowsort label-6924
SELECT 36 * + 23 * + + 7 * + COUNT ( * ) + + + 79 - 81 * + MIN ( ALL + + 15 ) * + 51
----
-56090

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6925
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - ( COUNT( * ) ) * COUNT( * ) * - 73 + - 1 - 66 * + 99 AS col1, 59
----
NULL
59

skipif mysql # not compatible
query II rowsort label-6925
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - ( COUNT ( * ) ) * COUNT ( * ) * - 73 + - 1 - 66 * + 99 AS col1, 59
----
NULL
59

onlyif mysql # aggregate syntax: 
query II rowsort label-6926
SELECT DISTINCT - 96 * - SUM( ALL + 23 ) + - 11 + 41 col0, - 62
----
2238
-62

skipif mysql # not compatible
query II rowsort label-6926
SELECT DISTINCT - 96 * - SUM ( ALL + 23 ) + - 11 + 41 col0, - 62
----
2238
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6927
SELECT DISTINCT + 18 * - CAST( - 69 AS SIGNED ) + COALESCE ( + ( - 33 ), - 99 * - 1, 25 - 2 * - 99 )
----
1209

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT + 18 * - CAST ( - 69 AS INTEGER ) + COALESCE ( + ( - 33 ), - 99 * - 1, 25 - 2 * - 99 )
----
1209

query I rowsort
SELECT DISTINCT 60 * + - 24 + 96 + - 19 + + 13 + 66
----
-1284

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6929
SELECT DISTINCT - COALESCE ( + + 34, 99 + 29 ) * - CAST( + 65 AS SIGNED ) + + 84 * - ( - + 61 ) col2
----
7334

skipif mysql # not compatible
query I rowsort label-6929
SELECT DISTINCT - COALESCE ( + + 34, 99 + 29 ) * - CAST ( + 65 AS INTEGER ) + + 84 * - ( - + 61 ) col2
----
7334

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT DISTINCT + NULLIF ( + COUNT( * ), + 54 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6930
SELECT DISTINCT + NULLIF ( + COUNT ( * ), + 54 ) col1
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6932
SELECT ALL - - 90 DIV - 16
----
-5

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL - - 90 / - 16
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT + + 33 + + - ( 80 ) + + 31 + 87 + 10 - ( 69 ) * + COALESCE ( 57, - - 45 - MIN( DISTINCT 31 ) ) * + 50 * - 26 AS col0
----
5112981

skipif mysql # not compatible
query I rowsort label-6933
SELECT + + 33 + + - ( 80 ) + + 31 + 87 + 10 - ( 69 ) * + COALESCE ( 57, - - 45 - MIN ( DISTINCT 31 ) ) * + 50 * - 26 AS col0
----
5112981

query II rowsort
SELECT - NULLIF ( - 49, - 51 ) AS col2, 62 * - 2
----
49
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6935
SELECT DISTINCT - + 23 + + 34 + + + NULLIF ( - 42, + - 38 + + CASE - - ( - 41 ) WHEN + 32 THEN 85 END - - 40 ) - + MIN( + 77 ) * - - 49 + + - NULLIF ( 4, - 4 * + AVG ( - CAST( NULL AS SIGNED ) ) + MAX( - + ( 76 ) ) + + 69 - - 83 ) AS col2
----
-3808

skipif mysql # not compatible
query I rowsort label-6935
SELECT DISTINCT - + 23 + + 34 + + + NULLIF ( - 42, + - 38 + + CASE - - ( - 41 ) WHEN + 32 THEN 85 END - - 40 ) - + MIN ( + 77 ) * - - 49 + + - NULLIF ( 4, - 4 * + AVG ( - CAST ( NULL AS INTEGER ) ) + MAX ( - + ( 76 ) ) + + 69 - - 83 ) AS col2
----
-3808

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT DISTINCT + + COUNT( - - 48 ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6936
SELECT DISTINCT + + COUNT ( - - 48 ) - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT DISTINCT - COUNT( * ) * + 45 * - 4 AS col2
----
180

skipif mysql # not compatible
query I rowsort label-6937
SELECT DISTINCT - COUNT ( * ) * + 45 * - 4 AS col2
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT - COUNT( * ) - + 39 + ( - 23 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-6938
SELECT - COUNT ( * ) - + 39 + ( - 23 ) AS col0
----
-63

query I rowsort
SELECT DISTINCT - + 48 * - 62 AS col1
----
2976

query II rowsort
SELECT ALL - 28 AS col2, 55 col2
----
-28
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6941
SELECT + CASE - 94 WHEN + + 55 / + MAX( + 43 ) + + 76 + 45 THEN + - 43 / - CAST( + 19 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6941
SELECT + CASE - 94 WHEN + + 55 / + MAX ( + 43 ) + + 76 + 45 THEN + - 43 / - CAST ( + 19 AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT ALL 41 - - 10
----
51

query I rowsort
SELECT - + 87 * - 13 + 17 AS col0
----
1148

query I rowsort
SELECT DISTINCT 53 * 40 * + 47 * 9
----
896760

query I rowsort
SELECT + 76 * 12
----
912

query II rowsort
SELECT ALL + 94, 78 AS col0
----
94
78

onlyif mysql # DIV for integer division: 
query I rowsort label-6947
SELECT + 28 DIV + 31 * + 61 * 68
----
0

skipif mysql # not compatible
query I rowsort label-6947
SELECT + 28 / + 31 * + 61 * 68
----
0

query I rowsort
SELECT + 40 + + COALESCE ( + 74, + + 34 ) col2
----
114

query I rowsort
SELECT + 46 * + 19
----
874

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT ALL 52 * + COALESCE ( + 26, - 17 + MAX( + 93 ) ) * COUNT( * )
----
1352

skipif mysql # not compatible
query I rowsort label-6950
SELECT ALL 52 * + COALESCE ( + 26, - 17 + MAX ( + 93 ) ) * COUNT ( * )
----
1352

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT + ( - + ( - CASE MAX( ALL + ( - - 57 ) ) WHEN + 70 THEN 17 - + - 49 * 60 + - 20 * + 39 ELSE NULL END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6951
SELECT + ( - + ( - CASE MAX ( ALL + ( - - 57 ) ) WHEN + 70 THEN 17 - + - 49 * 60 + - 20 * + 39 ELSE NULL END ) ) AS col2
----
NULL

query II rowsort
SELECT + 30, 92 * - 44 + + 83 AS col2
----
30
-3965

query I rowsort
SELECT ALL 4 + + + 22
----
26

query I rowsort
SELECT 68 * + 83 * 86 - + 56
----
485328

query I rowsort
SELECT ALL 16 * - 29 AS col1
----
-464

onlyif mysql # aggregate syntax: 
query II rowsort label-6956
SELECT + 90 AS col2, COUNT( + 92 ) col1
----
90
1

skipif mysql # not compatible
query II rowsort label-6956
SELECT + 90 AS col2, COUNT ( + 92 ) col1
----
90
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6958
SELECT + 99 AS col2, + CAST( NULL AS SIGNED ) / + COUNT( 50 ) + - + 47 - + 94
----
99
NULL

skipif mysql # not compatible
query II rowsort label-6958
SELECT + 99 AS col2, + CAST ( NULL AS INTEGER ) / + COUNT ( 50 ) + - + 47 - + 94
----
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT NULLIF ( + - 26, ( 49 ) * - 92 * - + MIN( - + 55 ) + - COUNT( * ) ) + - 92 AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-6959
SELECT NULLIF ( + - 26, ( 49 ) * - 92 * - + MIN ( - + 55 ) + - COUNT ( * ) ) + - 92 AS col2
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6960
SELECT + 87 * + MAX( DISTINCT + - 85 ) * + 53 * - + 70 - - - 18 + + + 91 - + 54 DIV - 33 AS col2
----
27435524

skipif mysql # not compatible
query I rowsort label-6960
SELECT + 87 * + MAX ( DISTINCT + - 85 ) * + 53 * - + 70 - - - 18 + + + 91 - + 54 / - 33 AS col2
----
27435524

query I rowsort
SELECT ( 49 ) - 23 AS col0
----
26

query II rowsort
SELECT - 98, ( + 17 ) AS col2
----
-98
17

query I rowsort
SELECT ALL + 24 - 70 + + 12
----
-34

query I rowsort
SELECT + 66 * - 2 + - 30 + - + 19 + - 49 * 50 * 45 - + 65 AS col2
----
-110496

query II rowsort
SELECT DISTINCT CASE WHEN NOT NULL <= 4 THEN - 82 END * + 24 + + 67, CASE - 62 WHEN - + ( - 21 ) THEN - - 92 * - 7 END AS col2
----
NULL
NULL

query I rowsort
SELECT 63 + - 55 AS col1
----
8

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

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

query I rowsort
SELECT 73 + + + 81 * + 51 AS col0
----
4204

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT ( + SUM( DISTINCT + + 63 ) ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-6969
SELECT ( + SUM ( DISTINCT + + 63 ) ) AS col2
----
63

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6971
SELECT ALL 83 AS col2, + 95 + - COUNT( * ) + + 22 * 82 col2
----
83
1898

skipif mysql # not compatible
query II rowsort label-6971
SELECT ALL 83 AS col2, + 95 + - COUNT ( * ) + + 22 * 82 col2
----
83
1898

query II rowsort
SELECT - 94, - 68 + - + 98 AS col0
----
-94
-166

onlyif mysql # aggregate syntax: 
query II rowsort label-6973
SELECT - 5 col1, + SUM( - 51 ) - 87
----
-5
-138

skipif mysql # not compatible
query II rowsort label-6973
SELECT - 5 col1, + SUM ( - 51 ) - 87
----
-5
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-6974
SELECT 66 DIV + 41
----
1

skipif mysql # not compatible
query I rowsort label-6974
SELECT 66 / + 41
----
1

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

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL - + 70 * ( NULLIF ( - COUNT ( * ), - COUNT ( * ) ) )
----
NULL

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

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

query II rowsort
SELECT ALL - 55 AS col2, 13 AS col0
----
-55
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6978
SELECT DISTINCT - 78 DIV 65
----
-1

skipif mysql # not compatible
query I rowsort label-6978
SELECT DISTINCT - 78 / 65
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT DISTINCT - 80 * SUM( DISTINCT NULLIF ( - 4, + + ( - 46 ) ) ) AS col1
----
320

skipif mysql # not compatible
query I rowsort label-6979
SELECT DISTINCT - 80 * SUM ( DISTINCT NULLIF ( - 4, + + ( - 46 ) ) ) AS col1
----
320

query I rowsort
SELECT 29 * - + 91
----
-2639

query I rowsort
SELECT 0 + + 96 AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6982
SELECT 36 - + - ( 29 ) + - - ( + 19 ) DIV - CAST( - 92 AS SIGNED ) + 4
----
69

skipif mysql # not compatible
query I rowsort label-6982
SELECT 36 - + - ( 29 ) + - - ( + 19 ) / - CAST ( - 92 AS INTEGER ) + 4
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT COUNT( * ) + + 12
----
13

skipif mysql # not compatible
query I rowsort label-6983
SELECT COUNT ( * ) + + 12
----
13

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT ALL 4 + - SUM( - + 99 ) + - 86 - 29 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL 4 + - SUM ( - + 99 ) + - 86 - 29 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT COUNT( * ) + - 47 + 12 / + NULLIF ( - + CASE - 66 WHEN - - ( - + 95 ) THEN + 4 ELSE NULL END, 9 * - - ( 82 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6986
SELECT COUNT ( * ) + - 47 + 12 / + NULLIF ( - + CASE - 66 WHEN - - ( - + 95 ) THEN + 4 ELSE NULL END, 9 * - - ( 82 ) )
----
NULL

query II rowsort
SELECT DISTINCT + 91 + - 91 AS col1, CASE NULLIF ( + 79, ( 40 ) ) WHEN - 19 THEN - - 3 END AS col0
----
0
NULL

query I rowsort
SELECT ALL 98 * 64 col1
----
6272

query I rowsort
SELECT ALL + ( - 61 ) + 45 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT 35 * + - ( - CASE 92 WHEN + 58 THEN - - 79 * ( NULLIF ( - COUNT( * ), + 23 ) ) + + 51 + - 16 * + ( + + 74 ) * 61 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6990
SELECT 35 * + - ( - CASE 92 WHEN + 58 THEN - - 79 * ( NULLIF ( - COUNT ( * ), + 23 ) ) + + 51 + - 16 * + ( + + 74 ) * 61 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT MIN( 80 ) + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-6991
SELECT MIN ( 80 ) + COUNT ( * )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6992
SELECT CAST( + 9 AS SIGNED ) + - 60
----
-51

skipif mysql # not compatible
query I rowsort label-6992
SELECT CAST ( + 9 AS INTEGER ) + - 60
----
-51

query I rowsort
SELECT DISTINCT 97 * + - 80 * + 0
----
0

query I rowsort
SELECT 40 * - 85 * + 54 * - - 99 AS col2
----
-18176400

query I rowsort
SELECT ALL + + 6 * - 39
----
-234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6996
SELECT + CAST( - 16 AS SIGNED ) * + 86 col1, COUNT( * )
----
-1376
1

skipif mysql # not compatible
query II rowsort label-6996
SELECT + CAST ( - 16 AS INTEGER ) * + 86 col1, COUNT ( * )
----
-1376
1

query I rowsort
SELECT ALL - 42 * + 94
----
-3948

query II rowsort
SELECT + 90 + + 92, - 73 col2
----
182
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT DISTINCT 59 * SUM( ALL - - 3 ) - + 54 col2
----
123

skipif mysql # not compatible
query I rowsort label-6999
SELECT DISTINCT 59 * SUM ( ALL - - 3 ) - + 54 col2
----
123

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7001
SELECT CAST( 42 AS SIGNED ) * + 15 * + ( - 81 ) * - COUNT( * ) + ( 23 )
----
51053

skipif mysql # not compatible
query I rowsort label-7001
SELECT CAST ( 42 AS INTEGER ) * + 15 * + ( - 81 ) * - COUNT ( * ) + ( 23 )
----
51053

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT + SUM( + ( 33 ) )
----
33

skipif mysql # not compatible
query I rowsort label-7002
SELECT + SUM ( + ( 33 ) )
----
33

query I rowsort
SELECT 9 * COALESCE ( 8, - 26 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT ( COUNT( DISTINCT + 60 ) ) - + - 15 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-7004
SELECT ( COUNT ( DISTINCT + 60 ) ) - + - 15 AS col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7005
SELECT - - 36 * - CAST( NULL AS SIGNED ) + - + COALESCE ( - 82, - 59 * + 78 ) + ( + - 96 ) * + + 15 * + - 1, + 93 AS col0
----
NULL
93

skipif mysql # not compatible
query II rowsort label-7005
SELECT - - 36 * - CAST ( NULL AS INTEGER ) + - + COALESCE ( - 82, - 59 * + 78 ) + ( + - 96 ) * + + 15 * + - 1, + 93 AS col0
----
NULL
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT 88 * - COUNT( * ) * + + ( + ( - 4 ) ) AS col2
----
352

skipif mysql # not compatible
query I rowsort label-7006
SELECT 88 * - COUNT ( * ) * + + ( + ( - 4 ) ) AS col2
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT COUNT( * ) + + 62 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-7007
SELECT COUNT ( * ) + + 62 AS col0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7008
SELECT ALL - + 18 * + + 14 + + 26 + - 58 DIV - + 45 * COUNT( * ) AS col1
----
-225

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL - + 18 * + + 14 + + 26 + - 58 / - + 45 * COUNT ( * ) AS col1
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT - COALESCE ( + 6, - SUM( + - 61 ) - - MIN( - - 90 ) + 34 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-7009
SELECT - COALESCE ( + 6, - SUM ( + - 61 ) - - MIN ( - - 90 ) + 34 ) AS col0
----
-6

query II rowsort
SELECT DISTINCT + 16 * - 57 * + + 23, - 37 AS col1
----
-20976
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT DISTINCT MAX( - 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-7011
SELECT DISTINCT MAX ( - 65 ) AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7012
SELECT COALESCE ( - - 0, - 2 ) * - COUNT( * ) + NULLIF ( - 93, - 73 + MAX( DISTINCT + 12 ) ) + + ( NULLIF ( - 4, + CAST( NULL AS DECIMAL ) ) ) col2
----
-97

skipif mysql # not compatible
query I rowsort label-7012
SELECT COALESCE ( - - 0, - 2 ) * - COUNT ( * ) + NULLIF ( - 93, - 73 + MAX ( DISTINCT + 12 ) ) + + ( NULLIF ( - 4, + CAST ( NULL AS REAL ) ) ) col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT DISTINCT SUM( ALL - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT SUM ( ALL - 58 )
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-7014
SELECT ALL COUNT( * ) AS col0, 36 AS col1
----
1
36

skipif mysql # not compatible
query II rowsort label-7014
SELECT ALL COUNT ( * ) AS col0, 36 AS col1
----
1
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT 45 + 39 + 85 + - 11 * - 51 * - 96 + COUNT( * ) AS col1
----
-53686

skipif mysql # not compatible
query I rowsort label-7015
SELECT 45 + 39 + 85 + - 11 * - 51 * - 96 + COUNT ( * ) AS col1
----
-53686

query I rowsort
SELECT DISTINCT - ( - ( - + 2 ) ) + - 8
----
-10

query I rowsort
SELECT ALL + 4 + + 75 AS col2
----
79

query I rowsort
SELECT - 34 * + 15
----
-510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7019
SELECT DISTINCT + 86 + + 18 * + CAST( - 79 AS SIGNED ) col2
----
-1336

skipif mysql # not compatible
query I rowsort label-7019
SELECT DISTINCT + 86 + + 18 * + CAST ( - 79 AS INTEGER ) col2
----
-1336

query I rowsort
SELECT DISTINCT NULLIF ( - - 46, - 74 / ( - 86 ) ) AS col0
----
46

query I rowsort
SELECT DISTINCT - 59 + + 55 AS col2
----
-4

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

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

query I rowsort
SELECT ALL - 13 * + 73
----
-949

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7024
SELECT 34, SUM( ALL 98 ) * - CASE - - COALESCE ( + - 11, 71 ) WHEN + 65 * - MAX( ALL - 46 ) THEN - - 50 * 27 WHEN COUNT( + 68 ) THEN NULL END / - 40 + + CAST( + - ( - 7 ) AS SIGNED ) col2
----
34
NULL

skipif mysql # not compatible
query II rowsort label-7024
SELECT 34, SUM ( ALL 98 ) * - CASE - - COALESCE ( + - 11, 71 ) WHEN + 65 * - MAX ( ALL - 46 ) THEN - - 50 * 27 WHEN COUNT ( + 68 ) THEN NULL END / - 40 + + CAST ( + - ( - 7 ) AS INTEGER ) col2
----
34
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT - MIN( + 69 ) + - + 15
----
-84

skipif mysql # not compatible
query I rowsort label-7026
SELECT - MIN ( + 69 ) + - + 15
----
-84

query I rowsort
SELECT ALL - 14 * + 4 AS col1
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7028
SELECT + COUNT( * ) * + 57 DIV + COUNT( * ) AS col1, + ( + + 30 )
----
57
30

skipif mysql # not compatible
query II rowsort label-7028
SELECT + COUNT ( * ) * + 57 / + COUNT ( * ) AS col1, + ( + + 30 )
----
57
30

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

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

query I rowsort
SELECT + 35 * + + 5 + - ( - 69 ) AS col1
----
244

query I rowsort
SELECT ALL 60 * + - 27 - 57 + 15 * + NULLIF ( COALESCE ( + 38, - 84 ), 40 * + - NULLIF ( + + 64, - + 31 ) ) AS col1
----
-1107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7032
SELECT + MIN( DISTINCT + + 17 ) DIV + 9 - - 12
----
13

skipif mysql # not compatible
query I rowsort label-7032
SELECT + MIN ( DISTINCT + + 17 ) / + 9 - - 12
----
13

query I rowsort
SELECT + + 2 + - 16 + + - 92 * + 23
----
-2130

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT + - NULLIF ( 29, + - CASE - SUM( DISTINCT - 5 ) WHEN 74 THEN + 62 * + 94 END ) + - 99
----
-128

skipif mysql # not compatible
query I rowsort label-7034
SELECT + - NULLIF ( 29, + - CASE - SUM ( DISTINCT - 5 ) WHEN 74 THEN + 62 * + 94 END ) + - 99
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7035
SELECT ALL + - CASE + MIN( DISTINCT + - 50 ) WHEN + COUNT( * ) * 98 * CAST( NULL AS SIGNED ) * - + COALESCE ( 63, - + 21 * + - 53, + + 96 ) / 69 + - 94 THEN + + 36 ELSE + - 92 END
----
92

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL + - CASE + MIN ( DISTINCT + - 50 ) WHEN + COUNT ( * ) * 98 * CAST ( NULL AS INTEGER ) * - + COALESCE ( 63, - + 21 * + - 53, + + 96 ) / 69 + - 94 THEN + + 36 ELSE + - 92 END
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7036
SELECT ALL + - 78 DIV 39 * 44 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL + - 78 / 39 * 44 AS col1
----
-88

query I rowsort
SELECT - 59 + - 73
----
-132

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7038
SELECT - - 47 * CASE + ( - 67 ) WHEN - 65 * + 66 * + 66 + + 79 THEN - + 70 + 18 WHEN COALESCE ( - 72, - 19, + CAST( - 0 AS DECIMAL ) * + 44 ) * NULLIF ( + COUNT( * ), 85 ) + + 9 THEN - 13 ELSE + 98 * + 59 - - 87 * - COALESCE ( + - 55, + 21 ) + 48 END - + 84 + - 89 AS col2
----
498732

skipif mysql # not compatible
query I rowsort label-7038
SELECT - - 47 * CASE + ( - 67 ) WHEN - 65 * + 66 * + 66 + + 79 THEN - + 70 + 18 WHEN COALESCE ( - 72, - 19, + CAST ( - 0 AS REAL ) * + 44 ) * NULLIF ( + COUNT ( * ), 85 ) + + 9 THEN - 13 ELSE + 98 * + 59 - - 87 * - COALESCE ( + - 55, + 21 ) + 48 END - + 84 + - 89 AS col2
----
498732

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

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

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

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

query I rowsort
SELECT ALL + COALESCE ( ( + 18 ), 81 ) AS col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7042
SELECT DISTINCT + 32 * 78 DIV + COUNT( * ) + - 26 * + 40 AS col0
----
1456

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT + 32 * 78 / + COUNT ( * ) + - 26 * + 40 AS col0
----
1456

query I rowsort
SELECT - 20 * + 94 * - 81 * 48 + 55 AS col1
----
7309495

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT DISTINCT 49 * - 6 + - + MAX( DISTINCT + 28 ) AS col0
----
-322

skipif mysql # not compatible
query I rowsort label-7044
SELECT DISTINCT 49 * - 6 + - + MAX ( DISTINCT + 28 ) AS col0
----
-322

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT ALL ( + - COUNT( * ) ) * + 47 + - COUNT( * ) * - 26
----
-21

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL ( + - COUNT ( * ) ) * + 47 + - COUNT ( * ) * - 26
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7046
SELECT DISTINCT NULLIF ( + 39, + + NULLIF ( + + 11, + COALESCE ( COALESCE ( - 20, + 53 ), NULLIF ( + 96, 56 ) / - - 40 * - - 46 + - 97 - CASE - + 7 WHEN + CASE ( + 79 ) WHEN 13 + + - COALESCE ( COUNT( * ), + + 73 ) + ( - 87 ) THEN 24 ELSE NULL END * - + 21 + - CAST( + CASE + 90 WHEN COUNT( * ) THEN + CASE + 88 WHEN CAST( 16 AS SIGNED ) THEN - 66 END ELSE 75 END AS SIGNED ) THEN NULL WHEN 58 * + 87 THEN + 69 END + - COUNT( ALL + 40 ) / - 28 ) + 66 ) / + 52 + ( 97 ) ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-7046
SELECT DISTINCT NULLIF ( + 39, + + NULLIF ( + + 11, + COALESCE ( COALESCE ( - 20, + 53 ), NULLIF ( + 96, 56 ) / - - 40 * - - 46 + - 97 - CASE - + 7 WHEN + CASE ( + 79 ) WHEN 13 + + - COALESCE ( COUNT ( * ), + + 73 ) + ( - 87 ) THEN 24 ELSE NULL END * - + 21 + - CAST ( + CASE + 90 WHEN COUNT ( * ) THEN + CASE + 88 WHEN CAST ( 16 AS INTEGER ) THEN - 66 END ELSE 75 END AS INTEGER ) THEN NULL WHEN 58 * + 87 THEN + 69 END + - COUNT ( ALL + 40 ) / - 28 ) + 66 ) / + 52 + ( 97 ) ) AS col2
----
39

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7048
SELECT 64 AS col0, - COALESCE ( + COUNT( * ), + MIN( DISTINCT + 72 ) ) AS col0
----
64
-1

skipif mysql # not compatible
query II rowsort label-7048
SELECT 64 AS col0, - COALESCE ( + COUNT ( * ), + MIN ( DISTINCT + 72 ) ) AS col0
----
64
-1

query I rowsort
SELECT - 47 * + 55 AS col1
----
-2585

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT ALL 29 + 39 * COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL 29 + 39 * COUNT ( * ) AS col2
----
68

query I rowsort
SELECT DISTINCT + 99 * 49 * + 26 col1
----
126126

query I rowsort
SELECT ALL ( - 82 ) * - 68 * + 2 AS col0
----
11152

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT - MIN( 81 ) + + COUNT( * ) col2
----
-80

skipif mysql # not compatible
query I rowsort label-7053
SELECT - MIN ( 81 ) + + COUNT ( * ) col2
----
-80

query II rowsort
SELECT ALL + 73 - 54, - 82 AS col2
----
19
-82

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

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

query I rowsort
SELECT - ( + + 25 ) + - 65 + + + 26 AS col2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7057
SELECT ALL + 73 - - 57 + - 85 + 9 * CAST( NULL AS SIGNED ) * + + MIN( + 6 ) / + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL + 73 - - 57 + - 85 + 9 * CAST ( NULL AS INTEGER ) * + + MIN ( + 6 ) / + 74 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7058
SELECT + NULLIF ( + CASE - COUNT( * ) WHEN + COUNT( * ) * + 41 THEN + - 65 WHEN 63 THEN + CASE ( + + 46 ) WHEN - + 97 THEN - + CAST( NULL AS SIGNED ) WHEN + 23 THEN 75 ELSE NULL END END, - 21 ) * + 30 * - + 67, - 42 - - - 49 * + 79 - - 77 AS col1
----
NULL
-3836

skipif mysql # not compatible
query II rowsort label-7058
SELECT + NULLIF ( + CASE - COUNT ( * ) WHEN + COUNT ( * ) * + 41 THEN + - 65 WHEN 63 THEN + CASE ( + + 46 ) WHEN - + 97 THEN - + CAST ( NULL AS INTEGER ) WHEN + 23 THEN 75 ELSE NULL END END, - 21 ) * + 30 * - + 67, - 42 - - - 49 * + 79 - - 77 AS col1
----
NULL
-3836

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT - COUNT( * ) + + 84 * 38 col1
----
3191

skipif mysql # not compatible
query I rowsort label-7059
SELECT - COUNT ( * ) + + 84 * 38 col1
----
3191

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

query I rowsort
SELECT - 21 + + + 52
----
31

query I rowsort
SELECT - ( + 20 ) * + + 47
----
-940

onlyif mysql # DIV for integer division: 
query I rowsort label-7063
SELECT DISTINCT - 65 DIV - - 68 col1
----
0

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT - 65 / - - 68 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT - 76 * + COUNT( * ) * + 65 - - + 65 * + 45 AS col0
----
-2015

skipif mysql # not compatible
query I rowsort label-7064
SELECT - 76 * + COUNT ( * ) * + 65 - - + 65 * + 45 AS col0
----
-2015

query I rowsort
SELECT ALL - + 39 * - 13 col1
----
507

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7066
SELECT ALL + - CASE - - 59 WHEN - - 75 THEN NULL WHEN - - COUNT( * ) + - 9 * 93 / 90 * - 37 THEN + + NULLIF ( - 6, + COUNT( * ) ) * - - ( 44 ) / - CASE + 61 WHEN + - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) THEN ( 69 ) END + - COUNT( * ) / - 33 END * 64 col0, + 99 * - 69
----
NULL
-6831

skipif mysql # not compatible
query II rowsort label-7066
SELECT ALL + - CASE - - 59 WHEN - - 75 THEN NULL WHEN - - COUNT ( * ) + - 9 * 93 / 90 * - 37 THEN + + NULLIF ( - 6, + COUNT ( * ) ) * - - ( 44 ) / - CASE + 61 WHEN + - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN ( 69 ) END + - COUNT ( * ) / - 33 END * 64 col0, + 99 * - 69
----
NULL
-6831

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT - - MIN( ALL - 35 ) * + COUNT( * ) * - ( - + 32 ) * - + 47 col0
----
52640

skipif mysql # not compatible
query I rowsort label-7067
SELECT - - MIN ( ALL - 35 ) * + COUNT ( * ) * - ( - + 32 ) * - + 47 col0
----
52640

query I rowsort
SELECT + COALESCE ( - 22, + + 96 ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT - - 85 * + - 22 * - + COUNT( * ) * + 16 * - 56 + 2 AS col2
----
-1675518

skipif mysql # not compatible
query I rowsort label-7069
SELECT - - 85 * + - 22 * - + COUNT ( * ) * + 16 * - 56 + 2 AS col2
----
-1675518

query I rowsort
SELECT ALL + 98 * - - 31
----
3038

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7071
SELECT - CASE - 54 WHEN + - 47 + 81 - 77 - + ( + 10 ) THEN + 88 DIV - + CAST( NULL AS SIGNED ) + - + COUNT( * ) ELSE 80 END + 12
----
-68

skipif mysql # not compatible
query I rowsort label-7071
SELECT - CASE - 54 WHEN + - 47 + 81 - 77 - + ( + 10 ) THEN + 88 / - + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) ELSE 80 END + 12
----
-68

query I rowsort
SELECT DISTINCT + 70 * + - 49 + + 41 AS col2
----
-3389

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7073
SELECT - CAST( NULL AS DECIMAL ) - + - 22 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7073
SELECT - CAST ( NULL AS REAL ) - + - 22 + + COUNT ( * )
----
NULL

query I rowsort
SELECT + - NULLIF ( 19, + 79 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT SUM( DISTINCT - 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-7075
SELECT SUM ( DISTINCT - 80 )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7076
SELECT CAST( NULL AS SIGNED ) + - - 48 * - 45 * + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7076
SELECT CAST ( NULL AS INTEGER ) + - - 48 * - 45 * + 66 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7077
SELECT DISTINCT COALESCE ( + 61, - MAX( 2 ) + - 98 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7077
SELECT DISTINCT COALESCE ( + 61, - MAX ( 2 ) + - 98 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7078
SELECT - 51 + - 5 - + 13 DIV + MIN( DISTINCT 19 ) * CAST( + 75 AS SIGNED ) + 97 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-7078
SELECT - 51 + - 5 - + 13 / + MIN ( DISTINCT 19 ) * CAST ( + 75 AS INTEGER ) + 97 AS col2
----
41

query I rowsort
SELECT 29 * - ( 94 ) * + 94 * + 67 * + NULLIF ( - 44, 4 )
----
755407312

onlyif mysql # DIV for integer division: 
query I rowsort label-7080
SELECT 35 DIV 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7080
SELECT 35 / 69 AS col1
----
0

query I rowsort
SELECT DISTINCT - 4 - 51 col1
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7082
SELECT ALL + CAST( NULL AS SIGNED ) - + 89 / CASE + ( + 66 ) WHEN + + 95 / - 31 THEN NULL ELSE - + ( 70 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL + CAST ( NULL AS INTEGER ) - + 89 / CASE + ( + 66 ) WHEN + + 95 / - 31 THEN NULL ELSE - + ( 70 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7083
SELECT 25 DIV - 44 * - - 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7083
SELECT 25 / - 44 * - - 69 AS col1
----
0

query II rowsort
SELECT ALL 72 AS col1, - 36 AS col2
----
72
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7085
SELECT 51 AS col2, CAST( - + 94 AS SIGNED ) - + 4 - + 6 * + 52 + - 7 * - COALESCE ( - 79, - COUNT( * ) ) + + + 62
----
51
-901

skipif mysql # not compatible
query II rowsort label-7085
SELECT 51 AS col2, CAST ( - + 94 AS INTEGER ) - + 4 - + 6 * + 52 + - 7 * - COALESCE ( - 79, - COUNT ( * ) ) + + + 62
----
51
-901

query II rowsort
SELECT ( + + 22 ) * - - 32, + 62 AS col2
----
704
62

onlyif mysql # DIV for integer division: 
query II rowsort label-7087
SELECT DISTINCT 78, CASE - 60 WHEN + 76 THEN NULL ELSE + 52 DIV - 84 + - + 77 END col1
----
78
-77

skipif mysql # not compatible
query II rowsort label-7087
SELECT DISTINCT 78, CASE - 60 WHEN + 76 THEN NULL ELSE + 52 / - 84 + - + 77 END col1
----
78
-77

query II rowsort
SELECT 75, 33 AS col2
----
75
33

query I rowsort
SELECT DISTINCT 97 * + - 81
----
-7857

onlyif mysql # aggregate syntax: 
query II rowsort label-7090
SELECT 2 col1, - SUM( DISTINCT + ( + 79 ) ) * + + 85 + + + 26
----
2
-6689

skipif mysql # not compatible
query II rowsort label-7090
SELECT 2 col1, - SUM ( DISTINCT + ( + 79 ) ) * + + 85 + + + 26
----
2
-6689

query II rowsort
SELECT ALL - 58, 91 * + 94 AS col0
----
-58
8554

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT ALL - COUNT( * ) * - 43 + - 38
----
5

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL - COUNT ( * ) * - 43 + - 38
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7093
SELECT 48 DIV + 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7093
SELECT 48 / + 52 AS col2
----
0

query I rowsort
SELECT - 10 * 29 * + 54 AS col2
----
-15660

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7096
SELECT - 77 + - NULLIF ( + + COUNT( * ), - - 76 * + - 0 + COUNT( * ) / + 82 * 53 + - + 81 ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7096
SELECT - 77 + - NULLIF ( + + COUNT ( * ), - - 76 * + - 0 + COUNT ( * ) / + 82 * 53 + - + 81 ) * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7097
SELECT ALL + MIN( 54 ) + + 16 - + + 96 + + NULLIF ( + 70, + CAST( + CAST( 97 AS SIGNED ) AS DECIMAL ) )
----
44

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL + MIN ( 54 ) + + 16 - + + 96 + + NULLIF ( + 70, + CAST ( + CAST ( 97 AS INTEGER ) AS REAL ) )
----
44

query I rowsort
SELECT ALL - 61 + + COALESCE ( 82, - 42 ) AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7099
SELECT + - CASE + ( + - 25 ) WHEN + COUNT( * ) THEN + COUNT( * ) * 76 END * - + MIN( DISTINCT 74 ) + + 61 + + 29 * - + 77 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT + - CASE + ( + - 25 ) WHEN + COUNT ( * ) THEN + COUNT ( * ) * 76 END * - + MIN ( DISTINCT 74 ) + + 61 + + 29 * - + 77 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7100
SELECT + 57 + - 40 + + - ( + + COALESCE ( + - 61, COUNT( * ) + 85 - - 70 DIV 85 ) ) + + 9 + + MAX( DISTINCT - - 58 ) * - 80
----
-4553

skipif mysql # not compatible
query I rowsort label-7100
SELECT + 57 + - 40 + + - ( + + COALESCE ( + - 61, COUNT ( * ) + 85 - - 70 / 85 ) ) + + 9 + + MAX ( DISTINCT - - 58 ) * - 80
----
-4553

query I rowsort
SELECT + 26 + 77
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7102
SELECT ALL + - MIN( + 98 ) * + - 16 * + 11 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL + - MIN ( + 98 ) * + - 16 * + 11 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT DISTINCT - + COALESCE ( + + ( + COUNT( * ) ), + 32 )
----
-1

skipif mysql # not compatible
query I rowsort label-7103
SELECT DISTINCT - + COALESCE ( + + ( + COUNT ( * ) ), + 32 )
----
-1

query I rowsort
SELECT ALL - 68 + 32 AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7105
SELECT DISTINCT + 72 - MAX( + 24 ) * + 45 - 50 + - 72 * - 69 AS col1, CASE + + 65 WHEN - - COUNT( * ) THEN 32 WHEN - 78 + - 7 - - + COUNT( * ) / + COUNT( * ) * + COALESCE ( 62, + COUNT( * ) ) / 41 THEN + + CAST( NULL AS DECIMAL ) END - + - 47
----
3910
NULL

skipif mysql # not compatible
query II rowsort label-7105
SELECT DISTINCT + 72 - MAX ( + 24 ) * + 45 - 50 + - 72 * - 69 AS col1, CASE + + 65 WHEN - - COUNT ( * ) THEN 32 WHEN - 78 + - 7 - - + COUNT ( * ) / + COUNT ( * ) * + COALESCE ( 62, + COUNT ( * ) ) / 41 THEN + + CAST ( NULL AS REAL ) END - + - 47
----
3910
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7106
SELECT ALL + CASE - 77 WHEN COUNT( * ) THEN + - CAST( NULL AS SIGNED ) WHEN + + 16 THEN + 57 * + 42 END - - 39 * + - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL + CASE - 77 WHEN COUNT ( * ) THEN + - CAST ( NULL AS INTEGER ) WHEN + + 16 THEN + 57 * + 42 END - - 39 * + - 2
----
NULL

query II rowsort
SELECT DISTINCT 10 AS col0, 84 col0
----
10
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT 25 + + + SUM( ALL 53 )
----
78

skipif mysql # not compatible
query I rowsort label-7108
SELECT 25 + + + SUM ( ALL 53 )
----
78

query I rowsort
SELECT 64 * 93 AS col0
----
5952

query I rowsort
SELECT 35 + + 20
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-7111
SELECT 55, COUNT( * ) * - ( - 70 ) AS col2
----
55
70

skipif mysql # not compatible
query II rowsort label-7111
SELECT 55, COUNT ( * ) * - ( - 70 ) AS col2
----
55
70

query I rowsort
SELECT - 11 * - 15 * + 68 + 93
----
11313

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7113
SELECT - 72 AS col0, - 42 * - COUNT( * ) DIV 91
----
-72
0

skipif mysql # not compatible
query II rowsort label-7113
SELECT - 72 AS col0, - 42 * - COUNT ( * ) / 91
----
-72
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT 54 * + CASE + 10 WHEN + 85 + - 29 THEN NULL ELSE - + CASE - + 17 WHEN - COUNT( * ) + + 77 THEN - + 4 WHEN + ( - NULLIF ( - COUNT( * ), - + 80 ) ) THEN 32 END + 34 * + 21 - - - 23 + + 70 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7114
SELECT 54 * + CASE + 10 WHEN + 85 + - 29 THEN NULL ELSE - + CASE - + 17 WHEN - COUNT ( * ) + + 77 THEN - + 4 WHEN + ( - NULLIF ( - COUNT ( * ), - + 80 ) ) THEN 32 END + 34 * + 21 - - - 23 + + 70 END AS col1
----
NULL

query I rowsort
SELECT 89 * + 49 AS col1
----
4361

query II rowsort
SELECT - 80 AS col0, 31 * + + 23 + 84 AS col2
----
-80
797

query II rowsort
SELECT ALL 82, 93 * + + 74 AS col1
----
82
6882

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT COUNT( + - 78 ) + + + 65 col1
----
66

skipif mysql # not compatible
query I rowsort label-7118
SELECT COUNT ( + - 78 ) + + + 65 col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT ALL - 55 * + MAX( - - 56 )
----
-3080

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL - 55 * + MAX ( - - 56 )
----
-3080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7120
SELECT DISTINCT COUNT( * ), CAST( COUNT( * ) AS SIGNED ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-7120
SELECT DISTINCT COUNT ( * ), CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
1
1

query II rowsort
SELECT 36 AS col1, + 77 AS col0
----
36
77

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7123
SELECT MAX( DISTINCT - - 21 ) DIV + 53 * - ( - 37 )
----
0

skipif mysql # not compatible
query I rowsort label-7123
SELECT MAX ( DISTINCT - - 21 ) / + 53 * - ( - 37 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7124
SELECT ALL 32 + - NULLIF ( - COUNT( * ), + 43 ), - 34 AS col1
----
33
-34

skipif mysql # not compatible
query II rowsort label-7124
SELECT ALL 32 + - NULLIF ( - COUNT ( * ), + 43 ), - 34 AS col1
----
33
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-7125
SELECT ALL 50 DIV 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL 50 / 88 AS col0
----
0

query I rowsort
SELECT 32 * + ( + + 69 )
----
2208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7127
SELECT - MIN( DISTINCT + 89 ) + 78 * 92 * - + 66 + + 16 + + 72 + + + 60 + - - ( + - 96 ) DIV 26 * - 93 * COALESCE ( - - COUNT( ALL - 13 ), - 70 DIV + COUNT( * ) )
----
-473278

skipif mysql # not compatible
query I rowsort label-7127
SELECT - MIN ( DISTINCT + 89 ) + 78 * 92 * - + 66 + + 16 + + 72 + + + 60 + - - ( + - 96 ) / 26 * - 93 * COALESCE ( - - COUNT ( ALL - 13 ), - 70 / + COUNT ( * ) )
----
-473278

query II rowsort
SELECT - 74 AS col2, 62 + + 20 + - + 41 * 13 col1
----
-74
-451

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT DISTINCT - COUNT( * ) + + 40
----
39

skipif mysql # not compatible
query I rowsort label-7129
SELECT DISTINCT - COUNT ( * ) + + 40
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7130
SELECT DISTINCT - + CASE + 77 WHEN - + 20 * - 29 / 16 * + COALESCE ( 68, + COUNT( * ) ) * - COUNT( * ) THEN + 79 * + 74 ELSE + COALESCE ( - 83, + - 76 * SUM( + 99 ) + + 45 + 66 * + + 38 ) END AS col1, - ( + CASE - COUNT( * ) WHEN - - 82 THEN + 79 - 57 WHEN - 69 THEN NULL ELSE NULL END ) col1
----
83
NULL

skipif mysql # not compatible
query II rowsort label-7130
SELECT DISTINCT - + CASE + 77 WHEN - + 20 * - 29 / 16 * + COALESCE ( 68, + COUNT ( * ) ) * - COUNT ( * ) THEN + 79 * + 74 ELSE + COALESCE ( - 83, + - 76 * SUM ( + 99 ) + + 45 + 66 * + + 38 ) END AS col1, - ( + CASE - COUNT ( * ) WHEN - - 82 THEN + 79 - 57 WHEN - 69 THEN NULL ELSE NULL END ) col1
----
83
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT + COUNT( * ) * - + ( + 28 ) + 34
----
6

skipif mysql # not compatible
query I rowsort label-7131
SELECT + COUNT ( * ) * - + ( + 28 ) + 34
----
6

query II rowsort
SELECT + - 1 AS col1, + 22 + + + 73 * + + 71
----
-1
5205

query II rowsort
SELECT + - 32 col2, 41 AS col0
----
-32
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7134
SELECT DISTINCT - - COALESCE ( COALESCE ( 34, + CASE + - 53 WHEN - 90 THEN + 95 + 7 * + + COUNT( + 57 ) * - 67 + + 4 + 88 * + CASE - 85 WHEN - 12 THEN - 27 + - + 71 DIV + MIN( ALL - 89 ) WHEN - 21 THEN NULL ELSE NULL END + 51 * + 94 END * - 26, + - 36 ), + + 26 )
----
34

skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT - - COALESCE ( COALESCE ( 34, + CASE + - 53 WHEN - 90 THEN + 95 + 7 * + + COUNT ( + 57 ) * - 67 + + 4 + 88 * + CASE - 85 WHEN - 12 THEN - 27 + - + 71 / + MIN ( ALL - 89 ) WHEN - 21 THEN NULL ELSE NULL END + 51 * + 94 END * - 26, + - 36 ), + + 26 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT + COUNT( * ) * + CASE - MAX( ALL - - 60 ) WHEN - - 13 * + COUNT( * ) + + 17 + 64 THEN - 30 + 4 WHEN + 16 - 59 THEN NULL WHEN - ( - 42 ) THEN - 67 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7135
SELECT + COUNT ( * ) * + CASE - MAX ( ALL - - 60 ) WHEN - - 13 * + COUNT ( * ) + + 17 + 64 THEN - 30 + 4 WHEN + 16 - 59 THEN NULL WHEN - ( - 42 ) THEN - 67 END AS col1
----
NULL

query II rowsort
SELECT + - 78 AS col2, 5
----
-78
5

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

skipif mysql # not compatible
query II rowsort label-7137
SELECT 40 AS col1, COUNT ( * ) AS col0
----
40
1

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

skipif mysql # not compatible
query II rowsort label-7138
SELECT + 98, COUNT ( * ) AS col1
----
98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT 72 * MAX( 84 ) * - + CASE - COUNT( * ) WHEN COUNT( * ) THEN 11 END + + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7139
SELECT 72 * MAX ( 84 ) * - + CASE - COUNT ( * ) WHEN COUNT ( * ) THEN 11 END + + - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT ALL - + 41 * + + COALESCE ( - 23, - 89 ) - - ( 33 ) + + COUNT( * )
----
977

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL - + 41 * + + COALESCE ( - 23, - 89 ) - - ( 33 ) + + COUNT ( * )
----
977

query I rowsort
SELECT + 50 * - 95
----
-4750

query II rowsort
SELECT DISTINCT + + 89 AS col0, 89 col2
----
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT DISTINCT - COUNT( * ) * + - ( + 41 ) - + 32 * 40 AS col0
----
-1239

skipif mysql # not compatible
query I rowsort label-7143
SELECT DISTINCT - COUNT ( * ) * + - ( + 41 ) - + 32 * 40 AS col0
----
-1239

query I rowsort
SELECT - + ( - - 14 ) + + 50 AS col1
----
36

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

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

query I rowsort
SELECT ALL - 86 * - 35 AS col2
----
3010

query I rowsort
SELECT + NULLIF ( - 53, + + 23 ) AS col2
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7148
SELECT - COUNT( * ) DIV - 44 AS col1, 39
----
0
39

skipif mysql # not compatible
query II rowsort label-7148
SELECT - COUNT ( * ) / - 44 AS col1, 39
----
0
39

query I rowsort
SELECT + 52 * 80 AS col0
----
4160

query I rowsort
SELECT DISTINCT + 41 * - 70
----
-2870

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT DISTINCT NULLIF ( COUNT( ALL 63 ), - ( - - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-7151
SELECT DISTINCT NULLIF ( COUNT ( ALL 63 ), - ( - - COUNT ( * ) ) )
----
1

query I rowsort
SELECT ALL NULLIF ( 57, - 16 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7153
SELECT DISTINCT CASE 28 WHEN + 84 * 36 - + + COUNT( * ) + 31 - + 80 * - 2 THEN NULL WHEN 98 * 73 THEN - 75 + + CAST( - 23 AS DECIMAL ) + + 53 + + 17 * - 27 + + 24 WHEN - - AVG ( - + ( + 81 ) ) * - - 73 - 44 * 0 + - + 22 THEN + - 71 + - 56 * + ( 36 ) * + CAST( + COUNT( * ) AS SIGNED ) - - NULLIF ( + - MIN( 87 ), - CASE - 13 WHEN + 92 THEN + 49 WHEN - COUNT( * ) + + 9 + 54 THEN - - 31 + - + COALESCE ( 54, 9 ) END ) / + 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT CASE 28 WHEN + 84 * 36 - + + COUNT ( * ) + 31 - + 80 * - 2 THEN NULL WHEN 98 * 73 THEN - 75 + + CAST ( - 23 AS REAL ) + + 53 + + 17 * - 27 + + 24 WHEN - - AVG ( - + ( + 81 ) ) * - - 73 - 44 * 0 + - + 22 THEN + - 71 + - 56 * + ( 36 ) * + CAST ( + COUNT ( * ) AS INTEGER ) - - NULLIF ( + - MIN ( 87 ), - CASE - 13 WHEN + 92 THEN + 49 WHEN - COUNT ( * ) + + 9 + 54 THEN - - 31 + - + COALESCE ( 54, 9 ) END ) / + 98 END
----
NULL

query I rowsort
SELECT ALL - 51 + + + 10
----
-41

query I rowsort
SELECT DISTINCT + 97 + - 29 + + 68 AS col2
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-7156
SELECT - COUNT( + 66 ) AS col2, ( - 77 )
----
-1
-77

skipif mysql # not compatible
query II rowsort label-7156
SELECT - COUNT ( + 66 ) AS col2, ( - 77 )
----
-1
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT ALL CASE COUNT( * ) WHEN + 29 * + 38 THEN NULL ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-7158
SELECT ALL CASE COUNT ( * ) WHEN + 29 * + 38 THEN NULL ELSE + COUNT ( * ) END
----
1

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

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

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

skipif mysql # not compatible
query I rowsort label-7160
SELECT - COUNT ( * ) * - 86 / - 75
----
-1

query II rowsort
SELECT + 20 * + 86 * + 58, - ( - + 19 ) + - - 60 AS col0
----
99760
79

onlyif mysql # aggregate syntax: 
query III rowsort label-7162
SELECT ALL ( COUNT( * ) ), + 78 col1, - COUNT( * ) AS col1
----
1
78
-1

skipif mysql # not compatible
query III rowsort label-7162
SELECT ALL ( COUNT ( * ) ), + 78 col1, - COUNT ( * ) AS col1
----
1
78
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7163
SELECT DISTINCT + - 19 + - - ( 74 ) + - CAST( NULL AS SIGNED ) + + ( - 28 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT + - 19 + - - ( 74 ) + - CAST ( NULL AS INTEGER ) + + ( - 28 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7164
SELECT ALL + 97 + ( + 64 ) * ( + COUNT( * ) ), 43 + 83 * MIN( DISTINCT + - 94 ) AS col2
----
161
-7759

skipif mysql # not compatible
query II rowsort label-7164
SELECT ALL + 97 + ( + 64 ) * ( + COUNT ( * ) ), 43 + 83 * MIN ( DISTINCT + - 94 ) AS col2
----
161
-7759

query II rowsort
SELECT - - 16 * - - 34 AS col1, - 80
----
544
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7166
SELECT ALL + 11 + - 30 + + 34 + + 83 * - - 98 * 99 DIV - COUNT( * ) + + - 65 col1
----
-805316

skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL + 11 + - 30 + + 34 + + 83 * - - 98 * 99 / - COUNT ( * ) + + - 65 col1
----
-805316

query II rowsort
SELECT ALL 85 + + + 85 + 56, 48 AS col1
----
226
48

query II rowsort
SELECT ALL + 61 + - - 82 AS col0, - 23 + + 75
----
143
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT + MIN( ALL - 73 ) * + 52 - + COUNT( * ) AS col1
----
-3797

skipif mysql # not compatible
query I rowsort label-7169
SELECT + MIN ( ALL - 73 ) * + 52 - + COUNT ( * ) AS col1
----
-3797

onlyif mysql # DIV for integer division: 
query I rowsort label-7170
SELECT DISTINCT 55 DIV 1 * 15 DIV - - 80 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT 55 / 1 * 15 / - - 80 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT ALL + - MIN( DISTINCT + 57 ) / SUM( - - 17 ) + 95 - + CASE - 22 WHEN 3 THEN - + 56 ELSE NULL END + + - 29 / 66
----
NULL

skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL + - MIN ( DISTINCT + 57 ) / SUM ( - - 17 ) + 95 - + CASE - 22 WHEN 3 THEN - + 56 ELSE NULL END + + - 29 / 66
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 84, - + 56 )
----
84

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

query I rowsort
SELECT + - CASE + 57 WHEN - 11 + - ( 97 ) - - 25 * + 82 THEN - + 56 WHEN + + 21 * + + 15 * + 76 THEN NULL ELSE NULL END + - - 87
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7176
SELECT + ( CASE COUNT( * ) WHEN - ( + 78 ) THEN + + 2 + CASE - ( + + 41 ) WHEN + - 63 THEN + 57 ELSE NULL END END ) * 2 AS col1, 29 * - + 34
----
NULL
-986

skipif mysql # not compatible
query II rowsort label-7176
SELECT + ( CASE COUNT ( * ) WHEN - ( + 78 ) THEN + + 2 + CASE - ( + + 41 ) WHEN + - 63 THEN + 57 ELSE NULL END END ) * 2 AS col1, 29 * - + 34
----
NULL
-986

query I rowsort
SELECT + NULLIF ( - 98, - + 90 - - 30 ) AS col0
----
-98

query I rowsort
SELECT - 93 + - 22
----
-115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7179
SELECT + CAST( + + CAST( - COUNT( - 35 ) AS DECIMAL ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7179
SELECT + CAST ( + + CAST ( - COUNT ( - 35 ) AS REAL ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT COUNT( * ) * - 42 + 21
----
-21

skipif mysql # not compatible
query I rowsort label-7180
SELECT COUNT ( * ) * - 42 + 21
----
-21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7181
SELECT DISTINCT 65 * + 80 + SUM( ALL 31 ) col2, - 66 + + + CAST( CASE AVG ( ALL + + 72 ) WHEN 49 THEN + + 79 END AS DECIMAL ) + ( + COUNT( * ) ) * + - 79
----
5231
NULL

skipif mysql # not compatible
query II rowsort label-7181
SELECT DISTINCT 65 * + 80 + SUM ( ALL 31 ) col2, - 66 + + + CAST ( CASE AVG ( ALL + + 72 ) WHEN 49 THEN + + 79 END AS REAL ) + ( + COUNT ( * ) ) * + - 79
----
5231
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7182
SELECT ALL + 92 * - CAST( + MAX( - 54 ) AS SIGNED ) * + 88 + + 46 AS col0
----
437230

skipif mysql # not compatible
query I rowsort label-7182
SELECT ALL + 92 * - CAST ( + MAX ( - 54 ) AS INTEGER ) * + 88 + + 46 AS col0
----
437230

onlyif mysql # DIV for integer division: 
query I rowsort label-7183
SELECT - ( - 44 ) DIV + 38 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7183
SELECT - ( - 44 ) / + 38 AS col1
----
1

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

query I rowsort
SELECT + 39 + 62
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7186
SELECT - 44 - + MIN( - 53 ) * - 18 DIV - COUNT( * )
----
910

skipif mysql # not compatible
query I rowsort label-7186
SELECT - 44 - + MIN ( - 53 ) * - 18 / - COUNT ( * )
----
910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7187
SELECT DISTINCT 83 * - 1 / + - 69 * - CAST( NULL AS SIGNED ) + + 10 + + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT 83 * - 1 / + - 69 * - CAST ( NULL AS INTEGER ) + + 10 + + 9
----
NULL

query I rowsort
SELECT ALL + 93 * - + 88
----
-8184

onlyif mysql # DIV for integer division: 
query I rowsort label-7189
SELECT - 21 DIV 45 col1
----
0

skipif mysql # not compatible
query I rowsort label-7189
SELECT - 21 / 45 col1
----
0

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

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

query I rowsort
SELECT DISTINCT COALESCE ( 21, NULLIF ( + ( + + 43 ), - - 69 + - - 39 ) )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7192
SELECT ALL + CAST( 30 AS SIGNED ) + + CASE + - 75 WHEN + 35 THEN + + MAX( DISTINCT + 61 ) END + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL + CAST ( 30 AS INTEGER ) + + CASE + - 75 WHEN + 35 THEN + + MAX ( DISTINCT + 61 ) END + 75
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT + 32 - - 99 col0
----
131

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

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

query I rowsort
SELECT DISTINCT + 83 * + 86
----
7138

onlyif mysql # DIV for integer division: 
query I rowsort label-7198
SELECT 41 DIV + 27
----
1

skipif mysql # not compatible
query I rowsort label-7198
SELECT 41 / + 27
----
1

query II rowsort
SELECT ALL + 39 * ( - 79 ) * 65 + CASE 28 WHEN + NULLIF ( - - 72, - + ( 62 ) + 76 ) * + - 42 * - 37 THEN NULL WHEN + 15 THEN NULL WHEN - - 39 + 7 - - - ( COALESCE ( 52, 92 ) ) THEN + 66 * + 68 * 7 ELSE NULL END AS col2, 59
----
NULL
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7200
SELECT CASE + - 91 WHEN - 70 THEN - SUM( DISTINCT + 50 ) - - 1 + CAST( 49 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7200
SELECT CASE + - 91 WHEN - 70 THEN - SUM ( DISTINCT + 50 ) - - 1 + CAST ( 49 AS INTEGER ) END
----
NULL

query II rowsort
SELECT 50 AS col0, 44 AS col1
----
50
44

query I rowsort
SELECT ALL - + CASE - - 36 WHEN 77 THEN AVG ( - + 79 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7203
SELECT 45 DIV 9
----
5

skipif mysql # not compatible
query I rowsort label-7203
SELECT 45 / 9
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7204
SELECT 80 * 7 * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7204
SELECT 80 * 7 * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7205
SELECT DISTINCT + 69 + - 71 DIV 21
----
66

skipif mysql # not compatible
query I rowsort label-7205
SELECT DISTINCT + 69 + - 71 / 21
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT ALL MAX( - 81 ) * + 92
----
-7452

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL MAX ( - 81 ) * + 92
----
-7452

query II rowsort
SELECT ALL 81 + + 33 col0, 83 * + 40 col1
----
114
3320

query I rowsort
SELECT ALL 39 + + 84 AS col0
----
123

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT MAX( ALL - 46 ) + + + 3 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-7210
SELECT MAX ( ALL - 46 ) + + + 3 AS col0
----
-43

query I rowsort
SELECT ALL 33 * 23 * + 30 * 38 AS col0
----
865260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7212
SELECT MAX( DISTINCT + 1 ) * - NULLIF ( 40, + ( CAST( NULL AS SIGNED ) ) / - 54 * + 69 + - 17 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-7212
SELECT MAX ( DISTINCT + 1 ) * - NULLIF ( 40, + ( CAST ( NULL AS INTEGER ) ) / - 54 * + 69 + - 17 ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT - 98 * - + MAX( ALL + 42 ) + - + 11 + 63
----
4168

skipif mysql # not compatible
query I rowsort label-7213
SELECT - 98 * - + MAX ( ALL + 42 ) + - + 11 + 63
----
4168

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT ALL 27 + + COUNT( - - 80 )
----
28

skipif mysql # not compatible
query I rowsort label-7214
SELECT ALL 27 + + COUNT ( - - 80 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-7215
SELECT ( 46 ) * COUNT( DISTINCT 27 ) AS col0, NULLIF ( + + COUNT( * ), + CAST( NULL AS SIGNED ) * 67 ) DIV ( + COUNT( * ) ) DIV + COUNT( - - CAST( + 3 AS DECIMAL ) ) + + + 14 AS col1
----
46
15

skipif mysql # not compatible
query II rowsort label-7215
SELECT ( 46 ) * COUNT ( DISTINCT 27 ) AS col0, NULLIF ( + + COUNT ( * ), + CAST ( NULL AS INTEGER ) * 67 ) / ( + COUNT ( * ) ) / + COUNT ( - - CAST ( + 3 AS REAL ) ) + + + 14 AS col1
----
46
15

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

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT ( COUNT ( * ) ) / - 50 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT DISTINCT 88 - + MAX( 91 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7217
SELECT DISTINCT 88 - + MAX ( 91 ) AS col1
----
-3

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7219
SELECT - + ( + 12 ) AS col1, 85 + 98 - - - 15 + - COUNT( * ) * - - 64 * - 40 AS col1
----
-12
2728

skipif mysql # not compatible
query II rowsort label-7219
SELECT - + ( + 12 ) AS col1, 85 + 98 - - - 15 + - COUNT ( * ) * - - 64 * - 40 AS col1
----
-12
2728

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT DISTINCT - - 60 * + - COUNT( * ) + - - COUNT( - 68 ) * 98 col1
----
38

skipif mysql # not compatible
query I rowsort label-7220
SELECT DISTINCT - - 60 * + - COUNT ( * ) + - - COUNT ( - 68 ) * 98 col1
----
38

query I rowsort
SELECT ALL + - 97 * 71 AS col0
----
-6887

query II rowsort
SELECT - ( + 42 ) * - 31 * - + 59 col0, + 85 + 69 + + 38
----
-76818
192

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7224
SELECT + CASE 27 WHEN + CAST( 74 AS SIGNED ) * + + 17 * COUNT( * ) THEN + 3 * 28 ELSE + 94 * - 81 END AS col1
----
-7614

skipif mysql # not compatible
query I rowsort label-7224
SELECT + CASE 27 WHEN + CAST ( 74 AS INTEGER ) * + + 17 * COUNT ( * ) THEN + 3 * 28 ELSE + 94 * - 81 END AS col1
----
-7614

query I rowsort
SELECT 48 * - 64
----
-3072

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

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

query I rowsort
SELECT + ( 84 ) + 19 AS col0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7228
SELECT - 47 * - 26 + 12 + + 11 + - + 55 * + ( + - COUNT( ALL - 14 ) ) / NULLIF ( CAST( NULL AS SIGNED ), + - 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7228
SELECT - 47 * - 26 + 12 + + 11 + - + 55 * + ( + - COUNT ( ALL - 14 ) ) / NULLIF ( CAST ( NULL AS INTEGER ), + - 82 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7229
SELECT - 93 * - - 48 + SUM( ALL + 80 ) DIV - 25
----
-4467

skipif mysql # not compatible
query I rowsort label-7229
SELECT - 93 * - - 48 + SUM ( ALL + 80 ) / - 25
----
-4467

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7230
SELECT ALL + 77 * CAST( + CASE 2 WHEN - 74 THEN NULL WHEN - - COUNT( * ) THEN + COUNT( * ) WHEN ( - SUM( DISTINCT - - 15 ) ) THEN NULL END AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL + 77 * CAST ( + CASE 2 WHEN - 74 THEN NULL WHEN - - COUNT ( * ) THEN + COUNT ( * ) WHEN ( - SUM ( DISTINCT - - 15 ) ) THEN NULL END AS INTEGER ) col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7232
SELECT ALL + MIN( ( - - 55 ) ) + + 94 * NULLIF ( + 5, - 48 + - + 0 * - + 36 * - 20 ) + - - 90 AS col1, 49 DIV + - ( 56 ) * - NULLIF ( 51, - + 91 )
----
615
0

skipif mysql # not compatible
query II rowsort label-7232
SELECT ALL + MIN ( ( - - 55 ) ) + + 94 * NULLIF ( + 5, - 48 + - + 0 * - + 36 * - 20 ) + - - 90 AS col1, 49 / + - ( 56 ) * - NULLIF ( 51, - + 91 )
----
615
0

query I rowsort
SELECT DISTINCT + 82 + - + 25 * + 54
----
-1268

query I rowsort
SELECT DISTINCT 87 + ( - 29 )
----
58

query I rowsort
SELECT DISTINCT - 10 * - 27 * + 4
----
1080

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7236
SELECT + 7 * - + CASE + 66 WHEN - + CAST( NULL AS SIGNED ) THEN + 70 ELSE 57 DIV + - 85 + + 78 - - 25 END + 55 + 82 * - 86
----
-7718

skipif mysql # not compatible
query I rowsort label-7236
SELECT + 7 * - + CASE + 66 WHEN - + CAST ( NULL AS INTEGER ) THEN + 70 ELSE 57 / + - 85 + + 78 - - 25 END + 55 + 82 * - 86
----
-7718

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7238
SELECT DISTINCT + COUNT( * ) + CAST( NULL AS SIGNED ) + 85 * - - ( - + 29 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7238
SELECT DISTINCT + COUNT ( * ) + CAST ( NULL AS INTEGER ) + 85 * - - ( - + 29 ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7239
SELECT - 94 * ( + 54 ) * - + 30 + 16 + + - ( + 32 ) DIV 4 * 5 + - + 11 AS col0, 6 * + - 55 AS col1
----
152245
-330

skipif mysql # not compatible
query II rowsort label-7239
SELECT - 94 * ( + 54 ) * - + 30 + 16 + + - ( + 32 ) / 4 * 5 + - + 11 AS col0, 6 * + - 55 AS col1
----
152245
-330

onlyif mysql # DIV for integer division: 
query I rowsort label-7240
SELECT ALL 86 DIV - + 84
----
-1

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL 86 / - + 84
----
-1

query I rowsort
SELECT 89 * - + 82
----
-7298

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

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

query I rowsort
SELECT ALL ( 0 ) * + - 54 + - 42 AS col1
----
-42

query I rowsort
SELECT COALESCE ( - 98, 32 + - + 58 ) + - 67 - + - 38
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7245
SELECT ALL + COUNT( * ) - + 16 + + 40 + + CAST( NULL AS SIGNED ) + COALESCE ( - + 16, - 71 * 41 + COALESCE ( + + 70, - 12 * - + 50 + - 94 + + 28 + 4 / + + 25 + + + 35 ) - + 65 / + + 76 ) * 66 + + 16 + + + 43 + + COALESCE ( - 88, + 3 ) / + COUNT( * ) * 55
----
NULL

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL + COUNT ( * ) - + 16 + + 40 + + CAST ( NULL AS INTEGER ) + COALESCE ( - + 16, - 71 * 41 + COALESCE ( + + 70, - 12 * - + 50 + - 94 + + 28 + 4 / + + 25 + + + 35 ) - + 65 / + + 76 ) * 66 + + 16 + + + 43 + + COALESCE ( - 88, + 3 ) / + COUNT ( * ) * 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT MAX( DISTINCT + 20 ) * + 52 * - COUNT( * ) + - - 93 AS col0
----
-947

skipif mysql # not compatible
query I rowsort label-7246
SELECT MAX ( DISTINCT + 20 ) * + 52 * - COUNT ( * ) + - - 93 AS col0
----
-947

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT - SUM( ALL - 94 ) + - ( - 47 ) AS col2
----
141

skipif mysql # not compatible
query I rowsort label-7247
SELECT - SUM ( ALL - 94 ) + - ( - 47 ) AS col2
----
141

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

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

query I rowsort
SELECT + + 5 * - + 70 AS col1
----
-350

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7250
SELECT + 78 * + 40 + + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7250
SELECT + 78 * + 40 + + CAST ( NULL AS REAL ) col0
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7254
SELECT + 5 DIV 65 - SUM( ALL - 81 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-7254
SELECT + 5 / 65 - SUM ( ALL - 81 ) AS col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7255
SELECT DISTINCT 50 col0, CAST( NULL AS SIGNED ) + - 89 AS col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-7255
SELECT DISTINCT 50 col0, CAST ( NULL AS INTEGER ) + - 89 AS col0
----
50
NULL

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

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

query I rowsort
SELECT + - 53 + + 92
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7258
SELECT DISTINCT - 89 DIV COUNT( * ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-7258
SELECT DISTINCT - 89 / COUNT ( * ) AS col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7259
SELECT + + 78 + 16 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7259
SELECT + + 78 + 16 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT + SUM( ALL - + 43 ) + - - 84 + - 87
----
-46

skipif mysql # not compatible
query I rowsort label-7260
SELECT + SUM ( ALL - + 43 ) + - - 84 + - 87
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7261
SELECT ALL 20 * + 66 + + COALESCE ( CAST( NULL AS SIGNED ), COUNT( ALL - - 54 ) + + - 58 ) AS col1
----
1263

skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL 20 * + 66 + + COALESCE ( CAST ( NULL AS INTEGER ), COUNT ( ALL - - 54 ) + + - 58 ) AS col1
----
1263

query I rowsort
SELECT ALL - 98 + 93 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT DISTINCT - 39 + 73 * - COUNT( ALL + 9 ) * - - 58 - 98
----
-4371

skipif mysql # not compatible
query I rowsort label-7263
SELECT DISTINCT - 39 + 73 * - COUNT ( ALL + 9 ) * - - 58 - 98
----
-4371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7264
SELECT + CAST( NULL AS SIGNED ) / - 71 * - 39 + - + 34 + + + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7264
SELECT + CAST ( NULL AS INTEGER ) / - 71 * - 39 + - + 34 + + + 24 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT DISTINCT + NULLIF ( + 84, 81 * - 18 / 88 + - COALESCE ( + 40, - - 37 ) - - + 58 * - COUNT( * ) ) * - 96 * + CASE - 54 WHEN - COUNT( * ) THEN - 43 ELSE - 74 END * + + 80 + - 1
----
47738879

skipif mysql # not compatible
query I rowsort label-7266
SELECT DISTINCT + NULLIF ( + 84, 81 * - 18 / 88 + - COALESCE ( + 40, - - 37 ) - - + 58 * - COUNT ( * ) ) * - 96 * + CASE - 54 WHEN - COUNT ( * ) THEN - 43 ELSE - 74 END * + + 80 + - 1
----
47738879

onlyif mysql # aggregate syntax: 
query II rowsort label-7267
SELECT ALL + 35 AS col2, - COUNT( * ) + + - COALESCE ( - - 81, + COUNT( * ) * - ( 36 ), 84 )
----
35
-82

skipif mysql # not compatible
query II rowsort label-7267
SELECT ALL + 35 AS col2, - COUNT ( * ) + + - COALESCE ( - - 81, + COUNT ( * ) * - ( 36 ), 84 )
----
35
-82

query I rowsort
SELECT + ( + 37 ) col2
----
37

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

query II rowsort
SELECT + 10 AS col0, + 7
----
10
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT + 3 * + 43 - - - COUNT( * )
----
128

skipif mysql # not compatible
query I rowsort label-7271
SELECT + 3 * + 43 - - - COUNT ( * )
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT DISTINCT 65 * - - MIN( - 16 ) * 73 + + 60 + - 13 - 73 + - COUNT( * ) - + 65 + + + 11
----
-76001

skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT 65 * - - MIN ( - 16 ) * 73 + + 60 + - 13 - 73 + - COUNT ( * ) - + 65 + + + 11
----
-76001

query I rowsort
SELECT NULLIF ( 98, + + 12 * 35 ) col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT - MAX( ALL 19 ) - - 45 + - COUNT( * ) * - - 46
----
-20

skipif mysql # not compatible
query I rowsort label-7274
SELECT - MAX ( ALL 19 ) - - 45 + - COUNT ( * ) * - - 46
----
-20

query I rowsort
SELECT - 86 + + + 24 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT COALESCE ( + MAX( - + 79 ), - COUNT( * ) * + + 43 )
----
-79

skipif mysql # not compatible
query I rowsort label-7276
SELECT COALESCE ( + MAX ( - + 79 ), - COUNT ( * ) * + + 43 )
----
-79

query I rowsort
SELECT NULLIF ( - 95, + + 60 ) col1
----
-95

onlyif mysql # DIV for integer division: 
query II rowsort label-7278
SELECT COALESCE ( + 48, + 17 * - - 79 ), - 16 DIV 21 AS col2
----
48
0

skipif mysql # not compatible
query II rowsort label-7278
SELECT COALESCE ( + 48, + 17 * - - 79 ), - 16 / 21 AS col2
----
48
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT COALESCE ( - ( COUNT( * ) ), + 87, 50 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7280
SELECT COALESCE ( - ( COUNT ( * ) ), + 87, 50 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT - - 91 * + COUNT( + 84 ) + COALESCE ( 41, - 42, + 8, 65 ) col2
----
132

skipif mysql # not compatible
query I rowsort label-7281
SELECT - - 91 * + COUNT ( + 84 ) + COALESCE ( 41, - 42, + 8, 65 ) col2
----
132

query II rowsort
SELECT DISTINCT + + 88 AS col1, 91 * - 65 col1
----
88
-5915

query II rowsort
SELECT + + 17 + + 93 AS col2, - 76 AS col2
----
110
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-7284
SELECT ALL + 12 DIV 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7284
SELECT ALL + 12 / 31 AS col2
----
0

query II rowsort
SELECT ALL + 72, ( + 22 ) * - 17 AS col2
----
72
-374

query I rowsort
SELECT - - 48 * - 76 AS col2
----
-3648

query I rowsort
SELECT - - COALESCE ( + 60, + - 35 + + 41 ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT SUM( DISTINCT - 48 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-7288
SELECT SUM ( DISTINCT - 48 ) AS col0
----
-48

query II rowsort
SELECT ALL + 49, 10 AS col2
----
49
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT CASE COUNT( * ) WHEN + + 24 * + 74 THEN 9 WHEN 28 * - - ( + + COUNT( DISTINCT - 95 ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7290
SELECT CASE COUNT ( * ) WHEN + + 24 * + 74 THEN 9 WHEN 28 * - - ( + + COUNT ( DISTINCT - 95 ) ) THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - 36 AS col2, + 18 AS col1
----
-36
18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7292
SELECT ALL COALESCE ( + - 4, - 27 * + COALESCE ( - 8, - - CASE 16 WHEN - - CAST( NULL AS DECIMAL ) / + 50 / - ( 94 ) * 52 THEN NULL ELSE - MAX( 62 ) + + COUNT( * ) END ), - 95 + + 74 * + COUNT( * ) )
----
-4

skipif mysql # not compatible
query I rowsort label-7292
SELECT ALL COALESCE ( + - 4, - 27 * + COALESCE ( - 8, - - CASE 16 WHEN - - CAST ( NULL AS REAL ) / + 50 / - ( 94 ) * 52 THEN NULL ELSE - MAX ( 62 ) + + COUNT ( * ) END ), - 95 + + 74 * + COUNT ( * ) )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7293
SELECT + 12 * - + 24 AS col2, + ( + CASE - 17 WHEN - 82 THEN 75 WHEN - + 23 + + COUNT( * ) THEN NULL WHEN 99 DIV + 35 + + 24 THEN NULL ELSE - COUNT( * ) * - COUNT( * ) + - - COALESCE ( + 37, + 67 * - 45 - + + 79 ) * + 67 * - 29 END ) DIV - 53 + + COALESCE ( 3, + COUNT( * ) * + CASE 23 WHEN - COUNT( * ) * + - 94 * + - 4 * + 77 THEN NULL WHEN + + 7 THEN + - NULLIF ( + 12, + + CAST( NULL AS SIGNED ) ) - + - COUNT( ALL - 66 ) + + 28 DIV + 27 ELSE NULL END + + - 67 + + 27 + + - 64 DIV 91 ) AS col0
----
-288
1359

skipif mysql # not compatible
query II rowsort label-7293
SELECT + 12 * - + 24 AS col2, + ( + CASE - 17 WHEN - 82 THEN 75 WHEN - + 23 + + COUNT ( * ) THEN NULL WHEN 99 / + 35 + + 24 THEN NULL ELSE - COUNT ( * ) * - COUNT ( * ) + - - COALESCE ( + 37, + 67 * - 45 - + + 79 ) * + 67 * - 29 END ) / - 53 + + COALESCE ( 3, + COUNT ( * ) * + CASE 23 WHEN - COUNT ( * ) * + - 94 * + - 4 * + 77 THEN NULL WHEN + + 7 THEN + - NULLIF ( + 12, + + CAST ( NULL AS INTEGER ) ) - + - COUNT ( ALL - 66 ) + + 28 / + 27 ELSE NULL END + + - 67 + + 27 + + - 64 / 91 ) AS col0
----
-288
1359

query I rowsort
SELECT DISTINCT - 60 * + 40
----
-2400

onlyif mysql # aggregate syntax: 
query II rowsort label-7295
SELECT ALL + 2 + MIN( 73 ) * 93 AS col0, 67
----
6791
67

skipif mysql # not compatible
query II rowsort label-7295
SELECT ALL + 2 + MIN ( 73 ) * 93 AS col0, 67
----
6791
67

query I rowsort
SELECT - 65 - + - 35 * - 65 AS col2
----
-2340

query I rowsort
SELECT ALL NULLIF ( + - 24, + 8 - + - 69 - - 35 ) + - 96 col0
----
-120

query I rowsort
SELECT - 78 * + 98
----
-7644

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

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

query II rowsort
SELECT ALL - 10 + 83 col0, ( - 17 ) col1
----
73
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT ALL + 35 + + COUNT( * ) * + 96 AS col2
----
131

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL + 35 + + COUNT ( * ) * + 96 AS col2
----
131

query II rowsort
SELECT - 68 AS col1, 57
----
-68
57

query I rowsort
SELECT ALL - + CASE - 93 WHEN 56 THEN + - 84 WHEN + 58 THEN NULL WHEN 92 THEN NULL ELSE + 32 + - 57 + - 52 END + + 95 * + 14
----
1407

query I rowsort
SELECT DISTINCT + NULLIF ( + 68, 50 ) + + 96 AS col0
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT ALL + 86 + - 73 * - 47 + - COUNT( * ) AS col0
----
3516

skipif mysql # not compatible
query I rowsort label-7305
SELECT ALL + 86 + - 73 * - 47 + - COUNT ( * ) AS col0
----
3516

query I rowsort
SELECT + + 80 - + 43
----
37

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT + CASE + 54 WHEN - - 99 THEN NULL WHEN - COUNT( * ) * + - 85 / - - COUNT( * ) + 79 * + 79 + - ( 78 ) THEN + 21 ELSE NULL END * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-7309
SELECT + CASE + 54 WHEN - - 99 THEN NULL WHEN - COUNT ( * ) * + - 85 / - - COUNT ( * ) + 79 * + 79 + - ( 78 ) THEN + 21 ELSE NULL END * 78
----
NULL

query I rowsort
SELECT ALL 16 + - + 38 col2
----
-22

query I rowsort
SELECT + 22 + + - 99
----
-77

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

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

query I rowsort
SELECT + NULLIF ( - - 89, 74 ) * + 91 * - ( 16 ) AS col1
----
-129584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7314
SELECT ALL + 15 DIV + NULLIF ( ( + 28 ), COUNT( * ) ) * - 44 - + 11
----
-11

skipif mysql # not compatible
query I rowsort label-7314
SELECT ALL + 15 / + NULLIF ( ( + 28 ), COUNT ( * ) ) * - 44 - + 11
----
-11

query II rowsort
SELECT ALL 4 * - + 55 AS col1, 31 * + 80 AS col2
----
-220
2480

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7317
SELECT ALL 5 DIV NULLIF ( - 51, - + 62 ) DIV - 86 - - 85 * 20 - 28 + + + COUNT( DISTINCT 42 ) * COALESCE ( COUNT( * ), - CAST( NULL AS SIGNED ) * - + COUNT( * ), 40 * 95 * 35 ) DIV + + 53 AS col0
----
1672

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL 5 / NULLIF ( - 51, - + 62 ) / - 86 - - 85 * 20 - 28 + + + COUNT ( DISTINCT 42 ) * COALESCE ( COUNT ( * ), - CAST ( NULL AS INTEGER ) * - + COUNT ( * ), 40 * 95 * 35 ) / + + 53 AS col0
----
1672

query I rowsort
SELECT 33 * - 20 AS col0
----
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT - COUNT( * ) * 11 + + - 24 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-7319
SELECT - COUNT ( * ) * 11 + + - 24 AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7320
SELECT ( - ( + 49 ) ) * - 5 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7320
SELECT ( - ( + 49 ) ) * - 5 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 69 + 96 + 80 * + 46 AS col2
----
3707

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7322
SELECT DISTINCT 39 DIV + + 5 * COUNT( * ) AS col2, - 20 + - + 9 DIV 37
----
7
-20

skipif mysql # not compatible
query II rowsort label-7322
SELECT DISTINCT 39 / + + 5 * COUNT ( * ) AS col2, - 20 + - + 9 / 37
----
7
-20

query I rowsort
SELECT DISTINCT - - COALESCE ( 44, + 72 ) AS col1
----
44

query I rowsort
SELECT - 96 * 78
----
-7488

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

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

query I rowsort
SELECT ALL - + 11 + - 77 AS col0
----
-88

query I rowsort
SELECT NULLIF ( - + ( - 17 ), - 43 * - 42 ) + + 58 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT - + 64 * + ( 75 ) + + 42 + 5 + - COUNT( * ) AS col2
----
-4754

skipif mysql # not compatible
query I rowsort label-7328
SELECT - + 64 * + ( 75 ) + + 42 + 5 + - COUNT ( * ) AS col2
----
-4754

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT COUNT( * ) - - MAX( 21 )
----
22

skipif mysql # not compatible
query I rowsort label-7329
SELECT COUNT ( * ) - - MAX ( 21 )
----
22

query I rowsort
SELECT ALL + + 99 + - - 18
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT ALL - CASE 6 WHEN - CASE 87 WHEN - COUNT( * ) - 45 + + + ( COUNT( * ) ) / - NULLIF ( ( - - 93 ), + + COUNT( * ) ) THEN + 29 / + MIN( ALL - 9 ) WHEN 74 THEN NULL ELSE NULL END + + 94 THEN + + 89 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL - CASE 6 WHEN - CASE 87 WHEN - COUNT ( * ) - 45 + + + ( COUNT ( * ) ) / - NULLIF ( ( - - 93 ), + + COUNT ( * ) ) THEN + 29 / + MIN ( ALL - 9 ) WHEN 74 THEN NULL ELSE NULL END + + 94 THEN + + 89 END AS col2
----
NULL

query II rowsort
SELECT + 46 + 44, 36 * + - 68 AS col1
----
90
-2448

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7333
SELECT - 85 + - + 65 col0, ( + - 37 ) DIV - 83 * - ( - 9 ) * ( - 57 ) - 57 + + COUNT( ALL 72 ) * - 89 + 10 + 65
----
-150
-71

skipif mysql # not compatible
query II rowsort label-7333
SELECT - 85 + - + 65 col0, ( + - 37 ) / - 83 * - ( - 9 ) * ( - 57 ) - 57 + + COUNT ( ALL 72 ) * - 89 + 10 + 65
----
-150
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT ALL + + 23 + + COUNT( * ) + - - ( + 21 ) col1
----
45

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL + + 23 + + COUNT ( * ) + - - ( + 21 ) col1
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7335
SELECT ALL + + NULLIF ( + COUNT( * ), 69 ) DIV - + 51 * 4 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL + + NULLIF ( + COUNT ( * ), 69 ) / - + 51 * 4 * COUNT ( * ) AS col1
----
0

query I rowsort
SELECT ALL + 6 * 40 AS col1
----
240

query I rowsort
SELECT 63 * - 1
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7338
SELECT MAX( 51 ) + + 33 AS col1, + 0 DIV - 70 + + - 55 AS col0
----
84
-55

skipif mysql # not compatible
query II rowsort label-7338
SELECT MAX ( 51 ) + + 33 AS col1, + 0 / - 70 + + - 55 AS col0
----
84
-55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT 8 + - + COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-7340
SELECT 8 + - + COUNT ( * ) AS col2
----
7

query I rowsort
SELECT DISTINCT 69 * + + 65 AS col2
----
4485

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

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

query I rowsort
SELECT DISTINCT + 88 * - 5 AS col0
----
-440

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

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

query I rowsort
SELECT 88 - + - 89 - - 84
----
261

query II rowsort
SELECT ALL - 59, ( - + 72 ) AS col1
----
-59
-72

query II rowsort
SELECT 45, 66 AS col1
----
45
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7348
SELECT + 57 * + 49 * - 27 - 54 + - MIN( + - 64 ) - + + 33 * 99 AS col1, - 67 DIV + 42
----
-78668
-1

skipif mysql # not compatible
query II rowsort label-7348
SELECT + 57 * + 49 * - 27 - 54 + - MIN ( + - 64 ) - + + 33 * 99 AS col1, - 67 / + 42
----
-78668
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7349
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) + 82 AS col0, 8 + + 75
----
NULL
83

skipif mysql # not compatible
query II rowsort label-7349
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) + 82 AS col0, 8 + + 75
----
NULL
83

query II rowsort
SELECT ALL - 78 col2, 38
----
-78
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT 14 * NULLIF ( + COUNT( * ), COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7351
SELECT 14 * NULLIF ( + COUNT ( * ), COUNT ( * ) ) AS col0
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT DISTINCT COUNT( * ) * + - 77 * - 39 * COALESCE ( + COUNT( 17 ), - 91 )
----
3003

skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT COUNT ( * ) * + - 77 * - 39 * COALESCE ( + COUNT ( 17 ), - 91 )
----
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT - + COUNT( ALL + + 3 ) * + + 3 + - - 59
----
56

skipif mysql # not compatible
query I rowsort label-7355
SELECT - + COUNT ( ALL + + 3 ) * + + 3 + - - 59
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT ALL 27 * - 96 + COUNT( ALL + 16 )
----
-2591

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL 27 * - 96 + COUNT ( ALL + 16 )
----
-2591

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT - 67 + - ( MIN( ALL - - 39 ) ) - - 44
----
-62

skipif mysql # not compatible
query I rowsort label-7357
SELECT - 67 + - ( MIN ( ALL - - 39 ) ) - - 44
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT COUNT( - + 84 ) * - + 13 - - - 92 * - - 54 AS col0
----
-4981

skipif mysql # not compatible
query I rowsort label-7358
SELECT COUNT ( - + 84 ) * - + 13 - - - 92 * - - 54 AS col0
----
-4981

query II rowsort
SELECT + 73 AS col2, - 71 + - 62 + + 89 + - 43
----
73
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-7360
SELECT ALL + 35 + 16 * - NULLIF ( + COUNT( * ), - - AVG ( ALL + 21 ) + + 13 + 67 ) AS col1, + 6 * + 42 - - 71 * 23
----
19
1885

skipif mysql # not compatible
query II rowsort label-7360
SELECT ALL + 35 + 16 * - NULLIF ( + COUNT ( * ), - - AVG ( ALL + 21 ) + + 13 + 67 ) AS col1, + 6 * + 42 - - 71 * 23
----
19
1885

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT + NULLIF ( + - 23, - 0 * - + COUNT( DISTINCT + 24 ) * - COUNT( * ) ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-7362
SELECT + NULLIF ( + - 23, - 0 * - + COUNT ( DISTINCT + 24 ) * - COUNT ( * ) ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT ALL - SUM( DISTINCT - 53 ) + + 7 * - 73
----
-458

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL - SUM ( DISTINCT - 53 ) + + 7 * - 73
----
-458

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT + - 60 * + + ( - CASE - CASE - 51 WHEN + 47 THEN + CASE + - 26 WHEN - 81 - 67 - 89 THEN + ( - + 85 ) END - 37 ELSE + + 68 END WHEN + + 59 - + CASE COUNT( * ) WHEN 44 + ( - - 87 ) * + + 40 THEN 97 END THEN 79 WHEN - MAX( + 93 ) THEN + 11 * + 60 ELSE NULL END ) + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-7364
SELECT + - 60 * + + ( - CASE - CASE - 51 WHEN + 47 THEN + CASE + - 26 WHEN - 81 - 67 - 89 THEN + ( - + 85 ) END - 37 ELSE + + 68 END WHEN + + 59 - + CASE COUNT ( * ) WHEN 44 + ( - - 87 ) * + + 40 THEN 97 END THEN 79 WHEN - MAX ( + 93 ) THEN + 11 * + 60 ELSE NULL END ) + + 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7365
SELECT ALL 30 + - CASE - + COUNT( + + 49 ) WHEN + + NULLIF ( 4, - + COUNT( * ) ) THEN CAST( + - NULLIF ( - + COUNT( * ), + + 74 ) AS DECIMAL ) WHEN + 17 THEN 37 END / 4 + + + 3 * - 57 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7365
SELECT ALL 30 + - CASE - + COUNT ( + + 49 ) WHEN + + NULLIF ( 4, - + COUNT ( * ) ) THEN CAST ( + - NULLIF ( - + COUNT ( * ), + + 74 ) AS REAL ) WHEN + 17 THEN 37 END / 4 + + + 3 * - 57 * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7366
SELECT DISTINCT + 41 + - - 59 + + CAST( NULL AS DECIMAL ) - + ( - - 23 ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7366
SELECT DISTINCT + 41 + - - 59 + + CAST ( NULL AS REAL ) - + ( - - 23 ) * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7367
SELECT DISTINCT + 77 * - NULLIF ( - - MIN( DISTINCT + 86 ), - MIN( - 86 ) * + 57 * - CAST( 30 AS SIGNED ) ) * 52
----
-344344

skipif mysql # not compatible
query I rowsort label-7367
SELECT DISTINCT + 77 * - NULLIF ( - - MIN ( DISTINCT + 86 ), - MIN ( - 86 ) * + 57 * - CAST ( 30 AS INTEGER ) ) * 52
----
-344344

onlyif mysql # aggregate syntax: 
query II rowsort label-7368
SELECT DISTINCT + 61 + + - SUM( + 9 ) AS col2, 43 + + - COUNT( * )
----
52
42

skipif mysql # not compatible
query II rowsort label-7368
SELECT DISTINCT + 61 + + - SUM ( + 9 ) AS col2, 43 + + - COUNT ( * )
----
52
42

query I rowsort
SELECT 94 * + - ( - - 51 ) AS col2
----
-4794

onlyif mysql # DIV for integer division: 
query I rowsort label-7370
SELECT ALL 57 DIV - 26 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL 57 / - 26 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7371
SELECT COUNT( * ) DIV - - MIN( ALL - - 5 ), - 72 AS col0
----
0
-72

skipif mysql # not compatible
query II rowsort label-7371
SELECT COUNT ( * ) / - - MIN ( ALL - - 5 ), - 72 AS col0
----
0
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7372
SELECT ALL 42, + COUNT( + + 45 ) DIV + 73 AS col1
----
42
0

skipif mysql # not compatible
query II rowsort label-7372
SELECT ALL 42, + COUNT ( + + 45 ) / + 73 AS col1
----
42
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7373
SELECT ALL + + CAST( NULL AS SIGNED ) * CASE AVG ( DISTINCT - 62 ) WHEN - + 93 * 53 * - 10 / + - 72 THEN + 64 WHEN 71 * + + 80 * - + 7 THEN NULL ELSE 59 END + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL + + CAST ( NULL AS INTEGER ) * CASE AVG ( DISTINCT - 62 ) WHEN - + 93 * 53 * - 10 / + - 72 THEN + 64 WHEN 71 * + + 80 * - + 7 THEN NULL ELSE 59 END + 54
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7374
SELECT 47 DIV + COUNT( * ) + - - 74 AS col2, 85 DIV - 78
----
121
-1

skipif mysql # not compatible
query II rowsort label-7374
SELECT 47 / + COUNT ( * ) + - - 74 AS col2, 85 / - 78
----
121
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7375
SELECT 73 + + - 85 DIV NULLIF ( - 13, - + 17 * 68 )
----
79

skipif mysql # not compatible
query I rowsort label-7375
SELECT 73 + + - 85 / NULLIF ( - 13, - + 17 * 68 )
----
79

query I rowsort
SELECT ALL + 1 - 5
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7377
SELECT 82 * - - CAST( - - 79 AS SIGNED ) DIV + COUNT( * ), + 32 AS col0
----
6478
32

skipif mysql # not compatible
query II rowsort label-7377
SELECT 82 * - - CAST ( - - 79 AS INTEGER ) / + COUNT ( * ), + 32 AS col0
----
6478
32

onlyif mysql # DIV for integer division: 
query I rowsort label-7378
SELECT DISTINCT - 29 DIV + + 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7378
SELECT DISTINCT - 29 / + + 59 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7379
SELECT 98 - + 33 + 14 * + CASE + + 35 WHEN - - CASE - 30 WHEN - + 37 THEN - + 95 * + SUM( - 75 ) + + COALESCE ( - 14, + COALESCE ( - 44, CAST( NULL AS SIGNED ) ), 77 * - 17 + 64 ) END + + 13 THEN NULL WHEN + + 96 + + 58 THEN NULL ELSE 55 END AS col0
----
835

skipif mysql # not compatible
query I rowsort label-7379
SELECT 98 - + 33 + 14 * + CASE + + 35 WHEN - - CASE - 30 WHEN - + 37 THEN - + 95 * + SUM ( - 75 ) + + COALESCE ( - 14, + COALESCE ( - 44, CAST ( NULL AS INTEGER ) ), 77 * - 17 + 64 ) END + + 13 THEN NULL WHEN + + 96 + + 58 THEN NULL ELSE 55 END AS col0
----
835

onlyif mysql # DIV for integer division: 
query I rowsort label-7380
SELECT DISTINCT - 47 DIV ( - 72 ) * - - 93
----
0

skipif mysql # not compatible
query I rowsort label-7380
SELECT DISTINCT - 47 / ( - 72 ) * - - 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT DISTINCT NULLIF ( 13, AVG ( ALL + - 32 ) ) * COUNT( - 79 )
----
13

skipif mysql # not compatible
query I rowsort label-7381
SELECT DISTINCT NULLIF ( 13, AVG ( ALL + - 32 ) ) * COUNT ( - 79 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT ALL MIN( - 49 ) col1
----
-49

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL MIN ( - 49 ) col1
----
-49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7384
SELECT ALL COALESCE ( - 82, - - ( - - 18 ), 8 * 77 * + 52 DIV CASE 35 WHEN + 40 THEN - 25 END * 65 )
----
-82

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL COALESCE ( - 82, - - ( - - 18 ), 8 * 77 * + 52 / CASE 35 WHEN + 40 THEN - 25 END * 65 )
----
-82

query I rowsort
SELECT - 9 + - + 50 * - 7 * - 82 * + ( 47 ) AS col1
----
-1348909

query I rowsort
SELECT + 15 - + 31 * - 19 * 61 AS col1
----
35944

query I rowsort
SELECT ALL COALESCE ( - 56, + 60 + + 40 ) col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT - 90 * + COUNT( * ) + 1 * + 71 + - + 26 * + COUNT( * ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-7388
SELECT - 90 * + COUNT ( * ) + 1 * + 71 + - + 26 * + COUNT ( * ) AS col0
----
-45

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7390
SELECT - 3 * 45 AS col1, + MIN( ALL - - ( + 65 ) )
----
-135
65

skipif mysql # not compatible
query II rowsort label-7390
SELECT - 3 * 45 AS col1, + MIN ( ALL - - ( + 65 ) )
----
-135
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT ALL - 34 * + 23 + COUNT( * ) + 71 + 81 AS col1
----
-629

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL - 34 * + 23 + COUNT ( * ) + 71 + 81 AS col1
----
-629

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7392
SELECT DISTINCT - 74 * COUNT( DISTINCT - 56 ) * + ( - CAST( NULL AS DECIMAL ) ) + + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7392
SELECT DISTINCT - 74 * COUNT ( DISTINCT - 56 ) * + ( - CAST ( NULL AS REAL ) ) + + + 62
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7393
SELECT + 56 + - - 12 + + 79 * - ( - 24 ) * 89 * + - CAST( + - 53 AS SIGNED )
----
8943500

skipif mysql # not compatible
query I rowsort label-7393
SELECT + 56 + - - 12 + + 79 * - ( - 24 ) * 89 * + - CAST ( + - 53 AS INTEGER )
----
8943500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7394
SELECT ALL + 28 * 69 + - 39 * + ( + CAST( NULL AS SIGNED ) ) + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL + 28 * 69 + - 39 * + ( + CAST ( NULL AS INTEGER ) ) + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT ALL - 92 * 96 + + - COUNT( * ) AS col2
----
-8833

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL - 92 * 96 + + - COUNT ( * ) AS col2
----
-8833

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT 83 * 36 + + COUNT( * ) + 43
----
3032

skipif mysql # not compatible
query I rowsort label-7396
SELECT 83 * 36 + + COUNT ( * ) + 43
----
3032

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT - 36 * + + 56 + + + COALESCE ( + + 24, - COUNT( ALL - 78 ) )
----
-1992

skipif mysql # not compatible
query I rowsort label-7397
SELECT - 36 * + + 56 + + + COALESCE ( + + 24, - COUNT ( ALL - 78 ) )
----
-1992

query I rowsort
SELECT ALL 75 * - 55 AS col0
----
-4125

onlyif mysql # aggregate syntax: 
query II rowsort label-7399
SELECT ALL + 48 * + COUNT( * ) AS col0, 65 + 9 AS col1
----
48
74

skipif mysql # not compatible
query II rowsort label-7399
SELECT ALL + 48 * + COUNT ( * ) AS col0, 65 + 9 AS col1
----
48
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT + + COUNT( * ) + - 10 - - 3 + + - 29 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-7400
SELECT + + COUNT ( * ) + - 10 - - 3 + + - 29 AS col1
----
-35

query I rowsort
SELECT + 72 * + 67 + 69 * - + 85 * + - 5
----
34149

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7402
SELECT ALL - 79 * + - CAST( NULL AS DECIMAL ) * + + 47 - + 90 * + - 58 / - MAX( ALL 8 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL - 79 * + - CAST ( NULL AS REAL ) * + + 47 - + 90 * + - 58 / - MAX ( ALL 8 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 48 * - 60 - - + 59 + 97 AS col0
----
3036

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT - MAX( DISTINCT NULLIF ( + - 78, 27 * - 64 ) )
----
78

skipif mysql # not compatible
query I rowsort label-7404
SELECT - MAX ( DISTINCT NULLIF ( + - 78, 27 * - 64 ) )
----
78

query I rowsort
SELECT + 34 + - + 21 * 10
----
-176

query I rowsort
SELECT + 17 - - 42
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT - + 43 * - SUM( DISTINCT - + 60 )
----
-2580

skipif mysql # not compatible
query I rowsort label-7407
SELECT - + 43 * - SUM ( DISTINCT - + 60 )
----
-2580

onlyif mysql # aggregate syntax: 
query II rowsort label-7408
SELECT - 30 + - + 36 AS col1, + ( + + MAX( DISTINCT + 96 ) ) - - 14 + - 98 - + 33 + + COUNT( DISTINCT - 18 ) * + + COALESCE ( + - 11, - 94 * COUNT( * ) ) * + 94 AS col2
----
-66
-1055

skipif mysql # not compatible
query II rowsort label-7408
SELECT - 30 + - + 36 AS col1, + ( + + MAX ( DISTINCT + 96 ) ) - - 14 + - 98 - + 33 + + COUNT ( DISTINCT - 18 ) * + + COALESCE ( + - 11, - 94 * COUNT ( * ) ) * + 94 AS col2
----
-66
-1055

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

skipif mysql # not compatible
query I rowsort label-7409
SELECT + - COUNT ( * ) * 95 * - + 44 AS col2
----
4180

query I rowsort
SELECT + 52 * + 75 AS col1
----
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT ALL - COUNT( * ) * - 35 * + ( - + 9 )
----
-315

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL - COUNT ( * ) * - 35 * + ( - + 9 )
----
-315

query I rowsort
SELECT ALL CASE + + 32 WHEN - 48 * - - 52 - + 40 THEN - - 92 WHEN - 45 THEN NULL END
----
NULL

query I rowsort
SELECT + 16 * - 18 * - + 6
----
1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7414
SELECT ALL 27 * - 19 DIV COALESCE ( + + COUNT( * ), - - 12 * - 65, 89 )
----
-513

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL 27 * - 19 / COALESCE ( + + COUNT ( * ), - - 12 * - 65, 89 )
----
-513

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT DISTINCT MIN( DISTINCT + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-7415
SELECT DISTINCT MIN ( DISTINCT + 77 )
----
77

query II rowsort
SELECT 16 AS col0, - 16
----
16
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7417
SELECT - 15 + CAST( + AVG ( ALL + 58 ) AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-7417
SELECT - 15 + CAST ( + AVG ( ALL + 58 ) AS INTEGER )
----
43

query I rowsort
SELECT + 86 * - 25 * + 89 * + 66 AS col2
----
-12629100

query I rowsort
SELECT - 92 + + + 77
----
-15

query II rowsort
SELECT DISTINCT CASE - - 25 WHEN - 42 THEN NULL ELSE - 0 + - ( - + COALESCE ( - 9, - - NULLIF ( 62, 64 ) + + + 85 ) ) END AS col2, 80 AS col0
----
-9
80

query I rowsort
SELECT DISTINCT - 98 + 28
----
-70

query I rowsort
SELECT ALL + ( + - 12 ) + - - 74
----
62

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

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

query I rowsort
SELECT - 56 * - 38
----
2128

query I rowsort
SELECT - 73 + 3
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7426
SELECT DISTINCT + 46 DIV COUNT( * ) * - + 83 * + - 57 + + + COUNT( * ) AS col0
----
217627

skipif mysql # not compatible
query I rowsort label-7426
SELECT DISTINCT + 46 / COUNT ( * ) * - + 83 * + - 57 + + + COUNT ( * ) AS col0
----
217627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7427
SELECT ALL - CAST( NULL AS SIGNED ) / 61 + AVG ( - 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7427
SELECT ALL - CAST ( NULL AS INTEGER ) / 61 + AVG ( - 97 )
----
NULL

query I rowsort
SELECT - 20 - 29
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7429
SELECT AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) * - 5 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7429
SELECT AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 5 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 9 * NULLIF ( - 79, + 96 )
----
711

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7431
SELECT DISTINCT + COALESCE ( - 20, 7 DIV + COUNT( * ), 30 )
----
-20

skipif mysql # not compatible
query I rowsort label-7431
SELECT DISTINCT + COALESCE ( - 20, 7 / + COUNT ( * ), 30 )
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-7432
SELECT - 16 DIV 79 - + 68
----
-68

skipif mysql # not compatible
query I rowsort label-7432
SELECT - 16 / 79 - + 68
----
-68

query I rowsort
SELECT DISTINCT - 91 * 64
----
-5824

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7435
SELECT ALL COALESCE ( 96, - 10 ) DIV COUNT( * ) - + 17
----
79

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL COALESCE ( 96, - 10 ) / COUNT ( * ) - + 17
----
79

query I rowsort
SELECT - 66 * 85
----
-5610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7437
SELECT ALL - ( - 62 ) * CAST( + 20 AS SIGNED )
----
1240

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL - ( - 62 ) * CAST ( + 20 AS INTEGER )
----
1240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7438
SELECT - COALESCE ( 98, 71 - - CAST( - SUM( 85 ) AS SIGNED ), + ( 20 ) ) - - 81
----
-17

skipif mysql # not compatible
query I rowsort label-7438
SELECT - COALESCE ( 98, 71 - - CAST ( - SUM ( 85 ) AS INTEGER ), + ( 20 ) ) - - 81
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7439
SELECT DISTINCT - 91 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7439
SELECT DISTINCT - 91 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

query I rowsort
SELECT + ( + COALESCE ( + 93, 67 ) )
----
93

query I rowsort
SELECT + 52 * 31 + - 15 AS col2
----
1597

onlyif mysql # DIV for integer division: 
query I rowsort label-7443
SELECT + 88 DIV - 6 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-7443
SELECT + 88 / - 6 AS col2
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-7444
SELECT ALL 94 DIV 44 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL 94 / 44 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT - 0 * MIN( ALL 37 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7445
SELECT - 0 * MIN ( ALL 37 ) AS col2
----
0

query I rowsort
SELECT + 5 + 15 * - 89
----
-1330

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

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

query I rowsort
SELECT ALL - 47 * + 6
----
-282

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT DISTINCT SUM( ALL 91 )
----
91

skipif mysql # not compatible
query I rowsort label-7450
SELECT DISTINCT SUM ( ALL 91 )
----
91

query I rowsort
SELECT DISTINCT 93 * 85 col1
----
7905

query I rowsort
SELECT ALL 52 * - 64
----
-3328

query I rowsort
SELECT 88 - 47
----
41

query I rowsort
SELECT 27 * + 49
----
1323

query I rowsort
SELECT 98 + 61 AS col0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT ALL CASE - 27 WHEN 49 * 80 THEN + COUNT( * ) - 35 ELSE NULL END + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL CASE - 27 WHEN 49 * 80 THEN + COUNT ( * ) - 35 ELSE NULL END + 11 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7457
SELECT COALESCE ( + 6, 82 - CAST( + 59 AS SIGNED ) * CAST( - 34 AS SIGNED ) ) + 52
----
58

skipif mysql # not compatible
query I rowsort label-7457
SELECT COALESCE ( + 6, 82 - CAST ( + 59 AS INTEGER ) * CAST ( - 34 AS INTEGER ) ) + 52
----
58

query I rowsort
SELECT DISTINCT ( 56 ) + - 86
----
-30

query I rowsort
SELECT ALL 74 + - 57
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT ALL COALESCE ( + 43, + MIN( DISTINCT - 56 ) + 72 ) + MAX( ALL + 98 )
----
141

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL COALESCE ( + 43, + MIN ( DISTINCT - 56 ) + 72 ) + MAX ( ALL + 98 )
----
141

query I rowsort
SELECT ( 61 ) - 14 * 76
----
-1003

onlyif mysql # DIV for integer division: 
query I rowsort label-7462
SELECT ALL - 85 + + 53 DIV + 78 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL - 85 + + 53 / + 78 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT ( + COUNT( * ) ) + - 51 * 34
----
-1733

skipif mysql # not compatible
query I rowsort label-7463
SELECT ( + COUNT ( * ) ) + - 51 * 34
----
-1733

query I rowsort
SELECT + 74 - + 46 col0
----
28

query I rowsort
SELECT DISTINCT 78 * 98
----
7644

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7466
SELECT ALL + - 90 - - CAST( NULL AS DECIMAL ) * 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL + - 90 - - CAST ( NULL AS REAL ) * 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7467
SELECT 42 DIV - MIN( DISTINCT + 19 ) + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7467
SELECT 42 / - MIN ( DISTINCT + 19 ) + COUNT ( * )
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT + SUM( 22 ) + 66
----
88

skipif mysql # not compatible
query I rowsort label-7469
SELECT + SUM ( 22 ) + 66
----
88

query I rowsort
SELECT ALL + + 98 - 99
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7471
SELECT 33 DIV + 24
----
1

skipif mysql # not compatible
query I rowsort label-7471
SELECT 33 / + 24
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7472
SELECT - CAST( 90 AS SIGNED ) * - 92
----
8280

skipif mysql # not compatible
query I rowsort label-7472
SELECT - CAST ( 90 AS INTEGER ) * - 92
----
8280

query I rowsort
SELECT 64 + - 0
----
64

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

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

query I rowsort
SELECT - 77 * 86 + + 41 AS col1
----
-6581

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

skipif mysql # not compatible
query I rowsort label-7476
SELECT + MAX ( - 84 )
----
-84

query I rowsort
SELECT ALL - COALESCE ( 7, 89 + 64, 23 )
----
-7

query I rowsort
SELECT ALL - + 85 * + 66 AS col2
----
-5610

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

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL - MAX ( 22 )
----
-22

query I rowsort
SELECT DISTINCT - - 43 * 67 col1
----
2881

query I rowsort
SELECT DISTINCT - - NULLIF ( 95, 10 ) AS col1
----
95

query I rowsort
SELECT 79 * - 98 * 13 + - 48
----
-100694

onlyif mysql # DIV for integer division: 
query I rowsort label-7483
SELECT ALL - 43 + - + 86 + + 39 DIV + 6 AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL - 43 + - + 86 + + 39 / + 6 AS col0
----
-123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7484
SELECT 17 + - 73 + COALESCE ( SUM( + 21 ), 68, 3 * - MIN( 71 DIV + 7 ) + + 8 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-7484
SELECT 17 + - 73 + COALESCE ( SUM ( + 21 ), 68, 3 * - MIN ( 71 / + 7 ) + + 8 ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT 88 + + MAX( ALL 72 )
----
160

skipif mysql # not compatible
query I rowsort label-7485
SELECT 88 + + MAX ( ALL 72 )
----
160

query I rowsort
SELECT 7 * + 56 * 51 - 0 AS col0
----
19992

query I rowsort
SELECT ALL + 16 + + 8 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT DISTINCT COALESCE ( - - 74, - COUNT( * ) ) + - 44
----
30

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT COALESCE ( - - 74, - COUNT ( * ) ) + - 44
----
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT COUNT( * ) + 85 * COALESCE ( 55, NULLIF ( - 69, - SUM( ALL - 73 ) ) + - CASE MIN( 96 ) + - 78 WHEN 95 THEN + 19 + 36 * - 69 WHEN 34 * + 29 THEN 20 * 80 END, ( 63 ) ) AS col1
----
4676

skipif mysql # not compatible
query I rowsort label-7490
SELECT COUNT ( * ) + 85 * COALESCE ( 55, NULLIF ( - 69, - SUM ( ALL - 73 ) ) + - CASE MIN ( 96 ) + - 78 WHEN 95 THEN + 19 + 36 * - 69 WHEN 34 * + 29 THEN 20 * 80 END, ( 63 ) ) AS col1
----
4676

query I rowsort
SELECT DISTINCT + 99 + + 45 AS col0
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7492
SELECT NULLIF ( - + 85, + MAX( ALL + 57 ) / - NULLIF ( CAST( NULL AS SIGNED ) * - 62, + 96 ) + ( - 44 ) ) + 64 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-7492
SELECT NULLIF ( - + 85, + MAX ( ALL + 57 ) / - NULLIF ( CAST ( NULL AS INTEGER ) * - 62, + 96 ) + ( - 44 ) ) + 64 AS col2
----
-21

query I rowsort
SELECT 13 * 80 AS col2
----
1040

query I rowsort
SELECT 23 * + 96
----
2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7495
SELECT CAST( COUNT( + 21 ) AS SIGNED ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-7495
SELECT CAST ( COUNT ( + 21 ) AS INTEGER ) + COUNT ( * )
----
2

query I rowsort
SELECT ALL + 27 - + 8 col1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7497
SELECT 76 * - + CAST( - 88 AS SIGNED ) col2
----
6688

skipif mysql # not compatible
query I rowsort label-7497
SELECT 76 * - + CAST ( - 88 AS INTEGER ) col2
----
6688

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT ALL 41 - 15 + - MAX( DISTINCT - 29 ) * 94
----
2752

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL 41 - 15 + - MAX ( DISTINCT - 29 ) * 94
----
2752

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7500
SELECT ALL CASE + 48 WHEN CASE - CASE 67 WHEN MIN( + 81 ) THEN - ( 63 ) WHEN 70 / - 97 + MIN( DISTINCT 22 + 26 * - 6 ) THEN NULL ELSE NULL END WHEN - ( - 58 ) * 15 THEN 22 WHEN - ( ( CAST( 97 AS SIGNED ) ) ) THEN NULL ELSE + COUNT( * ) * - ( 29 ) END THEN NULL WHEN COALESCE ( + COALESCE ( NULLIF ( ( 98 ), 11 ), - 44 + - 98, - 51 ), 62 ) + 43 * 42 THEN NULL ELSE 35 + + 96 END * - 60 AS col1
----
-7860

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL CASE + 48 WHEN CASE - CASE 67 WHEN MIN ( + 81 ) THEN - ( 63 ) WHEN 70 / - 97 + MIN ( DISTINCT 22 + 26 * - 6 ) THEN NULL ELSE NULL END WHEN - ( - 58 ) * 15 THEN 22 WHEN - ( ( CAST ( 97 AS INTEGER ) ) ) THEN NULL ELSE + COUNT ( * ) * - ( 29 ) END THEN NULL WHEN COALESCE ( + COALESCE ( NULLIF ( ( 98 ), 11 ), - 44 + - 98, - 51 ), 62 ) + 43 * 42 THEN NULL ELSE 35 + + 96 END * - 60 AS col1
----
-7860

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT + 61 * - SUM( ALL - 55 ) + 9
----
3364

skipif mysql # not compatible
query I rowsort label-7501
SELECT + 61 * - SUM ( ALL - 55 ) + 9
----
3364

query I rowsort
SELECT ALL - 0 * - 10 AS col0
----
0

query I rowsort
SELECT 36 * - - 90 - + ( 39 ) col2
----
3201

query I rowsort
SELECT 68 + 88
----
156

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

skipif mysql # not compatible
query I rowsort label-7505
SELECT - 27 / COUNT ( * ) + - 96 AS col0
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7506
SELECT - + CAST( NULL AS SIGNED ) * COALESCE ( 40, 63, 5 ) * + COUNT( * ) + + 37 - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7506
SELECT - + CAST ( NULL AS INTEGER ) * COALESCE ( 40, 63, 5 ) * + COUNT ( * ) + + 37 - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7507
SELECT ALL + + CAST( 10 AS SIGNED ) DIV + 31
----
0

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL + + CAST ( 10 AS INTEGER ) / + 31
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7508
SELECT - + ( MAX( - 54 ) ) DIV - CAST( 11 AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-7508
SELECT - + ( MAX ( - 54 ) ) / - CAST ( 11 AS INTEGER )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT ALL + - NULLIF ( + 54, + COUNT( - ( COALESCE ( 1, + 99, 42 ) ) ) ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL + - NULLIF ( + 54, + COUNT ( - ( COALESCE ( 1, + 99, 42 ) ) ) ) AS col2
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7510
SELECT DISTINCT 42 DIV - - COUNT( - 11 )
----
42

skipif mysql # not compatible
query I rowsort label-7510
SELECT DISTINCT 42 / - - COUNT ( - 11 )
----
42

query I rowsort
SELECT ALL - ( + 99 ) * 78 + 25 col1
----
-7697

onlyif mysql # DIV for integer division: 
query I rowsort label-7512
SELECT 12 * + 68 + + 5 DIV + 54 AS col1
----
816

skipif mysql # not compatible
query I rowsort label-7512
SELECT 12 * + 68 + + 5 / + 54 AS col1
----
816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7513
SELECT - 87 * + - NULLIF ( - COUNT( * ), - CAST( + ( + 2 ) AS SIGNED ) )
----
-87

skipif mysql # not compatible
query I rowsort label-7513
SELECT - 87 * + - NULLIF ( - COUNT ( * ), - CAST ( + ( + 2 ) AS INTEGER ) )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT - 92 * CASE + + SUM( + 98 ) WHEN + 31 THEN - 26 * + 73 + + NULLIF ( + 40 + CASE 42 WHEN 86 THEN NULL WHEN + COUNT( * ) + 54 THEN NULL ELSE - 48 END, - 74 * + 65 ) WHEN + COUNT( * ) THEN NULL WHEN MIN( DISTINCT 57 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7514
SELECT - 92 * CASE + + SUM ( + 98 ) WHEN + 31 THEN - 26 * + 73 + + NULLIF ( + 40 + CASE 42 WHEN 86 THEN NULL WHEN + COUNT ( * ) + 54 THEN NULL ELSE - 48 END, - 74 * + 65 ) WHEN + COUNT ( * ) THEN NULL WHEN MIN ( DISTINCT 57 ) THEN NULL END
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL 69 + - - COUNT ( * ) AS col1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7517
SELECT ALL CASE WHEN NULL > COALESCE ( + NULLIF ( 39, 75 ), + 60 + - 7 / - 15, 7 / + CAST( NULL AS SIGNED ) ) THEN + 86 * 73 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7517
SELECT ALL CASE WHEN NULL > COALESCE ( + NULLIF ( 39, 75 ), + 60 + - 7 / - 15, 7 / + CAST ( NULL AS INTEGER ) ) THEN + 86 * 73 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7518
SELECT - 56 * 84 * 0 DIV 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7518
SELECT - 56 * 84 * 0 / 87 AS col1
----
0

query I rowsort
SELECT ALL + COALESCE ( - 72, + 56 - - 52 ) + + 88
----
16

query I rowsort
SELECT DISTINCT + 67 + - 44
----
23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT DISTINCT COALESCE ( + + COUNT( * ), 97 )
----
1

skipif mysql # not compatible
query I rowsort label-7522
SELECT DISTINCT COALESCE ( + + COUNT ( * ), 97 )
----
1

query I rowsort
SELECT - 21 + 10 * + 7 AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7524
SELECT - NULLIF ( + + COUNT( * ), CAST( - 72 AS SIGNED ) ) * - 2
----
2

skipif mysql # not compatible
query I rowsort label-7524
SELECT - NULLIF ( + + COUNT ( * ), CAST ( - 72 AS INTEGER ) ) * - 2
----
2

query I rowsort
SELECT ALL COALESCE ( - + 41, + 71 - - 17, - 72 - ( 23 ) )
----
-41

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

query I rowsort
SELECT - CASE CASE - 91 WHEN 26 THEN - 64 WHEN + 83 * 95 THEN NULL END WHEN + 6 THEN 89 * 69 WHEN 36 THEN + 57 - - ( 97 ) ELSE - 86 * 18 END * 52
----
80496

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7528
SELECT ALL COALESCE ( + 64, + - 86 - 71 DIV 41, 3 * CAST( NULL AS SIGNED ) ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL COALESCE ( + 64, + - 86 - 71 / 41, 3 * CAST ( NULL AS INTEGER ) ) AS col1
----
64

query I rowsort
SELECT - 67 - + - 80 - + 92 col1
----
-79

query I rowsort
SELECT ALL + 64 * - 20 + 6 AS col0
----
-1274

query I rowsort
SELECT - 9 + + 7
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7532
SELECT ALL - ( + + 82 ) * - 53 + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7532
SELECT ALL - ( + + 82 ) * - 53 + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT + + 84 * - - 63 AS col0
----
5292

query I rowsort
SELECT + + 26 + - 19 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT - - NULLIF ( + + 76, - COALESCE ( + 88, 85, 27 / COUNT( * ) ) ) * 5 AS col1
----
380

skipif mysql # not compatible
query I rowsort label-7535
SELECT - - NULLIF ( + + 76, - COALESCE ( + 88, 85, 27 / COUNT ( * ) ) ) * 5 AS col1
----
380

query I rowsort
SELECT + - 9 * 99 AS col0
----
-891

query I rowsort
SELECT ALL + 4 * + 20
----
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT + 58 - - COUNT( * )
----
59

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

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

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

query I rowsort
SELECT ALL + - ( + CASE + 87 WHEN 19 THEN + 29 * 14 END ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7542
SELECT ALL + 9 DIV + 15 + - + 74
----
-74

skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL + 9 / + 15 + - + 74
----
-74

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7544
SELECT ALL + + 19 DIV COUNT( * ) * 87 + 21
----
1674

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL + + 19 / COUNT ( * ) * 87 + 21
----
1674

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7546
SELECT DISTINCT - 66 / + CAST( - + 21 AS SIGNED ) + CASE + ( CASE + COUNT( * ) WHEN 79 THEN NULL WHEN - 2 THEN - 62 + 90 * SUM( DISTINCT 41 ) WHEN - 86 * + 10 + 13 THEN NULL END ) WHEN 62 THEN - 93 / - 17 END * 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT - 66 / + CAST ( - + 21 AS INTEGER ) + CASE + ( CASE + COUNT ( * ) WHEN 79 THEN NULL WHEN - 2 THEN - 62 + 90 * SUM ( DISTINCT 41 ) WHEN - 86 * + 10 + 13 THEN NULL END ) WHEN 62 THEN - 93 / - 17 END * 41 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7547
SELECT + - MIN( ALL 14 ) + - 87 - MAX( DISTINCT 69 ) * CAST( 50 AS SIGNED )
----
-3551

skipif mysql # not compatible
query I rowsort label-7547
SELECT + - MIN ( ALL 14 ) + - 87 - MAX ( DISTINCT 69 ) * CAST ( 50 AS INTEGER )
----
-3551

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT ALL - 51 * 51 + - COUNT( * ) + - 67 * 41
----
-5349

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL - 51 * 51 + - COUNT ( * ) + - 67 * 41
----
-5349

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT + - 94 * - COUNT( * ) + - + 60
----
34

skipif mysql # not compatible
query I rowsort label-7549
SELECT + - 94 * - COUNT ( * ) + - + 60
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-7550
SELECT + - 11, SUM( + 5 ) AS col0
----
-11
5

skipif mysql # not compatible
query II rowsort label-7550
SELECT + - 11, SUM ( + 5 ) AS col0
----
-11
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7551
SELECT 16 * CAST( NULL AS SIGNED ) + NULLIF ( - - 93, 22 ) / + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-7551
SELECT 16 * CAST ( NULL AS INTEGER ) + NULLIF ( - - 93, 22 ) / + 20
----
NULL

query I rowsort
SELECT + 87 + + - 71 AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-7553
SELECT - 93 DIV - 9
----
10

skipif mysql # not compatible
query I rowsort label-7553
SELECT - 93 / - 9
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT + 39 * + COUNT( * ) * - 41 AS col1
----
-1599

skipif mysql # not compatible
query I rowsort label-7554
SELECT + 39 * + COUNT ( * ) * - 41 AS col1
----
-1599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7555
SELECT ALL - CASE + + 47 WHEN + 63 THEN NULL WHEN + - 79 * CAST( - 52 AS SIGNED ) THEN - 4 * 63 WHEN 2 THEN 35 + - COUNT( DISTINCT ( 59 ) + ( - 93 ) ) END / + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL - CASE + + 47 WHEN + 63 THEN NULL WHEN + - 79 * CAST ( - 52 AS INTEGER ) THEN - 4 * 63 WHEN 2 THEN 35 + - COUNT ( DISTINCT ( 59 ) + ( - 93 ) ) END / + 97
----
NULL

query I rowsort
SELECT - 82 * + + 89 * - + 18 + 7
----
131371

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT + 45 * - MAX( ALL + 69 )
----
-3105

skipif mysql # not compatible
query I rowsort label-7557
SELECT + 45 * - MAX ( ALL + 69 )
----
-3105

onlyif mysql # DIV for integer division: 
query I rowsort label-7558
SELECT ALL 15 DIV - - 75
----
0

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL 15 / - - 75
----
0

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

skipif mysql # not compatible
query I rowsort label-7559
SELECT + 21 / COUNT ( * ) AS col2
----
21

query I rowsort
SELECT COALESCE ( + 27, 35, - 51 )
----
27

query I rowsort
SELECT - NULLIF ( - 16, - COALESCE ( + 70, + 77 + - 40 ) ) + + 55
----
71

query I rowsort
SELECT ALL + 81 * 3 * - ( - 64 )
----
15552

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

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

query I rowsort
SELECT DISTINCT + 63 * - 31
----
-1953

query I rowsort
SELECT - CASE - - 40 WHEN + ( - NULLIF ( - ( 1 ), - 9 * 72 ) ) THEN NULL WHEN 46 * 58 THEN - 68 END + 65 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT - COUNT( * ) + - - 43 + + + 56 * 47 AS col1
----
2674

skipif mysql # not compatible
query I rowsort label-7566
SELECT - COUNT ( * ) + - - 43 + + + 56 * 47 AS col1
----
2674

query I rowsort
SELECT DISTINCT + CASE + ( + 39 ) WHEN - 17 - + 87 THEN - 46 END * 1
----
NULL

query I rowsort
SELECT - - 55 + - 42 * 88 * + 53
----
-195833

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT - NULLIF ( - 49, + 28 ) * - + 35 * COUNT( * ) AS col1
----
-1715

skipif mysql # not compatible
query I rowsort label-7569
SELECT - NULLIF ( - 49, + 28 ) * - + 35 * COUNT ( * ) AS col1
----
-1715

query II rowsort
SELECT - 73 * + 77, + 84 * + 11 AS col2
----
-5621
924

query I rowsort
SELECT - COALESCE ( 45, - 8 * + - ( 8 ) ) + 46 * 10 AS col2
----
415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7572
SELECT ALL - - 78 DIV 94 - - - COALESCE ( COUNT( * ), - NULLIF ( - COALESCE ( + 53, - 71, 42 ), CAST( + ( + 4 ) AS SIGNED ) ) + + 4 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL - - 78 / 94 - - - COALESCE ( COUNT ( * ), - NULLIF ( - COALESCE ( + 53, - 71, 42 ), CAST ( + ( + 4 ) AS INTEGER ) ) + + 4 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7573
SELECT - + CASE 8 WHEN - 55 THEN NULL ELSE 15 * COALESCE ( 16, + 19, + 90 * + COALESCE ( - 27 * - NULLIF ( 78, COUNT( DISTINCT ( 16 ) ) - - ( CASE 28 WHEN 41 * - 32 THEN + 41 ELSE NULL END + 81 ) ), CAST( NULL AS SIGNED ) ) ) + COUNT( * ) / CAST( NULL AS SIGNED ) END / 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7573
SELECT - + CASE 8 WHEN - 55 THEN NULL ELSE 15 * COALESCE ( 16, + 19, + 90 * + COALESCE ( - 27 * - NULLIF ( 78, COUNT ( DISTINCT ( 16 ) ) - - ( CASE 28 WHEN 41 * - 32 THEN + 41 ELSE NULL END + 81 ) ), CAST ( NULL AS INTEGER ) ) ) + COUNT ( * ) / CAST ( NULL AS INTEGER ) END / 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT ALL + + MAX( - + 60 ) + 40
----
-20

skipif mysql # not compatible
query I rowsort label-7574
SELECT ALL + + MAX ( - + 60 ) + 40
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT DISTINCT + + ( - - COALESCE ( - - COUNT( * ), - - ( 90 ) * 44 ) ) + + CASE - 49 - 6 WHEN NULLIF ( - 14, - COUNT( DISTINCT - 42 ) * 15 - 36 ) THEN NULL WHEN ( 44 ) THEN + 58 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT + + ( - - COALESCE ( - - COUNT ( * ), - - ( 90 ) * 44 ) ) + + CASE - 49 - 6 WHEN NULLIF ( - 14, - COUNT ( DISTINCT - 42 ) * 15 - 36 ) THEN NULL WHEN ( 44 ) THEN + 58 ELSE NULL END
----
NULL

query I rowsort
SELECT 85 + + 50
----
135

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7578
SELECT CAST( NULL AS SIGNED ) * + 76 * + 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7578
SELECT CAST ( NULL AS INTEGER ) * + 76 * + 80 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7579
SELECT 64 DIV + MIN( DISTINCT - 32 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7579
SELECT 64 / + MIN ( DISTINCT - 32 ) AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7580
SELECT - + ( 45 ) DIV - + COALESCE ( - - 85, + SUM( DISTINCT - 84 ) ) + + 82
----
82

skipif mysql # not compatible
query I rowsort label-7580
SELECT - + ( 45 ) / - + COALESCE ( - - 85, + SUM ( DISTINCT - 84 ) ) + + 82
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7581
SELECT + 81 + - COALESCE ( + COUNT( * ), + 12, + 88 + - 40 ) + - 40 DIV COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-7581
SELECT + 81 + - COALESCE ( + COUNT ( * ), + 12, + 88 + - 40 ) + - 40 / COUNT ( * )
----
40

query II rowsort
SELECT ALL - 88 col0, - 69 col0
----
-88
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7583
SELECT DISTINCT - NULLIF ( + + 8, + 82 / + + 85 - + - 52 ) - CAST( COUNT( * ) AS SIGNED ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT - NULLIF ( + + 8, + 82 / + + 85 - + - 52 ) - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-9

query I rowsort
SELECT 30 * + 60 - + + ( - 55 ) + + 50 * 16 AS col1
----
2655

query II rowsort
SELECT + 63 AS col0, 26
----
63
26

query I rowsort
SELECT DISTINCT 74 * + - 60
----
-4440

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT 26 * - SUM( ALL 12 ) AS col2
----
-312

skipif mysql # not compatible
query I rowsort label-7587
SELECT 26 * - SUM ( ALL 12 ) AS col2
----
-312

query I rowsort
SELECT 61 * + 87
----
5307

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT ALL 9 - + 84 * - - MAX( DISTINCT COALESCE ( - 42, - CASE 47 WHEN 32 + - 55 THEN - 65 * 5 ELSE - CASE 48 WHEN + 41 THEN 44 END * 98 END * - 77 ) )
----
3537

skipif mysql # not compatible
query I rowsort label-7589
SELECT ALL 9 - + 84 * - - MAX ( DISTINCT COALESCE ( - 42, - CASE 47 WHEN 32 + - 55 THEN - 65 * 5 ELSE - CASE 48 WHEN + 41 THEN 44 END * 98 END * - 77 ) )
----
3537

query II rowsort
SELECT ALL - 22 AS col2, 10 + + - 8 AS col1
----
-22
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT ALL MIN( - + COALESCE ( 34, + - CASE - - 65 WHEN ( ( ( + 40 ) ) ) THEN - 84 WHEN 99 THEN 53 * - 77 END, 2 ) ) * 18 AS col2
----
-612

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL MIN ( - + COALESCE ( 34, + - CASE - - 65 WHEN ( ( ( + 40 ) ) ) THEN - 84 WHEN 99 THEN 53 * - 77 END, 2 ) ) * 18 AS col2
----
-612

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

skipif mysql # not compatible
query I rowsort label-7592
SELECT DISTINCT - COUNT ( * ) / - 91
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7593
SELECT DISTINCT 90, + SUM( DISTINCT + CAST( + - 23 AS SIGNED ) ) col0
----
90
-23

skipif mysql # not compatible
query II rowsort label-7593
SELECT DISTINCT 90, + SUM ( DISTINCT + CAST ( + - 23 AS INTEGER ) ) col0
----
90
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7594
SELECT - 0 DIV - 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7594
SELECT - 0 / - 61 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT - CASE + + 91 WHEN + 52 / - 46 THEN 41 - ( + 47 ) WHEN 99 + COUNT( * ) THEN NULL ELSE COUNT( * ) * COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-7595
SELECT - CASE + + 91 WHEN + 52 / - 46 THEN 41 - ( + 47 ) WHEN 99 + COUNT ( * ) THEN NULL ELSE COUNT ( * ) * COUNT ( * ) END
----
-1

query I rowsort
SELECT - 57 + - 96
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT + MIN( DISTINCT + + 48 ) + 52 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-7597
SELECT + MIN ( DISTINCT + + 48 ) + 52 AS col0
----
100

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

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL + COUNT ( * ) + 63 AS col0
----
64

query I rowsort
SELECT DISTINCT 58 + - 74
----
-16

query I rowsort
SELECT - ( + 7 ) + - 69 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT DISTINCT - MAX( ALL + + 26 ) + 97 + + 25
----
96

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT - MAX ( ALL + + 26 ) + 97 + + 25
----
96

query I rowsort
SELECT - 73 + + 34
----
-39

query I rowsort
SELECT 92 * - 83 * + ( ( - CASE + 37 WHEN 1 THEN - 91 + - 14 * - 14 END ) ) * + CASE 10 WHEN - 21 THEN NULL WHEN 3 + - 63 THEN + 15 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT - SUM( ALL - 18 ) col2
----
18

skipif mysql # not compatible
query I rowsort label-7604
SELECT - SUM ( ALL - 18 ) col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT - ( - 84 ) + + COALESCE ( - 15, - - ( + COUNT( * ) ) )
----
69

skipif mysql # not compatible
query I rowsort label-7605
SELECT - ( - 84 ) + + COALESCE ( - 15, - - ( + COUNT ( * ) ) )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT ALL - ( MIN( - + 78 ) ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-7606
SELECT ALL - ( MIN ( - + 78 ) ) AS col0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7607
SELECT CAST( - - 8 AS SIGNED ) col0
----
8

skipif mysql # not compatible
query I rowsort label-7607
SELECT CAST ( - - 8 AS INTEGER ) col0
----
8

query I rowsort
SELECT ALL - ( 80 ) - + 45 AS col1
----
-125

query II rowsort
SELECT + 98, 31 * + 23 col1
----
98
713

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT 36 + 0 + + ( + - COUNT( * ) )
----
35

skipif mysql # not compatible
query I rowsort label-7610
SELECT 36 + 0 + + ( + - COUNT ( * ) )
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-7611
SELECT + 52, 5 + + COUNT( * ) - + - 58 col0
----
52
64

skipif mysql # not compatible
query II rowsort label-7611
SELECT + 52, 5 + + COUNT ( * ) - + - 58 col0
----
52
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT ALL + MIN( ALL + + 65 ) * - + 57 - - - 87
----
-3792

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL + MIN ( ALL + + 65 ) * - + 57 - - - 87
----
-3792

onlyif mysql # DIV for integer division: 
query I rowsort label-7613
SELECT 26 DIV + 20 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7613
SELECT 26 / + 20 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7614
SELECT COUNT( ALL - 40 ) DIV 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7614
SELECT COUNT ( ALL - 40 ) / 81 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7615
SELECT SUM( ALL 17 ) col2, COUNT( * ) * 37 - + 33 AS col2
----
17
4

skipif mysql # not compatible
query II rowsort label-7615
SELECT SUM ( ALL 17 ) col2, COUNT ( * ) * 37 - + 33 AS col2
----
17
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7616
SELECT 71 * + - 24 AS col0, COUNT( * ) + ( + 55 ) * - + ( + 34 ) AS col0
----
-1704
-1869

skipif mysql # not compatible
query II rowsort label-7616
SELECT 71 * + - 24 AS col0, COUNT ( * ) + ( + 55 ) * - + ( + 34 ) AS col0
----
-1704
-1869

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7617
SELECT ALL - 6 AS col1, 64 * + - COUNT( * ) * - + 22 - 98 + + 21 + 43 DIV + 28 AS col1
----
-6
1332

skipif mysql # not compatible
query II rowsort label-7617
SELECT ALL - 6 AS col1, 64 * + - COUNT ( * ) * - + 22 - 98 + + 21 + 43 / + 28 AS col1
----
-6
1332

query I rowsort
SELECT 42 + + CASE - + 21 WHEN - 18 - + - 18 - ( - 0 ) THEN ( - 75 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7619
SELECT ALL - ( + 53 ) * + NULLIF ( COUNT( * ), + 18 + - CAST( NULL AS SIGNED ) ) - 98 * + 17
----
-1719

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL - ( + 53 ) * + NULLIF ( COUNT ( * ), + 18 + - CAST ( NULL AS INTEGER ) ) - 98 * + 17
----
-1719

onlyif mysql # aggregate syntax: 
query II rowsort label-7620
SELECT ALL - 22 AS col1, COUNT( + - COALESCE ( 47, + 37 ) )
----
-22
1

skipif mysql # not compatible
query II rowsort label-7620
SELECT ALL - 22 AS col1, COUNT ( + - COALESCE ( 47, + 37 ) )
----
-22
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT SUM( ALL + + 9 ) + - - 33 / - 66 * + - CASE 89 WHEN + 66 THEN + 67 / + 8 + - 63 * 16 ELSE NULL END * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7621
SELECT SUM ( ALL + + 9 ) + - - 33 / - 66 * + - CASE 89 WHEN + 66 THEN + 67 / + 8 + - 63 * 16 ELSE NULL END * + 93
----
NULL

query I rowsort
SELECT 61 * - 91 AS col0
----
-5551

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7623
SELECT MAX( ALL - - 50 ) * - 91 + + 23 * + + 29 * + 40 + 97 DIV COUNT( * )
----
22227

skipif mysql # not compatible
query I rowsort label-7623
SELECT MAX ( ALL - - 50 ) * - 91 + + 23 * + + 29 * + 40 + 97 / COUNT ( * )
----
22227

query II rowsort
SELECT ALL 55 * + 4 AS col2, + 78
----
220
78

query I rowsort
SELECT ALL + 91 + 20
----
111

query II rowsort
SELECT 34 AS col1, 79 AS col1
----
34
79

query I rowsort
SELECT 57 * 26
----
1482

query I rowsort
SELECT ALL 19 * 17
----
323

query I rowsort
SELECT ALL - ( + 97 ) * - - 98 + NULLIF ( + - 70, + 60 / 74 - 20 * + 3 ) * 76 AS col0
----
-14826

onlyif mysql # DIV for integer division: 
query I rowsort label-7630
SELECT + 55 DIV - - 78
----
0

skipif mysql # not compatible
query I rowsort label-7630
SELECT + 55 / - - 78
----
0

query I rowsort
SELECT DISTINCT - 14 + + - 5 AS col1
----
-19

query I rowsort
SELECT + 91 * + 41
----
3731

onlyif mysql # DIV for integer division: 
query I rowsort label-7633
SELECT ALL + - 11 DIV 75 * + - 95 + 44 col2
----
44

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL + - 11 / 75 * + - 95 + 44 col2
----
44

query II rowsort
SELECT - 86 AS col0, 58 AS col2
----
-86
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7635
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col2, + 47 * MAX( - 81 ) * - + 65 AS col0
----
NULL
247455

skipif mysql # not compatible
query II rowsort label-7635
SELECT DISTINCT + CAST ( NULL AS REAL ) col2, + 47 * MAX ( - 81 ) * - + 65 AS col0
----
NULL
247455

query I rowsort
SELECT ALL 74 + - 2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT + - COUNT( * ) - + + NULLIF ( + + 64, 73 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-7637
SELECT + - COUNT ( * ) - + + NULLIF ( + + 64, 73 ) AS col0
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7638
SELECT + + 51 DIV - MAX( - 3 ) - 66 - + + 12 + - MIN( + 20 ) + 4 * 30 * 44 AS col1
----
5199

skipif mysql # not compatible
query I rowsort label-7638
SELECT + + 51 / - MAX ( - 3 ) - 66 - + + 12 + - MIN ( + 20 ) + 4 * 30 * 44 AS col1
----
5199

query I rowsort
SELECT - + 46 * + 74 AS col2
----
-3404

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7640
SELECT ALL + 40 DIV 39 + + CAST( - 45 AS SIGNED ) AS col1, 71 + - - 61 AS col2
----
-44
132

skipif mysql # not compatible
query II rowsort label-7640
SELECT ALL + 40 / 39 + + CAST ( - 45 AS INTEGER ) AS col1, 71 + - - 61 AS col2
----
-44
132

query I rowsort
SELECT - - 71 + - 29
----
42

query II rowsort
SELECT - + 94 AS col0, 42 AS col1
----
-94
42

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7643
SELECT 77 AS col0, CAST( NULL AS DECIMAL ) - + 99 AS col2
----
77
NULL

skipif mysql # not compatible
query II rowsort label-7643
SELECT 77 AS col0, CAST ( NULL AS REAL ) - + 99 AS col2
----
77
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7644
SELECT ALL + MIN( 71 ) - 36 - - 58 DIV - + MIN( DISTINCT - - 51 ) + - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-7644
SELECT ALL + MIN ( 71 ) - 36 - - 58 / - + MIN ( DISTINCT - - 51 ) + - COUNT ( * )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7645
SELECT - + 40 AS col0, 83 * + - 15 + + ( - CAST( NULL AS SIGNED ) ) + - AVG ( 55 ) / COALESCE ( 35 + + MIN( ALL - 17 ), 32, + 83 ) AS col2
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-7645
SELECT - + 40 AS col0, 83 * + - 15 + + ( - CAST ( NULL AS INTEGER ) ) + - AVG ( 55 ) / COALESCE ( 35 + + MIN ( ALL - 17 ), 32, + 83 ) AS col2
----
-40
NULL

query I rowsort
SELECT ALL - 16 * + - 87 AS col1
----
1392

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT + NULLIF ( - - COALESCE ( 44, 43 + - - COUNT( * ), - 53 ), 89 ) * 41 AS col2
----
1804

skipif mysql # not compatible
query I rowsort label-7647
SELECT + NULLIF ( - - COALESCE ( 44, 43 + - - COUNT ( * ), - 53 ), 89 ) * 41 AS col2
----
1804

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT ALL 77 * + CASE + 25 WHEN + 80 THEN - - 98 WHEN + - 56 * 25 THEN + COALESCE ( 7, COUNT( * ) ) * ( - 18 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL 77 * + CASE + 25 WHEN + 80 THEN - - 98 WHEN + - 56 * 25 THEN + COALESCE ( 7, COUNT ( * ) ) * ( - 18 ) END col1
----
NULL

query I rowsort
SELECT + 4 * - 56 * - 32 AS col2
----
7168

query II rowsort
SELECT - 10 * + 95, - 92 col2
----
-950
-92

query II rowsort
SELECT ( - 76 ) col0, - 49 * + 4 AS col0
----
-76
-196

query II rowsort
SELECT ( 34 ) AS col1, + 16 AS col2
----
34
16

query I rowsort
SELECT - 74 * - + 47 AS col1
----
3478

onlyif mysql # DIV for integer division: 
query I rowsort label-7654
SELECT ALL + 22 DIV + 36 * - + 8
----
0

skipif mysql # not compatible
query I rowsort label-7654
SELECT ALL + 22 / + 36 * - + 8
----
0

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

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

query I rowsort
SELECT DISTINCT + 4 * - 87 AS col0
----
-348

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7658
SELECT DISTINCT ( 76 ) * 8 * + 16 * COUNT( * ) * + CAST( - 92 AS SIGNED ) + 79 col0
----
-894897

skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT ( 76 ) * 8 * + 16 * COUNT ( * ) * + CAST ( - 92 AS INTEGER ) + 79 col0
----
-894897

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

skipif mysql # not compatible
query I rowsort label-7659
SELECT + 14 * COUNT ( ALL + - 10 ) AS col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7660
SELECT NULLIF ( + + 63, CAST( SUM( DISTINCT - 43 ) AS SIGNED ) * CAST( + ( - 56 ) AS SIGNED ) )
----
63

skipif mysql # not compatible
query I rowsort label-7660
SELECT NULLIF ( + + 63, CAST ( SUM ( DISTINCT - 43 ) AS INTEGER ) * CAST ( + ( - 56 ) AS INTEGER ) )
----
63

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

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

query I rowsort
SELECT 23 * - + NULLIF ( 51, ( 3 ) * + 39 ) - - 69 AS col1
----
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT COALESCE ( - - 99, + COUNT( * ) ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-7663
SELECT COALESCE ( - - 99, + COUNT ( * ) ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT - COALESCE ( + ( + COUNT( * ) ), - COUNT( * ) ) * + 73 * - 75
----
5475

skipif mysql # not compatible
query I rowsort label-7664
SELECT - COALESCE ( + ( + COUNT ( * ) ), - COUNT ( * ) ) * + 73 * - 75
----
5475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7665
SELECT ALL 88 * 31 DIV + CASE 33 WHEN + 20 THEN NULL WHEN - 54 THEN NULL ELSE 96 END + MAX( DISTINCT 94 )
----
122

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL 88 * 31 / + CASE 33 WHEN + 20 THEN NULL WHEN - 54 THEN NULL ELSE 96 END + MAX ( DISTINCT 94 )
----
122

query I rowsort
SELECT - 84 * - + ( + 73 ) AS col1
----
6132

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

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL + ( - - ( COUNT ( * ) ) ) * COUNT ( * ) + - 8 / + COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT - 48 - NULLIF ( + 16, + 78 ) - + ( - COUNT( DISTINCT + 93 ) ) + - 32 * 55 AS col2
----
-1823

skipif mysql # not compatible
query I rowsort label-7668
SELECT - 48 - NULLIF ( + 16, + 78 ) - + ( - COUNT ( DISTINCT + 93 ) ) + - 32 * 55 AS col2
----
-1823

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT DISTINCT + ( - CASE 17 WHEN + NULLIF ( + 54, + MIN( ALL - 16 ) ) * + 34 THEN 79 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT + ( - CASE 17 WHEN + NULLIF ( + 54, + MIN ( ALL - 16 ) ) * + 34 THEN 79 END )
----
NULL

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

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

query I rowsort
SELECT + 9 * 69 + 53 + - 32
----
642

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT ALL + NULLIF ( - + 61, - MAX( - ( - - 97 ) ) + 98 ) * - 55 + 26 * - COALESCE ( ( 2 ), + 42 * - 21 + 50 )
----
3303

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL + NULLIF ( - + 61, - MAX ( - ( - - 97 ) ) + 98 ) * - 55 + 26 * - COALESCE ( ( 2 ), + 42 * - 21 + 50 )
----
3303

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7673
SELECT + + CAST( NULL AS DECIMAL ) * 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7673
SELECT + + CAST ( NULL AS REAL ) * 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT - - COUNT( + 60 ) + 77
----
78

skipif mysql # not compatible
query I rowsort label-7674
SELECT - - COUNT ( + 60 ) + 77
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7675
SELECT ALL + CAST( NULL AS SIGNED ) * 96 * 91 + + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL + CAST ( NULL AS INTEGER ) * 96 * 91 + + - 6
----
NULL

query I rowsort
SELECT - + 5 + 37 + 85 + 60
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT + ( - COALESCE ( - 39, 97 ) ) * - + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-7677
SELECT + ( - COALESCE ( - 39, 97 ) ) * - + COUNT ( * )
----
-39

query II rowsort
SELECT + 69 + 98 AS col1, + 87
----
167
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT ALL COUNT( * ) - + 41 - + 39 * - - 67
----
-2653

skipif mysql # not compatible
query I rowsort label-7679
SELECT ALL COUNT ( * ) - + 41 - + 39 * - - 67
----
-2653

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

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL - MIN ( 34 )
----
-34

query I rowsort
SELECT ALL + + 25 * - - 76
----
1900

query I rowsort
SELECT + 91 + + 36 + + 40 AS col1
----
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7683
SELECT + - 23 * + + CASE - + 58 WHEN + CAST( NULL AS SIGNED ) THEN - MIN( DISTINCT 3 ) / + 98 * - ( - 99 / 63 ) ELSE NULL END * + 90 + + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7683
SELECT + - 23 * + + CASE - + 58 WHEN + CAST ( NULL AS INTEGER ) THEN - MIN ( DISTINCT 3 ) / + 98 * - ( - 99 / 63 ) ELSE NULL END * + 90 + + 35 AS col1
----
NULL

query I rowsort
SELECT + - 90 + + 3
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT + COUNT( + + 80 ) * 12 + - 41 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-7685
SELECT + COUNT ( + + 80 ) * 12 + - 41 AS col2
----
-29

query I rowsort
SELECT + 57 * + 13
----
741

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT - 63 + + + CASE + 87 WHEN 34 THEN + + NULLIF ( + COALESCE ( - 85, - MIN( 42 ) * 41 ), - ( 43 ) * + ( 18 * + 98 ) ) WHEN 12 THEN - 65 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7687
SELECT - 63 + + + CASE + 87 WHEN 34 THEN + + NULLIF ( + COALESCE ( - 85, - MIN ( 42 ) * 41 ), - ( 43 ) * + ( 18 * + 98 ) ) WHEN 12 THEN - 65 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7688
SELECT DISTINCT 54 AS col2, 68 DIV + 34 AS col1
----
54
2

skipif mysql # not compatible
query II rowsort label-7688
SELECT DISTINCT 54 AS col2, 68 / + 34 AS col1
----
54
2

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

skipif mysql # not compatible
query II rowsort label-7689
SELECT ALL COUNT ( * ), 97 AS col1
----
1
97

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

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

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

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

query II rowsort
SELECT ALL + 87 AS col1, + 64 * 93
----
87
5952

onlyif mysql # DIV for integer division: 
query II rowsort label-7693
SELECT DISTINCT - 51 DIV + - 39 + + - 64 + - - 93, 87 AS col1
----
30
87

skipif mysql # not compatible
query II rowsort label-7693
SELECT DISTINCT - 51 / + - 39 + + - 64 + - - 93, 87 AS col1
----
30
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT + COUNT( * ) + - 70 + + 98
----
29

skipif mysql # not compatible
query I rowsort label-7695
SELECT + COUNT ( * ) + - 70 + + 98
----
29

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

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

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

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

query I rowsort
SELECT - 14 - + 79
----
-93

query I rowsort
SELECT - 90 * + 32 * - 5 col0
----
14400

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT ALL - COUNT( * ) + - CASE + ( - - 77 ) WHEN + - ( 37 ) THEN - - COUNT( * ) WHEN - 1 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL - COUNT ( * ) + - CASE + ( - - 77 ) WHEN + - ( 37 ) THEN - - COUNT ( * ) WHEN - 1 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7702
SELECT 83 + - + 23 DIV COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-7702
SELECT 83 + - + 23 / COUNT ( * )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7703
SELECT ALL - NULLIF ( + CAST( NULL AS SIGNED ), + 31 * + 70 * - 27 + 73 + 29 * + - 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL - NULLIF ( + CAST ( NULL AS INTEGER ), + 31 * + 70 * - 27 + 73 + 29 * + - 19 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7704
SELECT + COUNT( * ), 88 * - - 85 - - + 25 AS col1
----
1
7505

skipif mysql # not compatible
query II rowsort label-7704
SELECT + COUNT ( * ), 88 * - - 85 - - + 25 AS col1
----
1
7505

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7705
SELECT DISTINCT + - 2 DIV - 93 DIV + COUNT( * ) + + 33
----
33

skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT + - 2 / - 93 / + COUNT ( * ) + + 33
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7706
SELECT ALL - - 40 - + ( - COUNT( * ) ), + 36 AS col0
----
41
36

skipif mysql # not compatible
query II rowsort label-7706
SELECT ALL - - 40 - + ( - COUNT ( * ) ), + 36 AS col0
----
41
36

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7708
SELECT 21 + + + 73 DIV 59 DIV - 79 * + 51 * + 36 + 42 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-7708
SELECT 21 + + + 73 / 59 / - 79 * + 51 * + 36 + 42 AS col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7709
SELECT 8 DIV COUNT( * ) + + 45, 42 AS col1, + + 72 AS col1
----
53
42
72

skipif mysql # not compatible
query III rowsort label-7709
SELECT 8 / COUNT ( * ) + + 45, 42 AS col1, + + 72 AS col1
----
53
42
72

query I rowsort
SELECT - 82 * - 40 AS col2
----
3280

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT - 0 * - 52 - + ( COUNT( DISTINCT - 36 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7711
SELECT - 0 * - 52 - + ( COUNT ( DISTINCT - 36 ) )
----
-1

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

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

query I rowsort
SELECT DISTINCT + + 98 * + - 33
----
-3234

query I rowsort
SELECT DISTINCT - + 35 * + + 68 AS col0
----
-2380

query I rowsort
SELECT 77 * - - 24 AS col2
----
1848

query II rowsort
SELECT 75 AS col2, 24 AS col2
----
75
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT SUM( - 36 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-7717
SELECT SUM ( - 36 ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-7718
SELECT ALL COUNT( * ) col1, + 82 * ( + 57 ) col2
----
1
4674

skipif mysql # not compatible
query II rowsort label-7718
SELECT ALL COUNT ( * ) col1, + 82 * ( + 57 ) col2
----
1
4674

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT COUNT( * ) * + + COUNT( * ) * + + SUM( DISTINCT - 18 ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-7719
SELECT COUNT ( * ) * + + COUNT ( * ) * + + SUM ( DISTINCT - 18 ) col0
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7720
SELECT DISTINCT + 49 DIV COUNT( * ) * - ( + COUNT( * ) ) * 19 AS col1, MAX( - 90 ) col2
----
-931
-90

skipif mysql # not compatible
query II rowsort label-7720
SELECT DISTINCT + 49 / COUNT ( * ) * - ( + COUNT ( * ) ) * 19 AS col1, MAX ( - 90 ) col2
----
-931
-90

query II rowsort
SELECT ALL 45 * + 31 AS col1, 14
----
1395
14

query I rowsort
SELECT ALL - COALESCE ( - 66, - 94 ) * - 23
----
-1518

query I rowsort
SELECT DISTINCT + 77 + + 69 AS col2
----
146

query I rowsort
SELECT DISTINCT - ( 83 ) + - 36 + + + 32 AS col1
----
-87

query I rowsort
SELECT ALL 39 + - + 29 + - + 41 + 69 + + - 36 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT DISTINCT + 59 + + - COUNT( * ) + + + 24
----
82

skipif mysql # not compatible
query I rowsort label-7726
SELECT DISTINCT + 59 + + - COUNT ( * ) + + + 24
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7727
SELECT 77 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-7727
SELECT 77 / 86
----
0

query I rowsort
SELECT 96 * - - 33 * + 46
----
145728

query I rowsort
SELECT DISTINCT 38 + + ( - + 7 )
----
31

query I rowsort
SELECT DISTINCT 97 + + 96 * - 37
----
-3455

onlyif mysql # DIV for integer division: 
query I rowsort label-7731
SELECT DISTINCT - 87 DIV - 24
----
3

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT - 87 / - 24
----
3

query I rowsort
SELECT DISTINCT 2 + - 91
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT DISTINCT 61 - - - COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-7733
SELECT DISTINCT 61 - - - COUNT ( * ) AS col1
----
60

query I rowsort
SELECT ALL + 5 * + 71 AS col0
----
355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7735
SELECT + CAST( - 58 AS SIGNED ) * 65 - - - ( - - 12 ) - + 72
----
-3854

skipif mysql # not compatible
query I rowsort label-7735
SELECT + CAST ( - 58 AS INTEGER ) * 65 - - - ( - - 12 ) - + 72
----
-3854

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT + 4 * - ( - COUNT( * ) ) * - 43 - 90 * - - 22
----
-2152

skipif mysql # not compatible
query I rowsort label-7736
SELECT + 4 * - ( - COUNT ( * ) ) * - 43 - 90 * - - 22
----
-2152

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT + MAX( + 93 ) * + + COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-7737
SELECT + MAX ( + 93 ) * + + COUNT ( * ) AS col2
----
93

query I rowsort
SELECT CASE + 15 WHEN - 90 THEN - 25 WHEN + 87 THEN 19 WHEN - + 64 + 24 * + 45 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT 15 * COUNT( * ) + + 88 col2
----
103

skipif mysql # not compatible
query I rowsort label-7739
SELECT 15 * COUNT ( * ) + + 88 col2
----
103

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

skipif mysql # not compatible
query I rowsort label-7740
SELECT - COUNT ( * ) * COUNT ( ALL 15 ) - 29 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT - + 40 * 78 - - - ( COUNT( * ) ) + 25 * - 76
----
-5021

skipif mysql # not compatible
query I rowsort label-7741
SELECT - + 40 * 78 - - - ( COUNT ( * ) ) + 25 * - 76
----
-5021

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT ALL - + 49 * - + 49 + - ( - COUNT( DISTINCT - - 0 ) ) - 0 * 86 * + + 21
----
2402

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL - + 49 * - + 49 + - ( - COUNT ( DISTINCT - - 0 ) ) - 0 * 86 * + + 21
----
2402

onlyif mysql # DIV for integer division: 
query I rowsort label-7743
SELECT - 82 DIV 55 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7743
SELECT - 82 / 55 AS col1
----
-1

query I rowsort
SELECT - - 11 * + ( 15 ) * + + 5 + + 4 + 55 + 72 + + 76
----
1032

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

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

query I rowsort
SELECT - 40 + 47 col1
----
7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7748
SELECT + 49 DIV 34 * + 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-7748
SELECT + 49 / 34 * + 54 AS col1
----
54

query I rowsort
SELECT 63 + 78 * + 52 * + 88
----
356991

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7750
SELECT + 23 - + 94 + + 8 * - - 15 * 62 * COUNT( * ) + - ( 21 ) DIV - - ( 62 )
----
7369

skipif mysql # not compatible
query I rowsort label-7750
SELECT + 23 - + 94 + + 8 * - - 15 * 62 * COUNT ( * ) + - ( 21 ) / - - ( 62 )
----
7369

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7752
SELECT ALL CAST( - + 44 AS SIGNED ) + + 50 / + 25 / + ( + 16 ) / SUM( DISTINCT - ( + CAST( NULL AS SIGNED ) ) ) * + 36 + + 51 * + 15 + 44 / 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7752
SELECT ALL CAST ( - + 44 AS INTEGER ) + + 50 / + 25 / + ( + 16 ) / SUM ( DISTINCT - ( + CAST ( NULL AS INTEGER ) ) ) * + 36 + + 51 * + 15 + 44 / 75
----
NULL

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

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

query I rowsort
SELECT ALL - 63 + - 2 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT DISTINCT + ( - 14 ) + + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT + ( - 14 ) + + COUNT ( * )
----
-13

query I rowsort
SELECT ALL 98 + 87 + - 2 * + 31
----
123

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7759
SELECT 57 + - 9 + + + 17 * - CAST( NULL AS SIGNED ) + 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7759
SELECT 57 + - 9 + + + 17 * - CAST ( NULL AS INTEGER ) + 26 AS col2
----
NULL

query I rowsort
SELECT ALL 56 * + + 50 AS col0
----
2800

query I rowsort
SELECT ALL - 1 * 90 * 33 AS col0
----
-2970

query I rowsort
SELECT DISTINCT + 46 - 76 * + 91 * + COALESCE ( 85, + 0 ) + - 26
----
-587840

query I rowsort
SELECT DISTINCT - 83 * - + 93 AS col1
----
7719

query I rowsort
SELECT ALL - 74 * 95 * - 15
----
105450

query II rowsort
SELECT DISTINCT + 70 col2, 74 AS col2
----
70
74

query I rowsort
SELECT + + 79 * + 52
----
4108

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT + ( 47 ) * 14 * 71 + - - SUM( DISTINCT + - 10 ) AS col2
----
46708

skipif mysql # not compatible
query I rowsort label-7767
SELECT + ( 47 ) * 14 * 71 + - - SUM ( DISTINCT + - 10 ) AS col2
----
46708

query I rowsort
SELECT + - 62 - + - ( 94 ) AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7769
SELECT 93 / + CAST( NULL AS SIGNED ) - + + 78 - COUNT( + + 97 ) * + - 48 + - 55 + - + CASE 32 WHEN - - 35 + + CAST( NULL AS SIGNED ) / COUNT( * ) THEN - COUNT( * ) END * + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7769
SELECT 93 / + CAST ( NULL AS INTEGER ) - + + 78 - COUNT ( + + 97 ) * + - 48 + - 55 + - + CASE 32 WHEN - - 35 + + CAST ( NULL AS INTEGER ) / COUNT ( * ) THEN - COUNT ( * ) END * + 91 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7770
SELECT + ( + - 60 ) * - AVG ( ALL + 0 ) * CAST( NULL AS SIGNED ) + - COALESCE ( - 57, - 93 * - 85 / 18 + - 64 ) - - CAST( 67 - 79 * - 54 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7770
SELECT + ( + - 60 ) * - AVG ( ALL + 0 ) * CAST ( NULL AS INTEGER ) + - COALESCE ( - 57, - 93 * - 85 / 18 + - 64 ) - - CAST ( 67 - 79 * - 54 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 23 * 12
----
276

onlyif mysql # DIV for integer division: 
query I rowsort label-7772
SELECT ALL + 12 DIV - + 34 * - 93 + - 7 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL + 12 / - + 34 * - 93 + - 7 AS col2
----
-7

query I rowsort
SELECT + 31 + + COALESCE ( 23, + - 28 ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT - COUNT( * ) * + 95 + + 90 + - 99 AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-7774
SELECT - COUNT ( * ) * + 95 + + 90 + - 99 AS col2
----
-104

query I rowsort
SELECT + 2 * - + 71 AS col1
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT + CASE COUNT( * ) WHEN + - AVG ( ALL - 58 ) / + 76 + + 85 * + 19 THEN + 73 END + + COUNT( * ) * + 48 * - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-7776
SELECT + CASE COUNT ( * ) WHEN + - AVG ( ALL - 58 ) / + 76 + + 85 * + 19 THEN + 73 END + + COUNT ( * ) * + 48 * - 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7777
SELECT + - MAX( ALL CAST( NULL AS DECIMAL ) )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT - + 86 + COALESCE ( - - 77, 10, COUNT( * ) * + COUNT( * ) - - MAX( DISTINCT + 69 ) + - - 22 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-7778
SELECT - + 86 + COALESCE ( - - 77, 10, COUNT ( * ) * + COUNT ( * ) - - MAX ( DISTINCT + 69 ) + - - 22 ) AS col2
----
-9

query I rowsort
SELECT + - 16 * + 19
----
-304

query I rowsort
SELECT ALL 77 + 77 AS col1
----
154

query I rowsort
SELECT ALL + 36 + - 96 AS col0
----
-60

query I rowsort
SELECT DISTINCT + 78 + - - 37 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT DISTINCT MAX( ALL - + 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-7783
SELECT DISTINCT MAX ( ALL - + 21 )
----
-21

query II rowsort
SELECT ALL 46 AS col1, ( - 9 )
----
46
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7785
SELECT DISTINCT 97, 71 * - COUNT( * ) AS col2
----
97
-71

skipif mysql # not compatible
query II rowsort label-7785
SELECT DISTINCT 97, 71 * - COUNT ( * ) AS col2
----
97
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-7786
SELECT DISTINCT 69 DIV - + 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT 69 / - + 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT - CASE + 99 WHEN - 52 THEN NULL WHEN MIN( ALL + - 44 ) THEN - 21 END / + AVG ( + + 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7787
SELECT - CASE + 99 WHEN - 52 THEN NULL WHEN MIN ( ALL + - 44 ) THEN - 21 END / + AVG ( + + 16 )
----
NULL

query I rowsort
SELECT ALL - 14 + - 3 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT + 68 - - - ( - 84 ) * + + COUNT( * )
----
152

skipif mysql # not compatible
query I rowsort label-7789
SELECT + 68 - - - ( - 84 ) * + + COUNT ( * )
----
152

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7790
SELECT - CAST( NULL AS DECIMAL ) AS col0, + 80 * - 30 AS col2
----
NULL
-2400

skipif mysql # not compatible
query II rowsort label-7790
SELECT - CAST ( NULL AS REAL ) AS col0, + 80 * - 30 AS col2
----
NULL
-2400

query I rowsort
SELECT - 91 + + 40
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT - CASE 34 WHEN + COUNT( + 27 ) * - 91 THEN NULL ELSE - 59 END * + 71
----
4189

skipif mysql # not compatible
query I rowsort label-7792
SELECT - CASE 34 WHEN + COUNT ( + 27 ) * - 91 THEN NULL ELSE - 59 END * + 71
----
4189

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

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL 26 * + COUNT ( - 6 ) AS col1
----
26

query I rowsort
SELECT DISTINCT 85 - - + 49 * - 16
----
-699

query I rowsort
SELECT - 55 + - 47 AS col0
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7796
SELECT DISTINCT - 97 - - COUNT( * ) DIV 56 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-7796
SELECT DISTINCT - 97 - - COUNT ( * ) / 56 AS col0
----
-97

query I rowsort
SELECT DISTINCT NULLIF ( - - 86, - + 99 ) col0
----
86

query I rowsort
SELECT + 2 * 86 * + - 65
----
-11180

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT + MAX( ALL - 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-7799
SELECT + MAX ( ALL - 44 ) AS col2
----
-44

query I rowsort
SELECT + + 33 * - 29 * - 17 AS col2
----
16269

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7801
SELECT ALL + - 62, 39 + + 7 + - CAST( NULL AS SIGNED ) * - 39 * + 50 AS col1
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-7801
SELECT ALL + - 62, 39 + + 7 + - CAST ( NULL AS INTEGER ) * - 39 * + 50 AS col1
----
-62
NULL

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

skipif mysql # not compatible
query I rowsort label-7802
SELECT - 19 / + - COUNT ( * ) AS col2
----
19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7804
SELECT ALL + + COALESCE ( - 14, + CAST( - - 30 AS SIGNED ), MIN( + 39 ) ) * 15
----
-210

skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL + + COALESCE ( - 14, + CAST ( - - 30 AS INTEGER ), MIN ( + 39 ) ) * 15
----
-210

onlyif mysql # DIV for integer division: 
query I rowsort label-7805
SELECT - - ( - 85 ) DIV NULLIF ( - + 3, 32 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-7805
SELECT - - ( - 85 ) / NULLIF ( - + 3, 32 ) AS col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7806
SELECT + - 6 * - 77 * - 98 * + + CAST( NULL AS SIGNED ) + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7806
SELECT + - 6 * - 77 * - 98 * + + CAST ( NULL AS INTEGER ) + 47 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7807
SELECT ALL - 60 * + + 27 * - 78 + + + CASE - 76 WHEN + 54 + 66 THEN + 30 ELSE NULL END * + ( + 0 ) + + CAST( 38 AS DECIMAL ) + 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL - 60 * + + 27 * - 78 + + + CASE - 76 WHEN + 54 + 66 THEN + 30 ELSE NULL END * + ( + 0 ) + + CAST ( 38 AS REAL ) + 27 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7808
SELECT 63 AS col1, CAST( NULL AS SIGNED ) / 23 AS col1
----
63
NULL

skipif mysql # not compatible
query II rowsort label-7808
SELECT 63 AS col1, CAST ( NULL AS INTEGER ) / 23 AS col1
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT + + COALESCE ( - SUM( - 41 ), - + 77, + - ( - 37 ) - - 66 ) * - 79 + + 1 AS col1
----
-3238

skipif mysql # not compatible
query I rowsort label-7809
SELECT + + COALESCE ( - SUM ( - 41 ), - + 77, + - ( - 37 ) - - 66 ) * - 79 + + 1 AS col1
----
-3238

query I rowsort
SELECT - 8 + + + 60
----
52

query II rowsort
SELECT + + 98 AS col1, 47 + 86 * + 92
----
98
7959

onlyif mysql # DIV for integer division: 
query I rowsort label-7812
SELECT - 22 DIV - 49 - + 91 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-7812
SELECT - 22 / - 49 - + 91 AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT ALL + - 47 * - 65 * 57 + - NULLIF ( COUNT( DISTINCT - 46 ), + - MIN( ALL 97 ) ) * 43 + - 43 AS col0
----
174049

skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL + - 47 * - 65 * 57 + - NULLIF ( COUNT ( DISTINCT - 46 ), + - MIN ( ALL 97 ) ) * 43 + - 43 AS col0
----
174049

onlyif mysql # aggregate syntax: 
query II rowsort label-7814
SELECT DISTINCT + 3 AS col1, + COUNT( * ) + + 51 + + + 54 AS col0
----
3
106

skipif mysql # not compatible
query II rowsort label-7814
SELECT DISTINCT + 3 AS col1, + COUNT ( * ) + + 51 + + + 54 AS col0
----
3
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7815
SELECT DISTINCT + 88 * - COUNT( * ) DIV - COUNT( + + 96 ) + + 64
----
152

skipif mysql # not compatible
query I rowsort label-7815
SELECT DISTINCT + 88 * - COUNT ( * ) / - COUNT ( + + 96 ) + + 64
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT DISTINCT COUNT( * ) * + 85 + + + CASE WHEN NULL = COUNT( - 65 ) THEN + + 12 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT COUNT ( * ) * + 85 + + + CASE WHEN NULL = COUNT ( - 65 ) THEN + + 12 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7817
SELECT - NULLIF ( - COUNT( * ), 6 ), ( - 77 ) col1
----
1
-77

skipif mysql # not compatible
query II rowsort label-7817
SELECT - NULLIF ( - COUNT ( * ), 6 ), ( - 77 ) col1
----
1
-77

query I rowsort
SELECT + 93 * - 89 + 19 - - 58 * 68 AS col0
----
-4314

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT ALL MAX( DISTINCT + + 57 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL MAX ( DISTINCT + + 57 ) AS col0
----
57

query I rowsort
SELECT DISTINCT 92 * 65 AS col2
----
5980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7821
SELECT ALL 50 - COALESCE ( + COUNT( * ), + ( + + CAST( - 60 AS SIGNED ) ) ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL 50 - COALESCE ( + COUNT ( * ), + ( + + CAST ( - 60 AS INTEGER ) ) ) AS col1
----
49

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7823
SELECT CAST( NULL AS DECIMAL ) + - 8 AS col2, + 0 * + + 76 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7823
SELECT CAST ( NULL AS REAL ) + - 8 AS col2, + 0 * + + 76 AS col2
----
NULL
0

query I rowsort
SELECT 12 * NULLIF ( 75, + 19 ) * 75
----
67500

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT 92 + 8 * - + COUNT( * ) * - NULLIF ( - 96, + 63 ) col2
----
-676

skipif mysql # not compatible
query I rowsort label-7825
SELECT 92 + 8 * - + COUNT ( * ) * - NULLIF ( - 96, + 63 ) col2
----
-676

query II rowsort
SELECT DISTINCT - 66 * - - 9, - 58 - ( + 27 ) AS col0
----
-594
-85

query I rowsort
SELECT ALL 46 * + 28
----
1288

onlyif mysql # aggregate syntax: 
query II rowsort label-7828
SELECT 21 * + 62 AS col2, - COUNT( * ) * - 21 AS col1
----
1302
21

skipif mysql # not compatible
query II rowsort label-7828
SELECT 21 * + 62 AS col2, - COUNT ( * ) * - 21 AS col1
----
1302
21

query I rowsort
SELECT DISTINCT + ( + 14 ) * + 87 * + 29 * + 53 AS col2
----
1872066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7830
SELECT ALL - COALESCE ( - 2, + 43 + - + 45 - COALESCE ( - CAST( - + MIN( COALESCE ( 21, - + 28 + 37 + - + 4 + + 43 ) ) AS SIGNED ), + 52, 75 ) DIV 55 * + 41 )
----
2

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL - COALESCE ( - 2, + 43 + - + 45 - COALESCE ( - CAST ( - + MIN ( COALESCE ( 21, - + 28 + 37 + - + 4 + + 43 ) ) AS INTEGER ), + 52, 75 ) / 55 * + 41 )
----
2

query I rowsort
SELECT DISTINCT - ( 1 ) + - 61 + + + 19 * + - 55 - - 43 AS col0
----
-1064

query II rowsort
SELECT ALL + + 14 + 25 AS col0, + 69 - + 59 AS col2
----
39
10

query I rowsort
SELECT ALL - 30 + - 5 - 68 AS col0
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7834
SELECT 20 - + 45 + - CASE + 35 WHEN 15 THEN - 27 DIV - - SUM( ALL - - 75 ) + + NULLIF ( + - 96, + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) DIV 45 + - 46 ) ELSE 91 + - COALESCE ( - 61, 70 ) END - 10 * COUNT( * ) AS col2
----
-187

skipif mysql # not compatible
query I rowsort label-7834
SELECT 20 - + 45 + - CASE + 35 WHEN 15 THEN - 27 / - - SUM ( ALL - - 75 ) + + NULLIF ( + - 96, + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / 45 + - 46 ) ELSE 91 + - COALESCE ( - 61, 70 ) END - 10 * COUNT ( * ) AS col2
----
-187

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

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

query I rowsort
SELECT ALL 76 + + 69 AS col1
----
145

query I rowsort
SELECT DISTINCT + 11 + - 93
----
-82

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7839
SELECT ALL + - NULLIF ( - - NULLIF ( - - CAST( NULL AS SIGNED ), + 53 ), 80 ) + - 89 + 83 / + 60 + - - CAST( + 16 AS SIGNED ) + - 18 * + COUNT( * ) * 39 + 26 * ( 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL + - NULLIF ( - - NULLIF ( - - CAST ( NULL AS INTEGER ), + 53 ), 80 ) + - 89 + 83 / + 60 + - - CAST ( + 16 AS INTEGER ) + - 18 * + COUNT ( * ) * 39 + 26 * ( 19 )
----
NULL

query I rowsort
SELECT 46 + 34 AS col1
----
80

query I rowsort
SELECT + 42 * 85 * CASE 96 WHEN + 4 THEN + 13 + - 68 ELSE NULL END + 77
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7842
SELECT + 54 * COUNT( * ) + 57 DIV - - 94 + 13 + - 69 - - 38 col1, + 55 AS col0
----
36
55

skipif mysql # not compatible
query II rowsort label-7842
SELECT + 54 * COUNT ( * ) + 57 / - - 94 + 13 + - 69 - - 38 col1, + 55 AS col0
----
36
55

query I rowsort
SELECT ALL + 28 - - CASE + CASE WHEN + 16 IS NOT NULL THEN - + 7 * + - 18 END WHEN - 27 + - + 23 THEN NULL WHEN + 76 THEN + + 20 * + 90 - + 69 END + 44 * + 0 * - 89
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7844
SELECT 80 + + + CAST( NULL AS DECIMAL ) + + 31 + - COALESCE ( 47, + 0 / - 0 * + NULLIF ( - CAST( NULL AS SIGNED ), - + 23 ), - + COUNT( * ), + ( + ( + 66 ) ) ) * 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7844
SELECT 80 + + + CAST ( NULL AS REAL ) + + 31 + - COALESCE ( 47, + 0 / - 0 * + NULLIF ( - CAST ( NULL AS INTEGER ), - + 23 ), - + COUNT ( * ), + ( + ( + 66 ) ) ) * 73 AS col2
----
NULL

query II rowsort
SELECT 57, 92 * + 34 AS col2
----
57
3128

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7847
SELECT ALL MIN( ALL - 32 ) DIV - 21 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL MIN ( ALL - 32 ) / - 21 AS col0
----
1

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

skipif mysql # not compatible
query II rowsort label-7848
SELECT DISTINCT 1, + COUNT ( * )
----
1
1

query I rowsort
SELECT 80 * 97
----
7760

onlyif mysql # DIV for integer division: 
query I rowsort label-7850
SELECT 86 DIV - 1 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-7850
SELECT 86 / - 1 AS col0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-7851
SELECT ALL - 42 DIV + + 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL - 42 / + + 51 AS col0
----
0

query I rowsort
SELECT ALL NULLIF ( - 36, + + 61 ) * - + 80 * - 17
----
-48960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7853
SELECT NULLIF ( 31, + + 18 + - ( 1 ) ) + - - MAX( 78 ) DIV 26 - - 3 + + 42 + + 79
----
158

skipif mysql # not compatible
query I rowsort label-7853
SELECT NULLIF ( 31, + + 18 + - ( 1 ) ) + - - MAX ( 78 ) / 26 - - 3 + + 42 + + 79
----
158

onlyif mysql # aggregate syntax: 
query II rowsort label-7854
SELECT ALL MIN( 68 ) * + + 12 * + 78 - COUNT( DISTINCT + 20 ) + - 2 * - - 12 AS col2, 83
----
63623
83

skipif mysql # not compatible
query II rowsort label-7854
SELECT ALL MIN ( 68 ) * + + 12 * + 78 - COUNT ( DISTINCT + 20 ) + - 2 * - - 12 AS col2, 83
----
63623
83

query I rowsort
SELECT 95 - + 37 AS col2
----
58

query I rowsort
SELECT ALL + 52 * - ( - - 26 )
----
-1352

query I rowsort
SELECT ALL + 94 + - - ( + 50 ) * + ( - 17 ) AS col1
----
-756

onlyif mysql # aggregate syntax: 
query II rowsort label-7858
SELECT ALL COUNT( * ) AS col0, + 17 * + - 76
----
1
-1292

skipif mysql # not compatible
query II rowsort label-7858
SELECT ALL COUNT ( * ) AS col0, + 17 * + - 76
----
1
-1292

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT DISTINCT - ( 40 ) + - ( COUNT( * ) )
----
-41

skipif mysql # not compatible
query I rowsort label-7859
SELECT DISTINCT - ( 40 ) + - ( COUNT ( * ) )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT DISTINCT + MAX( DISTINCT - ( - + 74 ) ) + - 59 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT + MAX ( DISTINCT - ( - + 74 ) ) + - 59 AS col1
----
15

query I rowsort
SELECT ALL 80 + - 86 col1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7862
SELECT ALL - ( + CASE - 12 WHEN 9 / - ( 25 ) + + - COUNT( * ) / - + 29 THEN NULL WHEN - 94 * - - COALESCE ( 30, + 27 ) - + + COUNT( * ) THEN 38 + + 79 END ) + - CAST( NULL AS SIGNED ) * - 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL - ( + CASE - 12 WHEN 9 / - ( 25 ) + + - COUNT ( * ) / - + 29 THEN NULL WHEN - 94 * - - COALESCE ( 30, + 27 ) - + + COUNT ( * ) THEN 38 + + 79 END ) + - CAST ( NULL AS INTEGER ) * - 29 AS col0
----
NULL

query II rowsort
SELECT - 74, 32 AS col1
----
-74
32

query I rowsort
SELECT ALL 7 * + 26 AS col1
----
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7865
SELECT 92 DIV + COUNT( * ) - + 17
----
75

skipif mysql # not compatible
query I rowsort label-7865
SELECT 92 / + COUNT ( * ) - + 17
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7866
SELECT 73 DIV - - 80 + + 63 DIV 61 + - - ( 27 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-7866
SELECT 73 / - - 80 + + 63 / 61 + - - ( 27 ) AS col1
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT + + COALESCE ( + 60, - 49 + 26, COUNT( - 32 ) * - - 81 )
----
60

skipif mysql # not compatible
query I rowsort label-7868
SELECT + + COALESCE ( + 60, - 49 + 26, COUNT ( - 32 ) * - - 81 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT ALL + + 92 * - 67 + - COUNT( 99 )
----
-6165

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL + + 92 * - 67 + - COUNT ( 99 )
----
-6165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7870
SELECT DISTINCT - - 26 * - 55 * 46 + + 14 + + 44 * + + CAST( 2 AS SIGNED ) AS col0
----
-65678

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT - - 26 * - 55 * 46 + + 14 + + 44 * + + CAST ( 2 AS INTEGER ) AS col0
----
-65678

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT ALL - 58 * - + 6 * - + 9 * - + COUNT( * ) * + 96 * - 19 + + 29
----
-5712739

skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL - 58 * - + 6 * - + 9 * - + COUNT ( * ) * + 96 * - 19 + + 29
----
-5712739

onlyif mysql # DIV for integer division: 
query I rowsort label-7872
SELECT 15 DIV + 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7872
SELECT 15 / + 74 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7873
SELECT + CAST( NULL AS SIGNED ) / - COUNT( * ) - + 7 - 25 * - 96 + - CASE - - 69 WHEN + 43 + - 47 THEN 90 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7873
SELECT + CAST ( NULL AS INTEGER ) / - COUNT ( * ) - + 7 - 25 * - 96 + - CASE - - 69 WHEN + 43 + - 47 THEN 90 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT 84 * + COUNT( * ) col0
----
84

skipif mysql # not compatible
query I rowsort label-7874
SELECT 84 * + COUNT ( * ) col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT DISTINCT - NULLIF ( + - NULLIF ( - CASE + 86 WHEN - - 92 * SUM( - 51 ) - + 68 + - COUNT( * ) - - - 78 / + - 96 + + COALESCE ( + COUNT( * ), + COUNT( * ) * AVG ( 87 ) + 90 / + NULLIF ( 11 / 98, 46 ) ) THEN SUM( + 14 ) * + COUNT( * ) - 9 WHEN - 18 * 44 THEN NULL END, - 44 + - COALESCE ( + 70, + COUNT( * ) ) ), 81 * - 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT - NULLIF ( + - NULLIF ( - CASE + 86 WHEN - - 92 * SUM ( - 51 ) - + 68 + - COUNT ( * ) - - - 78 / + - 96 + + COALESCE ( + COUNT ( * ), + COUNT ( * ) * AVG ( 87 ) + 90 / + NULLIF ( 11 / 98, 46 ) ) THEN SUM ( + 14 ) * + COUNT ( * ) - 9 WHEN - 18 * 44 THEN NULL END, - 44 + - COALESCE ( + 70, + COUNT ( * ) ) ), 81 * - 9 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT + 69 + SUM( - - 28 ) * + 82
----
2365

skipif mysql # not compatible
query I rowsort label-7876
SELECT + 69 + SUM ( - - 28 ) * + 82
----
2365

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT DISTINCT 10 - + + 59 + + 97 + 56 + - SUM( - 18 ) AS col1
----
122

skipif mysql # not compatible
query I rowsort label-7877
SELECT DISTINCT 10 - + + 59 + + 97 + 56 + - SUM ( - 18 ) AS col1
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7878
SELECT DISTINCT + COALESCE ( - 86, + + MAX( + 84 ) + + COALESCE ( + + 53, 61 ) * + 71 * - COALESCE ( + 22, COUNT( ALL 71 ) * 57, - 33 DIV - 90 ) + 87, MAX( ALL + 53 ) * - 94 + 27 )
----
-86

skipif mysql # not compatible
query I rowsort label-7878
SELECT DISTINCT + COALESCE ( - 86, + + MAX ( + 84 ) + + COALESCE ( + + 53, 61 ) * + 71 * - COALESCE ( + 22, COUNT ( ALL 71 ) * 57, - 33 / - 90 ) + 87, MAX ( ALL + 53 ) * - 94 + 27 )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7879
SELECT + 3 * - 54 - - CASE + 59 WHEN - - NULLIF ( - AVG ( ALL - 92 ), + 96 * COUNT( * ) + + 95 ) * 50 / COALESCE ( - 75, 20 ) + - COUNT( * ) - - COUNT( * ) * CAST( NULL AS SIGNED ) THEN 70 * - 72 END * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7879
SELECT + 3 * - 54 - - CASE + 59 WHEN - - NULLIF ( - AVG ( ALL - 92 ), + 96 * COUNT ( * ) + + 95 ) * 50 / COALESCE ( - 75, 20 ) + - COUNT ( * ) - - COUNT ( * ) * CAST ( NULL AS INTEGER ) THEN 70 * - 72 END * 48
----
NULL

query I rowsort
SELECT ALL - 56 * - 39 * + 1 AS col1
----
2184

query I rowsort
SELECT - 15 - + 16 + - - 92
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-7882
SELECT + NULLIF ( + 92, + + 8 * - COUNT( * ) * - COALESCE ( + - ( MIN( - 4 ) ), - + 54 * + 63 ) ) * 88 + - 16 AS col1, 38
----
8080
38

skipif mysql # not compatible
query II rowsort label-7882
SELECT + NULLIF ( + 92, + + 8 * - COUNT ( * ) * - COALESCE ( + - ( MIN ( - 4 ) ), - + 54 * + 63 ) ) * 88 + - 16 AS col1, 38
----
8080
38

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

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

query I rowsort
SELECT DISTINCT - 29 * - - 10 col2
----
-290

query I rowsort
SELECT - 67 * - - 82
----
-5494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7886
SELECT - 97 * + CASE ( + 62 ) WHEN + + 65 THEN 68 * + + AVG ( + CAST( NULL AS SIGNED ) ) + 52 - - 40 + + + 24 / + 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT - 97 * + CASE ( + 62 ) WHEN + + 65 THEN 68 * + + AVG ( + CAST ( NULL AS INTEGER ) ) + 52 - - 40 + + + 24 / + 41 ELSE NULL END
----
NULL

query I rowsort
SELECT - ( 7 ) + + + 79 - - 73 AS col0
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7888
SELECT - CASE + + 71 WHEN + MIN( + 38 ) THEN - 38 / + 40 * - + 12 + - - COUNT( * ) / + 8 WHEN + 31 * - - 99 THEN 56 END * - - CAST( - 98 AS SIGNED ) - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-7888
SELECT - CASE + + 71 WHEN + MIN ( + 38 ) THEN - 38 / + 40 * - + 12 + - - COUNT ( * ) / + 8 WHEN + 31 * - - 99 THEN 56 END * - - CAST ( - 98 AS INTEGER ) - 14
----
NULL

query I rowsort
SELECT - 73 * 74
----
-5402

onlyif mysql # aggregate syntax: 
query II rowsort label-7890
SELECT DISTINCT MIN( DISTINCT - 72 ) AS col0, - 96 AS col0
----
-72
-96

skipif mysql # not compatible
query II rowsort label-7890
SELECT DISTINCT MIN ( DISTINCT - 72 ) AS col0, - 96 AS col0
----
-72
-96

query I rowsort
SELECT ALL NULLIF ( - 2, 24 ) AS col0
----
-2

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

skipif mysql # not compatible
query I rowsort label-7892
SELECT DISTINCT + COUNT ( * ) + 39 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT ALL - - COUNT( * ) + + 16
----
17

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL - - COUNT ( * ) + + 16
----
17

query I rowsort
SELECT ALL + - 72 + - 47 * ( - 61 ) * + + 25
----
71603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7895
SELECT CASE + 95 WHEN 18 + + 58 THEN + COALESCE ( AVG ( ALL CAST( - 22 AS SIGNED ) ), + - COUNT( * ), + COALESCE ( + - COUNT( * ), + 63 + + 59 * + - 51 + 30 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT CASE + 95 WHEN 18 + + 58 THEN + COALESCE ( AVG ( ALL CAST ( - 22 AS INTEGER ) ), + - COUNT ( * ), + COALESCE ( + - COUNT ( * ), + 63 + + 59 * + - 51 + 30 ) ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 87 * - 59 * - 15
----
76995

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT ALL NULLIF ( + - 80, + 87 - COUNT( * ) ) + 43
----
-37

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL NULLIF ( + - 80, + 87 - COUNT ( * ) ) + 43
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT + 97 + + CASE - + 19 WHEN + ( - 41 ) THEN NULL ELSE - - 6 END + + - COUNT( * ) * - 24 AS col2
----
127

skipif mysql # not compatible
query I rowsort label-7899
SELECT + 97 + + CASE - + 19 WHEN + ( - 41 ) THEN NULL ELSE - - 6 END + + - COUNT ( * ) * - 24 AS col2
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT + COUNT( * ) * + 19 * + + 21
----
399

skipif mysql # not compatible
query I rowsort label-7900
SELECT + COUNT ( * ) * + 19 * + + 21
----
399

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT DISTINCT + CASE 4 WHEN - 17 THEN - 5 * + 18 ELSE - NULLIF ( - + COALESCE ( - 10, 72 ), + COUNT( * ) * 21 ) END col1
----
-10

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT + CASE 4 WHEN - 17 THEN - 5 * + 18 ELSE - NULLIF ( - + COALESCE ( - 10, 72 ), + COUNT ( * ) * 21 ) END col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7902
SELECT + - ( + 90 ) DIV + 81 + - MIN( ALL 28 ) AS col0, + 60 DIV + 11
----
-29
5

skipif mysql # not compatible
query II rowsort label-7902
SELECT + - ( + 90 ) / + 81 + - MIN ( ALL 28 ) AS col0, + 60 / + 11
----
-29
5

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

skipif mysql # not compatible
query I rowsort label-7903
SELECT + - MIN ( - 85 ) + + + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7905
SELECT + + 3 * - - CAST( + 19 AS SIGNED ) + 99 AS col2, - 8 * - COUNT( * ) + COUNT( * ) * + + 65 AS col0
----
156
73

skipif mysql # not compatible
query II rowsort label-7905
SELECT + + 3 * - - CAST ( + 19 AS INTEGER ) + 99 AS col2, - 8 * - COUNT ( * ) + COUNT ( * ) * + + 65 AS col0
----
156
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7906
SELECT + + 46 * + + ( CASE 41 WHEN - CAST( + NULLIF ( 27, + 13 ) AS SIGNED ) THEN + + 47 WHEN 74 THEN + SUM( 21 ) WHEN 66 / 60 - 94 * - 29 THEN + 80 * 3 + 68 END ) * NULLIF ( + 68, - 5 ) + 38 - - MAX( 71 ) * 7 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7906
SELECT + + 46 * + + ( CASE 41 WHEN - CAST ( + NULLIF ( 27, + 13 ) AS INTEGER ) THEN + + 47 WHEN 74 THEN + SUM ( 21 ) WHEN 66 / 60 - 94 * - 29 THEN + 80 * 3 + 68 END ) * NULLIF ( + 68, - 5 ) + 38 - - MAX ( 71 ) * 7 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7907
SELECT ALL + 68 DIV 5 DIV - 15
----
0

skipif mysql # not compatible
query I rowsort label-7907
SELECT ALL + 68 / 5 / - 15
----
0

query I rowsort
SELECT + 45 * + + 41
----
1845

onlyif mysql # aggregate syntax: 
query II rowsort label-7909
SELECT DISTINCT + 9, + MAX( DISTINCT - - 84 ) - + COUNT( * ) AS col0
----
9
83

skipif mysql # not compatible
query II rowsort label-7909
SELECT DISTINCT + 9, + MAX ( DISTINCT - - 84 ) - + COUNT ( * ) AS col0
----
9
83

query I rowsort
SELECT DISTINCT 62 * + 99
----
6138

query I rowsort
SELECT + 86 * 59 AS col1
----
5074

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

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL + COUNT ( DISTINCT - - 17 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT ALL + 84 * 67 + NULLIF ( + 86, + COUNT( * ) )
----
5714

skipif mysql # not compatible
query I rowsort label-7913
SELECT ALL + 84 * 67 + NULLIF ( + 86, + COUNT ( * ) )
----
5714

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT DISTINCT - 1 * - 57 * - MIN( DISTINCT - + 82 ) + - - COUNT( * ) AS col2
----
4675

skipif mysql # not compatible
query I rowsort label-7914
SELECT DISTINCT - 1 * - 57 * - MIN ( DISTINCT - + 82 ) + - - COUNT ( * ) AS col2
----
4675

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT DISTINCT + 51 * + + 5 * + COUNT( * ) + 11
----
266

skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT + 51 * + + 5 * + COUNT ( * ) + 11
----
266

query I rowsort
SELECT ALL - 68 * + 67 + + 66 col2
----
-4490

query I rowsort
SELECT DISTINCT - 98 * + 58 col2
----
-5684

query I rowsort
SELECT ALL - 7 * - - ( 63 ) + + - 45 AS col0
----
-486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7919
SELECT DISTINCT CAST( 25 AS SIGNED ) col2
----
25

skipif mysql # not compatible
query I rowsort label-7919
SELECT DISTINCT CAST ( 25 AS INTEGER ) col2
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-7920
SELECT ALL - MIN( DISTINCT 7 ) * 38, ( + 45 ) AS col2
----
-266
45

skipif mysql # not compatible
query II rowsort label-7920
SELECT ALL - MIN ( DISTINCT 7 ) * 38, ( + 45 ) AS col2
----
-266
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7921
SELECT DISTINCT - 74 * + NULLIF ( + ( + - 65 ), + 91 - + 51 * + 85 * - 99 * - - 45 + + 18 + - 52 / + + ( + - SUM( ALL + - 92 ) ) ) * - 44 + - NULLIF ( NULLIF ( CASE - 43 WHEN 2 * + ( + 71 * 64 ) THEN + 82 + + 20 WHEN AVG ( 22 ) * - 32 THEN NULL END, - 93 * + CAST( NULL AS SIGNED ) ), 29 / + 53 + - 6 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7921
SELECT DISTINCT - 74 * + NULLIF ( + ( + - 65 ), + 91 - + 51 * + 85 * - 99 * - - 45 + + 18 + - 52 / + + ( + - SUM ( ALL + - 92 ) ) ) * - 44 + - NULLIF ( NULLIF ( CASE - 43 WHEN 2 * + ( + 71 * 64 ) THEN + 82 + + 20 WHEN AVG ( 22 ) * - 32 THEN NULL END, - 93 * + CAST ( NULL AS INTEGER ) ), 29 / + 53 + - 6 ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7923
SELECT ALL - 34 + + + 32 + + - NULLIF ( + - 67, - - 85 / - 59 ) + 92 * - + 47 + - CAST( - + 43 AS SIGNED ) + - CASE + + CASE COUNT( * ) WHEN ( + + MAX( - 48 ) ) + - 10 THEN NULL ELSE CAST( NULL AS SIGNED ) END WHEN 91 / + 31 THEN - 84 + + 20 END + - CASE + ( 49 ) WHEN + 99 THEN NULL WHEN 11 THEN ( - 49 ) / CASE + 47 * 85 WHEN + 34 * + 79 - - 66 * 18 THEN NULL WHEN NULLIF ( CAST( NULL AS SIGNED ), 52 ) * COUNT( * ) THEN + 8 END ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL - 34 + + + 32 + + - NULLIF ( + - 67, - - 85 / - 59 ) + 92 * - + 47 + - CAST ( - + 43 AS INTEGER ) + - CASE + + CASE COUNT ( * ) WHEN ( + + MAX ( - 48 ) ) + - 10 THEN NULL ELSE CAST ( NULL AS INTEGER ) END WHEN 91 / + 31 THEN - 84 + + 20 END + - CASE + ( 49 ) WHEN + 99 THEN NULL WHEN 11 THEN ( - 49 ) / CASE + 47 * 85 WHEN + 34 * + 79 - - 66 * 18 THEN NULL WHEN NULLIF ( CAST ( NULL AS INTEGER ), 52 ) * COUNT ( * ) THEN + 8 END ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT - - MAX( DISTINCT - 79 ) - - 69
----
-10

skipif mysql # not compatible
query I rowsort label-7924
SELECT - - MAX ( DISTINCT - 79 ) - - 69
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT - + 79 - - MIN( ALL 70 ) - + 92 AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-7925
SELECT - + 79 - - MIN ( ALL 70 ) - + 92 AS col0
----
-101

query I rowsort
SELECT DISTINCT + ( 28 ) - + + 55
----
-27

query II rowsort
SELECT DISTINCT 65 AS col1, + 76 AS col2
----
65
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7928
SELECT - ( - 85 ) * - 77 + + 37 * - - CAST( NULL AS SIGNED ) * + COALESCE ( + + 57, + COUNT( * ), 42 ) / + - 78 + 35 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT - ( - 85 ) * - 77 + + 37 * - - CAST ( NULL AS INTEGER ) * + COALESCE ( + + 57, + COUNT ( * ), 42 ) / + - 78 + 35 col0
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7930
SELECT - COALESCE ( - 10, - - 36 ), - 45 + + - 98 DIV - 89 + - - 43 DIV + 49 AS col2
----
10
-44

skipif mysql # not compatible
query II rowsort label-7930
SELECT - COALESCE ( - 10, - - 36 ), - 45 + + - 98 / - 89 + - - 43 / + 49 AS col2
----
10
-44

query I rowsort
SELECT DISTINCT - 99 * 32 + + 25
----
-3143

query II rowsort
SELECT + 43 AS col0, 0
----
43
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT ALL + 66 * - MIN( DISTINCT - + 7 )
----
462

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL + 66 * - MIN ( DISTINCT - + 7 )
----
462

query I rowsort
SELECT DISTINCT - ( 70 ) AS col1
----
-70

query I rowsort
SELECT ALL 14 * 27
----
378

query I rowsort
SELECT 80 * 35
----
2800

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7938
SELECT 67 AS col0, 95 * - CASE + 25 WHEN + 70 + 83 THEN - + SUM( - 7 ) END * + CAST( - ( + - 97 ) AS SIGNED ) AS col2
----
67
NULL

skipif mysql # not compatible
query II rowsort label-7938
SELECT 67 AS col0, 95 * - CASE + 25 WHEN + 70 + 83 THEN - + SUM ( - 7 ) END * + CAST ( - ( + - 97 ) AS INTEGER ) AS col2
----
67
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7939
SELECT ALL - 34 AS col0, COUNT( * ) + + 15
----
-34
16

skipif mysql # not compatible
query II rowsort label-7939
SELECT ALL - 34 AS col0, COUNT ( * ) + + 15
----
-34
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7940
SELECT 70 * + COUNT( * ) * - + CASE COUNT( * ) WHEN + 37 THEN + + COUNT( * ) - CAST( NULL AS SIGNED ) END, - 75 AS col1
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-7940
SELECT 70 * + COUNT ( * ) * - + CASE COUNT ( * ) WHEN + 37 THEN + + COUNT ( * ) - CAST ( NULL AS INTEGER ) END, - 75 AS col1
----
NULL
-75

query I rowsort
SELECT + 95 * - + 85 - + 66
----
-8141

query II rowsort
SELECT 48, + 77 * 46 AS col2
----
48
3542

query II rowsort
SELECT + 3, 38 + - 54 AS col1
----
3
-16

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7945
SELECT ALL COUNT( - 18 ) * + - ( + ( - + CASE 77 WHEN 27 THEN - + 49 WHEN - + 20 THEN + 85 ELSE ( - 73 ) DIV - 80 END ) )
----
0

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL COUNT ( - 18 ) * + - ( + ( - + CASE 77 WHEN 27 THEN - + 49 WHEN - + 20 THEN + 85 ELSE ( - 73 ) / - 80 END ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7946
SELECT 67 AS col1, 4 * - 18 + ( 65 ) * + - MIN( ALL 99 ) AS col1
----
67
-6507

skipif mysql # not compatible
query II rowsort label-7946
SELECT 67 AS col1, 4 * - 18 + ( 65 ) * + - MIN ( ALL 99 ) AS col1
----
67
-6507

query I rowsort
SELECT ALL 44 + - NULLIF ( + - 58, - 6 * + - 92 ) AS col0
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7948
SELECT + 17, + 93 * - CAST( COALESCE ( - + 26, - 26 + + 67 ) AS SIGNED ) col0
----
17
2418

skipif mysql # not compatible
query II rowsort label-7948
SELECT + 17, + 93 * - CAST ( COALESCE ( - + 26, - 26 + + 67 ) AS INTEGER ) col0
----
17
2418

query II rowsort
SELECT ALL - 47 AS col1, 34
----
-47
34

query I rowsort
SELECT DISTINCT 73 + + - 36 AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7951
SELECT - COUNT( * ) + + NULLIF ( + 23, + CAST( + CAST( + 8 AS DECIMAL ) AS SIGNED ) + - 44 * + + 64 ) DIV - 52 * + 17
----
-1

skipif mysql # not compatible
query I rowsort label-7951
SELECT - COUNT ( * ) + + NULLIF ( + 23, + CAST ( + CAST ( + 8 AS REAL ) AS INTEGER ) + - 44 * + + 64 ) / - 52 * + 17
----
-1

query II rowsort
SELECT - - 10 col1, - 0 AS col2
----
10
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT - - MAX( DISTINCT + - 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-7953
SELECT - - MAX ( DISTINCT + - 24 ) AS col1
----
-24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7954
SELECT ALL 4 - - 21 - + 25 + 88 * - 58 * + + ( 14 ) + + 27 + + ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL 4 - - 21 - + 25 + 88 * - 58 * + + ( 14 ) + + 27 + + ( - CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT ALL - 0 col2, 77 AS col1
----
0
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7956
SELECT ALL - - 4 - 87 + + 35 * 28 * 30 * - - 51 * - CAST( + - 5 AS SIGNED ) + - COUNT( * ) * COUNT( * ) DIV 41 - + 77
----
7496840

skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL - - 4 - 87 + + 35 * 28 * 30 * - - 51 * - CAST ( + - 5 AS INTEGER ) + - COUNT ( * ) * COUNT ( * ) / 41 - + 77
----
7496840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7957
SELECT CASE 32 WHEN COUNT( * ) THEN - + CAST( NULL AS SIGNED ) WHEN + 45 * + - 46 THEN + - CASE - 58 WHEN + 44 / - 26 * 95 + CAST( NULL AS SIGNED ) + COALESCE ( - COUNT( * ), + 77 ) + 20 THEN NULL WHEN 43 + + AVG ( 7 + + 44 ) * - 26 THEN 98 END ELSE NULL END * - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-7957
SELECT CASE 32 WHEN COUNT ( * ) THEN - + CAST ( NULL AS INTEGER ) WHEN + 45 * + - 46 THEN + - CASE - 58 WHEN + 44 / - 26 * 95 + CAST ( NULL AS INTEGER ) + COALESCE ( - COUNT ( * ), + 77 ) + 20 THEN NULL WHEN 43 + + AVG ( 7 + + 44 ) * - 26 THEN 98 END ELSE NULL END * - 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT ALL NULLIF ( + + 24, NULLIF ( 61, 19 + - COUNT( * ) ) )
----
24

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL NULLIF ( + + 24, NULLIF ( 61, 19 + - COUNT ( * ) ) )
----
24

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7960
SELECT + CAST( SUM( ALL - 79 ) AS SIGNED ) + + - 54 AS col2
----
-133

skipif mysql # not compatible
query I rowsort label-7960
SELECT + CAST ( SUM ( ALL - 79 ) AS INTEGER ) + + - 54 AS col2
----
-133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7961
SELECT + 93 * + COALESCE ( - 0, - COUNT( * ) * COALESCE ( CAST( NULL AS SIGNED ), + - 36, - - 75 DIV CASE + 96 WHEN + CASE - 60 WHEN - COUNT( * ) THEN - COUNT( * ) * + 86 + + + COUNT( * ) + - ( + COALESCE ( 28, ( + ( + 4 ) ) + CAST( NULL AS SIGNED ) * 43 ) ) END * 23 THEN + COUNT( * ) * - 69 + + COUNT( * ) * + 65 ELSE 4 * 74 END * + 77 + 25 ) * COUNT( DISTINCT + 58 * + CASE CAST( - 9 AS SIGNED ) WHEN CAST( ( 12 ) AS SIGNED ) THEN - 93 END ) + - 35 * - CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7961
SELECT + 93 * + COALESCE ( - 0, - COUNT ( * ) * COALESCE ( CAST ( NULL AS INTEGER ), + - 36, - - 75 / CASE + 96 WHEN + CASE - 60 WHEN - COUNT ( * ) THEN - COUNT ( * ) * + 86 + + + COUNT ( * ) + - ( + COALESCE ( 28, ( + ( + 4 ) ) + CAST ( NULL AS INTEGER ) * 43 ) ) END * 23 THEN + COUNT ( * ) * - 69 + + COUNT ( * ) * + 65 ELSE 4 * 74 END * + 77 + 25 ) * COUNT ( DISTINCT + 58 * + CASE CAST ( - 9 AS INTEGER ) WHEN CAST ( ( 12 ) AS INTEGER ) THEN - 93 END ) + - 35 * - CAST ( NULL AS INTEGER ) ) AS col2
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7963
SELECT - COALESCE ( - 70, - - COUNT( * ), - - COUNT( * ) ) + 66 * 92 + - + CAST( - 16 AS SIGNED ) * - + 12
----
5950

skipif mysql # not compatible
query I rowsort label-7963
SELECT - COALESCE ( - 70, - - COUNT ( * ), - - COUNT ( * ) ) + 66 * 92 + - + CAST ( - 16 AS INTEGER ) * - + 12
----
5950

onlyif mysql # aggregate syntax: 
query II rowsort label-7964
SELECT - + 61 AS col2, + COUNT( * ) + - 48 + - 84
----
-61
-131

skipif mysql # not compatible
query II rowsort label-7964
SELECT - + 61 AS col2, + COUNT ( * ) + - 48 + - 84
----
-61
-131

onlyif mysql # DIV for integer division: 
query I rowsort label-7965
SELECT - 20 DIV + 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7965
SELECT - 20 / + 87 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7966
SELECT - CASE - 91 WHEN CAST( NULL AS SIGNED ) / 29 THEN NULL WHEN + 32 THEN NULL WHEN 56 - + 85 THEN CAST( 66 AS SIGNED ) * - + 9 ELSE - MAX( - - CAST( NULL AS SIGNED ) ) END + + 10 * COALESCE ( - + 57, 73 * 35 ) * + ( CASE - 40 WHEN 88 THEN 99 WHEN 98 THEN - 44 * - CAST( 25 * - 7 AS SIGNED ) END + 45 ) + - 92 * - AVG ( DISTINCT 64 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7966
SELECT - CASE - 91 WHEN CAST ( NULL AS INTEGER ) / 29 THEN NULL WHEN + 32 THEN NULL WHEN 56 - + 85 THEN CAST ( 66 AS INTEGER ) * - + 9 ELSE - MAX ( - - CAST ( NULL AS INTEGER ) ) END + + 10 * COALESCE ( - + 57, 73 * 35 ) * + ( CASE - 40 WHEN 88 THEN 99 WHEN 98 THEN - 44 * - CAST ( 25 * - 7 AS INTEGER ) END + 45 ) + - 92 * - AVG ( DISTINCT 64 ) col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7968
SELECT ALL + 46 DIV - 47
----
0

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL + 46 / - 47
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7969
SELECT ALL + + 12 DIV - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL + + 12 / - 98 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7970
SELECT DISTINCT + + 95 DIV + + ( - - 89 )
----
1

skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT + + 95 / + + ( - - 89 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7971
SELECT 87 * - CAST( - - 56 AS SIGNED ) + + SUM( DISTINCT + 28 ) * + + 3
----
-4788

skipif mysql # not compatible
query I rowsort label-7971
SELECT 87 * - CAST ( - - 56 AS INTEGER ) + + SUM ( DISTINCT + 28 ) * + + 3
----
-4788

onlyif mysql # DIV for integer division: 
query II rowsort label-7972
SELECT - 98 DIV - + NULLIF ( + - 29, - 23 ) + - 59 AS col1, 3
----
-62
3

skipif mysql # not compatible
query II rowsort label-7972
SELECT - 98 / - + NULLIF ( + - 29, - 23 ) + - 59 AS col1, 3
----
-62
3

query I rowsort
SELECT 76 + ( - 81 ) col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT ALL - COUNT( * ) + - + 33
----
-34

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL - COUNT ( * ) + - + 33
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT COUNT( * ) - - 85 * - - CASE + 98 WHEN 26 / + + COUNT( * ) THEN NULL WHEN - + 22 + - 73 + + 41 THEN + 0 + + ( + + 17 ) END - + ( - 8 ) / - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7975
SELECT COUNT ( * ) - - 85 * - - CASE + 98 WHEN 26 / + + COUNT ( * ) THEN NULL WHEN - + 22 + - 73 + + 41 THEN + 0 + + ( + + 17 ) END - + ( - 8 ) / - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT ALL 68 + + MAX( ALL - + 5 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-7976
SELECT ALL 68 + + MAX ( ALL - + 5 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-7977
SELECT 5 * 58 AS col0, COUNT( + - 38 ) * + - COUNT( * ) + - 57
----
290
-58

skipif mysql # not compatible
query II rowsort label-7977
SELECT 5 * 58 AS col0, COUNT ( + - 38 ) * + - COUNT ( * ) + - 57
----
290
-58

query I rowsort
SELECT ALL + 25 + 2 * 67 AS col1
----
159

query I rowsort
SELECT 21 + - - 80
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT - 90 * + 70 * ( + + 89 ) * - - 73 + COUNT( * ) * - 6 + - 38
----
-40931144

skipif mysql # not compatible
query I rowsort label-7980
SELECT - 90 * + 70 * ( + + 89 ) * - - 73 + COUNT ( * ) * - 6 + - 38
----
-40931144

query I rowsort
SELECT ALL + 89 + 33 AS col0
----
122

query I rowsort
SELECT 1 * + 23 AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-7983
SELECT ALL ( 14 ) DIV + 8 + 49 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL ( 14 ) / + 8 + 49 AS col1
----
50

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7985
SELECT ALL - + ( 16 ) AS col0, + 38 DIV 62 * - - 34 * - + 85 DIV - 82 * + + 63 - + 13 + 17 DIV + 58 * + 68
----
-16
-13

skipif mysql # not compatible
query II rowsort label-7985
SELECT ALL - + ( 16 ) AS col0, + 38 / 62 * - - 34 * - + 85 / - 82 * + + 63 - + 13 + 17 / + 58 * + 68
----
-16
-13

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

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

query I rowsort
SELECT ALL - 65 * + 42 + - + 65 + - ( + 55 ) * - 84
----
1825

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7988
SELECT - 7 DIV + + 58 AS col2, - ( - - 14 ) * 66 + - COUNT( DISTINCT + - 76 ) DIV + COUNT( * ) + - + CAST( NULL AS DECIMAL ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7988
SELECT - 7 / + + 58 AS col2, - ( - - 14 ) * 66 + - COUNT ( DISTINCT + - 76 ) / + COUNT ( * ) + - + CAST ( NULL AS REAL ) AS col0
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT - ( + SUM( DISTINCT + ( + - 99 ) ) ) + - 54
----
45

skipif mysql # not compatible
query I rowsort label-7989
SELECT - ( + SUM ( DISTINCT + ( + - 99 ) ) ) + - 54
----
45

query I rowsort
SELECT 84 * 53 AS col1
----
4452

query I rowsort
SELECT + 35 - - 15 + 48 + 6 * + 62 col0
----
470

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7992
SELECT - - 13 + + - COUNT( * ) * + - CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7992
SELECT - - 13 + + - COUNT ( * ) * + - CAST ( NULL AS REAL ) * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7993
SELECT ALL + CASE + 81 WHEN - - 43 + + ( NULLIF ( + - 31, - 27 * - 21 ) ) * - ( + 11 ) THEN 94 WHEN - + 91 THEN + CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL + CASE + 81 WHEN - - 43 + + ( NULLIF ( + - 31, - 27 * - 21 ) ) * - ( + 11 ) THEN 94 WHEN - + 91 THEN + CAST ( NULL AS REAL ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7994
SELECT DISTINCT + 16 * - 81 + - CASE CASE 79 WHEN - - 81 * 41 / + 95 THEN - ( 31 ) WHEN - + 6 THEN 46 * 31 ELSE ( - - 94 ) END WHEN + 41 * 32 * CAST( + 2 / 95 AS SIGNED ) THEN NULL WHEN - 11 + + 42 THEN - 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7994
SELECT DISTINCT + 16 * - 81 + - CASE CASE 79 WHEN - - 81 * 41 / + 95 THEN - ( 31 ) WHEN - + 6 THEN 46 * 31 ELSE ( - - 94 ) END WHEN + 41 * 32 * CAST ( + 2 / 95 AS INTEGER ) THEN NULL WHEN - 11 + + 42 THEN - 78 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7995
SELECT ALL + 0 * 61 + - 10 * 61 + + 98 * - CAST( 90 AS SIGNED ) + 81 + COUNT( * ) AS col0
----
-9348

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL + 0 * 61 + - 10 * 61 + + 98 * - CAST ( 90 AS INTEGER ) + 81 + COUNT ( * ) AS col0
----
-9348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7996
SELECT + CASE WHEN NOT + CAST( NULL AS SIGNED ) >= - 46 THEN + + 83 WHEN NOT 50 = 12 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7996
SELECT + CASE WHEN NOT + CAST ( NULL AS INTEGER ) >= - 46 THEN + + 83 WHEN NOT 50 = 12 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + 89 * + + 31 AS col2, - 71 AS col2
----
2759
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7998
SELECT - 93 * + 1 * - COUNT( * ), 24 DIV + 24 AS col1
----
93
1

skipif mysql # not compatible
query II rowsort label-7998
SELECT - 93 * + 1 * - COUNT ( * ), 24 / + 24 AS col1
----
93
1

query I rowsort
SELECT DISTINCT - 56 + - 7 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-8000
SELECT ALL 98 + - + 57 - - 48, ( + COUNT( + + 43 ) ) AS col2
----
89
1

skipif mysql # not compatible
query II rowsort label-8000
SELECT ALL 98 + - + 57 - - 48, ( + COUNT ( + + 43 ) ) AS col2
----
89
1

query I rowsort
SELECT - COALESCE ( 13, + 52, + + 52, 6 * + 57 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL + MIN( - 49 ) + 16
----
-33

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL + MIN ( - 49 ) + 16
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8003
SELECT + CAST( 15 AS SIGNED ) * 52 * - + 32 * + + 4 * 88
----
-8785920

skipif mysql # not compatible
query I rowsort label-8003
SELECT + CAST ( 15 AS INTEGER ) * 52 * - + 32 * + + 4 * 88
----
-8785920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8004
SELECT - 86 * CASE + CAST( NULL AS SIGNED ) WHEN 77 + + COUNT( * ) + - + 19 * + 13 * + + 86 * + - COUNT( DISTINCT - + 91 ) THEN + - 46 + 99 WHEN COUNT( * ) THEN + - 9 + 98 * - + 24 ELSE + 9 * - + COUNT( * ) END
----
774

skipif mysql # not compatible
query I rowsort label-8004
SELECT - 86 * CASE + CAST ( NULL AS INTEGER ) WHEN 77 + + COUNT ( * ) + - + 19 * + 13 * + + 86 * + - COUNT ( DISTINCT - + 91 ) THEN + - 46 + 99 WHEN COUNT ( * ) THEN + - 9 + 98 * - + 24 ELSE + 9 * - + COUNT ( * ) END
----
774

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8005
SELECT ALL + 85 * ( + CAST( NULL AS DECIMAL ) ) / + + 77 + 25 + - COUNT( * ) / - COUNT( * ) * - COUNT( * ) + - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL + 85 * ( + CAST ( NULL AS REAL ) ) / + + 77 + 25 + - COUNT ( * ) / - COUNT ( * ) * - COUNT ( * ) + - 39 AS col0
----
NULL

query II rowsort
SELECT ALL + 69, 28 AS col2
----
69
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT DISTINCT + COUNT( - + 44 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT + COUNT ( - + 44 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8008
SELECT DISTINCT COUNT( * ) * 99 + 70 DIV + COALESCE ( + 3, 20 + 19, - 39 DIV + 5 * - COUNT( * ) ) AS col1
----
122

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT COUNT ( * ) * 99 + 70 / + COALESCE ( + 3, 20 + 19, - 39 / + 5 * - COUNT ( * ) ) AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT COALESCE ( - COALESCE ( - 84, - - 15 ), - COUNT( * ) )
----
84

skipif mysql # not compatible
query I rowsort label-8009
SELECT COALESCE ( - COALESCE ( - 84, - - 15 ), - COUNT ( * ) )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8010
SELECT - 3 DIV - 28
----
0

skipif mysql # not compatible
query I rowsort label-8010
SELECT - 3 / - 28
----
0

query I rowsort
SELECT - 14 * + 63 AS col2
----
-882

query I rowsort
SELECT - NULLIF ( 74, - 72 * 37 + + + 61 ) * + 22 + + 97 + - + 71 AS col2
----
-1602

query I rowsort
SELECT COALESCE ( 90, ( + 43 ), + 98 )
----
90

query I rowsort
SELECT - 55 * - 36
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT - 67 + - - COUNT( * ) * + - 32 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-8015
SELECT - 67 + - - COUNT ( * ) * + - 32 AS col0
----
-99

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

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

query I rowsort
SELECT ALL + 58 * - - 95
----
5510

query II rowsort
SELECT DISTINCT + 7 AS col2, - 21 - - 83
----
7
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8019
SELECT DISTINCT + - ( 11 ) * - CASE - - 42 WHEN + + 69 + + - 2 * - + 44 * - 59 THEN - 13 / - - 44 WHEN + CASE + 11 WHEN 36 * + COUNT( * ) + + ( + - 39 ) + - + CAST( NULL AS SIGNED ) * - - 68 THEN + 32 * ( + 92 * + CAST( + ( 37 ) * + NULLIF ( + COUNT( * ), - 80 ) AS SIGNED ) ) ELSE 19 - + 21 END * + 61 THEN - 1 - - NULLIF ( COUNT( * ), NULLIF ( - 67, 65 - 80 * + COUNT( * ) ) * 56 ) * - 99 END - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8019
SELECT DISTINCT + - ( 11 ) * - CASE - - 42 WHEN + + 69 + + - 2 * - + 44 * - 59 THEN - 13 / - - 44 WHEN + CASE + 11 WHEN 36 * + COUNT ( * ) + + ( + - 39 ) + - + CAST ( NULL AS INTEGER ) * - - 68 THEN + 32 * ( + 92 * + CAST ( + ( 37 ) * + NULLIF ( + COUNT ( * ), - 80 ) AS INTEGER ) ) ELSE 19 - + 21 END * + 61 THEN - 1 - - NULLIF ( COUNT ( * ), NULLIF ( - 67, 65 - 80 * + COUNT ( * ) ) * 56 ) * - 99 END - 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8020
SELECT ALL + - 20 * NULLIF ( 64, - ( COUNT( * ) ) - - - 7 ), + 60 AS col1
----
-1280
60

skipif mysql # not compatible
query II rowsort label-8020
SELECT ALL + - 20 * NULLIF ( 64, - ( COUNT ( * ) ) - - - 7 ), + 60 AS col1
----
-1280
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8021
SELECT - CAST( + + 9 AS SIGNED ) + - - 9 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8021
SELECT - CAST ( + + 9 AS INTEGER ) + - - 9 AS col0
----
0

query II rowsort
SELECT + 52 + - - 32 - - 22, 12 AS col2
----
106
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT DISTINCT + MAX( DISTINCT - 13 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-8023
SELECT DISTINCT + MAX ( DISTINCT - 13 ) AS col1
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8024
SELECT DISTINCT + + NULLIF ( + + CAST( NULL AS SIGNED ), - 5 / - 58 * + - 61 * - 4 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8024
SELECT DISTINCT + + NULLIF ( + + CAST ( NULL AS INTEGER ), - 5 / - 58 * + - 61 * - 4 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8025
SELECT + + CAST( NULL AS SIGNED ) * + - NULLIF ( + - 27, + 76 * - 32 + + CAST( 46 AS SIGNED ) + 82 + - - MIN( 91 ) * 3 * + 22 * 72 ) * - + MAX( - 37 ) * 10 * 45 / 11 * - 60 + + CAST( 12 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8025
SELECT + + CAST ( NULL AS INTEGER ) * + - NULLIF ( + - 27, + 76 * - 32 + + CAST ( 46 AS INTEGER ) + 82 + - - MIN ( 91 ) * 3 * + 22 * 72 ) * - + MAX ( - 37 ) * 10 * 45 / 11 * - 60 + + CAST ( 12 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - - 64 + - 53
----
11

query II rowsort
SELECT - + 42 AS col0, - 73
----
-42
-73

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

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

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

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT + + COUNT ( * ) + 81 AS col1
----
82

query I rowsort
SELECT ALL - 79 * - 73 * 40 * - 78 AS col0
----
-17993040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8031
SELECT + - MAX( DISTINCT + - 25 ) DIV - 94 * + 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8031
SELECT + - MAX ( DISTINCT + - 25 ) / - 94 * + 38 AS col1
----
0

query I rowsort
SELECT ALL - 68 + - - 62 AS col1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8033
SELECT DISTINCT - + 3 * - MIN( DISTINCT 62 ) col2, CAST( NULL AS SIGNED ) + 52 + 37 * + + 1 * 80 * - + 0
----
186
NULL

skipif mysql # not compatible
query II rowsort label-8033
SELECT DISTINCT - + 3 * - MIN ( DISTINCT 62 ) col2, CAST ( NULL AS INTEGER ) + 52 + 37 * + + 1 * 80 * - + 0
----
186
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT ALL 94 + - MAX( + 29 ) + - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL 94 + - MAX ( + 29 ) + - COUNT ( * )
----
64

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

query I rowsort
SELECT + 68 + + 81
----
149

query I rowsort
SELECT ALL 38 * 56 AS col0
----
2128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8038
SELECT + + COUNT( * ) * 39 * 64 DIV - 82 + - 95
----
-125

skipif mysql # not compatible
query I rowsort label-8038
SELECT + + COUNT ( * ) * 39 * 64 / - 82 + - 95
----
-125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8039
SELECT ALL - NULLIF ( - COUNT( * ), - 71 ) + + + 80 DIV 71 + - SUM( + + 81 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL - NULLIF ( - COUNT ( * ), - 71 ) + + + 80 / 71 + - SUM ( + + 81 ) AS col0
----
-79

query I rowsort
SELECT ALL 65 + 13 * 64
----
897

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT ALL 33 - - + 9 * - 71 + ( + - 72 ) - COUNT( * ) AS col2
----
-679

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL 33 - - + 9 * - 71 + ( + - 72 ) - COUNT ( * ) AS col2
----
-679

query I rowsort
SELECT DISTINCT 50 * + CASE 90 WHEN + 80 + + 26 / 10 THEN + 67 - + 43 / - + 82 + 78 * - 9 + + 67 WHEN 52 THEN - - 50 + 91 - 76 * 54 END * - ( - 78 ) AS col0
----
NULL

query I rowsort
SELECT - 79 + - 35 + 33 + + 18 * - 35
----
-711

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT ALL 85 * + + SUM( DISTINCT - 42 ) * - 96 AS col1
----
342720

skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL 85 * + + SUM ( DISTINCT - 42 ) * - 96 AS col1
----
342720

query I rowsort
SELECT - 97 * + + 1 AS col0
----
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT - MAX( ALL - - 13 ) + - NULLIF ( + 59, + 7 ) + 13 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-8048
SELECT - MAX ( ALL - - 13 ) + - NULLIF ( + 59, + 7 ) + 13 AS col1
----
-59

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

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

query I rowsort
SELECT ALL 49 * - - ( 67 ) * + 49
----
160867

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL - 99 / + CASE - - 63 WHEN - COUNT( * ) THEN + 75 * COUNT( * ) + - 59 + + ( - 66 ) WHEN + + 9 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL - 99 / + CASE - - 63 WHEN - COUNT ( * ) THEN + 75 * COUNT ( * ) + - 59 + + ( - 66 ) WHEN + + 9 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - 13 + 2
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8054
SELECT ALL - 18 * - 60 AS col2, + 51 / + CAST( NULL AS SIGNED )
----
1080
NULL

skipif mysql # not compatible
query II rowsort label-8054
SELECT ALL - 18 * - 60 AS col2, + 51 / + CAST ( NULL AS INTEGER )
----
1080
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8055
SELECT DISTINCT - - 56 DIV - 35 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT - - 56 / - 35 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8056
SELECT + + ( MIN( - 61 ) ) * + + 82, 88 + 80 AS col0
----
-5002
168

skipif mysql # not compatible
query II rowsort label-8056
SELECT + + ( MIN ( - 61 ) ) * + + 82, 88 + 80 AS col0
----
-5002
168

query I rowsort
SELECT - + 38 * + 31 * 0 AS col2
----
0

query I rowsort
SELECT 34 * + - 42 AS col1
----
-1428

query I rowsort
SELECT ALL - 74 * 60 AS col2
----
-4440

query I rowsort
SELECT CASE - 81 WHEN + + 58 THEN NULL WHEN - 2 * + 10 / + - 50 + - 18 THEN + - 8 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8061
SELECT + CASE + 47 WHEN ( + 88 ) THEN 6 - + 64 WHEN - 18 * COALESCE ( - CASE + 45 WHEN - - 82 + 17 * - 82 THEN - + AVG ( + 99 ) WHEN + 43 / - 80 - - - 92 * 74 THEN NULL ELSE NULL END, - 33 - - 30, - 75 + + 62 ) - 96 + 54 THEN COUNT( * ) + + CAST( 87 + 34 AS SIGNED ) ELSE 16 * - 6 END * - ( + 3 ) AS col2
----
288

skipif mysql # not compatible
query I rowsort label-8061
SELECT + CASE + 47 WHEN ( + 88 ) THEN 6 - + 64 WHEN - 18 * COALESCE ( - CASE + 45 WHEN - - 82 + 17 * - 82 THEN - + AVG ( + 99 ) WHEN + 43 / - 80 - - - 92 * 74 THEN NULL ELSE NULL END, - 33 - - 30, - 75 + + 62 ) - 96 + 54 THEN COUNT ( * ) + + CAST ( 87 + 34 AS INTEGER ) ELSE 16 * - 6 END * - ( + 3 ) AS col2
----
288

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

query II rowsort
SELECT ALL - 83 * + + 85 * + 48 * + + 10 AS col2, 64
----
-3386400
64

query II rowsort
SELECT - 12 * + - 89 col1, 26
----
1068
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8065
SELECT ALL + NULLIF ( - - 12, + 64 DIV 83 + + 76 + - ( + - 94 ) * + 75 ) + - + 57 DIV 64 + 80 + 51
----
143

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL + NULLIF ( - - 12, + 64 / 83 + + 76 + - ( + - 94 ) * + 75 ) + - + 57 / 64 + 80 + 51
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8066
SELECT DISTINCT - - COUNT( * ) * COUNT( * ) * 81 DIV 62 * - - 93
----
93

skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT - - COUNT ( * ) * COUNT ( * ) * 81 / 62 * - - 93
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8067
SELECT ALL - 22 * - 74 * CAST( - + 25 AS SIGNED ) + - + COALESCE ( - 23, - 98 - - + 71 )
----
-40677

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL - 22 * - 74 * CAST ( - + 25 AS INTEGER ) + - + COALESCE ( - 23, - 98 - - + 71 )
----
-40677

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8068
SELECT ALL CASE 40 WHEN 46 THEN - ( 24 ) WHEN - - 36 * + MAX( 31 ) * + ( - - COALESCE ( 4, + 87 ) ) * - + ( - ( 28 ) ) - 38 + - MAX( 8 ) THEN - COUNT( * ) - + ( CAST( NULL AS SIGNED ) ) / 53 WHEN + 91 * + COUNT( * ) THEN 3 * 9 + 84 ELSE NULL END + COALESCE ( 62 + + 21, CAST( NULL AS SIGNED ) ) * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL CASE 40 WHEN 46 THEN - ( 24 ) WHEN - - 36 * + MAX ( 31 ) * + ( - - COALESCE ( 4, + 87 ) ) * - + ( - ( 28 ) ) - 38 + - MAX ( 8 ) THEN - COUNT ( * ) - + ( CAST ( NULL AS INTEGER ) ) / 53 WHEN + 91 * + COUNT ( * ) THEN 3 * 9 + 84 ELSE NULL END + COALESCE ( 62 + + 21, CAST ( NULL AS INTEGER ) ) * 21
----
NULL

query II rowsort
SELECT DISTINCT - + 51 + + - 25 AS col0, 60 AS col1
----
-76
60

query I rowsort
SELECT - 97 + - 97 + + + ( 44 ) * - COALESCE ( + 96, + 5 ) * + 8
----
-33986

query I rowsort
SELECT 82 * + 49
----
4018

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8072
SELECT ALL - + 1 + + ( - + 96 ) * 57 / - 17 + - CAST( NULL AS DECIMAL ) * 1 AS col2, + 76 * ( + 31 ) AS col0
----
NULL
2356

skipif mysql # not compatible
query II rowsort label-8072
SELECT ALL - + 1 + + ( - + 96 ) * 57 / - 17 + - CAST ( NULL AS REAL ) * 1 AS col2, + 76 * ( + 31 ) AS col0
----
NULL
2356

query I rowsort
SELECT ALL + + NULLIF ( COALESCE ( 15, - 27 - + 80 + 59 ), 96 ) + - 9
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT NULLIF ( - 12, 10 + - - 59 + + 39 + - - 7 * - COUNT( * ) * + 19 * 4 - 47 * SUM( DISTINCT + 94 ) + AVG ( - 79 ) * + 32 ) * - + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-8074
SELECT NULLIF ( - 12, 10 + - - 59 + + 39 + - - 7 * - COUNT ( * ) * + 19 * 4 - 47 * SUM ( DISTINCT + 94 ) + AVG ( - 79 ) * + 32 ) * - + COUNT ( * )
----
12

query II rowsort
SELECT DISTINCT 85 AS col2, 53
----
85
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT ALL COUNT( * ) - - ( SUM( 67 ) ) + + - ( + - NULLIF ( 81, 78 ) ) AS col2
----
149

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL COUNT ( * ) - - ( SUM ( 67 ) ) + + - ( + - NULLIF ( 81, 78 ) ) AS col2
----
149

query I rowsort
SELECT ALL - 66 * 47 col1
----
-3102

onlyif mysql # DIV for integer division: 
query I rowsort label-8078
SELECT 21 DIV - 12 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8078
SELECT 21 / - 12 AS col0
----
-1

query I rowsort
SELECT ALL 9 * + 42 * + + 26 AS col1
----
9828

query I rowsort
SELECT 5 * - + 22 AS col2
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT COALESCE ( - + 26, - - 11, + 12, ( - + COUNT( * ) ) ) * - 74
----
1924

skipif mysql # not compatible
query I rowsort label-8081
SELECT COALESCE ( - + 26, - - 11, + 12, ( - + COUNT ( * ) ) ) * - 74
----
1924

onlyif mysql # DIV for integer division: 
query II rowsort label-8082
SELECT - 13 col0, 94 DIV 63 AS col1
----
-13
1

skipif mysql # not compatible
query II rowsort label-8082
SELECT - 13 col0, 94 / 63 AS col1
----
-13
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8084
SELECT DISTINCT - 69, + CAST( NULL AS SIGNED ) * + - ( 42 ) AS col1
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-8084
SELECT DISTINCT - 69, + CAST ( NULL AS INTEGER ) * + - ( 42 ) AS col1
----
-69
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8085
SELECT 39 * - MAX( - - 4 ), MIN( - 3 ) * + 13 AS col1
----
-156
-39

skipif mysql # not compatible
query II rowsort label-8085
SELECT 39 * - MAX ( - - 4 ), MIN ( - 3 ) * + 13 AS col1
----
-156
-39

query I rowsort
SELECT 94 * - + 54 - + 74
----
-5150

query I rowsort
SELECT DISTINCT - 13 * - 57 AS col0
----
741

query I rowsort
SELECT + - NULLIF ( - - ( + 52 ), - 98 + + ( + 44 ) ) AS col1
----
-52

query I rowsort
SELECT 49 * + 35 * - 66
----
-113190

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT + 62 * - 3 * CASE + MAX( ALL 64 ) WHEN 33 THEN - COUNT( + 54 ) END - - 23 + - COUNT( * ) / + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-8090
SELECT + 62 * - 3 * CASE + MAX ( ALL 64 ) WHEN 33 THEN - COUNT ( + 54 ) END - - 23 + - COUNT ( * ) / + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT ALL + - 91 + - COUNT( DISTINCT NULLIF ( 91, - 11 - + 13 ) )
----
-92

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL + - 91 + - COUNT ( DISTINCT NULLIF ( 91, - 11 - + 13 ) )
----
-92

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

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

query I rowsort
SELECT ALL 70 + - + 85 AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8094
SELECT + 95 * + 69 + + + 54 + - 55 + - + CAST( NULL AS SIGNED ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8094
SELECT + 95 * + 69 + + + 54 + - 55 + - + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL + + 86 + + + 42 + - - 69
----
197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8096
SELECT 97 + CASE AVG ( ALL - + 70 ) WHEN COUNT( * ) + - 64 * + 27 * 92 + - 22 THEN NULL WHEN COUNT( * ) THEN NULL WHEN - 65 / - 31 * - + 91 + - 88 THEN + MAX( + - 53 ) WHEN - + CAST( - 71 AS SIGNED ) THEN 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8096
SELECT 97 + CASE AVG ( ALL - + 70 ) WHEN COUNT ( * ) + - 64 * + 27 * 92 + - 22 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN - 65 / - 31 * - + 91 + - 88 THEN + MAX ( + - 53 ) WHEN - + CAST ( - 71 AS INTEGER ) THEN 16 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8097
SELECT ALL - 27 + - COALESCE ( - SUM( ALL - 86 ), 95, + + NULLIF ( 92, - 11 ) ) DIV - + 63
----
-26

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL - 27 + - COALESCE ( - SUM ( ALL - 86 ), 95, + + NULLIF ( 92, - 11 ) ) / - + 63
----
-26

query I rowsort
SELECT 30 + + ( - 22 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT + COALESCE ( + 82, + MAX( ALL - - 12 ), ( + + COUNT( * ) ) ) col2
----
82

skipif mysql # not compatible
query I rowsort label-8099
SELECT + COALESCE ( + 82, + MAX ( ALL - - 12 ), ( + + COUNT ( * ) ) ) col2
----
82

query I rowsort
SELECT 77 + 61
----
138

query I rowsort
SELECT ALL 0 - + + 8 AS col1
----
-8

query II rowsort
SELECT DISTINCT 92 AS col0, + 90
----
92
90

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

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL SUM ( ALL - 59 )
----
-59

query II rowsort
SELECT - 98, 61 AS col2
----
-98
61

query I rowsort
SELECT 14 * - 49
----
-686

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT MIN( ALL 98 ) * - 70 * + - 25
----
171500

skipif mysql # not compatible
query I rowsort label-8106
SELECT MIN ( ALL 98 ) * - 70 * + - 25
----
171500

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8108
SELECT 20 + 50 DIV 46 * 31 AS col2, CASE - + 4 WHEN - 74 THEN 85 ELSE + ( - 78 ) * - COUNT( * ) END
----
51
78

skipif mysql # not compatible
query II rowsort label-8108
SELECT 20 + 50 / 46 * 31 AS col2, CASE - + 4 WHEN - 74 THEN 85 ELSE + ( - 78 ) * - COUNT ( * ) END
----
51
78

query II rowsort
SELECT - 8 AS col0, - ( - + 16 ) col2
----
-8
16

query I rowsort
SELECT ALL COALESCE ( + - 1, - 31 ) AS col0
----
-1

query I rowsort
SELECT 30 + 3 + + 67 AS col1
----
100

query I rowsort
SELECT 39 * + 19
----
741

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

skipif mysql # not compatible
query I rowsort label-8113
SELECT COUNT ( * ) + + 98 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT DISTINCT 49 * - - MIN( ALL + + 98 ) AS col1
----
4802

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT 49 * - - MIN ( ALL + + 98 ) AS col1
----
4802

query II rowsort
SELECT - 73 AS col1, + COALESCE ( + - 85, + 22 ) * + 35 + 45 AS col2
----
-73
-2930

query I rowsort
SELECT 29 * + 99 AS col1
----
2871

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT COALESCE ( + 33, MAX( - 9 ) )
----
33

skipif mysql # not compatible
query I rowsort label-8117
SELECT COALESCE ( + 33, MAX ( - 9 ) )
----
33

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

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

query I rowsort
SELECT + 66 + 53
----
119

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT + 41 + COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-8121
SELECT + 41 + COUNT ( * ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT + 85 * - 66 + 12 + + 42 - 45 + + 23 - + 97 * + COUNT( * )
----
-5675

skipif mysql # not compatible
query I rowsort label-8122
SELECT + 85 * - 66 + 12 + + 42 - 45 + + 23 - + 97 * + COUNT ( * )
----
-5675

query I rowsort
SELECT ALL 26 * - - 76 + - - 8
----
1984

query II rowsort
SELECT + 19 AS col1, + ( 85 ) * + 78 * - 6 AS col0
----
19
-39780

query I rowsort
SELECT ALL - 38 * - 9 + - 19 + - NULLIF ( 69, + 72 ) * + 39 AS col1
----
-2368

onlyif mysql # aggregate syntax: 
query II rowsort label-8126
SELECT 3 AS col1, + MIN( 86 ) AS col1
----
3
86

skipif mysql # not compatible
query II rowsort label-8126
SELECT 3 AS col1, + MIN ( 86 ) AS col1
----
3
86

query I rowsort
SELECT + 88 - - - 73 AS col2
----
15

query I rowsort
SELECT + 57 * 97
----
5529

query I rowsort
SELECT ALL - 39 * ( + + 48 ) + 58
----
-1814

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

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

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

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

query I rowsort
SELECT ALL - + 71 - + 74
----
-145

query II rowsort
SELECT 84 AS col0, 63 col2
----
84
63

query I rowsort
SELECT - 4 + + - COALESCE ( + 23, 19 ) AS col2
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-8135
SELECT DISTINCT ( 84 ) DIV + ( 70 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8135
SELECT DISTINCT ( 84 ) / + ( 70 ) AS col2
----
1

query I rowsort
SELECT ALL 68 - + - 76 AS col2
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-8137
SELECT DISTINCT ( 67 ) DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-8137
SELECT DISTINCT ( 67 ) / - 92
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8138
SELECT + 50 DIV - - ( - - 88 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8138
SELECT + 50 / - - ( - - 88 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT ALL + COALESCE ( 18, + + 74 + - - MAX( + - 43 ) * + 43 - COUNT( * ) + - 12 ) * - 60 AS col2
----
-1080

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL + COALESCE ( 18, + + 74 + - - MAX ( + - 43 ) * + 43 - COUNT ( * ) + - 12 ) * - 60 AS col2
----
-1080

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT DISTINCT + 30 * + 91 * + ( 58 ) * - - MIN( DISTINCT + 82 )
----
12983880

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT + 30 * + 91 * + ( 58 ) * - - MIN ( DISTINCT + 82 )
----
12983880

query I rowsort
SELECT ALL NULLIF ( - + 14, 52 * + 61 )
----
-14

query II rowsort
SELECT ALL ( 53 ), + 48 AS col0
----
53
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8144
SELECT DISTINCT ( + - COUNT( * ) ) AS col2, 46 * + 23 * - CAST( - COUNT( * ) AS SIGNED ) * + 48 + 39
----
-1
50823

skipif mysql # not compatible
query II rowsort label-8144
SELECT DISTINCT ( + - COUNT ( * ) ) AS col2, 46 * + 23 * - CAST ( - COUNT ( * ) AS INTEGER ) * + 48 + 39
----
-1
50823

query I rowsort
SELECT ALL - 68 + ( - 72 )
----
-140

onlyif mysql # DIV for integer division: 
query II rowsort label-8146
SELECT - 2 - + - 97 AS col1, 21 DIV + + 77 AS col0
----
95
0

skipif mysql # not compatible
query II rowsort label-8146
SELECT - 2 - + - 97 AS col1, 21 / + + 77 AS col0
----
95
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT DISTINCT NULLIF ( - + 26, - - COUNT( * ) * + 79 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-8147
SELECT DISTINCT NULLIF ( - + 26, - - COUNT ( * ) * + 79 ) AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8148
SELECT ALL - 41 + + CAST( NULL AS SIGNED ) - + CASE - 64 WHEN - NULLIF ( - 19, - CASE + 19 WHEN - 90 THEN NULL WHEN + MIN( - 51 ) * - - 57 + 13 THEN NULL ELSE + 52 END * COUNT( * ) - + 43 ) / - - COUNT( * ) + MIN( ALL + 25 ) THEN NULL WHEN CAST( NULL AS SIGNED ) THEN + 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL - 41 + + CAST ( NULL AS INTEGER ) - + CASE - 64 WHEN - NULLIF ( - 19, - CASE + 19 WHEN - 90 THEN NULL WHEN + MIN ( - 51 ) * - - 57 + 13 THEN NULL ELSE + 52 END * COUNT ( * ) - + 43 ) / - - COUNT ( * ) + MIN ( ALL + 25 ) THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN + 19 END
----
NULL

query I rowsort
SELECT DISTINCT + 86 + COALESCE ( 24, - 62 - + 97 )
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-8150
SELECT ALL + 6 DIV + 62 * + 60 + + 61
----
61

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL + 6 / + 62 * + 60 + + 61
----
61

query I rowsort
SELECT - 5 * + 22 * - + 86 AS col0
----
9460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8152
SELECT - 45 * - ( - ( 99 ) ) * 67 * ( + - 67 ) * + - 91 + + + CASE + COUNT( * ) WHEN - 12 - - + CAST( NULL AS SIGNED ) THEN - COUNT( * ) - + 2 WHEN - 76 * + 88 + + + 70 * - 13 + - 9 THEN + 0 * + 60 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8152
SELECT - 45 * - ( - ( 99 ) ) * 67 * ( + - 67 ) * + - 91 + + + CASE + COUNT ( * ) WHEN - 12 - - + CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) - + 2 WHEN - 76 * + 88 + + + 70 * - 13 + - 9 THEN + 0 * + 60 END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8153
SELECT + CAST ( NULL AS INTEGER ) * 87 + - 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8154
SELECT - ( - 48 ) DIV + MAX( ALL - 64 ) + + - 64 AS col0, 63 * + 96 AS col2
----
-64
6048

skipif mysql # not compatible
query II rowsort label-8154
SELECT - ( - 48 ) / + MAX ( ALL - 64 ) + + - 64 AS col0, 63 * + 96 AS col2
----
-64
6048

query II rowsort
SELECT ALL + ( + 21 ), 40 * 80 AS col2
----
21
3200

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT - - ( + 29 ) + + MIN( ALL 77 ) AS col1
----
106

skipif mysql # not compatible
query I rowsort label-8156
SELECT - - ( + 29 ) + + MIN ( ALL 77 ) AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT - COUNT( * ) * + 22 + + - 20
----
-42

skipif mysql # not compatible
query I rowsort label-8157
SELECT - COUNT ( * ) * + 22 + + - 20
----
-42

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

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

skipif mysql # not compatible
query I rowsort label-8159
SELECT + COUNT ( * ) * SUM ( DISTINCT - ( - 15 ) ) AS col1
----
15

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

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

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

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

query I rowsort
SELECT + - 39 col2
----
-39

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8164
SELECT + 74 * + 2 * CAST( NULL AS SIGNED ) / + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-8164
SELECT + 74 * + 2 * CAST ( NULL AS INTEGER ) / + 48
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT - NULLIF ( - COUNT( * ), - - MAX( + 91 ) + - 46 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8166
SELECT - NULLIF ( - COUNT ( * ), - - MAX ( + 91 ) + - 46 ) AS col1
----
1

query I rowsort
SELECT ALL NULLIF ( 44, + 81 + - 53 ) * + 36 AS col2
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT DISTINCT + 78 * - 59 + SUM( ALL - 77 )
----
-4679

skipif mysql # not compatible
query I rowsort label-8168
SELECT DISTINCT + 78 * - 59 + SUM ( ALL - 77 )
----
-4679

query I rowsort
SELECT ALL - 72 + + 3
----
-69

query I rowsort
SELECT + 14 - 64
----
-50

query I rowsort
SELECT DISTINCT 20 + 25 * - 17 AS col0
----
-405

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

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

query II rowsort
SELECT - 63 col1, 98 AS col2
----
-63
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8174
SELECT 9, COUNT( * ) DIV NULLIF ( MAX( DISTINCT - + 29 ), - + 73 ) AS col2
----
9
0

skipif mysql # not compatible
query II rowsort label-8174
SELECT 9, COUNT ( * ) / NULLIF ( MAX ( DISTINCT - + 29 ), - + 73 ) AS col2
----
9
0

query I rowsort
SELECT 45 + + - 22
----
23

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

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

query I rowsort
SELECT 90 - 91
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT DISTINCT + 0 + 16 - COALESCE ( - 96, + AVG ( + 54 ), 88 + + - ( 28 ), COALESCE ( - + COUNT( * ), - + 45 ) + + COUNT( * ) ) + CASE + 42 WHEN + ( + - COUNT( * ) ) THEN 43 ELSE NULL END - + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT + 0 + 16 - COALESCE ( - 96, + AVG ( + 54 ), 88 + + - ( 28 ), COALESCE ( - + COUNT ( * ), - + 45 ) + + COUNT ( * ) ) + CASE + 42 WHEN + ( + - COUNT ( * ) ) THEN 43 ELSE NULL END - + 69
----
NULL

query II rowsort
SELECT 64 + + 84 + 43, + 87 AS col2
----
191
87

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8181
SELECT ALL + 82 * + - CAST( + + 7 AS SIGNED ) * + - 17 * + - 68
----
-663544

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL + 82 * + - CAST ( + + 7 AS INTEGER ) * + - 17 * + - 68
----
-663544

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT DISTINCT MIN( - 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT MIN ( - 10 ) AS col2
----
-10

query I rowsort
SELECT - 90 + + 59 * + - NULLIF ( - 69, - ( - + 74 ) ) + - 80 + 18 + 82 col1
----
4001

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT ALL - MIN( + 12 ) - - 38 + + - 0 * ( - + 73 ) * MIN( + - 95 ) * + 79 + - 18 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL - MIN ( + 12 ) - - 38 + + - 0 * ( - + 73 ) * MIN ( + - 95 ) * + 79 + - 18 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT + MIN( - 25 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-8185
SELECT + MIN ( - 25 ) AS col1
----
-25

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

query I rowsort
SELECT + NULLIF ( 34, + - 82 + + 18 * - 94 )
----
34

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

query I rowsort
SELECT ALL + 48 - + 68
----
-20

query I rowsort
SELECT - 97 * - - 56
----
-5432

onlyif mysql # aggregate syntax: 
query II rowsort label-8191
SELECT ALL - 72 AS col2, 85 - - SUM( DISTINCT + 71 ) AS col1
----
-72
156

skipif mysql # not compatible
query II rowsort label-8191
SELECT ALL - 72 AS col2, 85 - - SUM ( DISTINCT + 71 ) AS col1
----
-72
156

query I rowsort
SELECT DISTINCT - 57 * + 1 AS col1
----
-57

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

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

query II rowsort
SELECT 82 AS col2, 7 + - + 41 AS col1
----
82
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT CASE + 26 WHEN - - 42 * 43 THEN COUNT( * ) WHEN 57 / - 57 + + - 94 + 52 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8195
SELECT CASE + 26 WHEN - - 42 * 43 THEN COUNT ( * ) WHEN 57 / - 57 + + - 94 + 52 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8196
SELECT MIN( 71 ) DIV + + 92 * 5 - 96 * + - 30 AS col1
----
2880

skipif mysql # not compatible
query I rowsort label-8196
SELECT MIN ( 71 ) / + + 92 * 5 - 96 * + - 30 AS col1
----
2880

query I rowsort
SELECT 14 - + 39 - - + 31 * - + 23
----
-738

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT 21 + + COUNT( * ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-8198
SELECT 21 + + COUNT ( * ) AS col0
----
22

query I rowsort
SELECT 24 * + 18
----
432

query I rowsort
SELECT DISTINCT + ( - + 46 ) * - 63 + + 85 AS col0
----
2983

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8202
SELECT DISTINCT 74 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT 74 / + 83
----
0

query I rowsort
SELECT ALL 33 + - ( ( - + 49 ) ) + - - 47
----
129

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8205
SELECT 59 - + COUNT( * ) * + ( - ( 10 ) ) / 49 + + CASE - NULLIF ( 31, - COUNT( * ) ) WHEN 35 THEN + 78 WHEN + + 29 THEN + 71 + + CAST( + - 6 AS SIGNED ) + - 16 * - 73 END + + - 93 + 88 * + 32 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8205
SELECT 59 - + COUNT ( * ) * + ( - ( 10 ) ) / 49 + + CASE - NULLIF ( 31, - COUNT ( * ) ) WHEN 35 THEN + 78 WHEN + + 29 THEN + 71 + + CAST ( + - 6 AS INTEGER ) + - 16 * - 73 END + + - 93 + 88 * + 32 col1
----
NULL

query I rowsort
SELECT 65 + + 3 * - 56 AS col2
----
-103

query I rowsort
SELECT ALL 73 + 38 * 10
----
453

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8209
SELECT DISTINCT - CAST( - 74 AS SIGNED ) * COUNT( ALL - 4 )
----
74

skipif mysql # not compatible
query I rowsort label-8209
SELECT DISTINCT - CAST ( - 74 AS INTEGER ) * COUNT ( ALL - 4 )
----
74

query I rowsort
SELECT ALL + 41 + ( - 7 ) AS col2
----
34

query I rowsort
SELECT 80 * + 6
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT - - ( COUNT( DISTINCT 41 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8212
SELECT - - ( COUNT ( DISTINCT 41 ) ) col0
----
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8214
SELECT 13 - + COUNT( * ), COUNT( DISTINCT + 6 ) * 78 + + MAX( + 47 ) + + 2 * 63 AS col0
----
12
251

skipif mysql # not compatible
query II rowsort label-8214
SELECT 13 - + COUNT ( * ), COUNT ( DISTINCT + 6 ) * 78 + + MAX ( + 47 ) + + 2 * 63 AS col0
----
12
251

query I rowsort
SELECT 59 - 19
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT 2 * 38 * MIN( ALL - 24 )
----
-1824

skipif mysql # not compatible
query I rowsort label-8216
SELECT 2 * 38 * MIN ( ALL - 24 )
----
-1824

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT 82 * + - 48 * + SUM( ALL - 16 ) * - 98 + + 65 - + 76 - 98 + + COUNT( * )
----
-6171756

skipif mysql # not compatible
query I rowsort label-8218
SELECT 82 * + - 48 * + SUM ( ALL - 16 ) * - 98 + + 65 - + 76 - 98 + + COUNT ( * )
----
-6171756

onlyif mysql # DIV for integer division: 
query I rowsort label-8219
SELECT DISTINCT 55 * 70 - 10 DIV - - 59 * 65 AS col0
----
3850

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT 55 * 70 - 10 / - - 59 * 65 AS col0
----
3850

query I rowsort
SELECT 61 * + 73 * + + 46
----
204838

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT ALL - COALESCE ( - COALESCE ( + 24, + - 60, 46 + + 37 + + 40 * 75 * + SUM( - 3 ) ), - 64 ) * - 8 + - 77 + 89
----
-180

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL - COALESCE ( - COALESCE ( + 24, + - 60, 46 + + 37 + + 40 * 75 * + SUM ( - 3 ) ), - 64 ) * - 8 + - 77 + 89
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8222
SELECT SUM( ALL - 80 ) / + CASE COUNT( * ) WHEN - ( + + COALESCE ( + CASE - 70 WHEN MAX( ( ( - 80 ) ) ) THEN 22 + + 91 WHEN + + 92 * CAST( NULL AS SIGNED ) + + 40 * + 78 THEN NULL ELSE NULL END, 57, + 67 * + 69 ) ) THEN 13 END + 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8222
SELECT SUM ( ALL - 80 ) / + CASE COUNT ( * ) WHEN - ( + + COALESCE ( + CASE - 70 WHEN MAX ( ( ( - 80 ) ) ) THEN 22 + + 91 WHEN + + 92 * CAST ( NULL AS INTEGER ) + + 40 * + 78 THEN NULL ELSE NULL END, 57, + 67 * + 69 ) ) THEN 13 END + 3 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT 53 * + 79 + - + COUNT( * ) * + + 74 + - 50 * + COUNT( * ) + + 11
----
4074

skipif mysql # not compatible
query I rowsort label-8224
SELECT 53 * + 79 + - + COUNT ( * ) * + + 74 + - 50 * + COUNT ( * ) + + 11
----
4074

query I rowsort
SELECT ALL 10 + - 72 + + 21
----
-41

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

query I rowsort
SELECT + 68 * + - 9 AS col2
----
-612

query I rowsort
SELECT - 74 + + 72 AS col1
----
-2

query II rowsort
SELECT + 50 AS col0, NULLIF ( + 88, + + 33 )
----
50
88

query I rowsort
SELECT DISTINCT + 72 + - NULLIF ( - + 91, - 89 ) AS col2
----
163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8231
SELECT ALL + 54 + - + ( - 8 ) DIV - + 31 * - - 12 * - 45 DIV 18 + + + 73 - - - 68 + - 21 * + ( - COUNT( * ) )
----
80

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL + 54 + - + ( - 8 ) / - + 31 * - - 12 * - 45 / 18 + + + 73 - - - 68 + - 21 * + ( - COUNT ( * ) )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT + COALESCE ( + 91, - - 95 * 11 ) * - COUNT( + 16 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-8232
SELECT + COALESCE ( + 91, - - 95 * 11 ) * - COUNT ( + 16 ) AS col0
----
-91

query I rowsort
SELECT ALL NULLIF ( + 18, - - 79 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT ALL + 55 - + + CASE 39 WHEN + 23 THEN COUNT( * ) WHEN - NULLIF ( - + MIN( + + 29 ), - - CASE WHEN 0 > + 18 * + 96 + + 60 / - 17 THEN NULL ELSE - + COALESCE ( 17, - 13 ) * + 70 END + 78 ) THEN NULL ELSE + 57 * - 76 - - 63 END
----
4324

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL + 55 - + + CASE 39 WHEN + 23 THEN COUNT ( * ) WHEN - NULLIF ( - + MIN ( + + 29 ), - - CASE WHEN 0 > + 18 * + 96 + + 60 / - 17 THEN NULL ELSE - + COALESCE ( 17, - 13 ) * + 70 END + 78 ) THEN NULL ELSE + 57 * - 76 - - 63 END
----
4324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8235
SELECT ALL COUNT( * ) / - 86 * CAST( NULL AS SIGNED ) * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL COUNT ( * ) / - 86 * CAST ( NULL AS INTEGER ) * 20
----
NULL

query I rowsort
SELECT ALL 78 - + - 75 + - - 5 * + 82
----
563

query I rowsort
SELECT + 84 * 63 AS col1
----
5292

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8238
SELECT ALL NULLIF ( - 86, - - 3 / + CAST( 6 AS DECIMAL ) ) col0, - COALESCE ( 51, - 60 ) + - ( - 84 )
----
-86
33

skipif mysql # not compatible
query II rowsort label-8238
SELECT ALL NULLIF ( - 86, - - 3 / + CAST ( 6 AS REAL ) ) col0, - COALESCE ( 51, - 60 ) + - ( - 84 )
----
-86
33

query I rowsort
SELECT + 1 + - 39
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8240
SELECT - ( - 16 ) + - + CAST( + MAX( ALL - 35 ) AS SIGNED ) - + COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8240
SELECT - ( - 16 ) + - + CAST ( + MAX ( ALL - 35 ) AS INTEGER ) - + COUNT ( * ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT NULLIF ( - COUNT( DISTINCT - 0 ), + + 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-8241
SELECT NULLIF ( - COUNT ( DISTINCT - 0 ), + + 58 )
----
-1

query I rowsort
SELECT + - ( - 65 ) - + 30 + + 77 * + 17 * - 63
----
-82432

query II rowsort
SELECT DISTINCT - 56 * - + 19 + 53 AS col2, + 72 AS col1
----
1117
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT + ( COUNT( * ) ) + + - 30 * 58 col0
----
-1739

skipif mysql # not compatible
query I rowsort label-8244
SELECT + ( COUNT ( * ) ) + + - 30 * 58 col0
----
-1739

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

query I rowsort
SELECT ALL 82 * + 97
----
7954

query I rowsort
SELECT + 52 + - 28
----
24

query I rowsort
SELECT ALL - 12 * - 87
----
1044

query II rowsort
SELECT 87 AS col0, + 56 + - + 46 AS col0
----
87
10

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8251
SELECT + - 68 DIV 93 * - 39
----
0

skipif mysql # not compatible
query I rowsort label-8251
SELECT + - 68 / 93 * - 39
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8253
SELECT DISTINCT - - 39 DIV - 19 + 76 + - 75 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT - - 39 / - 19 + 76 + - 75 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8254
SELECT ALL + + 73 DIV 70 + - 43 + + - ( - 99 ) * + + 75 * 32
----
237558

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL + + 73 / 70 + - 43 + + - ( - 99 ) * + + 75 * 32
----
237558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8255
SELECT + + COUNT( * ) DIV 41 * 62 - - - 51
----
-51

skipif mysql # not compatible
query I rowsort label-8255
SELECT + + COUNT ( * ) / 41 * 62 - - - 51
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT + 15 + 19 + + - SUM( - + 85 ) AS col0
----
119

skipif mysql # not compatible
query I rowsort label-8256
SELECT + 15 + 19 + + - SUM ( - + 85 ) AS col0
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-8257
SELECT ALL - 79 DIV + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL - 79 / + 83 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8258
SELECT + 81 DIV + 1 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-8258
SELECT + 81 / + 1 AS col1
----
81

query I rowsort
SELECT ALL - - 54 * + 32 + - NULLIF ( 85, - + 23 ) + + + 45 + + + 60 col0
----
1748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8260
SELECT ALL CAST( - 1 AS SIGNED ) * - + 32 + COUNT( * ) + - 24 * 41
----
-951

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL CAST ( - 1 AS INTEGER ) * - + 32 + COUNT ( * ) + - 24 * 41
----
-951

query I rowsort
SELECT DISTINCT + COALESCE ( + - 18, + 45 ) AS col1
----
-18

query I rowsort
SELECT + CASE - + 93 WHEN + 2 THEN 7 * 44 ELSE NULL END col2
----
NULL

query II rowsort
SELECT + 94 col1, 71 AS col0
----
94
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT DISTINCT COUNT( * ) * - + COUNT( DISTINCT + 62 ) + MAX( DISTINCT - - 66 ) + - 61 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT COUNT ( * ) * - + COUNT ( DISTINCT + 62 ) + MAX ( DISTINCT - - 66 ) + - 61 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8265
SELECT CASE + + 77 WHEN 40 THEN + SUM( DISTINCT + 12 ) WHEN - CAST( NULL AS SIGNED ) + - 10 / - 19 * - 26 * + 32 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8265
SELECT CASE + + 77 WHEN 40 THEN + SUM ( DISTINCT + 12 ) WHEN - CAST ( NULL AS INTEGER ) + - 10 / - 19 * - 26 * + 32 THEN NULL END
----
NULL

query II rowsort
SELECT DISTINCT + 91 AS col2, - COALESCE ( - NULLIF ( - 77, + 63 ), 57 ) * - - 65 + - - 64
----
91
-4941

onlyif mysql # aggregate syntax: 
query II rowsort label-8267
SELECT DISTINCT + 41 * 97 AS col1, COUNT( * ) + - 36 AS col0
----
3977
-35

skipif mysql # not compatible
query II rowsort label-8267
SELECT DISTINCT + 41 * 97 AS col1, COUNT ( * ) + - 36 AS col0
----
3977
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-8268
SELECT DISTINCT + 6 AS col2, - SUM( DISTINCT + 68 ) + 87 - - 60 * + 84 AS col2
----
6
5059

skipif mysql # not compatible
query II rowsort label-8268
SELECT DISTINCT + 6 AS col2, - SUM ( DISTINCT + 68 ) + 87 - - 60 * + 84 AS col2
----
6
5059

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8269
SELECT ALL 78 * COUNT( - CAST( NULL AS DECIMAL ) ) * - COUNT( * ) - - 17 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL 78 * COUNT ( - CAST ( NULL AS REAL ) ) * - COUNT ( * ) - - 17 AS col1
----
17

query I rowsort
SELECT - ( - 20 ) * 23 AS col0
----
460

onlyif mysql # DIV for integer division: 
query I rowsort label-8271
SELECT ALL + 50 DIV - 36
----
-1

skipif mysql # not compatible
query I rowsort label-8271
SELECT ALL + 50 / - 36
----
-1

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

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

query I rowsort
SELECT - ( + 93 ) + + 34 + + + 53 + + 86 * 22
----
1886

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8274
SELECT - 60 - - + CAST( NULL AS DECIMAL ) + + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8274
SELECT - 60 - - + CAST ( NULL AS REAL ) + + 15 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8275
SELECT - CAST( NULL AS SIGNED ) AS col0, 67 * 45 AS col2
----
NULL
3015

skipif mysql # not compatible
query II rowsort label-8275
SELECT - CAST ( NULL AS INTEGER ) AS col0, 67 * 45 AS col2
----
NULL
3015

query II rowsort
SELECT ALL ( - 95 ), + 45 AS col2
----
-95
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT ALL 15 * COUNT( * ) - - 17 + + 39
----
71

skipif mysql # not compatible
query I rowsort label-8277
SELECT ALL 15 * COUNT ( * ) - - 17 + + 39
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-8278
SELECT - ( 95 ) DIV - COALESCE ( + + 69, - ( - - 96 ) * + ( - 79 ) + 95 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8278
SELECT - ( 95 ) / - COALESCE ( + + 69, - ( - - 96 ) * + ( - 79 ) + 95 ) AS col0
----
1

query I rowsort
SELECT - 13 + 80 * + + 80
----
6387

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT DISTINCT + ( 62 ) * - COALESCE ( - + COUNT( * ), 27, - 90 ) * + 69 + - COUNT( * ) AS col2
----
4277

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT + ( 62 ) * - COALESCE ( - + COUNT ( * ), 27, - 90 ) * + 69 + - COUNT ( * ) AS col2
----
4277

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT ALL ( SUM( 64 ) ) col0
----
64

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL ( SUM ( 64 ) ) col0
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-8282
SELECT DISTINCT 28 AS col1, - 33 + - 24 * - 58 - + NULLIF ( + 46, COUNT( * ) ) + - 73 * + 56 * - 4 * 43
----
28
704449

skipif mysql # not compatible
query II rowsort label-8282
SELECT DISTINCT 28 AS col1, - 33 + - 24 * - 58 - + NULLIF ( + 46, COUNT ( * ) ) + - 73 * + 56 * - 4 * 43
----
28
704449

query II rowsort
SELECT ALL 56, ( - - NULLIF ( ( - + 94 ), + 99 * + 56 - 21 ) ) AS col1
----
56
-94

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

skipif mysql # not compatible
query I rowsort label-8284
SELECT DISTINCT + COUNT ( * ) / - CAST ( + 36 AS INTEGER ) AS col1
----
0

query II rowsort
SELECT DISTINCT 89 AS col1, + 60
----
89
60

query I rowsort
SELECT - + 94 - 5 * - ( + - 58 ) + + 67 col2
----
-317

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT - - COUNT( * ) - + ( - 19 ) * - COUNT( * ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-8287
SELECT - - COUNT ( * ) - + ( - 19 ) * - COUNT ( * ) AS col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8288
SELECT DISTINCT - CASE + - 87 WHEN - + COUNT( * ) THEN + MAX( DISTINCT + 90 ) + 35 * - COUNT( * ) * CAST( 12 AS SIGNED ) WHEN 11 / - 36 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT - CASE + - 87 WHEN - + COUNT ( * ) THEN + MAX ( DISTINCT + 90 ) + 35 * - COUNT ( * ) * CAST ( 12 AS INTEGER ) WHEN 11 / - 36 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8289
SELECT ALL + CAST( 22 AS SIGNED ) + + 82 + COUNT( * ) * + 91 * + 32
----
3016

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL + CAST ( 22 AS INTEGER ) + + 82 + COUNT ( * ) * + 91 * + 32
----
3016

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT - + 45 + - ( MAX( DISTINCT 74 ) ) * COUNT( - 66 ) * 43 * + COUNT( * ) * - 30 * + - 18 * 51 AS col2
----
-87632325

skipif mysql # not compatible
query I rowsort label-8290
SELECT - + 45 + - ( MAX ( DISTINCT 74 ) ) * COUNT ( - 66 ) * 43 * + COUNT ( * ) * - 30 * + - 18 * 51 AS col2
----
-87632325

query I rowsort
SELECT ALL + 39 + - - 87
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8292
SELECT ALL - COALESCE ( - 0, + 63 ) DIV - + 35 * - + SUM( ALL - + 73 ) + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL - COALESCE ( - 0, + 63 ) / - + 35 * - + SUM ( ALL - + 73 ) + - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8293
SELECT DISTINCT + 57, - 46 + - 10 + - ( 2 ) + - COUNT( * ) AS col1
----
57
-59

skipif mysql # not compatible
query II rowsort label-8293
SELECT DISTINCT + 57, - 46 + - 10 + - ( 2 ) + - COUNT ( * ) AS col1
----
57
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8294
SELECT ALL 5 DIV + 36 + - MIN( DISTINCT + + 13 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL 5 / + 36 + - MIN ( DISTINCT + + 13 ) AS col1
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8295
SELECT 90 * 25 + - ( - - 63 ) DIV + 58 * + COUNT( * )
----
2249

skipif mysql # not compatible
query I rowsort label-8295
SELECT 90 * 25 + - ( - - 63 ) / + 58 * + COUNT ( * )
----
2249

query I rowsort
SELECT 59 - + 11 * + + 91 * + + 36 * - 64 col0
----
2306363

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

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

query II rowsort
SELECT ALL 56 - - 40 - - 59 AS col2, - 16
----
155
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT ALL 9 * - CASE 89 WHEN + 1 THEN NULL WHEN - COUNT( ALL + 70 ) THEN + 73 * - 45 WHEN + 40 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL 9 * - CASE 89 WHEN + 1 THEN NULL WHEN - COUNT ( ALL + 70 ) THEN + 73 * - 45 WHEN + 40 THEN NULL END
----
NULL

query II rowsort
SELECT 58 + - 36, + 50 AS col2
----
22
50

query I rowsort
SELECT ALL 20 - + - 54 * - + 96
----
-5164

query I rowsort
SELECT 65 * 41 * + 18 * - 38
----
-1822860

query I rowsort
SELECT + 74 * + 89 + 55 AS col2
----
6641

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT ( - ( - 67 ) ) * COUNT( * ) / 10 * + + SUM( CASE - - 7 WHEN + ( + + 98 ) THEN ( + 76 ) / - 77 ELSE NULL END ) + - - 57 - + 29 + 81 + + 69 * + MAX( DISTINCT - COALESCE ( 70, 22 ) ) * - - 10 * + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-8304
SELECT ( - ( - 67 ) ) * COUNT ( * ) / 10 * + + SUM ( CASE - - 7 WHEN + ( + + 98 ) THEN ( + 76 ) / - 77 ELSE NULL END ) + - - 57 - + 29 + 81 + + 69 * + MAX ( DISTINCT - COALESCE ( 70, 22 ) ) * - - 10 * + + 34
----
NULL

query I rowsort
SELECT DISTINCT 49 * + 95 * 34 * - 60
----
-9496200

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT 3 + COUNT( * ) + 44 * + + 2 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-8306
SELECT 3 + COUNT ( * ) + 44 * + + 2 AS col1
----
92

query I rowsort
SELECT 80 + - - 19 + 75 + - 34 AS col1
----
140

query I rowsort
SELECT 19 * + 79 AS col2
----
1501

query I rowsort
SELECT + 24 * + 42 + - 79 - 63 + + 55
----
921

query I rowsort
SELECT ALL 76 * 4
----
304

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8311
SELECT - 34 DIV - ( + 30 ) AS col0, 74 - - - 16 DIV + ( + ( + COUNT( * ) ) )
----
1
58

skipif mysql # not compatible
query II rowsort label-8311
SELECT - 34 / - ( + 30 ) AS col0, 74 - - - 16 / + ( + ( + COUNT ( * ) ) )
----
1
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT 34 + - 69 * SUM( DISTINCT - 56 )
----
3898

skipif mysql # not compatible
query I rowsort label-8312
SELECT 34 + - 69 * SUM ( DISTINCT - 56 )
----
3898

query I rowsort
SELECT DISTINCT + 73 * 51 AS col1
----
3723

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8314
SELECT DISTINCT + - 91 + + CAST( + 53 AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-8314
SELECT DISTINCT + - 91 + + CAST ( + 53 AS INTEGER )
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-8315
SELECT 26 DIV - 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8315
SELECT 26 / - 92 AS col2
----
0

query I rowsort
SELECT 3 - - 59 * + 76 - + - 28
----
4515

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT ALL COUNT( * ) + - 13 * + COUNT( 80 ) + - 11 * - 6
----
54

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL COUNT ( * ) + - 13 * + COUNT ( 80 ) + - 11 * - 6
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-8318
SELECT ALL + MIN( DISTINCT - 6 ) + + 87, 45 AS col1
----
81
45

skipif mysql # not compatible
query II rowsort label-8318
SELECT ALL + MIN ( DISTINCT - 6 ) + + 87, 45 AS col1
----
81
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8319
SELECT DISTINCT - COALESCE ( + + 99, 51 * + 90 + 93 + - - MAX( DISTINCT - 2 ) * + COALESCE ( + + 33, - + 2 ) ) DIV + 54
----
-1

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT - COALESCE ( + + 99, 51 * + 90 + 93 + - - MAX ( DISTINCT - 2 ) * + COALESCE ( + + 33, - + 2 ) ) / + 54
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT - 72 + 92 + + - MAX( - 45 )
----
65

skipif mysql # not compatible
query I rowsort label-8320
SELECT - 72 + 92 + + - MAX ( - 45 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT ALL + 27 - 99 * ( - MIN( ALL + 42 ) )
----
4185

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL + 27 - 99 * ( - MIN ( ALL + 42 ) )
----
4185

query II rowsort
SELECT - 80, 71 col0
----
-80
71

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

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

query I rowsort
SELECT 49 * + ( + ( - 55 ) )
----
-2695

query I rowsort
SELECT ( - + 7 ) * + 97 + + - 0 + + 0 col1
----
-679

onlyif mysql # aggregate syntax: 
query II rowsort label-8326
SELECT ALL - 23, - 48 * + - CASE COUNT( * ) WHEN + 49 THEN 98 ELSE - 94 END AS col1
----
-23
-4512

skipif mysql # not compatible
query II rowsort label-8326
SELECT ALL - 23, - 48 * + - CASE COUNT ( * ) WHEN + 49 THEN 98 ELSE - 94 END AS col1
----
-23
-4512

query I rowsort
SELECT DISTINCT 68 * 6 col1
----
408

query I rowsort
SELECT ALL - 50 * + 32 AS col0
----
-1600

query I rowsort
SELECT ALL - COALESCE ( 86, - - 41 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT DISTINCT - ( + - COALESCE ( 96, - + 34 + - COUNT( * ) ) ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-8330
SELECT DISTINCT - ( + - COALESCE ( 96, - + 34 + - COUNT ( * ) ) ) AS col1
----
96

query I rowsort
SELECT 51 * - 63 + - ( 3 )
----
-3216

query II rowsort
SELECT 44 AS col0, - 84 - - - 1 AS col1
----
44
-85

query I rowsort
SELECT 90 * + ( + 18 ) * 85 * + 10
----
1377000

query I rowsort
SELECT + 94 * + ( + + 76 ) - ( - 7 ) col1
----
7151

onlyif mysql # DIV for integer division: 
query I rowsort label-8335
SELECT DISTINCT - 6 DIV + - 9
----
0

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT - 6 / + - 9
----
0

query I rowsort
SELECT ALL 48 * 32 AS col2
----
1536

query I rowsort
SELECT DISTINCT 92 + - 13 + - ( - 69 ) * + 73 * + 69 + - 0 AS col1
----
347632

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT COALESCE ( + + COUNT( * ), - 40 )
----
1

skipif mysql # not compatible
query I rowsort label-8338
SELECT COALESCE ( + + COUNT ( * ), - 40 )
----
1

query I rowsort
SELECT + 71 * 66
----
4686

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

query II rowsort
SELECT 81, + ( 82 ) AS col2
----
81
82

onlyif mysql # aggregate syntax: 
query II rowsort label-8342
SELECT - 30, - 28 + + COUNT( * ) + + 97 col0
----
-30
70

skipif mysql # not compatible
query II rowsort label-8342
SELECT - 30, - 28 + + COUNT ( * ) + + 97 col0
----
-30
70

query I rowsort
SELECT - 7 * - + 99 AS col0
----
693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8344
SELECT 72 + - 93 * - 43 * 62 * - CAST( NULL AS SIGNED ) + ( + 7 ) + - AVG ( 2 ) - - 54 + - - 89 * - 49 - - MIN( ALL 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8344
SELECT 72 + - 93 * - 43 * 62 * - CAST ( NULL AS INTEGER ) + ( + 7 ) + - AVG ( 2 ) - - 54 + - - 89 * - 49 - - MIN ( ALL 32 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8345
SELECT DISTINCT - 50 + CAST( NULL AS SIGNED ) + COUNT( * ) * + - 61 * 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT - 50 + CAST ( NULL AS INTEGER ) + COUNT ( * ) * + - 61 * 65 AS col1
----
NULL

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

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

query I rowsort
SELECT - - NULLIF ( + + 15, 37 ) AS col1
----
15

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8349
SELECT ALL + MAX( - 6 ) - + MIN( DISTINCT + + ( 62 ) ) - - - 18 + - - COUNT( * ) * - + 79 + + - CAST( + + 39 AS SIGNED ) AS col0
----
-204

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL + MAX ( - 6 ) - + MIN ( DISTINCT + + ( 62 ) ) - - - 18 + - - COUNT ( * ) * - + 79 + + - CAST ( + + 39 AS INTEGER ) AS col0
----
-204

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8352
SELECT + COALESCE ( 1, + 45 DIV 55 * 59 ) - + MAX( DISTINCT - 78 )
----
79

skipif mysql # not compatible
query I rowsort label-8352
SELECT + COALESCE ( 1, + 45 / 55 * 59 ) - + MAX ( DISTINCT - 78 )
----
79

query I rowsort
SELECT + 21 * + - 41 AS col1
----
-861

query I rowsort
SELECT - 27 * + - 72 col2
----
1944

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8356
SELECT - COUNT( * ) DIV - CASE WHEN NOT - 35 IS NULL THEN - ( - 16 ) + 93 * + 72 ELSE NULL END
----
0

skipif mysql # not compatible
query I rowsort label-8356
SELECT - COUNT ( * ) / - CASE WHEN NOT - 35 IS NULL THEN - ( - 16 ) + 93 * + 72 ELSE NULL END
----
0

query I rowsort
SELECT ALL + 54 - - 34 * + 84
----
2910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8358
SELECT - COUNT( * ) DIV + 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8358
SELECT - COUNT ( * ) / + 2 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8359
SELECT + CAST( 56 AS SIGNED ) / - - 51 + + NULLIF ( 88, + - COUNT( * ) ) + + + 41 * + 47 - + 96 * + 56 * 82 * - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8359
SELECT + CAST ( 56 AS INTEGER ) / - - 51 + + NULLIF ( 88, + - COUNT ( * ) ) + + + 41 * + 47 - + 96 * + 56 * 82 * - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 97 * 32
----
3104

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT + MAX( ALL 72 ) * 78 + 94
----
5710

skipif mysql # not compatible
query I rowsort label-8361
SELECT + MAX ( ALL 72 ) * 78 + 94
----
5710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8362
SELECT - CASE + 95 WHEN 61 THEN + 31 * + - COALESCE ( - - 24, + COALESCE ( 27, + CAST( NULL AS SIGNED ) * - 56 + - 42 * + 16 DIV + 38 ) - ( - 53 ) + 17, + 7 ) * - 4 ELSE + + 77 + - + MIN( 28 ) END - - - 22 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-8362
SELECT - CASE + 95 WHEN 61 THEN + 31 * + - COALESCE ( - - 24, + COALESCE ( 27, + CAST ( NULL AS INTEGER ) * - 56 + - 42 * + 16 / + 38 ) - ( - 53 ) + 17, + 7 ) * - 4 ELSE + + 77 + - + MIN ( 28 ) END - - - 22 AS col0
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8363
SELECT COALESCE ( - 73, + COALESCE ( - 52, CASE - - 55 WHEN - ( ( - 16 ) ) THEN 21 * 70 * - ( - ( 19 ) ) DIV - MAX( - 71 ) * - + 69 WHEN - ( 36 ) THEN + 4 END ), - - 87 )
----
-73

skipif mysql # not compatible
query I rowsort label-8363
SELECT COALESCE ( - 73, + COALESCE ( - 52, CASE - - 55 WHEN - ( ( - 16 ) ) THEN 21 * 70 * - ( - ( 19 ) ) / - MAX ( - 71 ) * - + 69 WHEN - ( 36 ) THEN + 4 END ), - - 87 )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8364
SELECT 64 * + 48 + + CAST( 81 AS SIGNED ) + - CASE 90 WHEN COUNT( * ) THEN + COUNT( * ) ELSE - 56 + 81 * + COUNT( + 97 ) END + - + 57 * - + 22 * - 61, 73 col0
----
-73366
73

skipif mysql # not compatible
query II rowsort label-8364
SELECT 64 * + 48 + + CAST ( 81 AS INTEGER ) + - CASE 90 WHEN COUNT ( * ) THEN + COUNT ( * ) ELSE - 56 + 81 * + COUNT ( + 97 ) END + - + 57 * - + 22 * - 61, 73 col0
----
-73366
73

query I rowsort
SELECT - 55 * - 15
----
825

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT - NULLIF ( - - 31, - + 49 ) + + COALESCE ( - 50, - 92, + ( 90 ) * - COUNT( * ), - 40 ) + + - COUNT( * ) * + + 9
----
-90

skipif mysql # not compatible
query I rowsort label-8366
SELECT - NULLIF ( - - 31, - + 49 ) + + COALESCE ( - 50, - 92, + ( 90 ) * - COUNT ( * ), - 40 ) + + - COUNT ( * ) * + + 9
----
-90

query I rowsort
SELECT - 1 + + 81 + - 31 + + 29
----
78

query II rowsort
SELECT ALL 13 * - + 39 AS col0, 35 * 44 * - + ( + + 88 ) * 98 AS col2
----
-507
-13280960

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT NULLIF ( + + 55, + + 74 * - + COUNT( * ) )
----
55

skipif mysql # not compatible
query I rowsort label-8369
SELECT NULLIF ( + + 55, + + 74 * - + COUNT ( * ) )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT ALL 71 * - + ( 35 ) * - - CASE 10 WHEN COUNT( * ) THEN + + 81 WHEN - 9 THEN NULL ELSE NULL END + + - 63 / - 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL 71 * - + ( 35 ) * - - CASE 10 WHEN COUNT ( * ) THEN + + 81 WHEN - 9 THEN NULL ELSE NULL END + + - 63 / - 67 AS col1
----
NULL

query I rowsort
SELECT ALL - 24 * + 15 + + 98 + 99 * + COALESCE ( - + 30, + + 41, 78 )
----
-3232

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT DISTINCT - - MAX( ALL - 82 ) * + SUM( ALL 20 ) + 39 col0
----
-1601

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT - - MAX ( ALL - 82 ) * + SUM ( ALL 20 ) + 39 col0
----
-1601

query I rowsort
SELECT + 25 * + + 71 AS col1
----
1775

query I rowsort
SELECT + - 9 + COALESCE ( - 99, + ( - 81 ) ) col0
----
-108

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8376
SELECT DISTINCT - 89 * 77 + - SUM( + 53 ) DIV + NULLIF ( - 96, 28 ) AS col1
----
-6853

skipif mysql # not compatible
query I rowsort label-8376
SELECT DISTINCT - 89 * 77 + - SUM ( + 53 ) / + NULLIF ( - 96, 28 ) AS col1
----
-6853

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT ALL COALESCE ( - SUM( DISTINCT + 53 ), + 68, - 86 ) * 68 col2
----
-3604

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL COALESCE ( - SUM ( DISTINCT + 53 ), + 68, - 86 ) * 68 col2
----
-3604

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8378
SELECT ALL + COUNT( - + 64 ) DIV MIN( DISTINCT + - 42 )
----
0

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL + COUNT ( - + 64 ) / MIN ( DISTINCT + - 42 )
----
0

query I rowsort
SELECT DISTINCT 67 * + COALESCE ( - - 90, + ( - + 8 ) )
----
6030

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

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

query I rowsort
SELECT + ( - 57 ) + + + 33 AS col2
----
-24

query I rowsort
SELECT ALL + 27 * 90
----
2430

query I rowsort
SELECT + 7 + - 62 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT ALL MIN( ALL - 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL MIN ( ALL - 38 ) AS col1
----
-38

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

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

query I rowsort
SELECT ALL 4 * - 44 * - ( + 4 ) AS col2
----
704

onlyif mysql # aggregate syntax: 
query II rowsort label-8387
SELECT + 15 + - 58 * - 24, ( + + MIN( DISTINCT + + ( 13 ) ) ) AS col0
----
1407
13

skipif mysql # not compatible
query II rowsort label-8387
SELECT + 15 + - 58 * - 24, ( + + MIN ( DISTINCT + + ( 13 ) ) ) AS col0
----
1407
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT ALL - COUNT( - 27 ) * 59 + + 22 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL - COUNT ( - 27 ) * 59 + + 22 AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8389
SELECT 69 AS col0, CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0
----
69
NULL

skipif mysql # not compatible
query II rowsort label-8389
SELECT 69 AS col0, CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0
----
69
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8391
SELECT - 38 + + 71 + - 75 - 2 + + 87 + 22 * + + CASE + 82 WHEN - 4 THEN + - COUNT( + 61 ) WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END * 65 col1, 21 + + + 62 * 73 * - CAST( NULL AS SIGNED ) / - 80, + + 61 / - CAST( NULL AS DECIMAL ) AS col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query III rowsort label-8391
SELECT - 38 + + 71 + - 75 - 2 + + 87 + 22 * + + CASE + 82 WHEN - 4 THEN + - COUNT ( + 61 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END * 65 col1, 21 + + + 62 * 73 * - CAST ( NULL AS INTEGER ) / - 80, + + 61 / - CAST ( NULL AS REAL ) AS col2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8392
SELECT ALL 30 / CASE + - COALESCE ( - - 75, + CAST( NULL AS SIGNED ) + - COUNT( * ) + - 77 * - 72 / + 24 ) WHEN - 72 THEN - + COUNT( * ) + 15 * 93 * + COUNT( * ) * 93 WHEN - + 93 THEN NULL END + - 45 * - + 13 * - - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL 30 / CASE + - COALESCE ( - - 75, + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + - 77 * - 72 / + 24 ) WHEN - 72 THEN - + COUNT ( * ) + 15 * 93 * + COUNT ( * ) * 93 WHEN - + 93 THEN NULL END + - 45 * - + 13 * - - 89
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8393
SELECT DISTINCT 93 DIV + 13 + - COUNT( * ) * + 44
----
-37

skipif mysql # not compatible
query I rowsort label-8393
SELECT DISTINCT 93 / + 13 + - COUNT ( * ) * + 44
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-8394
SELECT ALL 99 DIV 89 + - 33 + 96
----
64

skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL 99 / 89 + - 33 + 96
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8395
SELECT ALL - 79 DIV - - 21 + 32 * COUNT( * ) * + + 64 col0
----
2045

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL - 79 / - - 21 + 32 * COUNT ( * ) * + + 64 col0
----
2045

query I rowsort
SELECT - 72 * + 44
----
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT ALL + SUM( ALL + 54 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL + SUM ( ALL + 54 ) AS col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8398
SELECT + CAST( CAST( NULLIF ( + 0, + + 41 * + 20 * 50 ) AS SIGNED ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8398
SELECT + CAST ( CAST ( NULLIF ( + 0, + + 41 * + 20 * 50 ) AS INTEGER ) AS INTEGER ) AS col2
----
0

query I rowsort
SELECT - 89 + + 71
----
-18

query I rowsort
SELECT - 14 * 92
----
-1288

onlyif mysql # aggregate syntax: 
query II rowsort label-8401
SELECT + COUNT( * ) AS col1, + 17 + 70
----
1
87

skipif mysql # not compatible
query II rowsort label-8401
SELECT + COUNT ( * ) AS col1, + 17 + 70
----
1
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT + ( - CASE + 53 WHEN - 24 THEN + 95 END ) * MAX( ALL - + 42 ) * + COUNT( ALL - + 61 ) - - 77 + + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8402
SELECT + ( - CASE + 53 WHEN - 24 THEN + 95 END ) * MAX ( ALL - + 42 ) * + COUNT ( ALL - + 61 ) - - 77 + + 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8403
SELECT + 14, + 84 - + - NULLIF ( + 43, - 44 * - CASE 84 WHEN - 45 THEN COUNT( CAST( NULL AS SIGNED ) ) + - - 43 ELSE NULL END + + 79 ) * - CASE - 49 WHEN - 9 THEN 27 * - + 77 * 19 + COUNT( * ) WHEN - NULLIF ( + COUNT( * ), - - 39 - + COALESCE ( CASE MIN( ALL 21 ) WHEN + 40 THEN - 5 * - 45 + - 88 ELSE 42 END, 31, + 68 / - 90 ) + 67 * 44 ) THEN NULL ELSE NULL END + COALESCE ( ( - CASE - COALESCE ( 49, SUM( ALL + 60 ) * + 11 ) WHEN 29 + COUNT( * ) * - 94 THEN NULL WHEN 94 THEN + 39 ELSE + 77 + - 8 END ) + + 16, + 64 + + 5 ) / 35 AS col1
----
14
NULL

skipif mysql # not compatible
query II rowsort label-8403
SELECT + 14, + 84 - + - NULLIF ( + 43, - 44 * - CASE 84 WHEN - 45 THEN COUNT ( CAST ( NULL AS INTEGER ) ) + - - 43 ELSE NULL END + + 79 ) * - CASE - 49 WHEN - 9 THEN 27 * - + 77 * 19 + COUNT ( * ) WHEN - NULLIF ( + COUNT ( * ), - - 39 - + COALESCE ( CASE MIN ( ALL 21 ) WHEN + 40 THEN - 5 * - 45 + - 88 ELSE 42 END, 31, + 68 / - 90 ) + 67 * 44 ) THEN NULL ELSE NULL END + COALESCE ( ( - CASE - COALESCE ( 49, SUM ( ALL + 60 ) * + 11 ) WHEN 29 + COUNT ( * ) * - 94 THEN NULL WHEN 94 THEN + 39 ELSE + 77 + - 8 END ) + + 16, + 64 + + 5 ) / 35 AS col1
----
14
NULL

query I rowsort
SELECT - 75 * - 69 - - 55
----
5230

query I rowsort
SELECT ALL + - 79 - - - 2 AS col1
----
-81

query I rowsort
SELECT + 16 * 54
----
864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8407
SELECT - 83 * + - 73 + COALESCE ( + + MIN( + ( + CAST( NULL AS SIGNED ) ) ), + + 27 ) AS col1
----
6086

skipif mysql # not compatible
query I rowsort label-8407
SELECT - 83 * + - 73 + COALESCE ( + + MIN ( + ( + CAST ( NULL AS INTEGER ) ) ), + + 27 ) AS col1
----
6086

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT + MIN( + - 61 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-8408
SELECT + MIN ( + - 61 ) AS col0
----
-61

query II rowsort
SELECT ALL + 93 AS col2, + 74 AS col0
----
93
74

query I rowsort
SELECT - 52 * - 58 AS col1
----
3016

query I rowsort
SELECT - + COALESCE ( 73, + + 66 )
----
-73

query II rowsort
SELECT 34 AS col2, 61 * - 51 * + 0 * - 31 AS col0
----
34
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8413
SELECT - CASE + 53 WHEN COUNT( * ) + - 24 + - 93 + + - CAST( NULL AS SIGNED ) * + 5 * + + ( 35 ) THEN NULL WHEN + - 53 * + 40 THEN NULL ELSE 65 * + 13 + - 7 END
----
-838

skipif mysql # not compatible
query I rowsort label-8413
SELECT - CASE + 53 WHEN COUNT ( * ) + - 24 + - 93 + + - CAST ( NULL AS INTEGER ) * + 5 * + + ( 35 ) THEN NULL WHEN + - 53 * + 40 THEN NULL ELSE 65 * + 13 + - 7 END
----
-838

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT - COUNT( * ) + + 8 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-8414
SELECT - COUNT ( * ) + + 8 AS col1
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8415
SELECT + 19 * + CASE - 19 WHEN + - 20 * + + 61 + + MIN( 46 ) * 28 + 50 THEN + - ( AVG ( ALL - 10 ) ) DIV + + 79 ELSE 56 + 87 END * + 61
----
165737

skipif mysql # not compatible
query I rowsort label-8415
SELECT + 19 * + CASE - 19 WHEN + - 20 * + + 61 + + MIN ( 46 ) * 28 + 50 THEN + - ( AVG ( ALL - 10 ) ) / + + 79 ELSE 56 + 87 END * + 61
----
165737

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT DISTINCT COUNT( * ) * - + 16 * + 33
----
-528

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT COUNT ( * ) * - + 16 * + 33
----
-528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8417
SELECT ALL SUM( - + 61 ) * CAST( NULL AS SIGNED )
----
NULL

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

query I rowsort
SELECT ALL 91 * - + 88 AS col2
----
-8008

query I rowsort
SELECT 58 + + 14
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-8420
SELECT 74, COUNT( * ) + - 40 AS col0
----
74
-39

skipif mysql # not compatible
query II rowsort label-8420
SELECT 74, COUNT ( * ) + - 40 AS col0
----
74
-39

query II rowsort
SELECT - 43 col1, 17 AS col1
----
-43
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT CASE - 71 WHEN - 52 THEN + 58 + - - ( - COALESCE ( + - 16, - MAX( ALL + - 1 ) * 76 + - + 2, COUNT( * ) ) ) END / + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8422
SELECT CASE - 71 WHEN - 52 THEN + 58 + - - ( - COALESCE ( + - 16, - MAX ( ALL + - 1 ) * 76 + - + 2, COUNT ( * ) ) ) END / + 47 AS col1
----
NULL

query II rowsort
SELECT - 98, - COALESCE ( - + 45, - - 85 * 79 ) + - + 1 * + 12 AS col0
----
-98
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT MAX( DISTINCT + 1 ) + - 26
----
-25

skipif mysql # not compatible
query I rowsort label-8424
SELECT MAX ( DISTINCT + 1 ) + - 26
----
-25

query II rowsort
SELECT DISTINCT 4, 99 AS col0
----
4
99

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

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

query I rowsort
SELECT ALL 8 + + 21 * - 49 AS col1
----
-1021

query I rowsort
SELECT ALL 84 + + + 99 AS col1
----
183

query I rowsort
SELECT NULLIF ( + - 84, 38 ) * - 33 + - 76 AS col1
----
2696

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8430
SELECT ALL - 54 AS col2, CAST( - 52 AS SIGNED ) * - CAST( NULL AS SIGNED ) - + - 8 * - 4 * + - 59 + + 88
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-8430
SELECT ALL - 54 AS col2, CAST ( - 52 AS INTEGER ) * - CAST ( NULL AS INTEGER ) - + - 8 * - 4 * + - 59 + + 88
----
-54
NULL

query II rowsort
SELECT 60, + 80 AS col0
----
60
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8432
SELECT + 19 * + NULLIF ( - + 26, - + 11 + + - 94 ) + CAST( NULL AS SIGNED ) / 40 * + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT + 19 * + NULLIF ( - + 26, - + 11 + + - 94 ) + CAST ( NULL AS INTEGER ) / 40 * + 63 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8433
SELECT CAST( NULL AS SIGNED ) + + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8433
SELECT CAST ( NULL AS INTEGER ) + + 69 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8434
SELECT 3 AS col2, 3 + CASE AVG ( - 33 ) WHEN + MIN( ALL - ( + + 6 ) ) * 92 / - CAST( + - 49 AS SIGNED ) * + + NULLIF ( + + 47, - + 4 ) * - 82 THEN - COUNT( * ) WHEN - 77 * 65 THEN NULL END AS col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8434
SELECT 3 AS col2, 3 + CASE AVG ( - 33 ) WHEN + MIN ( ALL - ( + + 6 ) ) * 92 / - CAST ( + - 49 AS INTEGER ) * + + NULLIF ( + + 47, - + 4 ) * - 82 THEN - COUNT ( * ) WHEN - 77 * 65 THEN NULL END AS col0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT ALL + CASE + COUNT( * ) WHEN + 61 * - - 75 + + - COUNT( * ) + + COUNT( * ) THEN NULL WHEN ( + + 69 ) + - 46 THEN 66 END - + AVG ( + - 83 ) + - 32 * - + 95 * - + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL + CASE + COUNT ( * ) WHEN + 61 * - - 75 + + - COUNT ( * ) + + COUNT ( * ) THEN NULL WHEN ( + + 69 ) + - 46 THEN 66 END - + AVG ( + - 83 ) + - 32 * - + 95 * - + 64
----
NULL

query I rowsort
SELECT 49 + 49 AS col2
----
98

query I rowsort
SELECT ALL + - 7 * - + 88
----
616

onlyif mysql # aggregate syntax: 
query III rowsort label-8438
SELECT 6 col2, COUNT( * ), 96 AS col1
----
6
1
96

skipif mysql # not compatible
query III rowsort label-8438
SELECT 6 col2, COUNT ( * ), 96 AS col1
----
6
1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT ALL + 27 - MAX( DISTINCT + - 69 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL + 27 - MAX ( DISTINCT + - 69 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT 18 + - MAX( DISTINCT - - 23 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-8440
SELECT 18 + - MAX ( DISTINCT - - 23 ) AS col2
----
-5

query I rowsort
SELECT 64 + 34 AS col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8442
SELECT 95 * 89 DIV + 14 AS col2
----
603

skipif mysql # not compatible
query I rowsort label-8442
SELECT 95 * 89 / + 14 AS col2
----
603

onlyif mysql # aggregate syntax: 
query II rowsort label-8443
SELECT ALL - 69 / 48 * + - ( + ( CASE + - 6 WHEN + MAX( - + 16 ) THEN NULL WHEN - ( - 23 ) THEN + + 10 - CASE 6 WHEN - 50 THEN + + 20 WHEN ( - 98 ) THEN NULL WHEN - 71 - - - 92 + + - 47 * ( - 44 ) THEN NULL END - + 32 WHEN - 67 * - 6 + ( + 68 ) THEN NULL END ) ) * + 88 + - COUNT( * ), 23 AS col2
----
NULL
23

skipif mysql # not compatible
query II rowsort label-8443
SELECT ALL - 69 / 48 * + - ( + ( CASE + - 6 WHEN + MAX ( - + 16 ) THEN NULL WHEN - ( - 23 ) THEN + + 10 - CASE 6 WHEN - 50 THEN + + 20 WHEN ( - 98 ) THEN NULL WHEN - 71 - - - 92 + + - 47 * ( - 44 ) THEN NULL END - + 32 WHEN - 67 * - 6 + ( + 68 ) THEN NULL END ) ) * + 88 + - COUNT ( * ), 23 AS col2
----
NULL
23

onlyif mysql # aggregate syntax: 
query III rowsort label-8444
SELECT 98 * - 40 AS col2, - COUNT( * ) * - 69, - 91 AS col2
----
-3920
69
-91

skipif mysql # not compatible
query III rowsort label-8444
SELECT 98 * - 40 AS col2, - COUNT ( * ) * - 69, - 91 AS col2
----
-3920
69
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8445
SELECT + 50 * + COUNT( * ) DIV + CASE 28 WHEN + - 33 THEN NULL WHEN - ( ( + ( + 18 ) ) ) THEN - 45 ELSE + 4 + 99 + 92 END DIV - - 4
----
0

skipif mysql # not compatible
query I rowsort label-8445
SELECT + 50 * + COUNT ( * ) / + CASE 28 WHEN + - 33 THEN NULL WHEN - ( ( + ( + 18 ) ) ) THEN - 45 ELSE + 4 + 99 + 92 END / - - 4
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8446
SELECT + 94, MIN( ALL - - 69 ) * 28 + - - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2
----
94
NULL

skipif mysql # not compatible
query II rowsort label-8446
SELECT + 94, MIN ( ALL - - 69 ) * 28 + - - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2
----
94
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8447
SELECT 75 + + CAST( 83 AS SIGNED ) + - COUNT( * ) + 24
----
181

skipif mysql # not compatible
query I rowsort label-8447
SELECT 75 + + CAST ( 83 AS INTEGER ) + - COUNT ( * ) + 24
----
181

query I rowsort
SELECT - 16 * - 73 col1
----
1168

query I rowsort
SELECT ALL + 28 * ( + - 65 )
----
-1820

onlyif mysql # DIV for integer division: 
query I rowsort label-8450
SELECT 84 + - 7 DIV - ( - 58 ) * - - ( - 88 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8450
SELECT 84 + - 7 / - ( - 58 ) * - - ( - 88 ) AS col0
----
84

query I rowsort
SELECT 58 * + + 77
----
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT SUM( 92 ) + + 34 AS col0
----
126

skipif mysql # not compatible
query I rowsort label-8452
SELECT SUM ( 92 ) + + 34 AS col0
----
126

query I rowsort
SELECT DISTINCT - 51 + + - 33 col0
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8454
SELECT ALL COALESCE ( COUNT( * ), + - 12 * + CASE WHEN NOT + 30 IS NULL THEN - COUNT( * ) ELSE - 77 * - COUNT( * ) * - MIN( ALL - 47 ) END + - + SUM( + - 56 ) * - + 12 * MIN( DISTINCT - 17 ) * - NULLIF ( + 90, - - COUNT( * ) ) + + 43 * - + COALESCE ( + - 17, 2 ) ) DIV + 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL COALESCE ( COUNT ( * ), + - 12 * + CASE WHEN NOT + 30 IS NULL THEN - COUNT ( * ) ELSE - 77 * - COUNT ( * ) * - MIN ( ALL - 47 ) END + - + SUM ( + - 56 ) * - + 12 * MIN ( DISTINCT - 17 ) * - NULLIF ( + 90, - - COUNT ( * ) ) + + 43 * - + COALESCE ( + - 17, 2 ) ) / + 69 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8455
SELECT ALL 90 + - - 95 + - MIN( DISTINCT + 38 ) * 18 AS col2, 0 + ( + + 50 )
----
-499
50

skipif mysql # not compatible
query II rowsort label-8455
SELECT ALL 90 + - - 95 + - MIN ( DISTINCT + 38 ) * 18 AS col2, 0 + ( + + 50 )
----
-499
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8456
SELECT 9 + + 84 DIV - 59 + - 28 + + 15
----
-5

skipif mysql # not compatible
query I rowsort label-8456
SELECT 9 + + 84 / - 59 + - 28 + + 15
----
-5

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8458
SELECT 83 * + SUM( ALL - - 18 ) * - 13 + + - 78, - 71 * - 40 AS col0
----
-19500
2840

skipif mysql # not compatible
query II rowsort label-8458
SELECT 83 * + SUM ( ALL - - 18 ) * - 13 + + - 78, - 71 * - 40 AS col0
----
-19500
2840

query I rowsort
SELECT ALL - 43 * + ( + 23 )
----
-989

query I rowsort
SELECT 99 * + + 40 AS col1
----
3960

query I rowsort
SELECT 34 * + - 30 * - 23 col1
----
23460

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT CASE 82 WHEN 34 - - 0 + - 22 * - MAX( DISTINCT + 45 ) * - CASE - - 67 WHEN COUNT( * ) + - MIN( ALL 52 ) THEN 72 WHEN + 14 THEN - 90 * 64 * - - 1 END THEN - 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8462
SELECT CASE 82 WHEN 34 - - 0 + - 22 * - MAX ( DISTINCT + 45 ) * - CASE - - 67 WHEN COUNT ( * ) + - MIN ( ALL 52 ) THEN 72 WHEN + 14 THEN - 90 * 64 * - - 1 END THEN - 65 ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8463
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8464
SELECT - 4 / - + COUNT( * ) + COUNT( * ) + + CASE + 29 WHEN 32 THEN ( MAX( ALL + + 75 ) ) + + 3 / 54 / CAST( NULL AS DECIMAL ) END * 91 * + - AVG ( ( - 58 ) ) * 77 + + 68 * MAX( DISTINCT 39 ) - - 61 * + 62 * + 46 * + + COUNT( * ) + + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8464
SELECT - 4 / - + COUNT ( * ) + COUNT ( * ) + + CASE + 29 WHEN 32 THEN ( MAX ( ALL + + 75 ) ) + + 3 / 54 / CAST ( NULL AS REAL ) END * 91 * + - AVG ( ( - 58 ) ) * 77 + + 68 * MAX ( DISTINCT 39 ) - - 61 * + 62 * + 46 * + + COUNT ( * ) + + 91 AS col1
----
NULL

query I rowsort
SELECT + + 84 * - 45
----
-3780

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT + - 79 + + 98 * - 0 + - + 67 + - NULLIF ( + 56, + CASE - + 69 WHEN + 21 THEN - ( 70 ) * - 17 + + - 58 + + COALESCE ( - 32, - - COUNT( * ) ) + + 38 ELSE NULL END + + MAX( - ( + + 9 ) ) * 31 ) AS col2
----
-202

skipif mysql # not compatible
query I rowsort label-8466
SELECT + - 79 + + 98 * - 0 + - + 67 + - NULLIF ( + 56, + CASE - + 69 WHEN + 21 THEN - ( 70 ) * - 17 + + - 58 + + COALESCE ( - 32, - - COUNT ( * ) ) + + 38 ELSE NULL END + + MAX ( - ( + + 9 ) ) * 31 ) AS col2
----
-202

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT ALL + 40 * - CASE - 5 WHEN 17 THEN - - 18 + + 91 - - NULLIF ( COALESCE ( + ( - 60 ), + + SUM( ALL - + 41 ), + - 46 * - - AVG ( + + 39 ) ), + - MAX( DISTINCT 45 ) + - + NULLIF ( 61, - ( - - 22 ) / - 86 ) / 68 * + 36 ) + + + 65 * + + 36 + + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL + 40 * - CASE - 5 WHEN 17 THEN - - 18 + + 91 - - NULLIF ( COALESCE ( + ( - 60 ), + + SUM ( ALL - + 41 ), + - 46 * - - AVG ( + + 39 ) ), + - MAX ( DISTINCT 45 ) + - + NULLIF ( 61, - ( - - 22 ) / - 86 ) / 68 * + 36 ) + + + 65 * + + 36 + + - COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8468
SELECT - 34 DIV 35 DIV + 23 * - - 68 * 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8468
SELECT - 34 / 35 / + 23 * - - 68 * 56 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL 61 * - COUNT ( ( + 37 ) ) AS col2
----
-61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT ALL - CASE COUNT( * ) WHEN + MAX( DISTINCT + + 59 ) THEN - + 78 + + 45 WHEN - + 85 THEN - - 9 END * - 12 + - ( - 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL - CASE COUNT ( * ) WHEN + MAX ( DISTINCT + + 59 ) THEN - + 78 + + 45 WHEN - + 85 THEN - - 9 END * - 12 + - ( - 6 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8472
SELECT DISTINCT + COALESCE ( + 24, 53 * + + 67 - - + COUNT( * ) DIV - 27 + - SUM( - - 9 ) ) * - 98
----
-2352

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT + COALESCE ( + 24, 53 * + + 67 - - + COUNT ( * ) / - 27 + - SUM ( - - 9 ) ) * - 98
----
-2352

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

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

query I rowsort
SELECT - - 19 - - - 61 AS col1
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-8475
SELECT - 62 DIV 46
----
-1

skipif mysql # not compatible
query I rowsort label-8475
SELECT - 62 / 46
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT ALL 68 + + NULLIF ( - - 14, - 76 * COUNT( * ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL 68 + + NULLIF ( - - 14, - 76 * COUNT ( * ) ) AS col1
----
82

query I rowsort
SELECT - 39 * 47
----
-1833

query I rowsort
SELECT - ( - CASE + - AVG ( + 54 ) WHEN 44 THEN + + 98 WHEN + 5 / 10 + 75 / + 37 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT + 9 * + COUNT( * ) * SUM( DISTINCT + 17 ) AS col0
----
153

skipif mysql # not compatible
query I rowsort label-8479
SELECT + 9 * + COUNT ( * ) * SUM ( DISTINCT + 17 ) AS col0
----
153

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

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT 74 + - + CAST ( NULL AS INTEGER ) + - - 90 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT DISTINCT - COUNT( * ) + 75 * COUNT( * ) + - - 25 + + - 14 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-8482
SELECT DISTINCT - COUNT ( * ) + 75 * COUNT ( * ) + - - 25 + + - 14 AS col0
----
85

query I rowsort
SELECT DISTINCT 67 + + - 43
----
24

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

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

query I rowsort
SELECT ALL + ( - 26 ) + + 29 + + + 85 * + - 11
----
-932

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT DISTINCT MIN( - 63 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-8486
SELECT DISTINCT MIN ( - 63 ) AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8487
SELECT ALL - MIN( DISTINCT + 45 ) * - 32, ( - + 28 ) * - NULLIF ( - + CAST( - 70 AS SIGNED ), + 58 / - + 97 ) + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) col1
----
1440
NULL

skipif mysql # not compatible
query II rowsort label-8487
SELECT ALL - MIN ( DISTINCT + 45 ) * - 32, ( - + 28 ) * - NULLIF ( - + CAST ( - 70 AS INTEGER ), + 58 / - + 97 ) + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) col1
----
1440
NULL

query I rowsort
SELECT + 67 + - 78 AS col0
----
-11

query I rowsort
SELECT - 73 * 97 AS col0
----
-7081

query II rowsort
SELECT - 62 AS col0, 14
----
-62
14

query I rowsort
SELECT - 37 + - - 93 AS col0
----
56

query I rowsort
SELECT + 42 * - 89 AS col2
----
-3738

query I rowsort
SELECT ALL + 2 - + 29 AS col2
----
-27

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

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL - CAST ( NULL AS INTEGER ) / + + CAST ( + 47 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT - - MAX( ALL 48 ) * 17
----
816

skipif mysql # not compatible
query I rowsort label-8495
SELECT - - MAX ( ALL 48 ) * 17
----
816

onlyif mysql # aggregate syntax: 
query II rowsort label-8496
SELECT - + 99 * COUNT( * ) + + 74 + - 53 AS col1, + 24
----
-78
24

skipif mysql # not compatible
query II rowsort label-8496
SELECT - + 99 * COUNT ( * ) + + 74 + - 53 AS col1, + 24
----
-78
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8497
SELECT ALL + + COALESCE ( + SUM( 18 ), - COALESCE ( - 8, + CAST( NULL AS SIGNED ), - + 67 * + 83 ), - + 54 DIV 31 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL + + COALESCE ( + SUM ( 18 ), - COALESCE ( - 8, + CAST ( NULL AS INTEGER ), - + 67 * + 83 ), - + 54 / 31 ) AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8498
SELECT 30 * - - 16 + + 36 + + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT 30 * - - 16 + + 36 + + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + - COALESCE ( + 60, - 53 * 83, 87 + + - 98 ) + + 89 * + 35 + + CASE - 44 WHEN + 80 THEN 76 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8500
SELECT + ( + 49 ) * 38 DIV - COUNT( ALL - 44 ) col0
----
-1862

skipif mysql # not compatible
query I rowsort label-8500
SELECT + ( + 49 ) * 38 / - COUNT ( ALL - 44 ) col0
----
-1862

query I rowsort
SELECT + 5 * 45 + 90 AS col2
----
315

query II rowsort
SELECT 75 * + 39 + + + 78 AS col0, - 2 AS col2
----
3003
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8503
SELECT - MAX( + 38 ) DIV + COUNT( * ) + - + 64 + ( 10 ) + 70 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-8503
SELECT - MAX ( + 38 ) / + COUNT ( * ) + - + 64 + ( 10 ) + 70 AS col2
----
-22

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

skipif mysql # not compatible
query I rowsort label-8504
SELECT DISTINCT + CAST ( - 85 AS INTEGER ) col0
----
-85

query I rowsort
SELECT ALL - 83 * + - 98
----
8134

query I rowsort
SELECT + - 72 * + + 26 - + 85 AS col0
----
-1957

query I rowsort
SELECT DISTINCT - + 18 * 65 * + + 30
----
-35100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8508
SELECT + 8 * ( - 65 ) + - 45 + 93 / - + 96 + + CAST( NULL AS SIGNED ) + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-8508
SELECT + 8 * ( - 65 ) + - 45 + 93 / - + 96 + + CAST ( NULL AS INTEGER ) + - 0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT + 51 + - + 73 + - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-8510
SELECT + 51 + - + 73 + - COUNT ( * )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT + CASE + COUNT( * ) WHEN + 90 THEN + 79 + CASE + 65 WHEN + ( + COUNT( * ) ) THEN COUNT( * ) END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT + CASE + COUNT ( * ) WHEN + 90 THEN + 79 + CASE + 65 WHEN + ( + COUNT ( * ) ) THEN COUNT ( * ) END ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8512
SELECT + 52 * 80 * CAST( NULL AS DECIMAL ) + + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8512
SELECT + 52 * 80 * CAST ( NULL AS REAL ) + + 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8513
SELECT ALL 91 DIV - COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL 91 / - COUNT ( * ) AS col0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-8514
SELECT + COUNT( * ) + - - 54 AS col2, - 22 AS col2
----
55
-22

skipif mysql # not compatible
query II rowsort label-8514
SELECT + COUNT ( * ) + - - 54 AS col2, - 22 AS col2
----
55
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT ALL - 19 * - + ( 41 ) + - COUNT( * ) + - 44 * 71 AS col1
----
-2346

skipif mysql # not compatible
query I rowsort label-8515
SELECT ALL - 19 * - + ( 41 ) + - COUNT ( * ) + - 44 * 71 AS col1
----
-2346

query I rowsort
SELECT DISTINCT 26 * - 77 * + 11
----
-22022

query I rowsort
SELECT + 97 + + 29
----
126

query I rowsort
SELECT + 55 * + 55
----
3025

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8520
SELECT - CAST( 87 AS SIGNED ) AS col2, + 43 + 32 + + COUNT( * ) - - 34 * MAX( DISTINCT + 34 ) col2
----
-87
1232

skipif mysql # not compatible
query II rowsort label-8520
SELECT - CAST ( 87 AS INTEGER ) AS col2, + 43 + 32 + + COUNT ( * ) - - 34 * MAX ( DISTINCT + 34 ) col2
----
-87
1232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8521
SELECT DISTINCT + SUM( DISTINCT - 95 ) DIV - 4 + - 38 + - 4 * MIN( DISTINCT 54 )
----
-231

skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT + SUM ( DISTINCT - 95 ) / - 4 + - 38 + - 4 * MIN ( DISTINCT 54 )
----
-231

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT DISTINCT - COUNT( * ) * 43 * + 5 * - COUNT( * ) * + ( ( - 43 ) ) AS col0
----
-9245

skipif mysql # not compatible
query I rowsort label-8523
SELECT DISTINCT - COUNT ( * ) * 43 * + 5 * - COUNT ( * ) * + ( ( - 43 ) ) AS col0
----
-9245

query II rowsort
SELECT ALL ( 11 ) AS col0, - 40 AS col1
----
11
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8525
SELECT - - CAST( - 43 AS SIGNED ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-8525
SELECT - - CAST ( - 43 AS INTEGER ) AS col0
----
-43

query I rowsort
SELECT - 11 * - - 17 + - 7
----
-194

query I rowsort
SELECT ALL - - 45 + - 20 col1
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-8528
SELECT MIN( + 98 ) * - 49 - 42 AS col0, 11
----
-4844
11

skipif mysql # not compatible
query II rowsort label-8528
SELECT MIN ( + 98 ) * - 49 - 42 AS col0, 11
----
-4844
11

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

query II rowsort
SELECT + COALESCE ( + 15, - 91, + ( + 81 ) ), 49 + - + 94 * ( - 3 ) AS col1
----
15
331

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8533
SELECT + 24 * 11 DIV 37 - - 3 + - 17 + + ( - 45 ) col2
----
-52

skipif mysql # not compatible
query I rowsort label-8533
SELECT + 24 * 11 / 37 - - 3 + - 17 + + ( - 45 ) col2
----
-52

query II rowsort
SELECT ALL + 97 + 19 AS col2, - 3 + - 7 AS col1
----
116
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT 52 * + 36 + + COUNT( * ) - - 47 + - 49
----
1871

skipif mysql # not compatible
query I rowsort label-8535
SELECT 52 * + 36 + + COUNT ( * ) - - 47 + - 49
----
1871

query I rowsort
SELECT + 57 * - - 18 - + 68
----
958

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT ALL + 5 * SUM( ALL + 71 )
----
355

skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL + 5 * SUM ( ALL + 71 )
----
355

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8538
SELECT + CAST( NULL AS SIGNED ) * - 55 - - + 35 AS col2, 49 DIV - + 31
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8538
SELECT + CAST ( NULL AS INTEGER ) * - 55 - - + 35 AS col2, 49 / - + 31
----
NULL
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8539
SELECT ALL - ( - + CAST( - MAX( 89 ) AS SIGNED ) ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL - ( - + CAST ( - MAX ( 89 ) AS INTEGER ) ) AS col1
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8540
SELECT DISTINCT NULLIF ( - 42, - COUNT( * ) * + MIN( DISTINCT - + ( 82 ) ) * + 95 ) - 51 * - 70 DIV + COUNT( * ) AS col0
----
3528

skipif mysql # not compatible
query I rowsort label-8540
SELECT DISTINCT NULLIF ( - 42, - COUNT ( * ) * + MIN ( DISTINCT - + ( 82 ) ) * + 95 ) - 51 * - 70 / + COUNT ( * ) AS col0
----
3528

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8541
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, - ( + 63 ) * - 13 + - + 58 AS col1
----
NULL
761

skipif mysql # not compatible
query II rowsort label-8541
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, - ( + 63 ) * - 13 + - + 58 AS col1
----
NULL
761

onlyif mysql # aggregate syntax: 
query II rowsort label-8542
SELECT 61 AS col1, + 45 + - MIN( ALL 31 ) AS col0
----
61
14

skipif mysql # not compatible
query II rowsort label-8542
SELECT 61 AS col1, + 45 + - MIN ( ALL 31 ) AS col0
----
61
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT DISTINCT - MAX( DISTINCT + + 0 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-8543
SELECT DISTINCT - MAX ( DISTINCT + + 0 ) col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8544
SELECT DISTINCT MAX( DISTINCT - 13 ) DIV + SUM( 80 )
----
0

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT MAX ( DISTINCT - 13 ) / + SUM ( 80 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8545
SELECT ALL NULLIF ( - 3, + 49 / + CAST( - 39 AS SIGNED ) + + 68 + - 14 + COUNT( ALL - 26 ) + - - 32 ) * + COUNT( * ) col2
----
-3

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL NULLIF ( - 3, + 49 / + CAST ( - 39 AS INTEGER ) + + 68 + - 14 + COUNT ( ALL - 26 ) + - - 32 ) * + COUNT ( * ) col2
----
-3

query II rowsort
SELECT DISTINCT 9 AS col1, + 82 AS col1
----
9
82

query II rowsort
SELECT ALL 11 col1, 54 + - 85 AS col1
----
11
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT DISTINCT COUNT( * ) * NULLIF ( 87, - CASE + 70 WHEN + + 60 THEN - 81 + 70 ELSE 86 END + - ( - 79 ) ) / - + 25 + - MAX( DISTINCT + + CASE NULLIF ( - 3, - 6 ) WHEN - 82 + 78 THEN + 99 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT COUNT ( * ) * NULLIF ( 87, - CASE + 70 WHEN + + 60 THEN - 81 + 70 ELSE 86 END + - ( - 79 ) ) / - + 25 + - MAX ( DISTINCT + + CASE NULLIF ( - 3, - 6 ) WHEN - 82 + 78 THEN + 99 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8549
SELECT DISTINCT 19 AS col2, + CAST( - 50 AS SIGNED ) AS col1
----
19
-50

skipif mysql # not compatible
query II rowsort label-8549
SELECT DISTINCT 19 AS col2, + CAST ( - 50 AS INTEGER ) AS col1
----
19
-50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT COUNT( * ) * - + 48 + - 98
----
-146

skipif mysql # not compatible
query I rowsort label-8552
SELECT COUNT ( * ) * - + 48 + - 98
----
-146

query I rowsort
SELECT 85 * - 22
----
-1870

query I rowsort
SELECT 18 + - 60 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT ALL - 41 + + + ( - + 13 ) * + ( - COUNT( * ) ) + - - 55 * 82 AS col1
----
4482

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL - 41 + + + ( - + 13 ) * + ( - COUNT ( * ) ) + - - 55 * 82 AS col1
----
4482

query I rowsort
SELECT DISTINCT ( 63 ) + 82 * + + 28 + + 33 * 73 + + 49 - + 15 * - - 99 AS col1
----
3332

query II rowsort
SELECT DISTINCT 7 AS col0, + 40 AS col1
----
7
40

query I rowsort
SELECT ALL 28 + + 34
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT DISTINCT - 13 * + 40 + COUNT( * ) + - 65 AS col2
----
-584

skipif mysql # not compatible
query I rowsort label-8559
SELECT DISTINCT - 13 * + 40 + COUNT ( * ) + - 65 AS col2
----
-584

onlyif mysql # aggregate syntax: 
query II rowsort label-8560
SELECT - COUNT( * ) * + 1 * - + 4, - 55 AS col0
----
4
-55

skipif mysql # not compatible
query II rowsort label-8560
SELECT - COUNT ( * ) * + 1 * - + 4, - 55 AS col0
----
4
-55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT - COUNT( * ) * NULLIF ( + - 54, - 53 ) * COUNT( * ) + - 30 * - + MIN( + - 59 ) * + 19 AS col2
----
-33576

skipif mysql # not compatible
query I rowsort label-8562
SELECT - COUNT ( * ) * NULLIF ( + - 54, - 53 ) * COUNT ( * ) + - 30 * - + MIN ( + - 59 ) * + 19 AS col2
----
-33576

query I rowsort
SELECT 67 + 63
----
130

query I rowsort
SELECT ALL - 40 * + 9 * - 91
----
32760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8565
SELECT DISTINCT - - 73 * + 72 - + CAST( + + CASE 21 WHEN 96 / 41 + - - 8 - + 88 / + MAX( DISTINCT 92 ) + - 9 THEN NULL ELSE - - 37 + + - 19 - + + CAST( NULL AS SIGNED ) * + 52 * 29 END AS SIGNED ) * - NULLIF ( + + 42, + 53 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8565
SELECT DISTINCT - - 73 * + 72 - + CAST ( + + CASE 21 WHEN 96 / 41 + - - 8 - + 88 / + MAX ( DISTINCT 92 ) + - 9 THEN NULL ELSE - - 37 + + - 19 - + + CAST ( NULL AS INTEGER ) * + 52 * 29 END AS INTEGER ) * - NULLIF ( + + 42, + 53 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8566
SELECT ALL + NULLIF ( - 57, + - AVG ( DISTINCT ( + 34 ) ) * + 49 ) DIV + 78 + - 82 col2
----
-82

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL + NULLIF ( - 57, + - AVG ( DISTINCT ( + 34 ) ) * + 49 ) / + 78 + - 82 col2
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-8567
SELECT ALL - COALESCE ( - 1, 35, - 36 - - 10, 79 DIV + + 96 )
----
1

skipif mysql # not compatible
query I rowsort label-8567
SELECT ALL - COALESCE ( - 1, 35, - 36 - - 10, 79 / + + 96 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT COUNT( * ) + - 5 + + COALESCE ( + 86, 13 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-8568
SELECT COUNT ( * ) + - 5 + + COALESCE ( + 86, 13 ) AS col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8569
SELECT ALL + 15 DIV COUNT( - 54 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL + 15 / COUNT ( - 54 ) AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8570
SELECT 8 + + - CAST( NULL AS SIGNED ) + + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-8570
SELECT 8 + + - CAST ( NULL AS INTEGER ) + + 32
----
NULL

query I rowsort
SELECT ALL - 16 * + 28
----
-448

query I rowsort
SELECT ALL + ( - + 33 ) * - 9
----
297

query II rowsort
SELECT ALL 10, 28 AS col1
----
10
28

query I rowsort
SELECT DISTINCT COALESCE ( + + 42, - 41 )
----
42

query I rowsort
SELECT - 54 * - 7
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT + MIN( ALL - 36 ) + - 82
----
-118

skipif mysql # not compatible
query I rowsort label-8576
SELECT + MIN ( ALL - 36 ) + - 82
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT ALL COALESCE ( COUNT( * ), + 84 * - + 36 + + 70 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL COALESCE ( COUNT ( * ), + 84 * - + 36 + + 70 ) AS col2
----
1

query I rowsort
SELECT DISTINCT ( 10 ) + - - NULLIF ( - 14, - 93 ) * + 2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT ALL - MIN( + 2 ) + - 91 col1
----
-93

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL - MIN ( + 2 ) + - 91 col1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8580
SELECT - - 51 * 36 - - - 70 * 38 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT - - 51 * 36 - - - 70 * 38 * + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL + ( - 69 ) + - 27 AS col1
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8582
SELECT - 74 AS col1, + COUNT( * ) DIV - 28 AS col0
----
-74
0

skipif mysql # not compatible
query II rowsort label-8582
SELECT - 74 AS col1, + COUNT ( * ) / - 28 AS col0
----
-74
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8584
SELECT + 29 / - 1 + - ( + COALESCE ( + COUNT( * ), - 84 ) ) + 23 + CASE 96 WHEN 97 + - AVG ( COALESCE ( - + CAST( + ( - - 16 ) AS SIGNED ), + + 11 ) ) * - - 9 + 61 * 73 THEN NULL WHEN - 74 THEN - MAX( + CAST( + + 86 AS DECIMAL ) ) * 30 * + 42 * 48 ELSE NULL END * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8584
SELECT + 29 / - 1 + - ( + COALESCE ( + COUNT ( * ), - 84 ) ) + 23 + CASE 96 WHEN 97 + - AVG ( COALESCE ( - + CAST ( + ( - - 16 ) AS INTEGER ), + + 11 ) ) * - - 9 + 61 * 73 THEN NULL WHEN - 74 THEN - MAX ( + CAST ( + + 86 AS REAL ) ) * 30 * + 42 * 48 ELSE NULL END * - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8585
SELECT ALL + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + COALESCE ( - 42, + 97, 38 + - 59 / - 20 * - + 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT ALL + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + COALESCE ( - 42, + 97, 38 + - 59 / - 20 * - + 61 )
----
NULL

query II rowsort
SELECT + 58 AS col1, 93 AS col1
----
58
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8587
SELECT DISTINCT - 63 + CAST( NULL AS SIGNED ) + MIN( DISTINCT - 37 ) / - 7 + + - 71 AS col1, - 25 * - 88 AS col0
----
NULL
2200

skipif mysql # not compatible
query II rowsort label-8587
SELECT DISTINCT - 63 + CAST ( NULL AS INTEGER ) + MIN ( DISTINCT - 37 ) / - 7 + + - 71 AS col1, - 25 * - 88 AS col0
----
NULL
2200

query II rowsort
SELECT - + 97 AS col1, ( 64 )
----
-97
64

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8590
SELECT + + 24 * + + CAST( NULL AS DECIMAL ) * + 32 + + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8590
SELECT + + 24 * + + CAST ( NULL AS REAL ) * + 32 + + 53 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8591
SELECT - MIN ( + 79 )
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-8592
SELECT - COUNT( * ) AS col1, ( + 0 ) AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-8592
SELECT - COUNT ( * ) AS col1, ( + 0 ) AS col0
----
-1
0

query II rowsort
SELECT CASE - ( + NULLIF ( 76, - 0 + + 6 ) ) WHEN + + 78 * - 67 + + 89 + 8 THEN + 16 ELSE NULL END col0, 97 AS col0
----
NULL
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8594
SELECT DISTINCT - - 95 * - ( - ( - - 8 ) ) - - + 26 + - 37 + - + COUNT( * ) * CAST( NULL AS DECIMAL ) / 34
----
NULL

skipif mysql # not compatible
query I rowsort label-8594
SELECT DISTINCT - - 95 * - ( - ( - - 8 ) ) - - + 26 + - 37 + - + COUNT ( * ) * CAST ( NULL AS REAL ) / 34
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8595
SELECT DISTINCT + 36 DIV 22
----
1

skipif mysql # not compatible
query I rowsort label-8595
SELECT DISTINCT + 36 / 22
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8596
SELECT COUNT( * ), 77 DIV + + 6 AS col2
----
1
12

skipif mysql # not compatible
query II rowsort label-8596
SELECT COUNT ( * ), 77 / + + 6 AS col2
----
1
12

query II rowsort
SELECT + 40 * + 88 + + 75 AS col2, + 43 * + + 64
----
3595
2752

query I rowsort
SELECT - 56 * + + 72 col2
----
-4032

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT ALL MIN( DISTINCT - 33 ) * + + 8
----
-264

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL MIN ( DISTINCT - 33 ) * + + 8
----
-264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8600
SELECT - 74 + - - 15 + + - 15 + 58 DIV - COUNT( * )
----
-132

skipif mysql # not compatible
query I rowsort label-8600
SELECT - 74 + - - 15 + + - 15 + 58 / - COUNT ( * )
----
-132

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

query I rowsort
SELECT + 20 * + 94 * - ( - 18 ) AS col1
----
33840

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8604
SELECT ALL + CASE - + 65 WHEN - COALESCE ( + SUM( DISTINCT + 18 ), + 61 + - - 86 * 87 * + CAST( NULL AS SIGNED ) - - + 82, 16 ) * - 72 * + COUNT( * ) / + 59 - - 50 + - 70 - - ( + 86 ) + + - 81 * + 29 * - + ( 90 ) * AVG ( DISTINCT CAST( 34 AS SIGNED ) ) - - + 34 - + - ( 7 ) + + - 84 * + 14 * - 97 * - + ( 18 ) THEN - 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL + CASE - + 65 WHEN - COALESCE ( + SUM ( DISTINCT + 18 ), + 61 + - - 86 * 87 * + CAST ( NULL AS INTEGER ) - - + 82, 16 ) * - 72 * + COUNT ( * ) / + 59 - - 50 + - 70 - - ( + 86 ) + + - 81 * + 29 * - + ( 90 ) * AVG ( DISTINCT CAST ( 34 AS INTEGER ) ) - - + 34 - + - ( 7 ) + + - 84 * + 14 * - 97 * - + ( 18 ) THEN - 44 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT DISTINCT COUNT( * ) * + NULLIF ( - NULLIF ( - ( - 94 ), - ( - 17 ) ), + 15 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-8605
SELECT DISTINCT COUNT ( * ) * + NULLIF ( - NULLIF ( - ( - 94 ), - ( - 17 ) ), + 15 ) AS col2
----
-94

query I rowsort
SELECT DISTINCT CASE - 90 WHEN + 55 THEN + 1 ELSE NULL END * + - 58 AS col0
----
NULL

query II rowsort
SELECT ALL 70 * - + 94 + + 10, 74 col1
----
-6570
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT 57 * ( - NULLIF ( COUNT( * ), 38 * - 7 + 45 * - 89 ) ) + - COUNT( * ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-8608
SELECT 57 * ( - NULLIF ( COUNT ( * ), 38 * - 7 + 45 * - 89 ) ) + - COUNT ( * ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT + 54 / CASE 81 WHEN - 68 - 94 THEN - - 83 + + 34 - + 30 + 52 + + + 33 - + - 78 * - 32 * MIN( + 51 ) * - 36 * 17 + 96 * 36 - - 93 / - + 30 WHEN 62 * + 35 THEN NULL END * - ( 8 ) * - - 4 + - + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8609
SELECT + 54 / CASE 81 WHEN - 68 - 94 THEN - - 83 + + 34 - + 30 + 52 + + + 33 - + - 78 * - 32 * MIN ( + 51 ) * - 36 * 17 + 96 * 36 - - 93 / - + 30 WHEN 62 * + 35 THEN NULL END * - ( 8 ) * - - 4 + - + 0 AS col1
----
NULL

query I rowsort
SELECT + 57 * - + 21 - + 75 AS col2
----
-1272

query I rowsort
SELECT - 30 * + + COALESCE ( - + 59, 63, - 69 ) * + 93 AS col2
----
164610

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT - SUM( - - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-8612
SELECT - SUM ( - - 24 )
----
-24

query I rowsort
SELECT ALL - 18 * 61 + - 61 AS col0
----
-1159

query I rowsort
SELECT ALL 13 * + 13 + NULLIF ( 95, - + 68 ) AS col0
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT ALL - MIN( DISTINCT + 12 ) * 33 + - - 25
----
-371

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL - MIN ( DISTINCT + 12 ) * 33 + - - 25
----
-371

query I rowsort
SELECT DISTINCT - 69 * - 20
----
1380

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

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

query II rowsort
SELECT DISTINCT + - ( - 6 ) * - + 60, 68 AS col2
----
-360
68

query II rowsort
SELECT ALL + 45 + 89, 24 AS col1
----
134
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT - NULLIF ( COUNT( + 32 ), - 50 + + - COUNT( * ) * 8 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8622
SELECT - NULLIF ( COUNT ( + 32 ), - 50 + + - COUNT ( * ) * 8 ) AS col0
----
-1

query I rowsort
SELECT + 72 * - - 39 AS col2
----
2808

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8625
SELECT ALL COUNT( DISTINCT - 26 ) AS col1, + ( 91 ) AS col0
----
1
91

skipif mysql # not compatible
query II rowsort label-8625
SELECT ALL COUNT ( DISTINCT - 26 ) AS col1, + ( 91 ) AS col0
----
1
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8626
SELECT - NULLIF ( - 57, + NULLIF ( + + COUNT( * ), + + COALESCE ( - NULLIF ( + 76, - COUNT( * ) ), - - 27 * + + 11, + 18 + 32 - - 82 + CAST( 17 AS SIGNED ) * ( MIN( - 9 ) ) + + COUNT( * ) * + 57 * 92 ) * + 24 * + + COALESCE ( + COUNT( * ), 63 ) ) - - - 3 + + 6 ) + 85 * 78 AS col0
----
6687

skipif mysql # not compatible
query I rowsort label-8626
SELECT - NULLIF ( - 57, + NULLIF ( + + COUNT ( * ), + + COALESCE ( - NULLIF ( + 76, - COUNT ( * ) ), - - 27 * + + 11, + 18 + 32 - - 82 + CAST ( 17 AS INTEGER ) * ( MIN ( - 9 ) ) + + COUNT ( * ) * + 57 * 92 ) * + 24 * + + COALESCE ( + COUNT ( * ), 63 ) ) - - - 3 + + 6 ) + 85 * 78 AS col0
----
6687

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8627
SELECT ALL - 18 * 87 * 89 * + COUNT( * ) + - - 97 + + 24 * NULLIF ( ( - COALESCE ( + 86, + 14, - - CAST( NULL AS SIGNED ) + - + ( + 59 ) ) ), - COUNT( - + 28 ) ) * 82 AS col2
----
-308525

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL - 18 * 87 * 89 * + COUNT ( * ) + - - 97 + + 24 * NULLIF ( ( - COALESCE ( + 86, + 14, - - CAST ( NULL AS INTEGER ) + - + ( + 59 ) ) ), - COUNT ( - + 28 ) ) * 82 AS col2
----
-308525

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT + - COUNT( * ) * COUNT( * ) * + 55
----
-55

skipif mysql # not compatible
query I rowsort label-8628
SELECT + - COUNT ( * ) * COUNT ( * ) * + 55
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8629
SELECT DISTINCT - 7 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT - 7 / + 87
----
0

query II rowsort
SELECT + ( + - 54 ) AS col0, + 30
----
-54
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT CASE - 27 WHEN - - 26 THEN - - 88 * 44 * ( 59 ) - + 85 + + - COUNT( + - 2 ) * - + 90 * - 33 END / + 92 + + - 15 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8631
SELECT CASE - 27 WHEN - - 26 THEN - - 88 * 44 * ( 59 ) - + 85 + + - COUNT ( + - 2 ) * - + 90 * - 33 END / + 92 + + - 15 col1
----
NULL

query I rowsort
SELECT ALL - 57 * 80 * + - 21 * - 84
----
-8043840

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8633
SELECT DISTINCT + 60 col2, 26 DIV + + COUNT( * ) + + 70
----
60
96

skipif mysql # not compatible
query II rowsort label-8633
SELECT DISTINCT + 60 col2, 26 / + + COUNT ( * ) + + 70
----
60
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8634
SELECT DISTINCT + 64 AS col0, ( - ( + COUNT( * ) ) )
----
64
-1

skipif mysql # not compatible
query II rowsort label-8634
SELECT DISTINCT + 64 AS col0, ( - ( + COUNT ( * ) ) )
----
64
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8635
SELECT + 26 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-8635
SELECT + 26 / + 79
----
0

query II rowsort
SELECT ALL + 76 AS col2, 92 AS col1
----
76
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8637
SELECT DISTINCT SUM( ALL - NULLIF ( + ( - 59 ), 51 ) ) DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT SUM ( ALL - NULLIF ( + ( - 59 ), 51 ) ) / + 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT DISTINCT NULLIF ( - COUNT( * ), 62 + - + 9 ) + - - ( + 27 )
----
26

skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT NULLIF ( - COUNT ( * ), 62 + - + 9 ) + - - ( + 27 )
----
26

query II rowsort
SELECT ALL ( + 94 ) + - 97, 54 AS col1
----
-3
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT ALL - 80 + + + 42 + + + 97 * + COUNT( * ) * - 51 * + + ( 62 ) * 23
----
-7054460

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL - 80 + + + 42 + + + 97 * + COUNT ( * ) * - 51 * + + ( 62 ) * 23
----
-7054460

onlyif mysql # DIV for integer division: 
query II rowsort label-8641
SELECT 58 AS col0, + 77 * - 6 DIV - 6 - + 97
----
58
-20

skipif mysql # not compatible
query II rowsort label-8641
SELECT 58 AS col0, + 77 * - 6 / - 6 - + 97
----
58
-20

query II rowsort
SELECT + 52, 13 * 0 + - 77 col0
----
52
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8643
SELECT ALL - 82, - 1 DIV - - COUNT( * ) + - + 0 AS col0
----
-82
-1

skipif mysql # not compatible
query II rowsort label-8643
SELECT ALL - 82, - 1 / - - COUNT ( * ) + - + 0 AS col0
----
-82
-1

query I rowsort
SELECT DISTINCT 7 + - + 58 * - + 27 AS col1
----
1573

query I rowsort
SELECT 56 + - + 61 col0
----
-5

query II rowsort
SELECT DISTINCT - 95 AS col1, 41 AS col2
----
-95
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8647
SELECT ALL 42 + + 60 - + NULLIF ( + COALESCE ( - 81, CASE WHEN - 74 > 66 THEN + + 90 END ), 47 ) + + 2 * CAST( NULLIF ( 77, + 67 ) AS SIGNED )
----
337

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL 42 + + 60 - + NULLIF ( + COALESCE ( - 81, CASE WHEN - 74 > 66 THEN + + 90 END ), 47 ) + + 2 * CAST ( NULLIF ( 77, + 67 ) AS INTEGER )
----
337

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT - 53 * - COUNT( * ) + + - 48
----
5

skipif mysql # not compatible
query I rowsort label-8648
SELECT - 53 * - COUNT ( * ) + + - 48
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT ALL 89 * - + SUM( 43 )
----
-3827

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL 89 * - + SUM ( 43 )
----
-3827

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT DISTINCT 71 + + + COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT 71 + + + COUNT ( * ) AS col2
----
72

query I rowsort
SELECT - + ( 54 ) AS col1
----
-54

query I rowsort
SELECT - 20 + + 92 + + 61 * - 38 + - 8 AS col2
----
-2254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8653
SELECT DISTINCT - - NULLIF ( - - COUNT( * ), + 65 ) DIV + + 99 DIV + - 38 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT - - NULLIF ( - - COUNT ( * ), + 65 ) / + + 99 / + - 38 * COUNT ( * )
----
0

query II rowsort
SELECT + 92 col2, 36 AS col1
----
92
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT - 47 + - 6 + - + COUNT( * ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-8655
SELECT - 47 + - 6 + - + COUNT ( * ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT MIN( - 42 ) * 79
----
-3318

skipif mysql # not compatible
query I rowsort label-8656
SELECT MIN ( - 42 ) * 79
----
-3318

query I rowsort
SELECT - ( - 93 ) + - 36 AS col1
----
57

query II rowsort
SELECT - 93 AS col2, - 91 AS col1
----
-93
-91

query I rowsort
SELECT ALL - 22 * - - ( - 69 ) + - 91
----
1427

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8660
SELECT CAST( NULL AS SIGNED ) / + - 21 / COUNT( * ) AS col1, 43 col2
----
NULL
43

skipif mysql # not compatible
query II rowsort label-8660
SELECT CAST ( NULL AS INTEGER ) / + - 21 / COUNT ( * ) AS col1, 43 col2
----
NULL
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8661
SELECT ALL - 78 * - COALESCE ( + ( - 84 ), 65 DIV MAX( + + 98 ) - + 32, + 79 ) + COUNT( * )
----
-6551

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL - 78 * - COALESCE ( + ( - 84 ), 65 / MAX ( + + 98 ) - + 32, + 79 ) + COUNT ( * )
----
-6551

query I rowsort
SELECT - 36 * + 75
----
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT - + ( + COUNT( DISTINCT - + 15 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8663
SELECT - + ( + COUNT ( DISTINCT - + 15 ) ) AS col2
----
-1

query II rowsort
SELECT - - 29 col0, 51 * + 64 col2
----
29
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT - COUNT( * ) * ( - 4 ) * - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-8665
SELECT - COUNT ( * ) * ( - 4 ) * - COUNT ( * )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8666
SELECT COUNT( * ) * - - CAST( + - 46 AS SIGNED ) + - + 47 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-8666
SELECT COUNT ( * ) * - - CAST ( + - 46 AS INTEGER ) + - + 47 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT DISTINCT - CASE + 0 WHEN 95 * + 21 + - 97 - + - 2 THEN - 44 * 93 + + + 3 WHEN - COUNT( * ) THEN NULL ELSE + ( + ( ( - + ( - 77 ) ) ) ) + - - 70 + 49 * + 16 END AS col0
----
-931

skipif mysql # not compatible
query I rowsort label-8667
SELECT DISTINCT - CASE + 0 WHEN 95 * + 21 + - 97 - + - 2 THEN - 44 * 93 + + + 3 WHEN - COUNT ( * ) THEN NULL ELSE + ( + ( ( - + ( - 77 ) ) ) ) + - - 70 + 49 * + 16 END AS col0
----
-931

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8668
SELECT 41 * - COUNT( * ) DIV - 45 * - 3 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8668
SELECT 41 * - COUNT ( * ) / - 45 * - 3 AS col0
----
0

query I rowsort
SELECT DISTINCT - 11 + ( - 43 ) col1
----
-54

query I rowsort
SELECT ALL - ( - + 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT DISTINCT COUNT( * ) + - COUNT( * ) * - - 84 col1
----
-83

skipif mysql # not compatible
query I rowsort label-8671
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * - - 84 col1
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8672
SELECT DISTINCT - CAST( + 38 AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT - CAST ( + 38 AS INTEGER )
----
-38

query I rowsort
SELECT 8 * - - 39 AS col1
----
312

onlyif mysql # aggregate syntax: 
query II rowsort label-8674
SELECT DISTINCT COUNT( * ) + + 71 * + 93 + + 69, - 84 AS col2
----
6673
-84

skipif mysql # not compatible
query II rowsort label-8674
SELECT DISTINCT COUNT ( * ) + + 71 * + 93 + + 69, - 84 AS col2
----
6673
-84

query I rowsort
SELECT ALL NULLIF ( + 35, - + 66 ) + + 21 + - 57 - + 63 * 5 * + 11 - 64 - 69 * - - 20
----
-4910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8676
SELECT - CAST( NULL AS SIGNED ) * + 89 + - + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8676
SELECT - CAST ( NULL AS INTEGER ) * + 89 + - + 12
----
NULL

query I rowsort
SELECT DISTINCT 54 + 86
----
140

query I rowsort
SELECT ALL 65 + 55 * - 49 AS col0
----
-2630

query II rowsort
SELECT DISTINCT 30 * 13 col0, 22 AS col0
----
390
22

query I rowsort
SELECT ALL 89 - - ( + + 92 )
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT COALESCE ( COUNT( DISTINCT + + 46 ), - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8681
SELECT COALESCE ( COUNT ( DISTINCT + + 46 ), - + COUNT ( * ) )
----
1

query I rowsort
SELECT - 75 * + 31 AS col0
----
-2325

query I rowsort
SELECT + 45 * + 92 + CASE + 78 WHEN - 65 THEN 98 WHEN 37 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 11 * 34 + 38 + 3 - + 73 AS col1
----
342

onlyif mysql # aggregate syntax: 
query II rowsort label-8685
SELECT 67 + - 73 AS col0, + COUNT( - 36 ) AS col2
----
-6
1

skipif mysql # not compatible
query II rowsort label-8685
SELECT 67 + - 73 AS col0, + COUNT ( - 36 ) AS col2
----
-6
1

query I rowsort
SELECT - 34 - + 65 AS col2
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8687
SELECT - 78 + + 23 + 53 * - + 63 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8687
SELECT - 78 + + 23 + 53 * - + 63 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT MIN( 57 ) - 37
----
20

skipif mysql # not compatible
query I rowsort label-8688
SELECT MIN ( 57 ) - 37
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8689
SELECT ALL + - 74 DIV - 17 - 68 + 44, - 50 - COUNT( DISTINCT + 76 ) AS col2, 98 AS col2
----
-20
-51
98

skipif mysql # not compatible
query III rowsort label-8689
SELECT ALL + - 74 / - 17 - 68 + 44, - 50 - COUNT ( DISTINCT + 76 ) AS col2, 98 AS col2
----
-20
-51
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8690
SELECT 87 DIV - 70
----
-1

skipif mysql # not compatible
query I rowsort label-8690
SELECT 87 / - 70
----
-1

query I rowsort
SELECT ALL - 66 + - + 4
----
-70

query I rowsort
SELECT DISTINCT 79 + 37
----
116

query I rowsort
SELECT DISTINCT + 43 + + 36 AS col0
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-8694
SELECT DISTINCT COALESCE ( + 4, - + 28, + SUM( DISTINCT - 56 ) ) * - 74 AS col2, - ( + - 30 ) + + 14 AS col0
----
-296
44

skipif mysql # not compatible
query II rowsort label-8694
SELECT DISTINCT COALESCE ( + 4, - + 28, + SUM ( DISTINCT - 56 ) ) * - 74 AS col2, - ( + - 30 ) + + 14 AS col0
----
-296
44

onlyif mysql # aggregate syntax: 
query II rowsort label-8695
SELECT ALL + 25 + - NULLIF ( - 48, - + ( - - 88 ) * + COUNT( * ) * MIN( - - 4 ) ) AS col1, 6
----
73
6

skipif mysql # not compatible
query II rowsort label-8695
SELECT ALL + 25 + - NULLIF ( - 48, - + ( - - 88 ) * + COUNT ( * ) * MIN ( - - 4 ) ) AS col1, 6
----
73
6

query II rowsort
SELECT - 85, - 62 col1
----
-85
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL SUM( DISTINCT - 78 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL SUM ( DISTINCT - 78 ) AS col1
----
-78

query I rowsort
SELECT + 79 + - 63 AS col0
----
16

query I rowsort
SELECT - 44 + - 15
----
-59

query I rowsort
SELECT NULLIF ( - 60, 45 ) AS col1
----
-60

query I rowsort
SELECT - 61 * ( - 87 ) AS col1
----
5307

query I rowsort
SELECT DISTINCT + ( - 26 ) * 15 + - 49 AS col2
----
-439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8703
SELECT ALL + CAST( - COALESCE ( - 9, - 16 * + 29 ) AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL + CAST ( - COALESCE ( - 9, - 16 * + 29 ) AS INTEGER )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT COALESCE ( + + ( + MIN( - 9 ) ), + 84, + CASE + ( + - 58 ) WHEN 7 THEN + 63 ELSE COUNT( * ) END * COUNT( * ) + CASE - COUNT( * ) WHEN + AVG ( + 65 ) THEN NULL ELSE 7 END )
----
-9

skipif mysql # not compatible
query I rowsort label-8704
SELECT COALESCE ( + + ( + MIN ( - 9 ) ), + 84, + CASE + ( + - 58 ) WHEN 7 THEN + 63 ELSE COUNT ( * ) END * COUNT ( * ) + CASE - COUNT ( * ) WHEN + AVG ( + 65 ) THEN NULL ELSE 7 END )
----
-9

query I rowsort
SELECT ALL 58 * - 20 + - ( 22 ) col1
----
-1182

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT CASE + - 94 WHEN COALESCE ( - COUNT( * ), + 57 / + + 32 + + 13, - COUNT( * ) / + 72 + - 18 ) THEN NULL ELSE - 94 END
----
-94

skipif mysql # not compatible
query I rowsort label-8706
SELECT CASE + - 94 WHEN COALESCE ( - COUNT ( * ), + 57 / + + 32 + + 13, - COUNT ( * ) / + 72 + - 18 ) THEN NULL ELSE - 94 END
----
-94

query I rowsort
SELECT ALL + NULLIF ( + 13, - + 2 + - 81 )
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-8708
SELECT - 7 * 92 * - 95 + + - 12 + + ( 79 ) DIV + + 5 col1
----
61183

skipif mysql # not compatible
query I rowsort label-8708
SELECT - 7 * 92 * - 95 + + - 12 + + ( 79 ) / + + 5 col1
----
61183

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT DISTINCT - 58 * - + 84 - + COUNT( ALL 26 ) AS col1
----
4871

skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT - 58 * - + 84 - + COUNT ( ALL 26 ) AS col1
----
4871

query I rowsort
SELECT NULLIF ( + 66, + - 9 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT ALL + ( - 72 ) * + + 12 - COUNT( * ) AS col1
----
-865

skipif mysql # not compatible
query I rowsort label-8711
SELECT ALL + ( - 72 ) * + + 12 - COUNT ( * ) AS col1
----
-865

query I rowsort
SELECT ALL 89 * 69 AS col1
----
6141

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT ALL COUNT( * ) * - MIN( 30 ) - + COALESCE ( 76, + ( + 33 ) ) AS col1
----
-106

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL COUNT ( * ) * - MIN ( 30 ) - + COALESCE ( 76, + ( + 33 ) ) AS col1
----
-106

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8714
SELECT + COUNT( * ) AS col0, MAX( 55 ) * COUNT( * ) * - - COALESCE ( 38, + + 33 DIV - 50 + ( + - 81 ) * + + 43 ) AS col2
----
1
2090

skipif mysql # not compatible
query II rowsort label-8714
SELECT + COUNT ( * ) AS col0, MAX ( 55 ) * COUNT ( * ) * - - COALESCE ( 38, + + 33 / - 50 + ( + - 81 ) * + + 43 ) AS col2
----
1
2090

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8715
SELECT 54 DIV - COALESCE ( 50, COALESCE ( + - 50, - SUM( DISTINCT - NULLIF ( CAST( NULL AS SIGNED ), + 95 ) ) + + 58 ) + + 53, - COUNT( * ) ) + + 58 AS col2, + 92
----
57
92

skipif mysql # not compatible
query II rowsort label-8715
SELECT 54 / - COALESCE ( 50, COALESCE ( + - 50, - SUM ( DISTINCT - NULLIF ( CAST ( NULL AS INTEGER ), + 95 ) ) + + 58 ) + + 53, - COUNT ( * ) ) + + 58 AS col2, + 92
----
57
92

query I rowsort
SELECT - + 57 * 97
----
-5529

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT + 11 * + - SUM( ALL + + 32 ) + + MIN( 57 ) AS col2
----
-295

skipif mysql # not compatible
query I rowsort label-8717
SELECT + 11 * + - SUM ( ALL + + 32 ) + + MIN ( 57 ) AS col2
----
-295

onlyif mysql # aggregate syntax: 
query II rowsort label-8718
SELECT ALL + + COUNT( * ) * - - COUNT( - 46 ) AS col0, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-8718
SELECT ALL + + COUNT ( * ) * - - COUNT ( - 46 ) AS col0, COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT - SUM( + + 63 ) + + - 55 * - 72 * 48 + - - 59 * 59 col0
----
193498

skipif mysql # not compatible
query I rowsort label-8719
SELECT - SUM ( + + 63 ) + + - 55 * - 72 * 48 + - - 59 * 59 col0
----
193498

query I rowsort
SELECT ALL + - 35 * - 46 + 68
----
1678

query I rowsort
SELECT ALL + + ( - 54 ) AS col1
----
-54

query I rowsort
SELECT + - 33 - + 51 * - 28 col2
----
1395

query I rowsort
SELECT ALL 35 * 10
----
350

query I rowsort
SELECT + - 25 + 18
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT DISTINCT + ( - CASE + + 12 WHEN COUNT( * ) / - MAX( 78 ) * - NULLIF ( - - 87, - 11 * - + COUNT( * ) + - 56 + - 16 ) * - 40 + + COUNT( * ) THEN - 9 END ) / + ( - + 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT + ( - CASE + + 12 WHEN COUNT ( * ) / - MAX ( 78 ) * - NULLIF ( - - 87, - 11 * - + COUNT ( * ) + - 56 + - 16 ) * - 40 + + COUNT ( * ) THEN - 9 END ) / + ( - + 60 )
----
NULL

query I rowsort
SELECT + + 50 + - 14
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT DISTINCT 97 + - 81 + 85 + + MIN( DISTINCT - 35 ) * + COUNT( * ) - 81 + + - 74
----
-89

skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT 97 + - 81 + 85 + + MIN ( DISTINCT - 35 ) * + COUNT ( * ) - 81 + + - 74
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8728
SELECT DISTINCT ( - + 73 ) * + CAST( 12 AS SIGNED ) col0
----
-876

skipif mysql # not compatible
query I rowsort label-8728
SELECT DISTINCT ( - + 73 ) * + CAST ( 12 AS INTEGER ) col0
----
-876

query I rowsort
SELECT + + 6 * + ( - ( 62 ) ) AS col1
----
-372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8730
SELECT + + COUNT( * ) + CASE - ( - + 10 ) WHEN COUNT( * ) THEN 20 / + + CAST( NULL AS SIGNED ) WHEN - NULLIF ( - 21, - - 3 * - 15 ) THEN - COUNT( * ) / - ( CAST( 97 AS DECIMAL ) ) ELSE CASE + 5 WHEN - 29 THEN + CASE - CAST( + 83 AS SIGNED ) WHEN + + 89 THEN NULL WHEN + NULLIF ( 84, 32 ) + - 83 THEN + + 84 END * - + 13 * + 63 + + MAX( 18 ) WHEN + 8 * - + COUNT( DISTINCT - 3 ) THEN NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8730
SELECT + + COUNT ( * ) + CASE - ( - + 10 ) WHEN COUNT ( * ) THEN 20 / + + CAST ( NULL AS INTEGER ) WHEN - NULLIF ( - 21, - - 3 * - 15 ) THEN - COUNT ( * ) / - ( CAST ( 97 AS REAL ) ) ELSE CASE + 5 WHEN - 29 THEN + CASE - CAST ( + 83 AS INTEGER ) WHEN + + 89 THEN NULL WHEN + NULLIF ( 84, 32 ) + - 83 THEN + + 84 END * - + 13 * + 63 + + MAX ( 18 ) WHEN + 8 * - + COUNT ( DISTINCT - 3 ) THEN NULL END END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT DISTINCT 24 * - COUNT( * ) + - 65
----
-89

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT 24 * - COUNT ( * ) + - 65
----
-89

query I rowsort
SELECT ALL + 20 + + 90
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8733
SELECT ALL - 45 + 4 * - 86 + - ( - COALESCE ( 86, - 54 * - + 69 * - - COALESCE ( ( + + MIN( ALL 12 ) ), + MAX( DISTINCT - 68 ) ), - - 99 * + - 22 DIV - - CAST( COUNT( * ) AS SIGNED ) ) )
----
-303

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL - 45 + 4 * - 86 + - ( - COALESCE ( 86, - 54 * - + 69 * - - COALESCE ( ( + + MIN ( ALL 12 ) ), + MAX ( DISTINCT - 68 ) ), - - 99 * + - 22 / - - CAST ( COUNT ( * ) AS INTEGER ) ) )
----
-303

query I rowsort
SELECT + 11 * + ( + 4 ) + - 8
----
36

query I rowsort
SELECT ALL 81 + 2 AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8736
SELECT ALL - 93 + + - 74 + + + 20 * + 35 * - NULLIF ( - - CAST( NULL AS SIGNED ), + COUNT( * ) ) / - 23 + + + 4 + CASE 61 WHEN - COUNT( * ) + 60 + - + 4 + 74 THEN - COUNT( * ) END col0, - 54
----
NULL
-54

skipif mysql # not compatible
query II rowsort label-8736
SELECT ALL - 93 + + - 74 + + + 20 * + 35 * - NULLIF ( - - CAST ( NULL AS INTEGER ), + COUNT ( * ) ) / - 23 + + + 4 + CASE 61 WHEN - COUNT ( * ) + 60 + - + 4 + 74 THEN - COUNT ( * ) END col0, - 54
----
NULL
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-8737
SELECT 93, - COUNT( * ) AS col0
----
93
-1

skipif mysql # not compatible
query II rowsort label-8737
SELECT 93, - COUNT ( * ) AS col0
----
93
-1

query I rowsort
SELECT ALL ( 79 ) + + + 61 AS col1
----
140

query I rowsort
SELECT + 38 - + ( - ( 79 ) )
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT - COUNT( * ) * + + 1 * - + 19 col2
----
19

skipif mysql # not compatible
query I rowsort label-8740
SELECT - COUNT ( * ) * + + 1 * - + 19 col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8741
SELECT ALL COUNT( * ) + - 31 + 99 DIV - COUNT( * )
----
-129

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL COUNT ( * ) + - 31 + 99 / - COUNT ( * )
----
-129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8742
SELECT + COUNT( * ) - 72 DIV COUNT( * ) * - 70
----
5041

skipif mysql # not compatible
query I rowsort label-8742
SELECT + COUNT ( * ) - 72 / COUNT ( * ) * - 70
----
5041

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8743
SELECT - ( - - 25 ) * - ( - 34 ) AS col2, + CAST( NULL AS SIGNED )
----
-850
NULL

skipif mysql # not compatible
query II rowsort label-8743
SELECT - ( - - 25 ) * - ( - 34 ) AS col2, + CAST ( NULL AS INTEGER )
----
-850
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT ALL NULLIF ( - + ( - + 52 ), - NULLIF ( + COUNT( - 53 ), - + 72 * COALESCE ( ( - ( 41 ) ), + + 69 ) + 91 + - - 74 ) )
----
52

skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL NULLIF ( - + ( - + 52 ), - NULLIF ( + COUNT ( - 53 ), - + 72 * COALESCE ( ( - ( 41 ) ), + + 69 ) + 91 + - - 74 ) )
----
52

query I rowsort
SELECT + 84 - - 76
----
160

query II rowsort
SELECT ALL + 82 AS col0, 24 * 73
----
82
1752

query I rowsort
SELECT DISTINCT - 4 * + 67
----
-268

query II rowsort
SELECT ALL + 27 AS col2, 8 col2
----
27
8

query I rowsort
SELECT - 78 * - + 87
----
6786

query I rowsort
SELECT ALL 84 * 3 AS col1
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT ALL + 59 * + - COUNT( * ) * 41 AS col1
----
-2419

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL + 59 * + - COUNT ( * ) * 41 AS col1
----
-2419

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8752
SELECT CAST( - + 1 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8752
SELECT CAST ( - + 1 AS INTEGER )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8753
SELECT 68 DIV 57 + - - 11
----
12

skipif mysql # not compatible
query I rowsort label-8753
SELECT 68 / 57 + - - 11
----
12

query I rowsort
SELECT - 48 + 36 - 48
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT ALL + NULLIF ( + MIN( + - 18 ), + + COALESCE ( + COALESCE ( - 55, + 13 - 92 ), MIN( + 71 ), 11 ) ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL + NULLIF ( + MIN ( + - 18 ), + + COALESCE ( + COALESCE ( - 55, + 13 - 92 ), MIN ( + 71 ), 11 ) ) AS col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8756
SELECT - COALESCE ( + + 95, - MIN( CAST( NULL AS SIGNED ) ) ) * - - NULLIF ( 53, - 34 * - - 62 ) col0
----
-5035

skipif mysql # not compatible
query I rowsort label-8756
SELECT - COALESCE ( + + 95, - MIN ( CAST ( NULL AS INTEGER ) ) ) * - - NULLIF ( 53, - 34 * - - 62 ) col0
----
-5035

query II rowsort
SELECT + 10, + 2 + - 60 AS col2
----
10
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-8758
SELECT ALL + - 83, 7 * 23 * + + COUNT( * ) AS col1
----
-83
161

skipif mysql # not compatible
query II rowsort label-8758
SELECT ALL + - 83, 7 * 23 * + + COUNT ( * ) AS col1
----
-83
161

onlyif mysql # aggregate syntax: 
query II rowsort label-8759
SELECT - 61 AS col2, + CASE - NULLIF ( - AVG ( DISTINCT 22 ), AVG ( - 39 ) ) WHEN + 6 * + 70 + - 87 + + 21 THEN NULL ELSE + COUNT( * ) END * - 78 + + + 77
----
-61
-1

skipif mysql # not compatible
query II rowsort label-8759
SELECT - 61 AS col2, + CASE - NULLIF ( - AVG ( DISTINCT 22 ), AVG ( - 39 ) ) WHEN + 6 * + 70 + - 87 + + 21 THEN NULL ELSE + COUNT ( * ) END * - 78 + + + 77
----
-61
-1

query I rowsort
SELECT ALL + 34 * + 94 col1
----
3196

query I rowsort
SELECT ALL 23 * 54 col0
----
1242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8762
SELECT - - 96 DIV + CAST( + + CAST( 80 AS SIGNED ) AS SIGNED ) + + - 33 + 24 + 45 + + 22 * + CAST( - - SUM( ALL + 55 ) AS SIGNED )
----
1247

skipif mysql # not compatible
query I rowsort label-8762
SELECT - - 96 / + CAST ( + + CAST ( 80 AS INTEGER ) AS INTEGER ) + + - 33 + 24 + 45 + + 22 * + CAST ( - - SUM ( ALL + 55 ) AS INTEGER )
----
1247

query I rowsort
SELECT - - 79 * + 84
----
6636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8764
SELECT ALL + + CASE - - 63 WHEN + + 8 + - AVG ( + 70 ) THEN - 74 + COUNT( ALL + 52 ) + + 38 - - CAST( NULL AS SIGNED ) * - 36 END * + 64 * + + ( - 63 ) AS col0, 16 AS col0
----
NULL
16

skipif mysql # not compatible
query II rowsort label-8764
SELECT ALL + + CASE - - 63 WHEN + + 8 + - AVG ( + 70 ) THEN - 74 + COUNT ( ALL + 52 ) + + 38 - - CAST ( NULL AS INTEGER ) * - 36 END * + 64 * + + ( - 63 ) AS col0, 16 AS col0
----
NULL
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8765
SELECT + CAST( - 97 AS SIGNED ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-8765
SELECT + CAST ( - 97 AS INTEGER ) AS col1
----
-97

query I rowsort
SELECT ALL - + 24 * - - 21 + + 74 AS col0
----
-430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8767
SELECT ALL - NULLIF ( 38, MIN( + - 79 ) + - SUM( DISTINCT - COALESCE ( + ( CAST( NULL AS SIGNED ) ), - CAST( NULL AS SIGNED ) ) ) ) * - 62
----
2356

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL - NULLIF ( 38, MIN ( + - 79 ) + - SUM ( DISTINCT - COALESCE ( + ( CAST ( NULL AS INTEGER ) ), - CAST ( NULL AS INTEGER ) ) ) ) * - 62
----
2356

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8768
SELECT - 99 * - 71 - + - 89 * + + NULLIF ( + 13, SUM( DISTINCT 29 ) * + COUNT( * ) ) + - - 99 + + 93 DIV - SUM( - + 38 )
----
8287

skipif mysql # not compatible
query I rowsort label-8768
SELECT - 99 * - 71 - + - 89 * + + NULLIF ( + 13, SUM ( DISTINCT 29 ) * + COUNT ( * ) ) + - - 99 + + 93 / - SUM ( - + 38 )
----
8287

query I rowsort
SELECT ALL 12 + + 69
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT - 82 - + COUNT( ALL 0 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-8770
SELECT - 82 - + COUNT ( ALL 0 ) AS col1
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8771
SELECT ALL + 38 + 60 - 3 + + ( 71 ) + + COUNT( * ) + + ( - - COUNT( * ) ) + 48 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL + 38 + 60 - 3 + + ( 71 ) + + COUNT ( * ) + + ( - - COUNT ( * ) ) + 48 / - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 32 AS col1, + 76 col2
----
32
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8773
SELECT - 96 DIV - 16 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8773
SELECT - 96 / - 16 AS col1
----
6

query I rowsort
SELECT ALL + 58 + + - 55 AS col0
----
3

query I rowsort
SELECT ALL + 89 + 4 AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8776
SELECT 11 + + + 9 * COUNT( * ) + - CASE + 74 WHEN CASE + - 42 WHEN + - 76 THEN NULL WHEN 40 * + 93 * + + 13 * + + 2 THEN + 21 / 60 + + 28 * - 96 * + + 43 WHEN 92 THEN NULL WHEN - 43 * + 6 * - - 38 THEN + 48 END * CAST( - - 43 AS SIGNED ) - 8 + - 19 + ( - 26 ) + NULLIF ( + 17, - 7 * - 75 ) THEN + + 3 + + - 97 - COUNT( * ) * + 51 - - AVG ( + - 78 ) END - CASE 79 WHEN - - 0 THEN + 26 - 67 * + CAST( - 10 + 85 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8776
SELECT 11 + + + 9 * COUNT ( * ) + - CASE + 74 WHEN CASE + - 42 WHEN + - 76 THEN NULL WHEN 40 * + 93 * + + 13 * + + 2 THEN + 21 / 60 + + 28 * - 96 * + + 43 WHEN 92 THEN NULL WHEN - 43 * + 6 * - - 38 THEN + 48 END * CAST ( - - 43 AS INTEGER ) - 8 + - 19 + ( - 26 ) + NULLIF ( + 17, - 7 * - 75 ) THEN + + 3 + + - 97 - COUNT ( * ) * + 51 - - AVG ( + - 78 ) END - CASE 79 WHEN - - 0 THEN + 26 - 67 * + CAST ( - 10 + 85 AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8777
SELECT COUNT( * ) + - - ( CAST( NULL AS SIGNED ) ) + + 25 + - 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8777
SELECT COUNT ( * ) + - - ( CAST ( NULL AS INTEGER ) ) + + 25 + - 1 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8778
SELECT ALL CAST( NULL AS SIGNED ) - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL CAST ( NULL AS INTEGER ) - 1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8779
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 75 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8779
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 75 col0
----
NULL

query I rowsort
SELECT 37 + 86
----
123

query I rowsort
SELECT ALL 79 * + COALESCE ( - - 57, + - 87 )
----
4503

onlyif mysql # aggregate syntax: 
query II rowsort label-8782
SELECT ( - - 62 ) + - 36 AS col2, - ( - COUNT( 44 ) ) + - 48 * 5 AS col1
----
26
-239

skipif mysql # not compatible
query II rowsort label-8782
SELECT ( - - 62 ) + - 36 AS col2, - ( - COUNT ( 44 ) ) + - 48 * 5 AS col1
----
26
-239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8783
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) - - - 3
----
-4

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) - - - 3
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT SUM( - - 57 ) + 94
----
151

skipif mysql # not compatible
query I rowsort label-8784
SELECT SUM ( - - 57 ) + 94
----
151

query I rowsort
SELECT ALL 43 * 59 AS col0
----
2537

query I rowsort
SELECT 72 * + 63 * - + 41 * + CASE 85 WHEN + 12 THEN NULL WHEN - - 9 * + - 45 THEN + - NULLIF ( - + 85, 60 ) END
----
NULL

query I rowsort
SELECT 43 + + 64 * 93
----
5995

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8788
SELECT ALL 12 DIV COUNT( * ) col1
----
12

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL 12 / COUNT ( * ) col1
----
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8789
SELECT ALL 30 DIV - CAST( - 1 AS SIGNED ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL 30 / - CAST ( - 1 AS INTEGER ) AS col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8790
SELECT ALL 11 DIV + - 69 col0, + COALESCE ( - 64, + COALESCE ( + 47, + 33 + - + 40 ) DIV + + COUNT( * ) * + 94 + - COUNT( * ) - 90 ) AS col2
----
0
-64

skipif mysql # not compatible
query II rowsort label-8790
SELECT ALL 11 / + - 69 col0, + COALESCE ( - 64, + COALESCE ( + 47, + 33 + - + 40 ) / + + COUNT ( * ) * + 94 + - COUNT ( * ) - 90 ) AS col2
----
0
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT + 64 * COUNT( * ) * 27
----
1728

skipif mysql # not compatible
query I rowsort label-8791
SELECT + 64 * COUNT ( * ) * 27
----
1728

onlyif mysql # DIV for integer division: 
query I rowsort label-8792
SELECT ALL - 94 + - ( 77 ) + - 93 + - ( + NULLIF ( - 49, - 48 ) ) - 96 DIV 93
----
-216

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL - 94 + - ( 77 ) + - 93 + - ( + NULLIF ( - 49, - 48 ) ) - 96 / 93
----
-216

query I rowsort
SELECT 8 * - + ( + 98 ) + ( 53 ) + + 53 AS col0
----
-678

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT DISTINCT - COUNT( * ) + 56
----
55

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT - COUNT ( * ) + 56
----
55

query I rowsort
SELECT - 30 * 32 * + + 10 + + + 82 * + 55 AS col0
----
-5090

query II rowsort
SELECT + 53 + - + 9 AS col2, + 35 + - ( - + 41 ) AS col0
----
44
76

query I rowsort
SELECT + - 11 col1
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8798
SELECT + 80 + COUNT( * ) DIV - 62 * - + 88 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-8798
SELECT + 80 + COUNT ( * ) / - 62 * - + 88 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT ALL + 87 + - COUNT( * ) * - 14 * 83 + + + 1 AS col1
----
1250

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL + 87 + - COUNT ( * ) * - 14 * 83 + + + 1 AS col1
----
1250

query I rowsort
SELECT ALL - + 5 * 71 * + 8
----
-2840

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT ALL - + ( - - CASE - - COUNT( * ) WHEN ( - 15 ) THEN NULL ELSE - + 83 END ) col0
----
83

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL - + ( - - CASE - - COUNT ( * ) WHEN ( - 15 ) THEN NULL ELSE - + 83 END ) col0
----
83

query I rowsort
SELECT DISTINCT + ( + 84 ) + + 2 + + 42 * - 83
----
-3400

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT DISTINCT - - ( + 31 ) - SUM( - ( + 64 ) )
----
95

skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT - - ( + 31 ) - SUM ( - ( + 64 ) )
----
95

query I rowsort
SELECT 27 * - ( + 8 ) col2
----
-216

query II rowsort
SELECT - 78, - 86 + + + 22 AS col1
----
-78
-64

query II rowsort
SELECT 26 AS col0, 69 + 38 AS col0
----
26
107

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT 53 * + COUNT( DISTINCT + 16 ) * - - 51 + 23 * SUM( + - 10 ) AS col2
----
2473

skipif mysql # not compatible
query I rowsort label-8807
SELECT 53 * + COUNT ( DISTINCT + 16 ) * - - 51 + 23 * SUM ( + - 10 ) AS col2
----
2473

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8808
SELECT 42 AS col0, COUNT( * ) * + 49 DIV + 36
----
42
1

skipif mysql # not compatible
query II rowsort label-8808
SELECT 42 AS col0, COUNT ( * ) * + 49 / + 36
----
42
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8809
SELECT ALL 73 - 71 + 74 + + MIN( + 46 ) + 97 AS col0, + 2 + 33 AS col2
----
219
35

skipif mysql # not compatible
query II rowsort label-8809
SELECT ALL 73 - 71 + 74 + + MIN ( + 46 ) + 97 AS col0, + 2 + 33 AS col2
----
219
35

onlyif mysql # DIV for integer division: 
query I rowsort label-8810
SELECT DISTINCT 31 DIV + 8
----
3

skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT 31 / + 8
----
3

query I rowsort
SELECT 65 * 45 AS col2
----
2925

query I rowsort
SELECT 43 * + - 90 * 8 AS col2
----
-30960

query I rowsort
SELECT 46 - 14
----
32

query I rowsort
SELECT 88 + + - 43 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT - COUNT( - + 13 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8815
SELECT - COUNT ( - + 13 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8816
SELECT 42 AS col0, CAST( - CAST( - + 22 AS SIGNED ) AS SIGNED )
----
42
22

skipif mysql # not compatible
query II rowsort label-8816
SELECT 42 AS col0, CAST ( - CAST ( - + 22 AS INTEGER ) AS INTEGER )
----
42
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT - COUNT( - - 0 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8817
SELECT - COUNT ( - - 0 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8818
SELECT ALL 89 * MIN( + 41 ) AS col0, 19 AS col1
----
3649
19

skipif mysql # not compatible
query II rowsort label-8818
SELECT ALL 89 * MIN ( + 41 ) AS col0, 19 AS col1
----
3649
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT 71 - - MIN( DISTINCT - 66 ) * + 34 * + 3
----
-6661

skipif mysql # not compatible
query I rowsort label-8819
SELECT 71 - - MIN ( DISTINCT - 66 ) * + 34 * + 3
----
-6661

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8820
SELECT 78 * CAST( 62 AS SIGNED ) AS col1
----
4836

skipif mysql # not compatible
query I rowsort label-8820
SELECT 78 * CAST ( 62 AS INTEGER ) AS col1
----
4836

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT SUM( 37 ) - - + 62 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-8821
SELECT SUM ( 37 ) - - + 62 AS col0
----
99

query I rowsort
SELECT DISTINCT - 14 * - ( - - ( + + 24 ) )
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT ALL - + MAX( - 30 )
----
30

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL - + MAX ( - 30 )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8824
SELECT ALL + - 89 * + - 82 + - 90 + + 10 * ( 62 ) + + 66 + + 73 * CAST( NULL AS SIGNED ) * - - 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL + - 89 * + - 82 + - 90 + + 10 * ( 62 ) + + 66 + + 73 * CAST ( NULL AS INTEGER ) * - - 27 AS col2
----
NULL

query II rowsort
SELECT - CASE 22 WHEN - 35 THEN + 75 END + - 92 + + 24 * + ( - + 1 ) * + 98 + - ( 56 ) + 49 * - 60 * + 68 AS col1, CASE + 22 WHEN + 0 THEN NULL ELSE - 0 + + 87 - - ( 86 ) END AS col0
----
NULL
173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8826
SELECT DISTINCT 3 * 96 + + CAST( NULL AS SIGNED ) / - 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT 3 * 96 + + CAST ( NULL AS INTEGER ) / - 55 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8827
SELECT DISTINCT + 43 * + COUNT( * ) + + MAX( DISTINCT - + ( 21 ) ) - + CASE + 72 WHEN MAX( - 57 ) * + 51 + - ( ( 74 ) ) + - - CAST( - - COUNT( * ) AS SIGNED ) * + + 17 THEN - 92 + + ( - ( + + 62 ) ) WHEN + - 9 THEN NULL END + - 39 + + + 25 * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8827
SELECT DISTINCT + 43 * + COUNT ( * ) + + MAX ( DISTINCT - + ( 21 ) ) - + CASE + 72 WHEN MAX ( - 57 ) * + 51 + - ( ( 74 ) ) + - - CAST ( - - COUNT ( * ) AS INTEGER ) * + + 17 THEN - 92 + + ( - ( + + 62 ) ) WHEN + - 9 THEN NULL END + - 39 + + + 25 * 36
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8828
SELECT - 61 DIV 41 - + + 22 + 34 AS col1, + 97 AS col2
----
11
97

skipif mysql # not compatible
query II rowsort label-8828
SELECT - 61 / 41 - + + 22 + 34 AS col1, + 97 AS col2
----
11
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8829
SELECT DISTINCT 63 DIV COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-8829
SELECT DISTINCT 63 / COUNT ( * ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT - 69 * + - SUM( 43 ) + COALESCE ( - 4, 31 * - ( + - COUNT( - + ( + - ( - 4 ) ) ) ) ) AS col1
----
2963

skipif mysql # not compatible
query I rowsort label-8830
SELECT - 69 * + - SUM ( 43 ) + COALESCE ( - 4, 31 * - ( + - COUNT ( - + ( + - ( - 4 ) ) ) ) ) AS col1
----
2963

query II rowsort
SELECT ALL + + 95, - 83 AS col0
----
95
-83

query I rowsort
SELECT ALL + 71 * + + 0 + + ( - 65 ) * 96 * + 82 * - 74 AS col2
----
37864320

onlyif mysql # aggregate syntax: 
query II rowsort label-8833
SELECT + + COUNT( * ) AS col0, + COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-8833
SELECT + + COUNT ( * ) AS col0, + COUNT ( * ) AS col2
----
1
1

query I rowsort
SELECT ALL 47 * ( - + 10 )
----
-470

onlyif mysql # DIV for integer division: 
query I rowsort label-8835
SELECT - 87 DIV + 16
----
-5

skipif mysql # not compatible
query I rowsort label-8835
SELECT - 87 / + 16
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8836
SELECT ALL - 56 - 98 - + 86 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL - 56 - 98 - + 86 + - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 38 col1, 59 AS col2
----
38
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT DISTINCT + MIN( DISTINCT 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT + MIN ( DISTINCT 92 ) AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8839
SELECT ALL 15 * + 33 * CAST( - + AVG ( + 5 ) AS SIGNED )
----
-2475

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL 15 * + 33 * CAST ( - + AVG ( + 5 ) AS INTEGER )
----
-2475

onlyif mysql # aggregate syntax: 
query II rowsort label-8840
SELECT - MAX( DISTINCT + CASE + - 20 WHEN - 92 THEN - - 29 + 59 END ) + - 46 col2, 20
----
NULL
20

skipif mysql # not compatible
query II rowsort label-8840
SELECT - MAX ( DISTINCT + CASE + - 20 WHEN - 92 THEN - - 29 + 59 END ) + - 46 col2, 20
----
NULL
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT ALL CASE NULLIF ( + NULLIF ( + 96, COUNT( * ) + - + 60 ), - 59 / + COUNT( * ) ) WHEN + COUNT( * ) THEN NULL WHEN - 23 THEN 48 / - SUM( ALL 54 ) + + 21 - - 50 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL CASE NULLIF ( + NULLIF ( + 96, COUNT ( * ) + - + 60 ), - 59 / + COUNT ( * ) ) WHEN + COUNT ( * ) THEN NULL WHEN - 23 THEN 48 / - SUM ( ALL 54 ) + + 21 - - 50 END col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 13, - 43 ) AS col1
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8843
SELECT - 61 + + 75 - - MIN( 27 ) + 55 * - + 30 * - - 32 + - + 78 DIV - - 26 - 3
----
-52765

skipif mysql # not compatible
query I rowsort label-8843
SELECT - 61 + + 75 - - MIN ( 27 ) + 55 * - + 30 * - - 32 + - + 78 / - - 26 - 3
----
-52765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8844
SELECT - 79 * - - CASE + AVG ( DISTINCT + - 82 ) WHEN 23 * 5 + - COALESCE ( - + COUNT( * ), - + COALESCE ( ( + 96 ), + + 18 ) + + + 19, CAST( + + ( 14 ) AS SIGNED ) ) * + + 6 * - 87 + 0 THEN NULL WHEN - + 49 THEN - 94 + - 83 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8844
SELECT - 79 * - - CASE + AVG ( DISTINCT + - 82 ) WHEN 23 * 5 + - COALESCE ( - + COUNT ( * ), - + COALESCE ( ( + 96 ), + + 18 ) + + + 19, CAST ( + + ( 14 ) AS INTEGER ) ) * + + 6 * - 87 + 0 THEN NULL WHEN - + 49 THEN - 94 + - 83 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8845
SELECT + COUNT( * ) + - 46 + - 46 + - 97 AS col0, + 17 - + 84 AS col1
----
-188
-67

skipif mysql # not compatible
query II rowsort label-8845
SELECT + COUNT ( * ) + - 46 + - 46 + - 97 AS col0, + 17 - + 84 AS col1
----
-188
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8846
SELECT + 25 + - - 66 + + COUNT( * ) * - 62 * 48 DIV + + 20
----
-57

skipif mysql # not compatible
query I rowsort label-8846
SELECT + 25 + - - 66 + + COUNT ( * ) * - 62 * 48 / + + 20
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT - COUNT( * ) - + + 44
----
-45

skipif mysql # not compatible
query I rowsort label-8847
SELECT - COUNT ( * ) - + + 44
----
-45

query I rowsort
SELECT ALL - 0 * + 5 * - 90 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT - NULLIF ( + + COUNT( * ), - 99 * - 77 * 34 / - CASE - - MAX( DISTINCT 3 ) WHEN + 55 THEN NULL WHEN 49 THEN NULL WHEN + + COALESCE ( - 51, - 14 / 94 ) THEN 63 ELSE NULL END ) + 80 + + 41 * + + 80 * 64
----
209999

skipif mysql # not compatible
query I rowsort label-8849
SELECT - NULLIF ( + + COUNT ( * ), - 99 * - 77 * 34 / - CASE - - MAX ( DISTINCT 3 ) WHEN + 55 THEN NULL WHEN 49 THEN NULL WHEN + + COALESCE ( - 51, - 14 / 94 ) THEN 63 ELSE NULL END ) + 80 + + 41 * + + 80 * 64
----
209999

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT - 7 + - 90 * - + 49 * CASE 87 WHEN 1 THEN NULL WHEN - MAX( DISTINCT + 88 ) THEN - 19 WHEN 36 THEN 81 ELSE NULL END * + SUM( + 84 ) + - - 12 + - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8850
SELECT - 7 + - 90 * - + 49 * CASE 87 WHEN 1 THEN NULL WHEN - MAX ( DISTINCT + 88 ) THEN - 19 WHEN 36 THEN 81 ELSE NULL END * + SUM ( + 84 ) + - - 12 + - 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT DISTINCT - 27 + + + COUNT( * ) * + 10 + - 0 col1
----
-17

skipif mysql # not compatible
query I rowsort label-8851
SELECT DISTINCT - 27 + + + COUNT ( * ) * + 10 + - 0 col1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8852
SELECT - MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) + 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8852
SELECT - MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + 55 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT ALL + 0 * - MIN( ALL 76 )
----
0

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL + 0 * - MIN ( ALL 76 )
----
0

query I rowsort
SELECT DISTINCT - 46 + - 31 + 90 * + ( + 74 ) AS col2
----
6583

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT - 71 + CASE + COUNT( * ) WHEN + MIN( ALL + + 15 ) * - 54 + 3 THEN NULL WHEN - COUNT( * ) + - 3 * + - 42 + + 38 THEN + 97 END + - + NULLIF ( - 11, - 97 ) + 46 / COUNT( * ) * + ( 98 ) + - 91 * + COUNT( * ) * - 78 + + - 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8855
SELECT - 71 + CASE + COUNT ( * ) WHEN + MIN ( ALL + + 15 ) * - 54 + 3 THEN NULL WHEN - COUNT ( * ) + - 3 * + - 42 + + 38 THEN + 97 END + - + NULLIF ( - 11, - 97 ) + 46 / COUNT ( * ) * + ( 98 ) + - 91 * + COUNT ( * ) * - 78 + + - 81 AS col2
----
NULL

query I rowsort
SELECT - 89 * - - 35
----
-3115

query I rowsort
SELECT DISTINCT - 28 + + + 56
----
28

query I rowsort
SELECT ALL + 73 + + + 43 AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT - - 72 + - + MIN( ALL - 90 ) * + - 27 * + 7 AS col1
----
-16938

skipif mysql # not compatible
query I rowsort label-8859
SELECT - - 72 + - + MIN ( ALL - 90 ) * + - 27 * + 7 AS col1
----
-16938

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8860
SELECT - 90 DIV + MAX( ALL 98 )
----
0

skipif mysql # not compatible
query I rowsort label-8860
SELECT - 90 / + MAX ( ALL 98 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT + 59 + - COUNT( - 26 )
----
58

skipif mysql # not compatible
query I rowsort label-8861
SELECT + 59 + - COUNT ( - 26 )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8862
SELECT + CASE + 38 WHEN MIN( ALL + CAST( + 22 AS SIGNED ) ) THEN - 87 * 25 - - 42 * - + 40 + - COUNT( * ) - COUNT( * ) + - + 19 WHEN + ( + CASE WHEN - 96 = 6 + 53 THEN + 82 ELSE NULL END ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8862
SELECT + CASE + 38 WHEN MIN ( ALL + CAST ( + 22 AS INTEGER ) ) THEN - 87 * 25 - - 42 * - + 40 + - COUNT ( * ) - COUNT ( * ) + - + 19 WHEN + ( + CASE WHEN - 96 = 6 + 53 THEN + 82 ELSE NULL END ) THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8863
SELECT ALL + + 27 DIV + 98 + - 98 * 54 + + 40 AS col2, 32 - - 63
----
-5252
95

skipif mysql # not compatible
query II rowsort label-8863
SELECT ALL + + 27 / + 98 + - 98 * 54 + + 40 AS col2, 32 - - 63
----
-5252
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT DISTINCT 61 * + COUNT( * ) + COUNT( * ) - COALESCE ( - MAX( - - 37 ), - + COUNT( * ) ) - + 52 * 84 * 31
----
-135309

skipif mysql # not compatible
query I rowsort label-8864
SELECT DISTINCT 61 * + COUNT ( * ) + COUNT ( * ) - COALESCE ( - MAX ( - - 37 ), - + COUNT ( * ) ) - + 52 * 84 * 31
----
-135309

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8865
SELECT - - COUNT( ALL + 28 ) DIV - NULLIF ( - - 5, 64 * 90 - + ( - COUNT( * ) ) ) + - COUNT( * ) - + NULLIF ( - 81, + 65 ) * 95
----
7694

skipif mysql # not compatible
query I rowsort label-8865
SELECT - - COUNT ( ALL + 28 ) / - NULLIF ( - - 5, 64 * 90 - + ( - COUNT ( * ) ) ) + - COUNT ( * ) - + NULLIF ( - 81, + 65 ) * 95
----
7694

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT + - MAX( - 90 ) * MIN( + + 49 ) + + - 53 + 19
----
4376

skipif mysql # not compatible
query I rowsort label-8866
SELECT + - MAX ( - 90 ) * MIN ( + + 49 ) + + - 53 + 19
----
4376

query I rowsort
SELECT ALL 79 * - ( 24 )
----
-1896

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT + 48 + + COUNT( * ) - ( + 92 ) + - 65 * + - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-8868
SELECT + 48 + + COUNT ( * ) - ( + 92 ) + - 65 * + - COUNT ( * )
----
22

query I rowsort
SELECT ALL - 51 * - - 27
----
-1377

onlyif mysql # DIV for integer division: 
query I rowsort label-8870
SELECT + - 65 + + 27 + + 20 DIV ( - 60 ) * - - 25 DIV 49 + - 32
----
-70

skipif mysql # not compatible
query I rowsort label-8870
SELECT + - 65 + + 27 + + 20 / ( - 60 ) * - - 25 / 49 + - 32
----
-70

query I rowsort
SELECT DISTINCT + + 41 AS col1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8872
SELECT - CAST( NULL AS SIGNED ) * + + 15 + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT - CAST ( NULL AS INTEGER ) * + + 15 + 77 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8873
SELECT + COUNT( * ) + - 15 AS col2, ( - 26 )
----
-14
-26

skipif mysql # not compatible
query II rowsort label-8873
SELECT + COUNT ( * ) + - 15 AS col2, ( - 26 )
----
-14
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT + + COUNT( * ) * 75
----
75

skipif mysql # not compatible
query I rowsort label-8874
SELECT + + COUNT ( * ) * 75
----
75

query I rowsort
SELECT + + 41 + + - 90
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8876
SELECT ALL + ( - NULLIF ( - 64, 63 + - 30 ) ) DIV 54 * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL + ( - NULLIF ( - 64, 63 + - 30 ) ) / 54 * + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT DISTINCT 21 * - - 48
----
1008

query I rowsort
SELECT ALL 56 * - 61
----
-3416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8879
SELECT ALL CAST( - 14 AS SIGNED ) DIV + 42 + 71 + - 23 * - COUNT( * ) + + + 42 AS col0
----
136

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL CAST ( - 14 AS INTEGER ) / + 42 + 71 + - 23 * - COUNT ( * ) + + + 42 AS col0
----
136

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8880
SELECT + CASE - + 85 WHEN - CAST( + 41 AS SIGNED ) THEN NULL WHEN + 85 THEN - + 31 * + 20 ELSE - - 57 END DIV - + 67
----
0

skipif mysql # not compatible
query I rowsort label-8880
SELECT + CASE - + 85 WHEN - CAST ( + 41 AS INTEGER ) THEN NULL WHEN + 85 THEN - + 31 * + 20 ELSE - - 57 END / - + 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT - NULLIF ( - ( - COUNT( * ) ), + + 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-8881
SELECT - NULLIF ( - ( - COUNT ( * ) ), + + 51 )
----
-1

query I rowsort
SELECT ALL 61 * - 3 col1
----
-183

query I rowsort
SELECT ALL 20 * - + 59
----
-1180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8884
SELECT - CAST( NULL AS SIGNED ) + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8884
SELECT - CAST ( NULL AS INTEGER ) + 8 AS col2
----
NULL

query I rowsort
SELECT ALL 96 * + 8
----
768

query I rowsort
SELECT + 2 * + - 74 AS col2
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT MIN( ALL - 34 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-8887
SELECT MIN ( ALL - 34 ) AS col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8888
SELECT ALL MIN( ALL 62 ) * - COUNT( * ) * - 41 + + CAST( NULL AS SIGNED ) * 95, 25 AS col0
----
NULL
25

skipif mysql # not compatible
query II rowsort label-8888
SELECT ALL MIN ( ALL 62 ) * - COUNT ( * ) * - 41 + + CAST ( NULL AS INTEGER ) * 95, 25 AS col0
----
NULL
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT DISTINCT 19 + + MAX( DISTINCT - 64 )
----
-45

skipif mysql # not compatible
query I rowsort label-8889
SELECT DISTINCT 19 + + MAX ( DISTINCT - 64 )
----
-45

query I rowsort
SELECT DISTINCT + 60 + - 91 * - 40 * 8 AS col2
----
29180

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT DISTINCT MAX( 88 )
----
88

skipif mysql # not compatible
query I rowsort label-8891
SELECT DISTINCT MAX ( 88 )
----
88

query I rowsort
SELECT - 24 * 90 AS col0
----
-2160

query I rowsort
SELECT ALL + 69 * - - 13
----
897

onlyif mysql # aggregate syntax: 
query II rowsort label-8894
SELECT DISTINCT NULLIF ( - 21, - 57 ), 45 * + COUNT( * ) AS col2
----
-21
45

skipif mysql # not compatible
query II rowsort label-8894
SELECT DISTINCT NULLIF ( - 21, - 57 ), 45 * + COUNT ( * ) AS col2
----
-21
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT - MAX( + 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-8895
SELECT - MAX ( + 98 )
----
-98

query I rowsort
SELECT 17 - + 62
----
-45

query I rowsort
SELECT DISTINCT + ( + 89 ) * + 30 * - + 7 AS col2
----
-18690

query I rowsort
SELECT DISTINCT - + COALESCE ( + 17, - + 27 ) - ( - - ( 22 ) ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT ALL - SUM( DISTINCT - 8 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL - SUM ( DISTINCT - 8 ) AS col1
----
8

onlyif mysql # DIV for integer division: 
query II rowsort label-8900
SELECT 79 AS col0, 96 DIV 63 col0
----
79
1

skipif mysql # not compatible
query II rowsort label-8900
SELECT 79 AS col0, 96 / 63 col0
----
79
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8901
SELECT - SUM( + 32 ) * + 33 * MAX( - - 84 ) + - 72 * COALESCE ( + 55, + 77, - - NULLIF ( - + ( - 29 ), 7 ) * + + 2 + + 86 + - + ( 32 ) + 1 DIV + + 17 + - - 51 ) + + COALESCE ( + 89, + 79 ) * 19
----
-90973

skipif mysql # not compatible
query I rowsort label-8901
SELECT - SUM ( + 32 ) * + 33 * MAX ( - - 84 ) + - 72 * COALESCE ( + 55, + 77, - - NULLIF ( - + ( - 29 ), 7 ) * + + 2 + + 86 + - + ( 32 ) + 1 / + + 17 + - - 51 ) + + COALESCE ( + 89, + 79 ) * 19
----
-90973

onlyif mysql # DIV for integer division: 
query I rowsort label-8902
SELECT ALL + 30 DIV - - 27 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL + 30 / - - 27 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8903
SELECT + COALESCE ( + 92, + COALESCE ( CAST( NULL AS SIGNED ), - 89, - 24 + + 88 ), - + 52 ) * + ( SUM( ALL + 24 ) ) + - + 88 - CAST( - - ( + ( 28 ) ) AS SIGNED )
----
2092

skipif mysql # not compatible
query I rowsort label-8903
SELECT + COALESCE ( + 92, + COALESCE ( CAST ( NULL AS INTEGER ), - 89, - 24 + + 88 ), - + 52 ) * + ( SUM ( ALL + 24 ) ) + - + 88 - CAST ( - - ( + ( 28 ) ) AS INTEGER )
----
2092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8904
SELECT DISTINCT - + NULLIF ( - 62, + - 98 ) DIV + MIN( DISTINCT + + 12 ) + 32 * + ( + - 45 ) + - 72 * + + MAX( - + 71 ) * 71 + + ( - 40 )
----
361477

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT - + NULLIF ( - 62, + - 98 ) / + MIN ( DISTINCT + + 12 ) + 32 * + ( + - 45 ) + - 72 * + + MAX ( - + 71 ) * 71 + + ( - 40 )
----
361477

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8905
SELECT ALL - 81 - CAST( 92 AS SIGNED ), + 79 AS col0
----
-173
79

skipif mysql # not compatible
query II rowsort label-8905
SELECT ALL - 81 - CAST ( 92 AS INTEGER ), + 79 AS col0
----
-173
79

query II rowsort
SELECT + - 9 col0, 45 + - 85
----
-9
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8907
SELECT DISTINCT + NULLIF ( COALESCE ( - 49, - COUNT( * ) DIV + AVG ( ALL + - 89 ) ), 94 ) * - 52 + - 51 AS col1
----
2497

skipif mysql # not compatible
query I rowsort label-8907
SELECT DISTINCT + NULLIF ( COALESCE ( - 49, - COUNT ( * ) / + AVG ( ALL + - 89 ) ), 94 ) * - 52 + - 51 AS col1
----
2497

query I rowsort
SELECT - 40 * + 89 AS col2
----
-3560

query II rowsort
SELECT + 21 AS col1, 58 - - 5 * 73
----
21
423

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8910
SELECT DISTINCT + 17 * CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT + 17 * CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) AS col1
----
NULL

query II rowsort
SELECT ALL - 11, + 50 AS col1
----
-11
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT 8 * + - COUNT( * ) + ( 24 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-8912
SELECT 8 * + - COUNT ( * ) + ( 24 ) AS col0
----
16

query I rowsort
SELECT ( - 46 ) * + 70 AS col0
----
-3220

query I rowsort
SELECT ALL 14 + 25
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8915
SELECT 53, SUM( - 96 ) + + - 65 * + 92 AS col2
----
53
-6076

skipif mysql # not compatible
query II rowsort label-8915
SELECT 53, SUM ( - 96 ) + + - 65 * + 92 AS col2
----
53
-6076

onlyif mysql # DIV for integer division: 
query I rowsort label-8916
SELECT 71 + + - 14 DIV + 44 * - 95 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-8916
SELECT 71 + + - 14 / + 44 * - 95 AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8917
SELECT ALL CASE + 51 WHEN + 57 + - - 36 THEN - - ( ( + 25 ) ) WHEN - 76 THEN NULL END + + 12 AS col0, + COUNT( * ) DIV + 38 + - 17
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-8917
SELECT ALL CASE + 51 WHEN + 57 + - - 36 THEN - - ( ( + 25 ) ) WHEN - 76 THEN NULL END + + 12 AS col0, + COUNT ( * ) / + 38 + - 17
----
NULL
-17

query I rowsort
SELECT ALL 78 + 78 * - - 25
----
2028

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT MIN( + 86 ) + - 42 col2
----
44

skipif mysql # not compatible
query I rowsort label-8919
SELECT MIN ( + 86 ) + - 42 col2
----
44

query I rowsort
SELECT 71 + + 56
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT 6 - + + ( - COUNT( * ) ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-8921
SELECT 6 - + + ( - COUNT ( * ) ) AS col2
----
7

query I rowsort
SELECT ( + NULLIF ( - 57, - + 30 * 24 + + 15 ) ) - - 62 * + 32 AS col2
----
1927

query II rowsort
SELECT - 81 * - 51 col2, - 57 * 64
----
4131
-3648

query II rowsort
SELECT 38, + 32 + 45 * - 18 + + 39 AS col0
----
38
-739

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT 85 + + SUM( DISTINCT - ( ( - - 12 ) ) ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-8925
SELECT 85 + + SUM ( DISTINCT - ( ( - - 12 ) ) ) AS col1
----
73

query I rowsort
SELECT DISTINCT COALESCE ( - - 13, + 46 ) AS col2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8927
SELECT ALL - ( - 1 ) - 67 - - - 8 + - CAST( NULL AS SIGNED ) + + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL - ( - 1 ) - 67 - - - 8 + - CAST ( NULL AS INTEGER ) + + + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT - COALESCE ( - - COUNT( * ), + 37 * - 24 ) + - 71 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-8928
SELECT - COALESCE ( - - COUNT ( * ), + 37 * - 24 ) + - 71 AS col0
----
-72

query I rowsort
SELECT ALL + + 46 * + 10
----
460

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT 96 + - SUM( DISTINCT NULLIF ( - 94, 62 * - - 88 ) )
----
190

skipif mysql # not compatible
query I rowsort label-8930
SELECT 96 + - SUM ( DISTINCT NULLIF ( - 94, 62 * - - 88 ) )
----
190

query I rowsort
SELECT 42 + + 86 * + 94 AS col1
----
8126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8932
SELECT 31 * + CASE - 37 WHEN - CAST( NULL AS SIGNED ) + + + COUNT( * ) THEN - 64 / 49 - - COUNT( * ) * - + 75 WHEN 70 THEN 63 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8932
SELECT 31 * + CASE - 37 WHEN - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) THEN - 64 / 49 - - COUNT ( * ) * - + 75 WHEN 70 THEN 63 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 68 * - 79
----
5372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8934
SELECT DISTINCT - - 4 * COUNT( 34 ) * + + CAST( NULL AS SIGNED ) * + AVG ( ALL + - 93 ), - 79 * - COUNT( * ) + + COUNT( - 64 ) * + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8934
SELECT DISTINCT - - 4 * COUNT ( 34 ) * + + CAST ( NULL AS INTEGER ) * + AVG ( ALL + - 93 ), - 79 * - COUNT ( * ) + + COUNT ( - 64 ) * + CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT DISTINCT 85 * 28 AS col2
----
2380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8936
SELECT - 45 DIV + COUNT( * ) - 92 * + - 68 + + 70 + - 92 - - ( + 31 ) DIV - 88 + + + 39 + - - 40 AS col2
----
6268

skipif mysql # not compatible
query I rowsort label-8936
SELECT - 45 / + COUNT ( * ) - 92 * + - 68 + + 70 + - 92 - - ( + 31 ) / - 88 + + + 39 + - - 40 AS col2
----
6268

query I rowsort
SELECT + 47 + - 34 - + + 49 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT ALL - 76 + + + 46 + 98 * - 45 + + MAX( 13 ) * + 47 + + COUNT( * )
----
-3828

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL - 76 + + + 46 + 98 * - 45 + + MAX ( 13 ) * + 47 + + COUNT ( * )
----
-3828

query I rowsort
SELECT 91 + - 85
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8940
SELECT 62 * NULLIF ( - - NULLIF ( - ( - + CASE MIN( + 74 ) WHEN 15 / - CASE + + COALESCE ( - 28, - 18 * + ( + 44 ) + 16 * + 24 ) WHEN + + COUNT( + + 69 ) THEN - 95 * - 1 + - 2 + + CAST( NULL AS SIGNED ) + - 40 + + ( - - 17 ) * 59 + + 47 * 82 WHEN + - 78 THEN NULL END + + 65 - + + 27 + - 47 * - 36 * + MIN( - - 27 ) THEN - 50 + 32 + - 0 END ), + 81 ), + 6 + - 94 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT 62 * NULLIF ( - - NULLIF ( - ( - + CASE MIN ( + 74 ) WHEN 15 / - CASE + + COALESCE ( - 28, - 18 * + ( + 44 ) + 16 * + 24 ) WHEN + + COUNT ( + + 69 ) THEN - 95 * - 1 + - 2 + + CAST ( NULL AS INTEGER ) + - 40 + + ( - - 17 ) * 59 + + 47 * 82 WHEN + - 78 THEN NULL END + + 65 - + + 27 + - 47 * - 36 * + MIN ( - - 27 ) THEN - 50 + 32 + - 0 END ), + 81 ), + 6 + - 94 ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 32 * - 5, + 9 AS col0
----
160
9

query II rowsort
SELECT DISTINCT + 68 * + 91 AS col0, 74 AS col1
----
6188
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8943
SELECT DISTINCT COALESCE ( - ( + 2 ), 21, + 27 + - CAST( NULL AS SIGNED ) ) + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT COALESCE ( - ( + 2 ), 21, + 27 + - CAST ( NULL AS INTEGER ) ) + + COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT + 87 * 11
----
957

query II rowsort
SELECT DISTINCT 1 + - + 86 AS col2, - ( 55 ) + 77 AS col1
----
-85
22

query II rowsort
SELECT DISTINCT - 69 * + 21 AS col0, + 25 * - 8 AS col2
----
-1449
-200

query I rowsort
SELECT ALL 24 - + 71
----
-47

query I rowsort
SELECT - 30 * + 91
----
-2730

query II rowsort
SELECT + 95 + 47, 46 + - 56 AS col1
----
142
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-8950
SELECT ALL COUNT( * ) - + - 23 AS col1, + 80 * - 69
----
24
-5520

skipif mysql # not compatible
query II rowsort label-8950
SELECT ALL COUNT ( * ) - + - 23 AS col1, + 80 * - 69
----
24
-5520

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT - MAX( 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-8951
SELECT - MAX ( 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT ALL NULLIF ( - 5, - + COUNT( * ) / ( - 67 ) * - 40 / + + 56 + - 86 )
----
-5

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL NULLIF ( - 5, - + COUNT ( * ) / ( - 67 ) * - 40 / + + 56 + - 86 )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8953
SELECT ALL - 24 DIV + 30 * 79
----
0

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL - 24 / + 30 * 79
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8954
SELECT ALL + MAX( ALL + + 85 ) AS col0, + 58 * 94 + + 1 + CAST( NULL AS SIGNED ) * - 65 AS col0
----
85
NULL

skipif mysql # not compatible
query II rowsort label-8954
SELECT ALL + MAX ( ALL + + 85 ) AS col0, + 58 * 94 + + 1 + CAST ( NULL AS INTEGER ) * - 65 AS col0
----
85
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT ALL + - COUNT( * ) - - + ( 92 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL + - COUNT ( * ) - - + ( 92 ) AS col2
----
91

query II rowsort
SELECT ALL - 75 - - + 76 AS col2, 59
----
1
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT + COUNT( * ) * + + MAX( + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-8957
SELECT + COUNT ( * ) * + + MAX ( + 12 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8958
SELECT - CAST( 63 AS SIGNED ) + + ( - COUNT( * ) ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-8958
SELECT - CAST ( 63 AS INTEGER ) + + ( - COUNT ( * ) ) AS col2
----
-64

query I rowsort
SELECT + 72 + - 10 AS col2
----
62

query II rowsort
SELECT + + 3 + 50 col0, - 78 - + 43 * + 81
----
53
-3561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8961
SELECT CAST( - + COALESCE ( + + ( + COUNT( * ) ), - 62 + + NULLIF ( 98, 0 ) ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8961
SELECT CAST ( - + COALESCE ( + + ( + COUNT ( * ) ), - 62 + + NULLIF ( 98, 0 ) ) AS INTEGER ) AS col1
----
-1

query II rowsort
SELECT DISTINCT - 89 + - 89, + 24 AS col1
----
-178
24

onlyif mysql # aggregate syntax: 
query II rowsort label-8963
SELECT + - 84 - - 46, COUNT( 24 ) AS col1
----
-38
1

skipif mysql # not compatible
query II rowsort label-8963
SELECT + - 84 - - 46, COUNT ( 24 ) AS col1
----
-38
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8964
SELECT DISTINCT 60 * - 18 * 60 * CAST( 81 AS SIGNED ) + + 20 AS col2
----
-5248780

skipif mysql # not compatible
query I rowsort label-8964
SELECT DISTINCT 60 * - 18 * 60 * CAST ( 81 AS INTEGER ) + + 20 AS col2
----
-5248780

query I rowsort
SELECT + 26 * 86
----
2236

query I rowsort
SELECT - 32 * 75 col2
----
-2400

query II rowsort
SELECT + 75 AS col1, - ( 37 ) * + - 24
----
75
888

query I rowsort
SELECT + ( + - 96 ) AS col1
----
-96

query I rowsort
SELECT + 96 * 55
----
5280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8970
SELECT ALL + 91 * + + 39 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL + 91 * + + 39 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT ALL + 41 * MIN( ALL 45 ) + + + COUNT( * ) AS col0
----
1846

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL + 41 * MIN ( ALL 45 ) + + + COUNT ( * ) AS col0
----
1846

onlyif mysql # DIV for integer division: 
query I rowsort label-8972
SELECT COALESCE ( 74, 12, 34 DIV + - 39 ) col2
----
74

skipif mysql # not compatible
query I rowsort label-8972
SELECT COALESCE ( 74, 12, 34 / + - 39 ) col2
----
74

query I rowsort
SELECT ALL - 64 * + ( - 40 ) - - 59 col2
----
2619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8974
SELECT CAST( NULL AS SIGNED ) * 26 + 94 * - 93 * - + 87 - + COUNT( * ) AS col1, MIN( DISTINCT - 85 ) * 67 - + 56
----
NULL
-5751

skipif mysql # not compatible
query II rowsort label-8974
SELECT CAST ( NULL AS INTEGER ) * 26 + 94 * - 93 * - + 87 - + COUNT ( * ) AS col1, MIN ( DISTINCT - 85 ) * 67 - + 56
----
NULL
-5751

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT 10 * - 98 + - - COUNT( * ) + + 95
----
-884

skipif mysql # not compatible
query I rowsort label-8975
SELECT 10 * - 98 + - - COUNT ( * ) + + 95
----
-884

query I rowsort
SELECT - 65 * - ( + 74 ) * - 53 col0
----
-254930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8977
SELECT ALL + CASE + 93 WHEN - CAST( - - 12 AS SIGNED ) THEN NULL WHEN - 0 THEN + 95 + + - 38 + - ( MAX( 29 ) ) END * + ( + 31 ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL + CASE + 93 WHEN - CAST ( - - 12 AS INTEGER ) THEN NULL WHEN - 0 THEN + 95 + + - 38 + - ( MAX ( 29 ) ) END * + ( + 31 ) * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8978
SELECT - 59 + + - ( + 78 ) DIV + + ( 90 ) + + - 13 col1
----
-72

skipif mysql # not compatible
query I rowsort label-8978
SELECT - 59 + + - ( + 78 ) / + + ( 90 ) + + - 13 col1
----
-72

query I rowsort
SELECT ALL - 78 * - 75 AS col1
----
5850

query I rowsort
SELECT - 86 * - 83 + - + 67
----
7071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8981
SELECT DISTINCT - - COUNT( * ) * - ( - - CAST( 75 AS SIGNED ) ) + + COALESCE ( 49, - 38 + + COALESCE ( 84, + + 65 * - 3 ) + 36 * - - 60 ) AS col2, + 86
----
-26
86

skipif mysql # not compatible
query II rowsort label-8981
SELECT DISTINCT - - COUNT ( * ) * - ( - - CAST ( 75 AS INTEGER ) ) + + COALESCE ( 49, - 38 + + COALESCE ( 84, + + 65 * - 3 ) + 36 * - - 60 ) AS col2, + 86
----
-26
86

query II rowsort
SELECT - - 46 col1, - 58
----
46
-58

query I rowsort
SELECT ALL - 34 * + 7 AS col0
----
-238

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8984
SELECT - + COUNT( * ) * - 55 * + CASE - 12 WHEN - - AVG ( - 11 ) - + 56 THEN + 51 * + - 75 * - 75 + + 72 + + + 28 DIV - 3 + - - 1 * + 84 * - 29 - + 30 - - COUNT( * ) + - + 38 WHEN ( - 90 ) * + 32 THEN NULL ELSE + 6 END * + - 70
----
-23100

skipif mysql # not compatible
query I rowsort label-8984
SELECT - + COUNT ( * ) * - 55 * + CASE - 12 WHEN - - AVG ( - 11 ) - + 56 THEN + 51 * + - 75 * - 75 + + 72 + + + 28 / - 3 + - - 1 * + 84 * - 29 - + 30 - - COUNT ( * ) + - + 38 WHEN ( - 90 ) * + 32 THEN NULL ELSE + 6 END * + - 70
----
-23100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8985
SELECT - 56 + ( + 68 ) - + - 67 + - 18 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8985
SELECT - 56 + ( + 68 ) - + - 67 + - 18 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT + 26 + - 84 * SUM( DISTINCT 39 ) + + - 50 AS col0
----
-3300

skipif mysql # not compatible
query I rowsort label-8986
SELECT + 26 + - 84 * SUM ( DISTINCT 39 ) + + - 50 AS col0
----
-3300

onlyif mysql # aggregate syntax: 
query II rowsort label-8987
SELECT ALL COUNT( * ) AS col2, SUM( + + 9 ) + - 64 AS col0
----
1
-55

skipif mysql # not compatible
query II rowsort label-8987
SELECT ALL COUNT ( * ) AS col2, SUM ( + + 9 ) + - 64 AS col0
----
1
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT + + COUNT( + 41 ) + 26 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-8988
SELECT + + COUNT ( + 41 ) + 26 AS col0
----
27

query I rowsort
SELECT ALL - 93 + 67 * + - 84
----
-5721

query I rowsort
SELECT ( - + 21 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT ALL 45 * 94 * - + MIN( DISTINCT 80 ) - + - 74 AS col1
----
-338326

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL 45 * 94 * - + MIN ( DISTINCT 80 ) - + - 74 AS col1
----
-338326

onlyif mysql # DIV for integer division: 
query I rowsort label-8992
SELECT + 15 DIV + - 32
----
0

skipif mysql # not compatible
query I rowsort label-8992
SELECT + 15 / + - 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT ALL + SUM( ALL - 29 ) + - 82 * 94 + + + COUNT( * ) AS col0
----
-7736

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL + SUM ( ALL - 29 ) + - 82 * 94 + + + COUNT ( * ) AS col0
----
-7736

query I rowsort
SELECT - + 11 + + ( 27 ) + + 6 AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8995
SELECT - - ( + ( + CAST( ( - 58 ) AS SIGNED ) ) ) + - 91 AS col2
----
-149

skipif mysql # not compatible
query I rowsort label-8995
SELECT - - ( + ( + CAST ( ( - 58 ) AS INTEGER ) ) ) + - 91 AS col2
----
-149

query I rowsort
SELECT ALL + 67 * 84
----
5628

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8997
SELECT + CAST( NULL AS DECIMAL ) * - 88 + - NULLIF ( 20, - - 98 ) + - - 74 * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-8997
SELECT + CAST ( NULL AS REAL ) * - 88 + - NULLIF ( 20, - - 98 ) + - - 74 * 98
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8998
SELECT DISTINCT 27 DIV - ( - 71 ) * - 85 + - 92 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-8998
SELECT DISTINCT 27 / - ( - 71 ) * - 85 + - 92 AS col1
----
-92

query I rowsort
SELECT ALL 61 * + 64
----
3904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9000
SELECT + 73 + CAST( 17 AS SIGNED )
----
90

skipif mysql # not compatible
query I rowsort label-9000
SELECT + 73 + CAST ( 17 AS INTEGER )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9001
SELECT + 19 * COUNT( * ) DIV 11
----
1

skipif mysql # not compatible
query I rowsort label-9001
SELECT + 19 * COUNT ( * ) / 11
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9002
SELECT + ( + 23 ) AS col2, 17 + - CAST( NULL AS DECIMAL ) + - ( COUNT( NULLIF ( + 17, + 74 * + 36 * 91 + 82 * 83 ) ) ) * - + 59 + - 64
----
23
NULL

skipif mysql # not compatible
query II rowsort label-9002
SELECT + ( + 23 ) AS col2, 17 + - CAST ( NULL AS REAL ) + - ( COUNT ( NULLIF ( + 17, + 74 * + 36 * 91 + 82 * 83 ) ) ) * - + 59 + - 64
----
23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT 78 * + 57 + + COUNT( * ) AS col0
----
4447

skipif mysql # not compatible
query I rowsort label-9003
SELECT 78 * + 57 + + COUNT ( * ) AS col0
----
4447

query I rowsort
SELECT - 76 * 43 + 11 AS col0
----
-3257

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT ALL 83 * ( - 21 ) * + + ( + + 58 ) + + SUM( ALL - 33 )
----
-101127

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL 83 * ( - 21 ) * + + ( + + 58 ) + + SUM ( ALL - 33 )
----
-101127

query I rowsort
SELECT 25 + + 89 * - 88
----
-7807

query I rowsort
SELECT DISTINCT + 97 * - ( - + 2 )
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT SUM( - - 57 )
----
57

skipif mysql # not compatible
query I rowsort label-9008
SELECT SUM ( - - 57 )
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9009
SELECT 30 * + MAX( - 51 ) + + 98 AS col2, - 66
----
-1432
-66

skipif mysql # not compatible
query II rowsort label-9009
SELECT 30 * + MAX ( - 51 ) + + 98 AS col2, - 66
----
-1432
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT ALL ( - MAX( + - 40 ) )
----
40

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL ( - MAX ( + - 40 ) )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9011
SELECT COUNT( * ) DIV 65 * ( - 1 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9011
SELECT COUNT ( * ) / 65 * ( - 1 ) col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9012
SELECT 9 DIV - - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9012
SELECT 9 / - - 75 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT 40 - - 2 * COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-9013
SELECT 40 - - 2 * COUNT ( * )
----
42

query I rowsort
SELECT ALL - - 60 + - 93
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9015
SELECT DISTINCT + + 97 * - COUNT( - 57 ) * - + CASE + 76 WHEN - SUM( + + CAST( 43 AS SIGNED ) ) + + COUNT( * ) + + 29 THEN + + 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT + + 97 * - COUNT ( - 57 ) * - + CASE + 76 WHEN - SUM ( + + CAST ( 43 AS INTEGER ) ) + + COUNT ( * ) + + 29 THEN + + 89 END
----
NULL

query I rowsort
SELECT DISTINCT ( - + 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT DISTINCT - 89 + 42 + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-9017
SELECT DISTINCT - 89 + 42 + COUNT ( * )
----
-46

query I rowsort
SELECT ALL + - 30 + - - 26
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT MIN( - 70 ) * + 99
----
-6930

skipif mysql # not compatible
query I rowsort label-9019
SELECT MIN ( - 70 ) * + 99
----
-6930

query I rowsort
SELECT + 40 * ( + 64 ) + + 44
----
2604

onlyif mysql # aggregate syntax: 
query II rowsort label-9021
SELECT ALL + + 42 + + 7 AS col1, + 25 + COUNT( * ) - + 52 * 50 AS col0
----
49
-2574

skipif mysql # not compatible
query II rowsort label-9021
SELECT ALL + + 42 + + 7 AS col1, + 25 + COUNT ( * ) - + 52 * 50 AS col0
----
49
-2574

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT DISTINCT + + COUNT( * ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9022
SELECT DISTINCT + + COUNT ( * ) + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT 84 + - SUM( DISTINCT 30 )
----
54

skipif mysql # not compatible
query I rowsort label-9023
SELECT 84 + - SUM ( DISTINCT 30 )
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-9024
SELECT ALL + 28 - COALESCE ( - 48, + SUM( DISTINCT 41 ) ) AS col1, + 95 AS col0
----
76
95

skipif mysql # not compatible
query II rowsort label-9024
SELECT ALL + 28 - COALESCE ( - 48, + SUM ( DISTINCT 41 ) ) AS col1, + 95 AS col0
----
76
95

query I rowsort
SELECT 65 * + 27 * + 34 AS col2
----
59670

query I rowsort
SELECT NULLIF ( + 18, 70 ) * ( 0 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9027
SELECT - 72 DIV + 30 - + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9027
SELECT - 72 / + 30 - + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9028
SELECT CAST( NULL AS SIGNED ) * + ( + - 45 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9028
SELECT CAST ( NULL AS INTEGER ) * + ( + - 45 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9029
SELECT + 35 DIV 75 * + 85 - - 16 + 69
----
85

skipif mysql # not compatible
query I rowsort label-9029
SELECT + 35 / 75 * + 85 - - 16 + 69
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9030
SELECT DISTINCT + 10 * 34 DIV + 29
----
11

skipif mysql # not compatible
query I rowsort label-9030
SELECT DISTINCT + 10 * 34 / + 29
----
11

query I rowsort
SELECT DISTINCT 7 * NULLIF ( 32, - 68 ) AS col0
----
224

query II rowsort
SELECT ALL - 86 AS col1, 76 AS col2
----
-86
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT - 90 * 12 + CASE 69 WHEN - COUNT( - 22 ) / - 78 THEN - ( + 77 ) * - COALESCE ( + 51, 84 * + 48, - MIN( ALL - 43 ) + - 32 * - 79 ) WHEN + COUNT( * ) THEN NULL ELSE - 65 + 38 END AS col0
----
-1107

skipif mysql # not compatible
query I rowsort label-9033
SELECT - 90 * 12 + CASE 69 WHEN - COUNT ( - 22 ) / - 78 THEN - ( + 77 ) * - COALESCE ( + 51, 84 * + 48, - MIN ( ALL - 43 ) + - 32 * - 79 ) WHEN + COUNT ( * ) THEN NULL ELSE - 65 + 38 END AS col0
----
-1107

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9034
SELECT 24 + - 77 DIV NULLIF ( + ( - 24 ) * 10, 35 * + CAST( NULL AS SIGNED ) ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-9034
SELECT 24 + - 77 / NULLIF ( + ( - 24 ) * 10, 35 * + CAST ( NULL AS INTEGER ) ) AS col1
----
24

query I rowsort
SELECT ALL 88 + + 8 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT MAX( ALL - 48 ) * + 41 + 60 AS col1
----
-1908

skipif mysql # not compatible
query I rowsort label-9036
SELECT MAX ( ALL - 48 ) * + 41 + 60 AS col1
----
-1908

query I rowsort
SELECT ( + 98 ) + 8
----
106

query I rowsort
SELECT ALL + 48 * + 35 col0
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT DISTINCT ( 69 ) + 63 * + ( COUNT( * ) )
----
132

skipif mysql # not compatible
query I rowsort label-9039
SELECT DISTINCT ( 69 ) + 63 * + ( COUNT ( * ) )
----
132

query I rowsort
SELECT ( 20 ) * + 10 AS col1
----
200

query I rowsort
SELECT 75 + - 5
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9042
SELECT 49 DIV + ( - 21 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9042
SELECT 49 / + ( - 21 ) AS col1
----
-2

query I rowsort
SELECT 85 + - 97 * - 82
----
8039

query I rowsort
SELECT 56 * 3 AS col0
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-9045
SELECT DISTINCT - 13 DIV - 8
----
1

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT - 13 / - 8
----
1

query I rowsort
SELECT ALL + 59 - - 32 col2
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9047
SELECT 84 + COALESCE ( - 72 + 85, + CASE 98 WHEN COUNT( ALL 71 ) THEN NULL WHEN - 31 * + 34 THEN ( CASE ( - 73 ) WHEN + 87 + 4 THEN - 76 - 43 ELSE NULL END ) DIV COUNT( ALL 30 * - 44 ) + - 79 END DIV + 44, - 41 * COUNT( * ) ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-9047
SELECT 84 + COALESCE ( - 72 + 85, + CASE 98 WHEN COUNT ( ALL 71 ) THEN NULL WHEN - 31 * + 34 THEN ( CASE ( - 73 ) WHEN + 87 + 4 THEN - 76 - 43 ELSE NULL END ) / COUNT ( ALL 30 * - 44 ) + - 79 END / + 44, - 41 * COUNT ( * ) ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT ALL + 23 * + MIN( 94 * 81 ) AS col1
----
175122

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL + 23 * + MIN ( 94 * 81 ) AS col1
----
175122

query I rowsort
SELECT DISTINCT COALESCE ( 10, 82 * 35, + 33, 15 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT DISTINCT + COUNT( * ) * 53 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT + COUNT ( * ) * 53 AS col0
----
53

query I rowsort
SELECT DISTINCT + 41 * 92 col2
----
3772

query I rowsort
SELECT + 37 + + ( 86 ) AS col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT - 43 - - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-9053
SELECT - 43 - - COUNT ( * )
----
-42

query I rowsort
SELECT - 2 * + 40
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT ALL + 23 * ( COALESCE ( 88, + 15 + 25, - MAX( DISTINCT 63 ) ) ) col2
----
2024

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL + 23 * ( COALESCE ( 88, + 15 + 25, - MAX ( DISTINCT 63 ) ) ) col2
----
2024

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT CASE - SUM( - ( ( + 71 ) ) ) WHEN + COUNT( DISTINCT 41 ) * 8 THEN + 61 WHEN + 55 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9056
SELECT CASE - SUM ( - ( ( + 71 ) ) ) WHEN + COUNT ( DISTINCT 41 ) * 8 THEN + 61 WHEN + 55 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 15 * + 26 + - 39
----
351

query I rowsort
SELECT - 66 * - 7 AS col0
----
462

query I rowsort
SELECT ALL + 24 * 76 col2
----
1824

query I rowsort
SELECT NULLIF ( 77, 3 ) AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9061
SELECT - 60 + SUM( + 88 + - 37 * + CAST( NULL AS DECIMAL ) ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9061
SELECT - 60 + SUM ( + 88 + - 37 * + CAST ( NULL AS REAL ) ) * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 30 * + 73
----
2190

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT - 36 * COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-9063
SELECT - 36 * COUNT ( * )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9064
SELECT CASE + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) WHEN COUNT( DISTINCT - 98 ) THEN - 99 WHEN + COUNT( * ) * COUNT( * ) + 84 * + COUNT( * ) THEN - 32 + 14 * 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9064
SELECT CASE + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) WHEN COUNT ( DISTINCT - 98 ) THEN - 99 WHEN + COUNT ( * ) * COUNT ( * ) + 84 * + COUNT ( * ) THEN - 32 + 14 * 29 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9065
SELECT ALL - CAST( + ( + 72 ) AS SIGNED ) * + 52
----
-3744

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL - CAST ( + ( + 72 ) AS INTEGER ) * + 52
----
-3744

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT 89 * MAX( DISTINCT + 50 ) + 54 * + 32
----
6178

skipif mysql # not compatible
query I rowsort label-9066
SELECT 89 * MAX ( DISTINCT + 50 ) + 54 * + 32
----
6178

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT + 92 + MIN( ALL 92 ) * 0 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-9067
SELECT + 92 + MIN ( ALL 92 ) * 0 AS col0
----
92

query I rowsort
SELECT ALL - - 89 * - 5
----
-445

query I rowsort
SELECT + - 75 * - 16
----
1200

query I rowsort
SELECT DISTINCT + 15 * - 9 + - 35
----
-170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9071
SELECT ALL + CAST( + 40 AS SIGNED ) * 84 + 5
----
3365

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL + CAST ( + 40 AS INTEGER ) * 84 + 5
----
3365

query I rowsort
SELECT ALL + + ( 53 ) AS col1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-9073
SELECT DISTINCT + 36 * - 67 + + 44 DIV - 16 AS col1
----
-2414

skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT + 36 * - 67 + + 44 / - 16 AS col1
----
-2414

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9074
SELECT + + CASE + 80 WHEN CAST( 87 AS DECIMAL ) THEN + 75 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT + + CASE + 80 WHEN CAST ( 87 AS REAL ) THEN + 75 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT - COUNT( * ) * 9
----
-9

skipif mysql # not compatible
query I rowsort label-9075
SELECT - COUNT ( * ) * 9
----
-9

query I rowsort
SELECT NULLIF ( 17, 17 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT - MAX( 28 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-9077
SELECT - MAX ( 28 ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT + - CASE + 94 WHEN 11 THEN 85 WHEN 35 - + 86 * 7 THEN NULL WHEN 25 + - 4 / + COUNT( * ) THEN NULL ELSE + 48 END - + 28 * COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-9078
SELECT + - CASE + 94 WHEN 11 THEN 85 WHEN 35 - + 86 * 7 THEN NULL WHEN 25 + - 4 / + COUNT ( * ) THEN NULL ELSE + 48 END - + 28 * COUNT ( * ) AS col2
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9079
SELECT ALL - 19 - - CAST( 47 + + CAST( 62 AS SIGNED ) * 30 AS SIGNED ) AS col0
----
1888

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL - 19 - - CAST ( 47 + + CAST ( 62 AS INTEGER ) * 30 AS INTEGER ) AS col0
----
1888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9080
SELECT + 97 + + CAST( CAST( - 78 AS SIGNED ) AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-9080
SELECT + 97 + + CAST ( CAST ( - 78 AS INTEGER ) AS INTEGER )
----
19

query I rowsort
SELECT - 2 - 24 AS col1
----
-26

query I rowsort
SELECT + 14 * - 81 AS col1
----
-1134

query I rowsort
SELECT - 20 + - 85
----
-105

query I rowsort
SELECT + 84 * - 91
----
-7644

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT - 43 + - COUNT( * ) * 23 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-9085
SELECT - 43 + - COUNT ( * ) * 23 AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT ALL + CASE + COALESCE ( 30, 62, 91 + 23 ) WHEN COALESCE ( - COUNT( * ), + 55 * 70 - + 17 ) THEN NULL WHEN 66 THEN 30 ELSE 62 END * COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL + CASE + COALESCE ( 30, 62, 91 + 23 ) WHEN COALESCE ( - COUNT ( * ), + 55 * 70 - + 17 ) THEN NULL WHEN 66 THEN 30 ELSE 62 END * COUNT ( * )
----
62

query I rowsort
SELECT DISTINCT - 38 + 94 AS col1
----
56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9088
SELECT + NULLIF ( - 20, CAST( 42 AS SIGNED ) * - 50 ) - + 25 DIV 88
----
-20

skipif mysql # not compatible
query I rowsort label-9088
SELECT + NULLIF ( - 20, CAST ( 42 AS INTEGER ) * - 50 ) - + 25 / 88
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT + 24 * - - COUNT( * ) * - 21 AS col2
----
-504

skipif mysql # not compatible
query I rowsort label-9089
SELECT + 24 * - - COUNT ( * ) * - 21 AS col2
----
-504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9090
SELECT DISTINCT + 29 DIV 93 DIV - 36 + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9090
SELECT DISTINCT + 29 / 93 / - 36 + COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9091
SELECT - 82 * + - COUNT( * ) DIV CAST( 86 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9091
SELECT - 82 * + - COUNT ( * ) / CAST ( 86 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9092
SELECT COUNT( * ) DIV - - 57 - 40 * + 3 AS col2
----
-120

skipif mysql # not compatible
query I rowsort label-9092
SELECT COUNT ( * ) / - - 57 - 40 * + 3 AS col2
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT MAX( ALL 56 )
----
56

skipif mysql # not compatible
query I rowsort label-9093
SELECT MAX ( ALL 56 )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9094
SELECT DISTINCT - + ( + 73 ) DIV + 57 + 24 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT - + ( + 73 ) / + 57 + 24 AS col1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9095
SELECT ALL - + 53 DIV + 59 + + 61 DIV 40
----
1

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL - + 53 / + 59 + + 61 / 40
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9096
SELECT - 43 DIV - 67 * - 36 + - 99 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-9096
SELECT - 43 / - 67 * - 36 + - 99 AS col0
----
-99

query I rowsort
SELECT - ( - 71 ) + + 94 AS col2
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-9098
SELECT + 32 * - 27 - - 98 DIV 91
----
-863

skipif mysql # not compatible
query I rowsort label-9098
SELECT + 32 * - 27 - - 98 / 91
----
-863

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT + - CASE - + 97 WHEN - 40 THEN NULL WHEN + 61 THEN + COUNT( * ) + 68 END - + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-9099
SELECT + - CASE - + 97 WHEN - 40 THEN NULL WHEN + 61 THEN + COUNT ( * ) + 68 END - + 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT - + 52 * 82 * + 7 - COUNT( 25 ) * 55 AS col0
----
-29903

skipif mysql # not compatible
query I rowsort label-9100
SELECT - + 52 * 82 * + 7 - COUNT ( 25 ) * 55 AS col0
----
-29903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9101
SELECT - - ( - 45 ) * CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9101
SELECT - - ( - 45 ) * CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT ALL + COUNT( * ) * - CASE 47 WHEN 37 THEN + 85 ELSE NULL END - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL + COUNT ( * ) * - CASE 47 WHEN 37 THEN + 85 ELSE NULL END - COUNT ( * )
----
NULL

query I rowsort
SELECT - 37 * + 54 col0
----
-1998

query I rowsort
SELECT ALL - 14 * + + 75
----
-1050

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT - 52 * - 45 + + COUNT( * )
----
2341

skipif mysql # not compatible
query I rowsort label-9105
SELECT - 52 * - 45 + + COUNT ( * )
----
2341

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT DISTINCT + 81 * + COUNT( DISTINCT 88 )
----
81

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT + 81 * + COUNT ( DISTINCT 88 )
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9107
SELECT ALL + 59 DIV - - 25 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL + 59 / - - 25 AS col2
----
2

query I rowsort
SELECT + + 53 + + 23 + - NULLIF ( 36, - 53 ) * 28 AS col1
----
-932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9109
SELECT DISTINCT - CAST( + - 88 AS SIGNED ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-9109
SELECT DISTINCT - CAST ( + - 88 AS INTEGER ) AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9110
SELECT ( COALESCE ( + 73, + CAST( NULL AS SIGNED ) * NULLIF ( ( - 66 ) * 38, - 3 + - 89 ), + 12 ) ) * + 62 + 15 AS col1
----
4541

skipif mysql # not compatible
query I rowsort label-9110
SELECT ( COALESCE ( + 73, + CAST ( NULL AS INTEGER ) * NULLIF ( ( - 66 ) * 38, - 3 + - 89 ), + 12 ) ) * + 62 + 15 AS col1
----
4541

query I rowsort
SELECT - 95 * + - 18 + 12 AS col1
----
1722

query I rowsort
SELECT 19 + + + 39 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT 90 * + MIN( DISTINCT - 43 ) * 99 AS col0
----
-383130

skipif mysql # not compatible
query I rowsort label-9113
SELECT 90 * + MIN ( DISTINCT - 43 ) * 99 AS col0
----
-383130

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT 26 * - + COUNT( * ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-9114
SELECT 26 * - + COUNT ( * ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-9115
SELECT - 78, COUNT( * ) AS col2
----
-78
1

skipif mysql # not compatible
query II rowsort label-9115
SELECT - 78, COUNT ( * ) AS col2
----
-78
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT DISTINCT 31 + + - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT 31 + + - COUNT ( * )
----
30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9117
SELECT DISTINCT MIN( 21 ) + + - 54 + NULLIF ( COUNT( * ), - 50 * - 63 ) * + CASE 21 WHEN CAST( 46 AS DECIMAL ) / + 42 + 99 THEN + 15 * + 22 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT MIN ( 21 ) + + - 54 + NULLIF ( COUNT ( * ), - 50 * - 63 ) * + CASE 21 WHEN CAST ( 46 AS REAL ) / + 42 + 99 THEN + 15 * + 22 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT 16 * - COUNT( * ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-9118
SELECT 16 * - COUNT ( * ) AS col0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9119
SELECT DISTINCT MIN( ALL 73 ) + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9119
SELECT DISTINCT MIN ( ALL 73 ) + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT 84 * + 43
----
3612

query I rowsort
SELECT 99 - 51 + - - 5 - 32 * 14
----
-395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9122
SELECT COUNT( * ) + - 86 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9122
SELECT COUNT ( * ) + - 86 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9123
SELECT SUM( + 77 ) / + CAST( NULL AS SIGNED ) + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-9123
SELECT SUM ( + 77 ) / + CAST ( NULL AS INTEGER ) + + 80
----
NULL

query I rowsort
SELECT 47 + - 76
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT - SUM( + + 22 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-9125
SELECT - SUM ( + + 22 ) AS col0
----
-22

query I rowsort
SELECT + 41 * - - 91 AS col2
----
3731

query II rowsort
SELECT + 17 AS col1, 51 AS col2
----
17
51

query I rowsort
SELECT 56 * + 55
----
3080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9129
SELECT CAST( NULL AS SIGNED ) * - - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9129
SELECT CAST ( NULL AS INTEGER ) * - - 48
----
NULL

query I rowsort
SELECT DISTINCT ( - + 23 ) AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9131
SELECT ALL - - 77 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL - - 77 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 25 * - - 5 AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT MAX( DISTINCT - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-9133
SELECT MAX ( DISTINCT - 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT COUNT( ALL - 25 )
----
1

skipif mysql # not compatible
query I rowsort label-9134
SELECT COUNT ( ALL - 25 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT + + 72 + - COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-9135
SELECT + + 72 + - COUNT ( * ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-9136
SELECT + COUNT( * ) AS col1, 58 AS col0
----
1
58

skipif mysql # not compatible
query II rowsort label-9136
SELECT + COUNT ( * ) AS col1, 58 AS col0
----
1
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9137
SELECT - 51 * CAST( - + 42 AS SIGNED )
----
2142

skipif mysql # not compatible
query I rowsort label-9137
SELECT - 51 * CAST ( - + 42 AS INTEGER )
----
2142

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT DISTINCT SUM( + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT SUM ( + 24 )
----
24

query I rowsort
SELECT - 32 - + 41 AS col0
----
-73

query I rowsort
SELECT ALL + 95 col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT + SUM( ALL + 31 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-9141
SELECT + SUM ( ALL + 31 ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT + COUNT( * ) * - ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9142
SELECT + COUNT ( * ) * - ( COUNT ( * ) )
----
-1

query I rowsort
SELECT ( ( + 75 ) )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT DISTINCT 26 * - MIN( + 91 ) + - 74 AS col1
----
-2440

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT 26 * - MIN ( + 91 ) + - 74 AS col1
----
-2440

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT + 30 * + 8 + - COUNT( * ) AS col0
----
239

skipif mysql # not compatible
query I rowsort label-9145
SELECT + 30 * + 8 + - COUNT ( * ) AS col0
----
239

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9146
SELECT - - 16, CAST( NULL AS SIGNED ) col0
----
16
NULL

skipif mysql # not compatible
query II rowsort label-9146
SELECT - - 16, CAST ( NULL AS INTEGER ) col0
----
16
NULL

query I rowsort
SELECT ALL 13 + 85 AS col1
----
98

query I rowsort
SELECT + ( - 70 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT - - COUNT( * ) * - - 95 * + + COUNT( * ) col1
----
95

skipif mysql # not compatible
query I rowsort label-9149
SELECT - - COUNT ( * ) * - - 95 * + + COUNT ( * ) col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT - + COUNT( DISTINCT 16 )
----
-1

skipif mysql # not compatible
query I rowsort label-9150
SELECT - + COUNT ( DISTINCT 16 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9151
SELECT DISTINCT 1 DIV + 75 * + + 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT 1 / + 75 * + + 41 AS col2
----
0

query I rowsort
SELECT + ( ( 62 ) ) col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT DISTINCT + MIN( ALL 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-9153
SELECT DISTINCT + MIN ( ALL 7 ) AS col1
----
7

query I rowsort
SELECT ALL 58 * + 57
----
3306

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT + MAX( 29 ) - + ( 8 )
----
21

skipif mysql # not compatible
query I rowsort label-9155
SELECT + MAX ( 29 ) - + ( 8 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT ALL 68 + COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL 68 + COUNT ( * ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT + - SUM( - NULLIF ( + 49, 90 ) ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-9157
SELECT + - SUM ( - NULLIF ( + 49, 90 ) ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT ALL + 62 + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL + 62 + COUNT ( * )
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9159
SELECT ALL 54 DIV - + 8 * COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL 54 / - + 8 * COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT DISTINCT + COUNT( * ) * - + 96 * + COUNT( * ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-9160
SELECT DISTINCT + COUNT ( * ) * - + 96 * + COUNT ( * ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT 19 * COUNT( * ) * COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-9161
SELECT 19 * COUNT ( * ) * COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT + - COUNT( DISTINCT - 27 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9162
SELECT + - COUNT ( DISTINCT - 27 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT COUNT( * ) * - 1 * - 62
----
62

skipif mysql # not compatible
query I rowsort label-9163
SELECT COUNT ( * ) * - 1 * - 62
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-9164
SELECT + COUNT( * ) AS col1, ( + ( 81 ) ) col0
----
1
81

skipif mysql # not compatible
query II rowsort label-9164
SELECT + COUNT ( * ) AS col1, ( + ( 81 ) ) col0
----
1
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT DISTINCT - NULLIF ( COUNT( * ), + + ( - 25 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9165
SELECT DISTINCT - NULLIF ( COUNT ( * ), + + ( - 25 ) ) AS col1
----
-1

query II rowsort
SELECT ALL 16 AS col0, 58
----
16
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT DISTINCT COUNT( * ) * + 9 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT COUNT ( * ) * + 9 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT ALL COUNT( * ) * + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL COUNT ( * ) * + + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9169
SELECT - - COUNT( * ) DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-9169
SELECT - - COUNT ( * ) / 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT - - COUNT( ALL + 59 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9170
SELECT - - COUNT ( ALL + 59 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9171
SELECT - CAST( - - ( 47 ) AS SIGNED ) - 28 * 0
----
-47

skipif mysql # not compatible
query I rowsort label-9171
SELECT - CAST ( - - ( 47 ) AS INTEGER ) - 28 * 0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT - ( - 40 ) + + ( - COUNT( * ) )
----
39

skipif mysql # not compatible
query I rowsort label-9172
SELECT - ( - 40 ) + + ( - COUNT ( * ) )
----
39

query I rowsort
SELECT ALL ( + + 56 ) AS col0
----
56

query I rowsort
SELECT DISTINCT ( - 51 )
----
-51

query I rowsort
SELECT ALL 74 + - 96
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9176
SELECT CAST( - - 7 AS SIGNED ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9176
SELECT CAST ( - - 7 AS INTEGER ) AS col2
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9177
SELECT ALL + 28 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL + 28 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 85 + - + 67
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-9179
SELECT DISTINCT 26 DIV 16
----
1

skipif mysql # not compatible
query I rowsort label-9179
SELECT DISTINCT 26 / 16
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT DISTINCT - CASE - - 3 WHEN 14 - + COUNT( * ) THEN + - 6 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT - CASE - - 3 WHEN 14 - + COUNT ( * ) THEN + - 6 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9181
SELECT 52 * 36 DIV - 35
----
-53

skipif mysql # not compatible
query I rowsort label-9181
SELECT 52 * 36 / - 35
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT DISTINCT 50 + + ( COUNT( * ) )
----
51

skipif mysql # not compatible
query I rowsort label-9182
SELECT DISTINCT 50 + + ( COUNT ( * ) )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT COUNT( * ) * - ( - 92 )
----
92

skipif mysql # not compatible
query I rowsort label-9183
SELECT COUNT ( * ) * - ( - 92 )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9184
SELECT + COUNT( * ) DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-9184
SELECT + COUNT ( * ) / + 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT DISTINCT + MAX( ALL - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-9185
SELECT DISTINCT + MAX ( ALL - 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT + + COUNT( * ) * - 80
----
-80

skipif mysql # not compatible
query I rowsort label-9186
SELECT + + COUNT ( * ) * - 80
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-9187
SELECT + SUM( - 4 ) * - COUNT( * ) + + + 69 AS col0, + 55 AS col1
----
73
55

skipif mysql # not compatible
query II rowsort label-9187
SELECT + SUM ( - 4 ) * - COUNT ( * ) + + + 69 AS col0, + 55 AS col1
----
73
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9188
SELECT ALL + COUNT( * ) + - 72 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL + COUNT ( * ) + - 72 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 93 + - - 71
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9190
SELECT ( - 29 ) + + CAST( - COUNT( * ) AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-9190
SELECT ( - 29 ) + + CAST ( - COUNT ( * ) AS INTEGER )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT - MIN( ALL + 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-9191
SELECT - MIN ( ALL + 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT 24 * - COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-9192
SELECT 24 * - COUNT ( * ) AS col0
----
-24

query I rowsort
SELECT ALL - + 97 * - 38 AS col2
----
3686

query I rowsort
SELECT + + 95 col2
----
95

query I rowsort
SELECT ALL - 62 + + 50
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT DISTINCT MIN( ALL - - 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT MIN ( ALL - - 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9197
SELECT ALL COUNT( * ), + 21 AS col1
----
1
21

skipif mysql # not compatible
query II rowsort label-9197
SELECT ALL COUNT ( * ), + 21 AS col1
----
1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT - MAX( DISTINCT + 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-9198
SELECT - MAX ( DISTINCT + 78 )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9199
SELECT + 62 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9199
SELECT + 62 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + - ( + 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT COUNT( + 19 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9201
SELECT COUNT ( + 19 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT DISTINCT + COUNT( * ) * - + 86
----
-86

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT + COUNT ( * ) * - + 86
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9203
SELECT ALL CAST( - ( + ( 27 ) ) AS SIGNED ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL CAST ( - ( + ( 27 ) ) AS INTEGER ) AS col0
----
-27

query I rowsort
SELECT DISTINCT ( + + 84 )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9205
SELECT - COUNT( * ) DIV - 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9205
SELECT - COUNT ( * ) / - 99 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT - COALESCE ( 63, 40 * - MIN( 59 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-9206
SELECT - COALESCE ( 63, 40 * - MIN ( 59 ) )
----
-63

query I rowsort
SELECT ALL - ( + 85 ) + 15 AS col1
----
-70

query I rowsort
SELECT DISTINCT - ( + ( + 53 ) )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT DISTINCT SUM( + - ( 63 ) ) * - - COUNT( * ) col0
----
-63

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT SUM ( + - ( 63 ) ) * - - COUNT ( * ) col0
----
-63

query I rowsort
SELECT DISTINCT + 93 - + - 63
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT ALL - COUNT( + 71 )
----
-1

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL - COUNT ( + 71 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT 73 + - COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-9212
SELECT 73 + - COUNT ( * ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT ALL - 59 + COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL - 59 + COUNT ( * ) AS col2
----
-58

query I rowsort
SELECT + ( + + 12 ) AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9215
SELECT ALL CAST( - + CAST( + 59 AS SIGNED ) AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL CAST ( - + CAST ( + 59 AS INTEGER ) AS INTEGER )
----
-59

query I rowsort
SELECT ALL - - ( + 40 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT ALL + - COUNT( * ) * - 2
----
2

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL + - COUNT ( * ) * - 2
----
2

query I rowsort
SELECT ALL 53 * + 70
----
3710

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT - ( + - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9219
SELECT - ( + - COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT + + 13 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT - + COUNT( * ) * COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9221
SELECT - + COUNT ( * ) * COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9222
SELECT 20, COUNT( * ) * + COUNT( * ) + + 19
----
20
20

skipif mysql # not compatible
query II rowsort label-9222
SELECT 20, COUNT ( * ) * + COUNT ( * ) + + 19
----
20
20

query I rowsort
SELECT DISTINCT + ( 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT + + 17 * - 24 * + COUNT( * ) AS col0
----
-408

skipif mysql # not compatible
query I rowsort label-9224
SELECT + + 17 * - 24 * + COUNT ( * ) AS col0
----
-408

query I rowsort
SELECT - - 37 + + 88
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-9226
SELECT DISTINCT + COUNT( * ) AS col0, 73
----
1
73

skipif mysql # not compatible
query II rowsort label-9226
SELECT DISTINCT + COUNT ( * ) AS col0, 73
----
1
73

query I rowsort
SELECT - 72 * + 55 AS col2
----
-3960

query I rowsort
SELECT ALL COALESCE ( + - 51, 34 ) + + 85
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT ALL - - ( - + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL - - ( - + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT - 50 * + - 2 AS col2
----
100

query I rowsort
SELECT ALL + ( - 46 ) + 70
----
24

query I rowsort
SELECT ALL 43 * - 49
----
-2107

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT SUM( ALL 69 ) col1
----
69

skipif mysql # not compatible
query I rowsort label-9233
SELECT SUM ( ALL 69 ) col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT MAX( ALL 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9234
SELECT MAX ( ALL 2 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT + COUNT( * ) + 93
----
94

skipif mysql # not compatible
query I rowsort label-9235
SELECT + COUNT ( * ) + 93
----
94

query I rowsort
SELECT + - 55 + + 40 AS col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9237
SELECT - + AVG ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9237
SELECT - + AVG ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - 3 * + ( 22 )
----
-66

query I rowsort
SELECT ALL ( 3 )
----
3

query I rowsort
SELECT ALL ( + 72 )
----
72

query I rowsort
SELECT ALL ( + 26 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT - COUNT( * ) + SUM( 43 ) + - - 67 * + 78 AS col0
----
5268

skipif mysql # not compatible
query I rowsort label-9242
SELECT - COUNT ( * ) + SUM ( 43 ) + - - 67 * + 78 AS col0
----
5268

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT DISTINCT COUNT( * ) * COUNT( * ) + + + 99
----
100

skipif mysql # not compatible
query I rowsort label-9243
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + + + 99
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT ALL + 74 + + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL + 74 + + COUNT ( * )
----
75

query II rowsort
SELECT - 96 AS col2, 42
----
-96
42

query I rowsort
SELECT DISTINCT 95 + + 92 AS col2
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT DISTINCT - COUNT( * ) + - - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9247
SELECT DISTINCT - COUNT ( * ) + - - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9248
SELECT ALL COUNT( * ) DIV + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL COUNT ( * ) / + 89 AS col1
----
0

query I rowsort
SELECT DISTINCT + 20 * + 51 col0
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT - 42 * - - 56 + + COUNT( * ) col0
----
-2351

skipif mysql # not compatible
query I rowsort label-9250
SELECT - 42 * - - 56 + + COUNT ( * ) col0
----
-2351

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT DISTINCT - - SUM( 31 )
----
31

skipif mysql # not compatible
query I rowsort label-9251
SELECT DISTINCT - - SUM ( 31 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9252
SELECT + - 44, SUM( CAST( - + 53 AS SIGNED ) ) AS col1
----
-44
-53

skipif mysql # not compatible
query II rowsort label-9252
SELECT + - 44, SUM ( CAST ( - + 53 AS INTEGER ) ) AS col1
----
-44
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT ALL + + SUM( + 17 )
----
17

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL + + SUM ( + 17 )
----
17

query I rowsort
SELECT + - 82 AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT + MAX( ALL 40 )
----
40

skipif mysql # not compatible
query I rowsort label-9255
SELECT + MAX ( ALL 40 )
----
40

query I rowsort
SELECT + + 97 col2
----
97

query I rowsort
SELECT ALL - 51 + + NULLIF ( + 37, + 53 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT ALL - 78 * COUNT( * ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL - 78 * COUNT ( * ) AS col2
----
-78

query I rowsort
SELECT ALL 58 * 58 col0
----
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT DISTINCT COUNT( * ) * - 36
----
-36

skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT COUNT ( * ) * - 36
----
-36

query I rowsort
SELECT + 78 * 80 col1
----
6240

query I rowsort
SELECT ALL + ( + - 54 )
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9263
SELECT + CAST( ( - 87 ) AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-9263
SELECT + CAST ( ( - 87 ) AS INTEGER )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT COUNT( * ) - + - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9264
SELECT COUNT ( * ) - + - COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT + MAX( ALL + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-9265
SELECT + MAX ( ALL + 87 )
----
87

query I rowsort
SELECT + - ( 96 ) AS col0
----
-96

query I rowsort
SELECT - 8 * 53 + 77
----
-347

onlyif mysql # aggregate syntax: 
query II rowsort label-9268
SELECT - COUNT( * ), + 58 AS col1
----
-1
58

skipif mysql # not compatible
query II rowsort label-9268
SELECT - COUNT ( * ), + 58 AS col1
----
-1
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT DISTINCT ( + SUM( + 31 ) ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT ( + SUM ( + 31 ) ) AS col1
----
31

query I rowsort
SELECT DISTINCT + 4 + - ( - 30 )
----
34

query I rowsort
SELECT ALL + NULLIF ( + - 75, - 14 ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT DISTINCT + SUM( - 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT + SUM ( - 59 ) AS col1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9273
SELECT 20 DIV - + MIN( ALL - + 88 ) AS col1, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-9273
SELECT 20 / - + MIN ( ALL - + 88 ) AS col1, + COUNT ( * )
----
0
1

query I rowsort
SELECT 91 * + + 7
----
637

onlyif mysql # aggregate syntax: 
query II rowsort label-9275
SELECT ALL - COUNT( * ) AS col0, + 99
----
-1
99

skipif mysql # not compatible
query II rowsort label-9275
SELECT ALL - COUNT ( * ) AS col0, + 99
----
-1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9276
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9276
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9277
SELECT + CAST( NULL AS SIGNED ) - MAX( - - 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9277
SELECT + CAST ( NULL AS INTEGER ) - MAX ( - - 5 )
----
NULL

query I rowsort
SELECT + 2 + - 25
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT 29 - + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-9279
SELECT 29 - + COUNT ( * )
----
28

query I rowsort
SELECT 36 * - 37 AS col2
----
-1332

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT ALL + COUNT( * ) * + + 9 + - 70 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL + COUNT ( * ) * + + 9 + - 70 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT SUM( ALL - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-9282
SELECT SUM ( ALL - 14 )
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-9283
SELECT - - 98 DIV - 83 - 9
----
-10

skipif mysql # not compatible
query I rowsort label-9283
SELECT - - 98 / - 83 - 9
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-9284
SELECT DISTINCT - COUNT( * ) + COUNT( DISTINCT + + 79 ), COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-9284
SELECT DISTINCT - COUNT ( * ) + COUNT ( DISTINCT + + 79 ), COUNT ( * ) AS col1
----
0
1

query I rowsort
SELECT ALL ( + 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT - - SUM( DISTINCT 14 ) * ( - + 29 ) AS col2
----
-406

skipif mysql # not compatible
query I rowsort label-9286
SELECT - - SUM ( DISTINCT 14 ) * ( - + 29 ) AS col2
----
-406

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT - 84 - - + SUM( 96 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-9287
SELECT - 84 - - + SUM ( 96 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-9288
SELECT 8 AS col0, - COUNT( * ) AS col1
----
8
-1

skipif mysql # not compatible
query II rowsort label-9288
SELECT 8 AS col0, - COUNT ( * ) AS col1
----
8
-1

query I rowsort
SELECT + - ( - 24 ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT MIN( 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-9290
SELECT MIN ( 79 ) AS col1
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9291
SELECT ALL - - 59 + + + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL - - 59 + + + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( 57 ) + - ( + ( - 54 ) )
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9293
SELECT 69 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9293
SELECT 69 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9294
SELECT ALL COUNT( * ) * + - CAST( NULL AS SIGNED ) * - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT - SUM( - - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9295
SELECT - SUM ( - - 0 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9296
SELECT - - 65 DIV - 33 + + 23 AS col0, + 76
----
22
76

skipif mysql # not compatible
query II rowsort label-9296
SELECT - - 65 / - 33 + + 23 AS col0, + 76
----
22
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9297
SELECT ALL CAST( + - COUNT( * ) AS SIGNED ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL CAST ( + - COUNT ( * ) AS INTEGER ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9298
SELECT DISTINCT - 94 * COUNT( * ) * 59 / - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT - 94 * COUNT ( * ) * 59 / - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9299
SELECT ALL - CAST( NULL AS SIGNED ) * - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL - CAST ( NULL AS INTEGER ) * - 62
----
NULL

query I rowsort
SELECT ALL - 80 * + 42
----
-3360

query I rowsort
SELECT + + 48 * 79
----
3792

onlyif mysql # DIV for integer division: 
query I rowsort label-9302
SELECT ALL + 4 DIV + 71 + + 62 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL + 4 / + 71 + + 62 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT ALL - SUM( DISTINCT - 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL - SUM ( DISTINCT - 87 ) AS col1
----
87

query I rowsort
SELECT ALL - 28 + + 77 AS col0
----
49

query I rowsort
SELECT ALL + 30 * - + 75 AS col2
----
-2250

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT ALL COUNT( * ) + + 86 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL COUNT ( * ) + + 86 AS col1
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-9307
SELECT - 2 AS col1, COUNT( - 21 )
----
-2
1

skipif mysql # not compatible
query II rowsort label-9307
SELECT - 2 AS col1, COUNT ( - 21 )
----
-2
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9308
SELECT COUNT( * ) AS col2, - 53 AS col2
----
1
-53

skipif mysql # not compatible
query II rowsort label-9308
SELECT COUNT ( * ) AS col2, - 53 AS col2
----
1
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT MIN( DISTINCT ( + 17 ) ) col1
----
17

skipif mysql # not compatible
query I rowsort label-9309
SELECT MIN ( DISTINCT ( + 17 ) ) col1
----
17

query I rowsort
SELECT ALL ( + 6 ) AS col1
----
6

query I rowsort
SELECT - + 22 - - 90 * - 11 * - 81 AS col1
----
80168

query I rowsort
SELECT DISTINCT + ( 99 ) col1
----
99

query I rowsort
SELECT ( + - 51 ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT DISTINCT - 51 * - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT - 51 * - COUNT ( * )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9315
SELECT ALL COUNT( ALL - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL COUNT ( ALL - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT DISTINCT - COUNT( * ) + 98 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT - COUNT ( * ) + 98 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT ALL MIN( DISTINCT 2 )
----
2

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL MIN ( DISTINCT 2 )
----
2

query I rowsort
SELECT 48 + - 97
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9319
SELECT ALL + 64 + + CAST( + 23 AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL + 64 + + CAST ( + 23 AS INTEGER )
----
87

query I rowsort
SELECT DISTINCT + 31 + 1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT MAX( DISTINCT - - 0 ) - 26
----
-26

skipif mysql # not compatible
query I rowsort label-9321
SELECT MAX ( DISTINCT - - 0 ) - 26
----
-26

query I rowsort
SELECT 69 + - 28 col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT DISTINCT 83 * - - MIN( ALL 0 )
----
0

skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT 83 * - - MIN ( ALL 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ALL ( 70 ) * + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL ( 70 ) * + COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT ALL MAX( - - 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL MAX ( - - 91 ) AS col1
----
91

query I rowsort
SELECT ( + - 30 )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9327
SELECT DISTINCT + + 6 * - - 39 + + + CAST( + ( - 87 ) AS SIGNED )
----
147

skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT + + 6 * - - 39 + + + CAST ( + ( - 87 ) AS INTEGER )
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-9328
SELECT ALL + - 31, COUNT( * ) + + + COUNT( * ) AS col0
----
-31
2

skipif mysql # not compatible
query II rowsort label-9328
SELECT ALL + - 31, COUNT ( * ) + + + COUNT ( * ) AS col0
----
-31
2

query II rowsort
SELECT DISTINCT + 90 AS col0, 89
----
90
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT COUNT( DISTINCT - ( 77 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9330
SELECT COUNT ( DISTINCT - ( 77 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT + NULLIF ( + - 67, 52 ) * - COUNT( * ) + - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-9331
SELECT + NULLIF ( + - 67, 52 ) * - COUNT ( * ) + - COUNT ( * )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9332
SELECT ALL CAST( + 58 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL CAST ( + 58 AS INTEGER )
----
58

query I rowsort
SELECT 23 + + + 85 AS col0
----
108

query I rowsort
SELECT ALL 59 * - 41 AS col2
----
-2419

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9335
SELECT ALL - 75 + + + ( + CAST( 76 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL - 75 + + + ( + CAST ( 76 AS INTEGER ) ) AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9336
SELECT ALL CAST( NULL AS DECIMAL ) * - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL CAST ( NULL AS REAL ) * - 17
----
NULL

query I rowsort
SELECT + ( - 85 ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT - + COUNT( ALL + 89 )
----
-1

skipif mysql # not compatible
query I rowsort label-9338
SELECT - + COUNT ( ALL + 89 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT + 8 + COUNT( * ) + - - 49 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-9339
SELECT + 8 + COUNT ( * ) + - - 49 AS col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9340
SELECT - COUNT( - - 3 ), + CAST( NULL AS SIGNED ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9340
SELECT - COUNT ( - - 3 ), + CAST ( NULL AS INTEGER ) AS col2
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT MIN( 80 ) col2
----
80

skipif mysql # not compatible
query I rowsort label-9341
SELECT MIN ( 80 ) col2
----
80

query I rowsort
SELECT + 41 + - 42 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9343
SELECT ALL CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - 5 + 88
----
83

query I rowsort
SELECT ALL ( 13 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT + - 53 + - COUNT( * ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-9346
SELECT + - 53 + - COUNT ( * ) AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9347
SELECT DISTINCT + CAST( NULL AS SIGNED ) / COUNT( * ) * + 44 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9347
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / COUNT ( * ) * + 44 / - COUNT ( * )
----
NULL

query I rowsort
SELECT + - 9 * - 6
----
54

query II rowsort
SELECT DISTINCT + 46, 35 col1
----
46
35

query I rowsort
SELECT 42 * 66 AS col1
----
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT DISTINCT - ( - + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT - ( - + COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT + ( + + 59 ) AS col2
----
59

query I rowsort
SELECT + 19 + + 25
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT DISTINCT + COUNT( * ) * - + 23 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT + COUNT ( * ) * - + 23 AS col0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-9355
SELECT ALL 94 DIV 88
----
1

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL 94 / 88
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT ALL + COUNT( * ) * COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL + COUNT ( * ) * COUNT ( * ) col2
----
1

query I rowsort
SELECT - 46 * - 67 AS col0
----
3082

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT DISTINCT - - 16 + + 65 * - + COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-9358
SELECT DISTINCT - - 16 + + 65 * - + COUNT ( * ) AS col1
----
-49

query II rowsort
SELECT - 96, - 51 AS col2
----
-96
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9360
SELECT - - 29 + - + CAST( + 18 AS SIGNED ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9360
SELECT - - 29 + - + CAST ( + 18 AS INTEGER ) AS col1
----
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9361
SELECT ALL - CAST( NULL AS DECIMAL ) * - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL - CAST ( NULL AS REAL ) * - 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9362
SELECT + COUNT( * ) DIV + 44 AS col0, 65 AS col0
----
0
65

skipif mysql # not compatible
query II rowsort label-9362
SELECT + COUNT ( * ) / + 44 AS col0, 65 AS col0
----
0
65

query I rowsort
SELECT 32 - - - 19
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-9364
SELECT DISTINCT - COUNT( * ), + 52 AS col1
----
-1
52

skipif mysql # not compatible
query II rowsort label-9364
SELECT DISTINCT - COUNT ( * ), + 52 AS col1
----
-1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT ALL + COALESCE ( 58, COUNT( * ) ) * COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL + COALESCE ( 58, COUNT ( * ) ) * COUNT ( * ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT COUNT( * ) + 97
----
98

skipif mysql # not compatible
query I rowsort label-9366
SELECT COUNT ( * ) + 97
----
98

query I rowsort
SELECT 23 * 65
----
1495

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT COUNT( * ) + 43 * + 16
----
689

skipif mysql # not compatible
query I rowsort label-9368
SELECT COUNT ( * ) + 43 * + 16
----
689

query I rowsort
SELECT 52 + 36
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9370
SELECT ALL CAST( NULL AS SIGNED ) + + 26 * 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL CAST ( NULL AS INTEGER ) + + 26 * 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT COUNT( * ) + + 25 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-9371
SELECT COUNT ( * ) + + 25 AS col0
----
26

query I rowsort
SELECT DISTINCT - 58 + 30 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT 95 * COUNT( * ) + ( 79 ) AS col0
----
174

skipif mysql # not compatible
query I rowsort label-9373
SELECT 95 * COUNT ( * ) + ( 79 ) AS col0
----
174

query I rowsort
SELECT ALL - - 10 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT - COUNT( * ) + - 84 * 61 col2
----
-5125

skipif mysql # not compatible
query I rowsort label-9375
SELECT - COUNT ( * ) + - 84 * 61 col2
----
-5125

query I rowsort
SELECT ALL - 20 * 69 AS col2
----
-1380

query I rowsort
SELECT ALL ( + 79 )
----
79

query I rowsort
SELECT ALL 47 + + - 62 col2
----
-15

query I rowsort
SELECT - 64 * + 31
----
-1984

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT - COUNT( * ) + 8
----
7

skipif mysql # not compatible
query I rowsort label-9380
SELECT - COUNT ( * ) + 8
----
7

query I rowsort
SELECT ALL + 31 * 1
----
31

query I rowsort
SELECT ALL + - ( 68 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT - SUM( + ( + 64 ) ) + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-9383
SELECT - SUM ( + ( + 64 ) ) + COUNT ( * )
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9384
SELECT - 76 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9384
SELECT - 76 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9385
SELECT + - CAST( NULL AS SIGNED ), CAST( + 43 AS SIGNED ) AS col1
----
NULL
43

skipif mysql # not compatible
query II rowsort label-9385
SELECT + - CAST ( NULL AS INTEGER ), CAST ( + 43 AS INTEGER ) AS col1
----
NULL
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9386
SELECT COUNT( * ) DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-9386
SELECT COUNT ( * ) / - 40
----
0

query I rowsort
SELECT ALL 35 - - 96 AS col0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT COUNT( * ) + - + 90
----
-89

skipif mysql # not compatible
query I rowsort label-9388
SELECT COUNT ( * ) + - + 90
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9389
SELECT DISTINCT - + AVG ( DISTINCT + 42 ) + - CAST( NULL AS SIGNED ) / + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9389
SELECT DISTINCT - + AVG ( DISTINCT + 42 ) + - CAST ( NULL AS INTEGER ) / + 20 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT ALL - - COUNT( * ) + SUM( 78 )
----
79

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL - - COUNT ( * ) + SUM ( 78 )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9391
SELECT ( + 17 ) / 59 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9391
SELECT ( + 17 ) / 59 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 19 + + 19
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT DISTINCT - - 16 + + + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT - - 16 + + + COUNT ( * )
----
17

query I rowsort
SELECT DISTINCT COALESCE ( + 81, 26 + + - 24 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT + MAX( DISTINCT - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-9395
SELECT + MAX ( DISTINCT - 62 )
----
-62

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9396
SELECT + + CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9396
SELECT + + CAST ( - - CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT DISTINCT + COUNT( * ) * - + 25 + - 9 + MIN( ALL - 12 )
----
-46

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT + COUNT ( * ) * - + 25 + - 9 + MIN ( ALL - 12 )
----
-46

query I rowsort
SELECT DISTINCT + + 85 AS col0
----
85

query I rowsort
SELECT DISTINCT ( 51 ) AS col2
----
51

query I rowsort
SELECT ALL ( - - 91 )
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9401
SELECT - 50 AS col0, + COUNT( * ) col2
----
-50
1

skipif mysql # not compatible
query II rowsort label-9401
SELECT - 50 AS col0, + COUNT ( * ) col2
----
-50
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT NULLIF ( 18, - COUNT( * ) )
----
18

skipif mysql # not compatible
query I rowsort label-9402
SELECT NULLIF ( 18, - COUNT ( * ) )
----
18

query II rowsort
SELECT ALL + 67 AS col1, 78 col2
----
67
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9404
SELECT ALL + CAST( NULLIF ( - COUNT( * ), - 62 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9404
SELECT ALL + CAST ( NULLIF ( - COUNT ( * ), - 62 ) AS INTEGER )
----
-1

query I rowsort
SELECT ( - 70 ) AS col2
----
-70

query I rowsort
SELECT + 94 * - + 46
----
-4324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9407
SELECT ALL + CAST( NULL AS SIGNED ) + + 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL + CAST ( NULL AS INTEGER ) + + 40 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT DISTINCT COUNT( * ) * + - ( 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT COUNT ( * ) * + - ( 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT + 3 + + - ( COUNT( * ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9409
SELECT + 3 + + - ( COUNT ( * ) ) AS col1
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9410
SELECT CAST( NULL AS DECIMAL ) + + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9410
SELECT CAST ( NULL AS REAL ) + + 83 AS col0
----
NULL

query II rowsort
SELECT + 38 AS col1, ( - 85 ) AS col0
----
38
-85

query I rowsort
SELECT - 74 * + 26 + + + 94 AS col0
----
-1830

query I rowsort
SELECT DISTINCT - ( + 97 )
----
-97

query I rowsort
SELECT DISTINCT + ( + 34 ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT MIN( + 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-9415
SELECT MIN ( + 8 ) AS col0
----
8

query I rowsort
SELECT 29 * - 40 + + 79 col1
----
-1081

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT + MAX( 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-9417
SELECT + MAX ( 97 ) AS col0
----
97

query I rowsort
SELECT ( + 93 ) AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9419
SELECT ALL + CAST( + 41 AS SIGNED ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-9419
SELECT ALL + CAST ( + 41 AS INTEGER ) AS col0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9420
SELECT ALL - CAST( NULL AS SIGNED ) * - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL - CAST ( NULL AS INTEGER ) * - 89
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9421
SELECT + + CAST( NULL AS DECIMAL ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9421
SELECT + + CAST ( NULL AS REAL ) * - + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 61 * 76 AS col2
----
4636

query I rowsort
SELECT - + 48 * 66
----
-3168

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9424
SELECT ( + CAST( NULL AS DECIMAL ) ) + - 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9424
SELECT ( + CAST ( NULL AS REAL ) ) + - 70 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT ALL - SUM( DISTINCT + 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL - SUM ( DISTINCT + 87 )
----
-87

query I rowsort
SELECT ALL 80 + - 93 col1
----
-13

query I rowsort
SELECT ALL ( + 11 ) AS col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9428
SELECT COUNT( * ) DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-9428
SELECT COUNT ( * ) / 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT COUNT( + + 79 )
----
1

skipif mysql # not compatible
query I rowsort label-9429
SELECT COUNT ( + + 79 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT ( COUNT( * ) ) * - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9430
SELECT ( COUNT ( * ) ) * - + COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9431
SELECT ALL - CAST( + - 36 AS SIGNED ) + - 57
----
-21

skipif mysql # not compatible
query I rowsort label-9431
SELECT ALL - CAST ( + - 36 AS INTEGER ) + - 57
----
-21

query I rowsort
SELECT + 94 * 70
----
6580

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT ALL - COUNT( * ) * + - COUNT( * ) * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) * + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9434
SELECT ALL COUNT( * ), - 46 AS col2
----
1
-46

skipif mysql # not compatible
query II rowsort label-9434
SELECT ALL COUNT ( * ), - 46 AS col2
----
1
-46

query I rowsort
SELECT ALL ( + 3 )
----
3

query I rowsort
SELECT DISTINCT ( + 54 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT + COUNT( - - 12 )
----
1

skipif mysql # not compatible
query I rowsort label-9437
SELECT + COUNT ( - - 12 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9438
SELECT ALL + + COUNT( * ) AS col0, 13 AS col2
----
1
13

skipif mysql # not compatible
query II rowsort label-9438
SELECT ALL + + COUNT ( * ) AS col0, 13 AS col2
----
1
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9439
SELECT DISTINCT ( - CAST( + 70 AS SIGNED ) ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-9439
SELECT DISTINCT ( - CAST ( + 70 AS INTEGER ) ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT ALL - COUNT( * ) + 17 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-9440
SELECT ALL - COUNT ( * ) + 17 AS col0
----
16

query I rowsort
SELECT + ( - + 48 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT ALL + COALESCE ( + + ( COUNT( ( 11 ) ) ), - COUNT( * ), 76 ) * 19
----
19

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL + COALESCE ( + + ( COUNT ( ( 11 ) ) ), - COUNT ( * ), 76 ) * 19
----
19

query I rowsort
SELECT - 77 + + 64 AS col2
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9444
SELECT DISTINCT + + 5 * - COUNT( * ) DIV - 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9444
SELECT DISTINCT + + 5 * - COUNT ( * ) / - 52 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT ALL - + ( + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL - + ( + - COUNT ( * ) )
----
1

query I rowsort
SELECT ALL - ( 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT COUNT( * ) * 85 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-9447
SELECT COUNT ( * ) * 85 AS col0
----
85

query I rowsort
SELECT DISTINCT 97 + + 41
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9449
SELECT + + MAX( DISTINCT - ( - 17 ) ) * + ( - + CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9449
SELECT + + MAX ( DISTINCT - ( - 17 ) ) * + ( - + CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT + 78 * - 20 AS col2
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT - 12 * - SUM( - 95 )
----
-1140

skipif mysql # not compatible
query I rowsort label-9451
SELECT - 12 * - SUM ( - 95 )
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT + 22 * - + COALESCE ( - 15, + + COUNT( * ) )
----
330

skipif mysql # not compatible
query I rowsort label-9452
SELECT + 22 * - + COALESCE ( - 15, + + COUNT ( * ) )
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT COUNT( DISTINCT + 45 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9453
SELECT COUNT ( DISTINCT + 45 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT - 86 + - 31 + - + 50 * - COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-9454
SELECT - 86 + - 31 + - + 50 * - COUNT ( * ) AS col1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9455
SELECT DISTINCT 8 DIV - - 49 * - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9455
SELECT DISTINCT 8 / - - 49 * - COUNT ( * ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9456
SELECT DISTINCT + ( COUNT( * ) ), + CAST( - + 70 AS SIGNED ) AS col0
----
1
-70

skipif mysql # not compatible
query II rowsort label-9456
SELECT DISTINCT + ( COUNT ( * ) ), + CAST ( - + 70 AS INTEGER ) AS col0
----
1
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-9457
SELECT DISTINCT + 26 AS col1, COUNT( * ) - - + 76 AS col0
----
26
77

skipif mysql # not compatible
query II rowsort label-9457
SELECT DISTINCT + 26 AS col1, COUNT ( * ) - - + 76 AS col0
----
26
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT NULLIF ( + COUNT( * ), - 11 )
----
1

skipif mysql # not compatible
query I rowsort label-9458
SELECT NULLIF ( + COUNT ( * ), - 11 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT + COUNT( * ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9459
SELECT + COUNT ( * ) - + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9460
SELECT COUNT( * ) AS col0, CAST( - + COUNT( * ) AS SIGNED )
----
1
-1

skipif mysql # not compatible
query II rowsort label-9460
SELECT COUNT ( * ) AS col0, CAST ( - + COUNT ( * ) AS INTEGER )
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT DISTINCT - MAX( 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-9461
SELECT DISTINCT - MAX ( 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT COUNT( * ) * - 69 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-9462
SELECT COUNT ( * ) * - 69 AS col2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9463
SELECT - - CAST( + + 75 AS SIGNED ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-9463
SELECT - - CAST ( + + 75 AS INTEGER ) AS col0
----
75

query I rowsort
SELECT + 94 + - + 39
----
55

query I rowsort
SELECT DISTINCT - 44 * + 74 col1
----
-3256

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT 29 + COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-9466
SELECT 29 + COUNT ( * ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-9467
SELECT + ( 89 ) + - COUNT( * ), + 69 AS col0
----
88
69

skipif mysql # not compatible
query II rowsort label-9467
SELECT + ( 89 ) + - COUNT ( * ), + 69 AS col0
----
88
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT DISTINCT 80 * - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT 80 * - COUNT ( * )
----
-80

query II rowsort
SELECT + - 20, - 77 col2
----
-20
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT - + MAX( DISTINCT - 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-9470
SELECT - + MAX ( DISTINCT - 94 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT - - 95 + SUM( ALL - 9 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-9471
SELECT - - 95 + SUM ( ALL - 9 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT DISTINCT COUNT( DISTINCT + 26 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9472
SELECT DISTINCT COUNT ( DISTINCT + 26 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9473
SELECT CAST( NULL AS SIGNED ) AS col1, - ( + 17 ) col0
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-9473
SELECT CAST ( NULL AS INTEGER ) AS col1, - ( + 17 ) col0
----
NULL
-17

query I rowsort
SELECT + + 32 AS col0
----
32

query I rowsort
SELECT - + ( + + 94 ) AS col1
----
-94

query II rowsort
SELECT - 3, 1 AS col2
----
-3
1

query I rowsort
SELECT ALL - - ( + 5 )
----
5

query I rowsort
SELECT + + 75 AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9479
SELECT ALL 52 * - COUNT( * ) * + - CAST( NULL AS SIGNED ) + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL 52 * - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT - - SUM( DISTINCT - - ( 44 ) )
----
44

skipif mysql # not compatible
query I rowsort label-9480
SELECT - - SUM ( DISTINCT - - ( 44 ) )
----
44

query I rowsort
SELECT ALL + 26 + - 76
----
-50

query I rowsort
SELECT DISTINCT - + ( + + 98 ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT + - SUM( DISTINCT 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-9483
SELECT + - SUM ( DISTINCT 65 )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9484
SELECT DISTINCT - CAST( 12 AS SIGNED ) * COUNT( ALL + - 0 )
----
-12

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT - CAST ( 12 AS INTEGER ) * COUNT ( ALL + - 0 )
----
-12

query I rowsort
SELECT + ( + - 11 ) - - 8 AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9486
SELECT - 99 - CAST( - 4 AS SIGNED ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-9486
SELECT - 99 - CAST ( - 4 AS INTEGER ) AS col2
----
-95

query I rowsort
SELECT ALL - 96 + - + ( + 76 )
----
-172

query I rowsort
SELECT ALL ( + ( 40 ) ) col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT ALL + MAX( DISTINCT - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL + MAX ( DISTINCT - 96 )
----
-96

query I rowsort
SELECT DISTINCT + - 69 col1
----
-69

query I rowsort
SELECT DISTINCT + + 10 AS col1
----
10

query I rowsort
SELECT DISTINCT + - ( + + 37 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-9493
SELECT + COUNT( * ), 99 col2
----
1
99

skipif mysql # not compatible
query II rowsort label-9493
SELECT + COUNT ( * ), 99 col2
----
1
99

query I rowsort
SELECT DISTINCT + - ( 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT + + SUM( + + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-9495
SELECT + + SUM ( + + 16 )
----
16

query I rowsort
SELECT 75 * + - 58 + 87 + - 85
----
-4348

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9497
SELECT ALL 48 DIV - + COUNT( * ) - - + 64 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL 48 / - + COUNT ( * ) - - + 64 AS col1
----
16

query I rowsort
SELECT DISTINCT 81 + 35 - + 13
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9499
SELECT DISTINCT - 96 - COUNT( * ) DIV + 41
----
-96

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT - 96 - COUNT ( * ) / + 41
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9500
SELECT 72 + + CAST( + + 32 AS SIGNED ) col1
----
104

skipif mysql # not compatible
query I rowsort label-9500
SELECT 72 + + CAST ( + + 32 AS INTEGER ) col1
----
104

query I rowsort
SELECT 74 * + - 28 col1
----
-2072

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT 28 * - MIN( - 63 ) * + - COUNT( * )
----
-1764

skipif mysql # not compatible
query I rowsort label-9502
SELECT 28 * - MIN ( - 63 ) * + - COUNT ( * )
----
-1764

query I rowsort
SELECT + 81 - + 45
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT + 62 * ( - COUNT( * ) ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-9504
SELECT + 62 * ( - COUNT ( * ) ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT - COUNT( * ) + - 87 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-9505
SELECT - COUNT ( * ) + - 87 AS col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9506
SELECT ALL CAST( 14 AS SIGNED ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL CAST ( 14 AS INTEGER ) AS col2
----
14

query I rowsort
SELECT DISTINCT - 10 + - - 15 col0
----
5

query I rowsort
SELECT COALESCE ( 98, - + 75 )
----
98

query I rowsort
SELECT + 19 * + 11
----
209

onlyif mysql # DIV for integer division: 
query I rowsort label-9510
SELECT DISTINCT 62 DIV 32
----
1

skipif mysql # not compatible
query I rowsort label-9510
SELECT DISTINCT 62 / 32
----
1

query I rowsort
SELECT 68 * + - 48
----
-3264

query I rowsort
SELECT ALL + 40 - 24 col2
----
16

query I rowsort
SELECT 37 * + - 14
----
-518

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT MAX( + ( - 27 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-9514
SELECT MAX ( + ( - 27 ) )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT + MIN( ALL ( - 31 ) ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-9515
SELECT + MIN ( ALL ( - 31 ) ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT COUNT( - - 18 )
----
1

skipif mysql # not compatible
query I rowsort label-9516
SELECT COUNT ( - - 18 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9517
SELECT ALL 31 DIV - - 65
----
0

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL 31 / - - 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT + - COUNT( * ) * - 75
----
75

skipif mysql # not compatible
query I rowsort label-9518
SELECT + - COUNT ( * ) * - 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT DISTINCT - NULLIF ( + 93, MIN( 8 ) ) * - 57
----
5301

skipif mysql # not compatible
query I rowsort label-9519
SELECT DISTINCT - NULLIF ( + 93, MIN ( 8 ) ) * - 57
----
5301

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT ALL - MAX( + 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL - MAX ( + 30 )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9521
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) * + + ( - - ( 76 ) )
----
76

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) * + + ( - - ( 76 ) )
----
76

query I rowsort
SELECT + + 4 col2
----
4

query I rowsort
SELECT ALL ( - - 86 ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT SUM( 98 ) * + 79
----
7742

skipif mysql # not compatible
query I rowsort label-9524
SELECT SUM ( 98 ) * + 79
----
7742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9525
SELECT + NULLIF ( + - COUNT( * ), - - CAST( NULL AS SIGNED ) ) DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-9525
SELECT + NULLIF ( + - COUNT ( * ), - - CAST ( NULL AS INTEGER ) ) / - 61
----
0

query I rowsort
SELECT + 35 + - - 91 * ( + 5 )
----
490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9527
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 73
----
NULL

query I rowsort
SELECT 43 - + - 34
----
77

query I rowsort
SELECT + ( + - 37 ) AS col2
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9530
SELECT + CAST( NULL AS SIGNED ) * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-9530
SELECT + CAST ( NULL AS INTEGER ) * + 98
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9531
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 92 + - 38 - - 64 AS col0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9533
SELECT DISTINCT - 20 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT - 20 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 34 * 37 AS col0
----
1258

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT + + MIN( DISTINCT + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-9535
SELECT + + MIN ( DISTINCT + 44 )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-9536
SELECT ALL + COUNT( * ), 81 col1
----
1
81

skipif mysql # not compatible
query II rowsort label-9536
SELECT ALL + COUNT ( * ), 81 col1
----
1
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9537
SELECT - CAST( NULL AS SIGNED ) AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9537
SELECT - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9538
SELECT - COUNT( * ) DIV 29 col1
----
0

skipif mysql # not compatible
query I rowsort label-9538
SELECT - COUNT ( * ) / 29 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT - SUM( DISTINCT 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-9539
SELECT - SUM ( DISTINCT 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT - COUNT( * ) * 80
----
-80

skipif mysql # not compatible
query I rowsort label-9540
SELECT - COUNT ( * ) * 80
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT ALL - COUNT( DISTINCT 88 ) - + 12
----
-13

skipif mysql # not compatible
query I rowsort label-9541
SELECT ALL - COUNT ( DISTINCT 88 ) - + 12
----
-13

query I rowsort
SELECT DISTINCT 60 * 42 AS col1
----
2520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9543
SELECT CAST( + + 65 AS SIGNED ) * + 11 AS col0
----
715

skipif mysql # not compatible
query I rowsort label-9543
SELECT CAST ( + + 65 AS INTEGER ) * + 11 AS col0
----
715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9544
SELECT 66 * + CAST( 41 AS SIGNED ) * + + COUNT( * ) + - + 52 + - 57 * 49
----
-139

skipif mysql # not compatible
query I rowsort label-9544
SELECT 66 * + CAST ( 41 AS INTEGER ) * + + COUNT ( * ) + - + 52 + - 57 * 49
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT ( + + 94 ) + COUNT( * ) - - + COUNT( 88 ) * - - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-9545
SELECT ( + + 94 ) + COUNT ( * ) - - + COUNT ( 88 ) * - - COUNT ( * )
----
96

query I rowsort
SELECT + 54 + + - 72 col1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9547
SELECT ALL - + CAST( - 7 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL - + CAST ( - 7 AS INTEGER )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ALL + 88 * MIN( ALL - 95 ) AS col1
----
-8360

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL + 88 * MIN ( ALL - 95 ) AS col1
----
-8360

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ( + + COUNT( DISTINCT + 38 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9549
SELECT ( + + COUNT ( DISTINCT + 38 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT DISTINCT MAX( - 25 ) col1
----
-25

skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT MAX ( - 25 ) col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9551
SELECT - SUM( ALL + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9551
SELECT - SUM ( ALL + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + - 51 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT + SUM( 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-9553
SELECT + SUM ( 59 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT COALESCE ( + + COUNT( * ), + 96 )
----
1

skipif mysql # not compatible
query I rowsort label-9554
SELECT COALESCE ( + + COUNT ( * ), + 96 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT DISTINCT + NULLIF ( + 3, - - COUNT( * ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT + NULLIF ( + 3, - - COUNT ( * ) ) AS col1
----
3

query I rowsort
SELECT - + 51 col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT - + COUNT( * ) + COUNT( * ) * + COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9557
SELECT - + COUNT ( * ) + COUNT ( * ) * + COUNT ( * ) col0
----
0

query I rowsort
SELECT DISTINCT - 25 * 14 AS col0
----
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT + MIN( DISTINCT 21 ) + + 22
----
43

skipif mysql # not compatible
query I rowsort label-9559
SELECT + MIN ( DISTINCT 21 ) + + 22
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9560
SELECT DISTINCT - COUNT( * ) AS col1, + COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-9560
SELECT DISTINCT - COUNT ( * ) AS col1, + COUNT ( * )
----
-1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9561
SELECT DISTINCT COUNT( * ), COUNT( * ) * COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-9561
SELECT DISTINCT COUNT ( * ), COUNT ( * ) * COUNT ( * )
----
1
1

query I rowsort
SELECT 57 + 85
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT SUM( + 11 ) + + + ( 56 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-9563
SELECT SUM ( + 11 ) + + + ( 56 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT MAX( - + 30 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9564
SELECT MAX ( - + 30 ) AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9565
SELECT + + CAST( - + 34 AS SIGNED ) - 84 AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-9565
SELECT + + CAST ( - + 34 AS INTEGER ) - 84 AS col2
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9566
SELECT DISTINCT + + CAST( - 10 AS SIGNED ), ( - CAST( NULL AS SIGNED ) ) AS col1
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-9566
SELECT DISTINCT + + CAST ( - 10 AS INTEGER ), ( - CAST ( NULL AS INTEGER ) ) AS col1
----
-10
NULL

query I rowsort
SELECT ALL - ( 6 )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9568
SELECT - CAST( NULL AS SIGNED ) * + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9568
SELECT - CAST ( NULL AS INTEGER ) * + 23 AS col0
----
NULL

query I rowsort
SELECT - - 68 * + - 84
----
-5712

onlyif mysql # aggregate syntax: 
query II rowsort label-9570
SELECT - 69 AS col2, + COUNT( * ) AS col2
----
-69
1

skipif mysql # not compatible
query II rowsort label-9570
SELECT - 69 AS col2, + COUNT ( * ) AS col2
----
-69
1

query I rowsort
SELECT ALL ( ( + + 62 ) ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT DISTINCT MAX( - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-9572
SELECT DISTINCT MAX ( - 61 )
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9573
SELECT ALL 40 DIV + COUNT( * ) col1
----
40

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL 40 / + COUNT ( * ) col1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9574
SELECT + CAST( - 74 AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-9574
SELECT + CAST ( - 74 AS INTEGER )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT - 54 * + COUNT( * ) * + 39 AS col1
----
-2106

skipif mysql # not compatible
query I rowsort label-9575
SELECT - 54 * + COUNT ( * ) * + 39 AS col1
----
-2106

query I rowsort
SELECT DISTINCT - - 29 * + - 13 AS col1
----
-377

query I rowsort
SELECT DISTINCT + 46 + 53 AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9578
SELECT + MAX( - - CAST( NULL AS SIGNED ) ) * - 72 - + MAX( ALL - + 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT + MAX ( - - CAST ( NULL AS INTEGER ) ) * - 72 - + MAX ( ALL - + 64 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9579
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) - + 19
----
-18

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) - + 19
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-9580
SELECT + - 16, + ( + COUNT( * ) ) AS col2
----
-16
1

skipif mysql # not compatible
query II rowsort label-9580
SELECT + - 16, + ( + COUNT ( * ) ) AS col2
----
-16
1

query I rowsort
SELECT ALL + + 5 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT + SUM( - + 74 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-9582
SELECT + SUM ( - + 74 ) AS col1
----
-74

query I rowsort
SELECT ALL + ( 51 ) AS col1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9584
SELECT + CAST( NULL AS SIGNED ) + + - ( - 8 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9584
SELECT + CAST ( NULL AS INTEGER ) + + - ( - 8 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT MIN( DISTINCT + ( 41 ) )
----
41

skipif mysql # not compatible
query I rowsort label-9585
SELECT MIN ( DISTINCT + ( 41 ) )
----
41

query I rowsort
SELECT + - 99 * - 89 + - 65
----
8746

query I rowsort
SELECT 21 * - - 67
----
1407

query I rowsort
SELECT 60 + - 36 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT + COUNT( - 25 )
----
1

skipif mysql # not compatible
query I rowsort label-9589
SELECT + COUNT ( - 25 )
----
1

query I rowsort
SELECT ALL 62 + - 21 AS col1
----
41

query I rowsort
SELECT DISTINCT 40 + + 14 col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT 50 - + + MAX( + 54 )
----
-4

skipif mysql # not compatible
query I rowsort label-9592
SELECT 50 - + + MAX ( + 54 )
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9593
SELECT + COUNT( 34 ) DIV 79 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9593
SELECT + COUNT ( 34 ) / 79 * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT MIN( ALL + - 21 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-9594
SELECT MIN ( ALL + - 21 ) AS col0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9595
SELECT + COUNT( ALL 72 ) DIV COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9595
SELECT + COUNT ( ALL 72 ) / COUNT ( * ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT ALL + ( - ( COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL + ( - ( COUNT ( * ) ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT + 37 * COUNT( * ) col2
----
37

skipif mysql # not compatible
query I rowsort label-9597
SELECT + 37 * COUNT ( * ) col2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9598
SELECT + CAST( NULL AS SIGNED ) + 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9598
SELECT + CAST ( NULL AS INTEGER ) + 1 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( - 63 )
----
-63

query I rowsort
SELECT - 86 * 82
----
-7052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9601
SELECT ALL + COUNT( DISTINCT - ( CAST( NULL AS SIGNED ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL + COUNT ( DISTINCT - ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT NULLIF ( 87, - COUNT( * ) * 21 )
----
87

skipif mysql # not compatible
query I rowsort label-9602
SELECT NULLIF ( 87, - COUNT ( * ) * 21 )
----
87

query I rowsort
SELECT + ( 26 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT - COUNT( * ) + 9 * 36 AS col0
----
323

skipif mysql # not compatible
query I rowsort label-9604
SELECT - COUNT ( * ) + 9 * 36 AS col0
----
323

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9605
SELECT - CAST( NULL AS SIGNED ) + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9605
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT 75 * - - 44 + + COUNT( * ) AS col2
----
3301

skipif mysql # not compatible
query I rowsort label-9606
SELECT 75 * - - 44 + + COUNT ( * ) AS col2
----
3301

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9607
SELECT ( 97 ) + CAST( NULL AS SIGNED ) / 83
----
NULL

skipif mysql # not compatible
query I rowsort label-9607
SELECT ( 97 ) + CAST ( NULL AS INTEGER ) / 83
----
NULL

query I rowsort
SELECT 49 + - - 49 AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9609
SELECT - CAST( + 6 AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-9609
SELECT - CAST ( + 6 AS INTEGER )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9610
SELECT - - SUM( DISTINCT + CAST( 9 AS SIGNED ) ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-9610
SELECT - - SUM ( DISTINCT + CAST ( 9 AS INTEGER ) ) AS col1
----
9

query I rowsort
SELECT + 53 * + 44
----
2332

query I rowsort
SELECT DISTINCT + 69 * - + 89
----
-6141

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT ALL SUM( DISTINCT + - 63 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL SUM ( DISTINCT + - 63 ) AS col2
----
-63

query II rowsort
SELECT ALL - 24 AS col1, - 34 - - - 31
----
-24
-65

query I rowsort
SELECT ALL - + 99 AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT ALL - COUNT( * ) + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT ALL + COUNT( * ) * + 81 * + COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL + COUNT ( * ) * + 81 * + COUNT ( * ) AS col2
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9618
SELECT - 73 DIV - - 57
----
-1

skipif mysql # not compatible
query I rowsort label-9618
SELECT - 73 / - - 57
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9619
SELECT - + SUM( ALL - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9619
SELECT - + SUM ( ALL - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT ALL ( - MIN( ALL - - 30 ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL ( - MIN ( ALL - - 30 ) ) AS col1
----
-30

query I rowsort
SELECT + 4 - - 56 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT ALL - + SUM( 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL - + SUM ( 67 )
----
-67

query I rowsort
SELECT ALL - ( 92 ) AS col0
----
-92

query I rowsort
SELECT 34 + + 31
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9625
SELECT ALL + - 29 * + CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL + - 29 * + CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9626
SELECT COUNT( * ) AS col1, + COUNT( + 72 ) * - + 13 - - + ( + - 88 )
----
1
-101

skipif mysql # not compatible
query II rowsort label-9626
SELECT COUNT ( * ) AS col1, + COUNT ( + 72 ) * - + 13 - - + ( + - 88 )
----
1
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT + - ( - - COALESCE ( + CASE COUNT( * ) WHEN - 11 * + 37 * 55 THEN ( - 95 ) END, - 96 ) )
----
96

skipif mysql # not compatible
query I rowsort label-9627
SELECT + - ( - - COALESCE ( + CASE COUNT ( * ) WHEN - 11 * + 37 * 55 THEN ( - 95 ) END, - 96 ) )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9628
SELECT + CAST( + + 25 AS SIGNED ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-9628
SELECT + CAST ( + + 25 AS INTEGER ) AS col2
----
25

query I rowsort
SELECT ALL 43 * + 19 - - + 36
----
853

query I rowsort
SELECT DISTINCT ( + 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT - ( - ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9631
SELECT - ( - ( COUNT ( * ) ) )
----
1

query I rowsort
SELECT + + 0 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT + 35 + - + COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-9633
SELECT + 35 + - + COUNT ( * ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT ( + + ( SUM( + - 31 ) ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-9634
SELECT ( + + ( SUM ( + - 31 ) ) ) AS col1
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9635
SELECT DISTINCT - 26 DIV + COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT - 26 / + COUNT ( * ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT ALL - 9 + + COUNT( * ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL - 9 + + COUNT ( * ) AS col1
----
-8

query I rowsort
SELECT ALL - 36 * 26
----
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT - COUNT( * ) - - + COUNT( ALL + - 46 )
----
0

skipif mysql # not compatible
query I rowsort label-9638
SELECT - COUNT ( * ) - - + COUNT ( ALL + - 46 )
----
0

query I rowsort
SELECT DISTINCT - - 48 AS col2
----
48

query I rowsort
SELECT DISTINCT - + 87 col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT DISTINCT + ( - 89 ) + 9 + - - COUNT( * ) col2
----
-79

skipif mysql # not compatible
query I rowsort label-9641
SELECT DISTINCT + ( - 89 ) + 9 + - - COUNT ( * ) col2
----
-79

query I rowsort
SELECT ALL - 52 + - 97 AS col0
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT DISTINCT - + MAX( ALL + 69 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT - + MAX ( ALL + 69 ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-9644
SELECT ALL 22 AS col0, 91 * COUNT( * ) AS col2
----
22
91

skipif mysql # not compatible
query II rowsort label-9644
SELECT ALL 22 AS col0, 91 * COUNT ( * ) AS col2
----
22
91

query I rowsort
SELECT ALL 13 - 31 * 62
----
-1909

query I rowsort
SELECT + - 4 + + 29
----
25

query I rowsort
SELECT DISTINCT + 29 col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9648
SELECT ALL + ( - ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL + ( - ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT + 39 * - - 90 * + 94 col2
----
329940

query II rowsort
SELECT DISTINCT - 29 AS col2, + 64 AS col2
----
-29
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT DISTINCT - SUM( 64 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT - SUM ( 64 ) AS col0
----
-64

query I rowsort
SELECT ALL - ( - 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT ALL - SUM( - 67 )
----
67

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL - SUM ( - 67 )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9654
SELECT ALL - CAST( - + 26 AS SIGNED ) * + 70 AS col0
----
1820

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL - CAST ( - + 26 AS INTEGER ) * + 70 AS col0
----
1820

query I rowsort
SELECT + 64 - - - 29 - + 61 AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9656
SELECT + CAST( NULL AS SIGNED ) * + + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9656
SELECT + CAST ( NULL AS INTEGER ) * + + 41 AS col2
----
NULL

query II rowsort
SELECT - - 40 AS col1, 79
----
40
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9658
SELECT + COUNT( * ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9658
SELECT + COUNT ( * ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9659
SELECT COUNT( * ) DIV 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9659
SELECT COUNT ( * ) / 56 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT - MAX( DISTINCT - 89 ) + - 31 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-9660
SELECT - MAX ( DISTINCT - 89 ) + - 31 AS col0
----
58

query I rowsort
SELECT - - 29 + ( + 60 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT - + MAX( ALL - 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-9662
SELECT - + MAX ( ALL - 91 ) AS col2
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9663
SELECT DISTINCT + ( - - MIN( DISTINCT - 71 ) ) DIV - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT + ( - - MIN ( DISTINCT - 71 ) ) / - COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT - MAX( DISTINCT - 40 )
----
40

skipif mysql # not compatible
query I rowsort label-9664
SELECT - MAX ( DISTINCT - 40 )
----
40

query I rowsort
SELECT ALL ( - - 84 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT + COUNT( * ) - 98 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-9666
SELECT + COUNT ( * ) - 98 AS col2
----
-97

query I rowsort
SELECT + 85 - - - 81 AS col1
----
4

query I rowsort
SELECT ( + - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT - 96 * + 32 * + COUNT( * ) * + + 49 AS col2
----
-150528

skipif mysql # not compatible
query I rowsort label-9669
SELECT - 96 * + 32 * + COUNT ( * ) * + + 49 AS col2
----
-150528

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT + 10 * COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-9670
SELECT + 10 * COUNT ( * )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9671
SELECT - CAST( + - 88 AS SIGNED ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-9671
SELECT - CAST ( + - 88 AS INTEGER ) AS col0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9672
SELECT DISTINCT - AVG ( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9672
SELECT DISTINCT - AVG ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9673
SELECT DISTINCT CAST( + + 52 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-9673
SELECT DISTINCT CAST ( + + 52 AS INTEGER )
----
52

query I rowsort
SELECT ALL ( + - 68 )
----
-68

query I rowsort
SELECT + - ( - ( + + 12 ) )
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9676
SELECT CAST( NULL AS DECIMAL ) * 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9676
SELECT CAST ( NULL AS REAL ) * 94 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9677
SELECT ALL - 57 + + + 28 DIV 45
----
-57

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL - 57 + + + 28 / 45
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9678
SELECT ALL - + 11 * - 89 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL - + 11 * - 89 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT DISTINCT MIN( 43 )
----
43

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT MIN ( 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT ALL COUNT( - + 28 ) * 96
----
96

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL COUNT ( - + 28 ) * 96
----
96

query I rowsort
SELECT + 37 * 53 AS col2
----
1961

query II rowsort
SELECT - 57 AS col1, 55 AS col1
----
-57
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT ALL COUNT( * ) * + 39 + + + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL COUNT ( * ) * + 39 + + + COUNT ( * )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9684
SELECT DISTINCT ( ( - - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9684
SELECT DISTINCT ( ( - - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT + COUNT( * ) - - 80 + 74 AS col2
----
155

skipif mysql # not compatible
query I rowsort label-9685
SELECT + COUNT ( * ) - - 80 + 74 AS col2
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT + + COUNT( * ) * 35
----
35

skipif mysql # not compatible
query I rowsort label-9686
SELECT + + COUNT ( * ) * 35
----
35

query I rowsort
SELECT + 79 * 87 AS col0
----
6873

query I rowsort
SELECT + 97 * 59
----
5723

query I rowsort
SELECT DISTINCT - 24 + 54
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT DISTINCT + COUNT( * ) - ( - 48 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-9690
SELECT DISTINCT + COUNT ( * ) - ( - 48 ) AS col1
----
49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9691
SELECT - CAST( + 83 AS DECIMAL ) * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9691
SELECT - CAST ( + 83 AS REAL ) * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT + COUNT( * ) * - - 1 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9692
SELECT + COUNT ( * ) * - - 1 AS col1
----
1

query I rowsort
SELECT + + 61 col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9694
SELECT DISTINCT 64 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9694
SELECT DISTINCT 64 + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 64, - 68 AS col2
----
64
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-9696
SELECT 66 DIV + - 61
----
-1

skipif mysql # not compatible
query I rowsort label-9696
SELECT 66 / + - 61
----
-1

query I rowsort
SELECT ALL ( + - 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT + SUM( ALL - + ( + 5 ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9698
SELECT + SUM ( ALL - + ( + 5 ) ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT - + SUM( - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-9699
SELECT - + SUM ( - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT ALL - 62 * - + COALESCE ( - 87, + 44 + 40 + - COUNT( * ) ) col2
----
-5394

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL - 62 * - + COALESCE ( - 87, + 44 + 40 + - COUNT ( * ) ) col2
----
-5394

onlyif mysql # DIV for integer division: 
query I rowsort label-9701
SELECT ALL + 80 DIV ( - 14 )
----
-5

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL + 80 / ( - 14 )
----
-5

query II rowsort
SELECT - 3 - + 12 AS col0, 41
----
-15
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT 50 + + COUNT( * ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-9703
SELECT 50 + + COUNT ( * ) AS col1
----
51

query I rowsort
SELECT 56 + 79 + - 66 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT ALL NULLIF ( + 93, - COUNT( * ) * - COUNT( * ) )
----
93

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL NULLIF ( + 93, - COUNT ( * ) * - COUNT ( * ) )
----
93

query I rowsort
SELECT ALL + 21 + - + 70
----
-49

query II rowsort
SELECT ALL - 48 + + - 3 AS col0, + 16 AS col2
----
-51
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9708
SELECT ALL - COUNT( * ) DIV - - 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9708
SELECT ALL - COUNT ( * ) / - - 57 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9709
SELECT - + 63 DIV + - MAX( - + 75 )
----
0

skipif mysql # not compatible
query I rowsort label-9709
SELECT - + 63 / + - MAX ( - + 75 )
----
0

query I rowsort
SELECT DISTINCT 15 + 41 AS col0
----
56

query I rowsort
SELECT DISTINCT 79 + - ( - 9 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL - - MAX( - 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL - - MAX ( - 27 )
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9713
SELECT 1 * COUNT( * ) AS col0, + 22 DIV - - 30
----
1
0

skipif mysql # not compatible
query II rowsort label-9713
SELECT 1 * COUNT ( * ) AS col0, + 22 / - - 30
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT 91 - - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-9714
SELECT 91 - - COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT NULLIF ( + COUNT( * ), - 16 + - + 39 ) * + + 19 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-9715
SELECT NULLIF ( + COUNT ( * ), - 16 + - + 39 ) * + + 19 AS col1
----
19

query I rowsort
SELECT DISTINCT + ( 13 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT - - COUNT( ALL - ( + + 62 ) ) + - 9
----
-8

skipif mysql # not compatible
query I rowsort label-9717
SELECT - - COUNT ( ALL - ( + + 62 ) ) + - 9
----
-8

query I rowsort
SELECT ALL + + 11 AS col1
----
11

query I rowsort
SELECT ALL + 35 * 54
----
1890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9720
SELECT + 43 DIV - COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-9720
SELECT + 43 / - COUNT ( * ) AS col2
----
-43

query I rowsort
SELECT - + ( + 86 ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-9722
SELECT + - COUNT( * ), - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-9722
SELECT + - COUNT ( * ), - COUNT ( * )
----
-1
-1

query I rowsort
SELECT DISTINCT 57 * + - 62 * - 59
----
208506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9724
SELECT + CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9724
SELECT + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9725
SELECT ALL + COUNT( * ) AS col1, + 85
----
1
85

skipif mysql # not compatible
query II rowsort label-9725
SELECT ALL + COUNT ( * ) AS col1, + 85
----
1
85

query I rowsort
SELECT NULLIF ( + 12, + ( + 37 ) ) AS col0
----
12

query I rowsort
SELECT ALL ( ( 81 ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT ALL - COUNT( * ) + - - 98 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL - COUNT ( * ) + - - 98 AS col0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9729
SELECT DISTINCT 51 AS col2, COUNT( * ) col1
----
51
1

skipif mysql # not compatible
query II rowsort label-9729
SELECT DISTINCT 51 AS col2, COUNT ( * ) col1
----
51
1

query I rowsort
SELECT ALL 8 * + 59
----
472

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT ALL ( + - COUNT( * ) ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL ( + - COUNT ( * ) ) * - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT ALL + COUNT( * ) + 87 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL + COUNT ( * ) + 87 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT - + COALESCE ( + COUNT( * ), 73 + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9733
SELECT - + COALESCE ( + COUNT ( * ), 73 + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT MIN( ALL - 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-9734
SELECT MIN ( ALL - 99 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT ALL + 39 * + - COUNT( * ) + + ( + COUNT( * ) ) + - - 3 col1
----
-35

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL + 39 * + - COUNT ( * ) + + ( + COUNT ( * ) ) + - - 3 col1
----
-35

query I rowsort
SELECT + + 64 * - COALESCE ( - 72, + 71 )
----
4608

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT - + MIN( ALL + 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-9737
SELECT - + MIN ( ALL + 19 ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-9738
SELECT DISTINCT - 94 AS col0, + COUNT( 50 ) AS col0
----
-94
1

skipif mysql # not compatible
query II rowsort label-9738
SELECT DISTINCT - 94 AS col0, + COUNT ( 50 ) AS col0
----
-94
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9739
SELECT - 81 DIV + 44 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9739
SELECT - 81 / + 44 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT ( + COUNT( ALL + - 42 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9740
SELECT ( + COUNT ( ALL + - 42 ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 11 col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT DISTINCT 88 + COUNT( * ) - + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT 88 + COUNT ( * ) - + COUNT ( * )
----
88

query II rowsort
SELECT DISTINCT - 86, 51 AS col1
----
-86
51

query I rowsort
SELECT ALL - + 7 col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT + SUM( DISTINCT 46 )
----
46

skipif mysql # not compatible
query I rowsort label-9745
SELECT + SUM ( DISTINCT 46 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT ALL - MIN( + 72 ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL - MIN ( + 72 ) col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT COUNT( * ) * + + 98 * 20 * - 92 AS col2
----
-180320

skipif mysql # not compatible
query I rowsort label-9747
SELECT COUNT ( * ) * + + 98 * 20 * - 92 AS col2
----
-180320

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT DISTINCT - ( - COUNT( * ) ) + 31 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9748
SELECT DISTINCT - ( - COUNT ( * ) ) + 31 AS col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9749
SELECT 94 + COUNT( * ) * - CAST( 86 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-9749
SELECT 94 + COUNT ( * ) * - CAST ( 86 AS INTEGER )
----
8

query I rowsort
SELECT 29 + - - 97
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT ALL - + ( 42 ) * + COUNT( * ) + + - 43
----
-85

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL - + ( 42 ) * + COUNT ( * ) + + - 43
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT - + SUM( ALL + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-9752
SELECT - + SUM ( ALL + 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT + MIN( + 82 ) + - 35 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9753
SELECT + MIN ( + 82 ) + - 35 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT - MIN( ALL 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-9754
SELECT - MIN ( ALL 8 )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9755
SELECT + MIN( ALL - CAST( 15 AS SIGNED ) )
----
-15

skipif mysql # not compatible
query I rowsort label-9755
SELECT + MIN ( ALL - CAST ( 15 AS INTEGER ) )
----
-15

query I rowsort
SELECT ALL + + 72 AS col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9757
SELECT DISTINCT CAST( - 31 AS SIGNED ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-9757
SELECT DISTINCT CAST ( - 31 AS INTEGER ) AS col2
----
-31

query I rowsort
SELECT DISTINCT - 68 + - + 45
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT ALL + 89 * - COUNT( * ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL + 89 * - COUNT ( * ) AS col1
----
-89

query I rowsort
SELECT - 24 * + 60 AS col0
----
-1440

query I rowsort
SELECT + + 10 col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT COUNT( * ) * + + 18
----
18

skipif mysql # not compatible
query I rowsort label-9762
SELECT COUNT ( * ) * + + 18
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT ALL - COUNT( * ) + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT + + ( - + 31 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT - - 29 * + + COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-9765
SELECT - - 29 * + + COUNT ( * ) AS col0
----
29

query I rowsort
SELECT ALL + - ( + 13 ) AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9767
SELECT ALL - MAX( + CAST( NULL AS SIGNED ) ) * + + 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL - MAX ( + CAST ( NULL AS INTEGER ) ) * + + 56 AS col1
----
NULL

query I rowsort
SELECT ALL + ( - + 25 ) AS col1
----
-25

query I rowsort
SELECT - ( - - ( + 7 ) ) AS col2
----
-7

query I rowsort
SELECT + 3 * - 83 AS col1
----
-249

query I rowsort
SELECT ALL + ( 84 ) col2
----
84

query I rowsort
SELECT ( + - 85 )
----
-85

query I rowsort
SELECT ALL + ( + 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT + COUNT( ALL + 59 )
----
1

skipif mysql # not compatible
query I rowsort label-9774
SELECT + COUNT ( ALL + 59 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT - SUM( - - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-9775
SELECT - SUM ( - - 43 )
----
-43

query I rowsort
SELECT ALL + 75 + 6 AS col1
----
81

query I rowsort
SELECT DISTINCT + 82 col0
----
82

query II rowsort
SELECT - - 56, + 58 col0
----
56
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT - ( 59 ) * + COUNT( * ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-9779
SELECT - ( 59 ) * + COUNT ( * ) AS col2
----
-59

query I rowsort
SELECT - 55 + + 0 AS col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9781
SELECT ( + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9781
SELECT ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL ( + 35 ) * + 44
----
1540

query I rowsort
SELECT + 48 * + 90
----
4320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9784
SELECT 36 / + CAST( NULL AS SIGNED ) + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-9784
SELECT 36 / + CAST ( NULL AS INTEGER ) + + 66
----
NULL

query I rowsort
SELECT - ( + - 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT ALL + COUNT( * ) * + - 15
----
-15

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL + COUNT ( * ) * + - 15
----
-15

query I rowsort
SELECT + ( + + 54 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT COUNT( * ) * - 28 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-9788
SELECT COUNT ( * ) * - 28 AS col2
----
-28

query I rowsort
SELECT 89 + - 66
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9790
SELECT 8 * - + ( + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9790
SELECT 8 * - + ( + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 8 * - 97 + + 24 AS col2
----
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT DISTINCT 16 * + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-9792
SELECT DISTINCT 16 * + COUNT ( * )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT DISTINCT - + MIN( ALL + 11 ) - SUM( DISTINCT - 10 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT - + MIN ( ALL + 11 ) - SUM ( DISTINCT - 10 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT DISTINCT MAX( - ( - 56 ) ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT MAX ( - ( - 56 ) ) AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9795
SELECT - CAST( NULL AS SIGNED ) / + + 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT - CAST ( NULL AS INTEGER ) / + + 39 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT + 19 * + COUNT( * ) col2
----
19

skipif mysql # not compatible
query I rowsort label-9796
SELECT + 19 * + COUNT ( * ) col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT ALL + 90 * + COUNT( * ) + + 25 AS col0
----
115

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL + 90 * + COUNT ( * ) + + 25 AS col0
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-9798
SELECT ( - MAX( + 87 ) ), - COUNT( * ) + + 67 AS col2
----
-87
66

skipif mysql # not compatible
query II rowsort label-9798
SELECT ( - MAX ( + 87 ) ), - COUNT ( * ) + + 67 AS col2
----
-87
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9799
SELECT + - 46 * - CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col2, + 46
----
NULL
46

skipif mysql # not compatible
query II rowsort label-9799
SELECT + - 46 * - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col2, + 46
----
NULL
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9800
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 70 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT ALL COUNT( * ) * - 90 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL COUNT ( * ) * - 90 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT - - ( 77 ) * NULLIF ( + - COUNT( * ), + + 79 )
----
-77

skipif mysql # not compatible
query I rowsort label-9802
SELECT - - ( 77 ) * NULLIF ( + - COUNT ( * ), + + 79 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9803
SELECT - CAST( NULL AS SIGNED ) col1, COUNT( * ) * + CASE - 35 WHEN COUNT( * ) THEN NULL ELSE + 37 END AS col2
----
NULL
37

skipif mysql # not compatible
query II rowsort label-9803
SELECT - CAST ( NULL AS INTEGER ) col1, COUNT ( * ) * + CASE - 35 WHEN COUNT ( * ) THEN NULL ELSE + 37 END AS col2
----
NULL
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT ALL + SUM( ALL - - 36 ) * - 71 AS col1
----
-2556

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL + SUM ( ALL - - 36 ) * - 71 AS col1
----
-2556

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9805
SELECT DISTINCT + ( 8 ) * COUNT( * ) / - - 38 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9805
SELECT DISTINCT + ( 8 ) * COUNT ( * ) / - - 38 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT ALL + ( ( - 0 ) ) + - - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL + ( ( - 0 ) ) + - - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT + 23 + - 47
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9808
SELECT 7 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9808
SELECT 7 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 57 + 87
----
144

query I rowsort
SELECT 2 * 32
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT + MIN( - 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-9811
SELECT + MIN ( - 71 )
----
-71

query I rowsort
SELECT ALL 2 * ( 41 )
----
82

query I rowsort
SELECT - 58 * ( + 23 ) + + 70
----
-1264

onlyif mysql # DIV for integer division: 
query I rowsort label-9814
SELECT DISTINCT 31 DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT 31 / 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT 36 + + COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-9815
SELECT 36 + + COUNT ( * ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT COUNT( * ) * 20 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-9816
SELECT COUNT ( * ) * 20 AS col1
----
20

query I rowsort
SELECT 46 + - 97
----
-51

query I rowsort
SELECT ALL - 19 * 56
----
-1064

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9819
SELECT ALL + COUNT( * ) DIV + + 42
----
0

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL + COUNT ( * ) / + + 42
----
0

query I rowsort
SELECT ALL 61 * - 22
----
-1342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9821
SELECT ALL + CAST( + 57 AS SIGNED ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL + CAST ( + 57 AS INTEGER ) AS col0
----
57

query I rowsort
SELECT - 7 + 91 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT ALL 73 + - COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL 73 + - COUNT ( * ) AS col0
----
72

query I rowsort
SELECT - + ( - - 36 )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9825
SELECT ALL ( COUNT( * ) ) DIV - 88 + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL ( COUNT ( * ) ) / - 88 + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT - 20 * - + 25 col1
----
500

query I rowsort
SELECT DISTINCT + 17 * 95 col2
----
1615

query I rowsort
SELECT ALL + ( 6 ) AS col2
----
6

query I rowsort
SELECT ALL ( 72 ) AS col0
----
72

query I rowsort
SELECT DISTINCT - 69 + + 78 AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9831
SELECT ALL + CAST( NULL AS SIGNED ) + + 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL + CAST ( NULL AS INTEGER ) + + 77 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9832
SELECT ALL - COUNT( * ) DIV + 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL - COUNT ( * ) / + 61 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT MAX( + + 85 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-9833
SELECT MAX ( + + 85 ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT MIN( ALL - - ( - + ( - 39 ) ) )
----
39

skipif mysql # not compatible
query I rowsort label-9834
SELECT MIN ( ALL - - ( - + ( - 39 ) ) )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT + MIN( - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-9835
SELECT + MIN ( - 89 )
----
-89

query I rowsort
SELECT ( + 23 ) col0
----
23

query I rowsort
SELECT DISTINCT + ( + 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT + SUM( ALL + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-9838
SELECT + SUM ( ALL + 6 )
----
6

query I rowsort
SELECT DISTINCT - 12 col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT + - MAX( ALL - - 1 ) * 71
----
-71

skipif mysql # not compatible
query I rowsort label-9840
SELECT + - MAX ( ALL - - 1 ) * 71
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT ALL - COUNT( DISTINCT + 6 )
----
-1

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL - COUNT ( DISTINCT + 6 )
----
-1

query I rowsort
SELECT ALL + ( + 70 )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9843
SELECT CAST( NULL AS SIGNED ) * - 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9843
SELECT CAST ( NULL AS INTEGER ) * - 60 AS col2
----
NULL

query I rowsort
SELECT - ( + - 98 ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-9845
SELECT ALL - 59, - COUNT( * ) col0
----
-59
-1

skipif mysql # not compatible
query II rowsort label-9845
SELECT ALL - 59, - COUNT ( * ) col0
----
-59
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9846
SELECT 13 AS col2, + MIN( ALL 45 ) AS col2
----
13
45

skipif mysql # not compatible
query II rowsort label-9846
SELECT 13 AS col2, + MIN ( ALL 45 ) AS col2
----
13
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT - SUM( DISTINCT 22 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-9847
SELECT - SUM ( DISTINCT 22 ) AS col2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9848
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9848
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT ALL - 43 * + 92 + + + COUNT( * )
----
-3955

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL - 43 * + 92 + + + COUNT ( * )
----
-3955

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT + MIN( 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-9850
SELECT + MIN ( 72 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-9851
SELECT + ( - 31 ) * - COUNT( * ) + - 82, COUNT( * ) * - 65 col0
----
-51
-65

skipif mysql # not compatible
query II rowsort label-9851
SELECT + ( - 31 ) * - COUNT ( * ) + - 82, COUNT ( * ) * - 65 col0
----
-51
-65

query I rowsort
SELECT DISTINCT + - 53
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT - - COUNT( * ) * + + 7
----
7

skipif mysql # not compatible
query I rowsort label-9853
SELECT - - COUNT ( * ) * + + 7
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT DISTINCT COUNT( + - ( 1 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT COUNT ( + - ( 1 ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9855
SELECT DISTINCT + - 59 DIV - + 8 + + - 91
----
-84

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT + - 59 / - + 8 + + - 91
----
-84

query I rowsort
SELECT 30 * + 45
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT ALL + - MAX( + 69 ) * + COUNT( * ) col0
----
-69

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL + - MAX ( + 69 ) * + COUNT ( * ) col0
----
-69

query I rowsort
SELECT - ( - - 98 ) AS col2
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9859
SELECT ALL MIN( 73 ) DIV - - 45 + + - 68 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL MIN ( 73 ) / - - 45 + + - 68 AS col0
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-9860
SELECT ALL 7 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL 7 / - 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT DISTINCT COUNT( * ) * + 68
----
68

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT COUNT ( * ) * + 68
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT ALL - COUNT( * ) + 59 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL - COUNT ( * ) + 59 AS col2
----
58

query II rowsort
SELECT 24 * - 70 AS col1, + 45
----
-1680
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9864
SELECT - 85 DIV - - MAX( 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-9864
SELECT - 85 / - - MAX ( 46 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT + ( + 97 ) * + MAX( ALL - - 59 ) + + COALESCE ( 70, - - 92, - - 51 )
----
5793

skipif mysql # not compatible
query I rowsort label-9865
SELECT + ( + 97 ) * + MAX ( ALL - - 59 ) + + COALESCE ( 70, - - 92, - - 51 )
----
5793

query I rowsort
SELECT - ( 94 ) * + 91 * 64 col1
----
-547456

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT MAX( DISTINCT + 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-9867
SELECT MAX ( DISTINCT + 50 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-9868
SELECT - - COUNT( * ), + 50 AS col2
----
1
50

skipif mysql # not compatible
query II rowsort label-9868
SELECT - - COUNT ( * ), + 50 AS col2
----
1
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT + MIN( - 32 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-9869
SELECT + MIN ( - 32 ) AS col0
----
-32

query I rowsort
SELECT - 53 + - - 64 AS col1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-9871
SELECT 94 DIV + 46 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9871
SELECT 94 / + 46 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT ALL - MAX( ALL + - 54 )
----
54

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL - MAX ( ALL + - 54 )
----
54

query I rowsort
SELECT ALL 84 + + - ( + 32 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-9874
SELECT + ( - 56 ) + 62, MAX( 13 ) AS col1
----
6
13

skipif mysql # not compatible
query II rowsort label-9874
SELECT + ( - 56 ) + 62, MAX ( 13 ) AS col1
----
6
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT ALL ( COUNT( * ) ) + - NULLIF ( COALESCE ( + COUNT( * ), - 28 ), + 51 )
----
0

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL ( COUNT ( * ) ) + - NULLIF ( COALESCE ( + COUNT ( * ), - 28 ), + 51 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT ALL 8 + + ( - COUNT( * ) )
----
7

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL 8 + + ( - COUNT ( * ) )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9877
SELECT + 7 AS col0, - COUNT( * ) * + COUNT( * ) * + 36
----
7
-36

skipif mysql # not compatible
query II rowsort label-9877
SELECT + 7 AS col0, - COUNT ( * ) * + COUNT ( * ) * + 36
----
7
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL COUNT( * ) * - + 80
----
-80

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL COUNT ( * ) * - + 80
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-9879
SELECT COUNT( - 12 ), ( - 72 ) - 74 AS col2
----
1
-146

skipif mysql # not compatible
query II rowsort label-9879
SELECT COUNT ( - 12 ), ( - 72 ) - 74 AS col2
----
1
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT DISTINCT - 82 * - COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT - 82 * - COUNT ( * ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT DISTINCT + - COUNT( 78 ) + NULLIF ( - - 62, - 48 * + + COUNT( + + 64 ) ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-9881
SELECT DISTINCT + - COUNT ( 78 ) + NULLIF ( - - 62, - 48 * + + COUNT ( + + 64 ) ) AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9882
SELECT - MAX( DISTINCT CAST( + 90 AS SIGNED ) ) col2
----
-90

skipif mysql # not compatible
query I rowsort label-9882
SELECT - MAX ( DISTINCT CAST ( + 90 AS INTEGER ) ) col2
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9883
SELECT ( + CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9883
SELECT ( + CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT ( NULLIF ( COUNT( * ), + 30 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9884
SELECT ( NULLIF ( COUNT ( * ), + 30 ) )
----
1

query I rowsort
SELECT ( 85 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT ( + MIN( DISTINCT 40 ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-9886
SELECT ( + MIN ( DISTINCT 40 ) ) AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9887
SELECT ALL CAST( - + 83 AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL CAST ( - + 83 AS INTEGER )
----
-83

query I rowsort
SELECT DISTINCT ( - 97 )
----
-97

query I rowsort
SELECT - 71 * + 54 * + ( + 29 )
----
-111186

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT ALL - MAX( 52 ) * COUNT( * ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL - MAX ( 52 ) * COUNT ( * ) AS col2
----
-52

query I rowsort
SELECT DISTINCT - + 52 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT + COALESCE ( + - 95, - + COUNT( DISTINCT + - 99 ), - COUNT( * ) ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-9892
SELECT + COALESCE ( + - 95, - + COUNT ( DISTINCT + - 99 ), - COUNT ( * ) ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT DISTINCT MIN( ALL + 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT MIN ( ALL + 9 ) AS col0
----
9

query I rowsort
SELECT ALL - 71 * 43
----
-3053

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT COUNT( * ) - + 72 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-9895
SELECT COUNT ( * ) - + 72 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT 39 + COUNT( * ) + 60 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-9896
SELECT 39 + COUNT ( * ) + 60 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT + COUNT( * ) + - 65
----
-64

skipif mysql # not compatible
query I rowsort label-9897
SELECT + COUNT ( * ) + - 65
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-9898
SELECT + + 93 DIV - - 12 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-9898
SELECT + + 93 / - - 12 AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9899
SELECT ALL + 82 DIV + + 82
----
1

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL + 82 / + + 82
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9900
SELECT + + SUM( + 46 ) + + 21 AS col2, - CAST( 88 AS SIGNED )
----
67
-88

skipif mysql # not compatible
query II rowsort label-9900
SELECT + + SUM ( + 46 ) + + 21 AS col2, - CAST ( 88 AS INTEGER )
----
67
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9901
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 31
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9902
SELECT DISTINCT CAST( - + 46 AS SIGNED ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-9902
SELECT DISTINCT CAST ( - + 46 AS INTEGER ) AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9903
SELECT + CAST( NULL AS SIGNED ), + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9903
SELECT + CAST ( NULL AS INTEGER ), + COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT + - 99 AS col2
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9905
SELECT + - 16 DIV + - 70
----
0

skipif mysql # not compatible
query I rowsort label-9905
SELECT + - 16 / + - 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT ALL - + COUNT( - 78 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL - + COUNT ( - 78 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT COUNT( * ) * + 63
----
63

skipif mysql # not compatible
query I rowsort label-9907
SELECT COUNT ( * ) * + 63
----
63

query II rowsort
SELECT ALL 41 AS col1, + 32 AS col1
----
41
32

query I rowsort
SELECT - - 50 col1
----
50

query I rowsort
SELECT ALL - ( - ( - 40 ) )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9911
SELECT ALL + CAST( 74 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL + CAST ( 74 AS INTEGER )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9912
SELECT + 18 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9912
SELECT + 18 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 99 + - 48
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT + - ( - ( + MAX( ALL + ( + 83 ) ) ) ) - 20
----
63

skipif mysql # not compatible
query I rowsort label-9914
SELECT + - ( - ( + MAX ( ALL + ( + 83 ) ) ) ) - 20
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT ALL + NULLIF ( - COUNT( * ), - 43 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9915
SELECT ALL + NULLIF ( - COUNT ( * ), - 43 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT ALL + 66 * - + COUNT( * ) + COUNT( * ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL + 66 * - + COUNT ( * ) + COUNT ( * ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-9917
SELECT ( - - COUNT( - 9 ) ) col1, COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-9917
SELECT ( - - COUNT ( - 9 ) ) col1, COUNT ( * ) AS col2
----
1
1

query I rowsort
SELECT - 76 * - 31
----
2356

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT + - 49 * COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-9919
SELECT + - 49 * COUNT ( * )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9920
SELECT COALESCE ( CAST( NULL AS SIGNED ), + ( - CAST( NULL AS SIGNED ) ) ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9920
SELECT COALESCE ( CAST ( NULL AS INTEGER ), + ( - CAST ( NULL AS INTEGER ) ) ) - COUNT ( * )
----
NULL

query II rowsort
SELECT ALL - 4 AS col2, - 40
----
-4
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-9922
SELECT + ( + 97 ) * 24 + + + 84 AS col0, COUNT( * ) AS col0
----
2412
1

skipif mysql # not compatible
query II rowsort label-9922
SELECT + ( + 97 ) * 24 + + + 84 AS col0, COUNT ( * ) AS col0
----
2412
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT ALL - MIN( - 28 ) + + 80 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL - MIN ( - 28 ) + + 80 AS col2
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9924
SELECT ALL + - 77 + - + CAST( - 88 AS SIGNED ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL + - 77 + - + CAST ( - 88 AS INTEGER ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT ALL + - 64 * COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL + - 64 * COUNT ( * )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9926
SELECT ALL 77 * - COUNT( * ) AS col0, CAST( NULL AS DECIMAL ) AS col1
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-9926
SELECT ALL 77 * - COUNT ( * ) AS col0, CAST ( NULL AS REAL ) AS col1
----
-77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT SUM( DISTINCT 52 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-9927
SELECT SUM ( DISTINCT 52 ) AS col1
----
52

query I rowsort
SELECT DISTINCT 93 + 94 AS col0
----
187

query I rowsort
SELECT ALL ( + 31 ) + + + 40 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT DISTINCT - + COUNT( - 78 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT - + COUNT ( - 78 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT ALL + - MAX( - 23 ) * COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL + - MAX ( - 23 ) * COUNT ( * ) AS col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9932
SELECT DISTINCT + ( 46 ) / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT + ( 46 ) / + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + 80 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT - - 70 * 82 + COUNT( * )
----
5741

skipif mysql # not compatible
query I rowsort label-9934
SELECT - - 70 * 82 + COUNT ( * )
----
5741

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT + 99 - + COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-9935
SELECT + 99 - + COUNT ( * ) AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9936
SELECT - CAST( + COUNT( * ) AS SIGNED ) + - - 25 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-9936
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + - - 25 AS col0
----
24

query I rowsort
SELECT - 66 * + 74 + + + 6
----
-4878

query I rowsort
SELECT ALL 43 + - 88 AS col0
----
-45

query I rowsort
SELECT ALL 54 + - 15
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9940
SELECT ALL + 66 DIV + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL + 66 / + COUNT ( * )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT ALL - COUNT( * ) - - 9 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL - COUNT ( * ) - - 9 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT + SUM( ALL + 36 ) col1
----
36

skipif mysql # not compatible
query I rowsort label-9942
SELECT + SUM ( ALL + 36 ) col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT + - MAX( DISTINCT 86 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-9943
SELECT + - MAX ( DISTINCT 86 ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT ALL + 77 + - - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL + 77 + - - COUNT ( * )
----
78

query I rowsort
SELECT 58 + + 85 col0
----
143

query I rowsort
SELECT 77 + 3 AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9947
SELECT CAST( NULL AS SIGNED ) * + 77 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9947
SELECT CAST ( NULL AS INTEGER ) * + 77 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9948
SELECT + + 65 AS col1, - COUNT( * ) AS col0
----
65
-1

skipif mysql # not compatible
query II rowsort label-9948
SELECT + + 65 AS col1, - COUNT ( * ) AS col0
----
65
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT + SUM( ALL 62 )
----
62

skipif mysql # not compatible
query I rowsort label-9949
SELECT + SUM ( ALL 62 )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9950
SELECT ALL - COUNT( 95 ) DIV 12 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL - COUNT ( 95 ) / 12 AS col2
----
0

query I rowsort
SELECT - NULLIF ( + ( 2 ), + 61 ) col0
----
-2

query I rowsort
SELECT + 52 * 94
----
4888

query I rowsort
SELECT - - 67 col2
----
67

query I rowsort
SELECT DISTINCT + + ( + - 6 )
----
-6

query I rowsort
SELECT ( + 26 ) AS col2
----
26

query I rowsort
SELECT ALL - 19 * + 55 - - 35
----
-1010

query I rowsort
SELECT ALL 36 * 34
----
1224

query I rowsort
SELECT ALL - 8 + + 89 col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT COUNT( * ) * 75 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-9959
SELECT COUNT ( * ) * 75 AS col0
----
75

query I rowsort
SELECT + ( + + 74 )
----
74

query II rowsort
SELECT - 22 AS col1, 5 AS col1
----
-22
5

query I rowsort
SELECT 4 * - - 97 + - 31
----
357

query I rowsort
SELECT + 21 * + 27 AS col2
----
567

onlyif mysql # DIV for integer division: 
query I rowsort label-9964
SELECT ALL - ( 5 ) DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL - ( 5 ) / - 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT - NULLIF ( - COUNT( * ), + 90 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9965
SELECT - NULLIF ( - COUNT ( * ), + 90 ) AS col2
----
1

query I rowsort
SELECT - 1 - - 84
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT COUNT( * ) * - + 60 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-9967
SELECT COUNT ( * ) * - + 60 AS col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9968
SELECT COUNT( + - CAST( + 20 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9968
SELECT COUNT ( + - CAST ( + 20 AS INTEGER ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT SUM( - - 36 )
----
36

skipif mysql # not compatible
query I rowsort label-9969
SELECT SUM ( - - 36 )
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-9970
SELECT - - COUNT( * ), + 73 + + - 13 AS col0
----
1
60

skipif mysql # not compatible
query II rowsort label-9970
SELECT - - COUNT ( * ), + 73 + + - 13 AS col0
----
1
60

query I rowsort
SELECT + - ( + 6 ) col1
----
-6

query I rowsort
SELECT + 54 + - NULLIF ( - - 6, - 85 ) * - 71 + - 74
----
406

query I rowsort
SELECT ALL + 49 * 29 AS col0
----
1421

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT - 87 * + COUNT( * ) * COUNT( + 71 ) + - 31 AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-9974
SELECT - 87 * + COUNT ( * ) * COUNT ( + 71 ) + - 31 AS col2
----
-118

query I rowsort
SELECT - + COALESCE ( - 59, - 34 )
----
59

query I rowsort
SELECT DISTINCT + ( 41 ) * - 42 AS col2
----
-1722

query I rowsort
SELECT + 31 * 54 AS col1
----
1674

query I rowsort
SELECT + ( - 35 ) AS col0
----
-35

query I rowsort
SELECT ALL NULLIF ( + - 25, + + 44 )
----
-25

query I rowsort
SELECT DISTINCT - 32 * - ( + 28 ) AS col2
----
896

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT COUNT( * ) * - ( 2 ) * + ( + 15 ) + 78
----
48

skipif mysql # not compatible
query I rowsort label-9981
SELECT COUNT ( * ) * - ( 2 ) * + ( + 15 ) + 78
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT - + MAX( DISTINCT + 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-9982
SELECT - + MAX ( DISTINCT + 45 )
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-9983
SELECT DISTINCT - COUNT( * ) AS col1, - 7
----
-1
-7

skipif mysql # not compatible
query II rowsort label-9983
SELECT DISTINCT - COUNT ( * ) AS col1, - 7
----
-1
-7

query II rowsort
SELECT 7, + 12 * + 93 AS col2
----
7
1116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9985
SELECT - COUNT( * ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT - COUNT ( * ) * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 3 * + 83 * + - 76 AS col0
----
-18924

query I rowsort
SELECT + + 11 AS col0
----
11

query I rowsort
SELECT ALL - 53 + + 16
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9989
SELECT DISTINCT + COUNT( - CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9990
SELECT + - 10 DIV - + 36 col0
----
0

skipif mysql # not compatible
query I rowsort label-9990
SELECT + - 10 / - + 36 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9991
SELECT - 18 * 17 DIV + + COUNT( * )
----
-306

skipif mysql # not compatible
query I rowsort label-9991
SELECT - 18 * 17 / + + COUNT ( * )
----
-306

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT - COUNT( * ) * - 91
----
91

skipif mysql # not compatible
query I rowsort label-9992
SELECT - COUNT ( * ) * - 91
----
91

query I rowsort
SELECT - 28 * - 79 AS col2
----
2212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9994
SELECT ALL 31 DIV + - COUNT( * ) + + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL 31 / + - COUNT ( * ) + + COUNT ( * )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9995
SELECT COUNT( + + ( - CAST( + - 49 AS SIGNED ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9995
SELECT COUNT ( + + ( - CAST ( + - 49 AS INTEGER ) ) ) AS col0
----
1

query II rowsort
SELECT 33, 98 AS col1
----
33
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT DISTINCT - NULLIF ( + - COALESCE ( + - 47, - + 35 ), - COUNT( * ) ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-9997
SELECT DISTINCT - NULLIF ( + - COALESCE ( + - 47, - + 35 ), - COUNT ( * ) ) AS col0
----
-47

query I rowsort
SELECT 37 + 83 col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT - - SUM( + + 17 )
----
17

skipif mysql # not compatible
query I rowsort label-9999
SELECT - - SUM ( + + 17 )
----
17

